/* ============================================================
   HLAVOUNI.CZ — Design system
   Teplý, klidný lifestyle e-shop s čepicemi a pokrývkami hlavy.
   Krémová plocha, tmavá tlačítka, olivová akcentová plocha,
   ručně psané poznámky (Caveat).
   ============================================================ */

:root {
  /* Surfaces */
  --bg-0: #ffffff;
  --bg-1: #f3f2ef;      /* page background — light warm gray */
  --bg-2: #ffffff;      /* cards */
  --bg-3: #ebe9e5;      /* product image plate, category cards */
  --bg-4: #e1dfda;
  --beige: #f3e9da;     /* newsletter card, světlý banner */
  --bg-dark: #141414;
  --bg-dark-2: #2a2a2a;
  --bg-footer: #ffffff;

  --line: #e5e3de;
  --line-strong: #d2cfc8;

  /* Text */
  --fg-0: #141414;
  --fg-1: #2e2e2e;
  --fg-2: #6d6a63;
  --fg-3: #9b978e;
  --fg-on-dark: #ffffff;
  --fg-on-dark-2: #cfcbc2;

  /* Brand */
  --orange: #f26a1f;        /* hlavní akcent — Hlavouni orange */
  --orange-hot: #ff7a2e;
  --orange-deep: #d9560f;
  --orange-tint: rgba(242, 106, 31, 0.12);
  --olive: #4b5a32;
  --olive-deep: #3a4626;
  --olive-tint: rgba(110, 123, 91, 0.14);
  --sand: #f5c542;          /* Bestseller badge */
  --sand-tint: rgba(228, 181, 74, 0.18);
  --green: #2e9e44;         /* Novinka badge */
  --red: var(--orange);     /* Novinky / Výprodej, slevy — v3 oranžová */
  --red-hot: var(--orange-hot);
  --red-deep: var(--orange-deep);
  --red-tint: var(--orange-tint);
  --red-glow: rgba(242, 106, 31, 0.22);

  --amber: #d99000;
  --info: #2563eb;
  --danger: #c8452c;
  --success: #3b7d2f;
  --warning: #d99000;

  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Spacing */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(27,27,27,.05);
  --shadow-md: 0 8px 28px rgba(27,27,27,.08);
  --shadow-lg: 0 24px 60px rgba(27,27,27,.12);
  --shadow-red: 0 12px 36px rgba(200, 69, 44, 0.20);

  /* Type */
  --font-display: 'Outfit', 'Inter', -apple-system, system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, system-ui, sans-serif;
  --font-hand: 'Caveat', 'Bradley Hand', cursive;
  --font-hero: 'Archivo Black', 'Outfit', Impact, sans-serif;
  /* Starší šablony používají --font-mono pro eyebrow labely — mapujeme na
     body font, aby web zůstal měkký a bez „technického“ monospace. */
  --font-mono: 'Inter', -apple-system, system-ui, sans-serif;

  /* Compatibility shims for legacy code paths (admin partials, older views). */
  --primary: var(--bg-dark);
  --primary-dark: #000000;
  --primary-light: var(--bg-dark-2);
  --primary-rgb: 27,27,27;
  --dark: var(--bg-1);
  --dark-1: var(--bg-1);
  --dark-2: var(--bg-2);
  --dark-3: var(--bg-3);
  --gray: var(--fg-2);
  --gray-light: var(--fg-3);
  --white: var(--fg-0);
  --accent: var(--orange);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg-1);
  color: var(--fg-1);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* clip, ne hidden: hidden dělá z html/body scroll kontejner a rozbije position: sticky (souhrn v pokladně). */
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
}
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
button { font-family: inherit; font-size: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
::selection { background: var(--orange); color: white; }

/* ============ Layout ============ */
.container { max-width: 1240px; margin: 0 auto; padding: 0 var(--s-5); }
.container-wide { max-width: 1320px; margin: 0 auto; padding: 0 var(--s-5); }
@media (max-width: 600px) { .container, .container-wide { padding: 0 var(--s-4); } }

/* ============ Typography ============ */
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.h-display, .h1, .h2, .h3 { font-family: var(--font-display); color: var(--fg-0); font-weight: 700; letter-spacing: -0.02em; }
.h-display { font-size: clamp(44px, 6vw, 84px); line-height: 1.0; }
.h1 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.02; }
.h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.1; }
.h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }
.hand { font-family: var(--font-hand); font-weight: 500; color: var(--fg-1); line-height: 1.05; }
.text-mono { font-family: var(--font-body); font-size: 12px; letter-spacing: 0.02em; }
.muted { color: var(--fg-2); }
.dim { color: var(--fg-3); }
.lead { font-size: 17px; line-height: 1.6; color: var(--fg-2); }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  color: var(--fg-0);
}
.header-main {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: var(--s-4);
  height: 74px;
}
.header-search-inline {
  display: flex; align-items: center; gap: 8px;
  width: clamp(170px, 15vw, 230px); height: 40px;
  padding: 0 6px 0 14px;
  background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-pill);
  color: var(--fg-3); transition: border-color .15s, background .15s;
}
.header-search-inline:focus-within { border-color: var(--fg-0); background: #fff; }
.header-search-inline input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 13px; color: var(--fg-0); }
.header-search-inline input::placeholder { color: var(--fg-3); }
.header-search-inline button { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--fg-0); }
.header-search-inline button:hover { background: var(--bg-3); }
.icon-btn--search { display: none; }
@media (max-width: 1180px) { .header-search-inline { display: none; } .icon-btn--search { display: inline-flex; } .header-main { grid-template-columns: auto 1fr auto; } }
.header-logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--fg-0); }
.header-logo img, .header-logo svg { height: 44px; width: auto; display: block; }
.logo-lockup { display: inline-flex; align-items: center; gap: 8px; }
.logo-lockup .logo-mascots { height: 42px; width: auto; flex-shrink: 0; }
.logo-lockup .logo-mark { width: 36px; height: 36px; flex-shrink: 0; }
.logo-lockup .logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-lockup .logo-name { font-family: var(--font-display); font-weight: 900; font-size: 20px; letter-spacing: -0.01em; color: var(--fg-0); white-space: nowrap; }
.logo-lockup .logo-name .dot { color: var(--orange); }
.logo-lockup .logo-tag { font-size: 8px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--fg-1); margin-top: 3px; font-weight: 700; }

.main-nav { display: flex; align-items: center; justify-content: center; gap: 2px; min-width: 0; }
.nav-link {
  padding: 8px 9px;
  border-radius: var(--r-xs);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg-1);
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--fg-0); background: var(--bg-1); }
.nav-link.active { color: var(--fg-0); font-weight: 600; }
.nav-link.featured { color: var(--orange); font-weight: 600; }
.nav-link.featured:hover { color: var(--red-deep); background: var(--red-tint); }

.header-actions { display: flex; align-items: center; gap: 4px; justify-self: end; }
.icon-btn {
  width: 40px; height: 40px;
  border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg-0);
  position: relative;
  transition: background .15s;
  background: transparent;
  border: none;
}
.icon-btn:hover { background: var(--bg-1); }
.icon-btn .badge, .cart-btn .cart-count {
  position: absolute; top: 4px; right: 2px;
  background: var(--red); color: white;
  font-size: 10px; font-weight: 700; line-height: 1;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}
.cart-btn { position: relative; }
.cart-btn > span:not(.cart-count) { display: none; }
.cart-btn .cart-count { background: var(--orange); }

.mobile-menu-btn { display: none; width: 40px; height: 40px; border-radius: var(--r-pill); align-items: center; justify-content: center; color: var(--fg-0); }
.mobile-menu-btn:hover { background: var(--bg-1); }

/* Collapsible search bar under the header row */
.header-search-bar { display: none; border-top: 1px solid var(--line); padding: 12px 0; }
.header-search-bar.open { display: block; }
.header-search {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 6px 6px 6px 16px;
  max-width: 720px; margin: 0 auto;
  transition: border-color .15s, box-shadow .15s;
}
.header-search:focus-within { border-color: var(--fg-0); box-shadow: 0 0 0 4px rgba(27,27,27,.06); background: #fff; }
.header-search input { flex: 1; background: none; border: none; outline: none; font-size: 14px; color: var(--fg-0); min-width: 0; }
.header-search input::placeholder { color: var(--fg-3); }
.header-search .search-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-dark); color: white;
  padding: 9px 16px; border-radius: var(--r-xs);
  font-weight: 600; font-size: 13px; transition: background .15s;
}
.header-search .search-btn:hover { background: #000; }

@media (max-width: 960px) {
  .header-main { grid-template-columns: auto 1fr; height: 64px; gap: var(--s-4); }
  .header-search-inline { display: none; }
  .main-nav { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .logo-lockup .logo-tag { display: none; }
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px;
  border-radius: var(--r-xs);
  font-weight: 600; font-size: 14px; letter-spacing: 0;
  transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  font-family: inherit;
  text-decoration: none;
  line-height: 1.2;
}
.btn svg { flex-shrink: 0; }
.btn-primary, .btn-dark { background: var(--bg-dark); color: #fff; border-color: var(--bg-dark); }
.btn-primary:hover, .btn-dark:hover { background: #000; color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: #fff; color: var(--fg-0); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--fg-0); }
.btn-ghost { background: transparent; color: var(--fg-0); border-color: var(--line-strong); }
.btn-ghost:hover { background: #fff; border-color: var(--fg-0); }
.btn-outline { background: transparent; color: var(--fg-0); border-color: var(--fg-0); }
.btn-outline:hover { background: var(--bg-dark); color: #fff; }
.btn-olive { background: var(--olive); color: #fff; border-color: var(--olive); }
.btn-olive:hover { background: var(--olive-deep); color: #fff; }
.btn-orange { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-orange:hover { background: var(--orange-deep); border-color: var(--orange-deep); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(242,106,31,.28); }
.btn-white { background: #fff; color: var(--fg-0); border-color: #fff; }
.btn-white:hover { background: var(--bg-1); }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: var(--red-deep); color: white; }
.btn-lg { padding: 15px 26px; font-size: 15px; }
.btn-sm { padding: 8px 14px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn[disabled], .btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* Underlined text link with arrow — "Zobrazit všechny →" */
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--fg-0);
  padding-bottom: 4px; border-bottom: 1.5px solid var(--fg-0);
  transition: gap .15s, color .15s, border-color .15s;
}
.link-arrow:hover { gap: 12px; color: var(--olive); border-color: var(--olive); }

/* ============ Cards ============ */
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow-md); }
.card-body { padding: var(--s-5); }

/* ============ Product card (partials/product-card.php) ============ */
.product-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--line-strong); }
.product-card .pc-link { display: flex; flex-direction: column; flex: 1; color: inherit; }
.product-card .image-wrap {
  aspect-ratio: 1 / 1;
  background: #fff;
  position: relative; overflow: hidden;
  padding: 0;
}
.product-card .image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .image-wrap img { transform: scale(1.05); }
.product-card .image-wrap.is-photo { padding: 0; }
.product-card .image-wrap.is-photo img { object-fit: cover; }
.product-card .no-image { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--fg-3); }
.product-card .badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; max-width: calc(100% - 60px); }
.product-card .badge {
  display: inline-flex; align-items: center;
  padding: 5px 10px; border-radius: var(--r-xs);
  font-size: 11px; font-weight: 600; letter-spacing: 0.01em;
  color: white; background: var(--fg-2);
}
.product-card .badge-best { background: var(--sand); color: var(--fg-0); }
.product-card .badge-new { background: var(--green); color: white; }
.product-card .badge-sale, .product-card .sale-badge, .product-card .flash-badge { background: var(--red); color: white; }
.product-card .badge-sold { background: var(--fg-2); color: white; }
.product-card .badge-clearance { background: var(--fg-0); color: #fff; }
.product-card .flash-cd { margin-left: 4px; opacity: 0.85; font-variant-numeric: tabular-nums; }
.product-card .pc-wish {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 34px; height: 34px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg-1); background: transparent; transition: background .15s, color .15s;
}
.product-card .pc-wish:hover { background: #fff; color: var(--red); }
.product-card .pc-wish.is-active { color: var(--red); }
.product-card .info { padding: 14px 16px 10px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card .swatches { display: flex; gap: 6px; align-items: center; min-height: 12px; }
.product-card .swatch { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.product-card .swatch-more { font-size: 11px; color: var(--fg-3); margin-left: 2px; }
.product-card .cat { font-size: 12.5px; color: var(--fg-2); line-height: 1.3; }
.product-card .name {
  font-size: 14.5px; font-weight: 600; color: var(--fg-0); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card .pc-footer-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 16px 16px; margin-top: auto; }
.product-card .pc-price-col { display: flex; flex-direction: column; }
.product-card .price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.product-card .price { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--fg-0); line-height: 1; letter-spacing: -0.01em; }
.product-card .price-pending { font-size: 12.5px; font-weight: 600; color: var(--fg-3); font-family: var(--font-body); }
.product-card .old-price { font-size: 12px; color: var(--fg-3); text-decoration: line-through; }
.product-card .price-prefix { font-size: 12px; color: var(--fg-2); font-weight: 500; }
.product-card .stock { font-size: 11.5px; color: var(--fg-3); display: inline-flex; align-items: center; gap: 6px; }
.product-card .stock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.product-card .stock.stock-in { color: var(--green); }
.product-card .stock.stock-out { color: var(--fg-3); }
.product-card .stock.stock-order { color: var(--amber); }
.product-card .pc-qa-form { display: flex; align-items: center; }
.product-card .pc-qa-add, .product-card .pc-qa-detail {
  width: 40px; height: 40px; border-radius: var(--r-xs);
  background: var(--bg-dark); color: white;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, transform .15s;
}
.product-card .pc-qa-add:hover, .product-card .pc-qa-detail:hover { background: #000; transform: translateY(-1px); }
.product-card .pc-qa-soldout { font-size: 12px; font-weight: 600; color: var(--fg-3); text-transform: uppercase; letter-spacing: .04em; }

/* ============ Section badges ============ */
.badge-tag { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: var(--r-xs); font-size: 11px; font-weight: 600; }
.badge-new { background: var(--green); color: white; }
.badge-sale { background: var(--red); color: white; }
.badge-gift { background: var(--sand); color: var(--fg-0); }
.badge-stock { background: var(--bg-3); color: var(--fg-1); border: 1px solid var(--line); }

/* ============ Grids ============ */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--s-4); }
.product-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
@media (max-width: 1100px) { .product-grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .product-grid-4 { grid-template-columns: repeat(2, 1fr); gap: var(--s-3); } }

/* ============ Section ============ */
.section { padding-top: var(--s-8); padding-bottom: var(--s-8); }
.section-tight { padding-top: var(--s-7); padding-bottom: var(--s-7); }
@media (max-width: 700px) { .section { padding-top: var(--s-7); padding-bottom: var(--s-7); } .section-tight { padding-top: var(--s-6); padding-bottom: var(--s-6); } }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-5); margin-bottom: var(--s-5); flex-wrap: wrap; }
.section-head .section-head-text { max-width: 640px; }
.section-head .h2 { margin-bottom: 6px; }
.section-head .sub { color: var(--fg-2); font-size: 14.5px; }

/* ============ USP strip ============ */
.usp-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
@media (max-width: 800px) { .usp-strip { grid-template-columns: repeat(2, 1fr); } }
.usp-item { display: flex; align-items: center; gap: 14px; padding: 6px 4px; }
.usp-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--fg-0); flex-shrink: 0; }
.usp-text strong { display: block; font-size: 13.5px; font-weight: 600; color: var(--fg-0); }
.usp-text span { font-size: 12.5px; color: var(--fg-2); }

/* ============ Breadcrumbs ============ */
.breadcrumbs { display: flex; align-items: center; gap: 8px; padding: 16px 0; font-size: 12.5px; color: var(--fg-2); flex-wrap: wrap; }
.breadcrumbs a { color: var(--fg-2); transition: color .15s; }
.breadcrumbs a:hover { color: var(--fg-0); }
.breadcrumbs .sep { color: var(--line-strong); }
.breadcrumbs .current { color: var(--fg-0); font-weight: 500; }

/* ============ Image placeholder ============ */
.img-ph { position: relative; background: linear-gradient(135deg, #ece9e2 0%, #e1ddd3 100%); overflow: hidden; }
.img-ph::after {
  content: attr(data-label);
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--fg-2); text-align: center; padding: 12px;
}
.img-ph.dark { background: linear-gradient(135deg, #2a2a2a 0%, #1b1b1b 100%); }
.img-ph.dark::after { color: rgba(255,255,255,0.5); }

/* ============ Forms ============ */
.form-group { margin-bottom: var(--s-4); }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--fg-1); margin-bottom: 6px; }
.form-input, .form-select, .form-textarea {
  width: 100%; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-xs);
  padding: 12px 14px; font-size: 14px; color: var(--fg-0); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--fg-0); box-shadow: 0 0 0 4px rgba(27,27,27,.06); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-help { font-size: 12px; color: var(--fg-3); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 4px; font-weight: 600; }
.form-row { display: grid; gap: var(--s-4); grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .form-row { grid-template-columns: 1fr; } }

/* ============ Footer ============ */
.site-footer { background: #fff; color: var(--fg-1); margin-top: 0; border-top: 1px solid var(--line); width: 100%; overflow-x: hidden; }
.footer-main { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: var(--s-6); padding: var(--s-8) 0 var(--s-7); }
@media (min-width: 900px) { .footer-main { grid-template-columns: var(--footer-cols, 1.3fr 0.9fr 0.9fr 0.9fr 1fr); } }
.footer-col { min-width: 0; }
.footer-col a, .footer-col p, .footer-col li { overflow-wrap: anywhere; }
.footer-col img { max-width: 100% !important; height: auto !important; }
.footer-col h4 { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--fg-0); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 0; margin: 0; }
.footer-col a { color: var(--fg-2); font-size: 14px; transition: color .15s; }
.footer-col a:hover { color: var(--fg-0); }
.footer-col p { color: var(--fg-2); font-size: 14px; line-height: 1.6; max-width: 300px; }
.footer-col .contact-line { display: flex; align-items: center; gap: 10px; color: var(--fg-1); font-size: 14px; }
.footer-col .contact-line svg { color: var(--fg-1); flex-shrink: 0; }
.footer-brand img { height: 40px; margin-bottom: 16px; }
.footer-col .header-logo { margin-bottom: 14px; }
.footer-col .logo-mascots { height: 48px !important; width: auto !important; margin: 0; }
.footer-social { display: flex; gap: 14px; margin-top: 18px; }
.footer-social--col { margin-top: 0; gap: 18px; }
.footer-signoff-big { font-family: var(--font-hand); font-size: clamp(26px, 2.3vw, 34px); line-height: 1.05; color: var(--fg-0); transform: rotate(-8deg); text-align: center; padding-top: 10px; font-weight: 600; }
.footer-social a { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; color: var(--fg-0); transition: color .15s, transform .15s; }
.footer-social a:hover { color: var(--orange); transform: translateY(-1px); }
.footer-chat { width: 40px; height: 40px; border-radius: var(--r-xs); border: 1px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; color: var(--fg-0); margin-top: 6px; }
.footer-chat:hover { border-color: var(--fg-0); }
.footer-bottom {
  border-top: 1px solid var(--line-strong);
  padding: var(--s-5) 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: var(--fg-2); flex-wrap: wrap; gap: 12px;
}
.footer-bottom > * { min-width: 0; max-width: 100%; }
.footer-bottom a { color: var(--fg-2); }
.footer-bottom a:hover { color: var(--fg-0); }
.footer-signoff { display: inline-flex; align-items: center; gap: 12px; }
.footer-signoff .hand { font-family: var(--font-hand); font-size: 22px; color: var(--fg-0); font-weight: 600; }
.footer-signoff svg { width: 28px; height: 28px; }

/* ============ Mobile menu drawer ============ */
.mm-overlay { position: fixed; inset: 0; background: rgba(27,27,27,0.45); backdrop-filter: blur(2px); z-index: 200; opacity: 0; pointer-events: none; transition: opacity .25s; }
.mm-overlay.open { opacity: 1; pointer-events: auto; }
.mm-drawer {
  position: fixed; top: 0; right: 0; width: min(360px, 88vw); height: 100%;
  background: #fff; color: var(--fg-0); z-index: 201;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
}
.mm-drawer.open { transform: translateX(0); }
.mm-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.mm-head .header-logo svg, .mm-head .header-logo img { height: 34px; }
.mm-close { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-1); color: var(--fg-0); display: flex; align-items: center; justify-content: center; }
.mm-body { flex: 1; overflow-y: auto; padding: 16px 0; }
.mm-search { display: flex; gap: 6px; padding: 0 20px 16px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.mm-search input { flex: 1; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-xs); padding: 10px 14px; color: var(--fg-0); font-size: 14px; outline: none; }
.mm-search button { background: var(--bg-dark); color: white; border-radius: var(--r-xs); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.mm-item { display: flex; flex-direction: column; }
.mm-item > a { display: flex; align-items: center; justify-content: space-between; padding: 13px 20px; color: var(--fg-0); font-size: 15px; font-weight: 500; }
.mm-item > a:hover { background: var(--bg-1); }
.mm-item > a.featured { color: var(--red); }
.mm-item .mm-arrow { width: 14px; height: 14px; transition: transform .2s; }
.mm-item.mm-expanded .mm-arrow { transform: rotate(180deg); }
.mm-sub { display: none; padding: 0 20px 12px; flex-direction: column; gap: 4px; }
.mm-item.mm-expanded .mm-sub { display: flex; }
.mm-sub a { padding: 8px 12px; font-size: 14px; color: var(--fg-2); border-left: 2px solid var(--line); }
.mm-sub a:hover { color: var(--fg-0); border-color: var(--fg-0); }
.mm-foot { padding: 16px 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }

/* ============ Infobar ============ */
.infobar { background: var(--bg-dark); color: #fff; font-size: 12.5px; padding: 8px 0; position: relative; }
.infobar--bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; box-shadow: 0 -4px 18px rgba(0,0,0,0.18); }
.infobar-inner { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; text-align: center; }
.infobar a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.infobar-close { position: absolute; top: 50%; right: 16px; transform: translateY(-50%); background: transparent; color: inherit; opacity: 0.7; cursor: pointer; font-size: 18px; line-height: 1; border: none; }
.infobar-close:hover { opacity: 1; }

/* ============ Floating banner ============ */
.floating-banner { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); background: var(--bg-dark); color: white; border-radius: var(--r-sm); box-shadow: var(--shadow-lg); padding: 10px 14px 10px 20px; display: flex; align-items: center; gap: 14px; z-index: 90; max-width: calc(100vw - 32px); }
.floating-banner-text { font-size: 13px; font-weight: 500; line-height: 1.3; }
.floating-banner-close { color: rgba(255,255,255,0.6); width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.floating-banner-close:hover { color: white; background: rgba(255,255,255,0.08); }

/* ============ Newsletter form (shared by HP strip + popup) ============ */
.newsletter-form { display: flex; gap: 10px; max-width: 520px; }
.newsletter-form input { flex: 1; min-width: 0; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-xs); padding: 12px 16px; font-size: 14px; color: var(--fg-0); outline: none; }
.newsletter-form input:focus { border-color: var(--fg-0); }
.newsletter-msg { font-size: 13px; margin-top: 10px; }
.newsletter-msg.ok { color: var(--success); }
.newsletter-msg.err { color: var(--danger); }
@media (max-width: 520px) { .newsletter-form { flex-direction: column; } }

/* ============ Utilities ============ */
.flex { display: flex; } .flex-col { display: flex; flex-direction: column; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-5 { gap: 24px; } .gap-6 { gap: 32px; }
.items-center { align-items: center; } .items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; } .justify-center { justify-content: center; }
.text-center { text-align: center; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-5 { margin-top: 24px; } .mt-6 { margin-top: 32px; } .mt-7 { margin-top: 48px; } .mt-8 { margin-top: 64px; }
.mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-5 { margin-bottom: 24px; } .mb-6 { margin-bottom: 32px; } .mb-7 { margin-bottom: 48px; }
.full-width, .w-full { width: 100%; }

/* ============ Scrollbar ============ */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--fg-3); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============ Megamenu (header) ============
   Hover na položku menu otevře panel její kategorie: vlevo podkategorie
   („Vše“ + seznam, hover přepíná), vpravo produkty aktivní podkategorie. */
.site-header { overflow: visible; }
.nav-link .nav-caret { margin-left: 4px; vertical-align: -1px; transition: transform .2s; }
.nav-link.is-open .nav-caret { transform: rotate(180deg); }
.nav-link.is-open { color: var(--fg-0); background: var(--bg-1); }
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 60px rgba(27,27,27,.14);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  z-index: 120;
}
.mega.open { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
.mega-panel { display: none; }
.mega-panel.is-active { display: block; animation: megaFade .22s ease; }
@keyframes megaFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.mega-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 var(--s-5);
  display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 0;
}
.mega-sub { padding: 14px 18px 14px 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.mega-sub-title { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: -0.02em; color: var(--fg-0); padding: 0 10px 8px; display: flex; align-items: baseline; gap: 8px; }
.mega-sub-title span { font-size: 12px; color: var(--fg-3); font-family: var(--font-body); font-weight: 500; }
.mega-sub-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.mega-sub-item > a {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 10px; border-radius: var(--r-sm);
  color: var(--fg-1); font-size: 13.5px; font-weight: 500;
  transition: background .15s, color .15s;
}
.mega-sub-item > a:hover, .mega-sub-item.is-active > a { background: var(--bg-1); color: var(--fg-0); font-weight: 600; }
.mega-sub-name { flex: 1; min-width: 0; }
.mega-sub-count { font-size: 12px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.mega-arr { color: var(--fg-3); opacity: 0; transition: opacity .15s, transform .15s; }
.mega-sub-item.is-active .mega-arr, .mega-sub-item > a:hover .mega-arr { opacity: 1; transform: translateX(2px); color: var(--fg-0); }
.mega-quick { margin-top: auto; padding: 10px 12px 0; border-top: 1px solid var(--line); display: flex; gap: 16px; }
.mega-quick a { font-size: 13.5px; font-weight: 600; color: var(--red); }
.mega-quick a:hover { color: var(--red-deep); }
.mega-main { padding: 14px 0 16px 22px; min-width: 0; }
.mega-prods { display: none; }
.mega-prods.is-active { display: block; animation: megaFade .18s ease; }
.mega-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.mega-head-t { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -0.02em; color: var(--fg-0); }
.mega-all { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--fg-0); border-bottom: 1.5px solid var(--fg-0); padding-bottom: 2px; white-space: nowrap; }
.mega-all:hover { color: var(--olive); border-color: var(--olive); }
.mega-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.mega-grid .mega-prod:nth-child(n+6) { display: none; }
.mega-prod { display: flex; flex-direction: column; gap: 5px; padding: 7px; border-radius: var(--r-md); border: 1px solid transparent; transition: border-color .15s, background .15s, transform .15s; }
.mega-prod:hover { border-color: var(--line); background: var(--bg-1); transform: translateY(-2px); }
.mega-prod-img { display: block; aspect-ratio: 4 / 3; max-height: 130px; border-radius: var(--r-sm); background: #fff; overflow: hidden; }
.mega-prod-img img { width: 100%; height: 100%; object-fit: contain; }
.mega-prod-img.is-empty { background: linear-gradient(135deg, #ece9e2, #dcd6c9); }
.mega-prod-name { font-size: 12.5px; font-weight: 600; color: var(--fg-0); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mega-prod-price { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--fg-0); }
.mega-prod-price:not(:empty) { }
.mega-empty { color: var(--fg-3); font-size: 14px; padding: 20px 0; }
@media (max-width: 1240px) { .mega-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .mega-grid .mega-prod:nth-child(n+5) { display: none; } }
@media (max-width: 1040px) { .mega-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mega-grid .mega-prod:nth-child(n+4) { display: none; } }
@media (max-width: 960px) { .mega { display: none; } }

/* ============ Našeptávač vyhledávání ============ */
.hl-suggest { position: absolute; z-index: 300; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 8px; max-height: min(70vh, 640px); overflow-y: auto; }
.hl-suggest[hidden] { display: none; }
.hl-suggest-group { padding: 4px 0; }
.hl-suggest-group + .hl-suggest-group { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 8px; }
.hl-suggest-label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); padding: 6px 10px 4px; display: flex; align-items: center; gap: 8px; }
.hl-suggest-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--fg-3); }
.hl-suggest-label--in_stock::before { background: var(--green); }
.hl-suggest-label--supplier::before { background: var(--amber); }
.hl-suggest-label--out_of_stock::before { background: var(--fg-3); }
.hl-suggest-label--articles::before { background: var(--olive); }
.hl-suggest-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: var(--r-sm); color: var(--fg-0); outline: none; }
.hl-suggest-item:hover, .hl-suggest-item:focus { background: var(--bg-1); }
.hl-suggest-item img, .hl-suggest-noimg { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--bg-3); }
.hl-suggest-text { display: flex; flex-direction: column; min-width: 0; }
.hl-suggest-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-suggest-meta { font-size: 12px; color: var(--fg-3); }
.hl-suggest-price { font-family: var(--font-display); font-weight: 700; font-size: 14px; white-space: nowrap; }
.hl-suggest-all { display: block; text-align: center; padding: 12px; margin-top: 6px; border-top: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--fg-0); border-radius: 0 0 var(--r-sm) var(--r-sm); }
.hl-suggest-all:hover, .hl-suggest-all:focus { background: var(--bg-1); outline: none; }
.hl-suggest-empty { padding: 16px; font-size: 14px; color: var(--fg-2); text-align: center; }

/* ============ Newsletter popup (design v3) ============ */
.nlp { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(20,20,20,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s ease; }
.nlp.is-visible { opacity: 1; }
.nlp-box { position: relative; width: 100%; max-width: 940px; background: #fff; color: var(--fg-0); border-radius: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.28); display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; transform: translateY(24px) scale(.97); opacity: 0; transition: transform .35s cubic-bezier(.16,1,.3,1), opacity .3s ease; }
.nlp.is-visible .nlp-box { transform: none; opacity: 1; }
.nlp-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; background: var(--bg-1); color: var(--fg-0); display: inline-flex; align-items: center; justify-content: center; z-index: 3; transition: background .15s; }
.nlp-close:hover { background: var(--bg-3); }
.nlp-visual { display: flex; align-items: flex-end; justify-content: center; padding: 28px 12px 0 28px; background: #fff; }
.nlp-visual img { width: 100%; max-width: 420px; height: auto; display: block; }
.nlp-body { padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 44px) clamp(24px, 3vw, 36px) 8px; display: flex; flex-direction: column; justify-content: center; }
.nlp-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-hand); font-weight: 700; font-size: 24px; color: var(--orange); line-height: 1; margin-bottom: 10px; }
.nlp-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.02; letter-spacing: -0.02em; color: var(--fg-0); margin: 0 0 14px; }
.nlp-text { font-size: 16px; line-height: 1.5; color: var(--fg-1); margin: 0 0 20px; max-width: 420px; }
.nlp-form { display: flex; flex-direction: column; gap: 10px; }
.nlp-form input { width: 100%; background: var(--bg-1); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; font-size: 15px; color: var(--fg-0); outline: none; transition: border-color .15s, background .15s; }
.nlp-form input:focus { border-color: var(--fg-0); background: #fff; }
.nlp-form .btn-block { justify-content: center; border-radius: 12px; }
.nlp-note { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--fg-1); }
.nlp-note svg { flex-shrink: 0; }
.nlp-dismiss { align-self: center; margin-top: 12px; font-size: 13.5px; font-weight: 600; color: var(--fg-1); text-decoration: underline; text-underline-offset: 3px; }
.nlp-dismiss:hover { color: var(--fg-0); }
.nlp-coupon { margin-top: 14px; background: var(--orange-tint); border: 2px dashed var(--orange); border-radius: 12px; padding: 12px 16px; text-align: center; }
.nlp-coupon-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); margin-bottom: 4px; }
.nlp-coupon-code { font-family: var(--font-display); font-size: 24px; font-weight: 800; letter-spacing: .1em; color: var(--fg-0); }
body.nlp-open { overflow: hidden; }
@media (max-width: 760px) {
  .nlp { padding: 12px; align-items: flex-end; }
  .nlp-box { grid-template-columns: 1fr; max-width: 520px; border-radius: 20px; max-height: 92vh; overflow-y: auto; }
  .nlp-visual { padding: 18px 40px 0; }
  .nlp-visual img { max-width: 190px; }
  .nlp-body { padding: 14px 22px 22px; }
  .nlp-eyebrow { font-size: 21px; }
  .nlp-title { font-size: 28px; }
  .nlp-text { font-size: 14.5px; margin-bottom: 14px; }
}
.nlp-success { margin-top: 4px; padding: 14px 16px; background: rgba(46,158,68,.10); border: 1px solid rgba(46,158,68,.35); border-radius: 12px; color: var(--fg-0) !important; font-size: 14px; line-height: 1.45; }
.nlp-success strong { display: block; color: #2e9e44; margin-bottom: 2px; }
/* Úzké mobily: logo a ikony se nesmí překrývat */
@media (max-width: 480px) {
  .header-main { gap: 8px; }
  .header-actions { gap: 0; }
  .header-actions .icon-btn, .mobile-menu-btn { width: 36px; height: 36px; }
  .header-actions a.icon-btn[aria-label="Oblíbené"] { display: none; }
  .logo-lockup .logo-mascots { height: 36px; }
  .logo-lockup .logo-name { font-size: 16px; }
}

/* ---------- Potvrzení vložení do košíku (.atc) ---------- */
.atc { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.atc[hidden] { display: none; }
.atc-backdrop { position: absolute; inset: 0; background: rgba(20,20,20,.45); opacity: 0; transition: opacity .2s ease; }
.atc.is-open .atc-backdrop { opacity: 1; }
.atc-card { position: relative; width: 100%; max-width: 460px; background: #fff; border-radius: 22px; padding: 26px 26px 24px;
            box-shadow: 0 24px 60px rgba(20,20,20,.22); transform: translateY(14px) scale(.98); opacity: 0;
            transition: transform .22s ease, opacity .22s ease; }
.atc.is-open .atc-card { transform: none; opacity: 1; }
.atc-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: none; border-radius: 50%;
         background: var(--bg-1); color: var(--fg-1); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.atc-x:hover { background: var(--bg-3); }
.atc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.atc-check { width: 38px; height: 38px; border-radius: 50%; background: var(--orange); color: #fff; display: flex;
             align-items: center; justify-content: center; flex-shrink: 0; }
.atc-head h2 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.01em; color: var(--fg-0); }
.atc-item { display: flex; align-items: center; gap: 14px; padding: 12px; background: var(--bg-1); border-radius: 14px; }
.atc-item img { width: 62px; height: 62px; object-fit: cover; border-radius: 10px; background: #fff; flex-shrink: 0; }
.atc-info { flex: 1; min-width: 0; }
.atc-name { font-weight: 700; font-size: 15px; color: var(--fg-0); line-height: 1.3; }
.atc-meta { font-size: 13px; color: var(--fg-2); margin-top: 3px; }
.atc-price { font-weight: 800; font-size: 15px; color: var(--fg-0); white-space: nowrap; }
.atc-sum { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px 0; margin-top: 4px;
           font-size: 14px; color: var(--fg-2); }
.atc-sum strong { font-family: var(--font-display); font-size: 19px; color: var(--fg-0); }
.atc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.atc-actions .btn { width: 100%; justify-content: center; }
.atc-mascot { position: absolute; right: 62px; bottom: calc(100% - 18px); width: 100px; height: auto; pointer-events: none;
              filter: drop-shadow(0 8px 14px rgba(0,0,0,.18)); }
.pc-qa-add.is-loading, .atc-actions .btn.is-loading { opacity: .6; pointer-events: none; }
@media (max-width: 480px) {
  .atc-actions { grid-template-columns: 1fr; }
  .atc-mascot { width: 82px; right: 10px; }
  .atc-card { padding: 22px 20px 20px; }
}

/* Antispam honeypot — display:none, ať ho autofill správců hesel nevyplní (viz spam_fields()). */
.hl-hp { display: none !important; }

/* Zákonná záruka — odkaz na harmonizované oznámení EU (partials/legal-guarantee-link.php) */
.hl-guarantee { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--fg-0); text-decoration: none; font-size: 13px; line-height: 1.3; }
.hl-guarantee:hover { border-color: #0f4c9c; }
.hl-guarantee img { flex-shrink: 0; width: 22px; height: auto; }
.hl-guarantee strong { font-weight: 700; }
.hl-guarantee-sub { display: block; color: var(--fg-3); font-size: 12px; }
/* Nenápadná varianta v souhrnu košíku/pokladny: celá šířka sloupce, jeden řádek, bez rámečku */
.hl-guarantee--compact { display: flex; width: 100%; justify-content: center; gap: 8px; padding: 9px 12px; border: 0; border-radius: 10px; background: var(--bg-1, #f3f2ef); color: var(--fg-2); font-size: 12.5px; }
.hl-guarantee--compact:hover { background: #ebe9e4; color: var(--fg-0); }
.hl-guarantee--compact img { width: 14px; opacity: .75; }
.hl-guarantee--compact strong { font-weight: 600; }
.hl-guarantee--compact > span { text-align: center; }
.hl-guarantee--compact .hl-guarantee-sub { display: block; font-size: 12px; } /* „Oznámení EU…“ na druhém řádku */

/* Toast — krátké potvrzení akce (hlToast v layouts/main.php) */
.hl-toast { position: fixed; left: 50%; bottom: 24px; z-index: 1200; display: flex; align-items: center; gap: 12px; max-width: min(460px, calc(100vw - 32px));
  padding: 12px 14px 12px 12px; background: var(--bg-dark, #141414); color: #fff; border-radius: 14px; box-shadow: 0 12px 32px rgba(20,20,20,.28);
  font-family: var(--font-body); font-size: 14px; line-height: 1.35; transform: translate(-50%, 16px); opacity: 0; transition: transform .25s ease, opacity .25s ease; }
.hl-toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.hl-toast[hidden] { display: none; }
.hl-toast-ic { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--orange); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.hl-toast.is-error .hl-toast-ic { background: #b8232f; }
.hl-toast-txt { font-weight: 600; }
.hl-toast-link { margin-left: auto; padding-left: 10px; color: #fff; font-weight: 700; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.hl-toast-link:hover { color: var(--orange); }
@media (max-width: 560px) { .hl-toast { bottom: 16px; width: calc(100vw - 32px); } }
@media (prefers-reduced-motion: reduce) { .hl-toast { transition: none; } }

/* Kroky nákupu (košík → dokončení objednávky) a číslované sekce pokladny */
.checkout-progress { display: flex; align-items: center; gap: 14px; margin: 24px 0; flex-wrap: wrap; }
.cp-step { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--fg-3); font-weight: 600; text-decoration: none; }
.cp-step .num { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-3); color: var(--fg-3); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.cp-step.active { color: var(--fg-0); }
.cp-step.active .num { background: var(--orange); color: #fff; }
.cp-step.done .num { background: var(--bg-dark); color: #fff; }
a.cp-step:hover { color: var(--fg-0); }
.checkout-progress .arrow { color: var(--line-strong); }
.co-sec-title { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--fg-0); margin: 0 0 1.25rem; }
.co-sec-num { width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-body); font-size: 13px; font-weight: 800; flex-shrink: 0; }

/* ============ Admin lišta (jen přihlášený admin, partials/admin-bar.php) ============ */
.hl-ab { position: sticky; top: 0; z-index: 101; display: flex; align-items: center; height: 38px; background: #141414; color: #e8e6e1; font: 500 12.5px/1 var(--font-body); }
.hl-ab-inner { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; height: 100%; padding: 0 12px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.hl-ab-inner::-webkit-scrollbar { display: none; }
.hl-ab a { color: inherit; text-decoration: none; }
.hl-ab-brand { display: inline-flex; align-items: center; gap: 6px; padding: 0 10px 0 2px; margin-right: 4px; height: 100%; font-weight: 700; color: #fff !important; border-right: 1px solid rgba(255,255,255,.12); }
.hl-ab-brand svg { color: var(--orange); }
.hl-ab-link { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 6px; flex-shrink: 0; transition: background .15s; }
.hl-ab-link:hover { background: rgba(255,255,255,.1); color: #fff; }
.hl-ab-link.is-primary { background: var(--orange); color: #fff; font-weight: 700; }
.hl-ab-link.is-primary:hover { background: #e05a12; }
.hl-ab-fact { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 8px; flex-shrink: 0; color: #cfccc6; }
.hl-ab-fact em { font-style: normal; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #8d8a84; }
.hl-ab-fact.tone-ok { color: #7fd48f; }
.hl-ab-fact.tone-bad { color: #ff8a73; }
.hl-ab-fact.tone-warn { color: #f5c542; }
.hl-ab-spacer { flex: 1 0 12px; }
.hl-ab-badge { display: inline-block; min-width: 18px; padding: 3px 5px; border-radius: 9px; background: var(--orange); color: #fff; font-size: 10.5px; text-align: center; }
.hl-ab-user { padding: 0 8px; color: #8d8a84; flex-shrink: 0; }
.hl-ab-toggle { flex-shrink: 0; margin: 0 8px 0 2px; width: 26px; height: 26px; border: 0; border-radius: 6px; background: transparent; color: #8d8a84; font-size: 18px; line-height: 1; cursor: pointer; }
.hl-ab-toggle:hover { background: rgba(255,255,255,.1); color: #fff; }
.hl-ab-pill { display: none; position: fixed; left: 12px; bottom: 12px; z-index: 1100; padding: 8px 12px; border: 0; border-radius: 999px; background: #141414; color: #fff; font: 700 12px/1 var(--font-body); box-shadow: 0 6px 18px rgba(0,0,0,.25); cursor: pointer; }
body.has-adminbar .site-header { top: 38px; }
html.hl-ab-min .hl-ab { display: none; }
html.hl-ab-min .hl-ab-pill { display: block; }
html.hl-ab-min body.has-adminbar .site-header { top: 0; }
@media (max-width: 768px) {
  .hl-ab { position: relative; }
  body.has-adminbar .site-header { top: 0; }
  .hl-ab-hide-sm, .hl-ab-fact em { display: none; }
}
@media print { .hl-ab, .hl-ab-pill { display: none !important; } }

/* ============ Sdílení produktu (partials/product-share.php) ============ */
.pd-share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pd-share-label { font: 700 11px/1 var(--font-body); text-transform: uppercase; letter-spacing: .08em; color: var(--fg-3); margin-right: 4px; }
.pd-share-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--fg-1); cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.pd-share-btn:hover { transform: translateY(-1px); color: #fff; border-color: transparent; background: var(--bg-dark); }
.pd-share--facebook:hover { background: #1877f2; }
.pd-share--whatsapp:hover { background: #25d366; }
.pd-share--pinterest:hover { background: #e60023; }
.pd-share--x:hover { background: #000; }
.pd-share-copy:hover, .pd-share-native:hover { background: var(--orange); }
.pd-share-btn[hidden] { display: none; }

/* ---------- Bez zoomu formulářů na mobilu (24. 9. 2026) ----------
   iOS Safari při kliknutí do pole s písmem menším než 16 px stránku přiblíží a sám ji už nevrátí.
   Na dotykových zařízeních proto mají všechna pole 16 px. Zoom prstem zůstává povolený (přístupnost). */
@media (pointer: coarse), (max-width: 900px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),
  select,
  textarea { font-size: 16px !important; }
}
