:root {
  --ink: #1a1815;
  --paper: #f6f1e6;
  --paper-raised: #fffdf8;
  --muted: #6f6a62;
  --line: #ddd4c4;
  --gold: #c98a2b;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.55; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: .2px; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.announce { background: var(--ink); color: #fff; text-align: center; font-size: 13px; padding: 8px 12px; }
.site-header { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--paper); z-index: 10; }
.site-header .container { max-width: 1680px; }
.header-row { display: flex; align-items: center; gap: 24px; padding-top: 14px; padding-bottom: 14px; padding-left: 18px; padding-right: 18px; }
@media (min-width: 1200px) { .header-row { padding-left: 34px; padding-right: 34px; } }
.logo { font-family: var(--serif); font-size: 26px; font-weight: 700; text-decoration: none; }
.logo span { color: var(--gold); }
.main-nav { display: flex; gap: 18px; font-size: 14px; }
.main-nav a { text-decoration: none; padding: 6px 2px; border-bottom: 2px solid transparent; }
.main-nav a:hover { border-color: var(--gold); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.header-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 4px 4px 13px; background: var(--paper-raised); transition: border-color .15s ease, box-shadow .15s ease, background .15s ease, width .2s ease; width: 210px; }
.header-search:hover { background: #fff; border-color: #d9d2c7; }
.header-search:focus-within { background: #fff; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 138, 43, .16); width: 256px; }
.header-search .search-icon { color: var(--muted); flex: none; }
.header-search input { border: none; outline: none; padding: 7px 0; font-size: 13px; width: 100%; background: transparent; min-width: 0; color: var(--ink); }
.header-search input::placeholder { color: #a29a8e; }
.header-search .search-go { flex: none; width: 30px; height: 30px; border: none; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; transition: transform .14s ease, background .14s ease; }
.header-search .search-go:hover { background: var(--gold); transform: rotate(-8deg) scale(1.06); }
.header-search input::-webkit-search-cancel-button { accent-color: var(--gold); }
.auth-links { display: flex; align-items: center; gap: 4px; font-size: 12px; }
.auth-links a { text-decoration: none; color: var(--muted); padding: 7px 11px; border-radius: 999px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; transition: color .15s ease, background .15s ease; }
.auth-links a:hover { color: var(--ink); background: rgba(26, 24, 21, .06); }
.cart-link { position: relative; display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; color: #fff; background: var(--ink); border-radius: 999px; padding: 8px 15px; transition: background .16s ease, transform .16s ease, box-shadow .16s ease; }
.cart-link:hover { background: var(--gold); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(201, 138, 43, .3); }
.cart-icon { flex: none; }
.cart-badge { position: absolute; top: -5px; right: -5px; background: var(--gold); color: #fff; border: 2px solid var(--paper); border-radius: 999px; min-width: 19px; height: 19px; padding: 0 5px; font-size: 10px; font-weight: 700; line-height: 15px; text-align: center; }
.cart-link:hover .cart-badge { background: var(--ink); }
@media (max-width: 900px) {
  .header-row { gap: 14px; }
  .main-nav { order: 2; flex: 0 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; white-space: nowrap; gap: 14px; }
  .main-nav::-webkit-scrollbar { display: none; }
  .header-actions { order: 3; margin-left: auto; flex: none; }
  .header-search { width: 158px; }
  .header-search:focus-within { width: 196px; }
}
@media (max-width: 600px) {
  /* Logo, search pill, auth icon and cart button cannot share 324px: the brand wrapped onto two
     lines (header 109px tall) and the search input collapsed to 11px wide. The actions move to their
     own header row so the logo keeps one line and the field gets everything left of the icons.
     The nav panel and the hidden cart/auth links are handled in the phone shell at the end. */
  .header-row { gap: 10px; row-gap: 8px; flex-wrap: wrap; }
  .logo { flex: 0 0 auto; white-space: nowrap; }
  .header-actions { gap: 8px; flex: 1 1 0; min-width: 0; margin-left: 0; }
  .header-search { width: auto; flex: 1 1 0; min-width: 0; max-width: none; padding-left: 9px; }
  .header-search:focus-within { width: auto; }
}

.btn-pill { display: inline-block; border: none; border-radius: 999px; padding: 11px 22px; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .12s ease, background .12s ease; }
.btn-pill:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-gold { background: var(--gold); color: #fff; margin-left: 10px; }
.btn-ghost { background: transparent; border: 1px solid var(--ink); color: var(--ink); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-block { display: block; text-align: center; margin-top: 10px; }

.hero { background: linear-gradient(180deg, #fffdf8, var(--paper)); border-bottom: 1px solid var(--line); }

/* Home: transparent nav with hero image showing behind it */
.home-hero .site-header { background: transparent; border-bottom: none; }
.home-hero .header-row { min-height: 62px; padding-top: 0; padding-bottom: 0; }
.home-hero main { margin-top: calc(-1 * var(--header-h, 62px)); }
.home-hero .logo, .home-hero .main-nav a, .home-hero .auth-links a { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.45); }
.home-hero .main-nav a:hover { border-color: var(--gold); }
.home-hero .header-search { background: rgba(255,255,255,.92); border-color: transparent; }
.home-hero .header-search .search-go { background: var(--gold); }
.home-hero .auth-links a { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); }
.home-hero .auth-links a:hover { background: rgba(255,255,255,.3); color: #fff; }
.home-hero .cart-link { background: var(--gold); text-shadow: none; }
.home-hero .cart-link:hover { background: #fff; color: var(--ink); }
.home-hero .site-header.scrolled .auth-links a { background: transparent; border-color: transparent; }
.home-hero .site-header.scrolled .auth-links a:hover { background: rgba(26,24,21,.06); }
.home-hero .site-header.scrolled .cart-link { background: var(--ink); }
.home-hero .site-header.scrolled .cart-link:hover { background: var(--gold); color: #fff; }
.home-hero .site-header { transition: background .25s ease, box-shadow .25s ease; }
.home-hero .site-header.scrolled { background: rgba(246, 241, 230, .97); box-shadow: 0 2px 14px rgba(26,24,21,.10); }
.home-hero .site-header.scrolled .logo,
.home-hero .site-header.scrolled .main-nav a,
.home-hero .site-header.scrolled .auth-links a { color: var(--ink); text-shadow: none; }
.home-hero .site-header.scrolled .auth-links a { color: var(--muted); }
.home-hero .site-header.scrolled .auth-links a:hover { color: var(--ink); }
.home-hero .site-header.scrolled .cart-link { color: #fff; }
.home-hero .site-header.scrolled .header-search { background: var(--paper-raised); border-color: var(--line); }

.hero--editorial {
  position: relative;
  background: transparent;
  min-height: 0;
  display: block;
}
.hero-bg {
  display: block;
  width: 100%;
  height: auto;
}
.hero--editorial::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(26, 24, 21, .5) 0%, rgba(26, 24, 21, .22) 38%, rgba(26, 24, 21, 0) 62%);
  pointer-events: none;
}
.hero--editorial .hero-inner {
  position: absolute;
  inset: var(--header-h, 62px) 0 0 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 560px;
  text-align: left;
  padding: 0 20px 0 clamp(20px, 5vw, 72px);
}
.hero--editorial .hero-kicker { color: #f0c98a; }
/* Two classes, not one: the generic `.hero h1` further down is 44px at equal specificity and would
   otherwise win, pinning the headline to desktop size on a phone. Max stays 44px so desktop is unchanged. */
.hero.hero--editorial h1 { color: #fff; font-size: clamp(26px, 4.2vw, 44px); text-shadow: 0 1px 10px rgba(0,0,0,.35); }
.hero--editorial p { color: #fff; font-size: 17px; max-width: 46ch; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hero--editorial .hero-cta { display: flex; gap: 10px; justify-content: flex-start; }
@media (max-width: 700px) {
  .hero--editorial::after { background: linear-gradient(0deg, rgba(26,24,21,.6) 12%, rgba(26,24,21,.15) 55%, rgba(26,24,21,0) 100%); }
  /* At phone width the editorial photo is ~280px tall while the headline block needs ~450px, so the
     absolutely positioned overlay spilled off the top of the image — and since `main` is pulled up under
     the transparent header, off the screen: the kicker and first lines of the h1 rendered above the top
     edge. Below 700px the copy drops out of the overlay onto a charcoal panel under the photo. The
     picture keeps its whole frame either way; nothing is cropped. */
  .hero--editorial { background: var(--ink); }
  .hero--editorial .hero-inner { position: static; inset: auto; max-width: none; padding: 18px 20px 30px; }
  .hero--editorial p { font-size: 15.5px; }
}
.hero-inner { padding: 72px 20px; max-width: 640px; }
.hero-kicker { text-transform: uppercase; letter-spacing: 2px; font-size: 12px; font-weight: 700; color: var(--gold); margin: 0 0 10px; }
.hero h1 { font-size: 44px; margin: 0 0 12px; }
/* No generic `.hero p` colour here on purpose: at equal specificity it would land after
   `.hero--editorial p` and quietly turn the hero copy grey. */
.hero-cta { margin-top: 22px; }

.section { padding: 40px 20px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; }
.link-more { text-decoration: none; color: var(--gold); font-weight: 600; font-size: 14px; }

/* Related row only (shop and home override this with an auto-fill track). Four cards that stretch to
   whatever the container is handed them, so a wider page means bigger cards, never a blank gutter. */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 20px; }
@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .product-grid { grid-template-columns: 1fr; } }
.product-card { display: flex; flex-direction: column; }
.card-media { position: relative; aspect-ratio: 1 / 1; padding: 10px; background: var(--paper-raised); border: 1px solid transparent; border-radius: 14px; overflow: hidden; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.product-card:hover .card-media { background: #fff; border-color: var(--line); box-shadow: 0 10px 24px rgba(26, 24, 21, .09); }
.product-card:hover .card-media img { transform: scale(1.04); }
.badge { position: absolute; top: 10px; left: 10px; background: var(--gold); color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.no-img { display: grid; place-items: center; height: 100%; color: var(--muted); }
.card-body { padding: 12px 2px 2px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card-swatches { display: flex; align-items: center; gap: 5px; }
.swatch { width: 18px; height: 18px; border-radius: 5px; background: var(--sw, #d8d2c8); border: 1px solid rgba(26, 24, 21, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); }
.swatch-more { font-size: 11px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.card-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .2px; line-height: 1.45; color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title:hover { color: var(--gold); }
.card-flag { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; background: #eaf7ef; color: #17724a; border: 1px solid #cfe9d8; border-radius: 999px; padding: 4px 10px 4px 8px; font-size: 11.5px; font-weight: 700; }
.card-foot { margin-top: auto; padding-top: 2px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-price { display: flex; align-items: baseline; gap: 8px; }
.card-price .price { font-weight: 700; font-size: 14px; white-space: nowrap; }
.card-price.big .price { font-size: 24px; }
.card-price .compare { color: var(--muted); text-decoration: line-through; font-size: 13px; }
.card-add { flex: none; }
.card-add .btn-pill { padding: 9px 15px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.card-add .btn-pill:hover { background: var(--gold); }

.statement-banner {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(230, 180, 85, .14), transparent 60%),
    linear-gradient(160deg, #5a3d26 0%, #6b4a2f 45%, #4a3220 100%);
  color: #f5e9d6;
  text-align: center;
  padding: clamp(56px, 9vw, 110px) 20px;
}
.statement-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 6px);
  pointer-events: none;
}
.statement-inner { position: relative; max-width: 900px; margin: 0 auto; }
.statement-banner h2 {
  margin: 0;
  font-family: var(--serif, Georgia, serif);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.5px;
  line-height: 1.02;
  font-size: clamp(34px, 7.5vw, 82px);
  color: #f0c98a;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .25);
}
.statement-sub {
  margin: 18px auto 30px;
  font-size: clamp(15px, 2vw, 19px);
  color: #ead9bd;
  max-width: 520px;
}
.statement-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.statement-btn {
  display: inline-block;
  min-width: 150px;
  padding: 13px 34px;
  border-radius: 999px;
  background: #fdf6e8;
  color: #4a3220;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid #fdf6e8;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.statement-btn:hover {
  background: #e6b455;
  border-color: #e6b455;
  color: #2b1d10;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
}

.collection-wrap { padding: 32px 20px 56px; }
.collection-head h1 { margin-bottom: 2px; }
.count { color: var(--muted); font-size: 14px; margin-top: 0; }
.collection-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.shop-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 34px; align-items: start; margin-top: 22px; }
@media (max-width: 980px) { .shop-layout { grid-template-columns: 1fr; gap: 22px; } }
.shop-main .product-grid { grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 30px 18px; }
@media (min-width: 1440px) {
  .collection-wrap, .product-wrap, .cart-wrap, .dashboard-wrap, .trending > .container { max-width: 1580px; }
  .shop-layout { grid-template-columns: 268px minmax(0, 1fr); gap: 40px; }
}
.filter-side {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 16px 18px;
  background: var(--paper-raised);
  position: sticky;
  top: calc(var(--header-h, 64px) + 14px);
}
.filter-side h2 { margin: 0 0 6px; font-family: var(--sans); font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.filter-group { padding: 14px 0; border-top: 1px solid var(--line); }
.filter-group:first-of-type { border-top: 0; padding-top: 8px; }
.filter-group > span { display: block; margin-bottom: 9px; font-size: 11.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--ink); }
.filter-side label { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 14px; cursor: pointer; }
.filter-links { display: flex; flex-direction: column; gap: 2px; }
.filter-links a { padding: 5px 9px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
.filter-links a:hover { background: rgba(26, 24, 21, .06); }
.filter-links a.is-active { background: var(--ink); color: #fff; }
.filter-side input[type="search"], .filter-side input[type="number"], .filter-side select { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; font-size: 13.5px; font-family: var(--sans); background: #fff; color: var(--ink); }
.filter-side select { accent-color: var(--gold); }
.filter-price { display: flex; gap: 8px; }
.filter-actions { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.filter-clear { font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
.filter-clear:hover { color: var(--ink); text-decoration: underline; }
.empty { color: var(--muted); padding: 40px 0; }
.pagination { display: flex; align-items: center; gap: 14px; justify-content: center; margin-top: 34px; }
.page-info { color: var(--muted); font-size: 14px; }

.product-wrap { padding: 28px 20px 56px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { text-decoration: none; }
.product-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .product-layout { grid-template-columns: 1fr; } }
#main-image { border-radius: 14px; border: 1px solid var(--line); aspect-ratio: 1/1; object-fit: cover; width: 100%; background: #f4f1ec; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumb { border: 1px solid var(--line); border-radius: 8px; padding: 2px; background: var(--paper-raised); cursor: pointer; width: 62px; height: 62px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.product-info h1 { font-size: 28px; margin: 0 0 10px; }
.brand { color: var(--muted); font-size: 14px; }
.buy-form { display: flex; gap: 12px; margin: 18px 0; }
.qty { width: 74px; border: 1px solid var(--line); border-radius: 999px; padding: 9px 12px; font-size: 14px; text-align: center; }
.qty-sm { padding: 5px 8px; }
.description { color: #3b3833; font-size: 15px; max-width: 62ch; }
.perks { list-style: none; padding: 0; margin: 18px 0; font-size: 14px; color: var(--muted); }
.perks li::before { content: "✓ "; color: var(--gold); font-weight: 700; }

.cart-wrap, .checkout-wrap, .success-wrap { padding: 32px 20px 64px; }
.cart-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cart-table th, .cart-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.cart-item { display: flex; align-items: center; gap: 12px; }
.cart-item a { text-decoration: none; }
.thumb-sm { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.inline-form { display: flex; gap: 8px; align-items: center; }
.link-remove { background: none; border: none; color: #a33; cursor: pointer; font-size: 13px; text-decoration: underline; }

/* A five-column cart table cannot fit a phone: the qty control and a product name alone exceed
   345px, so the whole page scrolled sideways. Below 560px each row becomes a block and the column
   heading moves into the cell via data-label — nothing scrolls, nothing is hidden. Cells without a
   label (the photo/name, the Remove button) render as-is because their content says what they are. */
@media (max-width: 560px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-grid .span-2 { grid-column: auto; }
  .stack-mobile { font-size: 13px; }
  .stack-mobile thead { display: none; }
  .stack-mobile, .stack-mobile tbody, .stack-mobile tr, .stack-mobile td { display: block; width: 100%; }
  .stack-mobile tr { border-bottom: 1px solid var(--line); padding: 8px 0 12px; }
  .stack-mobile td { border: 0; padding: 5px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .stack-mobile td[data-label]::before {
    content: attr(data-label);
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--muted);
  }
  .stack-mobile .cart-item { flex: 1 1 auto; min-width: 0; }

  /* Fingers, not cursors. A second sweep at 390px still found thumbs aiming at 17-37px: Add to cart
     32, filter rows 32, "Clear" 20, account-form inputs 37, footer links 19, breadcrumbs 17.
     min-height plus flex centring grows only the hit area, and only on phones, so desktop keeps its
     tighter look. Inline text links grow with padding plus an equal negative margin, which widens
     the target without moving the line. (The header account/cart links are hidden on phones — the
     bottom tab bar is their 44px equivalent.) */
  .btn-pill, .link-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
  }
  input.qty { min-height: 44px; }
  .form-grid input, .filter-side input[type="search"], .filter-side select { min-height: 44px; }
  .auth-form input:not([type="checkbox"]):not([type="radio"]) { min-height: 44px; }
  .filter-price input { min-height: 44px; }
  .filter-links a, .filter-clear { display: inline-flex; align-items: center; min-height: 44px; }
  .site-footer ul { gap: 0; }
  .site-footer li a { display: inline-flex; align-items: center; min-height: 44px; }
  .breadcrumb a { display: inline-flex; align-items: center; padding: 12px 5px; margin: -12px -5px; }
  .header-search { padding-top: 5px; padding-bottom: 5px; }
  .header-search input { min-height: 36px; }
  .header-search .search-go { width: 36px; height: 36px; }
  .pay-option input, .filter-side input[type="checkbox"] { width: 20px; height: 20px; }

  /* The shop on a phone. Stacked 44px filter rows turned the panel into a 742px wall that pushed the
     first bag below the fold (it started at y=1099 in an 844px viewport), and `.shop-main .product-grid`
     — auto-fill with 208px tracks — collapsed to one 486px card per row. Filter links wrap sideways as
     chips and the grid goes 2-up like the home page, so products are one short scroll away. */
  .filter-group { padding: 10px 0; }
  .filter-links { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .filter-links a { padding: 0 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
  .filter-links a.is-active { border-color: var(--ink); }
  /* 2-up itself is set once, in the phone shell; below 561px only the row gap loosens. */
  .shop-main .product-grid { gap: 24px 12px; }
  /* 2-up leaves a 161px card, and price + an 113px "Add to cart" pill cannot share that row — the button
     hung 48px past the viewport. The foot stacks and the pill takes the width instead. */
  .card-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .card-add { flex: 1 1 auto; }
  .card-add .btn-pill { width: 100%; padding-left: 10px; padding-right: 10px; }
}
.cart-summary { max-width: 380px; margin-left: auto; margin-top: 26px; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-size: 16px; }
.ship-note { color: var(--muted); font-size: 13px; }

.checkout-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; }
@media (max-width: 860px) { .checkout-grid { grid-template-columns: 1fr; } }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-bottom: 18px; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid label { font-size: 13px; font-weight: 600; display: flex; flex-direction: column; gap: 5px; text-transform: capitalize; }
.input, .form-grid input, .form-grid textarea { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; font-family: var(--sans); }
.order-summary { border: 1px solid var(--line); border-radius: 14px; padding: 20px; height: fit-content; background: var(--paper-raised); }

/* Zuri Luxee × Kikapu editorial collage */
.capsule { position: relative; max-width: 1180px; margin: 0 auto; padding: 64px 20px 12px; }
.capsule-mark {
  text-align: center;
  font-family: var(--sans);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 6px;
  font-size: clamp(20px, 3vw, 30px);
  color: #4a3220;
  margin-bottom: 22px;
}
.capsule-mark span { color: var(--gold); margin: 0 6px; }
.capsule-grid {
  display: grid;
  grid-template-columns: 1.12fr 1fr 1.12fr;
  gap: 12px;
  height: clamp(340px, 44vw, 540px);
}
.capsule-panel, .capsule-hero { position: relative; margin: 0; overflow: hidden; border-radius: 4px; background: #efe4d3; }
.capsule-panel img, .capsule-hero img { width: 100%; height: 100%; object-fit: cover; }
.capsule-center { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.capsule-hero { flex: 1 1 auto; min-height: 0; }
.capsule-mosaic { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 10px; flex: 0 0 26%; min-height: 0; }
.capsule-mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; background: #efe4d3; }
.capsule-mosaic img {
  filter: sepia(.32) saturate(.82) contrast(1.06) brightness(.97);
  transition: filter .35s ease, transform .45s ease;
}
.capsule-mosaic img:hover { filter: sepia(.08) saturate(1) contrast(1.02); }
.capsule-vert {
  position: absolute;
  top: 50%;
  right: 9px;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(26, 24, 21, .58);
}
.capsule-vert--right { right: auto; left: 9px; }
.capsule-copy { text-align: center; padding-top: 34px; }
.capsule-title {
  font-family: var(--sans);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -1.5px;
  line-height: .92;
  font-size: clamp(46px, 8.5vw, 98px);
  margin: 0 0 14px;
  color: #3d2817;
  text-shadow: 2px 2px 0 rgba(230, 180, 85, .35);
}
.capsule-copy p { max-width: 620px; margin: 0 auto 22px; font-size: 15px; color: #5a4632; }
.capsule-btn {
  display: inline-block;
  background: #4a3220;
  color: #fdf6e8;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.capsule-btn:hover { background: #2b1d10; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(74, 50, 32, .28); }
@media (max-width: 780px) {
  .capsule-grid { grid-template-columns: 1fr; height: auto; }
  .capsule-center { display: block; }
  .capsule-hero { height: auto; aspect-ratio: 1172 / 1342; }
  .capsule-grid > .capsule-panel:first-child { height: auto; aspect-ratio: 1121 / 1403; }
  .capsule-grid > .capsule-panel:last-child { height: auto; aspect-ratio: 1122 / 1402; }
  .capsule-mosaic { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 108px; margin-top: 10px; }
  .capsule-vert { display: none; }
}

.trending {
  position: relative;
  padding: 60px 0 56px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(230, 180, 85, .14), transparent 60%),
    linear-gradient(160deg, #5a3d26 0%, #6b4a2f 45%, #4a3220 100%);
}
.trending::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 6px);
  pointer-events: none;
}
.trending > .container { position: relative; }
.trending-title {
  font-family: var(--sans);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -2px;
  line-height: .9;
  font-size: clamp(52px, 9vw, 104px);
  margin: 0 0 18px;
  color: #f0c98a;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .25);
}
.trending-sub {
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.45;
  color: #ead9bd;
}
.tile-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 26px 16px; }
@media (max-width: 1000px) { .tile-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
.tile { display: flex; flex-direction: column; align-items: center; gap: 12px; text-decoration: none; color: #f5e9d6; }
.tile-media {
  --tile-inner: 112px;
  width: var(--tile-inner);
  height: var(--tile-inner);
  display: grid;
  place-items: center;
  /* Circular frame. The white disc is what makes it read as a circle rather than a photo with a
     circle cut out of it: the bag's own studio backdrop merges into the disc. */
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(240, 201, 138, .65);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
  overflow: hidden;
}
.tile-media img {
  width: 100%;
  height: 100%;
  /* contain, never cover — the frame must not crop the bag out of its own photo */
  object-fit: contain;
  transition: transform .25s ease;
}
@media (max-width: 560px) { .tile-media { --tile-inner: 100px; } }
.tile:hover .tile-media img { transform: scale(1.07); }
.tile-label { font-weight: 700; font-size: 14px; line-height: 1.3; }
.tile:hover .tile-label { color: #e6b455; }

.value-props { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; padding: 24px 20px 56px; }
.value-props h3 { margin: 0 0 4px; font-size: 17px; }
.value-props p { margin: 0; color: var(--muted); font-size: 14px; }

/* toasts + AJAX cart */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 100; border-radius: 999px; padding: 12px 24px; font-size: 14px; font-weight: 600; color: #fff; box-shadow: 0 8px 24px rgba(26,24,21,.25); animation: toast-in .25s ease; }
.toast-ok { background: var(--ink); }
.toast-err { background: #a3342c; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
.cart-badge.pop { animation: badge-pop .35s ease; }
@keyframes badge-pop { 0% { transform: scale(1); } 50% { transform: scale(1.5); } 100% { transform: scale(1); } }
.btn-pill:disabled { background: #c9c4bc; cursor: not-allowed; transform: none; }

/* auth */
@media (min-width: 601px) { .auth-icon { display: none; } }
.auth-wrap, .account-wrap { max-width: 460px; padding: 48px 20px 72px; }
.account-wrap { max-width: 860px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--line); border-radius: 14px; padding: 24px; background: var(--paper-raised); }
.auth-form label { font-size: 13px; font-weight: 600; display: flex; flex-direction: column; gap: 5px; }
.auth-form input:not([type=submit]) { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.auth-form ul.errorlist { color: #a3342c; font-size: 12px; list-style: none; padding: 0; margin: 2px 0; }
.auth-form .help { color: var(--muted); font-weight: 400; font-size: 12px; }
.auth-alt { text-align: center; font-size: 14px; color: var(--muted); }
.auth-hint { font-size: 14px; color: var(--muted); }
.auth-hint a { color: var(--gold); font-weight: 600; }

/* payment */
.payment-wrap { display: grid; place-items: center; padding: 64px 20px; }
.payment-card { max-width: 480px; text-align: center; border: 1px solid var(--line); border-radius: 18px; padding: 40px 36px; box-shadow: 0 14px 40px rgba(26,24,21,.10); background: var(--paper-raised); }
.mpesa-logo { display: inline-block; background: #0f8a3c; color: #fff; font-weight: 700; border-radius: 999px; padding: 8px 20px; margin-bottom: 16px; }
.pay-status { margin: 22px 0; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.spinner { width: 18px; height: 18px; border: 3px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pay-ok { color: #0f8a3c; font-weight: 700; }
.pay-err { color: #a3342c; font-weight: 700; }
.demo-note { font-size: 13px; color: var(--muted); background: var(--paper-raised); border: 1px dashed var(--line); border-radius: 10px; padding: 10px 14px; }
.link-muted { font-size: 13px; color: var(--muted); }
.pay-methods { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: 0 0 18px; }
.pay-methods legend { font-size: 13px; font-weight: 700; padding: 0 6px; text-transform: uppercase; letter-spacing: 1px; }
.pay-option { display: flex; gap: 12px; align-items: flex-start; padding: 10px 6px; border-radius: 10px; cursor: pointer; font-size: 14px; }
.pay-option:hover { background: var(--paper-raised); }
.pay-option input { accent-color: var(--gold); margin-top: 4px; }
.pay-option .pay-logo { margin-left: auto; align-self: center; flex-shrink: 0; height: 30px; width: auto; }
.pay-chip { display: inline-block; border-radius: 999px; padding: 8px 18px; font-size: 14px; font-weight: 600; }
.chip-paid { background: #e8f5ec; color: #0f8a3c; }
.chip-pending { background: #fbf3e4; color: var(--gold); }

/* statuses + stock */
.status { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.status-paid { background: #e8f5ec; color: #0f8a3c; }
.status-pending { background: #fbf3e4; color: var(--gold); }
.status-cod { background: #eef0f4; color: #3d5a80; }
.stock { font-size: 14px; font-weight: 600; margin: 6px 0; }
.stock-ok { color: #0f8a3c; }
.stock-low { color: var(--gold); font-weight: 700; }
.stock-out { color: #a3342c; font-weight: 700; }
.badge-sold { background: var(--ink); }

/* dashboard */
.dashboard-wrap { padding: 36px 20px 72px; }
.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin: 20px 0 28px; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card { border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 4px; background: #fff; }
.stat-num { font-family: var(--serif); font-size: 24px; font-weight: 700; }
.stat-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.dash-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.dash-grid .span-2 { grid-column: span 2; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } .dash-grid .span-2 { grid-column: auto; } }
.dash-panel { border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: #fff; }
.dash-panel h2 { margin-top: 0; font-size: 18px; }
.chart { display: flex; align-items: flex-end; gap: 8px; height: 160px; }
.bar-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.bar { width: 100%; max-width: 34px; background: linear-gradient(180deg, var(--gold), #e0b25f); border-radius: 6px 6px 0 0; min-height: 3px; }
.bar-day { font-size: 10px; color: var(--muted); margin-top: 4px; }
.cart-table.compact td { padding: 8px 6px; }

/* promo */
.promo-box { display: flex; gap: 8px; margin: 12px 0 4px; }
.promo-box input { flex: 1; border: 1px dashed var(--gold); border-radius: 999px; padding: 8px 14px; font-size: 14px; text-transform: uppercase; }
.promo-msg { font-size: 13px; color: #0f8a3c; min-height: 18px; margin: 0 0 8px; }
.promo-msg[data-error] { color: #a3342c; }

/* receipt — a thermal slip: narrow paper column, monospace, dashed rules between every block */
.receipt-wrap { padding: 32px 20px 72px; }
.receipt { display: flex; gap: 12px; justify-content: center; margin-bottom: 18px; }
.receipt-card {
  max-width: 384px;
  margin: 0 auto;
  padding: 30px 26px 22px;
  background: #fffdf8;
  color: #221f1c;
  font-family: "Courier New", ui-monospace, Menlo, monospace;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: .2px;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 12px 28px rgba(26, 24, 21, .09);
}
.receipt-head { text-align: center; }
.receipt-head h1 { margin: 0 0 8px; font-family: inherit; font-size: 19px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; }
.receipt-head p { margin: 0; font-size: 11.5px; color: #6c665e; }
.rule { border: 0; border-top: 1px dashed #b6afa2; margin: 13px 0; }
.receipt-line { display: flex; justify-content: space-between; gap: 14px; }
.receipt-line .label { color: #6c665e; }
.receipt-line.total { margin-top: 2px; font-size: 16px; font-weight: 700; letter-spacing: 1.5px; }
.receipt-qr { margin-top: 14px; text-align: center; }
.receipt-qr svg { width: 136px; height: 136px; }
.receipt-code { display: block; font-size: 14px; font-weight: 700; letter-spacing: 2.5px; }
.receipt-qr-hint { display: block; font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: #6c665e; }
.receipt-thanks { margin: 0; text-align: center; font-size: 12px; color: #6c665e; }
.muted { color: var(--muted); font-size: 13px; }
@media print {
  .announce, .site-header, .site-footer, .no-print { display: none !important; }
  .receipt-card { border: none; padding: 0; background: #fff; box-shadow: none; }
  body { background: #fff; }
}
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: 56px;
  color: #ead9bd;
  border-top: 1px solid rgba(240, 201, 138, .22);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(230, 180, 85, .10), transparent 60%),
    linear-gradient(160deg, #2f2116 0%, #3b2a1c 45%, #261a11 100%);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 6px);
  pointer-events: none;
}
.site-footer .container { position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1.4fr 1fr; gap: 34px; padding: 54px 20px 34px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { margin: 0 0 14px; font-family: var(--sans); font-size: 11.5px; font-weight: 800; letter-spacing: 1.7px; text-transform: uppercase; color: #f0c98a; }
.site-footer .footer-brand { margin: 0 0 12px; font-family: var(--serif); font-size: 30px; font-weight: 600; letter-spacing: .2px; text-transform: none; color: #fdf6e8; }
.site-footer .footer-brand span { color: var(--gold); }
.site-footer .footer-tag { margin: 0 0 10px; font-family: var(--serif); font-size: 16.5px; font-style: italic; letter-spacing: .3px; color: #f0c98a; max-width: 30ch; }
.site-footer p { margin: 0; font-size: 14px; line-height: 1.65; color: #d9c8ab; max-width: 34ch; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.site-footer li { color: #d9c8ab; }
.site-footer a { color: #ead9bd; text-decoration: none; transition: color .12s ease; }
.site-footer a:hover { color: #f0c98a; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; border-top: 1px solid rgba(240, 201, 138, .22); padding: 18px 20px 28px; font-size: 12.5px; color: #c9b894; }
.footer-pay { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-pay { align-items: center; gap: 18px; }
.footer-pay .pay-mark { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: #f0c98a; }
.footer-pay .pay-mark img { display: block; height: 30px; width: auto; }
.footer-pay .pay-mark img[alt=""] { height: 20px; }
@media (max-width: 560px) { .footer-bottom { justify-content: flex-start; } }

/* ---- Phone shell ---------------------------------------------------------------------
   One navigation model below 601px: the header is logo + menu button on row 1 and the search
   pill on row 2, the categories open from the menu button, and Home/Shop/Cart/Account live in a
   fixed tab bar. The header cart/auth links and the inline category row are switched off here so
   no route is offered twice. Everything above 600px keeps the desktop header. */
.nav-toggle, .nav-icon-close, .bottom-nav, .filter-toggle { display: none; }
@media (max-width: 600px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .announce { font-size: 12px; padding: 6px 10px; }
  .header-row { padding-top: 8px; padding-bottom: 8px; }
  .auth-links, .cart-link { display: none; }
  .header-actions { order: 2; flex: 1 1 0; min-width: 0; }

  .nav-toggle {
    flex: none; order: 3;
    width: 44px; height: 44px; display: grid; place-items: center;
    border: 1px solid var(--line); border-radius: 999px;
    background: var(--paper-raised); color: var(--ink); cursor: pointer;
  }
  .nav-toggle[aria-expanded="true"] .nav-icon-open { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-icon-close { display: block; }

  /* The panel is absolutely positioned so opening it never grows the header — `--header-h`, which
     the hero offset reads, stays the closed-header height. It carries its own opaque background
     because the header is transparent over the photo on other pages. */
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 6px 0 10px;
    overflow: visible; white-space: normal;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(26, 24, 21, .16);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a {
    display: flex; align-items: center; min-height: 44px; padding: 0 18px;
    font-size: 15px; font-weight: 600; color: var(--ink); text-shadow: none; border-bottom: 0;
  }
  .main-nav a:hover { background: rgba(26, 24, 21, .05); }
  /* Home/Shop already sit in the tab bar, so the panel only lists collections and Offers. */
  .main-nav a.nav-home { display: none; }

  /* Phone home: the header is a solid bar above the hero instead of floating on the photo, so the
     search field never sits on the image. */
  .home-hero .site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
  .home-hero main { margin-top: 0; }
  .home-hero .logo { color: var(--ink); text-shadow: none; }
  .home-hero .header-search { background: var(--paper-raised); border-color: var(--line); }
  .home-hero .header-search .search-go { background: var(--ink); }
  .home-hero .main-nav a { color: var(--ink); text-shadow: none; }
  .home-hero .main-nav a:hover { border-color: transparent; }
  /* The copy now sits on its own panel, so the photo scrim would only grey the text out. */
  .hero--editorial::after { display: none; }

  .bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--paper-raised); border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 16px rgba(26,24,21,.08);
  }
  .bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: none; }
  .bottom-nav a.is-active { color: var(--gold); }
  .bn-icon { position: relative; display: inline-flex; }
  .bn-badge { position: absolute; top: -5px; right: -9px; background: var(--gold); color: #fff; border-radius: 999px; min-width: 17px; height: 17px; padding: 0 4px; font-size: 10px; line-height: 17px; text-align: center; }
  .bn-badge[hidden] { display: none; }

  /* Filters tuck behind one button so products come first. On home the same aside is only a static
     copy of the collection links that the menu panel already lists, so it is dropped there. */
  .filter-side { position: static; padding: 0; border: 0; background: transparent; }
  .filter-side > h2 { display: none; }
  .filter-toggle { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: 700 14px var(--sans); color: var(--ink); }
  .filter-side form { display: none; margin-top: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-raised); }
  .filter-side.is-open form { display: block; }
  .home-hero .filter-side { display: none; }

  /* Denser product tiles. */
  .collection-wrap { padding: 18px 12px 32px; }
  .shop-main .product-grid, .product-grid { gap: 14px 8px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-media { padding: 6px; border-radius: 10px; background: #fff; border-color: var(--line); }
  .card-body { padding-top: 8px; gap: 5px; }
  .card-title { font-size: 12px; text-transform: none; font-weight: 600; }
  .card-price { flex-wrap: wrap; gap: 2px 6px; }
  .card-price .price { font-size: 15px; }
  .card-flag { display: none; }
  .badge { top: 6px; left: 6px; font-size: 11px; padding: 2px 8px; }

  /* Product page: buy bar pinned above the tab bar. */
  .product-wrap { padding: 14px 14px 24px; }
  .product-info h1 { font-size: 21px; }
  .buy-form { position: fixed; left: 0; right: 0; bottom: calc(56px + env(safe-area-inset-bottom)); z-index: 25; margin: 0; padding: 8px 12px; gap: 10px; background: var(--paper-raised); border-top: 1px solid var(--line); }
  .buy-form .btn-pill { flex: 1; }
}

/* Single-column shop layout must not let a wide child stretch the page. */
@media (max-width: 980px) { .shop-layout { grid-template-columns: minmax(0, 1fr); } }
.shop-main { min-width: 0; }

/* Phones: product grids stay a wrapping grid, two cards per row, on every page. */
@media (max-width: 600px) {
  .shop-main .product-grid, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phone header: one compact row — logo, search pill, menu button — and a lighter pill. The field
   keeps a 44px hit height inside the row; only the second header row and the heavy border go away. */
@media (max-width: 600px) {
  .site-header { box-shadow: 0 2px 10px rgba(26, 24, 21, .07); }
  .header-row { padding: 8px 14px; row-gap: 8px; }
  .logo { font-size: 20px; line-height: 1; }
  .nav-toggle, .home-hero .nav-toggle { background: transparent; border-color: transparent; }
  /* The pill shares its row with the logo and menu button, so every pixel of the field counts: the
     magnifier is redundant next to a placeholder and a gold arrow, and dropping it buys ~21px. */
  .header-search .search-icon { display: none; }
  .header-search, .home-hero .header-search {
    background: #fff; border: 1px solid var(--ink); border-radius: 999px;
    padding: 0 0 0 11px; min-height: 44px; gap: 6px;
    box-shadow: none;
  }
  .header-search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 138, 43, .18); }
  .header-search input { font-size: 14px; min-height: 42px; padding: 0; }
  .header-search .search-go, .home-hero .header-search .search-go {
    width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: #fff;
  }
}
/* Below 361px the wordmark + menu button leave only ~42px of typing width, so the field takes its
   old full-width row back — a tall header beats a search box you cannot read. */
@media (max-width: 360px) {
  .header-actions { order: 3; flex: 1 1 100%; }
  .nav-toggle { order: 2; margin-left: auto; }
  .header-search .search-icon { display: block; }
}
@media (max-width: 600px) {
  .hero--editorial .btn-dark { background: transparent; border: 1.5px solid #fff; color: #fff; }
  .hero--editorial .hero-cta { gap: 10px; }
  .hero--editorial .btn-gold { margin-left: 0; }
}

/* Category strip (Carrefour-style "Top categories"): phones only. */
.cat-strip { display: none; }
@media (max-width: 600px) {
  .cat-strip { display: block; padding: 16px 0 6px; background: var(--paper); }
  .cat-strip-title { font-size: 17px; margin: 0 14px 10px; }
  .cat-strip-row { display: flex; gap: 12px; overflow-x: auto; padding: 0 14px 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .cat-strip-row::-webkit-scrollbar { display: none; }
  .cat-chip { flex: 0 0 84px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; scroll-snap-align: start; }
  .cat-chip-img { width: 84px; height: 84px; border-radius: 14px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
  .cat-chip-img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
  .cat-chip-name { font-size: 12.5px; font-weight: 600; text-align: center; line-height: 1.25; }
  .cat-chip--offer .cat-chip-img { background: var(--gold); border-color: var(--gold); color: #fff; font-size: 34px; }
}

/* Simpler phone UI (Jumia-style): fewer elements, clear price, one small action per card. */
@media (max-width: 600px) {
  /* Home: the filter panel just repeats the category strip and menu. */
  .home-hero .filter-side { display: none; }
  .home-hero .collection-head .count { display: none; }
  .home-hero .collection-head h1 { font-size: 20px; margin: 0; }
  .home-hero .collection-wrap { padding-top: 14px; }
  .home-hero .shop-layout { margin-top: 10px; }

  /* Hero: headline and two buttons only. */
  .hero--editorial .hero-kicker, .hero--editorial p:not(.hero-kicker) { display: none; }
  .hero.hero--editorial h1 { font-size: 22px; margin: 0 0 12px; }
  .hero--editorial .hero-inner { padding: 14px 16px 18px; }
  .hero--editorial .hero-cta .btn-pill { min-height: 40px; padding: 0 18px; font-size: 13px; }

  /* Cards: image, name, price, small add button. */
  .card-swatches { display: none; }
  .card-title { font-size: 13px; font-weight: 500; }
  .card-price .price { font-size: 16px; }
  .card-price .compare { font-size: 12px; }
  .card-add .btn-pill { min-height: 38px; padding: 0 10px; font-size: 12px; border-radius: 8px; text-transform: none; letter-spacing: 0; background: var(--gold); }
  .card-body { gap: 4px; }
  .card-foot { gap: 6px; }

  /* Statement banner is decoration: shrink it. */
  .statement-banner { padding: 28px 16px; }
  .statement-banner h2 { font-size: 26px; }
  .statement-sub { margin: 8px auto 16px; font-size: 14px; }
}

/* Quantity stepper (- 1 +), used in the cart; changes save by themselves. */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; overflow: hidden; }
.stepper .step-btn { width: 36px; height: 36px; border: 0; background: transparent; font-size: 20px; line-height: 1; cursor: pointer; color: var(--ink); }
.stepper .step-btn:hover { background: rgba(26,24,21,.06); }
.stepper input.qty { width: 40px; border: 0; padding: 0; border-radius: 0; background: transparent; -moz-appearance: textfield; }
.stepper input.qty::-webkit-outer-spin-button, .stepper input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
@media (max-width: 600px) {
  .stepper .step-btn { width: 44px; height: 44px; }
  .stepper input.qty { min-height: 44px; }
  /* Cart: checkout stays reachable, pinned above the tab bar. */
  .cart-wrap { padding-bottom: 150px; }
  .cart-summary { position: fixed; left: 0; right: 0; bottom: calc(56px + env(safe-area-inset-bottom)); z-index: 25; max-width: none; margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: var(--paper-raised); padding: 10px 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
  .cart-summary .summary-row { flex: 1; padding: 0; flex-direction: column; font-size: 12px; color: var(--muted); }
  .cart-summary .summary-row strong { font-size: 18px; color: var(--ink); }
  .cart-summary .ship-note, .cart-summary .btn-ghost { display: none; }
  .cart-summary .btn-block { margin: 0; flex: 1.2; }
}

.phone-field small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.notes-toggle summary { cursor: pointer; font-size: 14px; color: var(--muted); padding: 8px 0; }
.btn-place { width: 100%; min-height: 50px; font-size: 16px; margin-top: 6px; }
@media (max-width: 600px) {
  .checkout-wrap { padding: 18px 14px 40px; }
  .checkout-wrap h1 { font-size: 24px; margin: 0 0 12px; }
  /* Order summary first, so the total is visible before the form. */
  .checkout-grid { display: flex; flex-direction: column-reverse; }
  .order-summary { padding: 14px; margin-bottom: 16px; }
}
.phone-field small { text-transform: none; letter-spacing: 0; font-weight: 400; }

/* Trending on phones: one line of circles that slides right to left. */
@media (max-width: 600px) {
  .tile-grid {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
    margin: 0 -20px; padding: 0 20px 8px; scroll-padding-left: 20px;
  }
  .tile-grid::-webkit-scrollbar { display: none; }
  .tile { flex: 0 0 96px; scroll-snap-align: start; gap: 8px; }
  .tile-media { --tile-inner: 88px; }
  .tile-label { font-size: 12.5px; text-align: center; }
}

/* Phone home "Our collection": stacked rows of products; each row swipes left/right on its own. */
.swipe-rows { display: none; }
@media (max-width: 600px) {
  .swipe-rows { display: flex; flex-direction: column; gap: 18px; }
  .home-hero .home-grid { display: none; }
  .swipe-row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -12px; padding: 0 12px 4px; scroll-padding-left: 12px; }
  .swipe-row::-webkit-scrollbar { display: none; }
  .swipe-row .product-card { flex: 0 0 calc(50% - 8px); min-width: 0; scroll-snap-align: start; }
}

/* ---- Order tracking page (templates/store/account_order.html) ------------------------------ */
.crumbs { margin: 0 0 6px; font-size: 14px; }
.crumbs a { color: var(--muted); }
.order-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); }
.order-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 22px; }
.track { border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: #fff; margin-bottom: 26px; }
.track h2 { margin-top: 0; }
.track-steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 4px 0 22px; padding: 0; counter-reset: s; }
.track-steps li { position: relative; padding-top: 26px; font-size: 13px; color: var(--muted); text-align: center; }
.track-steps li::before { content: ""; position: absolute; top: 8px; left: -50%; right: 50%; height: 3px; background: var(--line); }
.track-steps li:first-child::before { display: none; }
.track-steps .dot { position: absolute; top: 2px; left: calc(50% - 8px); width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--line); z-index: 1; }
.track-steps li.is-done { color: var(--ink); font-weight: 600; }
.track-steps li.is-done::before { background: var(--gold); }
.track-steps li.is-done .dot { border-color: var(--gold); background: var(--gold); }
.track-steps li.is-current .dot { box-shadow: 0 0 0 5px rgba(201, 138, 43, .2); }
.track-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.track-grid h3 { margin: 0 0 4px; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-family: var(--sans); }
.track-grid p { margin: 0; line-height: 1.5; }
.track-log { list-style: none; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); font-size: 14px; }
.track-log li { padding: 4px 0; }
.track-log time { display: inline-block; min-width: 96px; color: var(--muted); font-size: 13px; }
.track-cancelled { padding: 14px 18px; border-radius: 12px; background: #fde8e6; color: #a3261b; font-weight: 600; }
.refund-note { color: #3d5a80; font-weight: 600; }
@media (max-width: 640px) {
  .track-steps { grid-template-columns: 1fr; gap: 0; }
  .track-steps li { padding: 0 0 14px 30px; text-align: left; }
  .track-steps li::before { top: -50%; bottom: 50%; left: 7px; right: auto; width: 3px; height: auto; }
  .track-steps .dot { top: 1px; left: 0; }
}

/* ---- Checkout: delivery or pickup ---------------------------------------------------------- */
.pickup-choice { padding: 4px 6px 6px 38px; }
.pickup-choice select { width: 100%; }
[hidden] { display: none !important; }

/* ---- Reviews ------------------------------------------------------------------------------- */
.stars { color: var(--gold); letter-spacing: 1px; }
.review-summary { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 8px; }
.reviews .review { border-top: 1px solid var(--line); padding: 14px 0; max-width: 760px; }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.review p { margin: 6px 0; }
.review small { color: var(--muted); }
.review-prompts { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 26px; }
.review-prompt { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); text-decoration: none; font-size: 13px; }
.review-prompt:hover { border-color: var(--gold); }
.review-prompt img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.review-prompt b { color: var(--gold); }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; border: 0; padding: 0; margin: 0 0 10px; }
.star-input legend { width: 100%; font-weight: 600; margin-bottom: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 34px; line-height: 1; color: #d9cfbd; cursor: pointer; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--gold); }
.star-input input:focus-visible + label { outline: 2px solid var(--gold); border-radius: 4px; }

/* ---- Payment page: resend prompt */
.resend-form { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 14px 0; font-size: 13px; color: var(--muted); }
.pay-error { color: #a3261b; font-weight: 600; }

/* ---- Account: offers opt-in */
.offers-toggle { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; }

/* ---- Log in: forgot password --------------------------------------------------------------- */
.forgot-link { align-self: flex-end; margin-top: -6px; font-size: 13px; color: var(--muted); }
.logout-form { display: inline; margin: 0; }
.logout-form .link-btn { text-decoration: none; color: inherit; font-size: inherit; letter-spacing: inherit; text-transform: inherit; }
