:root {
  --storefront-nav-height: 72px;
  --storefront-ink: #070d18;
  --storefront-accent: #76e8ff;
  --storefront-gutter: clamp(24px, 5vw, 80px);
}

html { scroll-padding-top: var(--storefront-nav-height); }

#navbar {
  position: sticky;
  top: 0;
  height: var(--storefront-nav-height);
}

body::before { height: 3px; background: linear-gradient(90deg, #7c55ff, var(--storefront-accent), #4bf0ad); }
#navbar::before { display: none; }
#navbar .nav-links a::after { background: var(--storefront-accent); }
#navbar .hamburger { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }

.storefront-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.storefront-hero {
  --slide-duration: 6500ms;
  display: grid;
  grid-template-rows: 1fr auto;
  position: relative;
  isolation: isolate;
  min-height: clamp(580px, calc(91svh - var(--storefront-nav-height)), 790px);
  padding: 0;
  overflow: hidden;
  background: var(--storefront-ink);
  color: #f6fbff;
}

.storefront-slides {
  grid-area: 1 / 1 / span 2;
  display: grid;
  min-width: 0;
  touch-action: pan-y pinch-zoom;
}

.storefront-slide {
  --slide-accent: var(--storefront-accent);
  grid-area: 1 / 1;
  display: grid;
  align-items: center;
  position: relative;
  isolation: isolate;
  min-width: 0;
  padding: 42px 0 108px;
  overflow: hidden;
  background: var(--storefront-ink);
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease, visibility 0s .6s;
}

.storefront-slide[data-theme="business"] { --slide-accent: #a0c2ff; }
.storefront-slide[data-theme="arrivages"] { --slide-accent: #8df1c1; }

.storefront-slide.is-current {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transition: opacity .6s ease;
}

.storefront-photo {
  position: absolute;
  inset: 0 0 0 43%;
  z-index: -2;
  overflow: hidden;
  background: #101a2e;
}

.storefront-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 45%;
  transform-origin: 65% 50%;
}

.storefront-slide[data-theme="business"] img { object-position: 62% 49%; }
.storefront-slide[data-theme="arrivages"] img { object-position: 59% 47%; }
.storefront-slide.is-current img { animation: storefront-zoom 8s ease-out both; }

.storefront-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, var(--storefront-ink), rgba(7,13,24,.16) 24%, transparent 52%),
    linear-gradient(90deg, var(--storefront-ink) 30%, rgba(7,13,24,.98) 43%, rgba(7,13,24,.61) 54%, rgba(7,13,24,.07) 78%);
}

.storefront-frame,
.storefront-controls {
  width: min(100%, 1600px);
  margin: 0 auto;
  padding-inline: var(--storefront-gutter);
}

.storefront-copy { max-width: 650px; }
.storefront-slide.is-current .storefront-copy { animation: storefront-copy-in .55s ease-out both; }

.storefront-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--slide-accent);
  font-size: .93rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.storefront-kicker::before { content: ''; width: 24px; height: 2px; background: currentColor; }

.storefront-copy h2 {
  margin: 0 0 22px;
  color: #f6fbff;
  font-family: 'Space Grotesk', 'Tajawal', sans-serif;
  font-size: clamp(3.3rem, 6.35vw, 6.4rem);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.085em;
  text-wrap: balance;
}

.storefront-copy h2 span { color: var(--slide-accent); }

.storefront-description {
  max-width: 34ch;
  margin: 0 0 28px;
  color: #cad8ea;
  font-size: clamp(1rem, 1.6vw, 1.24rem);
  line-height: 1.55;
}

.storefront-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.storefront-actions a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}

.storefront-primary { background: var(--slide-accent); color: #071421; }
.storefront-primary:hover { background: #f6fbff; }
.storefront-actions .storefront-secondary { background: rgba(7,13,24,.78); border-color: rgba(219,233,255,.34); color: #f6fbff; }
.storefront-actions .storefront-secondary:hover { border-color: var(--slide-accent); }

.storefront-controls {
  grid-area: 2 / 1;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
  padding-bottom: 23px;
  pointer-events: none;
}

.storefront-controls[hidden] { display: none; }
.storefront-controls button { cursor: pointer; pointer-events: auto; }
.storefront-pages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; width: min(440px, 100%); }

.storefront-pages button {
  position: relative;
  min-height: 44px;
  padding: 11px 0 0;
  border: 0;
  background: transparent;
  color: #b8c8dc;
  font: inherit;
  font-size: .94rem;
  font-weight: 800;
  text-align: left;
}

.storefront-pages button::before,
.storefront-pages button::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  border-radius: 2px;
}

.storefront-pages button::before { background: rgba(216,231,248,.28); }
.storefront-pages button::after { background: var(--storefront-accent); transform: scaleX(0); transform-origin: left; }
.storefront-pages button[aria-current] { color: #f6fbff; }
.storefront-pages button[aria-current]::after { transform: scaleX(1); }
.storefront-hero.is-playing .storefront-pages button[aria-current]::after { animation: storefront-progress var(--slide-duration) linear both; }
.storefront-pages button:hover { color: var(--storefront-accent); }

.storefront-toggle {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(216,231,248,.32);
  border-radius: 50%;
  background: rgba(7,13,24,.78);
  color: #f6fbff;
}

.storefront-toggle:hover { border-color: var(--storefront-accent); }
.storefront-play-icon { width: 10px; height: 13px; border-inline: 3px solid currentColor; }
.storefront-toggle[data-paused] .storefront-play-icon {
  width: 0;
  height: 0;
  margin-left: 3px;
  border: 6px solid transparent;
  border-left: 9px solid currentColor;
  border-right: 0;
}

.storefront-photo-note { margin-left: auto; color: #adbed0; font-size: .8rem; white-space: nowrap; }

#navbar a:focus-visible,
#navbar button:focus-visible,
.storefront-hero :is(a, button):focus-visible,
.cat-card:focus-visible,
.filter-btn:focus-visible {
  outline: 2px solid var(--storefront-accent);
  outline-offset: 4px;
}

.cat-card { text-decoration: none; }
.promise-strip { margin-top: 0; padding-top: 24px; }
.wa-tooltip-box { right: 160px; }
#categories .cat-icon {
  background: linear-gradient(135deg, rgba(118,232,255,.17), rgba(119,96,242,.16)) !important;
}
.filter-btn:not([data-promo]):is(:hover, .active),
.details-pill:hover {
  background: #76e8ff !important;
  border-color: transparent !important;
  color: #071421 !important;
  box-shadow: 0 10px 25px rgba(118,232,255,.14);
}

@keyframes storefront-zoom { from { transform: scale(1.065); } to { transform: scale(1); } }
@keyframes storefront-copy-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes storefront-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 768px) {
  :root { --storefront-nav-height: 66px; --storefront-gutter: clamp(16px, 5vw, 32px); }
  #navbar .nav-links.open { top: var(--storefront-nav-height); }
  #navbar .nav-logo { gap: 8px; }
  #navbar .nav-logo img { width: 40px; height: 40px; border-radius: 10px; }
  #navbar .brand-wordmark { display: flex; white-space: nowrap; }
  #navbar .brand-wordmark small { display: none; }
  .wa-float { display: none; }
  .storefront-hero { min-height: clamp(560px, calc(95svh - var(--storefront-nav-height)), 670px); }
  .storefront-slide { align-items: end; padding: 200px 0 93px; }
  .storefront-photo { inset: 0 0 33%; }
  .storefront-slide::after {
    background:
      linear-gradient(0deg, var(--storefront-ink) 22%, rgba(7,13,24,.97) 35%, rgba(7,13,24,.46) 55%, transparent 80%),
      linear-gradient(90deg, rgba(7,13,24,.24), transparent 65%);
  }
  .storefront-kicker { margin-bottom: 12px; font-size: .85rem; letter-spacing: .08em; }
  .storefront-copy h2 { margin-bottom: 16px; font-size: clamp(2.65rem, 10.5vw, 4.65rem); letter-spacing: -.075em; }
  .storefront-description { margin-bottom: 20px; }
  .storefront-actions a { min-height: 46px; padding-inline: 14px; }
  .storefront-controls { padding-bottom: 18px; }
  .storefront-photo-note { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .storefront-slide,
  .storefront-slide.is-current { transition: none; }
  .storefront-slide.is-current :is(img, .storefront-copy),
  .storefront-hero.is-playing .storefront-pages button[aria-current]::after { animation: none; }
}
