@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Noto+Naskh+Arabic:wght@500;600;700&family=Noto+Sans+Devanagari:wght@400;500;600;700&display=swap');

:root {
  --navy: #0b1f3a;
  --navy-deep: #061428;
  --navy-mid: #14335c;
  --ink: #0e1a2b;
  --muted: #5c6b7e;
  --line: rgba(11, 31, 58, 0.12);
  --paper: #f7f5f2;
  --paper-2: #efeae3;
  --white: #ffffff;
  --accent: #c4a35a;
  --accent-deep: #9a7b3c;
  --danger: #b42318;
  --ok: #0f7b4c;
  --shadow: 0 18px 50px rgba(6, 20, 40, 0.18);
  --radius: 14px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', 'Noto Sans Devanagari', system-ui, sans-serif;
  /* Homepage type scale — use site-wide */
  --fs-base: 1rem;
  --fs-xs: 0.78rem;
  --fs-sm: 0.88rem;
  --fs-md: 0.95rem;
  --fs-lg: 1.15rem;
  --fs-title: clamp(1.75rem, 5vw, 3rem);
  --fs-title-sm: clamp(1.45rem, 3.5vw, 2.15rem);
  --lh-body: 1.5;
  --max: 1200px;
  --header-h: 68px;
  --bottom-nav-h: 0px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --tap: 44px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(196, 163, 90, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(20, 51, 92, 0.10), transparent 50%),
    linear-gradient(180deg, #fbfaf8 0%, var(--paper) 40%, var(--paper-2) 100%);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
}

.site-top {
  flex: 0 0 auto;
}

.page-main,
main.page-main,
body > main {
  flex: 1 1 auto;
  width: 100%;
}

img { max-width: 100%; height: auto; display: block; }
/* Full-bleed panels / media must ignore the global img height:auto rule (iOS Safari) */
img.panel-media-img,
.panel-media .panel-media-img {
  max-width: none !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover !important;
}
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
/* Prefer tap over 300ms lag / accidental double-zoom gestures on controls */
a, button, .btn, .menu-toggle, .bottom-nav a, .panel {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  padding-inline: max(0px, var(--safe-left)) max(0px, var(--safe-right));
}

/* —— Header (Reiss-style single row) —— */
.site-header {
  position: relative;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 0;
}

.site-header > .container.header-inner,
.header-inner {
  display: grid !important;
  grid-template-columns: auto auto 1fr auto;
  grid-template-rows: 60px;
  align-items: center;
  column-gap: 1.5rem;
  row-gap: 0;
  min-height: 60px;
  height: 60px;
  overflow: visible;
}

.header-left {
  display: none !important;
}

.brand {
  grid-column: 1;
  grid-row: 1;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  height: 60px;
  align-self: center;
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  background: transparent;
  border-radius: 0;
}

.hero-logo {
  width: clamp(88px, 16vw, 140px);
  height: auto;
  margin: 0 auto 0.2rem;
  background: transparent;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: 0.12em;
  color: var(--navy);
  line-height: 1;
}

.brand-site {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--navy);
  line-height: 1.2;
  text-transform: lowercase;
}

.brand-word {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--ink);
  line-height: 1;
}

.brand-sub {
  display: none;
}

/* —— Main category mega menu —— */
.main-cats {
  grid-column: 2;
  grid-row: 1;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 0;
  height: 60px;
  min-width: 0;
  overflow: visible;
}

.cat-item {
  position: static;
  flex: 0 0 auto;
}

.cat-link {
  display: inline-flex;
  align-items: center;
  height: 60px;
  min-height: 60px;
  padding: 0 0.95rem;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.cat-item.open .cat-link,
.cat-item:hover .cat-link,
.cat-link.is-active {
  border-bottom-color: #111;
}

.mega-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 60;
  background: rgba(255,255,255,0.98);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 48px rgba(6, 20, 40, 0.12);
  padding: 1.5rem 0 1.75rem;
}

.mega-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.25rem 1.75rem;
}

.mega-inner[data-cols="3"] {
  grid-template-columns: 1.35fr 0.9fr 1fr;
  max-width: 920px;
  margin-inline: 0 auto 0 0;
  padding-inline-start: clamp(1rem, 4vw, 2.5rem);
}

.mega-inner[data-cols="3"] .mega-col:first-child {
  padding-inline-end: 1rem;
}

.mega-inner[data-cols="4"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1100px;
  gap: 1.5rem 2rem;
}

.mega-col--stacked {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

.mega-group .mega-col-title {
  margin-top: 0;
}

.mega-col-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111;
}

.mega-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.42rem;
}

.mega-col a {
  display: block;
  font-size: 0.9rem;
  color: #333;
  line-height: 1.35;
  padding: 0.12rem 0;
}

.mega-col a:hover {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.mobile-cats { display: grid; gap: 0.45rem; }
.mobile-cat-block {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  overflow: hidden;
}
.mobile-cat-block summary {
  min-height: var(--tap);
  padding: 0.75rem 0.9rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.mobile-cat-block summary::-webkit-details-marker { display: none; }
.mobile-cat-body {
  display: grid;
  gap: 0.85rem;
  padding: 0 0.9rem 0.9rem;
}
.mobile-cat-group {
  display: grid;
  gap: 0.3rem;
}
.mobile-cat-group strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--navy);
  margin-top: 0.25rem;
}
.mobile-cat-group a {
  font-size: 0.88rem;
  color: var(--muted);
  padding: 0.25rem 0;
}

.nav-actions {
  grid-column: 4;
  grid-row: 1;
  display: flex !important;
  flex-wrap: nowrap !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.15rem;
  height: 60px;
  margin: 0;
}

.util-search {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 40px;
  padding: 0 0.55rem 0 0.35rem;
  color: #111;
  text-decoration: none;
  white-space: nowrap;
  flex: 0 0 auto;
}

.util-search:hover {
  color: var(--navy-mid);
}

.util-search-text {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.util-link,
.util-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
  min-height: 40px;
  min-width: 40px;
  padding: 0;
  color: #111;
  text-decoration: none;
  position: relative;
  flex: 0 0 auto;
}

.util-link:hover,
.util-icon:hover {
  color: var(--navy-mid);
}

.util-label {
  display: none;
}

.util-svg {
  display: block;
  flex-shrink: 0;
}

.util-bag .badge {
  position: absolute;
  top: 2px;
  inset-inline-end: 0;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1rem;
  text-align: center;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--white);
  flex-shrink: 0;
}

.lang-switch button {
  border: 0;
  background: transparent;
  min-height: var(--tap);
  min-width: 2.4rem;
  padding: 0 0.65rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.lang-switch button.active {
  background: var(--navy);
  color: var(--white);
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: var(--tap);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

.icon-link .badge {
  min-width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: var(--tap);
  height: var(--tap);
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--white);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.98);
  padding: 0.85rem 1rem 1rem;
}

.mobile-drawer.open { display: block; }

.mobile-drawer-links {
  display: grid;
  gap: 0.45rem;
}

.mobile-drawer-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--tap);
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-weight: 600;
  color: var(--navy);
}

.drawer-langs {
  margin-top: 0.75rem;
  display: flex;
  justify-content: center;
}

/* Bottom nav — phones (same on every page) */
.bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: #fff;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.35rem 0.5rem calc(0.35rem + var(--safe-bottom));
  grid-template-columns: repeat(4, 1fr);
  gap: 0.15rem;
  box-shadow: 0 -4px 20px rgba(6, 20, 40, 0.06);
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 52px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--muted);
  position: relative;
}

.bottom-nav a.is-active {
  color: var(--navy);
  background: rgba(11, 31, 58, 0.06);
}

.bottom-nav a .nav-ico {
  font-size: 1.15rem;
  line-height: 1;
  color: inherit;
}

.bottom-nav a .badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 22px);
  min-width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 0.65rem;
  display: inline-grid;
  place-items: center;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  min-height: var(--tap);
  padding: 0.85rem 1.35rem;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  touch-action: manipulation;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--navy-mid), var(--navy));
  color: #fff;
  box-shadow: 0 10px 24px rgba(11, 31, 58, 0.28);
}
.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: var(--navy-deep);
}
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.45);
  color: #fff;
}
.btn-outline {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--navy);
}
.btn-block { width: 100%; }

/* —— Home split —— */
.home-shell { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

.hero-video {
  position: relative;
  width: 100%;
  min-height: min(78vh, 860px);
  max-height: 92vh;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(20, 51, 92, 0.55) 0%, transparent 70%),
    #061020;
}

.hero-video-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* Faint mesh/glow so stage feels alive around the monogram */
.hero-video-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 42% at 50% 48%, rgba(196, 163, 90, 0.08) 0%, transparent 68%),
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(30, 70, 120, 0.25) 0%, transparent 72%);
}

/* removed second ambient video stream (bandwidth) */
.hero-video-ambient { display: none; }

/* Main campaign: video plays inside letterforms MA */
.hero-video-el {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  min-height: min(78vh, 860px);
  object-fit: cover;
  object-position: center center;
  /* Mask = MA monogram — video only visible inside the letters */
  -webkit-mask-image: url('../assets/brand/ma-video-mask.svg');
  mask-image: url('../assets/brand/ma-video-mask.svg');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center 48%;
  mask-position: center 48%;
  /* Larger monogram → more video visible inside MA */
  -webkit-mask-size: min(132vw, 1680px) auto;
  mask-size: min(132vw, 1680px) auto;
  -webkit-mask-mode: alpha;
  mask-mode: alpha;
  animation: heroMaReveal 1.35s cubic-bezier(0.22, 1, 0.36, 1) both;
  will-change: transform, opacity, filter;
}

/* Thin glass rim / brand outline aligned with mask */
.hero-ma-outline {
  position: absolute;
  z-index: 2;
  margin: 0;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -52%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(8rem, 42vw, 30rem);
  letter-spacing: -0.05em;
  line-height: 0.78;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.22);
  text-stroke: 1px rgba(255, 255, 255, 0.22);
  pointer-events: none;
  user-select: none;
  mix-blend-mode: soft-light;
  opacity: 0.85;
  animation: heroMaOutline 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

@keyframes heroMaReveal {
  0% {
    opacity: 0;
    transform: scale(1.06);
    filter: blur(10px) brightness(0.7);
  }
  55% {
    opacity: 1;
    filter: blur(0) brightness(1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: none;
  }
}

@keyframes heroMaOutline {
  0% { opacity: 0; letter-spacing: 0.12em; }
  100% { opacity: 0.9; letter-spacing: -0.04em; }
}

/* Reduced motion: still show masked video without flourish */
@media (prefers-reduced-motion: reduce) {
  .hero-video-el,
  .hero-ma-outline {
    animation: none;
  }
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.85rem;
  padding: clamp(1.25rem, 4vw, 2.75rem);
  background: linear-gradient(transparent 42%, rgba(6, 12, 22, 0.72) 100%);
  pointer-events: none;
}

.hero-video-kicker {
  margin: 0;
  color: #fff;
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2.8vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.hero-video-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  pointer-events: auto;
}

.hero-video-link {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.hero-video-link:hover {
  opacity: 0.85;
}

.home-hero {
  flex: 1;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: auto;
  margin-top: 2.5rem;
}

.hero-brand-bar {
  text-align: center;
  padding: 1.25rem 1rem 0.75rem;
  animation: fadeUp .8s ease both;
}

.hero-wordmark {
  margin: 0 0 0.35rem;
}

.hero-wordmark .brand-word {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  letter-spacing: 0.28em;
}

.hero-site {
  font-size: clamp(1.05rem, 2.8vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--navy);
  margin: 0.15rem 0 0.25rem;
}

.hero-brand-bar .brand-mark {
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  letter-spacing: 0.14em;
}

.hero-tagline {
  margin: 0.35rem auto 0;
  color: var(--muted);
  font-size: clamp(0.92rem, 2.4vw, 1.1rem);
  max-width: 36rem;
  padding-inline: 0.5rem;
}

.split-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: min(78vh, 820px);
  /* Refined runway gaps — thin luminous seams between collections */
  gap: 3px;
  padding: 0;
  background:
    linear-gradient(
      90deg,
      #0a1628 0%,
      #1a2f4a 50%,
      #0a1628 100%
    );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.panel {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  isolation: isolate;
  animation: fadeUp .9s ease both;
}

.panel:nth-child(2) { animation-delay: .08s; }
.panel:nth-child(3) { animation-delay: .16s; }

/* Smart edge lines — glass highlight at shared borders */
.panel + .panel::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 10%;
  width: 1px;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.55) 28%,
    rgba(232, 220, 190, 0.75) 50%,
    rgba(255, 255, 255, 0.55) 72%,
    rgba(255, 255, 255, 0) 100%
  );
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.18);
}

.panel-media {
  position: absolute !important;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-color: #1a2433;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* no transform here — iOS Safari often blank-paints scaled absolute layers */
}

/* Direct <img> — primary image layer for mobile reliability */
.panel-media-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100%;
  min-height: 100%;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center;
  display: block !important;
  pointer-events: none;
  border: 0;
  z-index: 0;
  /* iOS: avoid image flicker / half-paint with transforms on parents */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.panel-men .panel-media-img { object-position: center 12%; }
.panel-kids .panel-media-img { object-position: center 20%; }

.panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,20,40,0.15) 0%, rgba(6,20,40,0.72) 100%);
  z-index: 1;
  pointer-events: none;
}

@media (hover: hover) and (min-width: 900px) {
  .panel-media { transition: transform 1.1s ease; }
  .panel:hover .panel-media { transform: scale(1.06); }
}

.panel-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 1.5rem;
  color: #fff;
}

.panel-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 0.4rem;
}

.panel-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin: 0 0 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Root-absolute + relative paths (live CSS is served from /css/) */
.panel-men .panel-media {
  background-image: url('/assets/categories/men.jpg?v=4'), url('../assets/categories/men.jpg?v=4');
  background-color: #1a1f2a;
  background-position: center 12%;
}
.panel-women .panel-media {
  background-image: url('/assets/categories/women.jpg?v=4'), url('../assets/categories/women.jpg?v=4');
  background-color: #4a3048;
  background-position: center center;
}
.panel-kids .panel-media {
  background-image: url('/assets/categories/children.jpg?v=4'), url('../assets/categories/children.jpg?v=4');
  background-color: #c8c6c2;
  background-position: center 20%;
}

/* Stores + App promo (below category panels) */
.promo-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 2.5rem;
  min-height: min(72vh, 720px);
  background: #fff;
}

.promo-duo-stores {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 420px;
  padding: 1.5rem 1.35rem;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  background: #101820;
}

/* Side-by-side: map (location) + facade (warehouse face) */
.promo-duo-stores-media {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  z-index: 0;
}

.promo-duo-stores-map,
.promo-duo-stores-facade {
  position: relative;
  min-height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  transition: transform 0.9s ease;
}

.promo-duo-stores-map {
  background-image: url('../assets/home/store-map-green.jpg?v=split20');
  background-position: 55% 48%;
  border-inline-end: 2px solid rgba(255, 255, 255, 0.35);
}

.promo-duo-stores-facade {
  background-image: url('../assets/home/store-facade.jpg?v=split20');
  background-position: center 35%;
}

.promo-duo-stores:hover .promo-duo-stores-map,
.promo-duo-stores:hover .promo-duo-stores-facade {
  transform: scale(1.035);
}

.promo-duo-stores::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(6, 16, 28, 0.05) 15%, rgba(6, 16, 28, 0.7) 100%);
  pointer-events: none;
}

.promo-duo-stores:hover {
  filter: none;
}

.promo-duo-stores-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  max-width: min(100%, 28rem);
}

.promo-duo-stores .promo-duo-label {
  margin: 0;
}

.promo-store-city {
  margin: 0.15rem 0 0;
  font-family: var(--font-body);
  font-size: clamp(0.92rem, 1.8vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.promo-store-how {
  margin: 0.1rem 0 0;
  font-size: clamp(0.82rem, 1.6vw, 0.95rem);
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
  max-width: 26rem;
}

.promo-store-addr {
  margin: 0.15rem 0 0;
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 2vw, 1.12rem);
  font-weight: 500;
  line-height: 1.45;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.promo-store-cta {
  margin-top: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  color: #fff;
}

.promo-duo-label {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.promo-duo-app {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 420px;
  padding: 1.75rem 1.25rem 3.25rem;
  background: #eceae6;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.promo-duo-app:hover {
  filter: brightness(0.99);
}

.promo-duo-app-inner {
  width: min(100%, 340px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.promo-qr {
  width: 132px;
  height: 132px;
  object-fit: contain;
  background: #fff;
  padding: 0.5rem;
  margin-bottom: 1rem;
}

.promo-app-title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 700;
  color: #111;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.promo-app-note,
.promo-app-scan {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #222;
  max-width: 28rem;
}

.promo-phone {
  margin-top: auto;
  width: min(52%, 180px);
  aspect-ratio: 9 / 17;
  border: 3px solid #111;
  border-radius: 22px;
  background: #111;
  padding: 8px 7px 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.promo-phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #1a1a1a;
}

.promo-phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.15);
}

.promo-phone-brand {
  position: absolute;
  top: 0.55rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.promo-duo-app .promo-duo-label-dark {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.15rem;
  text-align: center;
  margin: 0;
  color: #111;
  text-shadow: none;
  mix-blend-mode: normal;
  pointer-events: none;
}

@media (max-width: 860px) {
  .promo-duo {
    grid-template-columns: 1fr;
    margin-top: 1.75rem;
    min-height: 0;
  }
  .promo-duo-stores,
  .promo-duo-app {
    min-height: 380px;
  }
  .promo-phone {
    width: min(42%, 150px);
  }
}

.company-strip {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(247,245,242,0.9));
  padding: 1.35rem 1.15rem 1.25rem;
  text-align: center;
}

.company-legal-en {
  margin: 0 auto !important;
  max-width: 34rem;
  font-family: var(--font-display);
  font-size: clamp(0.98rem, 2.2vw, 1.15rem) !important;
  font-weight: 600;
  color: var(--navy) !important;
  letter-spacing: 0.03em;
  line-height: 1.4;
}

.company-meta {
  margin-top: 0.7rem !important;
  font-size: 0.82rem;
  color: var(--muted);
}

.company-meta a,
.footer-mail {
  color: var(--navy);
  font-weight: 600;
}

.company-meta a:hover,
.footer-mail:hover {
  text-decoration: underline;
}

.footer-legal-ar {
  font-family: 'Noto Naskh Arabic', 'Segoe UI', Tahoma, Arial, sans-serif;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.15rem;
  direction: rtl;
}

/* —— Page chrome —— */
.page-main {
  padding: 2rem 0 4rem;
}

/* Department bar under title area */
.dept-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}
.dept-bar a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
}
.dept-bar a.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.shop-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.shop-layout.no-sidebar {
  grid-template-columns: 1fr;
}
.shop-layout.no-sidebar .section-sidebar { display: none; }

.section-sidebar {
  position: sticky;
  top: calc(var(--header-h) + var(--safe-top) + 0.75rem);
  max-height: calc(100dvh - var(--header-h) - 2rem);
  overflow: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 0.95rem 1.15rem;
  -webkit-overflow-scrolling: touch;
}
.section-all {
  display: block;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}
.section-all.active { color: var(--accent-deep); }
.section-group { margin-bottom: 1rem; }
.section-group h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--navy);
}
.section-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.2rem;
}
.section-group a {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: var(--muted);
  padding: 0.28rem 0.35rem;
  border-radius: 8px;
}
.section-group a:hover,
.section-group a.active {
  background: rgba(11, 31, 58, 0.06);
  color: var(--navy);
}
.section-group a.active { font-weight: 600; }
.sec-count {
  font-size: 0.72rem;
  color: var(--muted);
  opacity: 0.85;
}

.section-chips {
  display: none;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-bottom: 0.35rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.section-chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 0.82rem;
  color: var(--navy);
  white-space: nowrap;
}
.chip.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.section-note {
  grid-column: 1 / -1;
  margin: 0 0 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: #eef3ff;
  color: var(--navy);
  font-size: 0.9rem;
}
.shop-products .product-grid { margin-top: 0.25rem; }

.page-title {
  font-family: var(--font-display);
  font-size: var(--fs-title);
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--navy);
  word-wrap: break-word;
  line-height: 1.15;
}
.page-lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
}

.toolbar {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, minmax(140px, 0.7fr)) auto;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field label { font-size: 0.82rem; color: var(--muted); font-weight: 500; }

.field input,
.field select,
.field textarea,
.search-input,
.filter-select {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  background: var(--white);
  color: var(--ink);
  min-width: 0;
  width: 100%;
  min-height: var(--tap);
  font-size: 16px; /* prevents iOS input zoom */
}

.search-input { flex: 1; }

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

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  min-width: 0;
}

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

.product-card .thumb {
  aspect-ratio: 3/4;
  background: #dfe5ee center/cover no-repeat;
  position: relative;
}

.product-card .body { padding: 0.9rem 1rem 1.1rem; }
.product-card h3 {
  margin: 0 0 0.25rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--navy);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card .price {
  font-weight: 700;
  color: var(--navy-mid);
}
.product-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.stars { color: var(--accent-deep); letter-spacing: 0.05em; }

/* —— Product detail —— */
.product-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: start;
}

.gallery-main {
  aspect-ratio: 3/4;
  width: 100%;
  border-radius: 18px;
  background: #d7dee8 center/cover no-repeat;
  border: 1px solid var(--line);
  overflow: hidden;
}

.gallery-thumbs {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.15rem;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }

.gallery-thumbs button {
  width: 72px;
  height: 96px;
  flex: 0 0 auto;
  border-radius: 10px;
  border: 2px solid transparent;
  background: #d7dee8 center/cover no-repeat;
  padding: 0;
  min-height: 96px;
}

.gallery-thumbs button.active { border-color: var(--navy); }

.variant-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
}

.swatch, .size-chip {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  min-height: var(--tap);
  min-width: var(--tap);
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.size-chip.active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.swatch {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 999px;
  border: 2px solid rgba(11, 31, 58, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
  position: relative;
  flex-shrink: 0;
}

.swatch.is-light {
  border-color: rgba(11, 31, 58, 0.35);
}

.swatch.active {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-color: var(--navy);
}

.swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.5rem 0 0.35rem;
}

.color-name-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
}

.color-name-chip {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  min-height: 36px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  color: var(--ink);
}

.color-name-chip.active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.gallery-main {
  transition: background-image 0.2s ease;
}

.desc-block, .reviews-block {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.review {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.review:last-child { border-bottom: 0; }
.review strong { color: var(--navy); }

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  position: sticky;
  bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 0.5rem);
  z-index: 5;
  padding: 0.5rem 0;
  background: linear-gradient(180deg, transparent, var(--paper) 30%);
}

.product-actions .btn { flex: 1; min-width: 160px; }

/* —— Cart / forms —— */
.cart-table, .account-panel, .auth-card, .checkout-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem;
}

.cart-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.cart-row:last-child { border-bottom: 0; }
.cart-thumb {
  width: 72px; height: 90px; border-radius: 10px;
  background: #d7dee8 center/cover no-repeat;
  flex-shrink: 0;
}

.cart-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.45rem;
}

.cart-controls input[type="number"] {
  width: 4.25rem;
  min-height: var(--tap);
  font-size: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.35rem 0.5rem;
}

.totals {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  gap: 1rem;
}

.cart-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.cart-actions .btn { flex: 1; min-width: 140px; }

.form-grid {
  display: grid;
  gap: 0.9rem;
}

.form-grid.two { grid-template-columns: 1fr 1fr; }

.auth-wrap {
  max-width: 440px;
  margin: 2rem auto;
  width: min(100% - 2rem, 440px);
}

.alert {
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: #eef3ff;
  color: var(--navy);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.alert.error { background: #fdeceb; color: var(--danger); }
.alert.ok { background: #e8f7ef; color: var(--ok); }

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.footer-brand .brand-logo { width: 42px; }
.footer-brand .brand-word {
  font-size: 0.85rem;
  letter-spacing: 0.16em;
}

.site-footer {
  flex: 0 0 auto;
  width: 100%;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 2.25rem 0 calc(2rem + var(--bottom-nav-h) + var(--safe-bottom));
  color: var(--muted);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  background: #fff;
}

.footer-address {
  margin: 0.65rem 0 0.5rem;
  line-height: 1.45;
  color: var(--ink);
  max-width: 22rem;
}

.footer-address strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.footer-maps {
  display: inline-block;
  margin-top: 0.35rem;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  font-weight: 600;
}

.contact-map-wrap {
  margin-top: 1.25rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
  aspect-ratio: 16 / 10;
  max-height: 320px;
}

.contact-map {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  border: 0;
}

.company-address {
  margin-top: 0.35rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, minmax(0, 1fr));
  gap: 2rem 1.35rem;
  align-items: start;
  padding-bottom: 1.5rem;
}

@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .footer-brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand-col {
    grid-column: 1 / -1;
  }
}

.footer-heading {
  margin: 0 0 0.85rem;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-list a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: var(--ink);
  font-size: 0.92rem;
}

.footer-list a:hover {
  color: var(--navy-mid);
}

.footer-brand-col {
  display: grid;
  gap: 0.35rem;
}

.footer-meta {
  border-top: 1px solid var(--line);
  padding: 2.25rem 0 0.5rem;
  text-align: center;
}

.footer-meta-block {
  margin-bottom: 1.75rem;
}

.footer-meta-pay {
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.footer-meta-title {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
  text-transform: none;
}

.footer-social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
  justify-content: center;
  align-items: center;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--ink);
}

.footer-social-link:hover {
  color: var(--navy-mid);
}

.footer-pay {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  align-items: center;
}

.pay-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 34px;
  padding: 0 0.45rem;
  border-radius: 4px;
  border: 1px solid rgba(11, 31, 58, 0.12);
  background: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #1a1f71;
  box-sizing: border-box;
}

.pay-mc .pay-mc-circles,
.pay-maestro .pay-mc-circles {
  position: relative;
  width: 28px;
  height: 18px;
}

.pay-mc-circles::before,
.pay-mc-circles::after {
  content: "";
  position: absolute;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.pay-mc-circles::before {
  left: 0;
  background: #eb001b;
}

.pay-mc-circles::after {
  right: 0;
  background: #f79e1b;
  opacity: 0.92;
}

.pay-mc-circles.maestro::before {
  background: #eb001b;
}

.pay-mc-circles.maestro::after {
  background: #0099df;
}

.pay-amex {
  background: #2e77bc;
  border-color: #2e77bc;
  color: #fff;
  font-size: 0.62rem;
}

.pay-apple {
  color: #111;
  min-width: 58px;
}

.pay-paypal {
  color: #003087;
  font-size: 0.78rem;
  letter-spacing: 0;
  font-weight: 700;
  text-transform: none;
}

.pay-paypal .pay-pal {
  color: #009cde;
}

.pay-gpay {
  min-width: 58px;
  border-radius: 999px;
  color: #3c4043;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.72rem;
}

.footer-mobile-wrap {
  margin: 1.5rem 0 1rem;
}

.footer-mobile-link {
  border: 0;
  background: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.footer-mobile-link:hover {
  color: var(--navy-mid);
}

.footer-copy {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html.force-mobile body {
  max-width: 430px;
  margin-inline: auto;
  box-shadow: 0 0 0 1px var(--line);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  font-size: 0.82rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.footer-links a {
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.35rem;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1100px) {
  .util-label { display: none; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .toolbar {
    grid-template-columns: 1fr 1fr;
  }
  .toolbar #count { grid-column: 1 / -1; }
  .mega-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .brand-sub { display: none; }
  .cat-link { padding: 0 0.75rem; font-size: 0.82rem; }
}

/* —— Tablets —— */
@media (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
  .product-layout { grid-template-columns: 1fr; gap: 1.25rem; }
  .form-grid.two { grid-template-columns: 1fr; }
  .split-panels {
    grid-template-columns: repeat(3, 1fr);
    min-height: min(58vh, 620px);
  }
  .panel { min-height: 360px; }
  .panel-content { padding: 1.35rem 1rem; }
  .brand-sub { max-width: 160px; }
}

/* —— Large phones / small tablets (iPhone, Android) —— */
@media (max-width: 860px) {
  /* Core nav height WITHOUT home-indicator; body adds safe-area once */
  :root {
    --bottom-nav-core: 58px;
    --bottom-nav-h: 58px;
    --fs-base: 1rem;
    --fs-xs: 0.8125rem;   /* ≥13px — readable on Retina */
    --fs-sm: 0.9rem;
    --fs-md: 0.98rem;
    --header-h: 56px;
  }

  body {
    /* bottom nav + home indicator (avoid double-counting safe area elsewhere) */
    padding-bottom: calc(var(--bottom-nav-core) + var(--safe-bottom));
    font-size: max(16px, var(--fs-base));
  }

  .nav-desktop { display: none; }
  .util-search-text { display: none; }
  .menu-toggle { display: inline-flex; }
  .bottom-nav { display: grid; }
  .main-cats { display: none !important; }
  .site-header > .container.header-inner,
  .header-inner {
    grid-template-columns: 1fr auto !important;
    height: 56px;
    min-height: 56px;
    padding-inline: max(0.25rem, var(--safe-left)) max(0.25rem, var(--safe-right));
  }
  .brand { grid-column: 1; }
  .nav-actions { grid-column: 2; }
  .mega-panel { display: none !important; }
  .shop-layout { grid-template-columns: 1fr; }
  .section-sidebar { display: none; }
  .section-chips { display: flex; }

  .brand-sub { display: none; }
  .brand-logo { width: 46px; height: 46px; }
  .brand .brand-mark { font-size: 1.25rem; }

  .split-panels {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 3px;
  }
  /* Horizontal glow seams when stacked */
  .panel + .panel::before {
    left: 12%;
    right: 12%;
    top: 0;
    bottom: auto;
    width: auto;
    height: 1px;
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.55) 30%,
      rgba(232, 220, 190, 0.8) 50%,
      rgba(255, 255, 255, 0.55) 70%,
      rgba(255, 255, 255, 0) 100%
    );
  }
  .panel {
    /* Stable on iPhone SE → Pro Max; never collapse image layer */
    min-height: 320px;
    min-height: min(44vh, 400px);
    min-height: min(44dvh, 400px);
  }
  .panel-media,
  .panel:hover .panel-media {
    transform: none !important;
  }
  .panel-content {
    padding: 1.5rem 1.15rem max(1.5rem, env(safe-area-inset-bottom, 0px));
  }
  .panel-kicker {
    font-size: 0.8125rem;
    letter-spacing: 0.18em;
  }
  .panel-title {
    font-size: clamp(1.85rem, 8.5vw, 2.65rem);
    line-height: 1.1;
  }
  .home-hero {
    min-height: auto;
  }
  .hero-video,
  .hero-video-el {
    min-height: min(58vh, 520px);
    min-height: min(58dvh, 520px);
  }
  .hero-video-el {
    -webkit-mask-size: min(150vw, 980px) auto;
    mask-size: min(150vw, 980px) auto;
    -webkit-mask-position: center 46%;
    mask-position: center 46%;
  }
  .hero-ma-outline {
    font-size: clamp(5.5rem, 42vw, 12rem);
    top: 46%;
  }
  .hero-brand-bar { padding: 0.9rem 0.85rem 0.55rem; }
  .hero-video-link {
    min-height: 44px;
    font-size: 0.9rem;
  }

  .page-main { padding: 1.15rem 0 2.25rem; }
  .container { width: min(100% - 1.15rem, var(--max)); }

  .toolbar {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .page-title {
    font-size: clamp(1.55rem, 6.5vw, 2.15rem);
    line-height: 1.2;
  }
  .page-lead {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .company-legal-en { font-size: 1rem !important; line-height: 1.35 !important; }
  .company-meta { font-size: 0.85rem !important; line-height: 1.45 !important; }

  .cart-row {
    grid-template-columns: 72px 1fr;
    align-items: start;
    gap: 0.75rem;
  }
  .cart-row > div:last-child {
    grid-column: 2;
    justify-self: start;
  }
  .cart-thumb { width: 72px; height: 90px; }

  .auth-wrap { margin: 1rem auto 2rem; }
  .cart-table, .account-panel, .auth-card, .checkout-card,
  .cart-summary-card, .checkout-summary-card {
    padding: 1rem;
    border-radius: 14px;
  }

  .footer-inner { flex-direction: column; gap: 0.75rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  .promo-duo-stores,
  .promo-duo-app {
    min-height: 360px;
  }
  .promo-store-city { font-size: 0.9rem; }
  .promo-store-how { font-size: 0.85rem; }
  .promo-store-addr { font-size: 0.92rem; word-break: break-word; }
  .promo-app-title { font-size: 1.1rem; }
  .promo-app-note,
  .promo-app-scan { font-size: 0.9rem; }

  .bottom-nav {
    padding: 0.3rem 0.4rem calc(0.3rem + var(--safe-bottom));
  }
  .bottom-nav a {
    min-height: 48px;
    font-size: 0.75rem;
    gap: 0.12rem;
  }
  .bottom-nav a .nav-ico { font-size: 1.2rem; }

  /* Readable product cards */
  .product-card h3 { font-size: 0.95rem; }
  .product-card .meta { font-size: 0.8rem; }
  .product-card .price { font-size: 0.98rem; }
}

/* —— Phones (iPhone width class) —— */
@media (max-width: 480px) {
  .product-grid { gap: 0.7rem 0.6rem; }
  .product-card .body { padding: 0.75rem 0.7rem 0.9rem; }

  .panel {
    min-height: 300px;
    min-height: min(46vh, 380px);
    min-height: min(46dvh, 380px);
  }
  .panel-title { font-size: clamp(1.85rem, 9vw, 2.5rem); margin-bottom: 0.65rem; }
  .panel-content .btn {
    min-height: 44px;
    padding: 0.7rem 1.15rem;
    font-size: 0.92rem;
  }

  .gallery-main { border-radius: 14px; }
  .gallery-thumbs button { width: 64px; height: 84px; min-height: 84px; }

  .lang-switch button {
    min-width: 2.35rem;
    min-height: 40px;
    padding: 0 0.5rem;
    font-size: 0.8rem;
  }

  .util-icon {
    min-width: 40px;
    min-height: 40px;
  }

  .field label { font-size: 0.85rem; }

  .company-strip { padding: 1.2rem 0.95rem 1.15rem; }
}

/* —— iPhone SE / very small —— */
@media (max-width: 390px) {
  .brand .brand-mark { font-size: 1.15rem; }
  .brand-logo { width: 40px; height: 40px; }
  .bottom-nav a { font-size: 0.72rem; }
  .product-card h3 { font-size: 0.9rem; }
  .panel {
    min-height: 290px;
    min-height: min(48vh, 340px);
    min-height: min(48dvh, 340px);
  }
  .hero-video,
  .hero-video-el {
    min-height: min(52vh, 420px);
    min-height: min(52dvh, 420px);
  }
  .promo-duo-stores,
  .promo-duo-app { min-height: 320px; }
}

/* —— Landscape phones —— */
@media (max-height: 500px) and (orientation: landscape) {
  .panel { min-height: 85vh; min-height: 85dvh; }
  .split-panels { grid-template-columns: repeat(3, 1fr); gap: 2px; }
  .hero-brand-bar { padding: 0.5rem 0.75rem; }
  .hero-brand-bar .brand-mark { font-size: 1.8rem; }
  .hero-tagline { font-size: 0.85rem; }
  .bottom-nav a { min-height: 42px; }
}

.cart-page { max-width: 1040px; }

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 1.25rem;
  align-items: start;
}

.cart-banner {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
}

.cart-banner-ok {
  background: #e8f7ef;
  color: var(--ok, #1a6b3c);
  border: 1px solid rgba(26, 107, 60, 0.2);
}

.cart-banner a {
  font-weight: 700;
  margin-inline-start: 0.35rem;
  text-decoration: underline;
}

.cart-summary-card,
.checkout-summary-card,
.checkout-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem;
}

.cart-summary-title,
.checkout-section-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
}

.cart-ship-note {
  margin: 0.65rem 0 1rem;
  font-size: 0.85rem;
  color: var(--muted, #5c6570);
  line-height: 1.45;
}

.btn-checkout-main {
  width: 100%;
  min-height: 48px;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.88rem;
  margin-bottom: 0.65rem;
}

.cart-trust {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  font-size: 0.8rem;
  color: var(--muted, #5c6570);
}

.cart-trust li {
  padding: 0.35rem 0;
  border-top: 1px solid var(--line);
}

.cart-trust li:first-child { border-top: 0; }

.cart-sticky-bar {
  display: none;
}

.checkout-wrap { max-width: 1080px; }

.checkout-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted, #5c6570);
}

.checkout-step.is-active {
  color: var(--navy);
  font-weight: 700;
}

.checkout-step.is-done a {
  color: var(--navy-mid, #2a4060);
  text-decoration: none;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 340px);
  gap: 1.25rem;
  align-items: start;
}

.checkout-line {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.checkout-line-thumb {
  width: 56px;
  height: 70px;
  border-radius: 8px;
  background: #d7dee8 center/cover no-repeat;
}

.checkout-line-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  font-size: 0.88rem;
}

.checkout-line-meta span {
  color: var(--muted, #5c6570);
  font-size: 0.78rem;
}

.checkout-line-price {
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}

.checkout-lock {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted, #5c6570);
}

.checkout-edit-bag {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.checkout-ship-note { margin-top: 0.25rem !important; }

@media (max-width: 800px) {
  .cart-layout,
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    order: -1;
  }

  /* Float above bottom nav + home indicator (iPhone) */
  .cart-sticky-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--bottom-nav-core, 58px) + var(--safe-bottom));
    z-index: 55;
    padding: 0.75rem max(1rem, var(--safe-left)) 0.75rem max(1rem, var(--safe-right));
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(11, 31, 58, 0.1);
    font-weight: 700;
    font-size: 1rem;
    color: var(--navy);
  }

  .cart-sticky-bar .btn {
    min-width: 140px;
    min-height: 46px;
    font-size: 0.9rem;
  }

  .cart-summary-card .btn-checkout-main {
    display: none;
  }

  /* Room for sticky checkout bar + bottom nav */
  body:has(.cart-sticky-bar) {
    padding-bottom: calc(var(--bottom-nav-core, 58px) + var(--safe-bottom) + 72px);
  }

  body.checkout-page .page-main {
    padding-bottom: 2.5rem;
  }

  .form-grid.two {
    grid-template-columns: 1fr;
  }

  .checkout-steps {
    font-size: 0.72rem;
    gap: 0.4rem 0.75rem;
  }

  .btn-checkout-main {
    min-height: 50px;
    font-size: 0.92rem;
  }

  .totals {
    font-size: 1.05rem;
  }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
