/* =========================================================
   Kaarwa Crafts - Storefront styles (mobile first)
   Colours come from Admin > Settings > Theme (CSS variables)
   ========================================================= */
:root {
  --primary: #E0475E; --secondary: #8E2148; --accent: #E8A25A;
  --bg: #fff; --soft: #FDF1EF; --text: #1F1A1C;
  --muted: #7b7174; --line: #f0e6e4; --card: #fff;
  --radius: 18px; --shadow: 0 6px 24px rgba(80, 30, 40, .08);
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --bottom-nav: 64px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: var(--bg); font-size: 15px; line-height: 1.5;
  padding-bottom: calc(var(--bottom-nav) + env(safe-area-inset-bottom)); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; }
button, input, select, textarea { font: inherit; color: inherit; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.ic { width: 24px; height: 24px; flex-shrink: 0; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.text-primary { color: var(--primary); }
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mb-2{margin-bottom:16px}
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  padding: 12px 22px; border-radius: 999px; font-weight: 500; font-size: 15px; transition: .2s; white-space: nowrap; }
.btn .ic { width: 18px; height: 18px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 35%, transparent); }
.btn-primary:hover { filter: brightness(.94); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-light { background: #f4eeec; color: var(--text); }
.btn-wa { background: #25D366; color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.btn .arrow { font-size: 18px; line-height: 1; }

/* ---------- Announcement ---------- */
.announce { background: var(--secondary); color: #fff; font-size: 12.5px; overflow: hidden; white-space: nowrap; }
.announce-track { display: inline-block; padding: 6px 0; animation: marquee 22s linear infinite; padding-left: 100%; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.hdr { display: flex; align-items: center; gap: 8px; height: 64px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.icon-btn:hover { background: var(--soft); }
.icon-btn .ic { width: 26px; height: 26px; }
.brand { display: flex; align-items: center; gap: 6px; flex: 1; justify-content: center; min-width: 0; }
.brand-mark { width: 34px; height: 34px; }
.brand-logo { max-height: 46px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.brand-text b { font-family: var(--font-head); font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { font-size: 8.5px; letter-spacing: 2.4px; color: var(--muted); margin-top: 4px; white-space: nowrap; }
.hdr-actions { display: flex; align-items: center; }
.cart-badge, .dot-badge { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
  background: var(--primary); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; border: 2px solid var(--bg); }
.hdr-search { display: none; }
.only-desktop { display: none !important; }
.mobile-search { display: none; gap: 8px; padding: 0 16px 12px; }
.mobile-search.open { display: flex; }
.mobile-search input, .hdr-search input { flex: 1; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 16px; background: #fff; outline: none; }
.mobile-search input:focus, .hdr-search input:focus { border-color: var(--primary); }
.desk-nav { display: none; }

/* ---------- Drawer ---------- */
.drawer-overlay { position: fixed; inset: 0; background: rgba(20, 10, 12, .45); z-index: 90; opacity: 0; pointer-events: none; transition: .25s; }
.drawer { position: fixed; top: 0; left: 0; bottom: 0; width: 86%; max-width: 330px; background: #fff; z-index: 100; transform: translateX(-102%); transition: .3s ease; display: flex; flex-direction: column; }
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-overlay { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 20px 14px 16px 18px; background: linear-gradient(135deg, var(--soft), #fff); }
.drawer-head > div:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.drawer-head small { color: var(--muted); }
.drawer-head small a { color: var(--primary); font-weight: 500; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 18px; }
.drawer-body { overflow-y: auto; padding: 6px 0 30px; }
.drawer-label { font-size: 11.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin: 18px 18px 6px; }
.drawer-link { display: flex; align-items: center; gap: 12px; padding: 10px 18px; font-size: 14.5px; }
.drawer-link:hover { background: var(--soft); }
.drawer-link img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--soft); }
.drawer-link .ic { width: 22px; height: 22px; color: var(--primary); }
.drawer-link.sm { font-size: 13.5px; color: var(--muted); padding: 7px 18px; }

/* ---------- Alerts ---------- */
.alert { padding: 12px 16px; border-radius: 12px; margin: 14px 0; font-size: 14px; }
.alert-success { background: #e8f7ee; color: #17663a; }
.alert-error, .alert-danger { background: #fdecee; color: #a3182c; }
.alert-info { background: #eaf2fd; color: #1d4f91; }
.alert-warning { background: #fff5e3; color: #8a5a00; }

/* ---------- Hero slider ---------- */
.hero { margin-top: 14px; }
.slider { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--soft); }
.slides { display: flex; transition: transform .6s cubic-bezier(.65, 0, .35, 1); touch-action: pan-y; }
.slide { min-width: 100%; position: relative; aspect-ratio: 16/9.6; }
.slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 18px 20px; max-width: 62%;
  background: linear-gradient(90deg, color-mix(in srgb, var(--soft) 92%, transparent) 40%, transparent); }
.slide-content h2 { font-size: clamp(19px, 5.4vw, 52px); font-weight: 700; margin: 0 0 6px; }
.slide-content h2 em { font-style: normal; color: var(--primary); display: block; }
.slide-content p { margin: 0 0 12px; font-size: clamp(11.5px, 3vw, 18px); }
.slide-content .btn { align-self: flex-start; padding: 8px 16px; font-size: 13px; }
.dots { display: flex; gap: 8px; justify-content: center; margin: 10px 0 0; }
.dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: #ddd; padding: 0; cursor: pointer; transition: .3s; }
.dots button.on { background: var(--primary); width: 22px; border-radius: 6px; }

/* ---------- Sections ---------- */
.section { margin-top: 26px; }
.sec-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.sec-head h2 { font-family: var(--font-body); font-weight: 600; font-size: 20px; margin: 0; }
.sec-head a { display: flex; align-items: center; color: var(--muted); font-size: 14px; }
.sec-head a .ic { width: 18px; }
.page-title { font-size: 26px; margin: 20px 0 14px; }

/* Categories row */
.cat-row { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 8px; scrollbar-width: none; }
.cat-row::-webkit-scrollbar { display: none; }
.cat-item { flex: 0 0 auto; width: 86px; text-align: center; scroll-snap-align: start; font-size: 13.5px; }
.cat-item .ring { width: 80px; height: 80px; margin: 0 auto 6px; border-radius: 50%; padding: 3px; background: linear-gradient(135deg, var(--soft), color-mix(in srgb, var(--primary) 30%, #fff)); transition: .25s; }
.cat-item .ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #fff; border: 3px solid #fff; }
.cat-item:hover .ring { transform: translateY(-3px); }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 10px; }
.cat-grid .cat-item { width: auto; }
.cat-grid .ring { width: 92px; height: 92px; }

/* Promo banner */
.promo { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/7.5; box-shadow: var(--shadow); background: var(--soft); }
.promo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo-content { position: relative; z-index: 1; padding: 18px 20px; height: 100%; display: flex; flex-direction: column; justify-content: center; max-width: 60%; }
.promo-content h3 { font-size: clamp(19px, 5vw, 44px); margin: 0 0 4px; }
.promo-content h3 em { font-style: normal; color: var(--primary); display: block; }
.promo-content hr { width: 40px; border: 0; border-top: 3px solid var(--primary); margin: 6px 0 12px; }
.promo-content .btn { align-self: flex-start; padding: 8px 16px; font-size: 13px; background: var(--secondary); }

/* Product grid & card */
.pgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pscroll { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.pscroll::-webkit-scrollbar { display: none; }
.pscroll .pcard { scroll-snap-align: start; }
.pcard { position: relative; background: var(--card); border-radius: 16px; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: .25s; }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.pcard-img { display: block; aspect-ratio: 1/0.9; background: var(--soft); position: relative; overflow: hidden; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.pcard:hover .pcard-img img { transform: scale(1.05); }
.badge-off { position: absolute; left: 8px; top: 8px; background: var(--secondary); color: #fff; font-size: 10.5px; font-weight: 600; padding: 3px 8px; border-radius: 20px; }
.wish-btn { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .85); display: grid; place-items: center; cursor: pointer; z-index: 2; }
.wish-btn svg { width: 19px; height: 19px; fill: none; stroke: var(--text); stroke-width: 1.8; transition: .2s; }
.wish-btn.active svg { fill: var(--primary); stroke: var(--primary); animation: pop .35s; }
@keyframes pop { 50% { transform: scale(1.3); } }
.pcard-body { padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard-title { font-size: 14px; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; line-height: 1.3; }
.pcard-rating { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.stars { display: inline-flex; letter-spacing: 1px; }
.star { font-style: normal; color: #ddd; font-size: 13px; }
.star.full { color: var(--accent); }
.star.half { background: linear-gradient(90deg, var(--accent) 50%, #ddd 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pcard-price { margin-bottom: 6px; }
.pcard-price b { font-size: 17px; }
.pcard-price s { color: var(--muted); font-size: 12.5px; margin-left: 4px; }
.pcard .btn-sm { margin-top: auto; padding: 9px 8px; font-size: 13px; }

/* Features strip */
.features { display: grid; grid-template-columns: repeat(3, 1fr); background: #f7f3f2; border-radius: 16px; padding: 14px 6px; margin-top: 22px; }
.feature { display: flex; align-items: center; gap: 8px; padding: 0 8px; border-right: 1px solid #e6dcda; }
.feature:last-child { border: 0; }
.feature .ic { width: 30px; height: 30px; }
.feature b { font-size: 12px; display: block; font-weight: 600; }
.feature small { font-size: 10.5px; color: var(--muted); display: block; line-height: 1.25; }

/* ---------- Product page ---------- */
.pd { display: grid; gap: 20px; margin-top: 14px; }
.gallery { position: relative; }
.gallery-main { border-radius: var(--radius); overflow: hidden; background: var(--soft); aspect-ratio: 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumbs img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; cursor: pointer; border: 2px solid transparent; opacity: .7; }
.thumbs img.on { border-color: var(--primary); opacity: 1; }
.gallery .wish-btn { top: 12px; right: 12px; width: 42px; height: 42px; }
.gallery .share-btn { position: absolute; top: 62px; right: 12px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); display: grid; place-items: center; cursor: pointer; }
.gallery .share-btn .ic { width: 20px; }
.pd-cat { color: var(--primary); font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; }
.pd h1 { font-size: 28px; margin: 4px 0 8px; }
.pd-price { display: flex; align-items: baseline; gap: 10px; margin: 10px 0; flex-wrap: wrap; }
.pd-price b { font-size: 28px; }
.pd-price s { color: var(--muted); }
.pd-price .off { color: #17803d; font-weight: 600; font-size: 14px; }
.cashback-chip { display: inline-flex; align-items: center; gap: 6px; background: #fff4e5; color: #8a5200; padding: 6px 12px; border-radius: 20px; font-size: 13px; }
.cashback-chip .ic { width: 18px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 38px; height: 38px; border: 0; background: none; font-size: 18px; cursor: pointer; }
.qty input { width: 40px; text-align: center; border: 0; outline: none; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pd-actions { display: flex; gap: 10px; margin: 16px 0; }
.pd-actions .btn { flex: 1; }
.box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 14px; }
.box h3 { font-family: var(--font-body); font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.pin-form { display: flex; gap: 8px; }
.pin-form input { flex: 1; min-width: 0; }
.pin-result { margin-top: 8px; font-size: 13.5px; }
.pin-result.ok { color: #17803d; } .pin-result.bad { color: #b4232f; }
.desc { font-size: 14.5px; color: #4a4245; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: calc(var(--bottom-nav) + env(safe-area-inset-bottom)); background: #fff; padding: 10px 16px; display: flex; gap: 10px; box-shadow: 0 -4px 16px rgba(0, 0, 0, .06); z-index: 40; }
.sticky-buy .btn { flex: 1; }
.review { border-top: 1px solid var(--line); padding: 12px 0; }
.review b { font-size: 14px; }
.review p { margin: 4px 0 0; font-size: 14px; color: #555; }
.rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rating-input input { display: none; }
.rating-input label { font-size: 28px; color: #ddd; cursor: pointer; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: var(--accent); }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 500; margin-bottom: 6px; }
.input, select.input, textarea.input { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px; background: #fff; outline: none; transition: .2s; }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-wrap { max-width: 420px; margin: 26px auto; }
.auth-card { background: #fff; border-radius: 22px; padding: 26px 22px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.auth-card h1 { font-size: 28px; text-align: center; }
.auth-card .sub { text-align: center; color: var(--muted); margin-top: -4px; margin-bottom: 22px; font-size: 14px; }
.auth-foot { text-align: center; margin-top: 16px; font-size: 14px; }
.auth-foot a { color: var(--primary); font-weight: 500; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { accent-color: var(--primary); width: 18px; height: 18px; }

/* ---------- Cart ---------- */
.cart-layout { display: grid; gap: 18px; margin-top: 10px; }
.citem { display: flex; gap: 12px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; }
.citem img { width: 86px; height: 86px; border-radius: 12px; object-fit: cover; background: var(--soft); }
.citem-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.citem-info a.name { font-weight: 500; font-size: 14.5px; }
.citem-row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.citem .qty button { width: 32px; height: 32px; }
.citem .qty input { width: 32px; }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; padding: 4px; }
.link-btn .ic { width: 16px; height: 16px; }
.summary .line { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14.5px; }
.summary .line.total { border-top: 1px dashed #ddd; margin-top: 6px; padding-top: 12px; font-weight: 600; font-size: 17px; }
.summary .line.green { color: #17803d; }
.empty { text-align: center; padding: 50px 20px; }
.empty .ic { width: 70px; height: 70px; color: color-mix(in srgb, var(--primary) 50%, #fff); margin: 0 auto 12px; }
.empty h3 { font-size: 22px; }

/* Checkout */
.addr-card { display: flex; gap: 10px; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; margin-bottom: 10px; cursor: pointer; font-size: 14px; }
.addr-card input { accent-color: var(--primary); margin-top: 3px; }
.addr-card:has(input:checked) { border-color: var(--primary); background: var(--soft); }
.pay-opt { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; margin-bottom: 10px; cursor: pointer; }
.pay-opt:has(input:checked) { border-color: var(--primary); background: var(--soft); }
.pay-opt input { accent-color: var(--primary); width: 18px; height: 18px; }
.pay-opt small { display: block; color: var(--muted); }
.coupon-form { display: flex; gap: 8px; }
.coupon-form .input { text-transform: uppercase; }

/* ---------- Account ---------- */
.acc-hero { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; border-radius: 22px; padding: 22px; margin-top: 16px; display: flex; align-items: center; gap: 14px; }
.acc-hero .avatar { background: rgba(255, 255, 255, .25); width: 56px; height: 56px; font-size: 22px; }
.acc-hero h2 { font-family: var(--font-body); font-size: 18px; margin: 0; }
.acc-hero small { opacity: .85; }
.acc-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.acc-menu a { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 8px; font-weight: 500; }
.acc-menu a .ic { color: var(--primary); width: 28px; height: 28px; }
.acc-menu a small { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; margin: 16px 0; scrollbar-width: none; }
.tabs a { padding: 8px 16px; border-radius: 20px; background: #f4eeec; font-size: 14px; white-space: nowrap; }
.tabs a.on { background: var(--primary); color: #fff; }

/* Wallet */
.wallet-card { background: linear-gradient(135deg, var(--secondary), var(--primary)); border-radius: 22px; color: #fff; padding: 24px; margin-top: 16px; position: relative; overflow: hidden; }
.wallet-card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.wallet-card small { opacity: .85; }
.wallet-card .bal { font-size: 36px; font-weight: 600; margin: 4px 0; }
.txn { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; gap: 10px; }
.txn .amt.credit { color: #17803d; font-weight: 600; }
.txn .amt.debit { color: #b4232f; font-weight: 600; }

/* Orders */
.ocard { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 12px; display: block; }
.ocard-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.ocard-imgs { display: flex; gap: 6px; }
.ocard-imgs img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--soft); }
.st { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 500; background: #eee; white-space: nowrap; }
.st-pending { background: #fff5e3; color: #8a5a00; } .st-accepted { background: #eaf2fd; color: #1d4f91; }
.st-ready_to_ship { background: #efe9fd; color: #5130a3; } .st-shipped { background: #e4f4fb; color: #0b6584; }
.st-out_for_delivery { background: #fff0e6; color: #a2470b; } .st-delivered { background: #e8f7ee; color: #17663a; }
.st-cancelled, .st-returned { background: #fdecee; color: #a3182c; }

/* Tracking timeline */
.timeline { position: relative; padding-left: 8px; }
.tl-step { position: relative; display: flex; gap: 14px; padding-bottom: 22px; }
.tl-step::before { content: ''; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: #e5dcda; }
.tl-step:last-child::before { display: none; }
.tl-dot { width: 28px; height: 28px; border-radius: 50%; background: #eee; display: grid; place-items: center; flex-shrink: 0; z-index: 1; color: #fff; }
.tl-dot .ic { width: 16px; height: 16px; }
.tl-step.done .tl-dot { background: var(--primary); }
.tl-step.done::before { background: var(--primary); }
.tl-step.current .tl-dot { box-shadow: 0 0 0 6px color-mix(in srgb, var(--primary) 20%, transparent); }
.tl-step b { display: block; font-size: 14.5px; }
.tl-step small { color: var(--muted); }
.track-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.track-meta div { background: var(--soft); border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.track-meta b { display: block; font-size: 14.5px; word-break: break-all; }

/* Notifications */
.notif { display: flex; gap: 12px; padding: 14px; border-bottom: 1px solid var(--line); }
.notif.unread { background: var(--soft); }
.notif .ic { color: var(--primary); }
.notif p { margin: 2px 0; font-size: 14px; color: #555; }

/* ---------- Footer & bottom nav ---------- */
.site-footer { background: #1f1a1c; color: #cfc6c8; margin-top: 40px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 32px; padding-bottom: 20px; }
.foot-grid > div:first-child { grid-column: 1/-1; }
.foot-brand { color: #fff; font-size: 22px; }
.site-footer h5 { color: #fff; font-size: 14px; margin: 0 0 10px; }
.site-footer a { display: block; padding: 3px 0; }
.site-footer a:hover { color: #fff; }
.socials { display: flex; gap: 14px; }
.foot-bottom { text-align: center; padding: 14px; border-top: 1px solid #333; font-size: 12.5px; }
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; height: calc(var(--bottom-nav) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: #fff; display: grid; grid-template-columns: repeat(5, 1fr); z-index: 60; box-shadow: 0 -2px 18px rgba(0, 0, 0, .06); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11.5px; color: #555; }
.bottom-nav a .ic { width: 25px; height: 25px; }
.bottom-nav a.on { color: var(--primary); }
.bottom-nav a.on .ic { fill: color-mix(in srgb, var(--primary) 85%, transparent); }
.wa-fab { position: fixed; right: 16px; bottom: calc(var(--bottom-nav) + 16px + env(safe-area-inset-bottom)); width: 52px; height: 52px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 6px 18px rgba(37, 211, 102, .45); z-index: 55; }
.wa-fab .ic { width: 28px; height: 28px; }
body.has-sticky .wa-fab { bottom: calc(var(--bottom-nav) + 80px); }

/* ---------- Popup / share / toast ---------- */
.popup, .share-sheet { position: fixed; inset: 0; background: rgba(20, 10, 12, .55); z-index: 200; display: grid; place-items: center; padding: 20px; animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.popup-box { background: #fff; border-radius: 22px; max-width: 380px; width: 100%; overflow: hidden; position: relative; animation: rise .35s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes rise { from { transform: translateY(30px) scale(.95); opacity: 0; } }
.popup-box img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.popup-body { padding: 20px; text-align: center; }
.popup-body h3 { font-size: 22px; }
.popup-body .btn { margin-top: 14px; }
.popup-close { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); cursor: pointer; display: grid; place-items: center; }
.popup-close .ic { width: 18px; }
.share-sheet { place-items: end center; padding: 0; }
.share-box { background: #fff; width: 100%; max-width: 520px; border-radius: 22px 22px 0 0; padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); animation: rise .3s; }
.share-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 14px 0 18px; text-align: center; font-size: 11.5px; }
.share-grid a { cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.share-grid span { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 18px; }
.share-grid .ic { width: 24px; }
.toast { position: fixed; left: 50%; bottom: calc(var(--bottom-nav) + 24px); transform: translate(-50%, 30px); background: #222; color: #fff; padding: 11px 18px; border-radius: 30px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: .3s; z-index: 300; max-width: 90%; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Static pages */
.prose { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; line-height: 1.75; }

/* Pagination & filters */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.toolbar select { width: auto; padding: 8px 12px; border-radius: 20px; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 20px; }
.pager a { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #f4eeec; }
.pager a.on { background: var(--primary); color: #fff; }

/* ---------- Larger screens ---------- */
@media (min-width: 600px) {
  .pgrid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .pscroll { grid-auto-columns: 30%; }
  .cat-item { width: 110px; } .cat-item .ring { width: 100px; height: 100px; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .acc-menu { grid-template-columns: repeat(3, 1fr); }
  .feature b { font-size: 14px; } .feature small { font-size: 12px; }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; }
  .foot-grid > div:first-child { grid-column: auto; }
}
@media (min-width: 992px) {
  body { padding-bottom: 0; }
  .bottom-nav, [data-open-drawer], .only-mobile { display: none !important; }
  .only-desktop { display: inline-grid !important; }
  .hdr { height: 76px; gap: 20px; }
  .brand { flex: 0 0 auto; justify-content: flex-start; }
  .brand-text b { font-size: 28px; }
  .hdr-search { display: flex; flex: 1; max-width: 520px; margin: 0 auto; position: relative; }
  .hdr-search button { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 40px; border: 0; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; cursor: pointer; }
  .hdr-search button .ic { width: 18px; }
  .desk-nav { display: block; border-top: 1px solid var(--line); }
  .desk-nav .container { display: flex; gap: 28px; height: 46px; align-items: center; font-size: 14.5px; }
  .desk-nav a:hover, .desk-nav a.on { color: var(--primary); }
  .pgrid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .pscroll { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); grid-auto-columns: auto; overflow: visible; }
  .cat-row { justify-content: space-between; }
  .cat-item { width: 140px; font-size: 15px; } .cat-item .ring { width: 130px; height: 130px; }
  .cat-grid { grid-template-columns: repeat(6, 1fr); }
  .slide { aspect-ratio: 16/6; } .slide-content { padding: 40px 56px; max-width: 55%; }
  .slide-content .btn, .promo-content .btn { padding: 12px 26px; font-size: 15px; }
  .promo { aspect-ratio: 16/5; } .promo-content { padding: 30px 56px; }
  .sec-head h2 { font-size: 26px; }
  .section { margin-top: 44px; }
  .pd { grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 30px; }
  .pd h1 { font-size: 36px; }
  .sticky-buy { position: static; box-shadow: none; padding: 0; margin: 16px 0; }
  .cart-layout { grid-template-columns: 1.7fr 1fr; align-items: start; }
  .cart-layout > :last-child { position: sticky; top: 140px; }
  .wa-fab, body.has-sticky .wa-fab { bottom: 24px; }
  .toast { bottom: 30px; }
  .features { padding: 20px; }
  .feature { justify-content: center; }
}
