/* Khalij Agadir — Simple storefront prototype */

:root {
  --gold: #fec003;
  --gold-dark: #fec003;
  --black: #111;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --bg: #ffffff;
  --soft: #f7f7f7;
  --border: #ececec;
  --sale: #b42318;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-arabic: "Noto Naskh Arabic", serif;
  --max: 1080px;
  --radius: 6px;
}

[data-theme="dark"] {
  --text: #f3f1ea;
  --muted: #a3a3a3;
  --bg: #0f0f0f;
  --soft: #181818;
  --border: #2a2a2a;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html,
body {
  overflow-x: clip;
  max-width: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* Header — one clean row */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
  background: transparent;
  position: relative;
  z-index: 1;
}
.logo img,
.footer-brand img {
  height: 42px;
  width: auto;
  max-width: min(380px, 58vw);
  object-fit: contain;
}
.logo-on-dark { display: none; }
[data-theme="dark"] .logo-on-light { display: none; }
[data-theme="dark"] .logo-on-dark { display: block; }
.nav-main {
  display: flex;
  gap: 1.75rem;
  position: relative;
  z-index: 3;
  flex: 1;
  justify-content: center;
  align-items: center;
}
.nav-main a,
.nav-main .nav-parent {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-main a:hover,
.nav-main a[aria-current="page"],
.nav-item:hover > .nav-parent,
.nav-item:focus-within > .nav-parent {
  color: var(--gold);
}
.nav-item {
  position: relative;
}
.nav-parent {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}
.nav-parent::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
}
.nav-drop {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 13.5rem;
  padding: 0.55rem 0;
  margin-top: 0.4rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  z-index: 20;
}
.nav-drop::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 12px;
}
.nav-drop a {
  display: block;
  padding: 0.55rem 1rem;
  white-space: nowrap;
  color: var(--muted);
}
.nav-drop a:hover {
  color: var(--gold);
  background: var(--soft);
}
.nav-item:hover .nav-drop,
.nav-item:focus-within .nav-drop {
  display: block;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 3;
  flex-shrink: 0;
}
.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.icon-btn:hover { background: var(--soft); color: var(--gold); }
.cart-count {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  background: var(--soft);
  border-radius: var(--radius);
}
.cart-count:hover { background: var(--gold); color: var(--black); }
.menu-btn { display: none; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }

/* Language dropdown */
.lang-switch {
  position: relative;
  z-index: 40;
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 36px;
  padding: 0 0.65rem 0 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--soft);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: border-color 0.15s, background 0.15s;
}
.lang-toggle:hover,
.lang-switch.is-open .lang-toggle {
  border-color: var(--gold);
  background: var(--bg);
}
.lang-toggle-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.65;
  transition: transform 0.15s;
}
.lang-switch.is-open .lang-toggle-caret {
  transform: rotate(180deg);
}
.lang-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 9.5rem;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}
.lang-menu[hidden] {
  display: none !important;
}
.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.25rem;
  padding: 0.35rem 0.65rem;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}
.lang-option:hover {
  background: var(--soft);
  color: var(--text);
}
.lang-option.is-active {
  background: rgba(254, 192, 3, 0.16);
  color: var(--text);
}
.lang-option-code {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
html[dir="rtl"] .lang-menu {
  right: auto;
  left: 0;
}

/* RTL */
html[dir="rtl"] body,
body.is-rtl {
  direction: rtl;
}
html[dir="rtl"] .nav-drop {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}
html[dir="rtl"] .nav-parent {
  flex-direction: row-reverse;
}
html[dir="rtl"] .section-head,
html[dir="rtl"] .filters-row,
html[dir="rtl"] .header-inner,
html[dir="rtl"] .footer-bottom {
  direction: rtl;
}
html[dir="rtl"] .pdp-note-row {
  grid-template-columns: 1fr 4.5rem;
}
html[dir="rtl"] .pdp-note-row span {
  text-align: left;
  order: 2;
}
html[dir="rtl"] .pdp-note-row p {
  order: 1;
  text-align: right;
}
html[dir="rtl"] .pdp-spec {
  grid-template-columns: minmax(0, 1fr) minmax(5.5rem, 7.5rem);
}
html[dir="rtl"] .pdp-specs dt {
  text-align: left;
  order: 2;
}
html[dir="rtl"] .pdp-specs dd {
  text-align: right;
  order: 1;
}
html[dir="rtl"] .wa-float {
  right: auto;
  left: max(1.1rem, env(safe-area-inset-left));
}
html[dir="rtl"] .breadcrumb {
  direction: rtl;
}
html[dir="rtl"] .product-card.product-card-best {
  direction: rtl;
}
html[dir="rtl"] .hero-slide-copy {
  text-align: right;
}
@media (max-width: 640px) {
  html[dir="rtl"] .hero-slide-copy {
    text-align: center;
  }
  html[dir="rtl"] .wa-float {
    left: max(0.85rem, env(safe-area-inset-left));
    right: auto;
  }
}

/* Hero — full-bleed background image slider */
.hero-simple {
  position: relative;
  z-index: 0;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-height: min(70vh, 520px);
  padding: 4.5rem 1.5rem 5rem;
  color: #fff;
}
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background-color: #111;
  background-image: url("../hero/hero-default.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.06);
  transition: opacity 1s ease, transform 7s ease;
  color: #fff;
}
.hero-slide.has-hero-bg::before,
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 10, 10, 0.62) 0%,
    rgba(10, 10, 10, 0.42) 45%,
    rgba(10, 10, 10, 0.28) 100%
  );
}
.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}
.hero-slide-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  width: min(100%, 820px);
  padding: 0 1rem;
}
.hero-slide-inner > img {
  width: 300px;
  height: 300px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 6px;
}
.hero-slide-copy h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #fff;
}
.hero-slide-copy .hero-lead {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
}
.hero-slide-copy .product-price {
  margin: 0 0 1.25rem;
  font-size: 1.2rem;
  color: var(--gold);
}
.hero-slide-copy .price-was {
  color: rgba(255, 255, 255, 0.55);
  margin-right: 0.4rem;
}
.hero-arabic {
  font-family: var(--font-arabic);
  font-size: 1rem;
  color: var(--gold);
  margin: 0 0 1rem;
}
.hero-dots {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 1.35rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}
.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.2s, transform 0.2s;
}
.hero-dot.is-active {
  background: var(--gold);
  transform: scale(1.25);
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1.75rem;
  background: var(--black);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--gold); color: var(--black); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.btn-secondary:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--black);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.hero-simple .btn-primary:hover { background: var(--gold); color: var(--black); }

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

.search-bar {
  background: var(--soft);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.search-form {
  display: flex;
  gap: 0.6rem;
  align-items: stretch;
}
.search-form input[type="search"] {
  flex: 1;
  min-height: 48px;
  padding: 0 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
.search-form input[type="search"]:focus {
  outline: 2px solid var(--gold);
  outline-offset: -1px;
}
.search-form .btn-primary {
  min-width: 7.5rem;
}
.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin: 0;
}
.shop-filters {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0 0 1.5rem;
  padding: 1rem;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.shop-toolbar .sort-select {
  min-height: 46px;
  min-width: 10rem;
  flex: 0 1 auto;
}
.shop-search-wrap { display: block; flex: 1 1 220px; min-width: min(100%, 220px); }
.shop-search-wrap input {
  width: 100%;
  min-height: 46px;
  padding: 0 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
.shop-search-wrap input:focus {
  outline: 2px solid var(--gold);
  outline-offset: -1px;
}
.shop-promo-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.shop-promo-toggle input {
  accent-color: var(--gold);
  width: 1rem;
  height: 1rem;
}
.shop-count {
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}
.chip {
  cursor: pointer;
}
.search-empty {
  grid-column: 1 / -1;
  color: var(--muted);
  margin: 1rem 0 2rem;
}

/* Best sellers — 2 products per row */
.product-grid-bestsellers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

/* Category chips — quick access */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding: 0 0 2.5rem;
}
.chip {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--soft);
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.chip:hover,
.chip.is-active {
  background: var(--black);
  color: #fff;
}
[data-theme="dark"] .chip.is-active,
[data-theme="dark"] .chip:hover { background: var(--gold); color: var(--black); }

/* Section */
.section { padding: 2.5rem 0 3rem; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
}
.link-more {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}
.link-more:hover { color: var(--text); text-decoration: underline; }

/* Product grid — clean cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.search-bar,
.section,
.brand-carousel,
.trust-strip {
  position: relative;
  z-index: 1;
}
.product-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}
.product-hit {
  position: absolute;
  inset: 0;
  z-index: 3;
}

/* Best sellers: image left, details right */
.product-card.product-card-best {
  display: grid;
  grid-template-columns: 220px 1fr;
  grid-template-rows: 300px;
  align-items: stretch;
  gap: 0;
  background: var(--soft);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.product-card.product-card-best .product-image {
  grid-column: 1;
  grid-row: 1;
  width: 220px;
  height: 300px;
  min-width: 220px;
  min-height: 300px;
  max-width: 220px;
  max-height: 300px;
  aspect-ratio: 220 / 300;
  border-radius: 0;
  background: #fff;
  overflow: hidden;
}
.product-card.product-card-best .product-image img {
  width: 220px;
  height: 300px;
  max-width: 220px;
  max-height: 300px;
  object-fit: contain;
  object-position: center;
}
.product-card.product-card-best .product-info {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  padding: 1rem 1.15rem;
  min-width: 0;
}
.product-card.product-card-best .product-name {
  font-size: 1.25rem;
}
.product-card.product-card-best .btn-add {
  margin-top: 0.4rem;
  width: 100%;
  align-self: stretch;
  padding: 0 1.15rem;
  background: var(--gold);
  color: var(--black);
}
.product-card.product-card-best .btn-add:hover {
  background: var(--gold);
}
.product-image {
  aspect-ratio: 3 / 4;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.4s ease;
}
.product-image::after,
.pdp-image::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 48%;
  width: 78%;
  height: 32%;
  transform: translate(-50%, -50%);
  background: url("../assets/logo/watermark.png") center / contain no-repeat;
  opacity: 0.4;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45));
}
.product-card-best .product-image::after {
  width: 86%;
  height: 26%;
  top: 52%;
}
.product-sub {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.product-meta {
  font-size: 0.75rem;
  color: var(--muted);
}
.product-card:hover .product-image img { transform: scale(1.03); }
.tag {
  position: absolute;
  z-index: 2;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 4px;
  background: var(--black);
  color: var(--gold);
}
.tag.sale { background: var(--sale); color: #fff; }
.product-brand {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.product-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.25;
}
.product-price {
  font-weight: 700;
  font-size: 0.95rem;
}
.price-was {
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 500;
  margin-right: 0.35rem;
}
.btn-add {
  margin-top: auto;
  width: 100%;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--black);
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s, filter 0.2s;
  position: relative;
  z-index: 4;
}
.btn-add:hover { filter: brightness(0.96); color: var(--black); }
.btn-add:disabled,
.btn-add.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  background: var(--soft);
  color: var(--muted);
}
.product-actions,
.pdp-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: auto;
  position: relative;
  z-index: 4;
}
.btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 0 1rem;
  border: 1px solid #25d366;
  background: #25d366;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: var(--radius);
  transition: filter 0.2s, background 0.2s;
  position: relative;
  z-index: 4;
  text-align: center;
}
.btn-wa:hover {
  filter: brightness(0.95);
  color: #fff;
}
.pdp-actions {
  margin-top: 1.25rem;
}
.pdp-actions form.cart {
  margin: 0;
  width: 100%;
}
.pdp-actions form.cart .button {
  flex: 1;
  width: 100%;
}
.pdp-actions form.cart .quantity {
  width: 100%;
  margin: 0 0 0.55rem;
}
.pdp-actions form.cart .quantity .qty,
.pdp-actions form.cart input.qty {
  width: 100%;
  min-height: 54px;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: #111;
  font: inherit;
  font-weight: 600;
  -webkit-text-fill-color: #111;
}
.pdp-actions form.cart .quantity .qty:focus,
.pdp-actions form.cart input.qty:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
  color: #111;
  -webkit-text-fill-color: #111;
}
[data-theme="dark"] .pdp-actions form.cart .quantity .qty,
[data-theme="dark"] .pdp-actions form.cart input.qty {
  background: #fff;
  color: #111;
  -webkit-text-fill-color: #111;
  border-color: #ddd;
}
.product-card-best .product-actions {
  align-items: stretch;
  width: 100%;
}
.product-card-best .btn-add,
.product-card-best .btn-wa {
  width: 100%;
  align-self: stretch;
}

.promo-bar {
  background: #111;
  color: var(--gold);
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
}
.promo-bar a { color: inherit; }
.promo-short { display: none; }

.universe-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.universe-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 220px;
  padding: 1.25rem;
  background-color: #111;
  background-size: cover;
  background-position: center;
  color: #fff;
  border-radius: var(--radius);
  overflow: hidden;
}
.universe-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.15) 0%, rgba(10,10,10,0.78) 100%);
}
.universe-card > * {
  position: relative;
  z-index: 1;
}
.universe-card:hover::before {
  background: linear-gradient(180deg, rgba(10,10,10,0.08) 0%, rgba(10,10,10,0.7) 100%);
}
.universe-card span {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.universe-card strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  margin: 0.2rem 0 0.35rem;
}
.universe-card p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.72);
}
.universe-card:hover { outline: 1px solid var(--gold); }

.section-finder { padding-top: 0; }
.finder-lead {
  margin: -0.75rem 0 1rem;
  color: var(--muted);
}
.note-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.story-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 4.5rem 1.25rem;
  margin-top: 1rem;
  text-align: center;
  color: #fff;
  background: #111 url("../assets/images/login-perfume-flowers.jpg") center / cover no-repeat;
}
.story-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.45) 0%, rgba(10,10,10,0.72) 100%);
}
.story-inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  margin-inline: auto;
}
.story-band h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 600;
  color: #fff;
}
.story-band p:not(.hero-arabic) {
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 1.25rem;
}
.story-band .btn-primary:hover {
  background: var(--gold);
  color: var(--black);
}

.wa-float {
  position: fixed;
  right: max(1.1rem, env(safe-area-inset-right));
  bottom: max(1.1rem, env(safe-area-inset-bottom));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 46px;
  padding: 0 1rem;
  background: #25d366;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.wa-float:hover { filter: brightness(1.05); }
.wa-float-icon { display: none; line-height: 1; font-size: 1.25rem; }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.brand-carousel {
  padding: 2.25rem 0 2.5rem;
  border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  overflow: hidden;
  background: var(--bg);
}
.brand-carousel .section-head {
  justify-content: center;
  margin-bottom: 1.5rem;
}
.brand-carousel .section-head h2 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.brand-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.brand-track {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: max-content;
  animation: brand-scroll 48s linear infinite;
}
.brand-marquee:hover .brand-track {
  animation-play-state: paused;
}
.brand-logo {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  min-width: 7.5rem;
  color: var(--text);
  opacity: 1;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: normal;
  text-transform: none;
}
.brand-logo img {
  width: 120px;
  height: 72px;
  object-fit: contain;
  background: #0a0a0a;
}
.brand-logo span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
}
.brand-logo:hover span { color: var(--text); }
.brand-logo:hover img { outline: 1px solid var(--gold); }
.brand-sep {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 0.7rem;
  opacity: 0.85;
}
@keyframes brand-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .brand-track { animation: none; }
}
.trust-item strong {
  display: block;
  font-size: 0.8125rem;
  margin-bottom: 0.15rem;
}
.trust-item span {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Page title */
.page-hero {
  padding: 2.5rem 0 1.5rem;
}
.page-hero h1 {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
}
.page-hero p { margin: 0.5rem 0 0; color: var(--muted); }
.breadcrumb { font-size: 0.8125rem; color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }

/* Shop filters row */
.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding-top: 0.15rem;
  border-top: 1px solid var(--border);
}
.filters-row .chips {
  padding: 0;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.sort-select {
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.8125rem;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  align-items: center;
  padding: 2rem 0 0.5rem;
}
.page-btn {
  min-width: 2.35rem;
  height: 2.35rem;
  padding: 0 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}
.page-btn:hover:not(:disabled):not(.is-current) {
  border-color: var(--gold);
  color: var(--gold-dark);
}
.page-btn.is-current {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
  cursor: default;
}
.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}
.page-gap {
  color: var(--muted);
  padding: 0 0.2rem;
}

/* Product page */
.pdp,
.pdp.product {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 3rem;
  padding: 2rem 0 3rem;
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: clip;
}
.pdp .pdp-gallery,
.pdp .pdp-image,
.pdp .pdp-gallery-main,
.pdp .pdp-summary,
.pdp .summary,
.pdp .entry-summary {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  min-width: 0;
  box-sizing: border-box;
}
.pdp .pdp-summary,
.pdp .summary,
.pdp .entry-summary {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.pdp-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: min(100%, 800px);
  margin-inline: auto;
}
.pdp-image,
.pdp-gallery-main {
  width: 100%;
  max-width: min(100%, 800px);
  aspect-ratio: 1 / 1;
  height: auto;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  margin-inline: auto;
}
.pdp-image img,
.pdp-gallery-main img {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  display: block;
}
.pdp-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}
.pdp-gallery-thumb {
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pdp-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.pdp-gallery-thumb:hover,
.pdp-gallery-thumb:focus-visible {
  border-color: var(--gold);
  outline: none;
}
.pdp-gallery-thumb.is-active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}
.pdp-brand {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.pdp-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text);
}
.pdp-price,
.pdp .product-price {
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-weight: 700;
  margin: 0 0 1.15rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.pdp .product-price--from {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 1.15rem;
}
.product-notes {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}
.pdp-specs {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 100%;
  margin: 0 0 1.35rem;
  padding: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pdp-spec,
.pdp-specs > div {
  display: grid;
  grid-template-columns: minmax(5.5rem, 7.5rem) minmax(0, 1fr);
  gap: 0.75rem 1rem;
  align-items: baseline;
  margin: 0;
  padding: 0.7rem 0;
  border-top: 1px solid var(--border);
  min-width: 0;
}
.pdp-spec:first-child,
.pdp-specs > div:first-child {
  border-top: 0;
}
.pdp-specs dt {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.35;
}
.pdp-specs dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  min-width: 0;
  overflow-wrap: anywhere;
}
.pdp-specs dd a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.15em;
  transition: text-decoration-color 0.15s;
}
.pdp-specs dd a:hover {
  text-decoration-color: var(--gold);
}
.pdp-pyramid {
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem;
  background: var(--soft);
  border-radius: var(--radius);
}
.pdp-pyramid h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.pdp-note-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-top: 1px solid var(--border);
}
.pdp-note-row span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-dark);
  padding-top: 0.15rem;
}
.pdp-note-row p { margin: 0; font-size: 0.9rem; }
.pdp-desc {
  color: var(--muted);
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 42rem;
}
.pdp-desc p {
  margin: 0 0 0.75rem;
}
.pdp-desc p:last-child {
  margin-bottom: 0;
}
.pdp-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 1rem 0 0;
  line-height: 1.4;
}
.similar-products {
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}
.similar-products .section-head {
  margin-bottom: 1.15rem;
}
.similar-products .section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  margin: 0;
}

/* About page */
.about-page {
  padding-bottom: 3rem;
}
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 280px);
  gap: 2.5rem 3rem;
  align-items: start;
  padding-top: 0.25rem;
}
.about-main {
  min-width: 0;
}
.about-hero {
  max-width: none;
}
.about-logo {
  position: sticky;
  top: 6.5rem;
  margin: 0;
  padding-top: 0.35rem;
  justify-self: end;
  width: 100%;
  max-width: 280px;
}
.about-logo .about-logo-emblem,
.about-logo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  max-height: none;
  object-fit: contain;
  object-position: center;
}
html[dir="rtl"] .about-layout {
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
}
html[dir="rtl"] .about-logo {
  order: -1;
  justify-self: start;
}
.about-lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
}
.about-tagline-ar {
  margin: 1rem 0 0;
  font-family: var(--font-arabic);
  font-size: 1.05rem;
  color: var(--gold-dark);
  line-height: 1.6;
}
.about-body {
  max-width: none;
  padding: 0.5rem 0 1rem;
}
.about-section {
  margin: 0 0 2rem;
  padding: 0 0 2rem;
  border-bottom: 1px solid var(--border);
}
.about-section:last-of-type {
  border-bottom: 0;
}
.about-section h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}
.about-section p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}
.about-section p:last-child {
  margin-bottom: 0;
}
.about-address {
  margin-top: 1rem !important;
  padding: 1rem 0 0;
  border-top: 1px solid var(--border);
  color: var(--text) !important;
  font-size: 0.95rem !important;
  line-height: 1.55 !important;
}
.about-address a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 0.15em;
}
.about-address a:hover {
  color: var(--gold-dark);
}
.about-why-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}
.about-why-list li {
  position: relative;
  padding: 0.15rem 0 0.15rem 1.15rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}
.about-why-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--gold);
}
html[dir="rtl"] .about-why-list li {
  padding: 0.15rem 1.15rem 0.15rem 0;
}
html[dir="rtl"] .about-why-list li::before {
  left: auto;
  right: 0;
}
.about-faq-list {
  display: grid;
  gap: 0.5rem;
}
.about-faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 0 1rem;
}
.about-faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 0.95rem 0;
  font-weight: 650;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.4;
}
.about-faq-item summary::-webkit-details-marker {
  display: none;
}
.about-faq-item summary::after {
  content: "+";
  float: right;
  color: var(--gold-dark);
  font-weight: 700;
}
html[dir="rtl"] .about-faq-item summary::after {
  float: left;
}
.about-faq-item[open] summary::after {
  content: "–";
}
.about-faq-item p {
  margin: 0 0 1rem;
  padding-top: 0;
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
}
.about-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.about-cta .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.875rem;
  background: var(--bg);
  color: var(--text);
}
.about-cta .btn-secondary:hover {
  border-color: var(--gold);
  background: var(--soft);
}

/* Contact / about */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem 0 3rem;
}
.card-box {
  padding: 1.5rem;
  background: var(--soft);
  border-radius: var(--radius);
}
.card-box h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}
.form-simple { display: grid; gap: 0.75rem; }
.form-simple label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
}
.form-simple input,
.form-simple textarea,
.form-simple select {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
.form-simple textarea { min-height: 120px; resize: vertical; }

/* Footer — minimal */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}
.footer-inner,
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 1.75rem;
  align-items: start;
}
.footer-title {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-col {
  display: grid;
  gap: 0.45rem;
}
.footer-col a {
  font-size: 0.8125rem;
  color: var(--muted);
}
.footer-col a:hover { color: var(--text); }
.footer-wa {
  display: inline-flex;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-dark);
}
.footer-brand {
  margin: 0 0 0.5rem;
  background: transparent;
  display: inline-block;
}
.footer-brand img {
  height: 42px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}
.footer-contact {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}
.footer-phone {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold-dark);
}
.footer-phone:hover { color: var(--text); }

/* Phone numbers must stay LTR even on Arabic (RTL) pages */
.khalij-phone,
a[href^="tel:"],
.footer-phone,
.trust-item .khalij-phone {
  direction: ltr !important;
  unicode-bidi: isolate;
  text-align: left;
  white-space: nowrap;
}
html[dir="rtl"] .khalij-phone,
html[dir="rtl"] a[href^="tel:"],
html[dir="rtl"] .footer-phone {
  direction: ltr !important;
  unicode-bidi: isolate;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.footer-links a {
  font-size: 0.8125rem;
  color: var(--muted);
}
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
  align-items: center;
}
.footer-credit a {
  color: var(--gold-dark);
  font-weight: 600;
}
.footer-credit a:hover { color: var(--text); }

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 0.5rem 1rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.mobile-nav a {
  padding: 0.85rem 0;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.mobile-nav .nav-sub {
  padding-left: 1rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--muted);
}
.mobile-nav.is-open { display: flex; }

.section-shop {
  padding-top: 0.5rem;
}

@media (max-width: 1020px) {
  .nav-main { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .header-inner {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.55rem;
    min-height: 64px;
  }
  .logo {
    justify-self: center;
  }
  .logo img,
  .footer-brand img {
    height: 36px;
    max-width: min(210px, 48vw);
  }
  .header-actions {
    gap: 0.25rem;
  }
  .lang-toggle {
    min-height: 34px;
    padding: 0 0.55rem 0 0.65rem;
    font-size: 0.72rem;
  }
  .cart-count {
    font-size: 0.75rem;
    padding: 0.35rem 0.55rem;
  }
}

@media (max-width: 900px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .about-logo {
    position: static;
    order: -1;
    justify-self: center;
    max-width: 180px;
    padding-top: 0;
    margin-inline: auto;
  }
  html[dir="rtl"] .about-layout {
    grid-template-columns: 1fr;
  }
  html[dir="rtl"] .about-logo {
    justify-self: center;
  }
  .container { width: min(100% - 1.5rem, var(--max)); }
  .shop-toolbar .sort-select,
  .shop-promo-toggle {
    flex: 1 1 calc(50% - 0.75rem);
  }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid-bestsellers { grid-template-columns: 1fr; gap: 1rem; }
  .pdp,
  .pdp.product,
  div.product.pdp {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.25rem !important;
    padding: 1.25rem 0 2.5rem !important;
  }
  .pdp-gallery,
  .pdp .pdp-gallery,
  .pdp .pdp-summary,
  .pdp .summary,
  .pdp .entry-summary {
    width: 100% !important;
    max-width: 100% !important;
  }
  .pdp-gallery {
    margin-inline: auto;
  }
  .pdp-image,
  .pdp-gallery-main {
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 1 / 1;
    height: auto;
    margin-inline: auto;
  }
  .pdp-image img,
  .pdp-gallery-main img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
  .pdp-gallery-thumbs {
    gap: 0.4rem;
    grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  }
  .pdp-actions {
    max-width: 100%;
    box-sizing: border-box;
  }
  .pdp-desc,
  .pdp-title,
  .pdp-brand,
  .pdp .product-price {
    overflow-wrap: anywhere;
  }
  .two-col { grid-template-columns: 1fr; }
  .universe-grid { grid-template-columns: 1fr 1fr; }
  .trust-strip { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .search-form {
    flex-wrap: wrap;
  }
  .search-form .btn-primary {
    flex: 1 1 100%;
  }
  .shop-filters {
    padding: 0.85rem;
    gap: 0.7rem;
    margin-bottom: 1.1rem;
  }
  .chips {
    gap: 0.4rem;
  }
  .chip {
    font-size: 0.78rem;
    padding: 0.45rem 0.7rem;
  }
  main.container,
  .site-main.container {
    padding-bottom: 5rem;
  }
}

@media (max-width: 640px) {
  .promo-full { display: none; }
  .promo-short { display: inline; }
  .promo-bar {
    font-size: 0.62rem;
    letter-spacing: 0.05em;
    padding: 0.4rem 0.65rem;
  }
  .container { width: min(100% - 1.25rem, var(--max)); }
  .header-inner {
    min-height: 58px;
    gap: 0.4rem;
  }
  .logo img {
    height: 32px;
    max-width: min(168px, 42vw);
  }
  .theme-toggle {
    width: 36px;
    height: 36px;
  }
  .cart-label { display: none; }
  .cart-count {
    min-width: 36px;
    justify-content: center;
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
  }
  .universe-grid,
  .trust-strip,
  .footer-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .product-grid-bestsellers { grid-template-columns: 1fr; gap: 0.85rem; }
  .product-card.product-card-best {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
  .product-card.product-card-best .product-image,
  .product-card.product-card-best .product-image img {
    width: 100%;
    height: auto;
    min-width: 0;
    min-height: 0;
    max-width: none;
    max-height: none;
    aspect-ratio: 3 / 4;
  }
  .product-card.product-card-best .product-image {
    height: auto;
    aspect-ratio: 3 / 4;
  }
  .product-card.product-card-best .product-info {
    padding: 0.9rem 1rem 1.05rem;
  }
  .product-name {
    font-size: 1.02rem;
  }
  .product-notes {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .btn-add,
  .btn-wa {
    min-height: 44px;
    font-size: 0.78rem;
  }
  .hero-simple {
    min-height: min(58vh, 400px);
    padding: 2.5rem 1rem 3.25rem;
  }
  .hero-slide-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 0.85rem;
    width: min(100%, 420px);
    padding: 0;
  }
  .hero-slide-inner > img {
    width: min(200px, 52vw);
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .hero-slide-copy h1 {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
  }
  .hero-slide-copy .hero-lead {
    font-size: 0.95rem;
  }
  .hero-actions {
    width: 100%;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    flex: 1 1 100%;
  }
  .section {
    padding-block: 1.75rem;
  }
  .section-head {
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  .section-head h2 {
    font-size: clamp(1.45rem, 6vw, 1.85rem);
  }
  .pdp-title {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }
  .pdp-spec {
    grid-template-columns: minmax(4.75rem, 6.25rem) minmax(0, 1fr);
    gap: 0.5rem 0.75rem;
    padding: 0.65rem 0;
  }
  .pdp-specs dt {
    font-size: 0.64rem;
  }
  .pdp-specs dd {
    font-size: 0.9rem;
  }
  .pdp-note-row {
    grid-template-columns: minmax(3.25rem, 3.75rem) minmax(0, 1fr);
    gap: 0.5rem;
  }
  .pdp-actions {
    padding: 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .pdp-actions .btn-wa,
  .pdp-actions .btn-add,
  .pdp-actions .single_add_to_cart_button,
  .pdp-actions form.cart .button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .breadcrumb {
    font-size: 0.75rem;
    overflow-wrap: anywhere;
  }
  .wa-float {
    right: max(0.85rem, env(safe-area-inset-right));
    bottom: max(0.85rem, env(safe-area-inset-bottom));
    width: 52px;
    height: 52px;
    min-height: 52px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .wa-float-icon { display: inline; }
  .wa-float-label { display: none; }
  .story-band {
    padding: 3rem 1rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.35rem;
    text-align: center;
  }
  .mobile-nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
  }
}

@media (max-width: 380px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .pdp-spec {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.2rem;
    padding: 0.6rem 0;
  }
  .shop-toolbar .sort-select,
  .shop-promo-toggle {
    flex: 1 1 100%;
  }
}
