/* ==========================================================================
   Pages · home, shop, product, checkout (mobile-first)
   ========================================================================== */

/* =========================== HOME =========================== */

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--sand); padding-block: 28px 48px; }
.hero::after { /* soft sun */
  content: ""; position: absolute; width: 520px; height: 520px; right: -200px; top: -160px; z-index: 0;
  background: radial-gradient(circle, rgba(217,154,43,.35), transparent 65%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; display: grid; gap: 36px; }
.hero__title { font-size: var(--fs-hero); line-height: .98; margin-bottom: 18px; }
.hero__lead { color: var(--muted); font-size: var(--fs-base); max-width: 44ch; margin-bottom: 26px; }
.hero__ctas { display: grid; gap: 10px; }
.hero__stats { display: flex; gap: 24px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--sand-200); }
.hero__stats dt { font-family: var(--font-display); font-size: 1.6rem; color: var(--ebony); line-height: 1; }
.hero__stats dd { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

.hero__media { position: relative; padding-right: 18%; }
.hero__arch { position: relative; overflow: hidden; border-radius: var(--arch); background: var(--sand-200); box-shadow: var(--shadow-lg); }
.hero__arch img { width: 100%; height: 100%; object-fit: cover; }
.hero__arch--main { aspect-ratio: 4/5.4; }
.hero__arch--main::after { /* arch keyline */
  content: ""; position: absolute; inset: 10px; border-radius: inherit; border: 1px solid rgba(251,247,240,.55); pointer-events: none;
}
.hero__arch--side {
  position: absolute; right: 0; bottom: 10%; width: 38%; aspect-ratio: 3/4;
  border: 5px solid var(--sand);
}
.hero__badge {
  position: absolute; left: -6px; top: 32%; width: 96px; height: 96px;
  display: grid; place-items: center; border-radius: 999px;
  background: var(--ebony); color: var(--ivory);
}
.hero__badge svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.hero__badge .logo__mark { width: 26px; height: 26px; color: var(--ochre); }
.hero__tag {
  position: absolute; left: 12px; bottom: 16px;
  display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px;
  background: rgba(251,247,240,.94); border-radius: 999px; box-shadow: var(--shadow);
  font-size: var(--fs-xs); font-weight: 700;
}
.hero__tag img { width: 34px; height: 34px; border-radius: 999px; object-fit: cover; }
.hero__tag span { display: block; color: var(--muted); font-weight: 500; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 640px) {
  .hero__ctas { display: flex; flex-wrap: wrap; }
  .hero__media { max-width: 560px; margin-inline: auto; width: 100%; }
}
@media (min-width: 900px) {
  .hero { padding-block: 64px 96px; }
  .hero__inner { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 56px; }
  .hero__lead { font-size: var(--fs-lg); }
  .hero__stats { gap: 48px; }
  .hero__stats dt { font-size: 2.2rem; }
  .hero__badge { width: 128px; height: 128px; left: -40px; }
  .hero__tag { left: 24px; bottom: 28px; }
}

/* ---------- Categories ---------- */
.cat-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.cat-rail::-webkit-scrollbar { display: none; }
.cat { position: relative; display: block; scroll-snap-align: start; }
.cat__media { position: relative; aspect-ratio: 3/4; overflow: hidden; border-radius: var(--arch); background: var(--sand-200); }
.cat__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cat__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,20,17,.7), transparent 50%); }
.cat__label { position: absolute; left: 0; right: 0; bottom: 20px; z-index: 1; text-align: center; color: var(--ivory); }
.cat__label h3 { font-size: 1.8rem; }
.cat__label span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
@media (min-width: 900px) {
  .cat-rail { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); gap: 28px; overflow: visible; margin: 0; padding: 0; align-items: start; }
  .cat:nth-child(2) { margin-top: 48px; }
  .cat__label h3 { font-size: 2.2rem; }
}
@media (hover: hover) { .cat:hover .cat__media img { transform: scale(1.05); } }

/* ---------- Story ---------- */
.story { background: var(--indigo); color: var(--sand); overflow: hidden; }
.story__inner { display: grid; gap: 40px; }
.story__media { position: relative; }
.story__media .hero__arch { aspect-ratio: 4/5; box-shadow: none; }
.story__stamp {
  position: absolute; right: -4px; bottom: -18px; padding: 16px 18px;
  background: var(--ochre); color: var(--ebony); border-radius: var(--radius);
  font-family: var(--font-display); font-size: 1.1rem; line-height: 1.2; max-width: 190px;
  box-shadow: var(--shadow);
}
.story .eyebrow { color: var(--ochre-300); }
.story h2 { font-size: var(--fs-3xl); color: var(--ivory); margin-bottom: 20px; }
.story h2 em { color: var(--ochre-300); }
.story__text { color: rgba(244,234,219,.78); margin-bottom: 32px; max-width: 52ch; }
.pillars { display: grid; gap: 18px; margin-bottom: 36px; }
.pillar { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; }
.pillar__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 999px; border: 1px solid rgba(244,234,219,.25); color: var(--ochre-300); }
.pillar__icon svg { width: 22px; height: 22px; }
.pillar h4 { font-family: var(--font-body); font-weight: 700; font-size: var(--fs-base); color: var(--ivory); margin-bottom: 2px; }
.pillar p { font-size: var(--fs-sm); color: rgba(244,234,219,.65); }
@media (min-width: 900px) {
  .story__inner { grid-template-columns: 1fr 1.1fr; gap: 88px; align-items: center; }
  .story__stamp { right: -32px; bottom: 48px; }
}

/* ---------- Lookbook ---------- */
.lookbook { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.look { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--sand); aspect-ratio: 3/4; }
.look img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.look--tall { grid-row: span 2; aspect-ratio: auto; }
.look__cap {
  position: absolute; left: 10px; bottom: 10px; padding: 6px 12px; border-radius: 999px;
  background: rgba(251,247,240,.92); font-size: 11px; font-weight: 700;
}
@media (min-width: 900px) {
  .lookbook { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .look--wide { grid-column: span 2; aspect-ratio: auto; }
}
@media (hover: hover) { .look:hover img { transform: scale(1.05); } }

/* ---------- Values strip ---------- */
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.value { background: var(--ivory); padding: 24px 16px; text-align: center; }
.value svg { width: 28px; height: 28px; margin: 0 auto 10px; color: var(--clay); }
.value h4 { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 800; margin-bottom: 4px; }
.value p { font-size: var(--fs-xs); color: var(--muted); }
@media (min-width: 900px) { .values { grid-template-columns: repeat(4, 1fr); } .value { padding: 40px 24px; } }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.quotes::-webkit-scrollbar { display: none; }
.quote { scroll-snap-align: start; padding: 28px 24px; background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.quote__stars { display: flex; gap: 2px; color: var(--ochre); }
.quote__stars svg { width: 16px; height: 16px; fill: currentColor; }
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.4; flex: 1; }
.quote figcaption { display: flex; align-items: center; gap: 12px; font-size: var(--fs-sm); }
.quote figcaption img { width: 44px; height: 44px; border-radius: 999px; object-fit: cover; }
.quote figcaption span { display: block; color: var(--muted); font-size: var(--fs-xs); }
@media (min-width: 900px) {
  .quotes { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); gap: 24px; overflow: visible; margin: 0; padding: 0; }
}

/* =========================== SHOP =========================== */
.page-hero { position: relative; background: var(--ebony); color: var(--ivory); padding-block: 40px 44px; overflow: hidden; }
.page-hero .eyebrow { color: var(--ochre-300); }
.page-hero h1 { font-size: var(--fs-3xl); }
.page-hero p { color: rgba(244,234,219,.7); margin-top: 10px; max-width: 48ch; }
.crumbs { display: flex; gap: 8px; font-size: var(--fs-xs); color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.page-hero .crumbs { color: rgba(244,234,219,.6); }
.crumbs a:hover { color: var(--clay); }

.shop-toolbar {
  position: sticky; top: 60px; z-index: 20;
  background: rgba(251,247,240,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); padding-block: 12px;
}
.shop-toolbar__row { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-top: 10px; }
.shop-toolbar__count { font-size: var(--fs-sm); color: var(--muted); }
.shop-toolbar .select { min-height: 40px; width: auto; border-radius: 999px; font-size: var(--fs-sm); }
.filter-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--ebony); font-size: var(--fs-sm); font-weight: 700; }
.filter-btn svg { width: 16px; height: 16px; }

.shop-layout { display: grid; gap: 32px; padding-block: 24px 64px; }
.shop-sidebar { display: none; }
.filter-group { padding-block: 18px; border-bottom: 1px solid var(--line); }
.filter-group h4 { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.check { display: flex; align-items: center; gap: 12px; min-height: 40px; font-size: var(--fs-sm); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--clay); }
.check .swatch { width: 20px; height: 20px; }
.range { width: 100%; accent-color: var(--clay); height: 32px; }
.range-out { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--muted); }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 64px 0; color: var(--muted); }
.empty-state h3 { font-size: 1.8rem; color: var(--ink); margin-bottom: 8px; }

@media (min-width: 900px) {
  .page-hero { padding-block: 72px; }
  .shop-toolbar { top: var(--header-h); }
  .shop-toolbar__row { margin-top: 0; }
  .shop-toolbar .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
  .filter-btn { display: none; }
  .shop-layout { grid-template-columns: 240px 1fr; gap: 48px; padding-block: 40px 96px; }
  .shop-sidebar { display: block; position: sticky; top: calc(var(--header-h) + 80px); align-self: start; }
}

/* =========================== PRODUCT =========================== */
.pdp { display: grid; gap: 24px; padding-bottom: 48px; }
.pdp__gallery { position: relative; margin-inline: calc(var(--gutter) * -1); }
.pdp__slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pdp__slides::-webkit-scrollbar { display: none; }
.pdp__slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 3/4; background: var(--sand); }
.pdp__slide img { width: 100%; height: 100%; object-fit: cover; }
.pdp__dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 6px; }
.pdp__dots button { width: 8px; height: 8px; border-radius: 99px; background: rgba(251,247,240,.6); transition: width .3s var(--ease), background .3s; }
.pdp__dots button.is-active { width: 24px; background: var(--ivory); }
.pdp__thumbs { display: none; }

.pdp__info .crumbs { margin-bottom: 10px; }
.pdp__title { font-size: var(--fs-2xl); margin-bottom: 4px; }
.pdp__meaning { font-family: var(--font-display); font-style: italic; color: var(--clay); margin-bottom: 12px; }
.pdp__price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.pdp__price { font-size: 1.5rem; font-weight: 800; display: flex; gap: 10px; align-items: baseline; }
.pdp__price s { font-size: var(--fs-base); color: var(--muted); font-weight: 500; }
.rating { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--muted); }
.rating__stars { display: flex; color: var(--ochre); }
.rating__stars svg { width: 14px; height: 14px; fill: currentColor; }
.pdp__desc { color: var(--muted); margin-bottom: 24px; }
.opt { margin-bottom: 22px; }
.opt__label { display: flex; justify-content: space-between; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.opt__label span { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); font-size: var(--fs-sm); }
.opt__label a { text-decoration: underline; font-weight: 600; letter-spacing: 0; text-transform: none; }
.sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.size { min-height: 48px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--white); font-weight: 700; font-size: var(--fs-sm); transition: all .2s; }
.size.is-active { border-color: var(--ebony); background: var(--ebony); color: var(--ivory); }
.pdp__buy { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; margin-bottom: 24px; }
.pdp__buy .qty button { height: 52px; }
.pdp__wish { width: 52px; height: 52px; border-radius: 999px; border: 1.5px solid var(--line); display: grid; place-items: center; }
.pdp__wish svg { width: 20px; height: 20px; }
.pdp__wish.is-active { color: var(--clay); border-color: var(--clay); }
.pdp__wish.is-active svg { fill: currentColor; }
.perks { display: grid; gap: 10px; padding: 16px; margin-bottom: 24px; background: var(--sand); border-radius: var(--radius); font-size: var(--fs-sm); }
.perks li { display: flex; gap: 10px; align-items: center; }
.perks svg { width: 18px; height: 18px; color: var(--clay); flex: none; }

/* Sticky buy bar: phones only, sits above the tab bar */
.buybar {
  position: fixed; left: 0; right: 0; bottom: calc(60px + env(safe-area-inset-bottom)); z-index: 55;
  display: flex; align-items: center; gap: 12px; padding: 10px var(--gutter);
  background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -20px rgba(26,20,17,.4);
  transform: translateY(150%); transition: transform .4s var(--ease);
}
.buybar.is-visible { transform: none; }
.buybar img { width: 40px; height: 52px; object-fit: cover; border-radius: 6px; }
.buybar__info { flex: 1; min-width: 0; font-size: var(--fs-xs); }
.buybar__info strong { display: block; font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar .btn { min-height: 46px; padding: 0 20px; }

@media (min-width: 900px) {
  .pdp { grid-template-columns: 1.15fr 1fr; gap: 64px; padding-block: 40px 96px; align-items: start; }
  .pdp__gallery { margin: 0; display: grid; grid-template-columns: 84px 1fr; gap: 16px; }
  .pdp__slides { grid-column: 2; border-radius: var(--radius-lg); }
  .pdp__thumbs { display: grid; gap: 12px; align-content: start; grid-row: 1; }
  .pdp__thumbs button { aspect-ratio: 3/4; border-radius: var(--radius-sm); overflow: hidden; opacity: .55; outline: 1.5px solid transparent; outline-offset: 2px; transition: opacity .2s; }
  .pdp__thumbs button.is-active { opacity: 1; outline-color: var(--ebony); }
  .pdp__thumbs img { width: 100%; height: 100%; object-fit: cover; }
  .pdp__dots { display: none; }
  .pdp__info { position: sticky; top: calc(var(--header-h) + 24px); }
  .buybar { display: none; }
}

/* =========================== CHECKOUT =========================== */
.checkout { display: grid; gap: 24px; padding-block: 24px 64px; }
.checkout h1 { font-size: var(--fs-2xl); }
.co-step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.co-step h2 { font-family: var(--font-body); font-size: var(--fs-base); font-weight: 800; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.co-step h2 span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 999px; background: var(--ebony); color: var(--ivory); font-size: var(--fs-xs); }
.form-grid { display: grid; gap: 14px; }
.form-grid--2 { grid-template-columns: 1fr 1fr; }
.radio-card {
  display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 16px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; transition: border-color .2s, background .2s;
}
.radio-card input { width: 20px; height: 20px; accent-color: var(--clay); flex: none; }
.radio-card__main { flex: 1; font-size: var(--fs-sm); }
.radio-card__main strong { display: block; }
.radio-card__main span { color: var(--muted); font-size: var(--fs-xs); }
.radio-card:has(input:checked) { border-color: var(--clay); background: var(--clay-100); }
.mpesa { font-weight: 900; color: #3A9B3A; font-size: var(--fs-xs); letter-spacing: .02em; }

.summary { background: var(--sand); border-radius: var(--radius); padding: 20px; }
.summary summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; font-weight: 700; min-height: 32px; }
.summary summary::-webkit-details-marker { display: none; }
.summary .line-item { border-color: var(--sand-200); }
.summary .totals { margin-top: 16px; }
.promo { display: flex; gap: 8px; margin-top: 16px; }

.checkout__head { order: -2; }
.checkout .summary { order: -1; }
.success { text-align: center; padding: 32px 8px; }
.success__icon { width: 80px; height: 80px; margin: 0 auto 20px; border-radius: 999px; display: grid; place-items: center; background: var(--ebony); color: var(--ochre); }
.success__icon svg { width: 36px; height: 36px; }
.success h2 { font-size: var(--fs-2xl); margin-bottom: 10px; }
.success p { color: var(--muted); margin-bottom: 24px; }

@media (min-width: 900px) {
  .checkout { grid-template-columns: 1.3fr 1fr; gap: 48px; padding-block: 48px 96px; align-items: start; }
  .checkout__head { grid-column: 1 / -1; }
  .checkout .summary { grid-column: 2; grid-row: 2; }
  .checkout form { grid-column: 1; grid-row: 2; }
  .co-step { padding: 28px; }
  .summary { position: sticky; top: calc(var(--header-h) + 24px); padding: 28px; }
  .summary summary { pointer-events: none; }
  .summary summary .summary__toggle { display: none; }
}
