:root {
  --ink: #19342b;
  --forest: #15352c;
  --moss: #64745d;
  --olive: #89967b;
  --cream: #f8f3eb;
  --ivory: #fcfaf5;
  --sand: #e7dac8;
  --clay: #9a7154;
  --champagne: #c6a66d;
  --line: rgba(25, 52, 43, .18);
  --muted: #677069;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--cream); color: var(--ink); font: 15px/1.75 var(--sans); }
.panel-open { overflow: hidden; }
body::selection { background: var(--champagne); color: var(--forest); }
.skip-link { position: fixed; z-index: 200; top: 10px; left: 10px; transform: translateY(-160%); background: var(--forest); color: #fff; padding: 10px 14px; font-weight: 700; text-decoration: none; }
.skip-link:focus { transform: translateY(0); }
.visually-hidden {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #b4872e; outline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { max-width: 100%; }

.announcement {
  min-height: 31px; display: grid; place-items: center; padding: 6px 18px;
  background: var(--forest); color: #f5ead9; font-size: 9px; font-weight: 700;
  letter-spacing: .16em; line-height: 1.25; text-align: center; text-transform: uppercase;
}

.site-header {
  position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; min-height: 91px; padding: 0 clamp(22px, 5vw, 80px);
  background: rgba(252, 250, 245, .88); border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px); transition: border-color .35s ease, box-shadow .35s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 28px rgba(34, 48, 39, .06); }
.brand { display: block; width: 68px; height: 68px; flex: 0 0 auto; text-decoration: none; }
.brand-logo { display: block; width: 100%; height: 100%; object-fit: contain; }
.nav-links { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 2.2vw, 38px); }
.nav-links a, .footer-links a, .footer-social a { text-decoration: none; }
.nav-links a { position: relative; padding: 9px 0; color: var(--ink); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.nav-links a::after, .text-link::after { position: absolute; right: 0; bottom: 1px; left: 0; height: 1px; content: ''; background: var(--champagne); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.nav-links a:hover::after, .text-link:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.icon-button, .mobile-menu { border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.icon-button { padding: 8px 0; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.bag-button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; padding: 10px 13px; font: 700 10px var(--sans); letter-spacing: .12em; text-transform: uppercase; transition: background .25s, color .25s; }
.bag-button:hover { background: var(--forest); color: #fff; }
.bag-button b { display: grid; min-width: 20px; height: 20px; place-items: center; border-radius: 50%; background: var(--forest); color: var(--ivory); font-size: 9px; }
.bag-button.has-items { border-color: var(--forest); background: var(--forest); color: #fff; }
.bag-button.has-items b, .bag-button:hover b { background: var(--champagne); color: var(--forest); }
.mobile-menu { display: none; font: 700 9px var(--sans); letter-spacing: .14em; text-transform: uppercase; }

.hero { position: relative; display: grid; grid-template-columns: minmax(330px, .82fr) minmax(500px, 1.18fr); min-height: min(680px, calc(100vh - 122px)); overflow: hidden; background: var(--sand); }
.hero-product { grid-column: 2; grid-row: 1; min-height: 600px; background: url('assets/wiwi-coastal-locs.webp?v=20260905-01') center 58% / cover no-repeat; }
.hero-product::after { display: block; width: 100%; height: 100%; content: ''; background: linear-gradient(90deg, rgba(23, 47, 39, .12), transparent 35%); }
.hero-copy { z-index: 1; align-self: end; max-width: 610px; margin: 0 0 8.5vw clamp(26px, 8vw, 145px); padding: clamp(28px, 3.6vw, 54px); background: rgba(252, 250, 245, .92); box-shadow: 18px 18px 0 rgba(198, 166, 109, .52); }
.eyebrow { margin: 0 0 15px; color: var(--moss); font-size: 9px; font-weight: 700; letter-spacing: .2em; line-height: 1.3; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.045em; }
h1, h2 { font-family: var(--serif); font-weight: 500; line-height: .99; }
h1 { max-width: 520px; margin-bottom: 22px; font-size: clamp(48px, 4.7vw, 75px); }
h1 i, h2 i { color: var(--moss); font-weight: 500; }
.hero-copy > p:not(.eyebrow) { max-width: 390px; margin-bottom: 28px; color: #536057; font-size: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; border: 1px solid transparent; padding: 14px 18px; font: 700 9px var(--sans); letter-spacing: .13em; line-height: 1.2; text-decoration: none; text-transform: uppercase; transition: background .28s ease, border-color .28s ease, box-shadow .28s ease, transform .28s ease; cursor: pointer; }
.button span { font-size: 16px; font-weight: 400; }
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 20px rgba(27, 46, 37, .14); }
.button-dark { border-color: var(--forest); background: var(--forest); color: #fff; }
.button-dark:hover { border-color: var(--moss); background: var(--moss); }
.button-outline { border-color: var(--forest); color: var(--forest); }
.button-outline:hover { background: var(--forest); color: #fff; }
.button-gold { border-color: var(--champagne); background: var(--champagne); color: var(--forest); }
.text-link { position: relative; display: inline-flex; align-items: center; gap: 12px; padding-bottom: 6px; border-bottom: 1px solid rgba(25, 52, 43, .35); color: var(--ink); font-size: 9px; font-weight: 700; letter-spacing: .14em; text-decoration: none; text-transform: uppercase; }
.text-link span { font-size: 15px; font-weight: 400; }

.section-shell { padding: clamp(72px, 9vw, 145px) clamp(24px, 8vw, 130px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 52px; max-width: 1500px; margin: 0 auto 52px; }
.section-head > div { max-width: 700px; }
.section-head h2, .difference-head h2 { margin: 0; font-size: clamp(42px, 4.8vw, 74px); }
.section-head > p { max-width: 350px; margin: 0 0 6px; color: var(--muted); font-size: 14px; }

.collection { background: var(--ivory); }
.family-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 38px); max-width: 1500px; margin: 0 auto; }
.family-card { display: flex; min-width: 0; flex-direction: column; border: 1px solid rgba(25, 52, 43, .1); background: #f6f0e5; transition: transform .35s ease, box-shadow .35s ease; }
.family-card:hover { transform: translateY(-6px); box-shadow: 0 18px 35px rgba(31, 49, 39, .11); }
.family-image { position: relative; display: block; width: 100%; min-height: 380px; border: 0; background-color: #e9dfcf; background-position: center; background-repeat: no-repeat; background-size: cover; cursor: pointer; transition: filter .35s ease; }
.family-image::after { position: absolute; inset: 0; content: ''; background: linear-gradient(180deg, transparent 55%, rgba(15, 35, 27, .26)); opacity: 0; transition: opacity .35s ease; }
.family-card:hover .family-image::after { opacity: 1; }
.family-image span { display: none; }
.family-copy { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 23px 24px 25px; }
.family-copy .eyebrow { grid-column: 1 / -1; margin: 0; color: var(--moss); font-size: 8px; }
.family-size-links { display:flex; flex-wrap:wrap; gap:4px; }.family-size-links a { color:inherit; text-decoration:none; }.family-size-links a:hover,.family-size-links a:focus-visible { text-decoration:underline; }
.family-copy h3 { margin: 0; font: 500 clamp(20px, 1.65vw, 25px)/1.12 var(--serif); }
.family-copy > p:not(.eyebrow) { grid-column: 1 / -1; margin: 2px 0 5px; color: var(--muted); font-size: 11px; }
.family-bottom { display: contents; }
.family-bottom > span { align-self: center; color: var(--muted); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.family-bottom b { display: block; color: var(--ink); font: 500 18px var(--serif); letter-spacing: 0; }
.family-bottom .button { align-self: center; padding: 11px 13px; font-size: 8px; }

.kenya-section { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(290px, .85fr); gap: clamp(42px, 8vw, 150px); align-items: center; background: #e8ddd0; }
.kenya-visual { min-height: 460px; background: url('assets/wiwi-locs-lifestyle.png?v=20260826-04') center 42% / cover no-repeat; box-shadow: 20px 20px 0 rgba(198, 166, 109, .48); }
.kenya-copy { max-width: 470px; }
.kenya-copy h2, .lifestyle-copy h2, .story-copy h2 { margin-bottom: 22px; font: 500 clamp(42px, 4.3vw, 68px)/1.01 var(--serif); }
.kenya-copy > p:not(.eyebrow), .lifestyle-copy > p:not(.eyebrow), .story-copy > p:not(.eyebrow) { margin-bottom: 25px; color: #4f5e53; font-size: 14px; }
.made-in-kenya { display: inline-block; border-top: 1px solid var(--champagne); padding-top: 11px; color: var(--forest); font-size: 9px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }

.lifestyle-section { display: grid; grid-template-columns: minmax(290px, .85fr) minmax(0, 1.15fr); gap: clamp(42px, 8vw, 150px); align-items: center; background: var(--cream); }
.lifestyle-copy { max-width: 470px; justify-self: end; }
.lifestyle-photo { position: relative; min-height: 450px; overflow: hidden; background: url('assets/wiwi-outdoor-locs.png?v=20260826-04') center top / cover no-repeat; }
.lifestyle-photo::after { position: absolute; inset: 0; content: ''; background: linear-gradient(0deg, rgba(16, 37, 28, .55), transparent 45%); }
.lifestyle-note { position: absolute; z-index: 1; right: 26px; bottom: 25px; left: 26px; color: #fffaf1; }
.lifestyle-note span { display: block; font: 500 28px/1.08 var(--serif); letter-spacing: -.035em; }
.lifestyle-note small { display: block; margin-top: 7px; color: #eadac0; font-size: 8px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }

.heritage-section { background: var(--forest); color: #f9f3e9; }
.heritage-section .eyebrow { color: #d7bd85; }
.heritage-section h2 { color: #fffaf1; }
.heritage-section h2 i { color: #d7bd85; }
.heritage-section .section-head > p { color: #d4d9d0; }
.ingredient-grid { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1500px; margin: 0 auto; border-top: 1px solid rgba(244, 238, 226, .22); }
.ingredient-card { min-height: 170px; padding: 23px 20px; border-right: 1px solid rgba(244, 238, 226, .16); border-bottom: 1px solid rgba(244, 238, 226, .16); transition: background .3s ease; }
.ingredient-card:nth-child(4n) { border-right: 0; }
.ingredient-card:hover { background: rgba(255, 255, 255, .06); }
.ingredient-card > span { color: #d7bd85; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.ingredient-card h3 { margin: 27px 0 4px; color: #fffaf1; font: 500 25px var(--serif); }
.ingredient-card p { margin: 0; color: #c9d0c5; font-size: 11px; }

.story-section { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(300px, .85fr); gap: clamp(42px, 9vw, 160px); align-items: center; background: #efe7dc; }
.story-visual { display: block; position: relative; min-height: 490px; overflow: hidden; box-shadow: -18px 18px 0 rgba(198, 166, 109, .42); }
.story-bottle { position: absolute; inset: 0; background: url('assets/wiwi-outdoor-locs.png?v=20260826-04') center top / cover no-repeat; }
.story-copy { max-width: 480px; }
.story-copy sup { font-size: .45em; }
.story-section.story-text-only { display: block; background: #efe7dc; }
.story-text-only .story-copy { max-width: 670px; margin: 0 auto; text-align: center; }
.story-text-only .story-copy > p:not(.eyebrow) { max-width: 610px; margin-right: auto; margin-left: auto; }
.story-text-only .button { margin-top: 4px; }

.why-section { background: var(--ivory); }
.difference-head { max-width: 740px; margin: 0 auto 58px; text-align: center; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1500px; margin: 0 auto; }
.why-grid article { min-height: 176px; padding: 18px 25px 18px 0; border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
.why-grid article + article { padding-left: 25px; }
.why-grid article:last-child { border-right: 0; }
.why-grid span { color: var(--champagne); font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.why-grid h3 { margin: 34px 0 6px; font: 500 23px var(--serif); }
.why-grid p { margin: 0; color: var(--muted); font-size: 11px; }

.testimonials-section { background: #e4d7c7; padding-top: clamp(44px, 5vw, 74px); padding-bottom: clamp(44px, 5vw, 74px); }
.reviews-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; max-width: 1180px; margin: 0 auto 27px; }
.reviews-heading h2 { max-width: 530px; margin: 8px 0 0; font: 500 clamp(29px, 3vw, 43px)/1.06 var(--serif); }
.reviews-heading h2 i { color: var(--moss); }
.review-summary { min-width: 150px; text-align: right; color: var(--ink); }
.review-summary b { display: block; font: 500 27px var(--serif); }
.review-summary span { color: var(--muted); font-size: 10px; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 42px); max-width: 1180px; margin: 0 auto; }
.testimonial-grid article { display: flex; min-height: 145px; flex-direction: column; padding: 14px 0 0; border-top: 1px solid rgba(25, 52, 43, .38); }
.testimonial-grid article > p { margin: 7px 0 18px; font: 500 clamp(15px, 1.3vw, 18px)/1.45 var(--serif); letter-spacing: -.01em; }
.review-stars { color: #745516; font-size: 12px; letter-spacing: .08em; }
.testimonial-byline { margin-top: auto; }
.testimonial-byline b { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.testimonial-byline span { color: #56665d; font-size: 9px; }
.verified-review { display: inline-block; margin-left: 5px; color: #315f45; font-weight: 700; }
.reviews-empty { grid-column: 1 / -1; margin: 0; padding: 20px 0; border-top: 1px solid rgba(25, 52, 43, .38); color: var(--muted); font-size: 13px; }
.review-submission { max-width: 820px; margin: 28px auto 0; border-top: 1px solid rgba(25, 52, 43, .28); }
.review-submission summary { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; cursor: pointer; color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .1em; list-style: none; text-transform: uppercase; }
.review-submission summary::-webkit-details-marker { display: none; }
.review-submission[open] summary span { transform: rotate(45deg); }
.review-form { padding: 20px; background: rgba(252, 250, 245, .62); }
.review-form > p { margin-top: 0; color: var(--muted); font-size: 11px; }
.review-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.review-form label { display: block; margin-bottom: 12px; color: var(--ink); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.review-form input, .review-form select, .review-form textarea { display: block; width: 100%; margin-top: 6px; border: 1px solid rgba(25, 52, 43, .3); background: #fffdf8; padding: 10px; color: var(--ink); font: 13px var(--sans); }
.review-form-status { min-height: 22px; margin: 10px 0 0; font-size: 12px; }
.review-form-status.success { color: #315f45; }.review-form-status.error { color: #92372f; }
.review-modal-card { width: min(720px, 100%); }
.review-modal-card .review-form { margin-top: 22px; }

.journal-section { background: var(--ivory); }
.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 38px); max-width: 1500px; margin: 0 auto; }
.journal-grid article { min-width: 0; }
.journal-image { min-height: 330px; margin-bottom: 20px; background-color: #dacdbd; background-position: center; background-repeat: no-repeat; background-size: cover; transition: transform .4s ease, filter .4s ease; }
.journal-grid article:hover .journal-image { filter: saturate(.9) contrast(1.04); transform: scale(.985); }
.journal-sisterlocks { background-image: url('assets/mist-50ml.png?v=20260826-04'); }
.journal-rosemary { background-image: url('assets/oil-100ml.png?v=20260826-04'); }
.journal-scalp { background-image: url('assets/scalp-soother-50ml.png?v=20260826-04'); }
.journal-grid article > p { margin-bottom: 7px; color: var(--moss); font-size: 9px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.journal-grid h3 { max-width: 350px; margin-bottom: 16px; font: 500 clamp(22px, 2vw, 29px)/1.16 var(--serif); }
.journal-grid a { display: inline-flex; gap: 9px; border-bottom: 1px solid var(--line); padding-bottom: 6px; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }

.wholesale-section { position: relative; overflow: hidden; background: var(--forest); color: #fffaf1; }
.wholesale-section::before { position: absolute; inset: 0; content: ''; background: radial-gradient(circle at 85% 15%, rgba(198, 166, 109, .2), transparent 22%), linear-gradient(125deg, transparent 45%, rgba(255, 255, 255, .04)); }
.wholesale-inner { position: relative; display: grid; grid-template-columns: minmax(300px, 1fr) minmax(280px, .72fr); gap: clamp(48px, 10vw, 180px); align-items: center; max-width: 1500px; margin: 0 auto; }
.wholesale-copy .eyebrow { color: #d7bd85; }
.wholesale-copy h2 { max-width: 530px; margin-bottom: 20px; font: 500 clamp(49px, 5vw, 76px)/1 var(--serif); }
.wholesale-copy h2 i { color: #d7bd85; }
.wholesale-copy > p:not(.eyebrow) { max-width: 480px; margin-bottom: 28px; color: #d5ddd1; font-size: 14px; }
.partner-grid { display: grid; grid-template-columns: 1fr 1fr; }
.partner-grid div { padding: 28px 17px; border: 1px solid rgba(238, 226, 200, .25); color: #f9f1e2; font: 500 clamp(20px, 2vw, 29px)/1.1 var(--serif); }
.partner-grid div:nth-child(2n) { border-left: 0; }
.partner-grid div:nth-child(n+3) { border-top: 0; }

.newsletter-section { display: flex; align-items: center; justify-content: space-between; gap: 70px; background: #d9c9b4; }
.newsletter-section h2 { margin-bottom: 9px; font: 500 clamp(39px, 4.2vw, 63px)/1 var(--serif); }
.newsletter-section h2 i { color: var(--moss); }
.newsletter-section > div > p:not(.eyebrow) { margin: 0; color: #5d6259; }
.newsletter-section form { width: min(440px, 100%); }
.newsletter-section form label { display: block; color: var(--forest); font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.newsletter-section form > div { display: flex; gap: 10px; border-bottom: 1px solid rgba(25, 52, 43, .55); padding-bottom: 9px; }
.newsletter-section input { width: 100%; border: 0; outline: none; background: transparent; color: var(--ink); padding: 9px 0 4px; }
.newsletter-section input::placeholder { color: #77796e; }
.newsletter-section form button { border: 0; background: var(--forest); color: #fff; cursor: pointer; padding: 10px 13px; font: 700 9px var(--sans); letter-spacing: .1em; text-transform: uppercase; transition: background .25s; }
.newsletter-section form button:hover { background: var(--moss); }

footer { padding: 72px clamp(24px, 8vw, 130px) 24px; background: #10271f; color: #e8ece3; }
.footer-top { display: flex; align-items: end; justify-content: space-between; gap: 40px; padding-bottom: 49px; border-bottom: 1px solid rgba(233, 239, 228, .2); }
.footer-top .brand { color: #fffaf1; }
.footer-top .brand small { display: none; }
.footer-top h2 { margin: 29px 0 0; color: #fffaf1; font: 500 clamp(30px, 3vw, 46px)/1 var(--serif); }
.footer-top h2 i { color: #c8b688; }
.footer-social { display: flex; flex-wrap: wrap; gap: 19px; }
.footer-social a { color: #e7ece2; font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.footer-links { display: grid; grid-template-columns: 1.1fr 1.15fr 1.25fr .75fr; gap: 30px; padding: 43px 0; }
.footer-links div { display: flex; flex-direction: column; gap: 8px; }
.footer-links b { margin-bottom: 5px; color: #b6c0af; font-size: 8px; letter-spacing: .16em; text-transform: uppercase; }
.footer-links a, .footer-links span { color: #e3e7df; font-size: 10px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid rgba(233, 239, 228, .2); padding-top: 18px; color: #b7c0b4; font-size: 9px; }
.footer-bottom div { display: flex; gap: 18px; }
.footer-bottom a { color: inherit; text-decoration: none; }

.overlay { position: fixed; z-index: 50; inset: 0; background: rgba(13, 28, 22, .52); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; z-index: 60; top: 0; right: 0; bottom: 0; display: flex; width: min(470px, 100vw); flex-direction: column; transform: translateX(104%); background: var(--ivory); padding: 28px; box-shadow: -12px 0 40px rgba(17, 37, 28, .16); transition: transform .38s cubic-bezier(.2, .7, .2, 1); }
.drawer.open { transform: translateX(0); }
.drawer-head { position: relative; padding: 5px 43px 20px 0; border-bottom: 1px solid var(--line); }
.drawer-head .eyebrow { margin-bottom: 8px; }
.drawer h2, .modal-card h2 { margin: 0; font: 500 32px var(--serif); }
.drawer h2 span { color: var(--moss); font-size: 17px; }
.close { border: 0; background: transparent; color: var(--ink); cursor: pointer; font: 400 32px var(--serif); line-height: 1; }
.drawer-head .close { position: absolute; top: 7px; right: 0; }
.cart-items { flex: 1; overflow: auto; padding: 9px 0; }
.empty-state { padding: 80px 20px; color: var(--muted); text-align: center; font: 500 19px var(--serif); }
.cart-item { display: grid; grid-template-columns: 78px 1fr auto; gap: 14px; padding: 15px 0; border-bottom: 1px solid rgba(25, 52, 43, .1); }
.cart-thumb { height: 86px; background-color: var(--sand); background-position: center; background-repeat: no-repeat; background-size: cover; }
.cart-item h4 { margin: 0; font: 500 16px/1.2 var(--serif); }
.cart-item p { margin: 4px 0; color: var(--muted); font-size: 9px; }
.cart-quantity { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.cart-quantity button, .remove { border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.cart-quantity button { padding: 0; font-size: 18px; }
.cart-quantity b { font-size: 11px; }
.remove { display: block; margin: 8px 0 0 auto; padding: 0; color: var(--muted); font-size: 8px; letter-spacing: .08em; text-decoration: underline; text-transform: uppercase; }
.wholesale-active { color: var(--moss) !important; font-weight: 700; }
.cart-summary { padding-top: 18px; border-top: 1px solid var(--line); }
.cart-summary > div, .checkout-breakdown > div, .checkout-total { display: flex; align-items: center; justify-content: space-between; }
.cart-summary > div { font-size: 14px; }
.cart-summary small { display: block; margin: 7px 0 16px; color: var(--muted); font-size: 9px; }
.full { width: 100%; }
.continue { display: block; margin: 16px auto 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; padding: 0 0 4px; font-size: 8px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.search-panel { position: fixed; z-index: 70; inset: 0; transform: translateY(-102%); overflow: auto; background: var(--cream); padding: 14vh 13vw; transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.search-panel.open { transform: translateY(0); }
.search-panel .close { position: absolute; top: 38px; right: 5vw; }
.search-panel input { width: 100%; border: 0; border-bottom: 1px solid var(--line); outline: 0; background: transparent; padding: 12px 0; color: var(--ink); font: 500 clamp(28px, 3.8vw, 56px) var(--serif); }
.search-result { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding: 18px 0; cursor: pointer; }
.search-result b { font: 500 clamp(19px, 2vw, 26px) var(--serif); }
.search-result span { color: var(--moss); font-size: 8px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.modal { position: fixed; z-index: 80; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(13, 28, 22, .58); padding: 18px; }
.modal.open { display: flex; }
.modal-card { position: relative; width: min(680px, 100%); max-height: 94vh; overflow: auto; background: var(--ivory); padding: 38px; box-shadow: 0 22px 55px rgba(10, 27, 20, .22); }
.modal-card > .close { position: absolute; top: 18px; right: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal label { display: block; margin-bottom: 12px; color: var(--ink); font-size: 8px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.modal label small { font-weight: 400; text-transform: none; }
.modal input:not([type=radio]), .modal select, .modal textarea { display: block; width: 100%; margin-top: 6px; border: 1px solid rgba(25, 52, 43, .25); border-radius: 0; outline-color: var(--moss); background: #fffdf8; padding: 11px; color: var(--ink); font-size: 13px; }
.delivery-options { display: grid; gap: 8px; margin-top: 5px; }
.delivery-option { display: grid !important; grid-template-columns: 20px 1fr; gap: 1px 8px; border: 1px solid rgba(25, 52, 43, .25); padding: 12px !important; cursor: pointer; font-size: 10px !important; font-weight: 500 !important; letter-spacing: 0 !important; text-transform: none !important; transition: border-color .18s ease, background .18s ease; }
.delivery-option:has(input:checked) { border-color: var(--forest); background: rgba(198, 166, 109, .12); box-shadow: inset 3px 0 0 var(--champagne); }
.delivery-option input { grid-row: 1 / 3; align-self: center; margin: 0; accent-color: var(--forest); }
.delivery-option b { font-size: 11px; }
.delivery-option small { grid-column: 2; color: var(--muted); font-size: 9px; font-weight: 400; }
.delivery-option span { color: inherit; font-size: inherit; }
.checkout-reassurance { margin: 13px 0 20px; border-left: 2px solid var(--champagne); padding-left: 10px; color: var(--muted); font-size: 10px; }
.checkout-breakdown { display:grid; gap:9px; margin:21px 0; padding-top:14px; border-top:1px solid var(--line); }.checkout-breakdown > div { color:var(--muted); font-size:12px; }.checkout-breakdown > div b { color:var(--forest); }.checkout-breakdown #checkoutDiscountRow b { color:#2f7d4c; }.checkout-total { margin:8px 0 0; padding-top:11px; border-top:1px solid var(--line); color:var(--forest) !important; }
.checkout-total b { font: 500 25px var(--serif); }
#checkoutForm { padding-bottom: 82px; }
.mpesa { position: fixed; z-index: 91; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); width: min(604px, calc(100vw - 76px)); transform: translateX(-50%); border: 0; background: #2f944d; color: #fff; cursor: pointer; padding: 16px; box-shadow: 0 0 0 10px rgba(252, 250, 245, .96), 0 -8px 24px rgba(25, 52, 43, .16); font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.mpesa i { margin-right: 7px; border-radius: 2px; background: #fff; color: #2f944d; padding: 3px 6px; font: 700 17px var(--serif); }

.product-modal-card { width: min(1050px, 100%); border-top: 4px solid var(--champagne); }
.product-detail { display: grid; grid-template-columns: minmax(300px, .82fr) minmax(320px, 1fr); gap: 42px; }
.detail-gallery { position: sticky; top: 0; align-self: start; width: min(100%, 420px); padding-top: 2px; }
.detail-image { display: block; width: 100%; aspect-ratio: 1 / 1.12; border: 0; background-color: var(--sand); background-position: center; background-repeat: no-repeat; background-size: cover; cursor: zoom-in; }
.detail-thumbs { display: flex; gap: 8px; margin-top: 9px; }
.detail-thumbs button { width: 74px; height: 74px; border: 1px solid var(--line); background-position: center; background-repeat: no-repeat; background-size: cover; cursor: pointer; }
.detail-thumbs button.selected { outline: 2px solid var(--champagne); outline-offset: 1px; }
.detail-gallery small { display: block; margin-top: 8px; color: var(--muted); font-size: 9px; }
.detail-status { display: inline-block; background: #e4ecdf; color: var(--forest); padding: 5px 8px; font-size: 8px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.detail-status.low-status { background: #efe0ce; color: #8e5e35; }
.detail-content h2 { margin: 14px 0; font: 500 clamp(37px, 4vw, 54px)/1 var(--serif); }
.tagline { color: var(--muted); font-size: 13px; }
.detail-price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 22px 0 10px; }
.detail-price-grid div { background: #f1eadf; padding: 13px; }
.detail-price-grid span { display: block; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.detail-price-grid b { font: 500 20px var(--serif); }
.wholesale-note { color: var(--moss); font-size: 10px; }
.detail-content h3 { margin: 29px 0 8px; font: 500 23px var(--serif); }
.detail-content ul { padding-left: 18px; color: #566257; font-size: 12px; }
.ingredient-details div { padding: 9px 0; border-bottom: 1px solid rgba(25, 52, 43, .12); }
.ingredient-details p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.size-picker { display: flex; flex-wrap: wrap; gap: 8px; margin: 11px 0 21px; }
.size-picker button,.size-picker a { display: flex; min-width: 90px; flex: 1; flex-direction: column; gap: 3px; border: 1px solid var(--line); background: #fffdf9; color:var(--ink); cursor: pointer; padding: 10px; text-align: left; text-decoration:none; }
.size-picker button.selected,.size-picker a.selected { border-color: var(--champagne); box-shadow: inset 0 0 0 1px var(--champagne); }
.size-picker button:disabled,.size-picker a.disabled { cursor: not-allowed; opacity: .48; }
.size-picker b { font: 500 17px var(--serif); }
.size-picker span { color: var(--muted); font-size: 9px; }
.review-line { color: var(--champagne); }
.faq-mini { color: #566257; font-size: 12px; }
.related-products { display: flex; flex-wrap: wrap; gap: 8px; }
.related-products button,.related-products a { border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; padding: 7px 12px; font: 700 9px var(--sans); letter-spacing: .08em; text-decoration:none; }
.zoom-card { position: relative; max-width: min(790px, 96vw); max-height: 92vh; background: var(--ivory); padding: 14px; }
.zoom-card .close { position: absolute; z-index: 1; top: 20px; right: 20px; color: #fff; }
.zoom-card img { display: block; max-width: 100%; max-height: 86vh; }
.success { max-width: 510px; padding: 56px; text-align: center; }
.success-mark { display: grid; width: 52px; height: 52px; place-items: center; margin: 0 auto 17px; border-radius: 50%; background: var(--forest); color: #fff; font-size: 24px; }
.success > p:not(.eyebrow) { color: var(--muted); }
.added-to-bag { max-width: 510px; padding: 52px; text-align: center; }
.added-to-bag > p:not(.eyebrow) { color: var(--muted); }
.added-to-bag-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 27px; }
.added-to-bag-actions .button { min-height: 52px; justify-content: center; }
.toast { position: fixed; z-index: 100; bottom: 24px; left: 50%; transform: translate(-50%, 100px); background: var(--forest); color: #fff; padding: 13px 20px; box-shadow: 0 9px 25px rgba(12, 29, 21, .2); font-size: 11px; opacity: 0; transition: transform .3s ease, opacity .3s ease; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  .site-header { grid-template-columns: auto 1fr auto; }
  .nav-links { gap: 18px; }
  .hero { grid-template-columns: .85fr 1.15fr; }
  .hero-copy { margin-left: 5vw; }
  .family-image { min-height: 315px; }
  .kenya-visual, .lifestyle-photo, .story-visual { min-height: 390px; }
  .ingredient-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 760px) {
  body { font-size: 14px; }
  .announcement { min-height: 30px; font-size: 7px; letter-spacing: .12em; }
  .site-header { display: flex; min-height: 76px; padding: 0 20px; }
  .brand { width: 54px; height: 54px; }
  .mobile-menu { display: block; margin-left: auto; margin-right: 15px; }
  .nav-links { position: absolute; top: 75px; right: 0; left: 0; display: none; align-items: stretch; flex-direction: column; gap: 0; border-bottom: 1px solid var(--line); background: rgba(252, 250, 245, .98); padding: 12px 20px 18px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 0; }
  .nav-links a::after { display: none; }
  .header-actions { gap: 10px; }
  .icon-button { display: none; }
  .bag-button { padding: 8px 9px; font-size: 8px; }
  .hero { display: flex; min-height: 0; flex-direction: column; }
  .hero-product { order: 1; min-height: 445px; background-position: center 50%; }
  .hero-copy { order: 2; max-width: none; margin: 0; padding: 42px 24px 46px; box-shadow: none; }
  h1 { font-size: clamp(43px, 12vw, 59px); }
  .hero-copy > p:not(.eyebrow) { font-size: 13px; }
  .hero-actions { align-items: flex-start; gap: 18px; }
  .section-shell { padding: 65px 24px; }
  .section-head { display: block; margin-bottom: 35px; }
  .section-head h2, .difference-head h2 { font-size: clamp(38px, 11vw, 52px); }
  .section-head > p { margin-top: 18px; font-size: 13px; }
  .family-grid { display: grid; grid-auto-columns: minmax(260px, 84vw); grid-auto-flow: column; grid-template-columns: none; gap: 15px; overflow-x: auto; margin-right: -24px; padding-right: 24px; scroll-snap-type: x mandatory; }
  .family-card { scroll-snap-align: start; }
  .family-image { min-height: 330px; }
  .family-copy { padding: 19px; }
  .family-copy h3 { font-size: 22px; }
  .kenya-section, .lifestyle-section, .story-section { grid-template-columns: 1fr; gap: 35px; }
  .kenya-visual, .lifestyle-photo, .story-visual { min-height: 390px; }
  .kenya-copy, .lifestyle-copy, .story-copy { max-width: none; justify-self: auto; }
  .kenya-copy h2, .lifestyle-copy h2, .story-copy h2 { font-size: clamp(39px, 11vw, 53px); }
  .lifestyle-copy { order: 2; }
  .lifestyle-photo { order: 1; }
  .lifestyle-note { right: 20px; bottom: 20px; left: 20px; }
  .ingredient-grid { grid-template-columns: 1fr 1fr; }
  .ingredient-card { min-height: 152px; padding: 18px 15px; }
  .ingredient-card:nth-child(4n) { border-right: 1px solid rgba(244, 238, 226, .16); }
  .ingredient-card:nth-child(2n) { border-right: 0; }
  .ingredient-card h3 { margin-top: 19px; font-size: 22px; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .why-grid article { min-height: 150px; padding: 16px !important; border-right: 1px solid var(--line); }
  .why-grid article:nth-child(2n) { border-right: 0; }
  .why-grid h3 { margin-top: 25px; font-size: 20px; }
  .reviews-heading { display: block; }
  .review-summary { margin-top: 14px; text-align: left; }
  .testimonial-grid { grid-template-columns: 1fr; gap: 20px; }
  .testimonial-grid article { min-height: 0; }
  .review-form .form-grid { grid-template-columns: 1fr; }
  .journal-grid { grid-template-columns: 1fr; gap: 38px; }
  .journal-image { min-height: 290px; }
  .wholesale-inner { grid-template-columns: 1fr; gap: 42px; }
  .wholesale-copy h2 { font-size: clamp(46px, 12vw, 58px); }
  .newsletter-section { display: block; }
  .newsletter-section form { margin-top: 30px; }
  footer { padding: 56px 24px 21px; }
  .footer-top { display: block; padding-bottom: 36px; }
  .footer-social { margin-top: 27px; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 29px 18px; }
  .footer-bottom { display: block; line-height: 2; }
  .footer-bottom div { margin-top: 6px; }
  .drawer { padding: 22px; }
  .cart-item { grid-template-columns: 64px 1fr auto; gap: 10px; }
  .cart-thumb { height: 72px; }
  .search-panel { padding: 13vh 24px; }
  .modal { padding: 0; align-items: end; }
  .modal-card { width: 100%; max-height: 92vh; padding: 30px 20px; }
  .form-grid, .product-detail { grid-template-columns: 1fr; }
  .detail-gallery { position: static; width: min(100%, 410px); margin: 0 auto; }
  .detail-image { aspect-ratio: 1 / 1; }
  .detail-thumbs button { width: 66px; height: 66px; }
  .family-detail [data-detail-add] { position: sticky; bottom: 0; width: 100%; box-shadow: 0 -12px 25px rgba(252, 250, 245, .94); }
  .success { padding: 45px 24px; }
  .added-to-bag { padding: 45px 24px; }
}

@media (max-width: 380px) {
  .hero-product { min-height: 390px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .family-grid { grid-auto-columns: 87vw; }
  .ingredient-grid, .why-grid { grid-template-columns: 1fr; }
  .ingredient-card, .why-grid article { border-right: 0 !important; }
  .footer-links { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* The collection now leads directly into products, without a separate title block. */
#shop.collection { padding-top: 56px; }
@media (max-width: 760px) { #shop.collection { padding-top: 38px; } }

.product-presentation { padding-top: 12px; padding-bottom: clamp(62px, 8vw, 112px); }
.showcase-gallery { position: relative; width: min(100%, 650px); margin: 0 auto; }
.showcase-viewport { width: 100%; aspect-ratio: var(--showcase-ratio, 1920 / 1344); overflow: hidden; background: #ebe7df; transition: aspect-ratio .35s ease; }
.showcase-track { display: flex; height: 100%; transition: transform .7s cubic-bezier(.22, .61, .36, 1); will-change: transform; }
.showcase-slide { min-width: 100%; height: 100%; margin: 0; background: #ebe7df; }
.showcase-slide picture { display: block; width: 100%; height: 100%; }
.showcase-slide img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.showcase-slide:nth-child(2) img { width: 100%; margin: 0; object-fit: contain; object-position: center; }
.showcase-arrow { position: absolute; z-index: 2; bottom: 16%; display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(255, 255, 255, .58); border-radius: 50%; background: rgba(21, 53, 44, .72); color: #fff; cursor: pointer; font-size: 15px; opacity: .82; transition: opacity .18s ease, background .18s ease; }
.showcase-arrow:hover, .showcase-arrow:focus-visible { background: rgba(21, 53, 44, .9); opacity: 1; }
.showcase-prev { left: 14px; }
.showcase-next { right: 14px; }
.showcase-dots { position: absolute; z-index: 2; right: 0; bottom: 14px; left: 0; display: flex; justify-content: center; gap: 8px; }
.showcase-dots button { width: 9px; height: 9px; border: 1px solid var(--forest); border-radius: 50%; background: rgba(252, 250, 245, .85); cursor: pointer; padding: 0; }
.showcase-dots button.active { background: var(--champagne); box-shadow: 0 0 0 3px rgba(252, 250, 245, .72); }

/* Referral programme */
.referral-section { padding-top: clamp(72px, 9vw, 132px); padding-bottom: clamp(72px, 9vw, 132px); }
.referral-heading, .referral-admin-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .55fr); gap: 60px; align-items: end; margin-bottom: 48px; }
.referral-heading h2, .referral-admin-head h2 { max-width: 720px; font: 500 clamp(42px, 5vw, 72px)/.98 var(--serif); }
.referral-heading > p, .referral-admin-head > p { max-width: 380px; margin-bottom: 8px; color: var(--muted); font-size: 15px; }
.referral-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); background: #eee6d9; }
.partner-application, .partner-dashboard { padding: clamp(28px, 4vw, 56px); }
.partner-application { background: #dfd0bc; }
.partner-application h3, .partner-dashboard h3, .admin-list-head h3 { margin: 9px 0; font: 500 clamp(26px, 2.4vw, 36px)/1.1 var(--serif); }
.partner-application > p:not(.eyebrow) { max-width: 380px; margin-bottom: 22px; color: var(--muted); font-size: 13px; }
.partner-application .form-grid { gap: 15px; margin-bottom: 20px; }
.partner-application label, .admin-settings label { color: var(--ink); font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.partner-application input, .admin-partner-form input, .admin-toolbar input, .admin-toolbar select, .admin-settings input { width: 100%; margin-top: 7px; border: 1px solid rgba(25,52,43,.24); border-radius: 0; background: rgba(255,255,255,.45); color: var(--ink); font: 400 13px var(--sans); outline-color: var(--champagne); }
.partner-application input { padding: 13px 12px; }
.partner-application .button { margin-top: 3px; }
.partner-dashboard { background: var(--forest); color: #faf5eb; }
.partner-dashboard .eyebrow { color: #d9bf87; }
.partner-dashboard-head { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.partner-selector { display: grid; gap: 6px; min-width: 145px; color: #dfe8dd; font-size: 8px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.partner-selector select { border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fffaf0; padding: 8px; font: 600 10px var(--sans); }
.partner-selector option { color: var(--ink); }
.partner-code-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding: 17px 0; border-top: 1px solid rgba(255,255,255,.22); border-bottom: 1px solid rgba(255,255,255,.22); }
.partner-code-row span, .partner-stat-grid span, .partner-total span { display: block; color: #bdcbbd; font-size: 8px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.partner-code-row b { display: block; margin-top: 5px; color: #f3d18d; font: 500 27px var(--serif); letter-spacing: .07em; }
.partner-code-row button, .record-actions button { border: 1px solid rgba(255,255,255,.38); background: transparent; color: #fffaf0; padding: 10px 12px; font: 700 8px var(--sans); letter-spacing: .09em; text-transform: uppercase; }
.partner-link { overflow-wrap: anywhere; margin: 14px 0 23px; color: #d6e0d2; font-size: 11px; }
.partner-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.2); }
.partner-stat-grid div { min-height: 88px; padding: 14px; background: #173c31; }
.partner-stat-grid b { display: block; margin-top: 9px; color: #fffaf1; font: 500 19px var(--serif); }
.partner-total { display: flex; align-items: center; justify-content: space-between; margin-top: 1px; padding: 17px 14px; background: #d6b679; color: var(--forest); }
.partner-total span { color: var(--forest); }
.partner-total b { font: 500 24px var(--serif); }
.dashboard-empty { margin: 30px 0 0; color: #d3dfd1; font-size: 13px; line-height: 1.7; }

.referral-admin { padding-top: clamp(58px, 7vw, 94px); padding-bottom: clamp(76px, 8vw, 116px); border-top: 1px solid var(--line); }
.referral-admin-head { margin-bottom: 31px; }
.admin-settings { display: flex; flex-wrap: wrap; gap: 16px 38px; align-items: center; padding: 18px 20px; background: #ebe2d5; }
.admin-settings > label:first-child { display: flex; align-items: center; gap: 11px; }
.admin-settings span { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; }
.admin-settings input[type=number] { width: 68px; margin: 0; padding: 7px; }
.toggle-control { display: flex; align-items: center; gap: 9px; }
.toggle-control input { width: auto; margin: 0; accent-color: var(--forest); }
.admin-create-partner { margin-top: 26px; padding: 22px; border: 1px solid var(--line); }
.admin-create-partner .eyebrow { margin-bottom: 14px; }
.admin-partner-form { display: grid; grid-template-columns: 1.1fr 1.2fr 1fr .8fr auto; gap: 10px; }
.admin-partner-form input, .admin-toolbar input, .admin-toolbar select { min-height: 42px; margin: 0; padding: 10px 11px; }
.admin-partner-form .button { min-height: 42px; padding: 0 15px; white-space: nowrap; }
.admin-toolbar { display: grid; grid-template-columns: minmax(220px, 1fr) 180px 145px auto; gap: 10px; margin: 26px 0 18px; }
.admin-toolbar .button { min-height: 42px; padding: 0 16px; white-space: nowrap; }
.admin-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.admin-list-head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.admin-list-head h3 { margin: 0; font-size: 25px; }
.admin-list-head span { color: var(--muted); font-size: 10px; }
.admin-list { display: grid; gap: 10px; padding-top: 12px; }
.admin-record { display: flex; align-items: start; justify-content: space-between; gap: 15px; padding: 16px; background: #f0eadf; }
.admin-record h4 { margin: 7px 0 4px; font: 500 18px var(--serif); }
.admin-record h4 small { color: var(--moss); font: 700 9px var(--sans); letter-spacing: .08em; }
.admin-record p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.record-status { display: inline-block; padding: 4px 7px; background: #ddd3c2; color: var(--forest); font-size: 7px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.record-status.pending { background: #ead9a4; }
.record-status.approved, .record-status.paid { background: #c8d7c4; }
.record-status.cancelled { background: #d9c7c0; }
.record-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 6px; }
.record-actions button { border-color: var(--line); color: var(--forest); padding: 8px 9px; }
.record-actions button:last-child { border-color: #b38c79; color: #785345; }

.referral-code-field { margin: 18px 0; padding: 15px; background: #f1eadf; }
.referral-code-field > label { display: block; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.referral-code-field > p { margin: 6px 0 11px; color: var(--muted); font-size: 11px; }
.referral-code-field > div { display: flex; }
.referral-code-field input { min-width: 0; flex: 1; border: 1px solid var(--line); padding: 11px; font: 600 12px var(--sans); letter-spacing: .07em; text-transform: uppercase; }
.referral-code-field button { border: 1px solid var(--forest); background: var(--forest); color: #fff; padding: 0 14px; font: 700 9px var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.referral-code-status { display: block; min-height: 14px; margin-top: 8px; font-size: 10px; }
.referral-code-status.valid { color: #35673b; font-weight: 700; }
.referral-code-status.invalid { color: #9a4f43; }

@media (max-width: 900px) {
  .referral-heading, .referral-admin-head, .referral-grid, .admin-split { grid-template-columns: 1fr; }
  .referral-heading, .referral-admin-head { gap: 20px; }
  .admin-partner-form { grid-template-columns: 1fr 1fr; }
  .admin-toolbar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .referral-heading h2, .referral-admin-head h2 { font-size: 43px; }
  .partner-application, .partner-dashboard { padding: 28px 21px; }
  .partner-dashboard-head { display: block; }
  .partner-selector { margin-top: 16px; width: 100%; }
  .partner-stat-grid { grid-template-columns: 1fr 1fr; }
  .admin-settings { display: grid; }
  .admin-settings > label:first-child { display: grid; gap: 7px; }
  .admin-partner-form, .admin-toolbar { grid-template-columns: 1fr; }
  .admin-record { display: block; }
  .record-actions { justify-content: start; margin-top: 13px; }
}

/* Small-screen shopping: one clear path from product to payment. */
@media (max-width: 760px) {
  .site-header { min-height: 68px; padding: 0 14px; }
  .brand { width: 48px; height: 48px; }
  .mobile-menu, .bag-button { min-height: 44px; }
  .mobile-menu { min-width: 54px; margin-right: 6px; }
  .bag-button { padding: 9px 11px; font-size: 9px; }
  .bag-button b { min-width: 22px; height: 22px; font-size: 10px; }
  .nav-links { top: 67px; }
  .nav-links a { min-height: 44px; display: flex; align-items: center; }

  .hero-product { min-height: 360px; }
  .hero-copy { padding: 30px 20px 36px; }
  h1 { font-size: clamp(39px, 11vw, 50px); }
  .hero-actions .button { min-height: 50px; }

  #shop.collection { padding: 30px 16px 48px; }
  .family-grid { grid-template-columns: 1fr; grid-auto-columns: auto; grid-auto-flow: row; gap: 14px; overflow: visible; margin-right: 0; padding-right: 0; scroll-snap-type: none; }
  .family-card { display: grid; grid-template-columns: minmax(125px, 42%) minmax(0, 1fr); min-height: 235px; scroll-snap-align: none; }
  .family-image { min-height: 235px; height: 100%; }
  .family-copy { display: block; padding: 16px 14px; }
  .family-copy h3 { margin-top: 7px; font-size: clamp(19px, 5.6vw, 23px); }
  .family-copy > p:not(.eyebrow) { display: none; }
  .family-bottom { display: grid; gap: 10px; margin-top: 17px; }
  .family-bottom > span { display: block; }
  .family-bottom b { font-size: 19px; }
  .family-bottom .button { width: 100%; min-height: 46px; padding: 11px 9px; }

  .drawer { width: 100%; height: 100dvh; padding: 16px; }
  .drawer-head { padding-right: 52px; }
  .drawer-head .close, .modal-card > .close { display: grid; width: 44px; height: 44px; place-items: center; top: 8px; right: 8px; border-radius: 50%; background: rgba(252, 250, 245, .94); z-index: 5; }
  .cart-items { overscroll-behavior: contain; }
  .cart-item { grid-template-columns: 58px minmax(0, 1fr) auto; gap: 9px; }
  .cart-thumb { height: 68px; }
  .cart-item h4 { font-size: 15px; }
  .cart-quantity { gap: 4px; }
  .cart-quantity button { display: grid; width: 40px; height: 40px; place-items: center; font-size: 20px; }
  .remove { min-height: 40px; padding: 10px 0; }
  .cart-summary { position: sticky; bottom: 0; margin: 0 -16px -16px; padding: 14px 16px 16px; background: var(--ivory); box-shadow: 0 -12px 24px rgba(25, 52, 43, .08); }
  .cart-summary .full { min-height: 54px; }
  .continue { min-height: 44px; padding: 12px 4px 4px; }

  .modal { align-items: stretch; }
  #productModal .product-modal-card, #checkoutModal .modal-card, #reviewModal .modal-card { height: 100dvh; max-height: 100dvh; overflow-y: auto; overscroll-behavior: contain; border-top: 0; padding: 20px 16px 96px; }
  #productModal .product-modal-card > .close, #checkoutModal .modal-card > .close, #reviewModal .modal-card > .close { position: sticky; float: right; margin: -10px -7px 2px 8px; }
  .product-detail { clear: both; }
  .detail-gallery { width: 100%; }
  .detail-image { max-height: 52vh; aspect-ratio: 1 / 1; background-size: contain; }
  .detail-gallery small { display: none; }
  .detail-content { padding-top: 17px; }
  .detail-content h2 { margin: 10px 0; font-size: clamp(29px, 9vw, 38px); }
  .tagline { font-size: 14px; line-height: 1.6; }
  .detail-price-grid { margin-top: 16px; }
  .detail-price-grid div { padding: 11px; }
  .detail-price-grid b { font-size: 19px; }
  .size-picker button,.size-picker a { min-height: 58px; }
  .detail-content [data-detail-add] { position: sticky; z-index: 4; bottom: 8px; width: 100%; min-height: 54px; margin-top: 14px; box-shadow: 0 0 0 8px rgba(252, 250, 245, .94), 0 -8px 22px rgba(25, 52, 43, .14); }
  .detail-content h3 { margin-top: 25px; font-size: 21px; }

  #checkoutModal .modal-card h2, #reviewModal .modal-card h2 { clear: both; font-size: 29px; }
  #checkoutModal .form-grid, #reviewModal .form-grid { grid-template-columns: 1fr; gap: 0; }
  #checkoutModal label, #reviewModal label { margin-bottom: 14px; font-size: 10px; }
  #checkoutModal input:not([type=radio]), #checkoutModal select, #checkoutModal textarea,
  #reviewModal input:not([type=radio]), #reviewModal select, #reviewModal textarea { min-height: 49px; padding: 12px; font-size: 16px; }
  .delivery-option { min-height: 64px; padding: 12px !important; }
  .delivery-option b { font-size: 12px; }
  .delivery-option small { font-size: 10px; }
  .checkout-reassurance { margin-bottom: 15px; font-size: 11px; }
  .checkout-total { margin: 18px 0 12px; }
  #checkoutForm { padding-bottom: 76px; }
  .mpesa { position: fixed; bottom: max(10px, env(safe-area-inset-bottom)); width: calc(100vw - 64px); min-height: 58px; margin: 0; box-shadow: 0 0 0 8px rgba(252, 250, 245, .96), 0 -8px 22px rgba(25, 52, 43, .16); }
  .review-form { padding: 16px 0 0; background: transparent; }
  .review-form .button { width: 100%; min-height: 52px; }

  .added-to-bag-actions .button { min-height: 52px; }
  .footer-links a { display: inline-flex; min-height: 36px; align-items: center; }
}

@media (max-width: 380px) {
  .hero-product { min-height: 330px; }
  .family-card { grid-template-columns: minmax(116px, 40%) minmax(0, 1fr); min-height: 220px; }
  .family-image { min-height: 220px; }
  .family-copy { padding: 14px 12px; }
  .family-copy h3 { font-size: 19px; }
  .family-bottom .button { font-size: 7px; letter-spacing: .1em; }
  .added-to-bag-actions { grid-template-columns: 1fr; }
}

/* Compact phone navigation and unobstructed product browsing. */
@media (max-width: 760px) {
  .mobile-menu { min-width: auto; margin-right: 4px; padding: 9px 6px; }
  .nav-links {
    top: 62px;
    right: 68px;
    left: auto;
    width: min(178px, calc(100vw - 92px));
    gap: 0;
    border: 1px solid var(--line);
    background: rgba(252, 250, 245, .99);
    padding: 5px 8px;
    box-shadow: 0 12px 28px rgba(25, 52, 43, .14);
  }
  .nav-links a {
    min-height: 36px;
    border-bottom: 1px solid rgba(25, 52, 43, .09);
    padding: 7px 8px;
    font-size: 9px;
  }
  .nav-links a:last-child { border-bottom: 0; }

  #shop.collection { padding: 26px 14px 42px; }
  .product-presentation { padding: 20px 16px 60px; }
  .showcase-gallery { width: 100%; }
  .showcase-slide:nth-child(2) img { width: 100%; }
  .showcase-arrow { bottom: 13%; width: 32px; height: 32px; font-size: 13px; }
  .showcase-prev { left: 10px; }
  .showcase-next { right: 10px; }
  .family-grid { gap: 10px; }
  .family-card {
    grid-template-columns: minmax(104px, 34%) minmax(0, 1fr);
    min-height: 154px;
  }
  .family-image { min-height: 154px; }
  .family-image span { display: none; }
  .family-copy { padding: 12px 11px; }
  .family-copy .eyebrow { font-size: 7px; }
  .family-copy h3 { margin-top: 5px; font-size: clamp(16px, 4.7vw, 19px); line-height: 1.08; }
  .family-bottom { grid-template-columns: 1fr auto; align-items: end; gap: 7px; margin-top: 9px; }
  .family-bottom b { font-size: 16px; }
  .family-bottom .button { width: auto; min-height: 39px; padding: 9px 10px; font-size: 7px; }

  .detail-image { height: min(35vh, 300px); max-height: 300px; aspect-ratio: auto; }
  #productModal .detail-gallery {
    position: sticky;
    z-index: 3;
    top: 0;
    margin: 0 auto;
    padding-bottom: 10px;
    background: var(--ivory);
    box-shadow: 0 12px 18px -18px rgba(25, 52, 43, .55);
  }
  .family-detail .detail-image {
    height: min(34vh, 285px);
    max-height: 285px;
    background-position: center 54%;
    background-size: auto 112%;
  }
  .family-detail .detail-content { padding-top: 12px; }
  .family-detail .size-heading { margin: 14px 0 7px; font-size: 19px; }
  .family-detail .size-picker { flex-wrap: nowrap; margin: 7px 0 14px; }
  .family-detail .size-picker button,.family-detail .size-picker a { min-width: 0; min-height: 56px; padding: 8px; }
  .family-detail .tagline { margin-top: 12px; }
  .detail-content [data-detail-add], .family-detail [data-detail-add] {
    position: static;
    bottom: auto;
    width: 100%;
    min-height: 52px;
    margin: 18px 0 4px;
    box-shadow: none;
  }
}

@media (max-width: 380px) {
  .nav-links { right: 62px; width: min(168px, calc(100vw - 82px)); }
  .family-card { grid-template-columns: minmax(96px, 32%) minmax(0, 1fr); min-height: 146px; }
  .family-image { min-height: 146px; }
  .family-copy { padding: 11px 10px; }
  .family-copy h3 { font-size: 16px; }
  .family-bottom .button { padding: 8px; }
}
