/* home_extras.css — homepage-only enhancements layered on top of
 * styles.css for index.html (orvos.uz). Self-contained and scoped with
 * a `home-` prefix so nothing here can clash with the catalog styles.
 * Owns: slim utility top bar, category quick-cards, FAQ accordion, and
 * the first-visit lead popup. Re-uses the styles.css design tokens
 * (--gold, --bg-main, --text-main, ...) so it matches the site theme.
 */

/* ------------------------------------------------------------------ */
/* 1. Slim utility top bar (social + click-to-call), above the header  */
/* ------------------------------------------------------------------ */
.home-topbar {
  background: var(--bg-deep, #0B1F1A);
  border-bottom: 1px solid rgba(198, 165, 92, 0.18);
  font-size: 0.8rem;
}
.home-topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 36px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.home-topbar-social {
  display: flex;
  align-items: center;
  gap: 6px;
}
.home-topbar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: var(--text-muted, #A8B3AE);
  transition: color 0.18s ease, background 0.18s ease;
}
.home-topbar-social a:hover {
  color: var(--gold, #C6A55C);
  background: rgba(198, 165, 92, 0.12);
}
.home-topbar-social svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}
.home-topbar-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-main, #F5F5F5);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.18s ease;
}
.home-topbar-phone:hover { color: var(--gold, #C6A55C); }
.home-topbar-phone svg { width: 14px; height: 14px; fill: currentColor; }

@media (max-width: 600px) {
  /* Collapse to just the phone on small screens. */
  .home-topbar-social { display: none; }
  .home-topbar-inner { justify-content: center; }
}

/* ------------------------------------------------------------------ */
/* 2. Category quick-cards, below the hero                              */
/* ------------------------------------------------------------------ */
.home-catcards-section {
  background: var(--bg-main, #0F2A23);
  padding: 18px 0 6px;
}
.home-catcards {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}
.home-catcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 10px;
  border: 1px solid #e3d6bf;
  border-radius: 14px;
  background: #f5f0e8;
  color: #14352a;
  font-family: var(--font-serif, "Playfair Display", serif);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.home-catcard:hover {
  transform: translateY(-6px);
  border-color: var(--gold, #C6A55C);
  box-shadow: 0 12px 32px rgba(198, 165, 92, 0.28), 0 6px 16px rgba(0, 0, 0, 0.18);
}
.home-catcard-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-light, #E0C27A) 0%, var(--gold, #C6A55C) 100%);
  color: #14352a;
  line-height: 1;
}
.home-catcard-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

@media (max-width: 820px) {
  .home-catcards-section {
    overflow-x: hidden;
  }
  .home-catcards {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    scrollbar-width: none;
    width: 100%;
    max-width: 100%;
  }
  .home-catcards::-webkit-scrollbar { display: none; }
  .home-catcard {
    flex: 0 0 118px;
    scroll-snap-align: start;
  }
}

/* ------------------------------------------------------------------ */
/* 3. FAQ accordion, above the footer                                  */
/* ------------------------------------------------------------------ */
.home-faq-section {
  background: var(--bg-deep, #0B1F1A);
  padding: 48px 0;
}
.home-faq {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 16px;
}
.home-faq-title {
  margin: 0 0 18px;
  color: var(--gold, #C6A55C);
  font-family: var(--font-serif, "Playfair Display", serif);
  font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem);
  text-align: center;
}
.home-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.home-faq-item {
  border: 1px solid rgba(198, 165, 92, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}
.home-faq-item.open { border-color: var(--gold, #C6A55C); }
.home-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: transparent;
  border: none;
  color: var(--text-main, #F5F5F5);
  font-family: var(--font-serif, "Playfair Display", serif);
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.home-faq-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--gold, #C6A55C);
  color: var(--gold, #C6A55C);
  font-size: 1.25rem;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease;
}
.home-faq-item.open .home-faq-icon {
  background: var(--gold, #C6A55C);
  color: var(--bg-deep, #0B1F1A);
}
/* P11: real height animation via grid-template-rows 0fr->1fr (smooth,
   no max-height snap and no magic pixel cap). The inner wrapper holds the
   padding and clips while collapsed. */
.home-faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.home-faq-item.open .home-faq-a {
  grid-template-rows: 1fr;
}
.home-faq-a-inner {
  overflow: hidden;
  color: var(--text-muted, #A8B3AE);
  line-height: 1.6;
  padding: 0 18px;
}
.home-faq-item.open .home-faq-a-inner {
  padding: 4px 18px 16px;
}

/* ------------------------------------------------------------------ */
/* 4. First-visit lead popup                                           */
/* ------------------------------------------------------------------ */
.home-lead-overlay {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(8, 20, 16, 0.72);
  backdrop-filter: blur(3px);
}
.home-lead-overlay.open { display: flex; }
.home-lead-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--bg-main, #0F2A23);
  border: 1px solid rgba(198, 165, 92, 0.35);
  border-radius: 18px;
  padding: 30px 24px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  text-align: center;
  animation: home-lead-pop 0.28s ease;
}
@keyframes home-lead-pop {
  from { transform: translateY(14px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.home-lead-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted, #A8B3AE);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}
.home-lead-close:hover { color: var(--gold, #C6A55C); background: rgba(198,165,92,0.12); }
.home-lead-headline {
  margin: 4px 0 8px;
  /* Shiny, attention-grabbing red: a moving glossy gradient + a soft
     pulsing glow so the discount really pops. */
  font-family: var(--font-serif, "Playfair Display", serif);
  font-size: 1.7rem;
  line-height: 1.15;
  font-weight: 800;
  background: linear-gradient(100deg, #ff2d2d 0%, #ff7a7a 25%, #ffd0d0 45%, #ff5252 60%, #ff2d2d 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #ff2d2d;
  filter: drop-shadow(0 0 10px rgba(255, 45, 45, 0.5));
  animation: home-lead-shine 2.4s linear infinite, home-lead-throb 1.6s ease-in-out infinite;
}
@keyframes home-lead-shine {
  to { background-position: 220% center; }
}
@keyframes home-lead-throb {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 8px rgba(255, 45, 45, 0.45)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 18px rgba(255, 45, 45, 0.9)); }
}
@media (prefers-reduced-motion: reduce) {
  .home-lead-headline { animation: none; }
}
.home-lead-sub {
  margin: 0 0 18px;
  color: var(--text-main, #F5F5F5);
  font-size: 0.95rem;
  line-height: 1.5;
}
.home-lead-form { display: flex; flex-direction: column; gap: 10px; }
.home-lead-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(198, 165, 92, 0.4);
  border-radius: 12px;
  background: var(--bg-deep, #0B1F1A);
  color: var(--text-main, #F5F5F5);
  font-size: 1rem;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.18s ease;
}
.home-lead-input:focus { border-color: var(--gold, #C6A55C); }
.home-lead-input::placeholder { color: var(--text-muted, #A8B3AE); }
.home-lead-submit {
  width: 100%;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--gold-light, #E0C27A) 0%, var(--gold, #C6A55C) 100%);
  color: #14352a;
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 14px;
  cursor: pointer;
  transition: filter 0.18s ease;
}
.home-lead-submit:hover { filter: brightness(1.06); }
.home-lead-submit:disabled { opacity: 0.6; cursor: default; }
.home-lead-note {
  margin: 10px 0 0;
  color: var(--text-muted, #A8B3AE);
  font-size: 0.78rem;
}
.home-lead-thanks {
  color: var(--text-main, #F5F5F5);
  font-size: 1rem;
  line-height: 1.5;
  padding: 8px 0 4px;
}
.home-lead-error {
  color: #e88;
  font-size: 0.82rem;
  min-height: 1em;
}

@media (max-width: 480px) {
  .home-lead-headline { font-size: 1.45rem; }
  .home-lead-modal { padding: 26px 18px 20px; }
}

/* ================================================================== */
/* Homepage polish pass (P1+). Loads after styles.css so these win.    */
/* ================================================================== */

/* P1: the #filter-feedback <p> renders an empty box that shows as a
   stray dot under "418 ta mahsulotdan ..."; hide it when empty. */
.filter-feedback:empty { display: none !important; }

/* P4: stage the hero copy slightly after the hero visual for a layered
   entrance (the .reveal--right copy + .reveal--left visual otherwise
   animate together). */
.hero-copy { transition-delay: 0.15s; }

/* P5 + P9: staggered, scroll-triggered cascade for product cards. Cards
   start hidden; JS adds .home-in when they enter the viewport, firing the
   stagger animation (--card-i steps the delay). */
#new-collection-grid .product-card.home-staggered { opacity: 0; }
#new-collection-grid .product-card.home-staggered.home-in {
  animation: homeCardIn 0.5s ease both;
  animation-delay: calc(var(--card-i, 0) * 60ms);
}
@keyframes homeCardIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  #new-collection-grid .product-card.home-staggered { opacity: 1; animation: none; }
}

/* P7: give the "Mahsulotlar" section heading the same premium gold-serif
   treatment as the FAQ title — serif, deep-gold text (readable on the
   light section), and a thin gold underline rule. */
#new-title {
  font-family: var(--font-serif, "Playfair Display", serif);
  color: var(--accent-2, #9e7428);
}
#new-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 8px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold, #C6A55C), var(--gold-light, #E0C27A));
}

/* P8: animate the hero accent word ("Saralangan", wrapped in
   .hero-title-accent by script.js) with a flowing gold gradient — reuses
   the gradFlow keyframe that orvos_motion.css defined but never applied
   anywhere (its --grad-gold was empty). Explicit gradient so it works
   regardless of that variable. */
.hero-title-accent {
  background-image: linear-gradient(90deg, #E0C27A, #C6A55C, #F0DBA0, #C6A55C, #E0C27A);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradFlow 8s ease infinite;
}
@media (prefers-reduced-motion: reduce) {
  .hero-title-accent { animation: none; }
}

/* P12: cinematic hero entrance. Supersedes P4's reveal transition-delay
   on .hero-copy with a real keyframe so the copy (0.1s) and visual
   (0.3s) rise + fade + settle in a staged sequence on load. Explicit
   ease-out-expo curve so it doesn't depend on a CSS var. */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(40px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
.hero-copy  { animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
.hero-visual { animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both; }
@media (prefers-reduced-motion: reduce) {
  .hero-copy, .hero-visual { animation: none; }
}

/* P14: stagger the three trust cards left-to-right with a clearer step
   than the subtle 80ms data-delay the reveal system applies. */
.trust-strip-grid .trust-card:nth-child(1) { transition-delay: 0.1s; }
.trust-strip-grid .trust-card:nth-child(2) { transition-delay: 0.2s; }
.trust-strip-grid .trust-card:nth-child(3) { transition-delay: 0.3s; }

/* P15: cursor spotlight glow on product cards — a subtle gold radial
   following the pointer (--mx/--my set by home_extras.js). pointer-events
   none so it never blocks clicks. */
#new-collection-grid .product-card { position: relative; }
#new-collection-grid .product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(198, 165, 92, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 2;
}
#new-collection-grid .product-card:hover::after { opacity: 1; }

/* P17: brand-trust marquee strip (uses .marquee/.marquee-track +
   orvosMarquee from orvos_motion.css). Gold serif items, dark strip. */
.home-marquee-section {
  background: var(--bg-deep, #0B1F1A);
  border-top: 1px solid rgba(198, 165, 92, 0.14);
  border-bottom: 1px solid rgba(198, 165, 92, 0.14);
  padding: 12px 0;
}
.home-marquee-item {
  display: inline-flex;
  align-items: center;
  color: var(--gold, #C6A55C);
  font-family: var(--font-serif, "Playfair Display", serif);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  /* Spacing lives ON the item (not the track's flex gap) so every copy is
     identical -> the -50% loop aligns perfectly and never shows a seam. */
  padding-left: 40px;
}
.home-marquee-item::before {
  content: "•";
  margin-right: 16px;
  color: rgba(198, 165, 92, 0.55);
}
/* Seamless circle: kill the track's flex gap (asymmetric across the
   halves) and slow the animation to suit the now much wider track. */
.home-marquee .marquee-track {
  gap: 0;
  animation-duration: 80s;
}

/* ================================================================== */
/* Catalog fixes (search elevation + grid columns). In home_extras.css */
/* so they win over (and cache-bust past) the older styles*.css.       */
/* ================================================================== */

/* Lift the catalog search bar onto a light surface so it sits ON the
   dark-green card instead of looking sunken into it. */
.catalog-entry-search input {
  background: rgba(255, 251, 244, 0.98);
  color: #173029;
  border: 1px solid rgba(198, 165, 92, 0.55);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}
.catalog-entry-search input::placeholder { color: rgba(23, 48, 41, 0.5); }
.catalog-entry-search input:focus {
  border-color: var(--gold, #C6A55C);
  box-shadow: 0 0 0 3px rgba(224, 194, 122, 0.25), 0 10px 24px rgba(0, 0, 0, 0.22);
}
.catalog-entry-search-shell .search-icon-svg { color: rgba(23, 48, 41, 0.55); }
.catalog-entry-search-shell:focus-within .search-icon-svg { color: var(--gold, #C6A55C); }

/* Force the catalog grid to 4-up desktop / 2-up mobile, overriding any
   stale cached styles.css (the old auto-fill-320 variant rendered 6+) AND
   the compact view (the page is often on ?compact=1 which adds
   .cards-compact — so we must NOT exclude it or the override misses). */
#new-collection-grid.cards-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
@media (max-width: 760px) {
  #new-collection-grid.cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* ================================================================== */
/* Public UI audit polish (buttons / FABs / dots / radii / case).      */
/* ================================================================== */

/* Item 1 + 3: the "Filtr" toggle was a dark-green FAB-like pill that
   jarred against the light catalog section. Re-style it as a gold-outline
   button on the section surface, with the shared 14px radius. */
.filter-toggle {
  background: rgba(255, 251, 244, 0.96) !important;
  color: #173029 !important;
  border: 1.5px solid rgba(198, 165, 92, 0.6) !important;
  border-radius: 14px !important;
  min-width: 0 !important;
}
.filter-toggle .filter-toggle-icon { color: var(--gold, #C6A55C) !important; }
.filter-toggle:hover {
  border-color: var(--gold, #C6A55C) !important;
  background: rgba(255, 244, 216, 0.96) !important;
}

/* Item 1: balance the hero CTA pair — give the secondary (Telegram)
   outline a 2px border so it doesn't read as much lighter than the solid
   primary beside it. */
.hero-actions .btn-outline { border-width: 2px !important; }

/* Item 8: keep the load-more CTA on the shared button radius. */
#load-more-btn, .load-more-btn { border-radius: 14px; }

/* Item 10: more breathing room between the two floating FABs
   (scroll-up + call) so they don't feel stacked/cluttered. */
.fab-actions { gap: 18px !important; }

/* Item 4: the hero slide dots were barely visible (26% white). Brighten
   the inactive pills + add a soft shadow for contrast on light images;
   the active dot stays gold. */
.hero-dot::before {
  background: rgba(255, 255, 255, 0.55) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35) !important;
}
.hero-dot.is-active::before {
  background: var(--gold, #C6A55C) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
}

/* Item 5: the Bo'limlar card sample lists mix CAPS + lowercase from the
   data ("SANTEXNIKA AKSESSUARLARI, suv shlangi, ..."). Normalise to a
   consistent Title Case for a tidier look. */
.top-accordion-samples { text-transform: capitalize; }

/* Item 6: wishlist heart on product cards (injected by home_extras.js).
   Top-right over the thumbnail; fills red when saved. */
.home-wish-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #46524d;
  transition: transform 0.15s ease, color 0.18s ease, background 0.18s ease;
}
.home-wish-btn:hover { transform: scale(1.1); background: #fff; }
.home-wish-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.home-wish-btn.is-saved { color: #e0395e; }
.home-wish-btn.is-saved svg { fill: currentColor; stroke: currentColor; }

/* ================================================================== */
/* Responsive audit fixes (home_extras.css overrides).                 */
/* ================================================================== */

/* R6: 3-column product grid on the tablet band (was jumping 2 -> 4). */
@media (min-width: 761px) and (max-width: 1024px) {
  #new-collection-grid.cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* R7: scroll affordance on the horizontally-scrolling category cards —
   a right-edge fade so it's obvious there's more to the right. */
@media (max-width: 820px) {
  .home-catcards-section { position: relative; }
  .home-catcards-section::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 6px;
    width: 38px;
    background: linear-gradient(90deg, transparent, var(--bg-main, #0F2A23));
    pointer-events: none;
  }
}

/* R2 + R10: clear the fixed bottom-right FAB on mobile so it never covers
   the hero CTAs, product names, or the load-more button. */
@media (max-width: 768px) {
  main.wrap { padding-bottom: 84px; }
  .hero-actions { margin-bottom: 20px; }
  #load-more-wrap, .load-more-wrap { margin-bottom: 24px; }
}

/* R1: never let the logo vanish on very small phones — keep a compact
   logomark visible (the audit saw a blank header at 320px). */
@media (max-width: 380px) {
  .logo-mark {
    display: block !important;
    width: 92px !important;
    height: 46px !important;
  }
}

/* R9: tighten the hero headline scale on the smallest screens so
   "kolleksiyasi." doesn't run to the viewport edge at 320px. */
@media (max-width: 380px) {
  .hero h1 { font-size: clamp(1.5rem, 7.5vw, 2rem) !important; }
}

/* FIX 7: keep the catalog search + "Barcha mahsulotlar" button inline on
   tablets — they stacked at <=980px which made the button look like a
   full-width CTA instead of a search companion. */
@media (min-width: 600px) and (max-width: 1024px) {
  .catalog-entry-tools { grid-template-columns: minmax(0, 1fr) auto !important; }
  .catalog-entry-actions { width: auto !important; }
  .catalog-entry-actions .btn { flex: 0 0 auto !important; white-space: nowrap; }
}

/* Hero image must FILL its frame at every size. At <=980px the base CSS
   set object-fit:contain, which letterboxed the photo — a big dark shell
   area with a smaller picture inside ("image area bigger, smaller pic").
   cover makes it fill edge-to-edge (cropped, no dark gap). */
.hero-image { object-fit: cover !important; }

/* #2: the page has no <main> wrapper, so an earlier main.wrap padding never
   applied — the fixed FAB could overlap end-of-page content. Pad the body
   bottom on mobile so content always scrolls clear of the FAB. */
@media (max-width: 768px) {
  body { padding-bottom: 92px; }
}
/* #6: at <=360px the logo + UZ/share controls overflowed; tighten the
   header gap and cap the logo so everything fits. */
@media (max-width: 360px) {
  .site-header .header-inner { gap: 8px; }
  .site-header .logo-mark { width: 80px; height: auto; }
  .site-header .header-right { gap: 4px; }
}

/* #11: friendly empty-cart state. Shown (and the order chrome hidden) when
   the cart list has no items; toggled by home_extras.js. */
.home-cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 30px 16px 24px;
  text-align: center;
}
.home-cart-empty-icon { font-size: 46px; line-height: 1; opacity: 0.5; }
.home-cart-empty-title { margin: 4px 0 0; font-weight: 700; color: var(--text-main, #F5F5F5); }
.home-cart-empty-sub { margin: 0; font-size: 0.9rem; color: var(--text-muted, #A8B3AE); }
.home-cart-empty-cta { margin-top: 12px; }
.cart-modal-inner.is-cart-empty .total-line,
.cart-modal-inner.is-cart-empty .cart-note,
.cart-modal-inner.is-cart-empty .cart-actions { display: none !important; }

/* Always-visible Telegram "Savol bering" button — bottom-left so it never
   overlaps the bottom-right FAB dock / checkout bar. */
.tg-fab {
  position: fixed;
  left: calc(16px + env(safe-area-inset-left, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 130;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px 11px 13px;
  border-radius: 999px;
  background: #229ED9;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 10px 26px rgba(34, 158, 217, 0.42);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.tg-fab:hover {
  transform: translateY(-2px);
  background: #1c8cc2;
  box-shadow: 0 14px 32px rgba(34, 158, 217, 0.5);
  color: #fff;
}
.tg-fab-icon { width: 22px; height: 22px; flex: 0 0 auto; }
.tg-fab-label { white-space: nowrap; }
/* On very small phones collapse to a round icon-only button to save space. */
@media (max-width: 480px) {
  .tg-fab { padding: 12px; }
  .tg-fab-label { display: none; }
}
/* Footer height ~halved (owner request). Tighter section padding, column
   gaps and bottom bar. Copyright stays centered; the fixed "Savol bering"
   button is bottom-left so the centered text clears it without the big
   clearance that previously made the footer tall. */
.site-footer { padding: 14px 0 calc(16px + env(safe-area-inset-bottom, 0px)) !important; }
.footer-inner { gap: 8px 24px !important; }
.footer-col { gap: 5px !important; }
.footer-bottom {
  margin-top: 12px;
  padding-top: 10px;
  text-align: center;
  padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
}

/* #20: embedded showroom map section. */
.contact-map-section { padding: 36px 0 8px; }
.contact-map-sub { color: var(--text-muted, #A8B3AE); margin-top: 6px; }
.contact-map-hours {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(198, 165, 92, 0.12);
  border: 1px solid rgba(198, 165, 92, 0.28);
  color: var(--text, #EAF2EC);
  font-size: 0.92rem;
}
.contact-map-hours strong { color: var(--gold-light, #f5e5b8); font-weight: 700; }
.contact-map-hours-icon { font-size: 1rem; line-height: 1; }
.contact-map-frame {
  margin-top: 16px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(198, 165, 92, 0.22);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}
.contact-map-frame iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}
.contact-map-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .contact-map-frame iframe { height: 280px; }
}

/* ---- Cart popup audit (batch A) ---- */
/* CA5: branded placeholder used when a cart item has no image (or its
   image fails to load) — same 56px square as the real thumbnail. */
.cart-row-thumb-ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif, "Playfair Display", serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold, #C6A55C);
  background: #0d1f1a;
  cursor: default;
}
/* CA9: explicit remove (✕) button on each cart row, right-aligned. */
.cart-row-remove {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(220, 100, 100, 0.4);
  background: rgba(220, 80, 80, 0.12);
  color: #e9a3a3;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.cart-row-remove:hover {
  background: rgba(220, 80, 80, 0.24);
  border-color: rgba(220, 100, 100, 0.7);
  color: #ffd4d4;
}
/* CA6: info "i" button next to the bathroom-set title (tooltip on hover/
   tap via the title attribute). */
.cart-set-title { display: inline-flex; align-items: center; gap: 8px; }
.cart-set-info {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(198, 165, 92, 0.55);
  background: transparent;
  color: var(--gold, #C6A55C);
  font-size: 11px;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  cursor: help;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.cart-set-info:hover { background: rgba(198, 165, 92, 0.18); }

/* B: product image on each "Sizga kerak bo'lishi mumkin" suggestion row. */
.cart-reco-thumb {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(198, 165, 92, 0.28);
  background: #0d1f1a;
}
.cart-reco-thumb-ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif, "Playfair Display", serif);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold, #C6A55C);
}
.cart-reco-item .cart-reco-meta { flex: 1 1 auto; min-width: 0; }

/* Wishlist heart sits at the top-right corner (always visible); move the
   hover-only share button to its left so they no longer overlap. */
.product-card .product-media .share-btn { right: 54px !important; }

/* ── Add-to-cart fly animation ───────────────────────────────────────── */
@keyframes cart-fly {
  0%  { transform: translate(0, 0) scale(1); opacity: 1; }
  15% { transform: translate(calc(var(--fly-dx) * .08), calc(var(--fly-dy) * .05 - 28px)) scale(.88); opacity: 1; }
  100%{ transform: translate(var(--fly-dx), var(--fly-dy)) scale(.15); opacity: 0; }
}

.cart-fly-dot {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  background: var(--gold, #c6a55c) center / cover no-repeat;
  border: 2px solid rgba(255, 255, 255, .85);
  box-shadow: 0 3px 14px rgba(0, 0, 0, .22);
  will-change: transform, opacity;
  animation: cart-fly .65s cubic-bezier(.4, 0, .6, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .cart-fly-dot { animation-duration: .01ms !important; }
}

@keyframes cart-badge-pop {
  0%  { transform: scale(1); }
  50% { transform: scale(1.65); }
  100%{ transform: scale(1); }
}

.cart-badge-pop {
  animation: cart-badge-pop .35s cubic-bezier(.34, 1.56, .64, 1) both !important;
}

/* ── Add-button checkmark flash ──────────────────────────────────────── */
@keyframes btn-check-pop {
  0%  { transform: scale(1); }
  45% { transform: scale(1.1); }
  100%{ transform: scale(1); }
}

.add-btn.added {
  background: #3a9e5c !important;
  animation: btn-check-pop .3s cubic-bezier(.34, 1.56, .64, 1) both !important;
  transition: background .1s !important;
}

/* ── Promo popup + mini pill ─────────────────────────────────────────── */
@keyframes promo-rise {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

.promo-popup {
  position: fixed;
  bottom: 90px;
  right: 28px;
  width: 340px;
  background: #fff;
  border: 1.5px solid rgba(198, 165, 92, 0.35);
  border-radius: 18px;
  box-shadow: 0 8px 36px rgba(92, 73, 30, 0.18);
  padding: 22px 20px 18px;
  z-index: 9900;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: promo-rise 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.promo-popup[hidden] { display: none; }

.promo-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: #aaa;
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 6px;
  transition: color 0.15s;
}
.promo-close:hover { color: #555; }

.promo-icon { font-size: 32px; line-height: 1; }

.promo-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #173029;
}

.promo-body,
.promo-sub {
  margin: 0;
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

.promo-accent {
  font-size: 16px;
  font-weight: 700;
  color: #c6a55c;
}

.promo-timer-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(198, 165, 92, 0.1);
  border-radius: 10px;
  padding: 8px 12px;
}

.promo-timer-label {
  font-size: 12px;
  color: #999;
  white-space: nowrap;
}

.promo-countdown {
  font-size: 24px;
  font-weight: 700;
  color: #c6a55c;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.promo-cta {
  display: block;
  width: 100%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #e0c27a 0%, #c6a55c 100%);
  color: #102821;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  padding: 11px 14px;
  border-radius: 12px;
  transition: opacity 0.15s;
}
.promo-cta:hover { opacity: 0.85; }

.promo-pill {
  position: fixed;
  bottom: 90px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #e0c27a 0%, #c6a55c 100%);
  color: #102821;
  border: none;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  z-index: 9900;
  box-shadow: 0 4px 18px rgba(92, 73, 30, 0.2);
  animation: promo-rise 0.3s ease both;
  white-space: nowrap;
}
.promo-pill[hidden] { display: none; }

.promo-pill-countdown { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

.promo-pill-badge {
  background: #102821;
  color: #e0c27a;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 480px) {
  .promo-popup { right: 10px; left: 10px; width: auto; bottom: 80px; }
  .promo-pill  { left: 10px; bottom: 80px; }
}

/* ── Scroll progress bar ── */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #C6A55C, #E6CB8E, #C6A55C);
  z-index: 9999;
  pointer-events: none;
  transition: width 80ms linear;
  will-change: width;
}

/* ── Section dot indicators ── */
#section-dots {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
  margin: 0;
}
.sdot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(198, 165, 92, 0.28);
  cursor: pointer;
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}
.sdot:hover {
  background: rgba(198, 165, 92, 0.55);
  transform: scale(1.3);
}
.sdot.is-active {
  background: #C6A55C;
  transform: scale(1.6);
  box-shadow: 0 0 0 3px rgba(198, 165, 92, 0.22), 0 0 12px rgba(198, 165, 92, 0.55);
  animation: sdot-pulse 2.4s ease-in-out infinite;
}
@keyframes sdot-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(198, 165, 92, 0.22), 0 0 12px rgba(198, 165, 92, 0.55); }
  50%       { box-shadow: 0 0 0 5px rgba(198, 165, 92, 0.12), 0 0 20px rgba(198, 165, 92, 0.75); }
}
@media (max-width: 768px) {
  #section-dots { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #scroll-progress-bar { transition: none; }
  .sdot.is-active { animation: none; }
}
