/* Ovoria Editorial — matches Desktop/siteweb design tokens & layout */

:root {
  --color-white: #ffffff;
  --color-dark-olive: #31330d;
  --color-olive: #595c27;
  --color-cream: #f6ecdd;
  --color-warm-beige: #d9cdb3;
  --color-gold-olive: #a0925b;
  --color-muted: #8b8570;
  --color-surface: #faf7f2;
  --nav-height: 72px;
  --nav-pill-height: 64px;
  --header-float-top: 14px;
  --header-offset: calc(var(--nav-pill-height) + var(--header-float-top) + 16px);
  --hero-section-top-gap: 18px;
  --spacing-gutter: clamp(1rem, 4vw, 3rem);
  --ease-editorial: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --max-width-editorial: 1440px;

  --cream: var(--color-cream);
  --ivory: var(--color-cream);
  --ivory-dark: #ede0cc;
  --olive: var(--color-olive);
  --olive-light: #6e7140;
  --olive-dark: var(--color-dark-olive);
  --olive-accent: var(--color-gold-olive);
  --olive-accent-light: #b8a872;
  --wine: var(--color-olive);
  --wine-light: #6e7140;
  --wine-dark: var(--color-dark-olive);
  --gold: var(--color-gold-olive);
  --gold-light: #b8a872;
  --ink: var(--color-dark-olive);
  --ink-muted: var(--color-muted);
  --ink-light: #a8a292;
  --pink-50: var(--color-surface);
  --pink-100: var(--color-cream);
  --pink-200: var(--color-warm-beige);
  --pink-300: #c9bc9e;
  --pink-400: var(--color-olive);
  --pink-500: var(--color-dark-olive);
  --rose-600: #6e7140;
  --rose-700: var(--color-olive);
  --rose-800: var(--color-dark-olive);
  --gray-200: var(--color-warm-beige);
  --gray-600: var(--color-muted);
  --gray-700: #4a4d30;
  --gray-800: var(--color-dark-olive);
}

body {
  background: var(--color-white);
  color: var(--color-dark-olive);
  padding-top: var(--header-offset);
}

body.page-home {
  padding-top: 0;
}

/* Inner pages: black footer extends to viewport bottom (no white gap below) */
body:not(.page-home) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body:not(.page-home) > .section,
body:not(.page-home) > main {
  flex: 0 0 auto;
}

body:not(.page-home) > .footer {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  margin-top: auto;
}

body:not(.page-home) > .footer > .container {
  flex: 1 0 auto;
  width: 100%;
}

/* Hero compact — حجم متوسط (لا يملأ الشاشة كاملة) */
.page-home .hero {
  min-height: 360px !important;
  height: auto;
  margin-top: 0;
  padding: calc(var(--header-offset) + var(--space-4)) 0 var(--space-5) !important;
  align-items: center;
}

.page-home .hero.has-banner {
  padding-top: 0 !important;
}

@media (min-width: 640px) {
  .page-home .hero {
    min-height: 430px !important;
    padding: calc(var(--header-offset) + var(--space-5)) 0 var(--space-6) !important;
  }

  .page-home .hero.has-banner {
    padding-top: 0 !important;
  }
}

@media (min-width: 1024px) {
  .page-home .hero {
    min-height: 480px !important;
    padding: calc(var(--header-offset) + var(--space-6)) 0 var(--space-6) !important;
  }

  .page-home .hero.has-banner {
    padding-top: 0 !important;
  }
}

/* Hide legacy sticky cart tab — siteweb uses header cart only */
.cart-sidebar {
  display: none !important;
}

.label-accent {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-olive);
}

/* ── Header (glass pill) ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: auto;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  pointer-events: none;
}

.header-inner {
  pointer-events: auto;
  max-width: var(--max-width-editorial);
  margin: 0 auto;
  padding: var(--header-float-top) var(--spacing-gutter) 0;
}

.header .nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  direction: ltr;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  height: var(--nav-pill-height);
  max-width: none;
  margin: 0;
  padding: 0 clamp(1rem, 2.5vw, 1.5rem);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 32px rgba(49, 51, 13, 0.06);
  transition:
    background 0.45s var(--ease-editorial),
    border-color 0.45s var(--ease-editorial),
    box-shadow 0.45s var(--ease-editorial);
}

.header.is-scrolled .nav,
body:not(.page-home) .header .nav {
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 36px rgba(49, 51, 13, 0.08);
}

.header .logo {
  flex: 0 0 auto;
  order: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.125rem;
  text-decoration: none;
  max-width: none;
  overflow: visible;
  white-space: normal;
}

.logo-center {
  position: static;
  transform: none;
  left: auto;
  grid-column: unset;
}

.logo-primary {
  font-family: var(--font-body);
  font-size: clamp(0.8125rem, 1.5vw, 0.9375rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--color-dark-olive);
}

.logo-secondary {
  font-family: var(--font-body);
  font-size: clamp(0.5rem, 1vw, 0.5625rem);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  line-height: 1.2;
  color: rgba(49, 51, 13, 0.62);
}

.logo-wordmark {
  display: none;
}

.logo-img {
  display: none;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  order: 0;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  padding: 0;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}

body.page-home .header:not(.is-scrolled) .menu-toggle {
  border-color: rgba(89, 92, 39, 0.18);
  background: rgba(255, 255, 255, 0.55);
}

.menu-toggle span {
  display: none;
}

.menu-toggle svg {
  display: block;
}

.nav-links-desktop {
  flex: 1 1 auto;
  order: 2;
  justify-content: center;
  align-items: center;
  min-width: 0;
  display: none;
}

.nav-links-desktop a {
  font-family: var(--font-body);
  font-size: clamp(0.75rem, 1.1vw, 0.8125rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  color: rgba(49, 51, 13, 0.78);
  transition:
    color 0.3s var(--ease-editorial),
    background 0.3s var(--ease-editorial);
  box-shadow: none !important;
}

.nav-links-desktop a:hover,
.nav-links-desktop a.active {
  color: var(--color-dark-olive);
}

.nav-links-desktop a.active {
  background: rgba(89, 92, 39, 0.1);
}

.header .menu-toggle,
.header .cart-icon-link,
.header .lang-toggle {
  color: var(--color-dark-olive);
}

.nav-actions {
  order: 3;
  margin-inline-start: 0;
  margin-left: auto;
  gap: 0.625rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.cart-icon-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(89, 92, 39, 0.18);
  background: rgba(255, 255, 255, 0.28);
  color: var(--color-dark-olive);
  transition:
    background 0.3s var(--ease-editorial),
    border-color 0.3s var(--ease-editorial),
    transform 0.2s ease;
}

.cart-icon-link:hover {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(89, 92, 39, 0.3);
  transform: translateY(-1px);
}

.cart-icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.5;
}

.cart-badge {
  top: -2px;
  inset-inline-end: -2px;
  right: auto;
  min-width: 17px;
  height: 17px;
  font-size: 9px;
  font-weight: 700;
  background: #5a9e5c;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: none;
}

[dir="rtl"] .cart-badge {
  left: auto;
}

.pill.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 40px;
  padding: 0 0.875rem;
  border-radius: 999px;
  border: 1px solid rgba(89, 92, 39, 0.18);
  background: rgba(255, 255, 255, 0.28);
  color: var(--color-dark-olive);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    background 0.3s var(--ease-editorial),
    border-color 0.3s var(--ease-editorial);
}

.pill.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(89, 92, 39, 0.3);
}

.nav-drawer {
  position: fixed;
  z-index: 110;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 0.35s var(--ease-editorial),
    visibility 0.35s,
    transform 0.35s var(--ease-editorial);
}

@media (max-width: 1023px) {
  .nav-drawer {
    inset: auto;
    top: max(calc(var(--header-offset) + 0.25rem), env(safe-area-inset-top));
    inset-inline-start: max(0.65rem, env(safe-area-inset-left));
    inset-inline-end: max(0.65rem, env(safe-area-inset-right));
    bottom: auto;
    height: auto;
    width: auto;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px) saturate(1.12);
    -webkit-backdrop-filter: blur(18px) saturate(1.12);
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow:
      0 12px 32px rgba(49, 51, 13, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.65);
    transform: scale(0.98) translateY(-8px);
  }

  .nav-drawer.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1) translateY(0);
  }

  .nav-drawer-head {
    top: 0.5rem;
    left: 0.5rem;
  }

  [dir="rtl"] .nav-drawer-head {
    left: 0.5rem;
    right: auto;
  }

  .nav-drawer-close {
    width: 34px;
    height: 34px;
    font-size: 1.35rem;
  }

  .nav-drawer-links {
    justify-content: flex-start;
    gap: 0;
    flex: 0 0 auto;
    padding: 2.35rem 1rem 0.65rem;
    padding-inline: 1rem;
  }

  .nav-drawer a {
    font-size: 1.05rem;
    padding: 0.48rem 0;
    line-height: 1.35;
  }
}

@media (min-width: 1024px) {
  .nav-drawer {
    top: 0;
    bottom: 0;
    inset-inline-start: 0;
    width: min(88vw, 20rem);
    max-width: 320px;
    padding-top: calc(var(--header-offset) + env(safe-area-inset-top, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--color-cream);
    transform: translateX(-100%);
    opacity: 1;
    box-shadow: 0 12px 40px rgba(49, 51, 13, 0.18);
    overflow-y: auto;
  }

  [dir="rtl"] .nav-drawer {
    inset-inline-start: auto;
    inset-inline-end: 0;
    transform: translateX(100%);
  }

  .nav-drawer.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
}

.nav-drawer-head {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top));
  left: 1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  border: none;
  flex-shrink: 0;
}

.nav-drawer-brand {
  display: none;
}

.nav-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: rgba(49, 51, 13, 0.72);
  font-size: 1.65rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(49, 51, 13, 0.08);
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav-drawer-close:hover {
  background: #fff;
  transform: scale(1.04);
}

.nav-drawer-links {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0;
  padding: calc(var(--header-offset) + 0.5rem) 1.25rem 1rem;
  overflow-y: auto;
}

@media (max-width: 1023px) {
  .nav-drawer-links {
    padding-inline: 1rem;
  }
}

.nav-drawer a {
  display: block;
  min-height: auto;
  padding: 0.55rem 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(49, 51, 13, 0.68);
  text-decoration: none;
  border: none;
  border-radius: 0;
  letter-spacing: 0.01em;
  text-align: start;
  line-height: 1.35;
  background: transparent;
  transition: color 0.25s var(--ease-editorial);
}

.nav-drawer a + a {
  margin-top: 0;
}

.nav-drawer a:hover,
.nav-drawer a.active {
  color: var(--color-dark-olive);
  background: transparent;
  box-shadow: none;
}

.nav-drawer a.active {
  font-weight: 600;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 105;
  background: rgba(49, 51, 13, 0.18);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
  display: block;
}

body.menu-open {
  overflow: hidden;
}

@media (max-width: 1023px) {
  .header .nav {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.5rem;
    padding-inline: 0.875rem;
    direction: inherit;
  }

  html[dir="rtl"] .header .nav {
    direction: rtl;
  }

  html[dir="ltr"] .header .nav {
    direction: ltr;
  }

  .menu-toggle {
    grid-column: 1;
    grid-row: 1;
    order: unset;
  }

  .header .logo {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    align-items: flex-start;
    text-align: start;
    order: unset;
  }

  .nav-actions {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    margin-left: 0;
    order: unset;
  }

  .nav-links-desktop {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }

  .header .nav {
    display: flex;
    justify-content: space-between;
  }

  .nav-links-desktop {
    display: flex;
    gap: 0.25rem;
  }

  .nav-actions {
    flex: 0 0 auto;
  }
}

@media (min-width: 1024px) and (max-width: 1180px) {
  .nav-links-desktop a {
    font-size: 0.6875rem;
    padding: 0.4rem 0.625rem;
  }
}

@media (min-width: 1024px) {
  .nav-drawer,
  .menu-overlay {
    display: none !important;
  }
}

/* ── Buttons (siteweb) ── */
.btn-primary {
  background: transparent;
  border: 1px solid var(--color-olive);
  color: var(--color-dark-olive);
  border-radius: 0;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  box-shadow: none;
}

.btn-primary:hover {
  background: var(--color-olive);
  border-color: var(--color-olive);
  color: var(--color-white);
  transform: none;
}

.btn-outline {
  border-radius: 0;
  border-color: var(--color-warm-beige);
  color: var(--color-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 11px;
}

.btn-outline:hover {
  color: var(--color-olive);
  border-color: var(--color-olive);
  background: transparent;
}

.hero .btn-primary {
  min-height: auto;
  padding: 0.75rem 1.75rem;
}

/* ── Hero editorial (compact) ── */
.hero {
  background: var(--color-white);
}

/* Hero banner image (page d'accueil) */
.page-home .hero.has-banner .hero-background {
  display: block !important;
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center 50%;
  background-repeat: no-repeat;
  filter: none;
}

.page-home .hero.has-banner .hero-slide {
  background-position: center 50%;
}

.page-home .hero.has-banner::before {
  display: none;
}

.page-home .hero.has-banner::after {
  display: none;
}

.page-home .hero.has-banner .hero-slideshow {
  z-index: 0;
}

.page-home .hero.has-banner .hero-inner {
  position: relative;
  z-index: 2;
}

.page-home .hero.has-banner .hero-slideshow-controls {
  z-index: 3;
}

/* Texte lisible sur photo (sans overlay sur toute l'image) */
.page-home .hero.has-banner .hero-card {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.page-home .hero.has-banner .hero-title {
  color: var(--color-cream);
  text-shadow:
    0 2px 18px rgba(0, 0, 0, 0.7),
    0 1px 4px rgba(0, 0, 0, 0.55);
}

.page-home .hero.has-banner .hero-subtitle {
  color: rgba(255, 255, 255, 0.94);
  text-shadow:
    0 1px 14px rgba(0, 0, 0, 0.65),
    0 1px 3px rgba(0, 0, 0, 0.5);
}

.page-home .hero.has-banner .hero-text {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}

.page-home .hero.has-banner .btn-primary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.9);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.page-home .hero.has-banner .btn-primary:hover {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-dark-olive);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.hero.fabric-hero::before,
.page-home .hero:not(.has-banner)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #ffffff;
  background-image:
    radial-gradient(ellipse at 30% 20%, rgba(89, 92, 39, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(217, 205, 179, 0.15) 0%, transparent 40%),
    repeating-linear-gradient(135deg, transparent, transparent 2px, rgba(89, 92, 39, 0.03) 2px, rgba(89, 92, 39, 0.03) 4px);
  pointer-events: none;
}

.page-home .hero-inner {
  padding: 0;
}

.page-home .hero.has-banner .hero-inner {
  padding-top: calc(var(--header-offset) + var(--space-3));
  min-height: 360px;
  display: flex;
  align-items: center;
}

@media (min-width: 640px) {
  .page-home .hero.has-banner .hero-inner {
    min-height: 430px;
    padding-top: calc(var(--header-offset) + var(--space-4));
  }
}

@media (min-width: 1024px) {
  .page-home .hero.has-banner .hero-inner {
    min-height: 480px;
    padding-top: calc(var(--header-offset) + var(--space-5));
  }
}

.hero-card {
  background: transparent;
  backdrop-filter: none;
  border: none;
  box-shadow: none;
  padding: var(--space-4) var(--space-5);
  max-width: 680px;
}

.page-home .hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.75rem, 5vw, 2.75rem) !important;
  color: var(--color-dark-olive);
  text-shadow: none;
  letter-spacing: 0.03em;
  margin-bottom: var(--space-3);
  line-height: 1.15;
}

.page-home .hero-subtitle {
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--color-olive);
  text-shadow: none;
  font-size: clamp(1.0625rem, 2.5vw, 1.375rem) !important;
  margin-bottom: var(--space-3);
  line-height: 1.35;
}

.page-home .hero-text {
  color: rgba(139, 133, 112, 0.85);
  text-shadow: none;
  max-width: 26rem;
  margin-inline: auto;
  font-size: var(--font-size-base);
  margin-bottom: var(--space-4);
  line-height: 1.55;
}

.page-home .hero-text:empty {
  display: none;
  margin: 0;
}

.page-home .hero-slideshow-controls {
  display: none !important;
  bottom: var(--space-2);
}

.page-home .hero-slide-prev,
.page-home .hero-slide-next {
  width: 32px;
  height: 32px;
  font-size: 18px;
}

/* ── Marquee ticker (under hero) ── */
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-ticker {
  position: relative;
  overflow: hidden;
  background: var(--color-olive);
  padding: var(--space-3) 0;
  border-block: 1px solid rgba(246, 236, 221, 0.12);
}

.marquee-ticker-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
  will-change: transform;
}

.marquee-ticker-group {
  display: flex;
  flex-shrink: 0;
}

.marquee-ticker-text {
  display: inline-block;
  padding-inline: var(--space-6);
  font-family: var(--font-display);
  font-size: clamp(0.9375rem, 2.5vw, 1.375rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-cream);
  white-space: nowrap;
}

@media (min-width: 768px) {
  .marquee-ticker {
    padding: var(--space-4) 0;
  }

  .marquee-ticker-text {
    padding-inline: var(--space-8);
    font-size: clamp(1.125rem, 2vw, 1.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-ticker-track {
    animation: none;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .marquee-ticker-group:last-child {
    display: none;
  }

  .marquee-ticker-text {
    white-space: normal;
    text-align: center;
    padding-inline: var(--space-4);
  }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  color: var(--color-dark-olive);
  text-shadow: none;
  letter-spacing: 0.02em;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--color-olive);
  text-shadow: none;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
}

.hero-text {
  color: rgba(139, 133, 112, 0.85);
  text-shadow: none;
  max-width: 28rem;
  margin-inline: auto;
}

.hero .btn-primary {
  background: transparent;
  border-color: var(--color-olive);
  color: var(--color-dark-olive);
}

.hero .btn-primary:hover {
  background: var(--color-olive);
  color: var(--color-white);
}

/* ── Sections & cards ── */
.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--color-dark-olive);
  letter-spacing: 0.02em;
}

.section-title::after {
  background: linear-gradient(90deg, transparent, var(--color-olive), transparent);
  width: 64px;
}

.section-subtitle {
  color: rgba(139, 133, 112, 0.75);
  font-size: var(--font-size-sm);
  letter-spacing: 0.02em;
}

.card,
.product-card {
  border-radius: 12px;
  border: none;
  box-shadow: 0 4px 18px rgba(49, 51, 13, 0.07);
  background: var(--color-white);
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(49, 51, 13, 0.12);
}

.product-img {
  border-radius: 0;
  aspect-ratio: 4 / 5;
  background: var(--color-surface);
  position: relative;
}

.product-img-container {
  background: var(--color-surface);
}

.product-img-container.has-loaded-image {
  background: var(--color-surface);
}

.product-card-slide,
.product-page .product-img-slide img {
  opacity: 1;
}

.product-img-link {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.product-img-link .product-img-container {
  width: 100%;
  height: 100%;
}

.product-img-link:focus-visible {
  outline: 2px solid var(--color-olive);
  outline-offset: -2px;
}

.product-img-slideshow:hover .product-card-slide.active {
  transform: scale(1.03);
}

.product-card-slide.active {
  transition: transform 0.45s ease, opacity 0.5s ease-in-out;
}

.product-img-fade {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 32%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.55) 85%,
    rgba(255, 255, 255, 0.75) 100%
  );
}

.product-card-actions {
  position: absolute;
  inset-inline: 12px;
  bottom: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-cart-btn {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--color-white);
  color: #6b6b6b;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-cart-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
}

.product-cart-plus {
  position: absolute;
  top: 4px;
  inset-inline-end: 4px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #5a9e5c;
  color: var(--color-white);
  font-size: 11px;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
}

.product-buy-btn {
  flex: 1;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--color-gold-olive);
  background: var(--color-white);
  color: var(--color-dark-olive);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.product-buy-btn:hover {
  background: var(--color-gold-olive);
  border-color: var(--color-gold-olive);
  color: var(--color-white);
}

/* Homepage product cards — زر واحد أنيق */
.product-card-actions--home {
  inset-inline: 0;
  bottom: 0;
  padding: 0;
}

.product-buy-btn--home {
  flex: 1;
  width: 100%;
  min-height: 48px;
  padding: 0 1.25rem;
  border-radius: 0;
  border: none;
  background: rgba(49, 51, 13, 0.88);
  backdrop-filter: blur(6px);
  color: var(--color-white);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}

.product-buy-btn--home:hover {
  background: var(--color-olive);
  color: var(--color-white);
}

.product-buy-btn--home .product-buy-btn-icon {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

html[dir="rtl"] .product-buy-btn--home .product-buy-btn-icon {
  transform: scaleX(-1);
}

.product-buy-btn--home:hover .product-buy-btn-icon {
  transform: translateX(3px);
}

html[dir="rtl"] .product-buy-btn--home:hover .product-buy-btn-icon {
  transform: scaleX(-1) translateX(3px);
}

.product-card--home .product-img-fade {
  height: 40%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(49, 51, 13, 0.08) 55%,
    rgba(49, 51, 13, 0.35) 100%
  );
}

.product-title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.product-title-link:hover {
  color: var(--color-olive);
}

.product-card--home .product-card-body {
  padding-top: 1rem;
}

.product-sale-badge {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  z-index: 4;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: var(--color-gold-olive);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.product-card-body {
  padding: 0.875rem 1rem 1.125rem;
  text-align: start;
}

.product-card h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9375rem;
  color: #1f1f1f;
  min-height: auto;
  margin: 0 0 0.5rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-prices {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.product-card-prices .price,
.product-card-prices .price-new {
  color: var(--color-gold-olive);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 700;
}

.product-card-prices .price-old {
  color: #9a9a9a;
  font-size: 0.8125rem;
  font-weight: 400;
  text-decoration: line-through;
}

.product-details-link {
  display: inline-block;
  margin-top: 0.125rem;
  color: var(--color-gold-olive);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.product-details-link:hover {
  opacity: 0.75;
}

.badge {
  border-radius: 0;
  background: rgba(89, 92, 39, 0.1);
  color: var(--color-olive);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.input,
.select,
.custom-select-trigger {
  border-radius: 0;
  border-color: var(--color-warm-beige);
  background: transparent;
  color: var(--color-dark-olive);
}

.input:focus,
.select:focus,
.custom-select-trigger:focus {
  border-color: var(--color-olive);
  box-shadow: none;
}

.summary {
  background: var(--color-surface);
  border-radius: 0;
  border-color: rgba(217, 205, 179, 0.5);
}

/* ── Footer (black) ── */
.footer {
  background: #000000 !important;
  background-color: #000000 !important;
  border-top: none !important;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 0 !important;
}

.footer .container {
  max-width: var(--max-width-editorial);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-bottom: 1.5rem;
}

.footer-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  text-align: start;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.footer-brand {
  align-items: flex-start;
  text-align: start;
  gap: 0;
}

.footer-logo,
.footer-brand .footer-logo {
  display: none;
}

.footer-logo-mark {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 3.75rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1;
  letter-spacing: 0.01em;
  color: #ffffff;
}

.footer h3.footer-title,
.footer-title {
  margin: 0.625rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-cream);
}

.footer-tagline {
  margin: 0 0 1.125rem;
  max-width: 240px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
}

.footer-block h4 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-cream);
}

.footer-block ul li {
  margin-bottom: 0.625rem;
}

.footer-block a {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.25s ease;
}

.footer-block a:hover {
  color: var(--color-cream);
}

.footer-contact-item {
  gap: 0.5rem;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.45);
}

.footer-payment-note {
  display: inline-block;
  margin: 0;
  padding: 0.625rem 0.875rem;
  max-width: 230px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
}

.footer-bottom {
  margin-top: 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-copyright {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.38);
}

.footer-copyright a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}

.footer-copyright a:hover {
  color: var(--color-cream);
  text-decoration: underline;
}

@media (min-width: 640px) {
  .footer-grid {
    text-align: start;
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    align-items: flex-start;
  }
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.15fr 1fr 1fr;
    gap: clamp(2rem, 4vw, 3rem);
  }
}

.contact-hero {
  background: var(--color-surface);
  border-bottom: 1px solid rgba(217, 205, 179, 0.4);
  margin-bottom: var(--space-6);
}

.contact-hero-title {
  color: var(--color-dark-olive);
  font-weight: 300;
}

.contact-hero-text {
  color: rgba(139, 133, 112, 0.75);
}

.header + .section:not(.hero) {
  padding-top: var(--space-6);
}

/* Short inner pages (about, contact, cart, etc.) */
.page-about-section,
.contact-page-section,
.page-cart-section {
  padding-top: var(--space-5);
  padding-bottom: var(--space-5);
}

.about-intro {
  margin-bottom: var(--space-5);
}

.about-values {
  margin-top: var(--space-5);
}

.about-values .section-title-sm {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
}

.about-values-grid {
  margin-bottom: 0;
}

.about-values-grid .card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: var(--space-4) var(--space-3);
  text-align: center;
}

.about-values-grid .card strong {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-dark-olive);
}

.about-intro.card {
  padding: var(--space-4) var(--space-5);
  line-height: 1.75;
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: var(--space-5);
}

@media (min-width: 768px) {
  .page-about-section,
  .contact-page-section,
  .page-cart-section {
    padding-top: var(--space-6);
    padding-bottom: var(--space-6);
  }
}

.page-cart-section .section-title {
  margin-bottom: var(--space-4);
}

.page-cart-section .cart-list {
  margin-bottom: var(--space-4);
}

.page-cart-section .cart-summary {
  margin-top: var(--space-4);
  max-width: 420px;
}

.page-cart-section .cart-empty-msg {
  margin: 0;
  padding: var(--space-4) var(--space-3);
}

.page-cart-section .cart-total-line {
  margin: 0 0 var(--space-3);
}

/* === Product detail page — reference layout (Ovoria colors) === */
.product-page .product-main .container {
  max-width: var(--max-width-editorial);
}

.product-page .product-details-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}

@media (min-width: 992px) {
  .product-page .product-details-row {
    grid-template-columns: 1.08fr 0.92fr;
  }
}

.product-page .product-gallery-card,
.product-page .product-order-box {
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid rgba(217, 205, 179, 0.55);
  border-radius: 16px;
  background: var(--color-white);
  box-shadow: 0 4px 28px rgba(49, 51, 13, 0.07);
}

.product-page .product-order-box {
  background: var(--color-surface);
}

.product-page .product-info-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.product-page .product-heading-block {
  margin: 0;
  padding: 0;
  border: none;
  text-align: center;
}

.product-page .product-title {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700;
  color: var(--color-dark-olive);
  line-height: 1.35;
  margin-bottom: var(--space-2);
  text-align: center;
}

.product-page .product-price-block {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.product-page .product-price-block .price-current {
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 700;
  color: var(--color-olive);
}

.product-page .product-price-block .price-old {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: rgba(139, 133, 112, 0.75);
  text-decoration: line-through;
}

.product-page .product-desc-box {
  display: none;
  border: 1px solid rgba(217, 205, 179, 0.55);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  background: var(--color-white);
}

.product-page .product-desc-box.has-content {
  display: block;
}

.product-page .product-desc-box.product-desc-desktop.has-content {
  display: block !important;
}

.product-page .product-desc-box .product-form-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--color-dark-olive);
}

.product-page .product-desc-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--color-muted);
  white-space: pre-line;
}

.product-page .product-form-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-dark-olive);
  margin: 0 0 var(--space-3);
}

.product-page .product-img-gallery {
  border-radius: 14px;
  border: 1px solid rgba(217, 205, 179, 0.35);
  background: var(--color-surface);
}

.product-page .gallery-nav {
  background: rgba(49, 51, 13, 0.72);
  color: var(--color-white);
  width: 40px;
  height: 40px;
  font-size: 1.35rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.product-page .gallery-nav:hover {
  background: rgba(49, 51, 13, 0.88);
  color: var(--color-white);
}

.product-page .product-gallery-inline .thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  margin-top: 0.75rem;
  padding-bottom: 0.25rem;
  grid-template-columns: unset;
}

.product-page .product-gallery-inline .thumbs button {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  border: 2px solid rgba(217, 205, 179, 0.65);
}

.product-page .product-gallery-inline .thumbs button.active {
  border-color: var(--color-olive);
}

.product-page .product-variants-section {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(217, 205, 179, 0.45);
}

.product-page .product-variant-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-dark-olive);
  margin: 0 0 0.75rem;
}

.product-page .product-color-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
}

.product-page .product-color-chip,
.product-page .product-size-chip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 0;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.product-page .product-color-chip {
  min-height: 44px;
  padding: 0.45rem 0.35rem;
  border-radius: 9px;
  border: 1.5px solid rgba(217, 205, 179, 0.85);
  background: var(--color-white);
  color: var(--color-dark-olive);
  font-size: 0.78rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-page .product-size-chip {
  min-height: 44px;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  border: 1.5px solid rgba(217, 205, 179, 0.85);
  background: var(--color-white);
  color: var(--color-dark-olive);
  font-size: 0.82rem;
  line-height: 1.35;
}

.product-page .product-color-chip input,
.product-page .product-size-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.product-page .product-color-chip:has(input:checked),
.product-page .product-size-chip:has(input:checked) {
  border-color: var(--color-olive);
  background: var(--color-cream);
  color: var(--color-dark-olive);
  font-weight: 600;
}

.product-page .product-size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-page .product-size-chip {
  min-width: 88px;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.product-page .product-order-form .form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

@media (max-width: 560px) {
  .product-page .product-order-form .form-row-2 {
    grid-template-columns: 1fr;
  }
}

.product-page .product-order-form .form-group {
  margin-bottom: var(--space-3);
}

.product-page .product-order-form .form-group > label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-dark-olive);
  margin-bottom: 0.35rem;
}

.product-page .product-order-form .input:not(.qty-input),
.product-page .product-order-form textarea.input {
  border-radius: 10px;
  border: 1px solid rgba(217, 205, 179, 0.75);
  background: var(--color-white);
  min-height: 44px;
}

.product-page .product-order-form .select.product-select-accent,
.product-page .product-order-form select.product-select-accent {
  appearance: none;
  background-color: var(--color-olive);
  color: var(--color-white);
  border: none;
  border-radius: 10px;
  min-height: 44px;
  padding-inline: 0.85rem;
  font-weight: 600;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 0.85rem center;
  padding-left: 2rem;
}

[dir="rtl"] .product-page .product-order-form .select.product-select-accent,
[dir="rtl"] .product-page .product-order-form select.product-select-accent {
  background-position: left 0.85rem center;
  padding-left: 2rem;
  padding-right: 0.85rem;
}

.product-page .product-order-form .select.product-select-accent option {
  background: var(--color-white);
  color: var(--color-dark-olive);
}

.product-page .custom-select-box {
  width: 100%;
}

.product-page .custom-select-trigger {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  border: none;
  border-radius: 10px;
  background: var(--color-olive);
  color: var(--color-white);
  font-weight: 600;
  text-align: start;
}

.product-page .custom-select-trigger::after {
  border-top-color: var(--color-white);
}

.product-page .custom-select-trigger:focus {
  outline: 2px solid rgba(89, 92, 39, 0.35);
  outline-offset: 2px;
}

.product-page .custom-select-trigger:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.product-page .product-order-form .form-group--qty {
  align-items: flex-start;
  margin-top: var(--space-3);
}

.product-page .quantity-offers-wrap {
  margin-top: var(--space-3);
  margin-bottom: var(--space-2);
}

.product-page .product-order-form .quantity-offers-wrap label.qty-offer-card {
  margin-bottom: 0;
  font-size: inherit;
  font-weight: inherit;
  color: var(--color-dark-olive);
}

.product-page .product-order-form .quantity-offers-wrap label.qty-offer-card.is-selected,
.product-page .product-order-form .quantity-offers-wrap label.qty-offer-card.is-selected .qty-offer-price,
.product-page .product-order-form .quantity-offers-wrap label.qty-offer-card.is-selected .qty-offer-text {
  color: #ffffff;
}

.product-page .quantity-offers-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.product-page .quantity-offers-heading-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark-olive);
  letter-spacing: 0.01em;
}

.product-page .quantity-offers-heading-deco {
  flex: 0 0 auto;
  width: 42px;
  height: 10px;
  background:
    linear-gradient(var(--color-gold-olive), var(--color-gold-olive)) center / 100% 1.5px no-repeat,
    linear-gradient(135deg, transparent 46%, var(--color-gold-olive) 46%, var(--color-gold-olive) 54%, transparent 54%) left center / 8px 8px no-repeat,
    linear-gradient(-135deg, transparent 46%, var(--color-gold-olive) 46%, var(--color-gold-olive) 54%, transparent 54%) right center / 8px 8px no-repeat;
  opacity: 0.9;
}

.product-page .quantity-offers-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-page .piece-colors-wrap {
  margin-top: var(--space-2);
  margin-bottom: var(--space-2);
}

.product-page .piece-colors-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.product-page .piece-color-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.product-page .piece-color-num {
  flex: 0 0 1.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-muted);
  text-align: center;
}

.product-page .piece-color-select {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0.55rem 2rem 0.55rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(217, 205, 179, 0.85);
  background-color: var(--color-white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%238b8570' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 0.85rem center;
  color: var(--color-dark-olive);
  font-size: 0.88rem;
  font-weight: 500;
  appearance: none;
  cursor: pointer;
}

[dir="rtl"] .product-page .piece-color-select {
  background-position: left 0.85rem center;
  padding-left: 2rem;
  padding-right: 0.85rem;
}

.product-page .piece-color-select:focus {
  outline: 2px solid rgba(89, 92, 39, 0.25);
  outline-offset: 1px;
  border-color: rgba(89, 92, 39, 0.35);
}

.product-page .piece-color-select.is-invalid {
  border-color: var(--danger);
}

.product-page .qty-offer-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.5rem;
  padding: 0.95rem 1rem 0.95rem 3.25rem;
  border-radius: 999px;
  border: 2px solid rgba(217, 205, 179, 0.85);
  background: #fdf8f2;
  color: var(--color-dark-olive);
  cursor: pointer;
  transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, color 0.22s ease, transform 0.18s ease;
  box-shadow: 0 2px 10px rgba(49, 51, 13, 0.06);
}

.product-page .qty-offer-card.has-badge {
  padding-right: 4.25rem;
}

.product-page .qty-offer-card:hover:not(.is-selected) {
  border-color: rgba(160, 146, 91, 0.65);
  box-shadow: 0 4px 14px rgba(49, 51, 13, 0.1);
  transform: translateY(-1px);
}

.product-page .qty-offer-card.is-selected {
  border-color: var(--color-gold-olive);
  background: linear-gradient(135deg, #3f4118 0%, var(--color-dark-olive) 58%, #2a2b0c 100%);
  color: #ffffff;
  box-shadow:
    0 0 0 1px rgba(184, 168, 114, 0.35),
    0 8px 20px rgba(49, 51, 13, 0.24);
  transform: none;
}

.product-page .qty-offer-card.is-selected .qty-offer-price,
.product-page .qty-offer-card.is-selected .qty-offer-text {
  color: #ffffff;
}

.product-page .qty-offer-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.product-page .qty-offer-radio {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(49, 51, 13, 0.5);
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  z-index: 2;
}

.product-page .qty-offer-radio::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.2s ease;
}

.product-page .qty-offer-card.is-selected .qty-offer-radio {
  border-color: #fff;
  background: transparent;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.product-page .qty-offer-card.is-selected .qty-offer-radio::after {
  background: #fff;
}

.product-page .qty-offer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 0;
  width: 100%;
  text-align: center;
  padding-inline: 0.35rem;
}

.product-page .qty-offer-badge {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3.15rem;
  height: 3.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #c9b87a 0%, var(--color-gold-olive) 100%);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(49, 51, 13, 0.18);
  z-index: 1;
}

.product-page .qty-offer-card.is-selected .qty-offer-badge {
  background: linear-gradient(145deg, #f0e6c8 0%, #d4c592 100%);
  color: #2a2b0c;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.product-page .qty-offer-price {
  font-size: clamp(1.22rem, 4.2vw, 1.42rem);
  font-weight: 800;
  line-height: 1.2;
}

.product-page .qty-offer-text {
  font-size: clamp(0.92rem, 2.8vw, 1.05rem);
  font-weight: 600;
  line-height: 1.35;
  color: inherit;
  opacity: 0.92;
  max-width: 16rem;
}

@media (max-width: 420px) {
  .product-page .qty-offer-card {
    min-height: 4.15rem;
    padding: 0.85rem 0.85rem 0.85rem 2.85rem;
  }

  .product-page .qty-offer-card.has-badge {
    padding-right: 3.85rem;
  }

  .product-page .qty-offer-radio {
    left: 0.75rem;
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
  }

  .product-page .qty-offer-badge {
    width: 2.85rem;
    height: 2.85rem;
    font-size: 0.58rem;
    right: 0.45rem;
  }

  .product-page .qty-offer-price {
    font-size: 1.15rem;
  }

  .product-page .qty-offer-text {
    font-size: 0.88rem;
  }
}

.product-page .form-group--qty .input-hint {
  margin-top: 0.35rem;
}

.product-page .qty-controls {
  display: inline-flex;
  align-items: stretch;
  width: fit-content;
  max-width: 100%;
  direction: ltr;
  gap: 0;
  border: 1px solid rgba(217, 205, 179, 0.75);
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-white);
  padding: 0;
  box-shadow: none;
}

.product-page .qty-controls .qty-btn {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 0;
  background: var(--color-olive);
  color: var(--color-white);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.product-page .qty-controls .qty-btn:hover {
  background: var(--color-dark-olive);
}

.product-page .qty-controls .qty-input {
  width: 3.25rem;
  min-width: 3.25rem;
  max-width: 3.25rem;
  flex: 0 0 3.25rem;
  padding: 0 0.25rem;
  min-height: 44px;
  border: none;
  border-inline: 1px solid rgba(217, 205, 179, 0.55);
  border-radius: 0;
  background: var(--color-white);
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-dark-olive);
  box-shadow: none;
  -moz-appearance: textfield;
  appearance: textfield;
}

.product-page .qty-controls .qty-input::-webkit-outer-spin-button,
.product-page .qty-controls .qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-page .qty-controls .qty-input:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(89, 92, 39, 0.35);
}

/* Product social proof — stars + orders count under gallery */
.product-social-proof {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.85rem;
  padding: 0.5rem 0.75rem 0.15rem;
  text-align: center;
}

.product-social-proof__stars {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  color: #eab308;
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.product-social-proof__stars span {
  display: inline-block;
}

.product-social-proof__orders {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-muted, #6b7280);
  letter-spacing: 0.01em;
}

.product-page .product-social-proof {
  margin-top: 1rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(217, 205, 179, 0.35);
}

.product-page .product-social-proof__orders {
  color: #6b6f52;
}

/* Delivery type cards (product + checkout) */
.delivery-type-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
}

.delivery-option {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1.5px solid rgba(89, 92, 39, 0.2);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  min-height: 68px;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.delivery-option:hover {
  border-color: rgba(89, 92, 39, 0.42);
  background: rgba(255, 252, 246, 0.98);
}

.delivery-option--popular {
  border-color: rgba(89, 92, 39, 0.32);
}

.delivery-option:has(input:checked) {
  border-color: var(--color-olive, #595c27);
  border-width: 2px;
  padding: calc(0.9rem - 0.5px) calc(1rem - 0.5px);
  background: rgba(89, 92, 39, 0.06);
  box-shadow: 0 4px 14px rgba(89, 92, 39, 0.1);
}

.delivery-option:has(input:checked) .delivery-option__label {
  color: var(--color-olive, #595c27);
  font-weight: 700;
}

.delivery-option input[type="radio"] {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  border: 2px solid rgba(89, 92, 39, 0.28);
  border-radius: 50%;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.delivery-option input[type="radio"]:checked {
  border-color: var(--color-olive, #595c27);
  border-width: 2px;
  background: radial-gradient(circle, var(--color-olive, #595c27) 0 42%, #fff 44%);
  box-shadow: inset 0 0 0 2px #fff;
}

.delivery-option input[type="radio"]:focus-visible {
  outline: 2px solid rgba(89, 92, 39, 0.45);
  outline-offset: 2px;
}

.delivery-option__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.3rem;
  flex: 1;
  min-width: 0;
}

.delivery-option__label {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-dark-olive, #434619);
}

.delivery-option__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, #595c27 0%, #6e7140 100%);
  box-shadow: 0 2px 6px rgba(89, 92, 39, 0.22);
  white-space: nowrap;
  line-height: 1.2;
}

#deliveryTypeSection > label:first-child,
.form-group:has(.delivery-type-group) > label:first-child {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-dark-olive, #434619);
}

@media (min-width: 521px) {
  .delivery-type-group {
    gap: 0.85rem;
  }

  .delivery-option {
    min-height: 76px;
    padding: 1rem 1.1rem;
  }

  .delivery-option:has(input:checked) {
    padding: calc(1rem - 0.5px) calc(1.1rem - 0.5px);
  }

  .delivery-option__label {
    font-size: 0.92rem;
  }
}

@media (max-width: 520px) {
  .delivery-type-group {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .delivery-option {
    min-height: 62px;
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
  }

  .delivery-option:has(input:checked) {
    padding: calc(0.8rem - 0.5px) calc(0.9rem - 0.5px);
  }

  .delivery-option__label {
    font-size: 0.88rem;
  }
}

.product-page .radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.product-page .radio-group.delivery-type-group {
  display: grid;
  flex-wrap: unset;
  gap: 0.75rem;
  width: 100%;
}

.product-page .radio-group label:not(.delivery-option) {
  font-size: 0.88rem;
  color: var(--color-dark-olive);
}

.product-page .product-order-totals {
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid rgba(217, 205, 179, 0.45);
}

.product-page .order-total-row.order-total-sub {
  font-size: 0.88rem;
  color: var(--color-muted);
  padding: 0.35rem 0;
}

.product-page .order-total-row.order-total-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-dark-olive);
  border-top: none;
  margin-top: 0.25rem;
  padding-top: 0.5rem;
}

.product-page .order-total-row.order-total-value strong {
  color: var(--color-olive);
  font-size: 1.15rem;
}

.product-page .confirm-order-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 52px;
  margin-top: var(--space-3);
  padding: 0.85rem 1.25rem;
  background: var(--color-olive);
  color: var(--color-white);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.product-page .confirm-order-btn:hover {
  background: var(--color-dark-olive);
}

.product-page .confirm-order-btn svg {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .product-page .product-main {
    padding-top: calc(var(--header-offset) + 0.25rem);
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }

  .product-page .product-main .container {
    padding-left: max(0.85rem, env(safe-area-inset-left));
    padding-right: max(0.85rem, env(safe-area-inset-right));
  }

  .product-page .product-details-row {
    gap: 0.85rem;
  }

  .product-page .product-gallery-card {
    padding: 0;
    border: none;
    box-shadow: none;
    border-radius: 12px;
    margin: 0;
    width: 100%;
    max-width: none;
    overflow: hidden;
    background: transparent;
  }

  .product-page .product-img-gallery {
    aspect-ratio: 1;
    min-height: 0;
    max-height: min(52vh, 380px);
    border-radius: 14px;
    border: 1px solid rgba(217, 205, 179, 0.45);
    background: var(--color-white);
  }

  .product-page .product-img-slide img {
    max-width: calc(100% - 0.75rem);
    max-height: calc(100% - 0.75rem);
  }

  .product-page .gallery-nav {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
  }

  .product-page .gallery-dots {
    bottom: 0.5rem;
    padding: 0.35rem 0.65rem;
  }

  .product-page .product-info-card {
    padding: 0 0 0.15rem;
    border: none;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
  }

  .product-page .product-title {
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
  }

  .product-page .product-price-block .price-current {
    font-size: 1.2rem;
  }

  .product-page .product-variants-section.product-variants-mobile {
    margin-top: 0;
    padding: 0;
    border-top: none;
    background: transparent;
  }

  .product-page .product-variants-section.product-variants-mobile .product-variant-label {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
  }

  .product-page .product-color-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.38rem;
  }

  .product-page .product-color-chip {
    flex: none;
    min-width: 0;
    min-height: 40px;
    padding: 0.4rem 0.25rem;
    font-size: 0.74rem;
  }

  .product-page .product-order-box {
    padding: 1rem;
    border-radius: 14px;
    margin: 0;
    width: 100%;
  }

  .product-page .product-order-form .form-row-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .product-page .product-order-form .form-group {
    margin-bottom: 0.75rem;
  }

  .product-page .product-order-totals {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
  }

  .product-page .sticky-order-btn,
  body.has-sticky-order .sticky-order-btn {
    padding: 0.65rem max(0.85rem, env(safe-area-inset-left)) max(0.65rem, env(safe-area-inset-bottom)) max(0.85rem, env(safe-area-inset-right));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(217, 205, 179, 0.65);
    box-shadow: 0 -6px 20px rgba(49, 51, 13, 0.08);
  }

  .product-page .sticky-order-btn .confirm-order-btn {
    min-height: 48px;
    font-size: 0.95rem;
    border-radius: 12px;
  }
}

/* === Product page UX polish === */
.product-page .product-main {
  padding-bottom: var(--space-8);
}

.product-page .product-loading {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
}

.product-page .product-info-card {
  padding: clamp(1.1rem, 2.2vw, 1.45rem);
  border: 1px solid rgba(217, 205, 179, 0.55);
  border-radius: 16px;
  background: var(--color-white);
  box-shadow: 0 2px 18px rgba(49, 51, 13, 0.05);
}

.product-page .product-order-box .product-desc-box {
  display: none;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(217, 205, 179, 0.45);
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-bottom: none;
  background: transparent;
  padding-inline: 0;
  padding-bottom: 0;
}

.product-page .product-order-box .product-desc-box.has-content {
  display: block !important;
}

.product-page .product-order-box .product-desc-box .product-form-title {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.product-page .product-desc-box.hidden {
  display: none !important;
}

.product-page .product-order-box {
  background: var(--color-cream);
  border-color: rgba(217, 205, 179, 0.65);
}

.product-page .product-img-slider {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
}

.product-page .product-img-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.product-page .product-img-slide.active {
  position: absolute;
  z-index: 1;
  opacity: 1;
}

.product-page .product-img-slide img {
  width: auto;
  height: auto;
  max-width: calc(100% - 1.25rem);
  max-height: calc(100% - 1.25rem);
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto;
  padding: 0;
  background: transparent;
}

.product-page .product-gallery-inline,
.product-page .product-gallery-inline .gallery {
  width: 100%;
}

.product-page .product-img-gallery {
  min-height: 360px;
  aspect-ratio: 4 / 5;
}

@media (max-width: 640px) {
  .product-page .product-img-gallery {
    min-height: 0;
    aspect-ratio: 1;
    max-height: min(52vh, 380px);
  }
}

@media (min-width: 992px) {
  .product-page .product-details-row {
    grid-template-columns: 1.12fr 0.88fr;
    gap: clamp(1.5rem, 2.5vw, 2.25rem);
  }

  .product-page .product-img-gallery {
    min-height: 420px;
  }
}

.product-page .gallery-nav {
  display: flex !important;
}

.product-page .gallery-dots {
  display: flex !important;
}

.product-page .product-size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-page .product-size-chip {
  flex: 0 0 auto;
  min-width: 56px;
  padding-inline: 1.1rem;
}

.product-page .product-order-form .form-row-2 {
  align-items: start;
}

.product-page .product-order-form .form-row-2 .form-group {
  margin-bottom: 0;
}

.product-page .product-order-form .form-row {
  margin-bottom: var(--space-3);
}

.product-page .product-order-form .input-hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--color-muted);
}

.product-page .custom-select-trigger {
  padding-inline: 0.85rem 2.35rem;
}

.product-page .custom-select-trigger::after {
  inset-inline-end: 0.85rem;
  border-top-color: var(--color-white);
}

.product-page .product-order-totals {
  background: rgba(255, 255, 255, 0.72);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-top: var(--space-3);
  border: 1px solid rgba(217, 205, 179, 0.45);
}

.product-page .order-total-row.order-total-sub {
  border-bottom: none;
}

.product-page .confirm-order-btn {
  background: var(--color-olive) !important;
}

.product-page .confirm-order-btn:hover {
  background: var(--color-dark-olive) !important;
}

.product-page .product-heading-block .price-current {
  order: 1;
}

.product-page .product-heading-block .price-old {
  order: 2;
}

.product-page .product-price-block {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.6rem;
}

@media (max-width: 991px) {
  body.product-page > .footer {
    display: none;
  }

  .product-page .product-details-row {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    align-items: stretch;
  }

  .product-page .product-info-column {
    display: contents;
  }

  .product-page #productDetailsInfo {
    order: 1;
  }

  .product-page .product-gallery-card {
    order: 2;
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }

  .product-page #colorsSection {
    order: 3;
  }

  .product-page #productOrderPanel {
    order: 4;
  }

  .product-page #productDetailsInfo.product-info-card {
    padding: 0.85rem 1rem;
    text-align: center;
  }

  .product-page #productDetailsInfo .product-heading-block {
    text-align: center;
  }

  .product-page #productDetailsInfo .product-title {
    margin-bottom: 0.3rem;
    text-align: center;
  }

  .product-page #productDetailsInfo .product-price-block {
    justify-content: center;
  }
}

/* === Homepage mobile fixes === */
@media (max-width: 640px) {
  .header-inner {
    padding-left: max(0.5rem, env(safe-area-inset-left));
    padding-right: max(0.5rem, env(safe-area-inset-right));
  }

  .header .nav {
    padding-inline: 0.65rem;
    gap: 0.35rem;
    min-height: 56px;
    height: auto;
  }

  .header .logo {
    min-width: 0;
    max-width: calc(100vw - 132px);
  }

  .logo-primary {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
  }

  .logo-secondary {
    font-size: 0.4375rem;
    letter-spacing: 0.16em;
  }

  .nav-actions {
    gap: 0.35rem;
    flex-shrink: 0;
  }

  .pill.lang-toggle {
    min-height: 36px;
    padding: 0 0.55rem;
    font-size: 0.625rem;
  }

  .cart-icon-link {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }

  .page-home .hero {
    min-height: min(72vh, 420px) !important;
    overflow: hidden;
  }

  .page-home .hero.has-banner .hero-inner {
    min-height: min(68vh, 400px);
    padding-top: calc(var(--header-offset) + var(--space-2));
    padding-inline: max(var(--space-3), env(safe-area-inset-left));
    align-items: flex-end;
    padding-bottom: var(--space-4);
  }

  .page-home .hero-inner .container,
  .page-home .hero-inner {
    width: 100%;
    max-width: 100%;
  }

  .page-home .hero-card {
    width: 100%;
    max-width: 100%;
    padding: var(--space-4) var(--space-3);
    text-align: center;
    margin-inline: 0;
  }

  .page-home .hero-title {
    font-size: clamp(1.45rem, 7vw, 1.85rem) !important;
    line-height: 1.2;
    word-break: break-word;
  }

  .page-home .hero-subtitle {
    font-size: clamp(0.95rem, 4vw, 1.15rem) !important;
    line-height: 1.35;
  }

  .page-home .hero .btn-primary {
    width: 100%;
    max-width: 280px;
    margin-inline: auto;
    display: inline-flex;
    justify-content: center;
  }

  .page-home .section .container {
    padding-inline: max(var(--space-4), env(safe-area-inset-left));
  }

  .page-home .grid.grid-3 {
    gap: var(--space-4);
  }

  .page-home .product-card h4 {
    font-size: 0.875rem;
  }

  .page-home .product-buy-btn--home {
    min-height: 44px;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
  }

  .marquee-ticker-text {
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
    padding-inline: var(--space-4);
  }
}

@media (max-width: 380px) {
  .header .logo {
    max-width: calc(100vw - 118px);
  }

  .menu-toggle {
    width: 36px;
    height: 36px;
  }
}
