/* ==========================================================================
   Digi storefront layout
   ========================================================================== */

.container { width: 100%; max-width: 2200px; margin: 0 auto; padding: 0 clamp(16px, 2.6vw, 48px); }
.page { padding-top: 20px; padding-bottom: 64px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 12px 0 18px; }
.page-head h1 { font-size: 28px; }
.page-head .count { font-family: var(--font); font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 8px; letter-spacing: 0; }

/* ─── Top bar ──────────────────────────────────────────────────────────── */
.topbar { background: var(--ink); color: #d9dade; font-size: 12px; }
.topbar-inner { display: flex; justify-content: center; align-items: center; gap: 28px; height: 32px; }
.topbar span { display: inline-flex; align-items: center; gap: 6px; }
.topbar b { color: #fff; }
.topbar .i { width: 14px; height: 14px; }

/* ─── Header ───────────────────────────────────────────────────────────── */
.header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-main { display: flex; align-items: center; gap: 16px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 8px; flex: none; font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -.03em; }
.logo-mark { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 7px; background: var(--red); color: #fff; font-size: 20px; line-height: 1; padding-bottom: 3px; }
.logo-dot { color: var(--red); }
.cat-btn { flex: none; }
.search { position: relative; flex: 1; display: flex; min-width: 0; }
.search-box { display: flex; flex: 1; align-items: center; height: 44px; border: 2px solid var(--red); border-radius: var(--r); overflow: hidden; background: #fff; }
.search-box .i { margin: 0 8px 0 14px; color: var(--muted); }
.search-box input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none; font-size: 14px; }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-box button { height: 100%; padding: 0 22px; border: 0; background: var(--red); color: #fff; font-weight: 700; }
.search-box button:hover { background: var(--red-hover); }
.autocomplete { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.autocomplete:empty { display: none; }
.autocomplete a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; font-size: 13px; }
.autocomplete a:hover, .autocomplete a.active { background: var(--bg); }
.header-account { display: flex; align-items: center; gap: 10px; flex: none; }
.header-account .avatar { background: var(--bg); color: var(--ink); }
.header-account small { display: block; font-size: 11px; color: var(--muted); line-height: 1.2; }
.header-account strong { display: block; font-size: 13px; line-height: 1.3; }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 10px; flex: none; height: 44px; padding: 0 16px; border-radius: var(--r); background: var(--ink); color: #fff; font-weight: 800; font-size: 13px; }
.cart-btn:hover { background: var(--ink-3); }
.cart-btn .cart-count { position: absolute; top: 3px; left: 24px; display: flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--red); font-size: 10px; font-weight: 800; }
.cart-btn .cart-count[hidden] { display: none; }

.catnav { border-top: 1px solid var(--line-2); }
.catnav-inner { display: flex; align-items: center; gap: 22px; height: 44px; }
.catnav-links { display: flex; align-items: center; gap: 22px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; height: 100%; }
.catnav-links::-webkit-scrollbar { display: none; }
.catnav a { display: inline-flex; align-items: center; height: 100%; font-size: 13px; font-weight: 600; white-space: nowrap; border-bottom: 2px solid transparent; }
.catnav a:hover { color: var(--red); }
.catnav a.active { color: var(--red); border-bottom-color: var(--red); }
.catnav a.deals { color: var(--red); }
.deliver-to { display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: 12px; color: var(--muted); white-space: nowrap; }
.deliver-to b { color: var(--ink); }

/* Categories dropdown */
.cat-menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 70; width: 280px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.cat-menu a { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: var(--r); font-weight: 600; }
.cat-menu a:hover { background: var(--bg); }
.cat-menu a span { font-size: 12px; font-weight: 500; color: var(--muted); }

/* Messages */
.messages { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }

/* ─── Home: hero ───────────────────────────────────────────────────────── */
.hero-grid { display: grid; grid-template-columns: 1fr 300px; gap: 16px; margin-top: 20px; }
.hero { position: relative; min-height: 320px; overflow: hidden; border-radius: var(--r-lg); background: var(--ink); color: #fff; }
.hero-slide { position: absolute; inset: 0; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; padding: 36px 40px; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-slide::after { content: ""; position: absolute; right: -120px; top: -80px; width: 520px; height: 520px; border-radius: 50%; background: var(--red); z-index: 0; }
.hero-copy { position: relative; z-index: 1; max-width: 440px; }
.hero-kicker { display: inline-flex; height: 24px; align-items: center; padding: 0 10px; border: 1px solid rgba(255,138,149,.6); border-radius: 99px; color: #ff8a95; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hero h1, .hero h2 { margin: 14px 0 10px; font-size: 38px; line-height: 1.05; letter-spacing: -.025em; color: #fff; }
.hero p { color: #cfd0d6; font-size: 13px; max-width: 380px; }
.hero .btn { margin-top: 20px; }
.hero-media { position: relative; z-index: 1; display: flex; justify-content: center; }
.hero-media img { max-height: 230px; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0,0,0,.35)); }
.hero-dots { position: absolute; left: 40px; bottom: 22px; z-index: 2; display: flex; gap: 6px; }
.hero-dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.4); }
.hero-dots button.active { width: 18px; background: #fff; }
.hero-arrows { position: absolute; right: 22px; bottom: 18px; z-index: 2; display: flex; gap: 8px; }
.hero-arrows button { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.side-tiles { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.side-tile { position: relative; display: flex; align-items: center; gap: 12px; padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.side-tile.pink { background: var(--red-50); border-color: #f9dade; }
.side-tile .kicker { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.side-tile h3 { margin: 4px 0 8px; font-family: var(--font-display); font-size: 17px; font-weight: 800; line-height: 1.2; }
.side-tile .go { display: inline-flex; align-items: center; gap: 4px; color: var(--red); font-size: 12px; font-weight: 700; }
.side-tile img { width: 96px; height: 96px; object-fit: contain; flex: none; margin-left: auto; }

.perks { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.perk { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.perk + .perk { border-left: 1px solid var(--line); }
.perk-icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--red-50); color: var(--red); flex: none; }
.perk-icon .i { width: 16px; height: 16px; }
.perk b { display: block; font-size: 12px; }
.perk span { display: block; font-size: 11px; color: var(--muted); }

.section { margin-top: 36px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { font-size: 22px; }
.section-head .more { display: inline-flex; align-items: center; gap: 2px; color: var(--blue); font-size: 12px; font-weight: 700; }
.ends { display: inline-flex; align-items: center; gap: 4px; height: 22px; margin-left: 10px; padding: 0 8px; border-radius: 99px; background: var(--red-50); color: var(--red); font-family: var(--font); font-size: 10px; font-weight: 700; letter-spacing: 0; vertical-align: middle; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px; }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 8px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); text-align: center; font-size: 12px; font-weight: 700; transition: border-color .15s, transform .15s; }
.cat-tile:hover { border-color: #c9cbd2; transform: translateY(-1px); }
.cat-tile .cat-img { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; background: var(--bg); overflow: hidden; }
.cat-tile .cat-img img { width: 52px; height: 52px; object-fit: contain; }

/* ─── Product grid & card ──────────────────────────────────────────────── */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.product-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.product-card:hover { border-color: #d5d7dd; box-shadow: 0 6px 20px rgba(22,23,28,.07); }
.product-card .media { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / .92; background: var(--bg); }
.product-card .media img { width: 78%; height: 78%; object-fit: contain; transition: transform .2s; }
.product-card:hover .media img { transform: scale(1.03); }
.product-card .discount-tag { position: absolute; top: 12px; left: 12px; }
.product-card .wish { position: absolute; top: 10px; right: 10px; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #fff; color: var(--muted); box-shadow: var(--shadow-sm); opacity: 0; transition: opacity .15s; }
.product-card:hover .wish, .product-card .wish.on { opacity: 1; }
.product-card .wish.on { color: var(--red); }
.product-card .wish.on .i { fill: currentColor; }
.product-card .body { display: flex; flex-direction: column; flex: 1; gap: 4px; padding: 14px 14px 16px; }
.product-card .brand { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.product-card .name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; font-size: 13px; font-weight: 500; line-height: 1.45; }
.product-card .name::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.product-card .price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: 6px; }
.product-card .price { font-family: var(--font-display); font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.product-card .was { font-size: 11px; color: var(--muted-2); text-decoration: line-through; }
.product-card .actions { position: relative; z-index: 1; margin-top: 12px; }
.product-card .actions .btn { width: 100%; }
.product-card .wish { z-index: 1; }

/* ─── Listing with filters ─────────────────────────────────────────────── */
.listing { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
.filters { position: sticky; top: 132px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.filters-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.filters-head h2 { font-size: 15px; }
.filters-head a { color: var(--blue); font-size: 12px; font-weight: 700; }
.filter-group { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border-bottom: 0; }
.filter-group h3 { margin-bottom: 10px; font-family: var(--font); font-size: 13px; font-weight: 700; letter-spacing: 0; }
.filter-list { display: flex; flex-direction: column; gap: 8px; }
.filter-list .check { justify-content: space-between; font-size: 13px; }
.filter-list .check > span { display: inline-flex; align-items: center; gap: 10px; }
.filter-list .n { font-size: 11px; color: var(--muted-2); }
.price-inputs { display: flex; align-items: center; gap: 6px; }
.price-inputs .input { height: 36px; padding: 0 10px; font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); font-size: 12px; font-weight: 600; white-space: nowrap; }
.chip:hover { border-color: #c9cbd2; }
.chip.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.chip-lg { height: 34px; padding: 0 14px; font-size: 13px; }
.facet-list { display: flex; flex-direction: column; gap: 2px; }
.facet-list a { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: var(--r); font-size: 13px; font-weight: 500; }
.facet-list a:hover { background: var(--bg); }
.facet-list a.active { background: var(--red-50); color: var(--red); font-weight: 700; }
.facet-list a span { font-size: 11px; color: var(--muted-2); }
.facet-list a.active span { color: var(--red); }
.radio-list { display: flex; flex-direction: column; gap: 8px; }
.radio-list .check input { border-radius: 50%; }

.listing-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.listing-bar b { color: var(--ink); }
.sort { display: flex; align-items: center; gap: 8px; }
.sort .select { width: auto; height: 36px; font-weight: 700; font-size: 13px; }
.listing-foot { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 24px; }
.filters-toggle { display: none; }

.related { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: -6px 0 18px; font-size: 12px; color: var(--muted); }

.no-results { display: flex; gap: 28px; padding: 32px; }
.no-results .empty-icon { width: 72px; height: 72px; flex: none; }
.no-results h1 { font-size: 26px; }
.no-results ul { margin: 12px 0 18px; padding-left: 18px; color: var(--ink-3); line-height: 1.9; }

/* ─── Product page ─────────────────────────────────────────────────────── */
.pdp { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: start; margin-top: 16px; }
.gallery { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 16px; }
.gallery-thumbs { display: flex; flex-direction: column; gap: 10px; }
.gallery-thumbs button { width: 64px; height: 64px; padding: 4px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.gallery-thumbs button.active { border: 2px solid var(--red); padding: 3px; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.gallery-main { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1.3 / 1; border-radius: var(--r); background: var(--bg); }
.gallery-main img { width: 70%; height: 80%; object-fit: contain; }
.gallery-main .discount-tag { position: absolute; top: 14px; left: 14px; }
.gallery-main .counter { position: absolute; right: 14px; bottom: 14px; padding: 2px 8px; border-radius: 99px; background: #fff; font-size: 11px; color: var(--muted); }
.pdp-info .brand { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pdp-info h1 { margin: 6px 0 6px; font-size: 26px; line-height: 1.2; }
.pdp-info .sku { font-size: 11px; color: var(--muted); }
.buy-box { margin-top: 16px; padding: 18px 16px; }
.buy-price { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.buy-price .price { font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.buy-price .was { color: var(--muted-2); text-decoration: line-through; font-size: 14px; }
.buy-box .lead { margin: 12px 0 12px; color: var(--ink-3); line-height: 1.6; }
.highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; padding: 0 0 14px; margin: 0; list-style: none; font-size: 13px; border-bottom: 1px solid var(--line); }
.highlights li { display: flex; gap: 8px; }
.highlights .i { color: var(--green); width: 16px; height: 16px; margin-top: 2px; }
.promises { display: flex; flex-direction: column; gap: 7px; margin: 14px 0 16px; padding: 0; list-style: none; font-size: 13px; }
.promises li { display: flex; align-items: center; gap: 8px; }
.promises .i { width: 16px; height: 16px; color: var(--ink-3); }
.buy-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.buy-actions .btn-dark { grid-column: 1 / -1; }
.buy-box .pay-note { margin-top: 12px; text-align: center; font-size: 12px; color: var(--muted); }
.buy-box .pay-note b { color: var(--mpesa); }
.pdp-details { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: start; margin-top: 20px; }
.pdp-details .card-head { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.prose { color: var(--ink-3); font-size: 13px; line-height: 1.7; }
.prose p + p { margin-top: 10px; }
.prose ul { margin: 10px 0; padding-left: 18px; }

/* ─── Cart ─────────────────────────────────────────────────────────────── */
.cart-layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.cart-table .cart-row { display: grid; grid-template-columns: 1fr 140px 120px; gap: 16px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.cart-table .cart-row.head { padding: 10px 16px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cart-item { display: flex; gap: 14px; align-items: center; min-width: 0; }
.cart-item .thumb { width: 72px; height: 72px; }
.cart-item .brand { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cart-item .name { font-weight: 600; line-height: 1.35; }
.cart-item .each { font-size: 12px; color: var(--muted); }
.cart-qty { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.remove-btn { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0; font-size: 12px; color: var(--muted); }
.remove-btn:hover { color: var(--red); }
.remove-btn .i { width: 13px; height: 13px; }
.line-total { text-align: right; font-weight: 800; font-size: 15px; }
.cart-foot { padding: 14px 16px; }
.summary { padding: 18px 16px; position: sticky; top: 132px; }
.summary h2 { font-size: 18px; margin-bottom: 12px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 13px; }
.summary-row span:first-child { color: var(--muted); }
.summary-note { margin: 8px 0 12px; padding: 8px 10px; border-radius: var(--r); background: var(--bg); font-size: 11px; color: var(--muted); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; margin-top: 10px; border-top: 1px solid var(--line); }
.summary-total span { font-weight: 700; }
.summary-total strong { font-family: var(--font-display); font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.summary .vat { text-align: right; font-size: 11px; color: var(--muted); }
.promo { display: flex; gap: 8px; margin: 14px 0 10px; }
.pay-marks { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

/* ─── Checkout ─────────────────────────────────────────────────────────── */
.checkout-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.checkout-header .container { display: flex; align-items: center; gap: 20px; height: 56px; }
.secure { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-size: 12px; font-weight: 700; }
.secure .i { width: 14px; height: 14px; }
.checkout-header .help-line { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 12px; color: var(--muted); }
.checkout-header .help-line b { color: var(--ink); }
.checkout-layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.step-card { padding: 20px; }
.step-card h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 17px; }
.step-num { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--font); font-size: 11px; font-weight: 800; }
.address-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.address-options .option { align-items: flex-start; flex-direction: column; gap: 2px; min-height: 70px; }
.address-options .option input { position: absolute; opacity: 0; }
.delivery-options { display: flex; flex-direction: column; gap: 8px; }
.delivery-options .option .price { margin-left: auto; font-weight: 700; }
.pay-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pay-options .option { justify-content: center; height: 48px; font-weight: 700; }
.pay-options .option input { position: absolute; opacity: 0; }
.pay-hint { display: flex; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--bg); font-size: 12px; color: var(--ink-3); }
.pay-hint .i { width: 16px; height: 16px; margin-top: 1px; }
.order-lines { display: flex; flex-direction: column; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.order-line { display: flex; gap: 10px; align-items: center; font-size: 12px; }
.order-line .thumb { position: relative; overflow: visible; }
.order-line .thumb .n { position: absolute; top: -6px; right: -6px; display: flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 9px; font-weight: 800; }
.order-line .name { flex: 1; min-width: 0; line-height: 1.4; }
.order-line .amt { font-weight: 700; white-space: nowrap; }
.legal { margin-top: 10px; text-align: center; font-size: 11px; color: var(--muted); }
.checkout-footer { padding: 24px 0; border-top: 1px solid var(--line); background: var(--surface); text-align: center; font-size: 12px; color: var(--muted); }
.checkout-footer a { margin-left: 16px; }

/* ─── Order confirmation & order pages ─────────────────────────────────── */
.confirm-head { padding: 24px; }
.confirm-top { display: flex; align-items: flex-start; gap: 16px; }
.confirm-check { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--green-50); color: var(--green); flex: none; }
.confirm-top h1 { font-size: 24px; }
.order-no { margin-left: auto; padding-left: 20px; border-left: 1px solid var(--line); text-align: right; }
.order-no small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.order-no .ref { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 20px; font-weight: 700; }
.confirm-head .tracker { margin-top: 24px; }
.two-col { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
.items-card .item { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.items-card .item .thumb { width: 56px; height: 56px; }
.items-card .item .name { font-weight: 600; font-size: 13px; }
.items-card .item .sub { font-size: 11px; color: var(--muted); }
.items-card .item .amt { margin-left: auto; font-weight: 800; white-space: nowrap; }
.totals { padding: 14px 16px; }
.totals .summary-row span:first-child { color: var(--muted); }
.totals .grand { display: flex; justify-content: space-between; align-items: baseline; margin-top: 4px; font-weight: 700; }
.totals .grand strong { font-family: var(--font-display); font-size: 20px; font-weight: 800; }
.info-card { padding: 16px; }
.info-card h3 { margin-bottom: 10px; }
.info-line { display: flex; gap: 10px; font-size: 13px; }
.info-line + .info-line { margin-top: 8px; }
.info-line .i { width: 16px; height: 16px; margin-top: 2px; color: var(--ink-3); }
.info-line b { display: block; }
.info-line span { color: var(--muted); font-size: 12px; }

/* ─── Account area ─────────────────────────────────────────────────────── */
.account { display: grid; grid-template-columns: 196px 1fr; gap: 20px; align-items: start; margin-top: 20px; }
.account-nav { padding: 8px; }
.account-user { display: flex; align-items: center; gap: 10px; padding: 8px 6px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.account-user b { display: block; font-size: 13px; }
.account-user span { font-size: 11px; color: var(--muted); }
.account-nav a, .account-nav button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: var(--r); background: none; font-weight: 600; font-size: 13px; text-align: left; }
.account-nav a:hover, .account-nav button:hover { background: var(--bg); }
.account-nav a.active { background: var(--red-50); color: var(--red); }
.account-nav hr { border: 0; height: 1px; background: var(--line); margin: 6px 0; }
.account-main h1 { font-size: 26px; margin-bottom: 14px; }
.account-main .page-head { margin-top: 0; }
.address-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.address-card { padding: 16px; }
.address-card.default { border: 2px solid var(--red); padding: 15px; }
.address-card h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.address-card p { font-size: 13px; color: var(--ink-3); }
.address-card .who { margin-top: 4px; font-size: 12px; color: var(--muted); }
.address-card .links { display: flex; gap: 14px; margin-top: 10px; }
.address-card .links a, .address-card .links button { border: 0; background: none; padding: 0; color: var(--blue); font-weight: 700; font-size: 12px; }

/* Auth pages */
.auth { display: flex; justify-content: center; padding: 48px 0 72px; }
.auth-card { width: 100%; max-width: 420px; padding: 28px; }
.auth-card h1 { font-size: 24px; margin-bottom: 4px; }
.auth-card .sub { margin-bottom: 20px; color: var(--muted); }
.auth-card .alt { margin-top: 18px; text-align: center; font-size: 13px; color: var(--muted); }

/* Content pages */
.content-card { max-width: 820px; padding: 32px; }
.content-card h1 { margin-bottom: 16px; }
.content-card .prose { font-size: 14px; }

/* ─── Footer ───────────────────────────────────────────────────────────── */
.footer { margin-top: 48px; background: var(--ink); color: #b9bac1; font-size: 13px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr; gap: 24px; padding-top: 40px; padding-bottom: 32px; }
.footer .logo { color: #fff; font-size: 22px; }
.footer .about { margin: 14px 0; max-width: 260px; line-height: 1.6; }
.footer .phone { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; }
.footer h4 { margin-bottom: 12px; font-family: var(--font); font-size: 13px; font-weight: 700; color: #fff; letter-spacing: 0; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer a:hover { color: #fff; }
.newsletter { display: flex; gap: 8px; }
.newsletter .input { background: #1f2026; border-color: #34363e; color: #fff; }
.newsletter .input::placeholder { color: #7c7e87; }
.footer .fine { margin-top: 8px; font-size: 11px; color: #7c7e87; }
.footer-bottom { border-top: 1px solid #2a2c33; }
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 56px; font-size: 12px; }
.footer-bottom .accept { display: flex; align-items: center; gap: 6px; }
.footer-bottom .legal-links { display: flex; gap: 18px; }

/* ─── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-top > :first-child, .footer-top > :last-child { grid-column: span 3; }
}
@media (max-width: 960px) {
  .header-main { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 10px; }
  .search { order: 5; flex-basis: 100%; }
  .header-account .who { display: none; }
  .cat-btn { display: none; }
  .deliver-to { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .side-tiles { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .perks { grid-template-columns: 1fr 1fr; }
  .perk:nth-child(3) { border-left: 0; }
  .perk:nth-child(n+3) { border-top: 1px solid var(--line); }
  .product-grid, .product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .listing { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: block; }
  .filters-toggle { display: inline-flex; }
  .pdp, .pdp-details { grid-template-columns: 1fr; }
  .cart-layout, .checkout-layout, .two-col { grid-template-columns: 1fr; }
  .summary { position: static; }
  .account { grid-template-columns: 1fr; }
  .account-nav { display: flex; overflow-x: auto; gap: 4px; }
  .account-user, .account-nav hr { display: none; }
  .account-nav a, .account-nav button { width: auto; white-space: nowrap; }
  .topbar-inner span:not(:first-child) { display: none; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .header-account { display: none; }
  .cart-btn .cart-total { display: none; }
  .hero-slide { grid-template-columns: 1fr; padding: 24px; }
  .hero-media { display: none; }
  .hero h1, .hero h2 { font-size: 28px; }
  .side-tiles { grid-template-columns: 1fr; }
  .perks { grid-template-columns: 1fr; }
  .perk + .perk { border-left: 0; border-top: 1px solid var(--line); }
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .product-grid, .product-grid.cols-3 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-card .body { padding: 10px; }
  .product-card .price { font-size: 16px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-thumbs { flex-direction: row; order: 2; }
  .highlights { grid-template-columns: 1fr; }
  .cart-table .cart-row { grid-template-columns: 1fr auto; }
  .cart-table .cart-row.head { display: none; }
  .cart-table .cart-qty { grid-row: 2; }
  .address-options, .pay-options, .address-grid, .form-grid { grid-template-columns: 1fr; }
  .confirm-top { flex-wrap: wrap; }
  .order-no { margin-left: 0; padding-left: 0; border-left: 0; text-align: left; }
  .tracker-time { display: none; }
  .tracker-label { font-size: 11px; }
  .no-results { flex-direction: column; padding: 20px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > :first-child, .footer-top > :last-child { grid-column: span 2; }
  .footer-bottom .container { flex-direction: column; height: auto; padding: 14px 16px; }
  .page-head { flex-direction: column; align-items: flex-start; }
}

/* Wide screens: use the full width with more columns, not bigger cards */
@media (min-width: 1500px) {
  .product-grid { grid-template-columns: repeat(5, 1fr); }
  .product-grid.cols-3 { grid-template-columns: repeat(4, 1fr); }
  .hero-grid { grid-template-columns: 1fr 360px; }
  .hero { min-height: 340px; }
}
@media (min-width: 1850px) {
  .product-grid { grid-template-columns: repeat(6, 1fr); }
  .product-grid.cols-3 { grid-template-columns: repeat(5, 1fr); }
  .hero { min-height: 380px; }
}
/* Product rows (home, "you may also like") show exactly one full row at every width */
.product-grid.one-row > :nth-child(n+5) { display: none; }
@media (min-width: 1500px) { .product-grid.one-row > :nth-child(5) { display: flex; } }
@media (min-width: 1850px) { .product-grid.one-row > :nth-child(6) { display: flex; } }
@media (max-width: 960px) { .product-grid.one-row > :nth-child(4) { display: none; } }
@media (max-width: 640px) { .product-grid.one-row > :nth-child(4) { display: flex; } }

/* Variant picker */
.variant-picker { display: flex; flex-direction: column; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.variant-label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.variant-label b { color: var(--ink); }
.variant-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); font-weight: 600; font-size: 13px; }
.chip:hover:not(:disabled) { border-color: #b9bcc5; }
.chip[aria-checked="true"] { border: 2px solid var(--red); padding: 0 13px; background: #fff8f8; color: var(--red); }
.chip.unavailable { color: var(--muted-2); text-decoration: line-through; }
.variant-hint { font-size: 12px; color: var(--red); }

/* Offers page */
.offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 8px; }
.offer-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: var(--r-lg); background: var(--ink); color: #fff; overflow: hidden; }
.offer-card::after { content: ""; position: absolute; right: -50px; top: -50px; width: 150px; height: 150px; border-radius: 50%; background: var(--red); opacity: .9; }
.offer-card > * { position: relative; z-index: 1; }
.offer-card .kicker { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #ffb3bd; }
.offer-card h2 { font-size: 19px; }
.offer-card .offer-value { font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.offer-card .muted { color: #b9bcc5; }
.offer-card .go { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; }
.offer-card.code { background: var(--red-50); color: var(--ink); border: 1px dashed var(--red); }
.offer-card.code::after { display: none; }
.offer-card.code .kicker { color: var(--red); }
.offer-card.code .muted { color: var(--muted); }
.code-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.code-row .code { padding: 6px 12px; border-radius: var(--r); background: #fff; border: 1px solid var(--red-100); font-size: 16px; font-weight: 700; letter-spacing: .04em; }

/* M-PESA payment panel (order confirmation) */
.mpesa-panel { padding: 18px 20px; border-color: #bfe3c9; background: #f4fbf6; }
.mpesa-panel.failed { border-color: var(--red-100); background: #fff8f8; }
.mpesa-panel.paid { border-color: #bfe3c9; background: var(--green-50); }
.mpesa-row { display: flex; align-items: center; gap: 14px; }
.mpesa-row h2 { font-size: 17px; }
.mpesa-retry { margin-top: 12px; }
.mp-spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid #cfe9d6; border-top-color: var(--mpesa); animation: spin 0.9s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* "Sell on Digi" calls to action */
.sell-btn { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 30px; padding: 0 12px; margin-left: 14px;
  border: 1.5px solid var(--red); border-radius: 99px; color: var(--red); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.sell-btn:hover, .sell-btn.active { background: var(--red); color: #fff; }
.topbar-sell { display: inline-flex; align-items: center; gap: 4px; color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.topbar-sell:hover { color: #ff8a95; }
.sell-strip { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 12px; padding: 16px 20px;
  border-radius: var(--r-lg); background: var(--red-50); border: 1px dashed var(--red); }
.sell-strip .icon { display: inline-flex; width: 42px; height: 42px; border-radius: 50%; background: var(--red); color: #fff; align-items: center; justify-content: center; flex: none; }
.sell-strip .txt { flex: 1; min-width: 220px; }
.sell-strip b { display: block; font-family: var(--font-display); font-size: 17px; }
@media (max-width: 640px) { .sell-btn { margin-left: 8px; padding: 0 10px; } .sell-strip .btn { width: 100%; } }
@media (max-width: 640px) { .topbar-sell { display: none; } }
.catnav a.sell-btn { height: 30px; border-bottom: 1.5px solid var(--red); color: var(--red); }
.catnav a.sell-btn:hover, .catnav a.sell-btn.active { color: #fff; }
.sell-strip .txt > span { display: block; font-size: 13px; color: var(--muted); }
.sell-strip .txt b { color: var(--ink); }
.sell-strip:hover .btn-primary { background: var(--red-hover); }
