/* Design System & Premium Aesthetics for Nazcake */

:root {
  /* Fonts
     — NAZCAKE brand word: Montserrat Black
     — headings / menu / logo companion: SN Pro 900
     — subtitles: SN Pro 300
     — body: Inter */
  --font-brand: 'Montserrat', 'SN Pro', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-title: 'SN Pro', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-accent: 'SN Pro', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-nav: 'SN Pro', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-subtitle: 'SN Pro', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Anton', 'Montserrat', Impact, sans-serif;
  --stage-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --stage-ms: 650ms;

  /* Colors (Light Theme — maximum white canvas) */
  --bg-primary: #ffffff;
  --bg-secondary: #ffffff;
  --bg-tertiary: #ffffff;
  
  --text-primary: #1c1511;
  /* Slightly clearer secondary for body/subcopy (was harder to read) */
  --text-secondary: #5c534c;
  --text-muted: #7a716a;

  /* Typography scale (try / rollback block) */
  --title-size-mobile: 2rem;      /* 32px */
  --title-size-tablet: 2.5rem;    /* 40px */
  --title-size-desktop: 3.5rem;   /* 56px — like MotionSites md */
  --title-tracking: -0.03em;
  --title-leading: 1.1;
  --subcopy-size: 1rem;           /* 16px */
  --subcopy-weight: 300;          /* SN Pro light for subtitles */
  --subcopy-leading: 1.55;
  --subcopy-max: 36rem;
  
  --accent-gold: #c28f1a;
  --accent-gold-light: #f6e073;
  --accent-chocolate: #4a2c11;
  
  /* Pink volume (3D) gradient */
  --pink-light: #ffcbd5;
  --pink-dark: #e05c74;
  --pink-gradient: linear-gradient(135deg, #ff9a9e 0%, #ff6a88 55%, #e05c74 100%);
  --pink-gradient-hover: linear-gradient(135deg, #ff8a8f 0%, #f75573 55%, #c7485e 100%);
  
  /* Shadows and Borders — cool/neutral so canvas stays pure white */
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  --hover-shadow: 0 15px 40px rgba(0, 0, 0, 0.07);
  --btn-shadow: 0 5px 15px rgba(224, 92, 116, 0.35), inset 0 -3px 0px rgba(0, 0, 0, 0.15), inset 0 2px 4px rgba(255, 255, 255, 0.4);
  --btn-shadow-active: 0 2px 5px rgba(224, 92, 116, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.2);
  --border-color: #eeeeee;
}

/* Global Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  touch-action: manipulation;
  /* Prevent iOS text size inflate in landscape */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-weight: 400;
  line-height: var(--subcopy-leading);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  touch-action: manipulation;
  /* Notch / home indicator safe areas */
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 60px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 900;
  color: var(--accent-chocolate);
  line-height: var(--title-leading);
  text-transform: uppercase;
  letter-spacing: var(--title-tracking);
}

.accent-text {
  font-family: var(--font-subtitle);
  font-weight: 300;
  font-style: normal;
  color: var(--accent-gold);
}

.section-subtitle {
  display: block;
  font-family: var(--font-subtitle);
  font-size: 1.5rem;
  font-style: normal;
  color: var(--accent-gold);
  margin-bottom: 8px;
  font-weight: 300;
}

/* Section H2 — SN Pro 900; brand word NAZCAKE uses Montserrat Black via .why-brand / spans */
.section-title {
  font-family: var(--font-title);
  font-size: var(--title-size-mobile);
  font-weight: 900;
  letter-spacing: var(--title-tracking);
  line-height: var(--title-leading);
  margin-bottom: 12px;
  text-transform: uppercase;
  text-align: center;
}

.section-header {
  text-align: center;
  width: 100%;
}

.text-center {
  text-align: center;
}

/* Section subcopy — SN Pro 300 */
.section-desc {
  font-family: var(--font-subtitle);
  font-size: var(--subcopy-size);
  font-weight: 300;
  line-height: var(--subcopy-leading);
  color: var(--text-secondary);
  max-width: var(--subcopy-max);
  margin: 0 auto 2.5rem auto;
  text-align: center;
}

/* Brand word in light subtitles / body — Montserrat Black, heavier than surrounding text */
.brand-word,
.section-desc strong,
.section-desc .brand-word,
.section-subtitle .brand-word,
.about-text strong,
.about-text .brand-word,
.footer-brand-desc .brand-word,
.category-stage-copy .brand-word {
  font-family: var(--font-brand);
  font-weight: 900;
  font-style: normal;
  letter-spacing: 0.02em;
  color: inherit;
  -webkit-text-fill-color: currentColor;
}

.section-title .brand-word {
  font-family: var(--font-brand);
  font-weight: 900;
  letter-spacing: 0.03em;
}

@media (min-width: 640px) {
  .section-title {
    font-size: var(--title-size-tablet);
  }
}

@media (min-width: 992px) {
  .section-title {
    font-size: var(--title-size-desktop);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  min-height: 44px; /* Touch target size */
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary {
  color: #ffffff;
}

.btn-gradient {
  background: var(--pink-gradient);
  box-shadow: var(--btn-shadow);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.btn-gradient:hover {
  background: var(--pink-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(224, 92, 116, 0.45), inset 0 -3px 0px rgba(0, 0, 0, 0.15), inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

.btn-gradient:active {
  transform: translateY(2px);
  box-shadow: var(--btn-shadow-active);
}

.btn-secondary {
  background-color: var(--bg-tertiary);
  color: var(--accent-chocolate);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--border-color);
  color: var(--accent-chocolate);
  transform: translateY(-1px);
}

.w-100 {
  width: 100%;
}

.flex-1 {
  flex: 1;
}

/* Header & Nav */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(76px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background-color: transparent;
  border-bottom: none;
  box-shadow: none;
  transition: background-color 0.3s ease, border-bottom 0.3s ease, box-shadow 0.3s ease;
  z-index: 100;
  box-sizing: border-box;
}

.main-header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

body.dark-theme .main-header.scrolled {
  background-color: rgba(4, 20, 13, 0.94);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

/* Same width rail as .container / footer / sections */
.header-container {
  display: grid;
  grid-template-columns: minmax(120px, auto) 1fr minmax(120px, auto);
  align-items: center;
  column-gap: 24px;
  height: 76px; /* content row; safe-area is on .main-header */
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 60px;
  padding-left: max(60px, env(safe-area-inset-left, 0px));
  padding-right: max(60px, env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}

.logo {
  --logo-main-size: 1.35rem;
  --logo-sub-size: 0.8rem;
  --logo-stack-gap: 0.14rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-text-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--logo-stack-gap);
  min-width: 0;
  /* Explicit stack height so icon can match top+bottom edges */
  height: calc(var(--logo-main-size) + var(--logo-sub-size) + var(--logo-stack-gap));
}

.logo-main {
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: var(--logo-main-size);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent-chocolate);
  text-transform: uppercase;
}

.logo-sub {
  font-family: var(--font-nav);
  font-size: var(--logo-sub-size);
  line-height: 1;
  font-style: normal;
  font-weight: 900;
  color: var(--accent-gold);
  margin-top: 0;
}

/* Icon height = full NAZCAKE + onimderi block (top/bottom edges align) */
.logo-img {
  display: block;
  width: auto;
  height: calc(var(--logo-main-size) + var(--logo-sub-size) + var(--logo-stack-gap));
  aspect-ratio: 512 / 491;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 6px 4px;
  min-width: 0;
}

.nav-link {
  position: relative;
  font-family: var(--font-nav);
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
  padding: 10px 12px;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--accent-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.nav-link:hover {
  color: var(--accent-gold);
  background: rgba(194, 143, 26, 0.06);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.header-theme-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--accent-chocolate);
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.header-theme-btn:hover {
  color: var(--accent-gold);
  background: rgba(194, 143, 26, 0.08);
  transform: scale(1.05);
}

.cart-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--accent-chocolate);
  padding: 8px;
  min-width: 44px; /* Touch target */
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.cart-btn:hover {
  transform: scale(1.1);
  color: var(--accent-gold);
}

.icon-cart {
  width: 24px;
  height: 24px;
}

.cart-count {
  position: absolute;
  top: 0px;
  right: 0px;
  background-color: var(--pink-dark);
  color: white;
  font-family: var(--font-title);
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(220, 92, 116, 0.4);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background-color: var(--accent-chocolate);
  border-radius: 2px;
  transition: all 0.3s ease;
  margin: 2px 0;
}

/* Mobile Drawer — pin to top+bottom so footer never slips past the viewport */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100%, 360px);
  height: auto;
  max-height: 100%;
  max-height: 100dvh;
  max-height: 100svh;
  background-color: var(--bg-primary);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.12);
  z-index: 200;
  transform: translateX(105%);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  padding:
    env(safe-area-inset-top, 0px)
    env(safe-area-inset-right, 0px)
    env(safe-area-inset-bottom, 0px)
    env(safe-area-inset-left, 0px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  box-sizing: border-box;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* same horizontal inset as nav/footer (equal L/R) */
  padding: 18px 16px 16px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

/* Close X: pull graphic to the same right rail as footer buttons */
.drawer-header .close-drawer-btn {
  margin-right: 0;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.drawer-brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.drawer-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.drawer-brand-name {
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.drawer-brand-sub {
  font-family: var(--font-nav);
  font-size: 0.78rem;
  font-style: normal;
  color: var(--accent-gold);
  font-weight: 900;
}

.drawer-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
}

.close-drawer-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.close-drawer-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.close-drawer-btn svg {
  width: 20px;
  height: 20px;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  /* match header/footer: equal left & right */
  padding: 12px 16px 8px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  flex: 1 1 auto;
  min-height: 0;
  /* scrollbar must not eat the right inset */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.drawer-nav::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.drawer-link {
  font-family: var(--font-nav);
  font-weight: 900;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  padding: 14px 16px;
  border-radius: 14px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.drawer-link:hover,
.drawer-link:active {
  background: rgba(194, 143, 26, 0.08);
  color: var(--accent-gold);
}

.drawer-footer {
  flex: 0 0 auto;
  flex-shrink: 0;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--border-color);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.02));
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* keep footer fully on-screen even if content is tight */
  position: relative;
  z-index: 1;
}

/* Short viewports (phones landscape / small height): tighten drawer chrome */
@media (max-height: 640px) {
  .drawer-header {
    padding: 12px 16px 10px;
  }

  .drawer-nav {
    padding: 6px 16px;
  }

  .drawer-link {
    padding: 10px 14px;
    font-size: 0.98rem;
  }

  .drawer-footer {
    gap: 8px;
    padding: 8px 16px 12px;
  }

  .mobile-theme-btn,
  .mobile-drawer-dropdown .lang-dropdown-btn,
  .drawer-location-widget {
    min-height: 44px;
    padding-top: 0;
    padding-bottom: 0;
  }
}

.drawer-tools {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-theme-btn {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.mobile-theme-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Hero Section (Milk Bar Redesign Style) */
.hero-section {
  /* svh = stable viewport (better when mobile browser chrome shows/hides) */
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-primary);
  position: relative;
  overflow: hidden;
  padding: 0 !important;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  pointer-events: none;
  /* iOS Safari full-screen video fix */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  /* poster shows immediately; video fades in after lazy load */
  background-color: #1a120c;
  opacity: 1;
  transition: opacity 0.45s ease;
}

.hero-video-bg.is-loading {
  opacity: 0.92;
}

.hero-video-bg.is-ready {
  opacity: 1;
}

/* No darkening film over hero video — full brightness */
.hero-video-scrim {
  display: none;
}

.hero-grain {
  display: none;
}

/* Giant ghost brand type behind hero copy */
.hero-ghost-text {
  position: absolute;
  inset-inline: 0;
  top: 18%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
}

.hero-ghost-text-inner {
  font-family: var(--font-display);
  font-size: clamp(72px, 22vw, 320px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #ffffff;
  opacity: 0.14;
}

.hero-container {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: center;
  max-width: 1920px;
  margin: 0 auto;
  padding: 88px 60px 28px;
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  justify-content: flex-end;
  box-sizing: border-box;
}

/* Clean video hero: copy centered, no product stage */
.hero-container--simple {
  justify-content: center;
  padding: 100px 24px 48px;
}

.hero-container--simple .hero-introducing-block {
  margin-top: 0;
  margin-bottom: 0;
}

/* ── Category stage (TOONHUB 4-role carousel → open catalog tab) ── */
/* Near full-screen; slightly under 100vh so it doesn't feel oversized */
.category-stage-section {
  position: relative;
  width: 100%;
  height: 90vh;
  height: 90svh;
  height: 90dvh;
  min-height: 90vh;
  min-height: 90svh;
  min-height: 90dvh;
  overflow: hidden;
  /* Allow vertical page scroll; horizontal swipe handled in JS */
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  /* Multi-stop palette: main glow + side wash + top accent (set per category in JS) */
  background:
    radial-gradient(
      ellipse 95% 75% at 50% 88%,
      color-mix(in srgb, var(--stage-accent, #6b2438) 72%, transparent) 0%,
      transparent 58%
    ),
    radial-gradient(
      ellipse 70% 55% at 12% 35%,
      color-mix(in srgb, var(--stage-accent-2, #2a1410) 55%, transparent) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 65% 50% at 88% 28%,
      color-mix(in srgb, var(--stage-accent-3, #a84a3a) 42%, transparent) 0%,
      transparent 52%
    ),
    radial-gradient(
      ellipse 50% 40% at 50% 15%,
      color-mix(in srgb, var(--stage-accent, #6b2438) 22%, transparent) 0%,
      transparent 60%
    ),
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--stage-accent-2, #120b0a) 80%, #0a0908) 0%,
      #0c0a09 55%,
      color-mix(in srgb, var(--stage-accent, #1a1010) 35%, #080706) 100%
    );
  color: #fff;
  transition: background var(--stage-ms) var(--stage-ease);
}

.category-stage-inner {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1920px;
  margin: 0 auto;
}

.category-stage-grain {
  position: absolute;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.45;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  background-repeat: repeat;
}

/* Touch / save-data: drop expensive grain + multi drop-shadows (iOS GPU heat) */
html.is-touch-device .category-stage-grain,
html.save-data .category-stage-grain,
.category-stage-section.is-stage-idle .category-stage-grain {
  display: none;
}

html.is-touch-device .category-stage-item img,
html.is-touch-device .category-stage-item.is-center img {
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.35));
}

html.is-touch-device .category-stage-item {
  will-change: auto;
}

html.is-touch-device .ticker-content,
html.is-touch-device .reviews-track {
  will-change: auto;
}

.category-stage-ghost {
  position: absolute;
  inset-inline: 0;
  top: calc(18% + 10px); /* +10px down */
  z-index: 2;
  display: block;
  width: 100%;
  max-width: 100%;
  height: clamp(40px, 11vw, 140px);
  overflow: hidden;
  padding-inline: 3%;
  box-sizing: border-box;
  pointer-events: none;
  user-select: none;
}

/* Ghost sits in the free band above the product viewport */
@media (min-width: 640px) {
  .category-stage-ghost {
    top: calc(9% + 10px);
    z-index: 4;
    padding-inline: 4%;
  }

  .category-stage-ghost-text {
    opacity: 0.1;
  }
}

@media (min-width: 992px) {
  .category-stage-ghost {
    top: calc(7% + 10px);
    padding-inline: 5%;
  }
}

.category-stage-ghost-text {
  /* Centered; size set once to fit longest label (same for all categories) */
  position: absolute;
  left: 50%;
  top: 50%;
  font-family: var(--font-display);
  font-size: var(--ghost-font-size, 2.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #ffffff;
  opacity: 0.12;
  margin: 0;
  max-width: none;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  transition: opacity 200ms ease;
}

/* Middle band only; overflow clips parked side items so they don't sit on screen */
.category-stage-viewport {
  position: absolute;
  left: 0;
  right: 0;
  top: 14%;
  bottom: 26%;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}

.category-stage {
  position: absolute;
  inset: 0;
  perspective: 1400px;
  perspective-origin: 50% 45%;
}

/* Base item — carousel roles animate position/opacity/scale */
.category-stage-item {
  position: absolute;
  top: 50%;
  left: 50%;
  aspect-ratio: 1 / 1;
  height: 78%;
  max-height: 100%;
  width: auto;
  max-width: min(70%, 520px);
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  will-change: transform, opacity, left, filter;
  transition:
    transform var(--stage-ms) var(--stage-ease),
    opacity var(--stage-ms) var(--stage-ease),
    left var(--stage-ms) var(--stage-ease),
    height var(--stage-ms) var(--stage-ease),
    filter var(--stage-ms) var(--stage-ease),
    max-width var(--stage-ms) var(--stage-ease);
  pointer-events: none;
  z-index: 5;
}

.category-stage-item img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  pointer-events: none;
  user-select: none;
  filter:
    drop-shadow(0 4px 8px rgba(0, 0, 0, 0.22))
    drop-shadow(0 16px 28px rgba(0, 0, 0, 0.4));
}

/* CENTER — only role visible at rest (15px below vertical center) */
.category-stage-item.is-center {
  left: 50%;
  z-index: 30;
  opacity: 1;
  filter: none;
  max-width: min(72%, 560px);
  transform: translate(-50%, calc(-50% + 30px)) scale(1) rotateY(0deg);
  pointer-events: auto;
  cursor: pointer;
  isolation: isolate;
}

.category-stage-item.is-center::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4%;
  width: 55%;
  height: 10%;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.18) 45%,
    transparent 72%
  );
  filter: blur(5px);
}

.category-stage-item.is-center img {
  filter:
    drop-shadow(0 4px 8px rgba(0, 0, 0, 0.22))
    drop-shadow(0 16px 28px rgba(0, 0, 0, 0.4))
    drop-shadow(0 0 36px color-mix(in srgb, var(--stage-accent, #6b2438) 28%, transparent));
}

/* Parked OFF-SCREEN — animate through on spin, not visible at rest */
.category-stage-item.is-left {
  left: -28%;
  z-index: 10;
  opacity: 0;
  max-width: min(40%, 280px);
  height: 50%;
  filter: blur(2px) brightness(0.7);
  transform: translate(-50%, -50%) scale(0.72) rotateY(38deg);
}

.category-stage-item.is-right {
  left: 128%;
  z-index: 10;
  opacity: 0;
  max-width: min(40%, 280px);
  height: 50%;
  filter: blur(2px) brightness(0.7);
  transform: translate(-50%, -50%) scale(0.72) rotateY(-38deg);
}

.category-stage-item.is-back {
  left: 50%;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  height: 40%;
  max-width: 30%;
  transform: translate(-50%, -50%) scale(0.45);
  pointer-events: none;
}

.category-stage-ui {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* Mobile default (restored) */
  padding: 48px 24px 28px;
  pointer-events: none;
  box-sizing: border-box;
}

.category-stage-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  pointer-events: none;
}

.category-stage-eyebrow {
  margin-bottom: 0;
  background: rgba(12, 10, 9, 0.45);
}

/* Bottom bar: left text+arrows · right Смотреть — full content width like other blocks */
.category-stage-footer {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 28px;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  pointer-events: auto;
}

.category-stage-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: min(380px, 58vw);
  gap: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.category-stage-kicker {
  font-family: var(--font-nav);
  font-weight: 800;
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.96);
  margin: 0 0 6px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

/* Subtitle under each category title — always visible */
.category-stage-copy {
  display: block;
  font-family: var(--font-subtitle);
  font-weight: 300;
  font-size: clamp(0.78rem, 1.35vw, 0.95rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 16px;
  max-width: 28rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.category-stage-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.hero-circle-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.92);
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 150ms ease, background-color 150ms ease;
}

.hero-circle-btn:hover {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.12);
}

.hero-circle-btn:active {
  transform: scale(0.98);
}

.category-stage-cta {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.96);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3.2vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
  cursor: pointer;
  transition: opacity 200ms ease, transform 200ms ease;
}

.category-stage-cta svg {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

.category-stage-cta:hover {
  opacity: 1;
  transform: translateX(4px);
}

@media (min-width: 640px) {
  .category-stage-ui {
    padding: 48px 40px 40px;
  }

  .category-stage-controls {
    max-width: 380px;
  }

  .category-stage-copy {
    margin-bottom: 18px;
  }

  .hero-circle-btn {
    width: 64px;
    height: 64px;
  }

  .category-stage-viewport {
    top: 16%;
    bottom: 24%;
  }

  .category-stage-item.is-center {
    height: 86%;
    max-width: min(68%, 560px);
  }
}

/* Desktop: pill near top of stage (+20px lower than previous 14px) */
@media (min-width: 992px) {
  .category-stage-ui {
    padding: 34px 60px 44px;
  }

  .category-stage-head {
    margin-top: 0;
  }

  .category-stage-viewport {
    top: 15%;
    bottom: 22%;
  }

  .category-stage-item.is-center {
    height: 90%;
    max-width: min(52%, 580px);
  }

  .category-stage-item.is-left {
    left: -22%;
  }

  .category-stage-item.is-right {
    left: 122%;
  }
}

@media (max-width: 639px) {
  /* Mobile: keep original top spacing for the pill */
  .category-stage-ui {
    padding: 48px 24px 28px;
  }

  .category-stage-ghost {
    top: calc(14% + 10px);
    padding-inline: 4%;
  }

  .category-stage-ghost-text {
    letter-spacing: -0.03em;
  }

  .category-stage-viewport {
    top: 18%;
    bottom: 30%;
  }

  .category-stage-item.is-center {
    height: 90%;
    max-width: 88%;
  }

  .category-stage-item.is-left {
    left: -40%;
  }

  .category-stage-item.is-right {
    left: 140%;
  }

  .category-stage-footer {
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 10px;
  }

  .category-stage-controls {
    max-width: min(72%, 280px);
  }

  /* Mobile stage title + subtitle — ~50% larger for readability */
  .category-stage-kicker {
    margin-bottom: 6px;
    font-size: 1.28rem; /* was 0.85rem */
    letter-spacing: 0.08em;
    line-height: 1.2;
  }

  .category-stage-copy {
    margin-bottom: 14px;
    font-size: 1.08rem; /* was 0.72rem */
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.88);
  }

  .category-stage-nav {
    gap: 8px;
  }

  .category-stage-cta {
    margin-left: auto;
  }

  .hero-ghost-text {
    top: 14%;
  }
}

/* Two-Column Showcase Grid */
.hero-showcase-grid {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  width: 100%;
  max-height: 750px;
  overflow: hidden;
  border-radius: 20px;
}

.showcase-column {
  overflow: hidden;
  border-radius: 20px;
  position: relative;
  box-shadow: 0 12px 30px rgba(74, 44, 17, 0.06);
}

.showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
  max-height: 750px;
  display: block;
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.showcase-column:hover .showcase-img {
  transform: scale(1.03);
}

/* Introducing Text Block — sits above stage figures */
.hero-introducing-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
  margin-top: auto;
  margin-bottom: clamp(7.5rem, 18vh, 11rem);
  position: relative;
  z-index: 30;
}

/* Legacy class kept for safety */
.hero-subtitle-intro {
  display: none;
}

/* MotionSites-style hero eyebrow: glass pill + gold→peach gradient text */
.hero-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(12, 10, 9, 0.38);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  box-shadow:
    0 0 0 1px rgba(194, 143, 26, 0.12) inset,
    0 8px 24px rgba(0, 0, 0, 0.25);
}

.hero-eyebrow-pill-text {
  font-family: var(--font-nav);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
  background-image: linear-gradient(
    100deg,
    #f6e073 0%,
    #f0d9a0 28%,
    #e8b88a 55%,
    #f2c4d8 78%,
    #e8d4ff 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Nav "новое" chip — MotionSites Apps/New style */
.nav-link--with-badge,
.drawer-link--with-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-new-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(232, 160, 120, 0.9);
  background: rgba(232, 160, 120, 0.08);
  font-family: var(--font-nav);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.25;
  color: #e8a078;
  text-shadow: none;
}

.main-header:not(.scrolled) .nav-new-badge {
  border-color: rgba(246, 200, 160, 0.95);
  color: #f6c8a0;
  background: rgba(246, 200, 160, 0.1);
  text-shadow: none !important;
}

.drawer-link--with-badge .nav-new-badge {
  font-size: 0.6rem;
  padding: 3px 9px;
}

body.dark-theme .nav-new-badge {
  border-color: rgba(232, 170, 130, 0.75);
  color: #f0b890;
  background: rgba(232, 170, 130, 0.1);
}

body.dark-theme .hero-eyebrow-pill {
  border-color: rgba(204, 166, 65, 0.28);
  background: rgba(4, 20, 13, 0.55);
}

.hero-introducing-block .hero-title {
  font-family: var(--font-title);
  font-size: var(--title-size-mobile);
  font-weight: 900;
  line-height: var(--title-leading);
  letter-spacing: var(--title-tracking);
  text-transform: uppercase;
  margin-bottom: 12px;
  color: #ffffff !important;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.55);
}

.hero-introducing-block .hero-desc {
  font-size: var(--subcopy-size);
  font-weight: var(--subcopy-weight);
  line-height: var(--subcopy-leading);
  color: rgba(255, 255, 255, 0.88) !important;
  max-width: var(--subcopy-max);
  margin: 0 auto 2rem auto;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

@media (min-width: 640px) {
  .hero-introducing-block .hero-title {
    font-size: var(--title-size-tablet);
  }
}

@media (min-width: 992px) {
  .hero-introducing-block .hero-title {
    font-size: var(--title-size-desktop);
  }
}

/* =========================================
   PREMIUM HERO CTA BUTTON
   ========================================= */
.btn-premium-shop {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
  /* Base: deep chocolate with warm gradient */
  background: linear-gradient(135deg, #3a2010 0%, #5a3015 40%, #4a2c11 100%);
  color: #f5e6c8 !important;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  padding: 0 40px;
  height: 58px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  /* Subtle gold top-edge highlight */
  box-shadow:
    0 1px 0 0 rgba(229, 193, 88, 0.5) inset,
    0 -1px 0 0 rgba(0,0,0,0.3) inset,
    0 8px 32px rgba(74, 44, 17, 0.55),
    0 2px 8px rgba(0,0,0,0.3);
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease,
    background 0.35s ease;
  -webkit-tap-highlight-color: transparent;
}

/* Shimmer sweep animation */
.btn-premium-shop .cta-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 235, 170, 0.18) 50%,
    transparent 80%
  );
  animation: cta-shimmer-slide 3.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes cta-shimmer-slide {
  0%   { left: -100%; }
  40%  { left: 130%; }
  100% { left: 130%; }
}

/* Label text */
.btn-premium-shop .cta-label {
  position: relative;
  z-index: 1;
}

/* Arrow icon — slides right on hover */
.btn-premium-shop .cta-icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  /* Thin gold separator on the left */
  padding-left: 14px;
  border-left: 1px solid rgba(229, 193, 88, 0.35);
  color: #e5c158;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.25s ease;
}

.btn-premium-shop:hover {
  transform: translateY(-4px);
  background: linear-gradient(135deg, #4a2c11 0%, #6b3a18 40%, #5a3015 100%);
  box-shadow:
    0 1px 0 0 rgba(229, 193, 88, 0.6) inset,
    0 -1px 0 0 rgba(0,0,0,0.3) inset,
    0 16px 40px rgba(74, 44, 17, 0.5),
    0 4px 16px rgba(0,0,0,0.2),
    0 0 0 1px rgba(229, 193, 88, 0.2);
  color: #fff5e0 !important;
}

.btn-premium-shop:hover .cta-icon {
  transform: translateX(5px);
  color: #f0d070;
}

.btn-premium-shop:active {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 0 rgba(229, 193, 88, 0.4) inset,
    0 4px 12px rgba(74, 44, 17, 0.4);
}

/* Dark theme — rich gold, deep text */
body.dark-theme .btn-premium-shop {
  background: linear-gradient(135deg, #c9a830 0%, #e5c158 45%, #d4ae42 100%) !important;
  color: #1a0f00 !important;
  box-shadow:
    0 1px 0 0 rgba(255, 245, 180, 0.5) inset,
    0 -1px 0 0 rgba(0,0,0,0.25) inset,
    0 8px 32px rgba(229, 193, 88, 0.35),
    0 2px 8px rgba(0,0,0,0.3) !important;
  border: none !important;
}

body.dark-theme .btn-premium-shop .cta-icon {
  color: rgba(26, 15, 0, 0.6);
  border-left-color: rgba(26, 15, 0, 0.2);
}

body.dark-theme .btn-premium-shop:hover {
  background: linear-gradient(135deg, #d4ae42 0%, #f0d070 45%, #e5c158 100%) !important;
  box-shadow:
    0 1px 0 0 rgba(255, 245, 180, 0.6) inset,
    0 16px 40px rgba(229, 193, 88, 0.45),
    0 0 0 1px rgba(255, 235, 150, 0.3) !important;
  color: #120800 !important;
}

body.dark-theme .btn-premium-shop:hover .cta-icon {
  color: rgba(26, 15, 0, 0.7);
}

body.dark-theme .btn-premium-shop .cta-shimmer {
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 80%
  );
}

/* Wave transitions */
.wave-transition {
  display: none !important;
}

.wave-transition svg {
  width: 100%;
  height: 50px;
  display: block;
}

/* Ticker Tape (Marquee) — dark brown strip in light theme (title chocolate) */
.ticker-tape-wrapper {
  width: 100%;
  overflow: hidden;
  background-color: var(--accent-chocolate);
  padding: 0;
}

.ticker-tape {
  width: 100%;
  overflow: hidden;
  background: var(--accent-chocolate);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  padding: 14px 0;
  display: flex;
  align-items: center;
  cursor: default;
  /* Keep marquee running: no pause on hover/tap, ignore pointer so sticky :hover doesn't freeze it */
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.ticker-content {
  display: flex;
  align-items: center;
  gap: 24px; /* Reduced gap to bring sentences closer */
  min-width: max-content;
  animation: ticker-scrolling 35s linear infinite;
  will-change: transform;
}

/* Pause infinite marquees when off-screen (JS toggles .is-marquee-paused) */
.ticker-tape-wrapper.is-marquee-paused .ticker-content,
.reviews-marquee.is-marquee-paused .reviews-track {
  animation-play-state: paused;
}

html.prefers-reduced-motion .ticker-content,
html.prefers-reduced-motion .reviews-track,
html.prefers-reduced-motion .btn-premium-shop .cta-shimmer,
html.prefers-reduced-motion .why-brand {
  animation: none !important;
}

.ticker-content span {
  font-family: var(--font-body);
  font-weight: 500;
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #f6efe6; /* cream on chocolate */
  white-space: nowrap;
}

.ticker-separator {
  color: rgba(246, 224, 115, 0.55) !important; /* soft gold dots on dark strip */
  font-size: 1.4rem;
  line-height: 1;
  display: inline-block;
  transform: translateY(-2px); /* Align middle dot vertically */
}

@keyframes ticker-scrolling {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-33.3333%, 0, 0);
  }
}

@keyframes ticker-scrolling-reverse {
  0% {
    transform: translate3d(-33.3333%, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

.ticker-content--reverse {
  animation-name: ticker-scrolling-reverse;
}

/* Dark Theme: deep emerald strip (same family as block bg-secondary) */
body.dark-theme .ticker-tape-wrapper {
  background-color: var(--bg-secondary) !important;
}

body.dark-theme .ticker-tape {
  background: var(--bg-secondary) !important;
  border-top-color: rgba(204, 166, 65, 0.18) !important;
  border-bottom-color: rgba(0, 0, 0, 0.35) !important;
}

body.dark-theme .ticker-content span {
  color: var(--text-primary) !important; /* mint cream */
}

body.dark-theme .ticker-separator {
  color: rgba(204, 166, 65, 0.55) !important;
}

/* About Us Section */
.about-section {
  background-color: var(--bg-secondary);
  padding: 40px 0;
}

.about-container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 60px;
}

.about-img {
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.04);
  width: 100%;
}

.about-text {
  font-size: var(--subcopy-size);
  font-weight: var(--subcopy-weight);
  line-height: var(--subcopy-leading);
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  text-align: left;
  max-width: var(--subcopy-max);
}

.about-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.feature-item {
  background-color: var(--bg-primary);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-3px);
}

.feature-num {
  display: block;
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.feature-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

/* Why Choose Nazcake */
.why-section {
  padding: 56px 0 48px;
  background-color: var(--bg-primary);
  overflow: visible;
}

/* ============================================================
   Reviews marquee (2GIS real guest feedback)
   ============================================================ */
.reviews-section {
  padding: 56px 0 64px;
  background: var(--bg-primary);
  overflow: hidden;
}

.reviews-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin: 0 0 10px;
}

.reviews-rating-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  margin: 8px auto 0;
  max-width: 36rem;
}

.reviews-stars {
  color: #f5a623;
  letter-spacing: 1px;
  font-size: 1.05rem;
  line-height: 1;
}

.reviews-score {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.reviews-count {
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.reviews-marquee {
  margin-top: 36px;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.reviews-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: reviews-scroll 110s linear infinite;
  will-change: transform;
  padding: 8px 12px 16px;
}

.reviews-marquee:hover .reviews-track {
  animation-play-state: paused;
}

@keyframes reviews-scroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.review-card {
  flex: 0 0 min(320px, 78vw);
  width: min(320px, 78vw);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.review-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--av, #4a2c11);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.review-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-card .review-stars {
  color: #f5a623;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  line-height: 1;
}

.review-badge {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5bb300;
  background: rgba(91, 179, 0, 0.12);
  border: 1px solid rgba(91, 179, 0, 0.28);
  padding: 4px 8px;
  border-radius: 999px;
}

.review-badge--yandex {
  color: #fc3f1d;
  background: rgba(252, 63, 29, 0.1);
  border-color: rgba(252, 63, 29, 0.28);
}

.review-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.5em;
}

.reviews-cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.reviews-cta {
  min-height: 46px;
  padding: 0 22px !important;
}

body.dark-theme .review-card {
  background: rgba(8, 33, 21, 0.9);
  border-color: rgba(204, 166, 65, 0.16);
}

body.dark-theme .review-badge {
  color: #9be04a;
  background: rgba(91, 179, 0, 0.15);
  border-color: rgba(91, 179, 0, 0.3);
}

body.dark-theme .review-badge--yandex {
  color: #ff8a65;
  background: rgba(252, 63, 29, 0.18);
  border-color: rgba(252, 63, 29, 0.35);
}

body.dark-theme .review-text {
  color: #c5d9cc;
}

@media (prefers-reduced-motion: reduce) {
  .reviews-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
  }

  .review-card[aria-hidden="true"] {
    display: none;
  }
}

@media (max-width: 640px) {
  .reviews-section {
    padding: 40px 0 48px;
  }

  .reviews-marquee {
    margin-top: 24px;
    mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
  }

  .review-card {
    flex-basis: min(280px, 82vw);
    width: min(280px, 82vw);
    padding: 14px;
  }

  .reviews-track {
    gap: 12px;
    animation-duration: 75s;
  }
}

/*
  Why title = same scale/color as other .section-title blocks.
  Only extra: gold animated wordmark on "Nazcake".
*/
.why-title.section-title,
.why-title {
  max-width: 100%;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 12px;
  text-transform: uppercase;
  white-space: normal;
  /* Match global section title scale (no smaller custom clamp) */
  font-size: var(--title-size-mobile);
  font-weight: 900;
  letter-spacing: var(--title-tracking);
  line-height: var(--title-leading);
  overflow: visible;
  text-align: center;
  color: var(--text-primary);
  padding-inline: 4px;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .why-title.section-title,
  .why-title {
    font-size: var(--title-size-tablet);
  }
}

@media (min-width: 992px) {
  .why-title.section-title,
  .why-title {
    white-space: nowrap;
    font-size: var(--title-size-desktop);
  }
}

@property --gradient-x {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 44%;
}

@property --gradient-y {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 35%;
}

.why-brand-wrap {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
  padding: 0 0.08em;
  margin: 0 -0.04em;
  overflow: visible;
}

.why-brand {
  display: inline-block;
  font-family: var(--font-brand);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: transparent;
  background-image: radial-gradient(
    80% 110% at var(--gradient-x, 44%) var(--gradient-y, 35%),
    #f9e37a 0%,
    #f6e073 14%,
    #f0d96c 28%,
    #ead779 40%,
    #cca641 55%,
    #c28f1a 70%,
    #be922f 82%,
    #a9710f 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: why-gold-flow 9s ease-in-out infinite;
}

/* Soft glow — low blur so it doesn't smear the title */
.why-brand-glow {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  filter: blur(6px);
  opacity: 0.28;
  pointer-events: none;
  user-select: none;
  -webkit-text-fill-color: transparent;
}

.why-brand-fill {
  position: relative;
  z-index: 1;
}

@keyframes why-gold-flow {
  0%,
  100% {
    --gradient-x: 44%;
    --gradient-y: 35%;
  }
  33% {
    --gradient-x: 62%;
    --gradient-y: 52%;
  }
  66% {
    --gradient-x: 30%;
    --gradient-y: 60%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .why-brand {
    animation: none;
    --gradient-x: 48%;
    --gradient-y: 42%;
  }

  .why-brand-glow {
    display: none;
  }
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 40px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.why-card {
  background: transparent;
  border: none;
  border-top: 2px solid var(--accent-gold);
  padding: 28px 12px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 0;
  /* Always visible — avoid stuck reveal opacity:0 */
  opacity: 1 !important;
  transform: none !important;
}

.why-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  background: linear-gradient(145deg, rgba(243, 229, 192, 0.45), rgba(212, 175, 55, 0.12));
  margin: 0 auto 4px;
  flex-shrink: 0;
}

.why-icon svg {
  width: 28px;
  height: 28px;
  display: block;
  overflow: visible;
}

.why-card-title {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: var(--title-tracking);
  text-transform: uppercase;
  color: var(--text-primary);
  margin: 0;
  max-width: 100%;
}

.why-card-text {
  font-size: var(--subcopy-size);
  font-weight: var(--subcopy-weight);
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
  max-width: 28rem;
}

@media (max-width: 992px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 520px;
  }

  .why-card {
    padding: 24px 12px 16px;
  }

  .why-section {
    padding: 40px 0 28px;
  }

  .why-section .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

body.dark-theme .why-title {
  color: var(--text-primary);
}

body.dark-theme .why-card-title {
  color: var(--text-primary);
}

body.dark-theme .why-card-text {
  color: var(--text-secondary);
}

/* Instagram profile card */
.community-section {
  padding: 56px 0 48px;
  background-color: var(--bg-primary);
}

.community-title {
  margin-bottom: 8px;
}

.ig-card {
  max-width: 470px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #dbdbdb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  font-family: var(--font-body);
}

/* Header */
.ig-header {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 20px 20px 12px;
}

.ig-avatar-ring {
  flex-shrink: 0;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  display: block;
}

.ig-avatar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #004225;
  border: 3px solid #fff;
  overflow: hidden;
}

.ig-avatar-inner img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.ig-header-main {
  flex: 1;
  min-width: 0;
}

.ig-username-row {
  margin-bottom: 4px;
}

.ig-username {
  font-size: 1.25rem;
  font-weight: 600;
  color: #262626;
  letter-spacing: -0.01em;
}

.ig-category-line {
  font-size: 0.8rem;
  color: #737373;
  margin: 0 0 10px;
  line-height: 1.35;
}

.ig-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  color: #262626;
}

.ig-stats strong {
  font-weight: 700;
}

.ig-stats span {
  font-weight: 400;
  color: #262626;
}

/* Bio */
.ig-bio {
  padding: 0 20px 14px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #262626;
}

.ig-bio-category {
  margin: 0 0 4px;
  font-weight: 400;
  color: #737373;
  font-size: 0.85rem;
}

.ig-bio-text {
  margin: 0 0 6px;
  font-weight: 500;
}

.ig-bio-address {
  margin: 0 0 4px;
  color: #00376b;
  font-weight: 500;
}

.ig-bio-links {
  margin: 0;
  font-size: 0.85rem;
}

.ig-bio-links a {
  color: #00376b;
  font-weight: 600;
}

.ig-bio-links a:hover {
  text-decoration: underline;
}

.ig-bio-sep {
  margin: 0 6px;
  color: #737373;
}

/* Actions */
.ig-actions {
  display: flex;
  gap: 8px;
  padding: 0 16px 16px;
}

.ig-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.ig-btn:hover {
  opacity: 0.92;
}

.ig-btn-primary {
  flex: 1.2;
  background: #0095f6;
  color: #fff !important;
  border: none;
}

.ig-btn-secondary {
  flex: 1.2;
  background: #efefef;
  color: #262626 !important;
  border: none;
}

.ig-btn-icon {
  width: 40px;
  flex-shrink: 0;
  background: #efefef;
  color: #262626;
  border: none;
}

/* Highlights */
.ig-highlights {
  display: flex;
  gap: 14px;
  padding: 4px 16px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ig-highlights::-webkit-scrollbar {
  display: none;
}

.ig-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  width: 72px;
  text-decoration: none;
  color: #262626;
}

.ig-highlight-ring {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  padding: 2px;
  border: 1.5px solid #dbdbdb;
  display: block;
  overflow: hidden;
  background: #fafafa;
}

.ig-highlight-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #fff;
}

.ig-highlight-label {
  font-size: 0.72rem;
  text-align: center;
  line-height: 1.2;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Tabs */
.ig-tabs {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid #dbdbdb;
  color: #8e8e8e;
}

.ig-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
  border-top: 1px solid transparent;
  margin-top: -1px;
}

.ig-tab-active {
  color: #262626;
  border-top-color: #262626;
}

/* Posts grid — Instagram tight 3-col */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: #fff;
}

.ig-post {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: #efefef;
}

.ig-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.25s ease;
}

/* Reel play badge (top-right, like Instagram) */
.ig-post-reel::before {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7L8 5z'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

.ig-post:hover img {
  transform: scale(1.04);
  opacity: 0.92;
}

@media (max-width: 768px) {
  .community-section {
    padding: 40px 0 32px;
  }

  .ig-card {
    max-width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .ig-header {
    gap: 16px;
    padding: 16px 16px 10px;
  }

  .ig-avatar-ring {
    width: 86px;
    height: 86px;
  }

  .ig-stats {
    gap: 10px 12px;
    font-size: 0.8rem;
  }

  .ig-username {
    font-size: 1.1rem;
  }
}

body.dark-theme .ig-card {
  background: #121212;
  border-color: #262626;
}

body.dark-theme .ig-username,
body.dark-theme .ig-stats,
body.dark-theme .ig-stats span,
body.dark-theme .ig-bio,
body.dark-theme .ig-highlight-label,
body.dark-theme .ig-tab-active {
  color: #f5f5f5;
}

body.dark-theme .ig-category-line,
body.dark-theme .ig-bio-category,
body.dark-theme .ig-tab {
  color: #a8a8a8;
}

body.dark-theme .ig-avatar-inner {
  border-color: #121212;
  background: #004225;
}

body.dark-theme .ig-btn-secondary,
body.dark-theme .ig-btn-icon {
  background: #363636;
  color: #f5f5f5 !important;
}

body.dark-theme .ig-highlight-ring {
  border-color: #363636;
  background: #1a1a1a;
}

body.dark-theme .ig-tabs,
body.dark-theme .ig-tab-active {
  border-color: #262626;
}

body.dark-theme .ig-grid {
  background: #121212;
}

/* Bestsellers Section */
.bestsellers-section {
  padding: 40px 0;
  background-color: var(--bg-primary);
}

.products-grid {
  display: grid;
  /* Milk Bar–scale cards: fewer per row, larger photos on desktop */
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 36px 32px;
}

@media (min-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 40px 36px;
  }
}

@media (min-width: 1600px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  }
}

#bestsellers-grid {
  display: flex !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory !important;
  gap: 30px !important;
  padding: 10px 5px 8px 5px !important;
  -webkit-overflow-scrolling: touch !important;
  /* Fully hide native OS scrollbar (arrows cannot be removed reliably on Windows) */
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* old Edge */
}

#bestsellers-grid::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
  background: transparent !important;
}

/* Custom rail — no OS end-arrows, fully rounded */
.bestsellers-scroll-rail {
  position: relative;
  height: 8px;
  margin: 10px 14px 4px;
  border-radius: 999px;
  background: rgba(74, 44, 17, 0.12);
  overflow: hidden;
  cursor: pointer;
  touch-action: none;
  user-select: none;
}

.bestsellers-scroll-thumb {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  min-width: 36px;
  width: 40%;
  border-radius: 999px;
  background-image: linear-gradient(
    90deg,
    #c28f1a 0%,
    #e8c45a 45%,
    #c28f1a 100%
  );
  box-shadow: 0 1px 3px rgba(74, 44, 17, 0.2);
  cursor: grab;
  will-change: transform, width;
}

.bestsellers-scroll-thumb:active {
  cursor: grabbing;
}

.bestsellers-scroll-rail.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

body.dark-theme .bestsellers-scroll-rail {
  background: rgba(16, 51, 34, 0.95);
  box-shadow: inset 0 0 0 1px rgba(204, 166, 65, 0.12);
}

body.dark-theme .bestsellers-scroll-thumb {
  background-image: linear-gradient(
    90deg,
    #9a7a28 0%,
    #cca641 45%,
    #e0c06a 100%
  );
  box-shadow: 0 0 0 1px rgba(4, 20, 13, 0.35);
}

#bestsellers-grid .product-card {
  flex: 0 0 clamp(300px, 28vw, 420px) !important;
  scroll-snap-align: start !important;
  max-width: 420px !important;
  width: clamp(300px, 28vw, 420px) !important;
}

@media (min-width: 1200px) {
  #bestsellers-grid {
    gap: 36px !important;
  }

  #bestsellers-grid .product-card {
    flex: 0 0 400px !important;
    max-width: 400px !important;
    width: 400px !important;
  }
}

@media (min-width: 1600px) {
  #bestsellers-grid .product-card {
    flex: 0 0 440px !important;
    max-width: 440px !important;
    width: 440px !important;
  }
}

#bestsellers-grid {
  cursor: grab;
  user-select: none;
}

#bestsellers-grid.active-drag {
  cursor: grabbing;
  scroll-behavior: auto !important;
  scroll-snap-type: none !important;
}

.bestsellers-carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden; /* prevent cards from painting outside rail */
}

.bestsellers-section .container {
  overflow: hidden;
}

@media (max-width: 768px) {
  .bestsellers-section .container,
  .catalog-section .container {
    padding-left: max(6px, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(6px, env(safe-area-inset-right, 0px)) !important;
  }

  #bestsellers-grid,
  #catalog-grid {
    scroll-padding-inline: 0;
  }

  /* Catalog: same 6px side rail + 6px card gap as bestsellers */
  #catalog-grid {
    gap: 6px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  #catalog-grid.products-grid {
    display: flex !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  #catalog-grid.products-grid::-webkit-scrollbar {
    display: none;
  }

  #catalog-grid .product-card {
    flex: 0 0 min(calc(100vw - 12px), 320px) !important;
    max-width: min(calc(100vw - 12px), 320px) !important;
    width: min(calc(100vw - 12px), 320px) !important;
    scroll-snap-align: start;
    box-sizing: border-box !important;
  }

  .catalog-tabs {
    gap: 6px;
    margin-bottom: 20px;
    padding-left: 0;
    padding-right: 0;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .catalog-tabs::-webkit-scrollbar {
    display: none;
  }

  .catalog-tabs .tab-btn {
    flex-shrink: 0;
  }
}

/* Large chevrons — always clickable on desktop, inside carousel rail */
.bestsellers-arrow {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 52px;
  height: 72px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  z-index: 12;
  background: transparent;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
  opacity: 0.85;
  pointer-events: auto;
  transition: opacity 0.22s ease, transform 0.2s ease, color 0.2s ease, filter 0.2s ease;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.35));
}

.bestsellers-arrow svg {
  width: 40px;
  height: 40px;
  display: block;
  overflow: visible;
}

.bestsellers-carousel-wrapper:hover .bestsellers-arrow,
.bestsellers-carousel-wrapper.is-scrolling .bestsellers-arrow,
.bestsellers-carousel-wrapper:focus-within .bestsellers-arrow {
  opacity: 1;
}

body.dark-theme .bestsellers-arrow {
  color: #f6e073;
  background: transparent;
  border: none;
  box-shadow: none;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 8px rgba(0, 66, 37, 0.5));
}

.bestsellers-arrow:hover {
  transform: translateY(-50%) scale(1.12);
  color: #e8c45a;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 12px rgba(194, 143, 26, 0.55));
}

body.dark-theme .bestsellers-arrow:hover {
  color: #fff0a8;
}

.bestsellers-arrow.prev-btn {
  left: 4px;
}

.bestsellers-arrow.next-btn {
  right: 4px;
}

@media (max-width: 768px) {
  #bestsellers-grid {
    gap: 6px !important;
    /* Side inset comes from .container (6px); avoid double padding */
    padding-top: 10px !important;
    padding-bottom: 14px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    /* Keep rail visible as section divider on mobile too */
    scrollbar-width: thin !important;
  }

  #bestsellers-grid .product-card {
    flex: 0 0 min(calc(100vw - 12px), 320px) !important;
    max-width: min(calc(100vw - 12px), 320px) !important;
    width: min(calc(100vw - 12px), 320px) !important;
    box-sizing: border-box !important;
  }

  .bestsellers-scroll-rail {
    margin: 8px 10px 2px;
    height: 6px;
  }

  /* Keep arrows usable on tablet; hide only on very narrow phones */
  .bestsellers-arrow {
    width: 40px;
    height: 56px;
    opacity: 0.85;
  }
}

@media (max-width: 480px) {
  .bestsellers-arrow {
    display: none !important;
  }
}

/* Product Card Styling — rounded photo, frameless text below */
.product-card {
  background: transparent;
  border-radius: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  border: none;
  box-shadow: none;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: none;
}

.product-img-wrapper {
  position: relative;
  padding-bottom: 100%; /* 1:1 Aspect Ratio */
  background-color: var(--bg-tertiary);
  overflow: hidden;
  cursor: pointer;
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
  transition: box-shadow 0.3s ease, background 0.35s ease;
}

.product-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Full product visible — no crop */
  object-fit: contain;
  object-position: center;
  transition: transform 0.5s ease;
  border-radius: 20px;
  padding: 6px;
  box-sizing: border-box;
}

.product-card:hover .product-img-wrapper img {
  transform: scale(1.03);
}

.product-card:hover .product-img-wrapper {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

/* Product card chips — clean cream fill, gold outline, solid type (no dirty shadow) */
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100% - 24px);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--accent-gold);
  background: rgba(255, 252, 248, 0.95);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  pointer-events: none;
}

.product-badge-text {
  font-family: var(--font-nav);
  font-weight: 900;
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  color: var(--accent-chocolate);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: var(--accent-chocolate);
  filter: none;
}

.product-info {
  padding: 12px 2px 2px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 4px;
  text-align: left;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Category — quiet label, readable medium */
.product-category {
  font-family: var(--font-body);
  font-size: 0.75rem; /* 12px */
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 0;
  line-height: 1.3;
}

/* Name — scales with larger Milk Bar–style cards */
.product-name {
  font-family: var(--font-title);
  font-size: clamp(1.05rem, 1.1vw, 1.25rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 0;
  cursor: pointer;
  text-transform: none;
  letter-spacing: -0.02em;
}

.product-name:hover {
  color: var(--accent-gold);
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
  gap: 10px;
}

/* Price — medium weight, slightly larger on big cards */
.product-price {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1vw, 1.15rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.stepper-and-btn {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 12px;
}

.quantity-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 30px;
  overflow: hidden;
  background-color: var(--bg-tertiary);
  width: fit-content;
}

.stepper-btn {
  background: none;
  border: none;
  width: 36px; /* 44px touch-friendly in card */
  height: 36px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--accent-chocolate);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.stepper-btn:hover {
  background-color: var(--border-color);
}

.quantity-val {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  width: 30px;
  text-align: center;
  color: var(--accent-chocolate);
}

/* Catalog Section */
.catalog-section {
  padding: 40px 0;
  background-color: var(--bg-secondary);
  transition: background 0.55s cubic-bezier(0.4, 0, 0.2, 1), color 0.35s ease;
}

/* Active category tab → full scene gradient (same language as category-stage) */
.catalog-section.is-cat-themed {
  color: #fff;
  background:
    radial-gradient(
      ellipse 95% 75% at 50% 90%,
      color-mix(in srgb, var(--cat-accent, #5c2a18) 70%, transparent) 0%,
      transparent 58%
    ),
    radial-gradient(
      ellipse 70% 55% at 12% 30%,
      color-mix(in srgb, var(--cat-accent-2, #1a100c) 55%, transparent) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 65% 50% at 90% 22%,
      color-mix(in srgb, var(--cat-accent-3, #c48a3a) 40%, transparent) 0%,
      transparent 52%
    ),
    radial-gradient(
      ellipse 50% 40% at 50% 8%,
      color-mix(in srgb, var(--cat-accent, #5c2a18) 22%, transparent) 0%,
      transparent 60%
    ),
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--cat-accent-2, #120b0a) 85%, #0a0908) 0%,
      #0c0a09 55%,
      color-mix(in srgb, var(--cat-accent, #1a1010) 40%, #080706) 100%
    );
}

.catalog-section.is-cat-themed .section-title {
  color: #ffffff !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.catalog-section.is-cat-themed .section-desc {
  color: rgba(255, 255, 255, 0.82) !important;
}

.catalog-section.is-cat-themed .product-name {
  color: #faf6f1;
}

.catalog-section.is-cat-themed .product-category {
  color: rgba(255, 255, 255, 0.62);
}

.catalog-section.is-cat-themed .product-price {
  color: #f0d9a0;
}

.catalog-section.is-cat-themed .product-img-wrapper {
  background-color: rgba(255, 255, 255, 0.06);
  background-image: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.catalog-section.is-cat-themed .product-card:hover .product-img-wrapper {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.38);
}

.catalog-section.is-cat-themed .tab-btn {
  background: rgba(12, 10, 9, 0.35);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.catalog-section.is-cat-themed .tab-btn:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.catalog-section.is-cat-themed .tab-btn.active {
  background: rgba(255, 255, 255, 0.95);
  color: #1c1511;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.catalog-section.is-cat-themed .tab-btn.tab-btn--new:not(.active) {
  border-color: rgba(246, 224, 115, 0.55);
  color: #f6e073;
  background: rgba(12, 10, 9, 0.4);
}

.catalog-section.is-cat-themed .btn-card-add {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.catalog-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 45px;
}

.tab-btn {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: 30px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  min-height: 40px;
  transition: all 0.25s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.tab-btn:hover {
  color: var(--accent-chocolate);
  border-color: var(--accent-gold);
}

.tab-btn.active {
  background-color: var(--accent-chocolate);
  color: white;
  border-color: var(--accent-chocolate);
  box-shadow: 0 4px 12px rgba(74, 44, 17, 0.15);
}

/* «Новинки» tab — slight gold accent so it stands out in the row */
.tab-btn.tab-btn--new:not(.active) {
  border-color: rgba(194, 143, 26, 0.55);
  color: var(--accent-chocolate);
  background: linear-gradient(180deg, rgba(246, 224, 115, 0.12) 0%, rgba(255, 255, 255, 0.6) 100%);
}

.tab-btn.tab-btn--new:not(.active):hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

body.dark-theme .tab-btn.tab-btn--new:not(.active) {
  background: linear-gradient(180deg, rgba(194, 143, 26, 0.14) 0%, rgba(4, 20, 13, 0.4) 100%);
  color: #f0d9a0;
  border-color: rgba(194, 143, 26, 0.45);
}

/* Shared form controls (cart / delivery / admin — kept after bento removal) */
.custom-select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  outline: none;
  cursor: pointer;
  min-height: 44px;
}

.custom-select:focus-visible {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(220, 166, 116, 0.25);
}

.custom-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
  min-height: 44px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.custom-input:focus-visible {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(220, 166, 116, 0.25);
}

/* Delivery Section */
.delivery-section {
  padding: 40px 0;
  background-color: var(--bg-secondary);
}

.delivery-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 50px;
  box-shadow: var(--card-shadow);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
  text-align: left;
}

.delivery-text {
  font-size: var(--subcopy-size);
  font-weight: var(--subcopy-weight);
  line-height: var(--subcopy-leading);
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: var(--subcopy-max);
}

.delivery-features-list {
  list-style: none;
}

.delivery-features-list li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 25px;
  color: var(--text-secondary);
  font-size: var(--subcopy-size);
  font-weight: var(--subcopy-weight);
  line-height: var(--subcopy-leading);
}

.delivery-features-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-gold);
  font-weight: 700;
}

.delivery-calc-box {
  background-color: var(--bg-tertiary);
  border-radius: 16px;
  padding: 30px;
  border: 1px solid var(--border-color);
}

.calc-title {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.calc-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.calc-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.input-icon-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-group svg {
  position: absolute;
  left: 15px;
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

.input-icon-group input {
  padding-left: 45px;
}

.calc-results {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  animation: fadeIn 0.3s ease;
}

.result-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.result-val {
  font-weight: 700;
}

.result-val.highlight {
  color: var(--accent-gold);
  font-size: 1.15rem;
}

.calc-error {
  margin-top: 20px;
  padding: 12px;
  background-color: #fee2e2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  border-radius: 8px;
  font-size: 0.9rem;
  text-align: center;
}

.hidden {
  display: none !important;
}

/* Contacts Section */
.contacts-section {
  padding: 80px 0;
  background-color: var(--bg-primary);
}

.contacts-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  margin-top: 40px;
  /* map and info column share the same bottom edge */
  align-items: stretch;
}

.contacts-map-wrapper {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  /* grow to full height of the info cards column */
  height: 100%;
  min-height: 380px;
  position: relative;
  background: var(--bg-secondary);
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

.contacts-map,
#contacts-map {
  width: 100%;
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  z-index: 0;
  font-family: var(--font-body);
  background: var(--bg-secondary);
}

/* Leaflet chrome */
.contacts-map .leaflet-control-zoom {
  border: none !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
  border-radius: 12px !important;
  overflow: hidden;
  margin: 0 12px 12px 0 !important;
}

.contacts-map .leaflet-control-zoom a {
  width: 36px !important;
  height: 36px !important;
  line-height: 36px !important;
  font-size: 18px !important;
  color: var(--text-primary) !important;
  background: var(--bg-primary) !important;
  border: none !important;
  border-bottom: 1px solid var(--border-color) !important;
}

.contacts-map .leaflet-control-zoom a:last-child {
  border-bottom: none !important;
}

.contacts-map .leaflet-control-zoom a:hover {
  background: var(--bg-secondary) !important;
  color: var(--accent-gold) !important;
}

/* Custom pulse marker (Rolex green + gold) */
.map-custom-marker {
  background: transparent !important;
  border: none !important;
}

.marker-pulse-wrapper {
  position: relative;
  width: 30px;
  height: 30px;
}

.marker-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #004225;
  border: 2.5px solid #c28f1a;
  box-shadow: 0 2px 10px rgba(0, 66, 37, 0.45);
  z-index: 2;
}

.marker-pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: rgba(194, 143, 26, 0.5);
  animation: nazcake-marker-pulse 1.9s ease-out infinite;
  z-index: 1;
}

@keyframes nazcake-marker-pulse {
  0% {
    transform: scale(1);
    opacity: 0.75;
  }
  100% {
    transform: scale(3.4);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marker-pulse {
    animation: none;
    opacity: 0.35;
    transform: scale(2);
  }
}

/* Map popup */
.nazcake-map-popup .leaflet-popup-content-wrapper {
  border-radius: 14px;
  font-family: var(--font-body);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0;
}

.nazcake-map-popup .leaflet-popup-content {
  margin: 12px 16px;
  font-size: 0.92rem;
  line-height: 1.4;
  color: #1c1511;
  min-width: 140px;
}

.nazcake-map-popup .leaflet-popup-content b {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #004225;
  display: block;
  margin-bottom: 2px;
}

.nazcake-map-popup .leaflet-popup-tip {
  box-shadow: none;
}

.nazcake-map-popup a.leaflet-popup-close-button {
  color: #7a716a !important;
  font-size: 18px !important;
  padding: 6px 8px 0 0 !important;
}

body.dark-theme .nazcake-map-popup .leaflet-popup-content-wrapper {
  background: #0f2314;
  border-color: rgba(220, 166, 116, 0.2);
  color: #f5f0e8;
}

body.dark-theme .nazcake-map-popup .leaflet-popup-content {
  color: #f5f0e8;
}

body.dark-theme .nazcake-map-popup .leaflet-popup-content b {
  color: #f6e073;
}

body.dark-theme .nazcake-map-popup .leaflet-popup-tip {
  background: #0f2314;
}

body.dark-theme .contacts-map .leaflet-control-zoom a {
  background: #0f2314 !important;
  color: #f5f0e8 !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

/*
  Dark theme map: keep Voyager basemap (readable streets/labels),
  then gently tint tiles so the block still feels dark — not pure black.
*/
body.dark-theme .contacts-map .leaflet-tile-pane,
.contacts-map--dark .leaflet-tile-pane {
  filter: brightness(0.92) contrast(1.08) saturate(0.95);
}

body.dark-theme .contacts-map-wrapper,
body.dark-theme .contacts-map {
  background: #1a2e22;
  border-color: rgba(220, 166, 116, 0.22);
}

/* Stronger marker contrast on dark UI */
body.dark-theme .marker-dot {
  background: #0a3d28;
  border-color: #f6e073;
  box-shadow:
    0 0 0 3px rgba(246, 224, 115, 0.25),
    0 2px 12px rgba(0, 0, 0, 0.55);
}

body.dark-theme .marker-pulse {
  background: rgba(246, 224, 115, 0.55);
}

/* Open popup by default is readable; ensure tip matches dark popup */
body.dark-theme .nazcake-map-popup .leaflet-popup-close-button {
  color: rgba(245, 240, 232, 0.7) !important;
}

.contacts-info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
  /* natural height drives the grid row; map stretches to match */
  align-self: stretch;
}

.info-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background-color: var(--bg-secondary);
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  flex: 0 0 auto;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.info-card:hover {
  border-color: rgba(194, 143, 26, 0.35);
}

/* Clean icon — no circle, gold stroke */
.info-icon {
  background: transparent;
  color: var(--accent-gold);
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-top: 2px;
  flex-shrink: 0;
}

.info-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.85;
}

.info-content {
  flex: 1;
  min-width: 0;
}

.info-content h4 {
  font-family: var(--font-title);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.info-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 0;
}

.info-link {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.info-link:hover {
  color: var(--accent-gold);
}

/* Dark theme: higher contrast cards + brighter gold icons */
body.dark-theme .info-card {
  background: rgba(8, 33, 21, 0.85);
  border-color: rgba(204, 166, 65, 0.18);
}

body.dark-theme .info-card:hover {
  border-color: rgba(246, 224, 115, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

body.dark-theme .info-icon {
  color: var(--accent-gold-light);
}

body.dark-theme .info-content h4 {
  color: #f0f7f3;
}

body.dark-theme .info-content p,
body.dark-theme .info-link {
  color: #c5d9cc;
}

body.dark-theme .info-link:hover {
  color: var(--accent-gold-light);
}

/* Lock page scroll while any modal/sidebar is open (mobile iOS friendly) */
html.modal-open,
body.modal-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

body.modal-open {
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
}

/* Nested panels may still scroll their own content */
body.modal-open .modal-container,
body.modal-open .cart-sidebar,
body.modal-open .cart-items-list,
body.modal-open .admin-dashboard-container,
body.modal-open .admin-catalog-list,
body.modal-open .admin-orders-list {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
  touch-action: none; /* dimmed backdrop: no scroll-through to page */
}

.modal-overlay.open .modal-container {
  touch-action: pan-y; /* product card content can scroll */
}

.modal-container {
  background-color: var(--bg-primary);
  border-radius: 24px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-drag-handle {
  display: none;
  width: 42px;
  height: 5px;
  background-color: rgba(74, 44, 17, 0.15);
  border-radius: 3px;
  margin: 12px auto 0 auto;
}

@media (max-width: 768px) {
  .modal-drag-handle {
    display: block;
  }
}

.modal-overlay.open .modal-container {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: white;
  border: 1px solid var(--border-color);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.modal-close-btn:hover {
  background-color: var(--bg-secondary);
}

.modal-close-btn svg {
  width: 18px;
  height: 18px;
}

/* Preview Modal Specifics — frameless photo (no inset plate) */
.preview-modal-container {
  max-width: 920px;
  width: min(94vw, 920px);
  max-height: min(92vh, 720px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: none;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.22);
}

.preview-modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  min-height: 0;
  flex: 1 1 auto;
  align-items: stretch;
  overflow: hidden;
}

.preview-image-side {
  /* No second “card” behind the photo — full-bleed column */
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 0;
  height: 100%;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.preview-image-side img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: min(72vh, 560px);
  min-height: min(42vh, 320px);
  object-fit: cover;
  object-position: center;
  display: block;
  border: none;
  border-radius: 0;
  box-shadow: none;
  outline: none;
}

.preview-details-side {
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}

.preview-details-scrollable {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px 24px 12px;
  -webkit-overflow-scrolling: touch;
}

.modal-sticky-actions {
  flex-shrink: 0;
  z-index: 5;
  margin-top: auto;
  padding: 12px 24px 20px;
  background: var(--bg-primary);
  border-top: 1px solid color-mix(in srgb, var(--border-color) 70%, transparent);
  box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.04);
}

.modal-sticky-actions .modal-action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.modal-sticky-actions .modal-kaspi-btn {
  width: 100%;
}

.modal-product-title {
  font-size: 1.55rem;
  margin-bottom: 6px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.modal-product-price {
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent-gold);
  display: block;
  margin-bottom: 18px;
}

/* Size Options Selector Styles */
.size-options-container {
  display: flex;
  gap: 10px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.size-option-btn {
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  min-height: 40px;
}

.size-option-btn:hover {
  border-color: var(--accent-gold);
  background: rgba(194, 143, 26, 0.06);
}

.size-option-btn.active {
  background: var(--accent-chocolate);
  color: #fff;
  border-color: var(--accent-chocolate);
  box-shadow: 0 4px 8px rgba(111, 78, 55, 0.15);
}

body.dark-theme .size-option-btn.active {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #1c1511;
}

.modal-section-group {
  margin-bottom: 14px;
}

.modal-desc-group {
  margin-bottom: 10px;
}

.modal-section-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: 0.06em;
}

.modal-product-desc,
.modal-product-ingredients {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.modal-allergens {
  display: block;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(194, 143, 26, 0.1);
  border: 1px solid rgba(194, 143, 26, 0.28);
  color: var(--accent-chocolate);
  font-weight: 600;
  font-size: 0.88rem;
}

body.dark-theme .modal-allergens {
  background: rgba(246, 224, 115, 0.1);
  border-color: rgba(246, 224, 115, 0.28);
  color: var(--accent-gold-light);
}

/* Accordion rows (size, ingredients, …) */
.modal-accordion {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 10px;
  background: var(--bg-secondary);
  overflow: hidden;
}

.modal-accordion.hidden {
  display: none !important;
}

.modal-accordion-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
  user-select: none;
  -webkit-user-select: none;
}

.modal-accordion-summary::-webkit-details-marker {
  display: none;
}

.modal-accordion-summary::marker {
  content: "";
}

.modal-accordion-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.22s ease;
}

.modal-accordion[open] .modal-accordion-chevron {
  transform: rotate(180deg);
  color: var(--accent-gold);
}

.modal-accordion-body {
  padding: 0 14px 14px;
  border-top: 1px solid transparent;
}

.modal-accordion[open] .modal-accordion-body {
  border-top-color: var(--border-color);
  padding-top: 12px;
}

.modal-action-row {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  align-items: center;
}

.modal-kaspi-btn {
  margin-top: 10px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid #e11d48;
  color: #e11d48;
  background: transparent;
  border-radius: 30px;
  font-weight: 700;
  height: 48px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.modal-kaspi-btn:hover {
  background: rgba(225, 29, 72, 0.06);
}

body.dark-theme .preview-image-side {
  background: linear-gradient(160deg, #0a1f16 0%, #0f2a1c 100%);
}

body.dark-theme .modal-accordion {
  background: rgba(8, 33, 21, 0.65);
  border-color: rgba(204, 166, 65, 0.16);
}

/* Success Modal Specifics */
.success-container {
  max-width: 420px;
  padding: 40px;
}

.success-icon {
  width: 70px;
  height: 70px;
  background-color: #d1fae5;
  color: #059669;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.success-icon svg {
  width: 36px;
  height: 36px;
}

.success-title {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.success-message {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 25px;
}

/* Custom alert / confirm dialog (no native browser windows) */
.site-dialog-overlay {
  z-index: 1200;
  padding: 20px;
}

.site-dialog-container {
  max-width: 400px;
  width: min(92vw, 400px);
  padding: 28px 24px 22px;
  text-align: center;
  border-radius: 20px;
}

.site-dialog-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(194, 143, 26, 0.12);
  color: var(--accent-gold, #c28f1a);
}

.site-dialog-icon.is-warn {
  background: rgba(192, 36, 52, 0.1);
  color: #c02434;
}

.site-dialog-icon svg {
  width: 26px;
  height: 26px;
}

.site-dialog-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  margin: 0 0 10px;
  color: var(--text-primary);
}

.site-dialog-message {
  margin: 0 0 22px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.site-dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.site-dialog-actions .btn {
  min-width: 120px;
  min-height: 44px;
}

body.dark-theme .site-dialog-icon {
  background: rgba(194, 143, 26, 0.18);
}

body.dark-theme .site-dialog-icon.is-warn {
  background: rgba(192, 36, 52, 0.2);
}

/* Cart Sidebar Styling */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  height: 100%;
  background-color: var(--bg-primary);
  box-shadow: -10px 0 35px rgba(0,0,0,0.1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
}

.cart-sidebar.open {
  right: 0;
}

.cart-sidebar-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-sidebar-title {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

.close-cart-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--accent-chocolate);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-cart-btn svg {
  width: 24px;
  height: 24px;
}

.cart-items-list {
  flex-grow: 1;
  overflow-y: auto;
  padding: 24px;
}

.empty-cart-message {
  color: var(--text-muted);
  text-align: center;
  padding-top: 60px;
  font-size: 1rem;
}

.cart-item {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}

.cart-item-swipe-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: calc(100% - 20px);
  background: linear-gradient(90deg, #ff4d4d, #ff3838);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 20px;
  color: white;
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 12px;
  z-index: 1;
}

.cart-item-inner {
  position: relative;
  display: flex;
  gap: 15px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  background-color: var(--bg-primary);
  z-index: 2;
  width: 100%;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
  background-color: var(--bg-secondary);
}

.cart-item-details {
  flex-grow: 1;
  text-align: left;
  padding-right: 24px;
}

.cart-item-name {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-chocolate);
  margin-bottom: 4px;
}

.cart-item-price {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.cart-item-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.cart-item-remove {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.cart-item-remove:hover {
  color: #ef4444;
  transform: scale(1.05);
}

.cart-sidebar-footer {
  padding: 24px;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  max-height: 55vh;
  overflow-y: auto;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.cart-total-val {
  color: var(--accent-gold);
  font-size: 1.4rem;
  font-weight: 500;
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Checkout Form inside Cart */
.cart-checkout-form {
  border-top: 1px dashed var(--border-color);
  padding-top: 20px;
  text-align: left;
}

.form-title {
  font-family: var(--font-title);
  font-size: 0.95rem;
  text-transform: uppercase;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}

.form-group {
  margin-bottom: 12px;
}

.checkout-radio-group {
  display: flex;
  gap: 20px;
  margin-top: 6px;
}

.radio-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  min-height: 36px;
}

.address-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.checkout-time-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 10px;
}

.checkout-time-row .custom-input {
  width: 100%;
  min-height: 44px;
}

.checkout-time-row select.custom-input {
  cursor: pointer;
  appearance: auto;
}

@media (max-width: 420px) {
  .checkout-time-row {
    grid-template-columns: 1fr;
  }
}

/* Footer (Dark Contrast) */
.main-footer {
  background-color: #120b08; /* Deep chocolate dark background */
  color: #efe8e2;
  padding: 40px 0 10px 0;
  border-top: 3px solid var(--accent-gold);
}

.footer-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
  gap: 40px;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 60px 25px 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col {
  text-align: left;
}

.footer-logo-main {
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: var(--footer-logo-main-size, 1.45rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-transform: uppercase;
}

.footer-logo-sub {
  font-family: var(--font-nav);
  font-size: var(--footer-logo-sub-size, 0.88rem);
  line-height: 1;
  font-style: normal;
  font-weight: 900;
  color: var(--accent-gold-light);
  display: block;
  margin-top: 0;
  margin-bottom: 0;
}

.footer-brand-desc {
  font-size: 0.9rem;
  color: #c9bcaf;
  line-height: 1.5;
}

.footer-col h4 {
  color: white;
  font-family: var(--font-display); /* Anton — same as «Смотреть» */
  font-weight: 400;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: #c9bcaf;
}

.footer-links a:hover {
  color: var(--accent-gold-light);
  padding-left: 5px;
}

.footer-col p {
  font-size: 0.9rem;
  color: #c9bcaf;
  margin-bottom: 10px;
}

.footer-contact-link:hover {
  color: var(--accent-gold-light);
}

.social-text {
  font-size: 0.85rem;
  margin-bottom: 15px !important;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* No circle — just brand glyphs, muted → official color on hover/active */
.social-link {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  background: transparent;
  border: none;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.25s ease, transform 0.25s ease, filter 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.social-link svg {
  width: 24px;
  height: 24px;
  display: block;
}

.social-link:hover,
.social-link:focus-visible {
  background: transparent;
  transform: translateY(-2px);
  outline: none;
}

.social-link:active {
  transform: translateY(0) scale(0.96);
}

/* Instagram brand */
.social-link--ig:hover,
.social-link--ig:focus-visible,
.social-link--ig:active {
  color: #e1306c;
  filter: drop-shadow(0 0 8px rgba(225, 48, 108, 0.45));
}

/* WhatsApp official green */
.social-link--wa:hover,
.social-link--wa:focus-visible,
.social-link--wa:active {
  color: #25d366;
  filter: drop-shadow(0 0 8px rgba(37, 211, 102, 0.4));
}

/* Phone — blue handset */
.social-link--phone:hover,
.social-link--phone:focus-visible,
.social-link--phone:active {
  color: #2196f3;
  filter: drop-shadow(0 0 8px rgba(33, 150, 243, 0.4));
}

/* Touch: keep brand color while pressed / for better discoverability */
@media (hover: none) {
  .social-link {
    color: rgba(255, 255, 255, 0.78);
  }
}

/* Payment methods strip */
.footer-payments {
  max-width: 1920px;
  margin: 0 auto;
  padding: 22px 60px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.footer-payments-title {
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-title);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 16px;
}

.footer-payment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 18px 28px;
}

.footer-payment-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 88px;
  max-width: 120px;
}

.footer-payment-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 40px;
  /* Official colors underneath, muted gray by default */
  filter: grayscale(1) brightness(0.95) opacity(0.55);
  transition: filter 0.28s ease, transform 0.28s ease, opacity 0.28s ease;
  will-change: filter;
}

.footer-payment-item:hover .footer-payment-icon,
.footer-payment-item:focus-within .footer-payment-icon {
  filter: none;
  opacity: 1;
  transform: translateY(-2px);
}

.footer-payment-icon .payment-img {
  display: block;
  height: 32px;
  width: auto;
  max-width: 56px;
  object-fit: contain;
}

.footer-payment-icon.payment-card {
  gap: 10px;
}

.footer-payment-icon.payment-card .payment-img-visa {
  height: 18px;
  max-width: 56px;
}

.footer-payment-icon.payment-card .payment-img-mc {
  height: 28px;
  max-width: 42px;
}

.footer-payment-icon.payment-cash .payment-img,
.footer-payment-icon.payment-transfer .payment-img,
.footer-payment-icon.payment-qr .payment-img {
  height: 34px;
  max-width: 34px;
}

.footer-payment-label {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  color: #908479;
  transition: color 0.25s ease;
}

.footer-payment-item:hover .footer-payment-label,
.footer-payment-item:focus-within .footer-payment-label {
  color: #e8dccf;
}

/* Touch: show color when pressed / always slightly stronger on coarse pointer */
@media (hover: none) {
  .footer-payment-icon {
    opacity: 0.7;
    filter: grayscale(0.85) opacity(0.7);
  }
}

.footer-bottom {
  text-align: center;
  padding-top: 25px;
  font-size: 0.8rem;
  color: #908479;
}

@media (max-width: 768px) {
  .footer-payments {
    padding: 16px 10px 8px;
  }

  .footer-payments-title {
    margin-bottom: 12px;
    font-size: 0.72rem;
  }

  /* Force one row of 4 payment methods on phones */
  .footer-payment-list {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
  }

  .footer-payment-item {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    gap: 6px;
  }

  .footer-payment-icon {
    min-height: 28px;
    width: 100%;
  }

  .footer-payment-icon.payment-card {
    gap: 3px;
    flex-wrap: wrap;
  }

  .footer-payment-icon.payment-card .payment-img-visa {
    height: 12px;
    max-width: 36px;
  }

  .footer-payment-icon.payment-card .payment-img-mc {
    height: 18px;
    max-width: 26px;
  }

  .footer-payment-icon.payment-cash .payment-img,
  .footer-payment-icon.payment-transfer .payment-img,
  .footer-payment-icon.payment-qr .payment-img {
    height: 26px;
    max-width: 26px;
  }

  .footer-payment-label {
    font-size: 0.58rem;
    line-height: 1.2;
    max-width: 100%;
    padding: 0 1px;
    /* allow 2 lines under icon, keep columns aligned */
    hyphens: auto;
    word-break: break-word;
  }
}

/* Very narrow phones: tighten further so 4 stay on one line */
@media (max-width: 380px) {
  .footer-payments {
    padding-left: 8px;
    padding-right: 8px;
  }

  .footer-payment-list {
    gap: 2px;
  }

  .footer-payment-label {
    font-size: 0.52rem;
  }

  .footer-payment-icon.payment-card .payment-img-visa {
    height: 10px;
    max-width: 30px;
  }

  .footer-payment-icon.payment-card .payment-img-mc {
    height: 15px;
    max-width: 22px;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .nav-menu {
    display: none !important;
  }
  
  .mobile-menu-toggle {
    display: flex !important;
  }
  
  .main-header {
    height: calc(70px + env(safe-area-inset-top, 0px));
  }

  .header-container {
    height: 70px;
    /* Same inset left (logo) and right (hamburger strokes) */
    padding-left: max(12px, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(12px, env(safe-area-inset-right, 0px)) !important;
    grid-template-columns: auto 1fr auto;
    column-gap: 8px;
  }

  /*
    Optical balance: logo icon starts at left rail, but default hamburger
    is centered in a 44px hit area — looks like ~10px extra gap on the right.
    Flush the bars to the right edge of the control.
  */
  .header-actions {
    gap: 4px;
    margin: 0;
    padding: 0;
  }

  .header-actions .lang-dropdown-btn,
  .header-actions .header-theme-btn,
  .header-actions .cart-btn {
    min-width: 40px;
    min-height: 40px;
    padding: 6px;
  }

  .header-actions .lang-dropdown-btn {
    padding-left: 8px;
    padding-right: 6px;
  }

  /* Space cart ↔ sandwich; keep bars flush to the right rail */
  .header-actions .cart-btn {
    margin-right: 2px;
  }

  .mobile-menu-toggle {
    display: flex !important;
    flex-direction: column;
    width: 28px;
    min-width: 28px;
    max-width: 28px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    margin: 0 0 0 6px;
    align-items: stretch;
    justify-content: center;
    box-sizing: content-box;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2.5px;
    margin: 2.5px 0;
    border-radius: 2px;
  }

  .logo {
    --logo-main-size: 1.2rem;
    --logo-sub-size: 0.72rem;
  }

  .hero-container {
    gap: 40px;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .about-container {
    gap: 40px;
  }
}

/* Medium desktop: keep nav in one line, same side padding as sections */
@media (min-width: 1025px) and (max-width: 1280px) {
  .header-container {
    padding: 0 40px;
    column-gap: 12px;
  }

  .nav-menu {
    gap: 2px;
  }

  .nav-link {
    font-size: 0.72rem;
    padding: 8px 8px;
    letter-spacing: 0.04em;
  }

  .nav-link::after {
    left: 8px;
    right: 8px;
  }

  .header-actions {
    gap: 4px;
  }

  .location-widget {
    display: none !important;
  }
}

@media (min-width: 1281px) and (max-width: 1440px) {
  .header-container {
    padding: 0 50px;
  }

  .nav-link {
    font-size: 0.75rem;
    padding: 9px 10px;
  }
}

@media (max-width: 992px) {
  .container,
  .hero-container,
  .about-container,
  .footer-container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Keep header rail equal (same as ≤1024 rule) */
  .header-container {
    padding-left: max(12px, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(12px, env(safe-area-inset-right, 0px)) !important;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 24px !important;
    padding: calc(80px + env(safe-area-inset-top, 0px)) 20px 20px 20px !important;
    height: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
  
  /* Removed hero-section padding for full-screen dvh alignment */

  /* hero-showcase-grid visibility controlled by .desktop-only class */
  .hero-showcase-grid {
    gap: 20px;
  }

  .hero-introducing-block {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-introducing-block .hero-desc {
    margin: 0 auto 1.75rem auto;
  }
  
  .hero-introducing-block .hero-actions {
    justify-content: center;
    width: 100%;
  }

  .btn-premium-shop {
    width: 100%;
    max-width: 320px;
  }
  
  .about-container {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .about-image-side {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }
  
  .delivery-card {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 35px;
  }
  
  .contacts-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
  }

  .contacts-map-wrapper {
    height: 320px;
    min-height: 320px;
  }
  
  .preview-modal-layout {
    grid-template-columns: 1fr;
  }
  
  .preview-image-side {
    min-height: 0;
    height: auto;
    max-height: min(42vh, 300px);
    padding: 0;
  }

  .preview-image-side img {
    width: 100%;
    height: auto;
    min-height: 180px;
    max-height: min(42vh, 300px);
    object-fit: cover;
  }

  .preview-details-side {
    max-height: none;
  }

  .preview-details-scrollable {
    padding: 16px 18px 10px;
  }

  .modal-sticky-actions {
    padding: 10px 18px 16px;
  }

  .preview-modal-container {
    max-height: min(94vh, 100dvh);
  }
  
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .main-header {
    height: calc(64px + env(safe-area-inset-top, 0px));
  }

  .header-container {
    height: 64px;
    padding-left: max(12px, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(12px, env(safe-area-inset-right, 0px)) !important;
  }

  .logo {
    --logo-main-size: 1.12rem;
    --logo-sub-size: 0.7rem;
    gap: 8px;
  }

  /* Removed hero-section padding for full-screen dvh alignment */

  .nav-menu {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .section-title {
    font-size: var(--title-size-mobile);
  }

  .section-desc {
    margin-bottom: 1.75rem;
    font-size: var(--subcopy-size);
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 30px;
  }
  
  .cart-sidebar {
    width: 100%;
    right: -100%;
  }
}

/* Specific optimizations for small screens (mobiles e.g. iPhone SE, width < 576px) */
@media (max-width: 576px) {
  .hero-title,
  .hero-introducing-block .hero-title {
    font-size: var(--title-size-mobile);
    letter-spacing: var(--title-tracking);
  }

  .hero-desc,
  .hero-introducing-block .hero-desc {
    font-size: var(--subcopy-size);
    font-weight: var(--subcopy-weight);
    margin-bottom: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .about-section {
    padding: 25px 0;
  }

  .about-features {
    grid-template-columns: 1fr; /* Stack features on mobile */
    gap: 12px;
  }

  .feature-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
  }

  .feature-num {
    font-size: 1.5rem;
    margin-bottom: 0;
  }

  /* Horizontal swipe only on small phones — tablets keep multi-col grid */
  /* (see @media max-width: 640px below for swipe catalog) */

  .product-card {
    border-radius: 0;
  }

  .product-img-wrapper {
    border-radius: 16px;
  }

  .product-img-wrapper img {
    border-radius: 16px;
  }

  .product-info {
    padding: 10px 2px 2px;
    gap: 3px;
  }

  .product-category {
    font-size: 0.6875rem; /* 11px */
  }

  .product-name {
    font-size: 0.9375rem; /* 15px */
    font-weight: 800;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em; /* align rows without forcing tall boxes */
  }

  .product-footer {
    padding-top: 6px;
  }

  .product-price {
    font-size: 0.875rem; /* 14px */
    font-weight: 600;
  }

  .stepper-and-btn {
    gap: 8px;
    margin-top: 8px;
  }

  .quantity-stepper {
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }

  .stepper-btn {
    width: 44px;
    height: 44px;
  }

  .quantity-val {
    width: 30px;
    font-size: 0.95rem;
  }

  .product-card .btn {
    font-size: 0.8rem;
    padding: 8px 12px;
    min-height: 36px;
  }

  .tab-btn {
    font-size: 0.75rem;
    padding: 8px 15px;
  }

  .delivery-card {
    padding: 25px 20px;
    border-radius: 16px;
  }

  .delivery-calc-box {
    padding: 20px 15px;
  }

  .calc-title {
    font-size: 1.25rem;
  }

  .preview-details-side {
    padding: 25px 20px;
  }

  .modal-product-title {
    font-size: 1.4rem;
  }

  .modal-product-price {
    font-size: 1.3rem;
    margin-bottom: 15px;
  }

  .modal-action-row {
    flex-direction: column;
    gap: 15px;
  }

  .modal-action-row .quantity-stepper {
    width: 100%;
    justify-content: space-around;
  }

  .modal-action-row .btn {
    width: 100%;
  }
}

/* Ultra small screens (width < 360px like iPhone SE 1st Gen) */
@media (max-width: 350px) {
  .header-actions {
    gap: 8px;
  }
  
  .logo {
    --logo-main-size: 1.02rem;
    --logo-sub-size: 0.66rem;
    gap: 6px;
  }
}

/* Language Dropdown Styles */
.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  border-radius: 20px;
  padding: 8px 12px;
  font-family: var(--font-title);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: none;
}

.lang-dropdown-btn:hover {
  background: rgba(74, 44, 17, 0.05);
  color: var(--accent-chocolate);
}

.lang-dropdown-btn .chevron {
  transition: transform 0.3s ease;
}

.lang-dropdown.open .lang-dropdown-btn .chevron {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(74, 44, 17, 0.08);
  border-radius: 12px;
  padding: 6px;
  min-width: 140px;
  box-shadow: 0 10px 25px -5px rgba(74, 44, 17, 0.1), 0 8px 10px -6px rgba(74, 44, 17, 0.05);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transform: translateY(-8px) scale(0.95);
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-dropdown-menu.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.lang-dropdown-menu .lang-btn {
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s ease;
}

.lang-dropdown-menu .lang-btn:hover {
  background: rgba(74, 44, 17, 0.04);
  color: var(--accent-chocolate);
}

.lang-dropdown-menu .lang-btn.active {
  background: rgba(194, 143, 26, 0.1);
  color: var(--accent-gold);
  font-weight: 600;
}

/* Mobile Drawer Specific Dropdown styling */
.mobile-drawer-dropdown {
  margin: 0;
  display: block;
  width: 100%;
}

.mobile-drawer-dropdown .lang-dropdown-btn {
  width: 100%;
  min-height: 48px;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: var(--bg-secondary);
  padding: 0 16px;
}

.mobile-drawer-dropdown .lang-dropdown-menu {
  right: 0;
  left: 0;
  width: 100%;
  transform: translateY(-6px) scale(0.98);
}

.mobile-drawer-dropdown .lang-dropdown-menu.show {
  transform: translateY(0) scale(1);
}

/* Location Widget Styles */
.location-widget {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  border-radius: 20px;
  padding: 6px 12px;
  box-shadow: none;
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-chocolate);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.location-widget .icon-location {
  color: var(--accent-gold);
  transition: transform 0.3s ease;
}

.location-widget:hover {
  background: rgba(74, 44, 17, 0.05);
  color: var(--accent-gold);
}

.location-widget:hover .icon-location {
  transform: translateY(-2px);
}

.drawer-location-widget {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 12px 16px;
  margin: 0;
  width: 100%;
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.drawer-location-widget .icon-location {
  color: var(--accent-gold);
}

/* Location Warning Banner — only inside cart checkout (delivery address) */
.location-alert-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(220, 53, 69, 0.08);
  border: 1px solid rgba(220, 53, 69, 0.25);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
  animation: fadeInDown 0.5s ease-out;
}

.location-alert-banner.hidden {
  display: none !important;
}

.location-alert-banner .warning-icon {
  color: #dc3545;
  flex-shrink: 0;
}

.location-alert-banner .warning-text {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: #c02434;
  line-height: 1.4;
}

body.dark-theme .location-alert-banner {
  background: rgba(220, 53, 69, 0.15);
  border-color: rgba(248, 113, 113, 0.35);
}

body.dark-theme .location-alert-banner .warning-text {
  color: #fca5a5;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .location-widget {
    display: none !important;
  }
}

/* Add to Cart Plus Button in Catalog */
.btn-card-add {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--pink-gradient);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(220, 166, 116, 0.2);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  flex-shrink: 0;
  padding: 0;
  position: relative; /* Keep relative for pseudo-element positioning */
}

/* Touch area expansion for mobile / touch devices */
@media (pointer: coarse), (max-width: 768px) {
  .btn-card-add::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
  }
}

.btn-card-add:hover {
  background: var(--pink-gradient-hover);
  transform: scale(1.1);
  box-shadow: 0 6px 14px rgba(220, 166, 116, 0.3);
}

.btn-card-add:active {
  transform: scale(0.9);
}

.btn-card-add.added {
  background: #ffffff !important;
  border: 2px solid #4cd137;
  color: #4cd137;
  box-shadow: 0 4px 10px rgba(76, 209, 55, 0.15);
}

/* ===== Floating Glass Pill — Sticky Bottom Bar ===== */
.sticky-bottom-bar {
  display: none !important; /* Hidden on desktop always */
}

@media (max-width: 768px) {
  .sticky-bottom-bar {
    display: block !important;
    position: fixed;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 12px;
    right: 12px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
                0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 10px 16px;
    z-index: 999;
    animation: stickyBarBounceIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  }

  .sticky-bottom-bar.hidden {
    display: none !important;
  }

  .sticky-bottom-bar.hiding {
    animation: stickyBarSlideOut 0.3s ease-in forwards;
  }

  body.has-sticky-bar {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }
}

.sticky-bar-content {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* Cart icon container */
.sticky-bar-cart-icon {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-chocolate);
}

/* Red badge counter */
.sticky-bar-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background: #EF4444;
  color: #fff;
  font-family: var(--font-title);
  font-size: 0.6rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
}

/* Total price */
.sticky-bar-total {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent-chocolate);
  letter-spacing: -0.02em;
  flex: 1;
  text-align: center;
  white-space: nowrap;
}

/* Pill CTA button */
.sticky-bar-btn {
  padding: 10px 22px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 20px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(220, 166, 116, 0.2);
  transition: all 0.25s ease;
  min-height: auto;
  width: auto;
}

.sticky-bar-btn:active {
  transform: scale(0.96);
}

/* ===== Sticky Bar Animations ===== */
@keyframes stickyBarBounceIn {
  0%   { transform: translateY(100px); opacity: 0; }
  50%  { transform: translateY(-6px);  opacity: 1; }
  70%  { transform: translateY(3px); }
  100% { transform: translateY(0); }
}

@keyframes stickyBarSlideOut {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(100px); opacity: 0; }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Admin Modals & Dashboards */
.admin-login-container {
  max-width: 400px !important;
  padding: 40px 30px !important;
}

.admin-modal-title {
  margin-bottom: 25px;
  font-size: 1.4rem;
  text-align: center;
  font-family: var(--font-title);
  color: var(--accent-chocolate);
}

.admin-login-error {
  color: #c02434;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 15px;
  text-align: center;
}

/* Admin dashboard — full viewport */
#admin-dashboard-modal {
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
}

#admin-dashboard-modal.modal-overlay.open .admin-dashboard-container {
  transform: none;
}

.admin-dashboard-container {
  max-width: none !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 100dvh !important;
  min-height: 100dvh !important;
  border-radius: 0 !important;
  display: flex;
  flex-direction: column;
  padding: 20px 28px calc(20px + env(safe-area-inset-bottom, 0px)) !important;
  overflow: hidden;
  box-shadow: none !important;
}

.admin-dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-shrink: 0;
  min-height: 44px;
}

.admin-dash-title {
  font-size: 1.6rem;
  color: var(--accent-chocolate);
  margin: 0;
  min-width: 0;
  flex: 1;
}

.admin-dash-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.admin-dash-close-btn {
  position: static;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-card, #fff);
  color: var(--text-secondary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: background 0.2s ease, color 0.2s ease;
}

.admin-dash-close-btn:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.btn-logout {
  background: #c02434 !important;
  box-shadow: 0 4px 10px rgba(192, 36, 52, 0.2) !important;
  white-space: nowrap;
}

.btn-logout:hover {
  background: #a01d2a !important;
  box-shadow: 0 6px 14px rgba(192, 36, 52, 0.3) !important;
}

.admin-dash-tabs {
  display: flex;
  gap: 15px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.dash-tab-btn {
  background: none;
  border: none;
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.dash-tab-btn.active {
  color: var(--accent-gold);
  background: none;
  border-bottom: 2px solid var(--accent-gold);
  border-radius: 0;
}

.dash-tab-content {
  display: none;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding-right: 0;
  flex-direction: column;
}

.dash-tab-content.active {
  display: flex;
}

/* Catalog Tab Styles */
.admin-catalog-filters {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  padding: 15px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  align-items: flex-end;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 2;
}

.admin-filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.admin-filter-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.admin-select-filter, .admin-search-input {
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  width: 100%;
  box-sizing: border-box;
}

.admin-catalog-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}

.admin-empty-msg {
  padding: 28px 16px;
  text-align: center;
}

.admin-product-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.admin-product-row:hover {
  box-shadow: var(--card-shadow);
}

.admin-prod-img-container {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

.admin-prod-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-prod-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
  padding: 4px;
  box-sizing: border-box;
  pointer-events: none;
}

/* Desktop: show on hover; touch devices always show a light cue */
.admin-prod-img-container:hover .admin-prod-img-overlay,
.admin-prod-img-container:focus-visible .admin-prod-img-overlay {
  opacity: 1;
}

@media (hover: none) {
  .admin-prod-img-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.15) 55%, transparent 100%);
    align-items: flex-end;
    padding-bottom: 8px;
    font-size: 0.68rem;
  }
}

.admin-product-details {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1.2fr 1fr 100px;
  align-items: center;
  gap: 15px;
  flex-grow: 1;
  min-width: 0;
}

.admin-prod-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.admin-prod-form-group label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.admin-prod-form-group input[type="text"],
.admin-prod-form-group input[type="number"] {
  padding: 8px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  width: 100%;
}

.admin-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
}

.btn-admin-save {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 8px;
  white-space: nowrap;
}

.admin-status-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 8px;
  text-transform: uppercase;
}

.admin-order-status-control {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

/* Out of stock — outline only, muted */
.product-badge-outofstock {
  border-color: #a8a29e !important;
  background: rgba(255, 252, 248, 0.95) !important;
  box-shadow: none !important;
}

.product-badge-outofstock .product-badge-text {
  color: #78716c !important;
  -webkit-text-fill-color: #78716c !important;
  background: none !important;
  background-image: none !important;
  font-weight: 900 !important;
  filter: none !important;
}

.product-card.out-of-stock {
  opacity: 0.75;
}

.product-card.out-of-stock .btn-card-add {
  background: #bdc3c7 !important;
  color: #7f8c8d !important;
  cursor: not-allowed;
  pointer-events: none;
}

/* Orders Tab Styles */
.admin-orders-controls {
  margin-bottom: 20px;
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}

.btn-clear-history {
  background: #7f8c8d;
  box-shadow: 0 4px 10px rgba(127, 140, 141, 0.2);
}

.btn-clear-history:hover {
  background: #6c7a7d;
}

.admin-orders-table-wrapper {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-orders-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-bottom: 8px;
}

.admin-order-card {
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
}

.admin-order-card:hover {
  box-shadow: var(--card-shadow);
}

.admin-order-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.admin-order-id-date {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.admin-order-id {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-chocolate);
}

.admin-order-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.admin-order-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
}

.admin-order-details-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
}

.admin-order-details-col p {
  margin: 0;
}

.admin-order-items-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: 1px solid var(--border-color);
  padding-left: 20px;
  font-size: 0.9rem;
}

.admin-order-items-title {
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.admin-order-item-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.admin-order-total {
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent-chocolate);
  border-top: 1px dashed var(--border-color);
  padding-top: 8px;
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
}

/* Status styles */
.admin-status-dropdown {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  cursor: pointer;
  max-width: 100%;
}

body.dark-theme .admin-status-dropdown {
  background: rgba(15, 35, 20, 0.9);
  border-color: rgba(220, 166, 116, 0.25);
  color: var(--text-primary);
}

.status-badge-new {
  border-color: #2980b9;
  color: #2980b9;
}
.status-badge-work {
  border-color: #f39c12;
  color: #f39c12;
}
.status-badge-done {
  border-color: #27ae60;
  color: #27ae60;
}
.status-badge-cancel {
  border-color: #7f8c8d;
  color: #7f8c8d;
}

@media (max-width: 900px) {
  .admin-product-details {
    grid-template-columns: 1.6fr 0.9fr 1fr 0.9fr;
  }

  .admin-product-details .btn-admin-save {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 44px;
  }
}

@media (max-width: 768px) {
  .admin-login-container {
    width: min(100%, 420px) !important;
    max-width: calc(100vw - 24px) !important;
    padding: 28px 18px !important;
    margin: 12px !important;
  }

  .admin-dashboard-container {
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: 100dvh !important;
    min-height: 100dvh !important;
    border-radius: 0 !important;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .admin-dash-header {
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: nowrap;
  }

  .admin-dash-title {
    font-size: 1.15rem;
    line-height: 1.2;
    flex: 1;
    min-width: 0;
  }

  .admin-dash-actions {
    gap: 8px;
  }

  .admin-dash-close-btn {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }

  .btn-logout {
    min-height: 40px;
    padding: 8px 14px !important;
    font-size: 0.85rem !important;
  }

  .admin-dash-tabs {
    gap: 6px;
    margin-bottom: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .admin-dash-tabs::-webkit-scrollbar {
    display: none;
  }

  .dash-tab-btn {
    font-size: 0.88rem;
    padding: 10px 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .admin-catalog-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px;
  }

  .admin-product-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px;
  }

  .admin-prod-img-container {
    width: 100%;
    height: 140px;
    border-radius: 12px;
  }

  .admin-product-details {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
  }

  .admin-product-details .admin-field-name {
    grid-column: 1 / -1;
  }

  .admin-product-details .admin-field-instock {
    grid-column: 1 / -1;
  }

  .admin-product-details .btn-admin-save {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 48px;
    font-size: 0.95rem;
  }

  .admin-product-details input[type="text"],
  .admin-product-details input[type="number"] {
    width: 100%;
    min-height: 44px;
    font-size: 1rem;
  }

  .admin-checkbox-label {
    min-height: 44px;
    padding: 8px 0;
  }

  .admin-orders-controls {
    margin-bottom: 12px;
  }

  .btn-clear-history {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .admin-order-card {
    padding: 14px;
  }

  .admin-order-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .admin-order-items-col {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
  }

  .admin-order-title-row {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .admin-order-status-control {
    width: 100%;
  }

  .admin-status-dropdown {
    flex: 1;
    min-height: 40px;
  }
}

@media (max-width: 380px) {
  .admin-product-details {
    grid-template-columns: 1fr;
  }

  .admin-dash-title {
    font-size: 1.05rem;
  }
}

/* 2GIS Button in Contacts */
.dgis-p {
  margin-top: 15px;
}

.btn-dgis {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #5bb300; /* 2GIS Brand Green */
  color: #ffffff !important;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(91, 179, 0, 0.2);
}

.btn-dgis:hover {
  background: #4d9900;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(91, 179, 0, 0.3);
}

.btn-dgis:active {
  transform: translateY(0);
}

.btn-dgis .dgis-logo-svg {
  width: 16px;
  height: 16px;
  stroke: #ffffff;
  flex-shrink: 0;
}

.btn-dgis-card {
  margin-top: 10px;
}

/* Page Preloader Styles */
body.preloader-active {
  overflow: hidden;
}

.page-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  z-index: 99999; /* Higher than anything else */
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.8s ease;
}

.page-preloader.fade-out {
  transform: translateY(-100%);
  opacity: 0.9;
}

.preloader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preloader-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}

.preloader-logo-main {
  font-family: var(--font-brand);
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-chocolate);
  opacity: 0;
  transform: scale(0.95);
  animation: preloader-fade-in-scale 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.preloader-logo-sub {
  font-family: var(--font-nav);
  font-size: 1.1rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.35em;
  color: var(--accent-gold);
  margin-top: 5px;
  opacity: 0;
  transform: translateY(8px);
  animation: preloader-fade-in-up 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.preloader-line {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  margin-top: 20px;
  animation: preloader-line-expand 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

@keyframes preloader-fade-in-scale {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes preloader-fade-in-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes preloader-line-expand {
  to {
    width: 160px;
  }
}

/* Scroll Reveal Styles */
.reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.215, 0.61, 0.355, 1), transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
  will-change: opacity, transform;
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Lazy Load Blur-up image transition */
.product-img-wrapper img {
  transition: transform 0.5s ease, filter 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  filter: blur(0);
}

.product-img-wrapper img.loading {
  filter: blur(14px);
}

/* Skeleton Loader Styles */
.skeleton {
  pointer-events: none;
}

.skeleton .product-img-wrapper {
  background-color: var(--bg-tertiary);
  position: relative;
}

.skeleton-text {
  background-color: var(--bg-tertiary);
  border-radius: 4px;
  margin-bottom: 8px;
}

.skeleton-title-bar {
  width: 70%;
  height: 18px;
}

.skeleton-desc-bar {
  width: 90%;
  height: 12px;
  margin-top: 10px;
}

.skeleton-price-bar {
  width: 40%;
  height: 16px;
}

.skeleton-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-tertiary);
}

/* Shimmer Animation Effect */
.skeleton-shimmer {
  position: relative;
  overflow: hidden;
}

.skeleton-shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 20%,
    rgba(255, 255, 255, 0.6) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* Empty Cart Plate & Crumbs Animation */
.empty-cart-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.empty-cart-plate-svg {
  margin-bottom: 20px;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.03));
}

.empty-cart-plate-svg svg {
  animation: plate-float 4s ease-in-out infinite;
}

.crumb {
  transform-origin: center;
  animation: crumb-jiggle 3s ease-in-out infinite alternate;
}

.crumb-1 { animation-delay: 0.1s; }
.crumb-2 { animation-delay: 0.4s; }
.crumb-3 { animation-delay: 0.7s; }
.crumb-4 { animation-delay: 1s; }

@keyframes plate-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes crumb-jiggle {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(2px, -2px) scale(0.95); }
}

.empty-cart-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-chocolate);
  margin-bottom: 8px;
}

.empty-cart-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 240px;
  margin-bottom: 24px;
  line-height: 1.4;
}

.empty-cart-btn {
  font-size: 0.9rem;
  padding: 10px 24px;
}

/* Cart Jiggle Bounce Animation */
@keyframes cart-bounce {
  0%, 100% {
    transform: scale(1);
  }
  20% {
    transform: scale(0.85) rotate(-6deg);
  }
  50% {
    transform: scale(1.15) rotate(6deg);
  }
  80% {
    transform: scale(0.95) rotate(-2deg);
  }
}

.cart-btn.jiggle {
  animation: cart-bounce 0.5s ease-in-out;
}

/* Mobile-First Layout Improvements */
@media (max-width: 768px) {
  /* Horizontal scroll for category tabs — same 6px side rail as product cards */
  .catalog-tabs {
    display: flex !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0;
    margin: 0 0 20px 0;
    gap: 6px;
    scrollbar-width: none;
  }
  .catalog-tabs::-webkit-scrollbar {
    display: none;
  }
  .catalog-tabs .tab-btn {
    flex-shrink: 0;
    scroll-snap-align: start;
    border-radius: 20px;
    font-size: 0.85rem;
    padding: 12px 18px; /* Increased vertical padding to reach 44px+ touch-friendly target */
  }



  /* Premium Bottom Sheet border radius and touch handles */
  .preview-modal-container {
    border-top-left-radius: 24px !important;
    border-top-right-radius: 24px !important;
    overflow-y: auto !important;
  }
}

/* ==========================================================================
   Luxury Dark Green Theme & Theme Toggler Styles
   ========================================================================== */

/* Dark Theme Variables Override */
body.dark-theme {
  --bg-primary: #04140d; /* Ultra deep forest-black */
  --bg-secondary: #082115; /* Rich dark emerald */
  --bg-tertiary: #103322; /* Moss green for inputs/components */
  
  --text-primary: #f0f7f3; /* Mint cream text */
  --text-secondary: #9cbcae; /* Sage green metadata */
  --text-muted: #648674; /* Muted green details */
  
  --accent-gold: #cca641; /* mid gold from foil palette */
  --accent-gold-light: #f6e073; /* light champagne gold from foil palette */
  --accent-chocolate: #f0f7f3; /* Headings become mint cream for readability */
  --border-color: #15422c; /* Forest green borders */
  
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --hover-shadow: 0 20px 40px rgba(229, 193, 88, 0.08);
}

/* Specific component fixes for dark theme */
body.dark-theme .main-header {
  background-color: transparent;
  border-bottom: none;
}

body.dark-theme .main-header.scrolled {
  background-color: rgba(4, 20, 13, 0.92) !important;
  border-bottom: 1px solid rgba(229, 193, 88, 0.15) !important;
}

body.dark-theme .main-footer {
  background-color: #030f09;
  border-top: 3px solid var(--accent-gold);
}

body.dark-theme .theme-toggle-btn {
  color: var(--accent-gold) !important;
}

body.dark-theme .logo-sub {
  color: var(--accent-gold);
}

body.dark-theme .section-subtitle {
  color: var(--accent-gold);
}

body.dark-theme .why-icon {
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.08));
  color: var(--accent-gold);
}

body.dark-theme .why-card {
  border-top-color: var(--accent-gold);
}

body.dark-theme .why-brand-glow {
  opacity: 0.22;
}

body.dark-theme .bestsellers-section {
  background-color: var(--bg-primary);
}

body.dark-theme .tab-btn {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

body.dark-theme .tab-btn.active {
  background-color: var(--accent-gold);
  color: #04140d;
}

body.dark-theme .product-card {
  border: none;
  background: transparent;
  box-shadow: none;
}

body.dark-theme .product-img-wrapper {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

body.dark-theme .product-badge {
  border-color: var(--accent-gold);
  background: rgba(255, 252, 248, 0.96);
  box-shadow: none;
}

body.dark-theme .product-badge .product-badge-text {
  color: #3d2410;
  -webkit-text-fill-color: #3d2410;
}

body.dark-theme .product-badge-outofstock {
  border-color: #c4b5b0 !important;
  background: rgba(255, 252, 248, 0.96) !important;
}

body.dark-theme .product-badge-outofstock .product-badge-text {
  color: #8a7f7a !important;
  -webkit-text-fill-color: #8a7f7a !important;
  background: none !important;
}

body.dark-theme .quantity-stepper {
  border-color: var(--border-color);
  background-color: var(--bg-tertiary);
}

body.dark-theme .stepper-btn {
  color: var(--text-primary);
}

body.dark-theme .stepper-btn:hover {
  background-color: var(--border-color);
}

body.dark-theme .btn-secondary {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-color);
}

body.dark-theme .btn-secondary:hover {
  background-color: var(--border-color);
}

body.dark-theme .about-metrics-grid {
  border-color: var(--border-color);
}

body.dark-theme .about-metric-card {
  background-color: var(--bg-secondary);
}

body.dark-theme .delivery-card {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
}

body.dark-theme .contact-card {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
}

body.dark-theme .contact-input {
  background-color: var(--bg-tertiary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

body.dark-theme .contact-input:focus {
  border-color: var(--accent-gold);
}

body.dark-theme .custom-input {
  background-color: var(--bg-tertiary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

body.dark-theme .custom-input:focus {
  border-color: var(--accent-gold);
}

body.dark-theme .modal-close-btn,
body.dark-theme .admin-dash-close-btn {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

body.dark-theme .modal-close-btn:hover,
body.dark-theme .admin-dash-close-btn:hover {
  background-color: var(--border-color);
}

body.dark-theme .cart-sidebar-header {
  border-bottom-color: var(--border-color);
}

body.dark-theme .cart-sidebar-footer {
  border-top-color: var(--border-color);
  background-color: var(--bg-primary);
}

body.dark-theme .cart-item {
  border-bottom-color: var(--border-color);
}

body.dark-theme .sticky-bottom-bar {
  background: rgba(15, 35, 20, 0.78);
  border: 1px solid rgba(74, 124, 89, 0.18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35),
              0 0 0 1px rgba(74, 124, 89, 0.06);
}

body.dark-theme .sticky-bar-total {
  color: #E8DCC8;
}

body.dark-theme .sticky-bar-cart-icon {
  color: rgba(232, 220, 200, 0.8);
}

body.dark-theme .sticky-bar-badge {
  background: #EF4444;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

body.dark-theme .sticky-bar-btn {
  background: linear-gradient(135deg, #4A7C59, #3D6B4A) !important;
  color: #F5F0E8 !important;
  border: 1px solid rgba(74, 124, 89, 0.3);
  box-shadow: 0 4px 16px rgba(74, 124, 89, 0.25);
}

body.dark-theme .sticky-bar-btn:active {
  background: linear-gradient(135deg, #3D6B4A, #2F5A3C) !important;
}

body.dark-theme .preloader-logo-sub {
  color: var(--accent-gold);
}

body.dark-theme .page-preloader {
  background-color: var(--bg-primary);
}

body.dark-theme .wave-transition path {
  fill: var(--bg-primary);
}

body.dark-theme .wave-about path {
  fill: var(--bg-secondary);
}

body.dark-theme .about-section {
  background-color: var(--bg-secondary);
}

body.dark-theme .delivery-section {
  background-color: var(--bg-secondary);
}


/* Light Theme Button Customizations (Brand Dark Brown - #4a2c11) */
.btn-premium-shop,
.btn-gradient,
.btn-primary,
.btn-card-add {
  background: var(--accent-chocolate) !important;
  color: #ffffff !important;
  border-color: var(--accent-chocolate) !important;
}

/* Override generic btn styles for premium CTA only */
.btn-premium-shop {
  background: linear-gradient(135deg, #3a2010 0%, #5a3015 40%, #4a2c11 100%) !important;
  border: none !important;
  color: #f5e6c8 !important;
}

.btn-gradient:hover,
.btn-primary:hover,
.btn-card-add:hover {
  background: #5d3816 !important;
  color: #ffffff !important;
  border-color: #5d3816 !important;
}

/* Dark Theme Button Customizations (Brand Gold - #e5c158) */
body.dark-theme .btn-gradient,
body.dark-theme .btn-primary,
body.dark-theme .btn-card-add,
body.dark-theme .sticky-bar-btn {
  background: var(--accent-gold) !important;
  color: #04140d !important;
  border-color: var(--accent-gold) !important;
  box-shadow: 0 4px 12px rgba(229, 193, 88, 0.25) !important;
}

body.dark-theme .btn-premium-shop:hover {
  /* handled above in btn-premium-shop dark section */
}

body.dark-theme .btn-gradient:hover,
body.dark-theme .btn-primary:hover,
body.dark-theme .btn-card-add:hover,
body.dark-theme .sticky-bar-btn:hover {
  background: var(--accent-gold-light) !important;
  color: #04140d !important;
  border-color: var(--accent-gold-light) !important;
}

body.dark-theme .btn-secondary {
  background-color: transparent !important;
  color: var(--accent-gold) !important;
  border: 1.5px solid var(--accent-gold) !important;
}

body.dark-theme .btn-secondary:hover {
  background-color: rgba(229, 193, 88, 0.1) !important;
  color: var(--accent-gold-light) !important;
}

/* Base hero-section is 100vh globally */

/* ================================================
   Responsive visibility helpers
   ================================================ */
.desktop-only {
  display: none !important;
}
.mobile-only {
  display: flex !important;
}

@media (min-width: 993px) {
  .desktop-only {
    display: flex !important;
  }
  .mobile-only {
    display: none !important;
  }
}

/* Hide showcase-grid on desktop to show only video and USP */
@media (min-width: 993px) {
  .hero-showcase-grid.desktop-only {
    display: none !important;
  }
}

.footer-logo-wrapper {
  --footer-logo-main-size: 1.45rem;
  --footer-logo-sub-size: 0.88rem;
  --footer-logo-stack-gap: 0.14rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.footer-logo-wrapper .logo-text-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--footer-logo-stack-gap);
  height: calc(var(--footer-logo-main-size) + var(--footer-logo-sub-size) + var(--footer-logo-stack-gap));
}

.footer-logo-img {
  display: block;
  width: auto;
  height: calc(var(--footer-logo-main-size) + var(--footer-logo-sub-size) + var(--footer-logo-stack-gap));
  aspect-ratio: 512 / 491;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
}

/* Gold SVG logo — no recolor filters (gradient is in the asset) */
.logo-img,
.preloader-logo-img,
.footer-logo-img {
  filter: drop-shadow(0 1px 2px rgba(166, 124, 0, 0.18));
}

/* Transparent Header State Contrast Optimization (White text over video)
   Keep SN Pro 900 — do not fall back to a lighter “old” weight */
.main-header:not(.scrolled) .nav-link {
  font-family: var(--font-nav) !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.main-header.scrolled .nav-link {
  font-family: var(--font-nav) !important;
  font-weight: 900 !important;
}

.main-header:not(.scrolled) .logo-main {
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.main-header:not(.scrolled) .logo-sub {
  color: var(--accent-gold-light) !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.main-header:not(.scrolled) .logo-img {
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 6px rgba(212, 175, 55, 0.35)) !important;
}

.main-header:not(.scrolled) .location-widget,
.main-header:not(.scrolled) .lang-dropdown-btn,
.main-header:not(.scrolled) .theme-toggle-btn,
.main-header:not(.scrolled) .header-theme-btn,
.main-header:not(.scrolled) .cart-btn {
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.main-header:not(.scrolled) .nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
}

.main-header:not(.scrolled) .nav-link::after {
  background: #f6e073;
}

.main-header:not(.scrolled) .header-actions svg {
  stroke: #ffffff !important;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}

.main-header:not(.scrolled) .lang-dropdown-btn svg {
  color: #ffffff !important;
  stroke: none !important;
  fill: #ffffff !important;
}

.main-header:not(.scrolled) .location-widget svg {
  stroke: #ffffff !important;
  color: #ffffff !important;
}

.main-header:not(.scrolled) .mobile-menu-toggle span {
  background-color: #ffffff !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* ============================================================
   Device matrix: phones, iPads, landscape
   ============================================================ */

/* Phone-only catalog swipe: spacing handled in max-width 768 #catalog-grid rules above */

/* Tablet portrait/landscape (iPad mini > iPad Pro width band) */
@media (min-width: 641px) and (max-width: 1024px) {
  .products-grid:not(#bestsellers-grid) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 28px 24px !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    scroll-snap-type: none !important;
  }

  .products-grid:not(#bestsellers-grid) .product-card {
    flex: none !important;
    max-width: none !important;
    width: auto !important;
  }

  .about-container,
  .delivery-card,
  .contacts-layout {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr !important;
  }

  .hero-introducing-block .hero-title {
    font-size: clamp(2rem, 4.5vw, 2.75rem) !important;
  }

  .section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.4rem) !important;
  }

  /* Larger touch targets on iPad drawer still via hamburger ?1024 */
  .mobile-drawer {
    width: min(100%, 400px);
  }
}

/* Large tablet landscape / small laptop: 3-col catalog when room allows */
@media (min-width: 900px) and (max-width: 1024px) and (orientation: landscape) {
  .products-grid:not(#bestsellers-grid) {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .hero-section {
    min-height: 100svh;
  }
}

/* Phone landscape � content must fit short viewport */
@media (max-height: 480px) and (orientation: landscape) {
  .main-header {
    height: calc(58px + env(safe-area-inset-top, 0px));
  }

  .header-container {
    height: 58px;
    padding-top: 0;
  }

  .hero-section {
    height: auto;
    min-height: 100svh;
    min-height: 100dvh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .hero-container {
    padding: calc(64px + env(safe-area-inset-top, 0px)) 16px 20px !important;
    gap: 12px !important;
    justify-content: flex-start !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .hero-introducing-block .hero-title {
    font-size: 1.35rem !important;
    margin-bottom: 8px !important;
  }

  .hero-introducing-block .hero-desc {
    font-size: 0.875rem !important;
    margin-bottom: 12px !important;
    max-width: 90%;
  }

  .hero-introducing-block .hero-subtitle-intro {
    font-size: 0.7rem !important;
    margin-bottom: 8px !important;
  }

  .btn-premium-shop {
    min-height: 42px;
    padding: 0 24px !important;
    font-size: 0.75rem !important;
  }

  .why-title {
    white-space: normal !important;
    font-size: var(--title-size-mobile) !important;
    line-height: var(--title-leading) !important;
  }

  .why-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
    max-width: none !important;
  }

  .why-card {
    padding: 14px 6px 8px !important;
    gap: 6px !important;
  }

  .why-card-title {
    font-size: 0.78rem !important;
  }

  .why-card-text {
    font-size: 0.75rem !important;
    line-height: 1.35 !important;
  }

  .why-icon {
    width: 40px;
    height: 40px;
  }

  .sticky-bottom-bar {
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
    padding: 8px 12px;
  }

  .page-preloader {
    /* keep full screen */
  }
}

/* Short landscape tablets (iPad mini landscape height can be ~744; this targets short phones primarily) */
@media (max-height: 700px) and (min-width: 768px) and (orientation: landscape) {
  .hero-section {
    min-height: 100svh;
  }

  .hero-container {
    padding-top: calc(88px + env(safe-area-inset-top, 0px)) !important;
    gap: 20px !important;
  }

  .hero-introducing-block .hero-title {
    font-size: clamp(1.75rem, 3.5vw, 2.4rem) !important;
  }
}

/* iPad Pro / large tablet portrait: 3 product columns */
@media (min-width: 834px) and (max-width: 1024px) and (orientation: portrait) {
  .products-grid:not(#bestsellers-grid) {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* Prevent horizontal page bounce from full-bleed negative margins on tiny screens */
@media (max-width: 480px) {
  .container {
    padding-left: max(16px, env(safe-area-inset-left)) !important;
    padding-right: max(16px, env(safe-area-inset-right)) !important;
  }

  .why-title {
    font-size: clamp(1.35rem, 6.5vw, 1.85rem) !important;
    letter-spacing: var(--title-tracking) !important;
  }

  .ig-card {
    margin-left: calc(-1 * max(16px, env(safe-area-inset-left)));
    margin-right: calc(-1 * max(16px, env(safe-area-inset-right)));
    width: auto;
    max-width: none;
  }
}

/* Cart / modals: full height with safe areas on notched devices */
.cart-sidebar {
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* safe-area for drawer is set on .mobile-drawer base rule */

/* Fix double safe-area when body already padded: header full-bleed still OK */
.main-header {
  left: 0;
  right: 0;
  width: 100%;
}
