/* ============================================================
   CenyProduktu.cz v2 — jednotný design systém
   Navazuje na redesign z cenyproduktu_new (barva #43b4c3),
   rozšířeno o komponenty pro firemní administraci a Stripe platby.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg:            #F7F8FA;
  --white:         #ffffff;
  --navy:          #1a2332;
  --navy-light:    #243044;
  --primary:       #43b4c3;
  --primary-hover: #2e9aab;
  --primary-light: #eaf7f9;
  --green:         #16a34a;
  --green-light:   #f0fdf4;
  --red:           #dc2626;
  --red-light:     #fef2f2;
  --amber:         #d97706;
  --amber-light:   #fffbeb;
  --text:          #1a2332;
  --text-muted:    #6b7280;
  --text-light:    #9ca3af;
  --border:        #e5e7eb;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08);
  --shadow-md:     0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:     0 8px 32px rgba(0,0,0,.13);
  --radius:        12px;
  --radius-sm:     8px;
}

html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: 'Inter', 'Open Sans', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 14px;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; }

.cp-container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ── NAVBAR ── */
.cp-navbar { background: var(--navy); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 12px rgba(0,0,0,.25); overflow: visible; }
.cp-navbar-inner { max-width: 1280px; margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; gap: 20px; position: relative; }
.cp-logo {
  position: relative;
  display: flex; align-items: center; min-width: 220px; height: 64px; flex-shrink: 0;
  font-size: 22px; font-weight: 800; color: #fff; text-decoration: none; white-space: nowrap; letter-spacing: -.5px;
}
.cp-logo span { color: var(--primary); }
.cp-logo img {
  position: absolute;
  left: 0;
  top: 10px;
  max-height: 92px;
  width: auto;
  object-fit: contain;
  z-index: 1010;
}

.cp-search-bar { flex: 1; display: flex; max-width: 700px; height: 40px; }
.cp-search-input { flex: 1; background: #fff; border: none; padding: 0 16px 0 40px; font-size: 15px; font-family: inherit; outline: none; color: var(--text); height: 40px; border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.cp-search-input::placeholder { color: #9ca3af; font-size: 13px; }
.cp-search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #9ca3af; font-size: 14px; pointer-events: none; }
.cp-search-btn { background: var(--primary); border: none; color: #fff; padding: 0 22px; font-size: 14px; font-weight: 600; cursor: pointer; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; transition: background .15s; font-family: inherit; }
.cp-search-btn:hover { background: var(--primary-hover); }
.cp-search-wrap { position: relative; flex: 1; }
.cp-search-suggest {
  position: absolute; top: 44px; left: 0; right: 0; background: #fff;
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); overflow: hidden; z-index: 1200; display: none;
  max-height: 420px; overflow-y: auto;
}
.cp-search-suggest.open { display: block; }
.cp-search-suggest a {
  display: flex; align-items: center; gap: 12px; padding: 8px 14px; color: var(--text);
  font-size: 13px; border-bottom: 1px solid var(--border);
}
.cp-search-suggest a:last-child { border-bottom: none; }
.cp-search-suggest a:hover { background: var(--bg); }
.cp-search-suggest img {
  flex-shrink: 0; width: 40px; height: 40px; object-fit: contain; background: var(--bg);
  border-radius: var(--radius-sm); border: 1px solid var(--border);
}
.cp-search-suggest .name { flex: 1; min-width: 0; line-height: 1.35; }
.cp-search-suggest .price { flex-shrink: 0; font-weight: 700; color: var(--primary); white-space: nowrap; }

.cp-nav-links { display: flex; gap: 4px; list-style: none; flex-shrink: 0; margin: 0; padding: 0; align-items: center; }
.cp-nav-links a { color: #cbd5e1; text-decoration: none; font-size: 13px; padding: 6px 12px; border-radius: var(--radius-sm); transition: all .15s; white-space: nowrap; }
.cp-nav-links a i { margin-right: 5px; }
.cp-nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.cp-nav-links a.active { color: #fff; background: rgba(255,255,255,.08); }
.cp-nav-links a.cta { background: var(--primary); color: #fff; font-weight: 600; }
.cp-notif-bell { position: relative; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; padding: 6px 10px; }
.cp-notif-bell i { margin-right: 0; }
.cp-notif-badge {
  position: absolute; top: 0; right: 2px; background: var(--red); color: #fff;
  font-size: 10px; font-weight: 800; line-height: 1; min-width: 16px; height: 16px;
  border-radius: 99px; display: flex; align-items: center; justify-content: center; padding: 0 3px;
}
.cp-nav-links a.cta:hover { background: var(--primary-hover); }

/* ── BURGER (mobil) ── */
.cp-burger-btn {
  display: none; flex-direction: column; justify-content: center; gap: 4px;
  width: 36px; height: 36px; background: none; border: none; cursor: pointer; padding: 0;
  flex-shrink: 0;
}
.cp-burger-btn span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.cp-burger-btn.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.cp-burger-btn.open span:nth-child(2) { opacity: 0; }
.cp-burger-btn.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── BREADCRUMB ── */
.cp-breadcrumb { background: var(--white); border-bottom: 1px solid var(--border); }
.cp-breadcrumb-inner { max-width: 1280px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; }
.cp-breadcrumb-inner a { color: var(--primary); }
.cp-breadcrumb-inner a:hover { text-decoration: underline; }

/* ── PAGE LAYOUT ──
   .cp-page má 3 grid bloky - boční panel (kategorie/filtr), hlavní obsah
   a sloupec s reklamami - pojmenované přes grid-template-areas, aby šlo
   pořadí reklam na mobilu přesunout až za hlavní obsah (produkty), viz
   media query níže, beze změny značení v šablonách. */
.cp-page {
  max-width: 1280px; margin: 0 auto; padding: 24px 20px; display: grid;
  grid-template-columns: 300px 1fr;
  grid-template-areas: "sidebar main" "ads main";
  gap: 24px; align-items: start;
}
.cp-page > .cp-sidebar { grid-area: sidebar; min-width: 0; }
.cp-page > main { grid-area: main; min-width: 0; }
.cp-page > .cp-ad-column { grid-area: ads; min-width: 0; }
.cp-page-full { max-width: 1280px; margin: 0 auto; padding: 24px 20px; }
.cp-page-narrow { max-width: 560px; margin: 0 auto; padding: 40px 20px; }

/* ── SIDEBAR ── */
.cp-sidebar { display: flex; flex-direction: column; gap: 16px; }
.cp-ad-column { display: flex; flex-direction: column; gap: 16px; }
.cp-sidebar-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.cp-sidebar-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--text-muted); padding: 14px 16px 10px; border-bottom: 1px solid var(--border); }
.cp-sidebar-title i { margin-right: 6px; color: var(--primary); }
.cp-cat-item i { margin-right: 5px; color: var(--text-light); font-size: 12px; }
.cp-cat-item.active i { color: var(--primary); }
.cp-cat-list { padding: 8px 0; }
.cp-cat-item { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; font-size: 14px; color: var(--text); text-decoration: none; transition: background .12s; cursor: pointer; }
.cp-cat-item:hover { background: var(--bg); color: var(--primary); }
.cp-cat-item.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.cp-cat-count { font-size: 12px; color: var(--text-light); background: var(--bg); border-radius: 99px; padding: 1px 8px; }
.cp-cat-item.active .cp-cat-count { background: rgba(67,180,195,.15); color: var(--primary); }

/* Select box s kategoriemi - vidět jen na mobilu (viz media query níže),
   na desktopu se místo něj zobrazuje řádek s čipy (.cp-cat-list). */
.cp-cat-select-wrap { display: none; padding: 10px 16px; }
.cp-cat-select {
  width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  font-family: inherit; font-size: 14px; color: var(--text); background: #fff;
  max-width: 100%; box-sizing: border-box;
}

.cp-price-filter { padding: 14px 16px; }
.cp-price-inputs { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.cp-price-input { flex: 1; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 7px 10px; font-size: 13px; font-family: inherit; outline: none; width: 100%; }
.cp-price-input:focus { border-color: var(--primary); }
.cp-price-sep { color: var(--text-light); font-size: 13px; }
.cp-price-btn { width: 100%; background: var(--primary); color: #fff; border: none; border-radius: var(--radius-sm); padding: 9px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; transition: background .15s; }
.cp-price-btn:hover { background: var(--primary-hover); }

/* ── BANNERY (300x300 / 728x90 / 300x600 / 468x60) ── */
.cp-banner-ad {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 12px; text-align: center; position: relative; margin-bottom: 16px;
}
.cp-banner-ad img { width: 100%; height: auto; border-radius: var(--radius-sm); display: block; margin: 0 auto; object-fit: cover; }
.cp-banner-label { position: absolute; top: 18px; left: 18px; background: rgba(26,35,50,.65); color: #fff; font-size: 10px; text-transform: uppercase; letter-spacing: .4px; padding: 2px 7px; border-radius: 99px; }

.cp-banner-300-300 img { max-width: 300px; aspect-ratio: 1/1; }
.cp-banner-300-600 img { max-width: 300px; aspect-ratio: 1/2; }
.cp-banner-728-90 img { max-width: 728px; aspect-ratio: 728/90; }
.cp-banner-468-60 img { max-width: 468px; aspect-ratio: 468/60; }

/* ── REKLAMNÍ IFRAME BANNERY (rotují na ceskemodelky.cz) ──
   Šířka i výška je vždy odvozená přes aspect-ratio + max-width:100%, ne
   pevné pixely s výjimkou jen pod jedním zlomem - takže se rámeček
   (a tedy i to, co se do něj vejde) proporčně zmenšuje na jakékoli šířce
   obrazovky, ne jen pod 600px. */
.cp-ad-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.cp-ad-row-center { justify-content: center; }
.cp-ad-slot {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 8px; display: flex; align-items: center; justify-content: center; overflow: hidden;
  box-sizing: border-box; max-width: 100%; min-width: 0;
}
.cp-ad-slot iframe { border: none; display: block; width: 100%; height: 100%; }
.cp-ad-300 { width: 300px; aspect-ratio: 1 / 1; }
.cp-ad-600 { width: 300px; aspect-ratio: 1 / 2; }
.cp-ad-728 { width: 728px; aspect-ratio: 728 / 90; margin: 0 auto 24px; }

/* Reklama vložená mezi produktové karty (viz partials/product-grid.php) -
   šíře se přizpůsobí sloupci mřížky, poměr stran zůstává 300x600. */
.cp-ad-in-grid { width: 100%; max-width: 300px; aspect-ratio: 1 / 2; margin: 0 auto; }

/* Pod 900px se .cp-page/.cp-sidebar mění na jeden sloupec (viz sekce
   RESPONSIVE níže) - od stejného zlomu chceme i reklamy v .cp-ad-row
   raději pod sebou (sloupec) než vedle sebe, ať se nikdy neriskuje, že
   se dvě 300px široké reklamy nevejdou vedle sebe a stránka se rozjede
   do vodorovného scrollu. */
@media (max-width: 900px) {
  .cp-ad-row { flex-direction: column; align-items: center; }
  .cp-ad-row .cp-ad-300,
  .cp-ad-row .cp-ad-600 { width: 100%; max-width: 300px; }
  .cp-ad-row .cp-ad-728 { width: 100%; max-width: 728px; }
}

/* ── ČLÁNKY (RSS box v levém sloupci, pod reklamními bannery) ── */
.cp-articles-list { padding: 6px 0; }
.cp-article-item {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 16px;
  text-decoration: none; border-bottom: 1px solid var(--border);
}
.cp-article-item:last-child { border-bottom: none; }
.cp-article-thumb { flex: 0 0 48px; width: 48px; height: 48px; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); }
.cp-article-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-article-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cp-article-title {
  font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.35;
  text-decoration: none;
}
.cp-article-title:hover { color: var(--primary); }
.cp-article-date { font-size: 11px; color: var(--text-light); }
.cp-article-desc { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.cp-article-more {
  align-self: flex-start; margin-top: 4px; font-size: 12px; font-weight: 700;
  color: var(--primary); text-decoration: none;
}
.cp-article-more:hover { color: var(--primary-hover); text-decoration: underline; }

/* ── VĚKOVÉ OVĚŘENÍ (kategorie Erotika) ── */
.cp-erotic-blur img { filter: blur(24px); transition: filter .3s; }
body.age-confirmed .cp-erotic-blur img { filter: none; }

.cp-age-gate-overlay {
  position: fixed; inset: 0; background: rgba(15,20,30,.88); z-index: 5000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.cp-age-gate-box { background: #fff; border-radius: var(--radius); padding: 32px; width: 100%; max-width: 420px; text-align: center; box-sizing: border-box; }
.cp-age-gate-box h2 { font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.cp-age-gate-box p { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.cp-age-gate-actions { display: flex; gap: 12px; }
.cp-age-gate-actions .cp-btn { flex: 1; }

/* ── MODÁLNÍ OKNO (specifikace feedu v administraci firmy) ── */
.cp-modal-overlay {
  position: fixed; inset: 0; background: rgba(15,20,30,.75); z-index: 5000;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.cp-modal-overlay.open { display: flex; }
.cp-modal-box { position: relative; background: #fff; border-radius: var(--radius); width: 100%; max-width: 900px; height: 85vh; box-sizing: border-box; overflow: hidden; }
.cp-modal-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--bg); color: var(--text); font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cp-modal-close:hover { background: var(--border); }
.cp-modal-box iframe { width: 100%; height: 100%; border: none; }

/* ── LOGO FIRMY NAD MENU ADMINISTRACE ── */
.cp-dash-logo { text-align: center; padding: 16px 12px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 12px; }
.cp-dash-logo img { max-width: 100%; max-height: 64px; object-fit: contain; }

@media (max-width: 480px) {
  .cp-age-gate-box { padding: 22px; }
  .cp-age-gate-box h2 { font-size: 17px; }
  .cp-age-gate-actions { flex-direction: column; }
}

/* ── MAIN / RESULTS ── */
.cp-results-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.cp-results-title { font-size: 20px; font-weight: 700; }
.cp-results-title i, .cp-card-category i, .cp-section-heading i { margin-right: 5px; color: var(--primary); }
.cp-section-heading a i { margin-right: 0; margin-left: 2px; color: inherit; }
.cp-results-count { font-size: 14px; color: var(--text-muted); font-weight: 400; margin-left: 8px; }
.cp-sort-bar { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.cp-sort-select { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 12px; font-size: 13px; font-family: inherit; background: var(--white); cursor: pointer; outline: none; }

/* ── PRODUCT GRID / CARD ── */
.cp-product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cp-product-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .18s, transform .18s; display: flex; flex-direction: column; position: relative; }
.cp-product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.cp-card-badge { position: absolute; top: 10px; left: 10px; z-index: 2; }
.cp-fav-btn { position: absolute; top: 10px; right: 10px; z-index: 2; width: 32px; height: 32px; border-radius: 50%; border: none; background: rgba(255,255,255,.9); box-shadow: 0 1px 4px rgba(0,0,0,.15); display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--text-muted); cursor: pointer; transition: transform .15s, color .15s; }
.cp-fav-btn:hover { transform: scale(1.1); color: var(--red); }
.cp-fav-btn.active { color: var(--red); }
.cp-fav-btn-inline.active { color: var(--red); border-color: var(--red); }
.cp-badge-best { background: linear-gradient(135deg, #43b4c3, #2e9aab); color: #fff; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 3px 8px; border-radius: 99px; display: flex; align-items: center; gap: 3px; }
.cp-badge-new { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 3px 8px; border-radius: 99px; display: flex; align-items: center; gap: 3px; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.cp-card-img { aspect-ratio: 1/1; background: #f9fafb; display: flex; align-items: center; justify-content: center; padding: 16px; overflow: hidden; }
.cp-card-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s; }
.cp-product-card:hover .cp-card-img img { transform: scale(1.04); }
.cp-card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.cp-card-category { font-size: 11px; color: var(--text-light); text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.cp-card-title { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cp-card-shop { font-size: 12px; color: var(--text-muted); }
.cp-card-shop span { color: var(--primary); font-weight: 500; }
.cp-card-footer { padding: 0 14px 14px; margin-top: auto; }
.cp-price-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.cp-price-main { font-size: 22px; font-weight: 800; color: var(--text); line-height: 1; }
.cp-price-main .cp-currency { font-size: 15px; font-weight: 600; color: var(--text-muted); margin-left: 2px; }
.cp-btn-buy { margin-top: 10px; display: block; width: 100%; background: var(--primary); color: #fff; border: none; border-radius: var(--radius-sm); padding: 10px; font-size: 14px; font-weight: 600; text-align: center; text-decoration: none; cursor: pointer; transition: background .15s; font-family: inherit; }
.cp-btn-buy:hover { background: var(--primary-hover); color: #fff; }
.cp-btn-detail { margin-top: 6px; display: block; width: 100%; background: transparent; color: var(--text-muted); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px; font-size: 13px; font-weight: 500; text-align: center; cursor: pointer; transition: all .15s; font-family: inherit; text-decoration: none; }
.cp-btn-detail:hover { border-color: var(--primary); color: var(--primary); }
.cp-btn-buy i, .cp-btn-detail i, .cp-price-btn i { margin-right: 5px; }

.cp-section-heading { font-size: 18px; font-weight: 700; color: var(--text); padding: 16px 0 12px; border-bottom: 3px solid var(--primary); margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; }
.cp-section-heading a { font-size: 13px; font-weight: 500; color: var(--primary); }

/* ── FAQ (harmonika, úvodní stránka) ── */
.cp-faq { display: flex; flex-direction: column; gap: 10px; }
.cp-faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 18px; }
.cp-faq-item summary { cursor: pointer; font-weight: 700; font-size: 14.5px; color: var(--text); list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cp-faq-item summary::-webkit-details-marker { display: none; }
.cp-faq-chevron { transition: transform .15s; flex-shrink: 0; color: var(--text-muted); }
.cp-faq-item[open] .cp-faq-chevron { transform: rotate(180deg); }
.cp-faq-item p { margin-top: 10px; color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* ── HERO ── */
.cp-hero { background: linear-gradient(135deg, var(--navy) 0%, #2d4a6e 100%); color: #fff; padding: 32px 28px; border-radius: var(--radius); margin-bottom: 24px; position: relative; overflow: hidden; }
.cp-hero::after { content: ''; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px; border-radius: 50%; background: rgba(67,180,195,.12); pointer-events: none; }
.cp-hero h1 { font-size: 26px; font-weight: 800; margin-bottom: 8px; line-height: 1.2; color: #fff; }
.cp-hero p { font-size: 15px; color: #94a3b8; max-width: 500px; margin: 0; }
.cp-hero-stats { display: flex; gap: 28px; margin-top: 20px; flex-wrap: wrap; }
.cp-hero-stat-num { font-size: 22px; font-weight: 800; color: var(--primary); }
.cp-hero-stat-label { font-size: 12px; color: #64748b; margin-top: 2px; }
.cp-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.cp-hero-cta {
  display: inline-block; background: #fff; color: var(--primary-hover);
  font-size: 15px; font-weight: 800; padding: 14px 32px; border-radius: var(--radius-sm);
  text-decoration: none; position: relative; transition: transform .12s, box-shadow .12s;
  box-shadow: var(--shadow-md);
}
.cp-hero-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); color: var(--primary-hover); }
.cp-hero-cta-outline {
  background: transparent; color: #fff; box-shadow: none; border: 1px solid rgba(255,255,255,.4);
}
.cp-hero-cta-outline:hover { background: rgba(255,255,255,.08); color: #fff; box-shadow: none; }

/* ── PAGINATION ── */
.cp-pagination { display: flex; justify-content: center; margin: 32px 0 0; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; }
.cp-pagination a, .cp-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); color: var(--primary); background: #fff; font-size: 13px; }
.cp-pagination .active span { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── FOOTER ── */
.cp-footer { background: var(--navy); color: #94a3b8; margin-top: 48px; padding: 40px 20px 20px; }
.cp-footer-inner { max-width: 1280px; margin: 0 auto; }
.cp-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.cp-footer-brand { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 10px; display: block; }
.cp-footer-brand span { color: var(--primary); }
.cp-footer-desc { font-size: 13px; line-height: 1.7; color: #94a3b8; }
.cp-footer-col-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: #cbd5e1; margin-bottom: 12px; }
.cp-footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; padding: 0; margin: 0; }
.cp-footer-links a { color: #94a3b8; text-decoration: none; font-size: 13px; transition: color .12s; }
.cp-footer-links a i { margin-right: 6px; width: 14px; text-align: center; }
.cp-footer-links a:hover { color: var(--primary); }
.cp-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; font-size: 12px; text-align: center; color: #64748b; }
.cp-footer-operator { border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 32px; }
.cp-footer-operator p { font-size: 12px; line-height: 1.7; color: #94a3b8; margin: 0; }
.cp-footer-operator a { color: #94a3b8; text-decoration: none; }
.cp-footer-operator a:hover { color: var(--primary); }
.cp-footer-note { color: #64748b; }

.cp-back-top { position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px; background: var(--primary); color: #fff; border: none; border-radius: 50%; font-size: 18px; cursor: pointer; box-shadow: 0 4px 14px rgba(67,180,195,.4); display: none; align-items: center; justify-content: center; transition: background .15s; z-index: 50; }
.cp-back-top:hover { background: var(--primary-hover); }
.cp-back-top.visible { display: flex; }

.cp-fav-float { position: fixed; bottom: 80px; right: 24px; width: 44px; height: 44px; background: var(--red); color: #fff; border: none; border-radius: 50%; font-size: 18px; cursor: pointer; box-shadow: 0 4px 14px rgba(220,38,38,.4); display: flex; align-items: center; justify-content: center; transition: background .15s, transform .15s; z-index: 50; text-decoration: none; }
.cp-fav-float:hover { background: #b91c1c; transform: scale(1.06); }
.cp-fav-float-count { position: absolute; top: -4px; right: -4px; background: #fff; color: var(--red); font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0,0,0,.25); }

/* ── FORMS ── */
.cp-form-group { margin-bottom: 16px; }
.cp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cp-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.cp-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.cp-input, .cp-select, .cp-textarea {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 14px; font-family: inherit; outline: none; background: #fff; color: var(--text);
}
.cp-input:focus, .cp-select:focus, .cp-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(67,180,195,.15); }
.cp-textarea { resize: vertical; min-height: 100px; }
.cp-help { font-size: 12px; color: var(--text-muted); margin-top: 4px; margin-bottom: 10px; }

/* Quill WYSIWYG (viz partials/quill-field.php) - bez vlastní výšky by
   editor zdědil jen malou výchozí výšku z quill.snow.css. */
.cp-quill { background: #fff; }
.cp-quill .ql-toolbar.ql-snow { border-color: var(--border); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.cp-quill .ql-container.ql-snow { border-color: var(--border); border-radius: 0 0 var(--radius-sm) var(--radius-sm); font-family: inherit; }
.cp-quill .ql-editor { min-height: 220px; font-size: 14px; line-height: 1.6; }
.cp-file { font-size: 13px; max-width: 100%; }

/* Rozšířené mapování kategorií (viz partials/category-mapping-fields.php) */
.cp-mapping-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.cp-mapping-row .cp-input { flex: 1; min-width: 160px; }
.cp-mapping-row .cp-select { flex: 1; min-width: 160px; }

.cp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; border-radius: var(--radius-sm); padding: 11px 20px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; text-decoration: none; transition: background .15s, box-shadow .15s; }
.cp-btn-primary { background: var(--primary); color: #fff; }
.cp-btn-primary:hover { background: var(--primary-hover); color: #fff; }
.cp-btn-block { width: 100%; }
.cp-btn-outline { background: #fff; color: var(--text); border: 1px solid var(--border); }
.cp-btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.cp-btn-danger { background: var(--red); color: #fff; }
.cp-btn-danger:hover { background: #b91c1c; color: #fff; }
.cp-btn-sm { padding: 7px 14px; font-size: 13px; }

/* ── CARDS / AUTH ── */
.cp-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 32px; }
.cp-product-detail { display: grid; grid-template-columns: 340px 1fr; gap: 32px; }
@media (max-width: 768px) {
  .cp-product-detail { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
  .cp-product-detail .cp-card-img { max-width: 320px; margin: 0 auto; }
}
.cp-auth-title { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.cp-auth-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.cp-auth-links { text-align: center; margin-top: 18px; font-size: 13px; color: var(--text-muted); }

/* ── ALERTS ── */
.cp-alert { border-radius: var(--radius-sm); padding: 12px 16px; font-size: 13px; margin-bottom: 16px; }
.cp-alert-error { background: var(--red-light); color: var(--red); border: 1px solid #fecaca; }
.cp-alert-success { background: var(--green-light); color: var(--green); border: 1px solid #bbf7d0; }
.cp-alert-info { background: var(--primary-light); color: var(--primary-hover); border: 1px solid #b7e6ec; }

/* ── JAK TO FUNGUJE (kroky) ── */
.cp-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 24px; }
.cp-step-card { position: relative; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 28px 20px 22px; text-align: center; }
.cp-step-num {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%); width: 26px; height: 26px;
  border-radius: 50%; background: var(--primary); color: #fff; font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.cp-step-icon { font-size: 26px; color: var(--primary); margin: 10px 0 12px; }
.cp-step-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.cp-step-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin: 0; }

@media (max-width: 900px) { .cp-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cp-steps { grid-template-columns: 1fr; } }

.cp-features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cp-feature-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px 18px; }
.cp-feature-icon { font-size: 22px; color: var(--primary); margin-bottom: 10px; }
.cp-feature-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.cp-feature-card p { font-size: 12.5px; color: var(--text-muted); line-height: 1.55; margin: 0; }

@media (max-width: 900px) { .cp-features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cp-features-grid { grid-template-columns: 1fr; } }

/* ── KATALOG E-SHOPŮ ── */
.cp-shops-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cp-shop-card {
  position: relative; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 28px 22px 24px; display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: box-shadow .15s, transform .15s;
}
.cp-shop-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cp-shop-verified-badge {
  position: absolute; top: 14px; right: 14px; background: var(--green); color: #fff;
  font-size: 10px; font-weight: 800; line-height: 1.3; text-align: center; text-transform: uppercase;
  letter-spacing: .4px; padding: 6px 10px; border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.cp-shop-logo {
  width: 88px; height: 88px; border-radius: 16px; background: var(--bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 16px;
}
.cp-shop-logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.cp-shop-name { font-size: 19px; font-weight: 800; color: var(--text); line-height: 1.25; margin-bottom: 10px; }
.cp-shop-desc { font-size: 13px; color: var(--text-muted); line-height: 1.55; margin-bottom: 18px; }
.cp-shop-card-actions { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: auto; }

@media (max-width: 1024px) { .cp-shops-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cp-shops-grid { grid-template-columns: 1fr; } }

/* ── BADGES ── */
.cp-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; text-transform: uppercase; letter-spacing: .4px; }
.cp-badge-green { background: var(--green-light); color: var(--green); }
.cp-badge-red { background: var(--red-light); color: var(--red); }
.cp-badge-amber { background: var(--amber-light); color: var(--amber); }
.cp-badge-gray { background: var(--bg); color: var(--text-muted); }

/* ── DASHBOARD ── */
.cp-dash-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.cp-dash-layout > * { min-width: 0; }
.cp-dash-nav { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.cp-dash-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text); font-size: 14px; font-weight: 500; }
.cp-dash-nav a:hover { background: var(--bg); color: var(--primary); }
.cp-dash-nav a.active { background: var(--primary-light); color: var(--primary); font-weight: 700; }
.cp-dash-burger {
  display: none; align-items: center; gap: 8px; width: 100%; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px;
  font-size: 14px; font-weight: 700; color: var(--text); cursor: pointer; font-family: inherit;
  margin-bottom: 12px;
}
.cp-dash-main { display: flex; flex-direction: column; gap: 20px; }
.cp-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cp-stat-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 18px; }
.cp-stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; font-weight: 600; }
.cp-stat-label i { margin-right: 5px; }
.cp-stat-value { font-size: 26px; font-weight: 800; margin-top: 6px; }

/* ── ADMIN: import filtr + log aktivity ── */
.cp-import-filter { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.cp-import-filter label { display: flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.cp-activity-list { display: flex; flex-direction: column; gap: 2px; }
.cp-activity-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 4px; flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}
.cp-activity-row:last-child { border-bottom: none; }
.cp-activity-text { flex: 1; min-width: 200px; font-size: 13px; color: var(--text); }
.cp-activity-time { font-size: 12px; color: var(--text-light); white-space: nowrap; }

/* ── TABLE ── */
.cp-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.cp-table th, .cp-table td { padding: 12px 16px; text-align: left; font-size: 13px; border-bottom: 1px solid var(--border); }
.cp-table th { background: var(--bg); color: var(--text-muted); font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: .4px; }
.cp-table tr:last-child td { border-bottom: none; }

/* ── PRICING (Stripe balíčky) ── */
.cp-pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1200px) { .cp-pricing-grid { grid-template-columns: repeat(2, 1fr); } }
.cp-pricing-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 28px; display: flex; flex-direction: column; border: 2px solid transparent; }
.cp-pricing-card.featured { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.cp-pricing-name { font-size: 16px; font-weight: 700; }
.cp-pricing-price { font-size: 34px; font-weight: 800; margin: 10px 0 4px; }
.cp-pricing-price small { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.cp-pricing-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.cp-pricing-features { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 10px; }
.cp-pricing-features li { font-size: 13px; display: flex; gap: 8px; align-items: flex-start; }
.cp-pricing-features li::before { content: '✓'; color: var(--green); font-weight: 700; }
.cp-pricing-badge { align-self: flex-start; margin-bottom: 10px; }

/* ── NABÍDKY OD DALŠÍCH OBCHODŮ (detail produktu) ── */
.cp-offer-thumb { width: 110px; height: 110px; object-fit: contain; background: var(--bg); border-radius: var(--radius-sm); border: 1px solid var(--border); }
.cp-offer-shop { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.cp-offer-shop-logo { width: 110px; height: 110px; object-fit: contain; background: var(--bg); border-radius: 6px; border: 1px solid var(--border); }
.cp-offer-price { font-size: 20px !important; font-weight: 800; color: var(--text); white-space: nowrap; }
.cp-offer-price .cp-currency { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-left: 2px; }

/* ── META STAT LIŠTA + ÚSPORA (detail produktu) ── */
.cp-price-meta { display: flex; flex-wrap: wrap; gap: 14px; margin: 8px 0; font-size: 13px; color: var(--text-muted); }
.cp-price-meta span { display: inline-flex; align-items: center; gap: 5px; }
.cp-savings-badge {
  display: inline-flex; align-items: center; gap: 6px; background: var(--green-light); color: var(--green);
  font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: var(--radius-sm); margin-bottom: 14px;
}
.cp-product-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cp-price-trend { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; font-size: 14px; margin-left: 8px; vertical-align: middle; }
.cp-price-trend-up { background: var(--red-light); color: var(--red); }
.cp-price-trend-down { background: var(--green-light); color: var(--green); }
.cp-price-trend-same { background: var(--bg); color: var(--text-muted); }

/* ── DETAIL OBCHODU (/obchod/{id}) ── */
.cp-shop-detail { position: relative; display: flex; gap: 24px; align-items: flex-start; }
.cp-shop-detail-logo {
  width: 110px; height: 110px; flex-shrink: 0; border-radius: 16px; background: var(--bg);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.cp-shop-detail-logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.cp-shop-detail-body { flex: 1; min-width: 0; }
.cp-shop-detail-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-size: 14px; color: var(--text-muted); }
.cp-shop-detail-stats > span { display: inline-flex; align-items: center; gap: 6px; }
.cp-shop-detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

@media (max-width: 640px) {
  .cp-shop-detail { flex-direction: column; align-items: center; text-align: center; }
  .cp-shop-detail-stats { justify-content: center; }
  .cp-shop-detail-actions { justify-content: center; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) { .cp-product-grid { grid-template-columns: repeat(2, 1fr); } .cp-pricing-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .cp-dash-layout { grid-template-columns: 1fr; }
  /* Na mobilu jde reklamní sloupec (ads) až za hlavní obsah (main) -
     kategorie/filtr zůstávají nahoře, reklamy se přesunou pod produkty. */
  .cp-page {
    grid-template-columns: 1fr;
    grid-template-areas: "sidebar" "main" "ads";
  }
  /* Menu administrace (Přehled/Firmy/Produkty/...) je na mobilu schované
     za tlačítko "Menu" - beze změny by úplně zmizelo, protože sidebar
     vedle obsahu na malé šířce obrazovky nemá kam se vejít. */
  .cp-dash-burger { display: flex; }
  .cp-dash-nav { display: none; }
  .cp-dash-nav.open { display: flex; margin-bottom: 12px; }
  .cp-footer-grid { grid-template-columns: 1fr 1fr; }
  .cp-stat-grid { grid-template-columns: 1fr; }
  .cp-form-row { grid-template-columns: 1fr; }
  .cp-contact-grid { grid-template-columns: 1fr; }

  /* Na mobilu necháváme jen kategorie - jako select box místo řádku
     s čipy (ten se dal snadno rozjet přes okraj obrazovky), filtr
     ceny/řazení/banner se schovají, ať sidebar nezabírá zbytečně moc
     místa nad výsledky. */
  .cp-sidebar { display: block; margin-bottom: 16px; }
  .cp-sidebar > .cp-sidebar-card:not(.cp-cat-card) { display: none; }
  .cp-cat-card .cp-cat-list { display: none; }
  .cp-cat-select-wrap { display: block; }

  /* Filtr kategorií zůstane při scrollování přilepený pod navigací, ať
     ho jde kdykoliv použít bez nutnosti scrollovat zpátky nahoru. Výšku
     navigace (proměnná výška kvůli zalamování na mobilu) hlídá app.js. */
  .cp-cat-card { position: sticky; top: var(--navbar-h, 64px); z-index: 20; }
}
@media (max-width: 768px) {
  .cp-navbar-inner { flex-wrap: wrap; height: auto; padding: 12px 16px; gap: 8px; position: relative; }
  .cp-logo {
    order: 1; width: calc(100% - 44px); min-width: 0; height: auto;
    justify-content: center; font-size: 18px;
  }
  .cp-logo img {
    position: static;
    max-height: 56px;
    margin: 0 auto;
  }
  .cp-burger-btn { display: flex; order: 2; }
  .cp-search-bar { order: 3; width: 100%; max-width: 100%; height: 38px; }

  .cp-nav-links {
    order: 4; display: none; width: 100%; flex-direction: column; align-items: stretch;
    gap: 2px; background: var(--navy-light); border-radius: var(--radius-sm); padding: 8px; margin-top: 4px;
  }
  .cp-nav-links.open { display: flex; }
  .cp-nav-links li { width: 100%; }
  .cp-nav-links a { display: block; padding: 10px 12px; font-size: 14px; }

  .cp-page { padding: 16px; gap: 16px; }
  .cp-page-full { padding: 16px; }
  .cp-hero { padding: 20px 16px; }
  .cp-hero h1 { font-size: 20px; }
  .cp-card { padding: 20px; }
}
@media (max-width: 600px) {
  .cp-product-grid { grid-template-columns: 1fr; }
  .cp-footer-grid { grid-template-columns: 1fr; }
}
