/* Inter, served from this site (no Google Fonts round-trip). Latin subset, weights 400–700. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/inter-latin.woff2) format('woff2'); }
/* Anfal storefront */
:root {
  --green: #0a4f2e;
  --green-deep: #073c23;
  --gold: #ae8d47;
  --gold-soft: #c9ad72;
  --gold-text: #86692b; /* gold dark enough for small text on white */
  --red: #b42318;        /* scarcity + sale; 6:1 contrast on white */
  --red-soft: #ff9b8f;   /* red on dark backgrounds */
  --ink: #121212;
  --ink-2: #3d3d3a;
  --muted: #6e6c66;
  --line: #e7e3da;
  --bg: #ffffff;
  --cream: #f6f3ec;
  --sand: #efe9dc;
  --danger: #8b1a1a;
  --radius: 4px;
  --pill: 999px;
  --wrap: 1280px;
  --gutter: 16px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (min-width: 768px) { :root { --gutter: 32px; --header-h: 82px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.55 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
h1 { font-size: clamp(28px, 4.2vw, 44px); }
h2 { font-size: clamp(22px, 2.8vw, 32px); }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.only-desktop { display: none !important; }
@media (min-width: 900px) { .only-desktop { display: inline-flex !important; } .only-mobile { display: none !important; } }

.eyebrow { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--green); margin: 0 0 10px; }
.eyebrow[lang="ar"] { letter-spacing: 0; font-size: 15px; text-transform: none; }
.eyebrow-light { color: rgba(255, 255, 255, .85); }
.eyebrow-gold { color: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 28px; border-radius: var(--pill); border: 1px solid transparent;
  font-weight: 600; font-size: 14.5px; letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.985); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-lg { min-height: 56px; font-size: 15.5px; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover:not([disabled]) { background: var(--green-deep); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--cream); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #9a7c3c; }
.btn-outline { border-color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-wa { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-wa svg { color: #1f9d55; }
.btn-wa:hover { border-color: var(--ink); }
.link { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 13px; color: var(--ink-2); }
.link-arrow { text-decoration: none; font-weight: 600; font-size: 14px; border-bottom: 1px solid currentColor; padding-bottom: 2px; white-space: nowrap; }

/* Announcement + header */
.announce { position: relative; height: 36px; overflow: hidden; background: var(--green); color: #fff; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; font-weight: 500; }
.announce-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0 var(--gutter); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(6px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.announce-msg.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .announce-msg { transition: none; transform: none; } }
.header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .97); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); transition: background .3s var(--ease), color .3s var(--ease), border-color .3s; }
.header-row { height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.header-logo { justify-self: center; display: flex; color: var(--green); }
.header-logo .logo { width: 52px; height: 52px; }
@media (min-width: 768px) { .header-logo .logo { width: 62px; height: 62px; } }
.nav { gap: 28px; }
.nav a { text-decoration: none; font-size: 14px; font-weight: 500; opacity: .85; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a.active { opacity: 1; border-color: currentColor; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 4px; }
.icon-btn { background: none; border: 0; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 50%; position: relative; color: inherit; }
.icon-btn:hover { background: rgba(0, 0, 0, .05); }
.cart-count { position: absolute; top: 5px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--green); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff; }
.header-overlay { position: fixed; left: 0; right: 0; top: var(--announce-h, 36px); background: transparent; border-color: transparent; color: #fff; backdrop-filter: none; }
.header-overlay .header-logo { color: #fff; }
.header-overlay.scrolled { background: rgba(255, 255, 255, .97); color: var(--ink); border-color: var(--line); backdrop-filter: saturate(1.4) blur(10px); top: 0; }
.header-overlay.scrolled .header-logo { color: var(--green); }
.header-min .header-row { height: 68px; }
.header-back { font-size: 13px; text-decoration: none; color: var(--muted); }
.header-secure { justify-self: end; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--green); font-weight: 600; }
@media (max-width: 520px) { .header-back { font-size: 0; } .header-back::before { content: '←'; font-size: 20px; } }

/* Logo mark (white PNG used as a mask so it can take any colour) */
.logo { display: inline-block; width: 44px; height: 44px; background-color: currentColor; -webkit-mask: url(/media/site/logo-mark.png) center / contain no-repeat; mask: url(/media/site/logo-mark.png) center / contain no-repeat; }
.logo-green { color: var(--green); }
.logo-lg { width: 64px; height: 64px; }

/* Hero */
.hero { position: relative; min-height: min(100svh, 920px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #111; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 44%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .15) 55%, rgba(0, 0, 0, .7) 100%); }
.hero-content { position: relative; width: 100%; padding-bottom: clamp(40px, 9vh, 96px); text-align: center; }
.hero h1 { font-size: clamp(40px, 7vw, 84px); letter-spacing: -0.035em; margin-bottom: 26px; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-micro { margin: 22px 0 0; font-size: 13px; opacity: .9; display: inline-flex; align-items: center; gap: 8px; }

/* Marquee */
.marquee { background: var(--green); color: #fff; overflow: hidden; border-top: 1px solid rgba(255, 255, 255, .08); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { padding: 15px 30px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; position: relative; }
.marquee-track span::after { content: ''; position: absolute; right: -2px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--gold); }
@keyframes marquee { to { transform: translateX(-33.333%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* Sections */
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section-tight { padding: clamp(28px, 4vw, 48px) 0; }
.section-flush { padding-top: 8px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 26px; }

/* Product grid + card */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 20px; } }
.card { text-decoration: none; display: block; }
.card-media { position: relative; aspect-ratio: 3 / 4; background: var(--cream); overflow: hidden; border-radius: var(--radius); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s var(--ease), transform 1.2s var(--ease); }
.card-alt { opacity: 0; }
@media (hover: hover) { .card:hover .card-alt { opacity: 1; } .card:hover .card-media img:first-child { transform: scale(1.03); } }
.badge { position: absolute; top: 10px; left: 10px; background: #fff; color: var(--ink); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border-radius: var(--pill); }
.badge-dark { background: var(--ink); color: #fff; }
.card-body { padding-top: 12px; }
.card-title { font-weight: 500; font-size: 15px; }
.price { display: inline-flex; gap: 8px; align-items: baseline; font-size: 14.5px; }
.price-now { font-weight: 600; }
.price-was { color: var(--muted); font-size: .92em; }
.card-colors { display: flex; align-items: center; gap: 5px; margin-top: 8px; }
.card-colors-n { font-size: 12px; color: var(--muted); margin-left: 4px; }
.swatch-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; background: linear-gradient(135deg, var(--c1) 50%, var(--c2) 50%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); }

/* Story */
.story { display: grid; background: var(--green); color: #fff; }
@media (min-width: 900px) { .story { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; } }
/* The frame follows the photo's 2:3 shape so the whole picture shows, on phones and desktop. */
.story-media { position: relative; aspect-ratio: 2 / 3; overflow: hidden; }
.story-media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .story-media { max-height: 900px; } }
.story-text { padding: clamp(40px, 7vw, 96px) var(--gutter); display: flex; flex-direction: column; justify-content: center; max-width: 620px; }
@media (min-width: 900px) { .story-text { padding-left: clamp(40px, 6vw, 96px); } }
.story-text h2 { font-size: clamp(30px, 4vw, 48px); margin-bottom: 22px; }
.story-text p { color: rgba(255, 255, 255, .85); font-size: 16.5px; line-height: 1.7; }
.story-sign { color: var(--gold-soft) !important; font-weight: 600; letter-spacing: .04em; margin: 8px 0 28px !important; }
.story .btn { align-self: flex-start; }

/* Proof + UGC */
.stars { display: inline-flex; gap: 1px; color: var(--gold); vertical-align: -1px; }
.proof { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); text-decoration: none; }
.proof svg { color: var(--red); flex: none; }
.proof-lg { margin: 0; color: var(--ink-2); font-size: 14.5px; max-width: 420px; }
.ugc-rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 8px; scrollbar-width: none; }
.ugc-rail::-webkit-scrollbar { display: none; }
@media (min-width: 1280px) { .ugc-rail { padding-left: calc((100vw - var(--wrap)) / 2 + var(--gutter)); } }
.ugc { flex: 0 0 auto; width: min(62vw, 260px); margin: 0; scroll-snap-align: start; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--cream); aspect-ratio: 9 / 14; }
.ugc img { width: 100%; height: 100%; object-fit: cover; }
.ugc figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); color: #fff; font-size: 13px; }
.ugc figcaption b { display: block; margin-top: 4px; font-weight: 600; }

/* Gift */
.gift { background: var(--cream); padding: clamp(48px, 7vw, 96px) 0; }
.gift-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .gift-grid { grid-template-columns: 1.1fr .9fr; gap: 80px; } }
.gift-text h2 { margin-bottom: 16px; }
.gift-text p:last-child { color: var(--ink-2); font-size: 16px; max-width: 480px; }
.gift img { border-radius: var(--radius); width: 100%; height: auto; max-width: 440px; justify-self: center; aspect-ratio: 2 / 3; object-fit: cover; }

/* Trust row */
.trust { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 16px; }
@media (min-width: 900px) { .trust { grid-template-columns: repeat(4, 1fr); } }
.trust li { display: flex; gap: 12px; align-items: flex-start; }
.trust svg { flex: none; color: var(--green); margin-top: 1px; }
.trust strong { display: block; font-size: 14px; font-weight: 600; }
.trust span { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; }
.trust-compact { grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.trust-compact strong { font-size: 13px; }
.trust-compact span { font-size: 12px; }

/* FAQ / accordions */
.faq { margin-top: 28px; border-top: 1px solid var(--line); }
.faq details, .pdp-acc details { border-bottom: 1px solid var(--line); }
.faq summary, .pdp-acc summary { list-style: none; cursor: pointer; padding: 18px 28px 18px 0; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker, .pdp-acc summary::-webkit-details-marker { display: none; }
.faq summary::after, .pdp-acc summary::after { content: ''; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: translateY(-70%) rotate(45deg); transition: transform .2s var(--ease); }
.faq details[open] summary::after, .pdp-acc details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq p { color: var(--ink-2); padding-bottom: 6px; }
.faq-more { margin-top: 28px; }

/* Collection */
.coll-head { padding: clamp(32px, 5vw, 64px) 0 24px; }
.coll-head h1 { margin-bottom: 8px; }
.chips { display: flex; gap: 8px; overflow-x: auto; margin-top: 22px; scrollbar-width: none; }
.chip { white-space: nowrap; text-decoration: none; border: 1px solid var(--line); padding: 9px 16px; border-radius: var(--pill); font-size: 13.5px; font-weight: 500; }
.chip.active, .chip:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

/* Product page */
.pdp { display: grid; gap: 24px; padding-top: 0; }
@media (min-width: 900px) { .pdp { grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr); gap: 56px; padding-top: 28px; } }
.pdp-gallery { position: relative; margin: 0 calc(var(--gutter) * -1); }
@media (min-width: 900px) { .pdp-gallery { margin: 0; } }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; scroll-snap-align: start; margin: 0; aspect-ratio: 3 / 4; background: var(--cream); }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.gallery-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); transition: width .2s var(--ease), background .2s; }
.gallery-dots span.on { background: #fff; width: 18px; border-radius: 3px; }
@media (min-width: 900px) {
  .gallery-track { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; overflow: visible; }
  .gallery-slide { border-radius: var(--radius); overflow: hidden; }
  .gallery-slide:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 5; }
  .gallery-dots { display: none; }
}
.pdp-info { padding-bottom: 24px; }
@media (min-width: 900px) { .pdp-info { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }
.crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { text-decoration: none; }
.pdp-title { font-size: clamp(26px, 3vw, 34px); margin-bottom: 10px; }
.pdp-price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.pdp-price-row .price { font-size: 19px; }
.pdp-tagline { color: var(--ink-2); font-size: 15.5px; margin-bottom: 22px; }
.opt { margin-bottom: 20px; }
.opt-label { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; margin-bottom: 10px; color: var(--ink-2); }
.opt-label strong { color: var(--ink); font-weight: 600; }
.swatches { display: flex; gap: 6px 8px; flex-wrap: wrap; }
.swatch-item { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 52px; }
.swatch-note { font-size: 11px; line-height: 1.2; font-weight: 600; color: var(--red); white-space: nowrap; }
.swatch-note.out { color: var(--muted); font-weight: 500; }
.swatch.sold { position: relative; }
.swatch.sold .swatch-dot { opacity: .45; }
.swatch.sold::after { content: ''; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 1.5px; background: var(--muted); transform: rotate(45deg); }
.low-tag { color: var(--red); font-weight: 600; }
.swatch { width: 40px; height: 40px; border-radius: 50%; border: 1px solid transparent; background: none; padding: 3px; cursor: pointer; }
.swatch .swatch-dot { width: 100%; height: 100%; }
.swatch.on { border: 2px solid var(--green); padding: 2px; }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 8px; }
.size { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; height: 48px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); font-weight: 500; cursor: pointer; position: relative; transition: border-color .15s; }
.size:hover:not(.out) { border-color: var(--ink); }
.size.on { border: 2px solid var(--green); background: #fff; color: var(--green); font-weight: 600; }
.size-left { font-size: 10px; line-height: 1; font-weight: 600; color: var(--red); }
.size-left:empty { display: none; }
.size.on .size-left { color: var(--red); }
.size.out { color: #b7b3ab; cursor: not-allowed; background: linear-gradient(to top right, transparent calc(50% - .5px), #d9d4c9 calc(50% - .5px), #d9d4c9 calc(50% + .5px), transparent calc(50% + .5px)); }
.size.need { animation: nudge .4s; border-color: var(--danger); }
@keyframes nudge { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.stock-note { min-height: 20px; margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.stock-note.low { color: var(--red); font-weight: 600; }
.stock-note.err { color: var(--danger); }
#add-to-bag { margin-bottom: 10px; }
.pdp-cod { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--muted); margin: 14px 0 22px; }
.pdp-cod svg { width: 18px; height: 18px; }
.pdp-acc { border-top: 1px solid var(--line); }
.pdp-acc p { color: var(--ink-2); font-size: 14.5px; }
.ticks { list-style: none; padding: 0; margin: 0 0 14px; }
.ticks li { display: flex; gap: 10px; padding: 4px 0; font-size: 14.5px; color: var(--ink-2); }
.ticks svg { flex: none; color: var(--green); margin-top: 2px; }
.styling { font-style: italic; }
.size-chart-inline { border-radius: var(--radius); margin: 6px 0 16px; max-width: 360px; }
.pairs { margin-top: 26px; }
.pair { display: flex; align-items: center; gap: 14px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; margin-bottom: 8px; transition: border-color .15s; }
.pair:hover { border-color: var(--ink); }
.pair img { width: 56px; height: 72px; object-fit: cover; border-radius: 3px; }
.pair span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.pair strong { font-weight: 500; }
.pair-go { font-size: 18px; color: var(--muted); }

.sticky-atc { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; transform: translateY(110%); transition: transform .3s var(--ease); }
.sticky-atc.show { transform: none; }
.sticky-atc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; }
.sticky-atc-info strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.sticky-atc-info span { color: var(--muted); }
.sticky-atc .btn { min-height: 46px; padding: 0 22px; }
@media (min-width: 900px) { .sticky-atc { display: none; } }
.pdp-page .wa-float { bottom: 84px; }
@media (min-width: 900px) { .pdp-page .wa-float { bottom: 24px; } }

/* Modal + drawers */
.modal, .drawer { position: fixed; inset: 0; z-index: 60; visibility: hidden; }
.modal::before, .drawer::before { content: ''; position: absolute; inset: 0; background: rgba(10, 12, 10, .45); opacity: 0; transition: opacity .25s var(--ease); }
.modal.open, .drawer.open { visibility: visible; }
.modal.open::before, .drawer.open::before { opacity: 1; }
.modal-panel { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -46%); opacity: 0; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; background: #fff; border-radius: 8px; padding: 28px 24px 22px; transition: transform .25s var(--ease), opacity .25s; }
.modal.open .modal-panel { transform: translate(-50%, -50%); opacity: 1; }
.modal-panel h3 { font-size: 18px; margin-bottom: 16px; padding-right: 32px; }
.modal-panel img { width: 100%; border-radius: var(--radius); margin-bottom: 14px; }
.modal-close { position: absolute; top: 12px; right: 12px; }
.drawer-panel { position: absolute; top: 0; bottom: 0; width: min(420px, 92vw); background: #fff; display: flex; flex-direction: column; transition: transform .32s var(--ease); }
.drawer-right .drawer-panel { right: 0; transform: translateX(100%); }
.drawer-left .drawer-panel { left: 0; transform: translateX(-100%); }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 12px 12px var(--gutter); border-bottom: 1px solid var(--line); min-height: 64px; font-size: 16px; }
.menu-links { display: flex; flex-direction: column; padding: 12px var(--gutter); }
.menu-links a { text-decoration: none; padding: 15px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
.ship-meter { padding: 14px var(--gutter); background: var(--cream); font-size: 13.5px; }
.ship-meter p { margin: 0 0 8px; }
.meter { height: 4px; background: #e2dccd; border-radius: 2px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--green); width: 0; transition: width .4s var(--ease); }
.cart-lines { flex: 1; overflow-y: auto; padding: 6px var(--gutter); }
.cart-empty { text-align: center; padding: 56px 12px; color: var(--muted); }
.cart-empty .btn { margin-top: 18px; }
.cart-line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.cart-line img { width: 76px; height: 100px; object-fit: cover; border-radius: 3px; background: var(--cream); }
.cart-line-title { font-weight: 500; text-decoration: none; }
.cart-line-meta { color: var(--muted); font-size: 13px; margin: 2px 0 10px; }
.cart-line-issue { color: var(--danger); font-size: 12.5px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--pill); height: 34px; }
.qty button { width: 34px; height: 32px; border: 0; background: none; cursor: pointer; font-size: 16px; }
.qty span { min-width: 22px; text-align: center; font-size: 13.5px; }
.cart-line-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.cart-remove { background: none; border: 0; color: var(--muted); font-size: 12.5px; text-decoration: underline; cursor: pointer; padding: 0; }
.cart-foot { padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.cart-foot .row { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 15px; }
.cart-foot .cart-sub { margin-bottom: 6px; font-size: 14px; color: var(--muted); }
.cart-foot .cart-sub small { font-size: 12px; }
.cart-foot .cart-sub .free { color: var(--green); font-weight: 600; }
.cart-foot .cart-total { padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 16px; }
.cart-note { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }
.cart-note svg { width: 18px; height: 18px; }
.cart-upsell { margin: 18px 0 8px; }
.cart-upsell p { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.cart-upsell a { display: flex; gap: 12px; align-items: center; text-decoration: none; font-size: 13.5px; }
.cart-upsell img { width: 52px; height: 66px; object-fit: cover; border-radius: 3px; }

/* Floating WhatsApp + toast */
.wa-float { position: fixed; right: 16px; bottom: 20px; z-index: 25; width: 54px; height: 54px; border-radius: 50%; background: #1f9d55; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); transition: transform .2s var(--ease); }
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.06); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 80; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--pill); font-size: 14px; pointer-events: none; transition: opacity .2s, transform .2s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Footer */
.footer { background: var(--green-deep); color: rgba(255, 255, 255, .8); margin-top: 0; padding: 56px 0 0; font-size: 14px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-grid > div:first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-grid > div:first-child { grid-column: auto; } }
.footer .logo { color: #fff; }
.footer-tag { margin-top: 14px; color: var(--gold-soft); font-weight: 500; letter-spacing: .03em; }
.footer h4 { color: #fff; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; font-weight: 600; }
.footer a { display: block; text-decoration: none; padding: 4px 0; }
.footer a:hover { color: #fff; }
.footer-social { display: flex; gap: 14px; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 44px; padding-top: 20px; padding-bottom: 28px; font-size: 12.5px; color: rgba(255, 255, 255, .55); }

/* Checkout */
.checkout-page { background: var(--cream); }
.checkout-page .header { background: #fff; }
.checkout { display: grid; gap: 20px; padding-top: 20px; padding-bottom: 60px; }
@media (min-width: 960px) { .checkout { grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: 40px; padding-top: 40px; align-items: start; } }
.co-form { background: #fff; border-radius: 8px; padding: 24px 20px; order: 2; }
@media (min-width: 960px) { .co-form { order: 1; padding: 36px; } }
.co-form h1 { font-size: 28px; margin-bottom: 10px; }
.co-lead { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); background: var(--cream); padding: 12px 14px; border-radius: var(--radius); }
.co-lead svg { flex: none; color: var(--green); }
fieldset { border: 0; padding: 0; margin: 24px 0 0; }
legend { font-weight: 600; font-size: 16px; margin-bottom: 12px; padding: 0; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--ink-2); }
.field em { font-style: normal; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea, .code-row input {
  width: 100%; min-height: 50px; border: 1px solid #d8d3c8; border-radius: var(--radius); padding: 12px 14px;
  font: inherit; font-size: 16px; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 76px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .code-row input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(10, 79, 46, .12); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field-msg { display: block; color: var(--danger); font-size: 12.5px; margin-top: 5px; }
.field-row { display: grid; gap: 0 12px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.phone-input { display: flex; }
.phone-cc { display: flex; align-items: center; padding: 0 12px; border: 1px solid #d8d3c8; border-right: 0; border-radius: var(--radius) 0 0 var(--radius); background: var(--cream); font-size: 15px; color: var(--ink-2); }
.phone-input input { border-radius: 0 var(--radius) var(--radius) 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-bottom: 12px; cursor: pointer; color: var(--ink-2); }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--green); flex: none; }
.pay-opt { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--green); border-radius: var(--radius); padding: 14px 16px; background: rgba(10, 79, 46, .04); }
.pay-opt input { accent-color: var(--green); width: 18px; height: 18px; margin: 0; }
.pay-opt span { flex: 1; display: flex; flex-direction: column; font-size: 14.5px; }
.pay-opt em { font-style: normal; color: var(--muted); font-size: 13px; }
.pay-opt svg { color: var(--green); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { background: #fbeeee; color: var(--danger); padding: 12px 14px; border-radius: var(--radius); font-size: 14px; margin: 18px 0 0; }
#place-order { margin-top: 22px; }
.co-fine { font-size: 12px; color: var(--muted); text-align: center; margin: 14px 0 0; }
.co-summary { background: #fff; border-radius: 8px; order: 1; }
@media (min-width: 960px) { .co-summary { order: 2; position: sticky; top: 24px; padding: 28px; } }
.co-summary-toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; background: none; border: 0; padding: 16px 20px; cursor: pointer; font-size: 14.5px; }
.co-summary-toggle span::after { content: ' ▾'; color: var(--muted); }
.co-summary-toggle[aria-expanded="true"] span::after { content: ' ▴'; }
@media (min-width: 960px) { .co-summary-toggle { display: none; } }
.co-summary-body { padding: 0 20px 20px; display: none; }
.co-summary-body.open { display: block; }
@media (min-width: 960px) { .co-summary-body { display: block; padding: 0; } }
.co-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; font-size: 14px; }
.co-line img { width: 56px; height: 72px; object-fit: cover; border-radius: 3px; background: var(--cream); }
.co-line div { display: flex; flex-direction: column; }
.co-line div span { color: var(--muted); font-size: 12.5px; }
.code-row { display: flex; gap: 8px; margin-top: 14px; }
.code-row input { min-height: 46px; text-transform: uppercase; }
.code-row .btn { min-height: 46px; padding: 0 18px; }
.code-msg { font-size: 12.5px; margin: 6px 0 0; min-height: 18px; }
.code-msg.ok { color: var(--green); }
.code-msg.err { color: var(--danger); }
.totals { margin: 12px 0 0; }
.totals div { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; color: var(--ink-2); }
.totals dt, .totals dd { margin: 0; }
.totals .total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-size: 16px; font-weight: 600; color: var(--ink); }

/* Order confirmation */
.order-page { background: var(--cream); }
.order { padding: 40px var(--gutter) 64px; }
.order-hero { text-align: center; background: #fff; border-radius: 8px; padding: 36px 22px; }
.order-hero h1 { margin-bottom: 12px; }
.order-hero .btn { margin-top: 8px; }
.order-check { width: 54px; height: 54px; border-radius: 50%; background: var(--green); color: #fff; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.order-check svg { width: 26px; height: 26px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; background: #fff; border-radius: 8px; padding: 18px; font-size: 13.5px; color: var(--ink-2); }
.steps li::before { content: counter(s); display: inline-flex; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); align-items: center; justify-content: center; font-size: 12px; font-weight: 600; margin-bottom: 10px; }
.steps strong { display: block; color: var(--ink); font-size: 14.5px; margin-bottom: 4px; }
.order-box { background: #fff; border-radius: 8px; padding: 18px 22px; margin-bottom: 26px; }
.order-addr { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 16px; font-size: 14px; }

/* Text pages */
.prose { padding-top: 48px; padding-bottom: 72px; }
.prose h1 { margin-bottom: 26px; }
.prose h2 { font-size: 20px; margin: 30px 0 10px; }
.prose p, .prose li { color: var(--ink-2); font-size: 15.5px; line-height: 1.7; }

/* Phones: shorter hero so the next section peeks above the fold; keep copy clear of the WhatsApp button. */
@media (max-width: 767px) {
  .hero { min-height: 56svh; }
  .hero-content { padding-bottom: 24px; }
  .hero-ctas .btn { flex: 1; max-width: 200px; padding: 0 18px; }
}

/* Sale + scarcity */
.badge-r { left: auto; right: 10px; }
.badge-sale { background: var(--red); color: #fff; letter-spacing: .02em; }
.badge-low { background: #fff; color: var(--red); }
.price-sale .price-now { color: var(--red); }
.price-sale .price-was { color: var(--muted); text-decoration-thickness: 1.5px; }
.save-chip { display: inline-block; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: var(--pill); letter-spacing: .02em; align-self: center; }
.pdp-price-row .price { align-items: center; flex-wrap: wrap; }
.pdp-price-row .price-was { font-size: 16px; }
.pdp-assure { display: flex; align-items: center; gap: 8px; margin: -6px 0 14px; font-size: 13px; color: var(--ink-2); }
.pdp-assure svg { width: 17px; height: 17px; color: var(--green); flex: none; }
.sale-note { color: var(--red); font-size: 13.5px; font-weight: 500; margin: -4px 0 14px; }
.line-sale { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.line-sale strong, .co-line .line-sale { color: var(--red); }
.line-sale s { color: var(--muted); font-size: 12.5px; font-weight: 400; }
.saving-line { margin: -6px 0 12px; color: var(--red); font-weight: 600; font-size: 13.5px; text-align: right; }
.co-summary .saving-line { margin: 8px 0 0; }
.pdp-points { list-style: none; padding: 0; margin: 14px 0 22px; display: grid; gap: 8px; }
.pdp-points li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.pdp-points svg { width: 18px; height: 18px; color: var(--green); flex: none; }
.hero-micro svg { width: 18px; height: 18px; }
@media (min-width: 900px) { .trust { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 899px) { .trust:not(.trust-compact) .trust-lb { grid-column: 1 / -1; } }
.trust-compact .trust-lb { grid-column: 1 / -1; }

/* Email popup: centred card with photo on desktop, bottom sheet on phones */
.popup-panel { padding: 0; width: min(760px, calc(100vw - 32px)); display: grid; grid-template-columns: 1fr 1.1fr; overflow: hidden; }
.popup-media { background: var(--cream); }
.popup-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; margin: 0; border-radius: 0; }
.popup-body { padding: 40px 32px 28px; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.popup-body h3 { font-size: 28px; padding: 0; margin-bottom: 10px; letter-spacing: -0.02em; }
.popup-lead { color: var(--ink-2); font-size: 14.5px; margin-bottom: 18px; }
#signup-form input[type=email] { width: 100%; min-height: 50px; border: 1px solid #d8d3c8; border-radius: var(--radius); padding: 12px 14px; font: inherit; font-size: 16px; margin-bottom: 10px; }
#signup-form input[type=email]:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(10, 79, 46, .12); }
.popup-err { color: var(--red); font-size: 13px; margin: 8px 0 0; }
.popup-skip { margin: 14px auto 0; display: block; color: var(--muted); }
.popup-fine { font-size: 11.5px; color: var(--muted); margin: 10px 0 0; }
.code-box { display: flex; gap: 8px; align-items: center; justify-content: space-between; border: 1.5px dashed var(--green); border-radius: var(--radius); padding: 8px 8px 8px 16px; margin: 4px 0 14px; }
.code-box strong { font-size: 19px; letter-spacing: .08em; color: var(--green); }
.code-box .btn { min-height: 40px; padding: 0 16px; }
.popup .modal-close { z-index: 2; background: rgba(255, 255, 255, .85); }
/* Centred on every screen, over a blurred page */
.popup::before { background: rgba(10, 12, 10, .38); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.popup .popup-panel { transform: translate(-50%, -50%) scale(.96); }
.popup.open .popup-panel { transform: translate(-50%, -50%) scale(1); }
@media (max-width: 640px) {
  .popup-panel { width: calc(100vw - 32px); max-height: calc(100svh - 48px); overflow-y: auto; grid-template-columns: 1fr; border-radius: 12px; }
  /* 4:3 window starting just above his head (head begins ~19% down the photo): hair, face and the sweater all show. */
  .popup-media { width: 100%; height: min(calc((100vw - 32px) * .75), 36svh); } /* 4:3, shorter on small phones, always full width */
  .popup-media img { object-position: 50% 20%; }
  .popup-body { padding: 22px 20px 20px; }
  .popup-body h3 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .popup .popup-panel, .popup.open .popup-panel { transform: translate(-50%, -50%); } }
/* Keep the WhatsApp widget above the product page's bottom bar on phones. */
@media (max-width: 899px) { .pdp-page .wa-float { bottom: calc(80px + env(safe-area-inset-bottom)); } }

/* Customer photos inside the product info column, right under Add to bag. */
.pdp-info { min-width: 0; }
.pdp-info #reviews { padding: 24px 0 26px; scroll-margin-top: calc(var(--header-h) + 12px); }
.pdp-info #reviews .wrap { padding: 0; }
.pdp-info #reviews .section-head { display: block; margin-bottom: 14px; }
.pdp-info #reviews h2 { font-size: 20px; }
.pdp-info #reviews .proof-lg { margin-top: 6px; font-size: 13.5px; }
.pdp-info .ugc-rail { margin: 0 calc(var(--gutter) * -1); }
.pdp-info .ugc { width: min(42vw, 170px); }
@media (min-width: 900px) { .pdp-info .ugc-rail { margin: 0; padding: 0 0 8px; } }
