/* ============================================================
   StyleHub Storefront — Design System (SPEC §4)
   Cream / Ink / Terracotta / Gold — mobile-first
   ============================================================ */
:root {
  --bg: #faf6f0;
  --surface: #ffffff;
  --ink: #221d18;
  --muted: #8a7f72;
  --accent: #c4552e;
  --accent-dark: #a03f1f;
  --gold: #b98a2f;
  --success: #2e7d4f;
  --danger: #b3331f;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(34, 29, 24, .08);
  --shadow-lift: 0 14px 34px rgba(34, 29, 24, .14);
  --line: #ece3d8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3, h4 { font-family: Georgia, 'Times New Roman', serif; line-height: 1.2; color: var(--ink); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 18px; }

/* ---------- Sticky header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 240, .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px; max-width: 1180px; margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: Georgia, serif; font-size: 24px; font-weight: 700;
  color: var(--ink); letter-spacing: .3px;
}
.brand:hover { color: var(--ink); }
.brand .mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; flex: 0 0 auto;
  box-shadow: 0 4px 12px rgba(196, 85, 46, .35);
}
.main-nav { display: flex; gap: 4px; margin-left: 8px; }
.main-nav a {
  color: var(--ink); font-weight: 600; font-size: 15px;
  padding: 8px 13px; border-radius: 999px; transition: background .18s, color .18s;
}
.main-nav a:hover { background: #f1e7da; }
.main-nav a.active { background: var(--ink); color: #fff; }
.header-spacer { flex: 1; }
.cart-link {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff; padding: 9px 16px;
  border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: transform .15s, background .18s;
}
.cart-link:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }
.cart-link svg { width: 19px; height: 19px; }
.cart-badge {
  position: absolute; top: -7px; right: -7px; min-width: 21px; height: 21px;
  background: var(--accent); color: #fff; border-radius: 999px;
  font-size: 12px; font-weight: 700; display: none;
  align-items: center; justify-content: center; padding: 0 6px;
  border: 2px solid var(--bg); line-height: 1;
}
.cart-badge.show { display: inline-flex; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fdf8f1;
  border-radius: 0 0 26px 26px;
}
.hero-inner {
  max-width: 1180px; margin: 0 auto;
  padding: 76px 18px 88px;
  position: relative; z-index: 2;
}
.hero-kicker {
  display: inline-block; letter-spacing: 3.5px; text-transform: uppercase;
  font-size: 12.5px; font-weight: 700; color: var(--gold);
  border: 1px solid rgba(185, 138, 47, .55); border-radius: 999px;
  padding: 7px 16px; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(38px, 6.5vw, 68px); margin: 0 0 16px; color: #fdf8f1;
  max-width: 14ch; letter-spacing: -.5px;
}
.hero h1 em { font-style: italic; color: #e9a583; }
.hero p {
  max-width: 46ch; color: #cdc2b4; font-size: clamp(15px, 2vw, 18px);
  margin: 0 0 30px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
/* pure-CSS art blocks */
.hero-art {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
}
.hero-art .blk { position: absolute; border-radius: 22px; }
.hero-art .b1 { width: 300px; height: 380px; background: var(--accent); top: -70px; right: 6%; opacity: .92; transform: rotate(8deg); }
.hero-art .b2 { width: 210px; height: 270px; background: var(--gold); top: 190px; right: 20%; opacity: .8; transform: rotate(-7deg); }
.hero-art .b3 { width: 150px; height: 150px; border: 3px solid #e9a583; background: transparent; top: 60px; right: 26%; border-radius: 50%; opacity: .8; }
.hero-art .b4 { width: 90px; height: 90px; background: #f0e4d4; bottom: -28px; right: 9%; opacity: .9; transform: rotate(14deg); }
.hero-art .hanger { position: absolute; right: 11%; top: 96px; width: 150px; opacity: .95; transform: rotate(8deg); }
@media (max-width: 760px) {
  .hero-art .b1 { right: -90px; top: -90px; }
  .hero-art .b2 { right: auto; left: -60px; top: 220px; }
  .hero-art .b3, .hero-art .hanger { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  padding: 13px 26px; border-radius: 12px; font-weight: 700; font-size: 15.5px;
  font-family: inherit; transition: background .18s, transform .15s, box-shadow .18s;
  box-shadow: 0 5px 16px rgba(196, 85, 46, .3);
}
.btn:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 9px 22px rgba(196, 85, 46, .38); }
.btn:active { transform: translateY(0); }
.btn.ghost {
  background: transparent; color: var(--ink);
  border: 2px solid var(--ink); box-shadow: none;
}
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.light { background: #fdf8f1; color: var(--ink); box-shadow: none; }
.btn.light:hover { background: #fff; color: var(--accent-dark); }
.btn.outline-light { background: transparent; border: 2px solid rgba(253, 248, 241, .7); color: #fdf8f1; box-shadow: none; }
.btn.outline-light:hover { background: rgba(253, 248, 241, .14); color: #fff; }
.btn.gold { background: var(--gold); box-shadow: 0 5px 16px rgba(185, 138, 47, .32); }
.btn.gold:hover { background: #9e7423; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn.big { padding: 16px 30px; font-size: 17px; border-radius: 14px; }

/* ---------- Sections ---------- */
.section { padding: 58px 0 12px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(26px, 4vw, 36px); margin: 0; }
.section-head h2::after {
  content: ''; display: block; width: 58px; height: 3px;
  background: var(--gold); border-radius: 2px; margin-top: 8px;
}
.section-head .more { font-weight: 600; white-space: nowrap; }
.section-head .more:hover { text-decoration: underline; }

/* ---------- Gender tiles ---------- */
.tiles { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) { .tiles { grid-template-columns: 1fr 1fr; } }
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius);
  min-height: 190px; display: flex; align-items: flex-end;
  padding: 26px; color: #fff; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); color: #fff; }
.tile.men { background: #2b2118; }
.tile.women { background: var(--accent); }
.tile .t-shape { position: absolute; border-radius: 50%; opacity: .16; background: #fff; }
.tile .t-shape.s1 { width: 220px; height: 220px; top: -80px; right: -60px; }
.tile .t-shape.s2 { width: 120px; height: 120px; bottom: -40px; left: -30px; }
.tile .t-body { position: relative; z-index: 2; }
.tile h3 { color: #fff; margin: 0 0 6px; font-size: 30px; }
.tile p { margin: 0 0 4px; opacity: .85; font-size: 14.5px; }
.tile .t-link { font-weight: 700; font-size: 14px; letter-spacing: .6px; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; }
.tile .t-link::after { content: '→'; transition: transform .18s; }
.tile:hover .t-link::after { transform: translateX(5px); }

/* ---------- Product grid & cards ---------- */
.grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.card .thumb {
  position: relative; aspect-ratio: 4 / 4.6; overflow: hidden;
  background: #f3ead9; display: block;
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .thumb img { transform: scale(1.05); }
.thumb .mono {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-family: Georgia, serif; font-weight: 700; color: #fff;
  font-size: clamp(44px, 8vw, 72px); letter-spacing: 2px;
}
.badge-off {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 10px; border-radius: 999px; box-shadow: 0 3px 8px rgba(196, 85, 46, .4);
}
.card .info { padding: 15px 16px 18px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.card .cat { font-size: 11.5px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); font-weight: 700; }
.card .name { font-size: 16.5px; margin: 0; font-family: 'Segoe UI', system-ui, sans-serif; font-weight: 600; }
.card .name a { color: var(--ink); }
.card .name a:hover { color: var(--accent); }
.price-row { display: flex; align-items: baseline; gap: 9px; margin-top: auto; padding-top: 6px; }
.price { font-weight: 800; font-size: 17.5px; color: var(--ink); }
.mrp { color: var(--muted); text-decoration: line-through; font-size: 13.5px; }
.off { color: var(--success); font-weight: 700; font-size: 12.5px; }
.card .stock-note { font-size: 12.5px; color: var(--gold); font-weight: 600; }
.card .stock-note.out { color: var(--danger); }

/* ---------- Filter bar (products.php) ---------- */
.filters {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px; margin-bottom: 28px;
}
.filters form { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 760px) { .filters form { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1020px) { .filters form { grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr auto; align-items: end; } }
.field label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--line);
  border-radius: 10px; font-family: inherit; font-size: 15px; background: #fff;
  color: var(--ink); transition: border-color .16s, box-shadow .16s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(196, 85, 46, .14);
}
.price-pair { display: flex; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.chip {
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 7px 15px; font-size: 13.5px; font-weight: 600; color: var(--ink);
  transition: all .16s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.result-meta { color: var(--muted); font-size: 14px; margin: 0 0 16px; }

/* ---------- Pagination ---------- */
.pager { display: flex; gap: 8px; justify-content: center; margin: 36px 0 10px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 11px; font-weight: 700; font-size: 14.5px; padding: 0 13px;
  background: #fff; color: var(--ink); border: 1.5px solid var(--line);
  transition: all .15s;
}
.pager a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.pager .cur { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager .dis { opacity: .4; pointer-events: none; }

/* ---------- Product detail ---------- */
.pd { display: grid; grid-template-columns: 1fr; gap: 30px; padding: 34px 0; }
@media (min-width: 860px) { .pd { grid-template-columns: 1.05fr 1fr; gap: 48px; } }
.pd-media {
  border-radius: 20px; overflow: hidden; box-shadow: var(--shadow);
  background: #f3ead9; aspect-ratio: 4 / 4.4; position: relative;
}
.pd-media img { width: 100%; height: 100%; object-fit: cover; }
.pd-media .mono { width: 100%; height: 100%; display: grid; place-items: center; font-family: Georgia, serif; font-size: 120px; font-weight: 700; color: #fff; }
.pd-info .crumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.pd-info .crumbs a { color: var(--muted); }
.pd-info .crumbs a:hover { color: var(--accent); }
.pd-info h1 { font-size: clamp(28px, 4.5vw, 40px); margin: 0 0 12px; }
.pd-price { display: flex; align-items: baseline; gap: 12px; margin: 6px 0 14px; }
.pd-price .price { font-size: 30px; }
.pd-price .mrp { font-size: 17px; }
.pd-price .off {
  background: #eaf5ee; color: var(--success); padding: 4px 11px;
  border-radius: 999px; font-size: 13px;
}
.stock-badge {
  display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 13.5px;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.stock-badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock-badge.in { background: #eaf5ee; color: var(--success); }
.stock-badge.low { background: #fdf3e3; color: var(--gold); }
.stock-badge.out { background: #fbeae6; color: var(--danger); }
.opt-label { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .9px; color: var(--muted); margin: 18px 0 9px; }
.sizes { display: flex; flex-wrap: wrap; gap: 9px; }
.size-pill {
  min-width: 48px; height: 44px; padding: 0 15px; display: inline-flex;
  align-items: center; justify-content: center; border-radius: 11px;
  border: 1.8px solid var(--line); background: #fff; font-weight: 700; font-size: 14.5px;
  cursor: pointer; transition: all .14s; user-select: none; font-family: inherit; color: var(--ink);
}
.size-pill:hover { border-color: var(--accent); color: var(--accent); }
.size-pill.sel { background: var(--ink); border-color: var(--ink); color: #fff; }
.qty-ctrl { display: inline-flex; align-items: center; border: 1.8px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.qty-ctrl button {
  width: 44px; height: 46px; border: none; background: transparent; font-size: 21px;
  cursor: pointer; color: var(--ink); font-weight: 700; transition: background .14s; font-family: inherit;
}
.qty-ctrl button:hover { background: #f3ead9; }
.qty-ctrl .qv { min-width: 52px; text-align: center; font-weight: 800; font-size: 16px; }
.pd-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.pd-desc { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 20px; color: #4c443a; }
.pd-desc h3 { margin: 0 0 8px; font-size: 19px; }
.pd-desc p { margin: 0; }

/* ---------- Cart page ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr; gap: 26px; padding: 30px 0; }
@media (min-width: 900px) { .cart-layout { grid-template-columns: 1.7fr 1fr; align-items: start; } }
.cart-items { display: flex; flex-direction: column; gap: 14px; }
.cart-item {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  display: grid; grid-template-columns: 84px 1fr auto; gap: 15px; padding: 14px; align-items: center;
}
.cart-item .ci-thumb {
  width: 84px; height: 96px; border-radius: 10px; overflow: hidden; background: #f3ead9;
  display: grid; place-items: center;
}
.cart-item .ci-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item .ci-thumb .mono { font-family: Georgia, serif; font-size: 30px; font-weight: 700; color: #fff; width: 100%; height: 100%; display: grid; place-items: center; }
.ci-name { font-weight: 700; font-size: 15.5px; }
.ci-meta { color: var(--muted); font-size: 13px; margin: 2px 0 8px; }
.ci-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ci-total { font-weight: 800; font-size: 16.5px; }
.ci-remove { background: none; border: none; color: var(--danger); font-size: 13px; font-weight: 700; cursor: pointer; padding: 3px 0; font-family: inherit; }
.ci-remove:hover { text-decoration: underline; }
.qty-ctrl.small button { width: 34px; height: 36px; font-size: 17px; }
.qty-ctrl.small .qv { min-width: 38px; font-size: 14px; }
.summary {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px; position: sticky; top: 92px;
}
.summary h3 { margin: 0 0 16px; font-size: 21px; }
.sum-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 15px; color: #4c443a; }
.sum-row.total { border-top: 2px dashed var(--line); margin-top: 10px; padding-top: 14px; font-size: 19px; font-weight: 800; color: var(--ink); }
.empty-state { text-align: center; padding: 70px 20px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.empty-state .big { font-size: 54px; margin-bottom: 10px; }
.empty-state h2 { margin: 0 0 8px; }
.empty-state p { color: var(--muted); margin: 0 0 22px; }

/* ---------- Checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: 1fr; gap: 26px; padding: 30px 0; }
@media (min-width: 900px) { .checkout-layout { grid-template-columns: 1.5fr 1fr; align-items: start; } }
.panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.panel h2 { margin: 0 0 20px; font-size: 23px; }
.pay-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
.pay-opt {
  position: relative; border: 2px solid var(--line); border-radius: 13px;
  padding: 16px 15px; cursor: pointer; transition: all .15s; display: block;
}
.pay-opt:hover { border-color: var(--accent); }
.pay-opt input { position: absolute; opacity: 0; }
.pay-opt .po-title { font-weight: 800; font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
.pay-opt .po-sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.pay-opt.sel { border-color: var(--accent); background: #fdf1ea; }
.pay-opt .po-dot {
  width: 19px; height: 19px; border-radius: 50%; border: 2px solid var(--line);
  display: inline-block; position: relative; flex: 0 0 auto;
}
.pay-opt.sel .po-dot { border-color: var(--accent); }
.pay-opt.sel .po-dot::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); }
.err-msg {
  display: none; background: #fbeae6; color: var(--danger); font-weight: 600;
  padding: 12px 15px; border-radius: 10px; margin: 14px 0; font-size: 14.5px;
}
.err-msg.show { display: block; }
.field .fe-err { color: var(--danger); font-size: 12.5px; font-weight: 600; margin-top: 4px; display: none; }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.field.invalid .fe-err { display: block; }

/* ---------- Order success ---------- */
.success-hero { text-align: center; padding: 46px 0 10px; }
.tick {
  width: 84px; height: 84px; border-radius: 50%; background: #eaf5ee;
  display: inline-grid; place-items: center; margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(46, 125, 79, .22);
}
.tick svg { width: 42px; height: 42px; stroke: var(--success); }
.success-hero h1 { margin: 0 0 8px; font-size: clamp(28px, 5vw, 40px); }
.success-hero p { color: var(--muted); margin: 0; font-size: 16px; }
.order-no-pill {
  display: inline-block; background: var(--ink); color: #fff; font-weight: 800;
  letter-spacing: 1.5px; padding: 10px 24px; border-radius: 999px; margin-top: 16px; font-size: 17px;
}
.qr-box {
  background: var(--surface); border-radius: 18px; box-shadow: var(--shadow);
  padding: 30px 26px; text-align: center; max-width: 460px; margin: 28px auto;
  border: 1.5px dashed var(--gold);
}
.qr-box h3 { margin: 0 0 6px; }
.qr-box .amt { font-size: 30px; font-weight: 800; color: var(--accent-dark); margin: 6px 0 14px; }
.qr-holder { display: inline-block; background: #fff; padding: 14px; border-radius: 14px; border: 1px solid var(--line); }
.qr-holder img, .qr-holder canvas, .qr-holder table { display: block; margin: 0 auto; }
.qr-note { color: var(--muted); font-size: 13.5px; margin-top: 14px; }
.cod-box {
  background: #fdf3e3; border: 1.5px dashed var(--gold); border-radius: 16px;
  padding: 24px; text-align: center; max-width: 460px; margin: 28px auto;
}
.cod-box h3 { margin: 0 0 6px; color: #7a5a17; }
.contact-note { text-align: center; color: var(--muted); font-size: 14.5px; margin: 22px 0 40px; }
.order-table { width: 100%; border-collapse: collapse; }
.order-table th, .order-table td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.order-table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .8px; }
.order-table td.r, .order-table th.r { text-align: right; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: #cdc2b4; margin-top: 70px;
  border-radius: 26px 26px 0 0;
}
.footer-inner {
  max-width: 1180px; margin: 0 auto; padding: 46px 18px 30px;
  display: grid; grid-template-columns: 1fr; gap: 28px;
}
@media (min-width: 720px) { .footer-inner { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h4 { color: #fdf8f1; margin: 0 0 12px; font-size: 17px; }
.site-footer a { color: #cdc2b4; display: block; padding: 4px 0; font-size: 14.5px; }
.site-footer a:hover { color: #e9a583; }
.f-brand { font-family: Georgia, serif; font-size: 26px; color: #fdf8f1; font-weight: 700; margin-bottom: 8px; }
.f-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px;
  text-align: center; font-size: 13px; color: #8a7f72;
}

/* ---------- Toast ---------- */
#toast-zone { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 9px; align-items: center; pointer-events: none; }
.toast {
  background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 14.5px; box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
  animation: toast-in .25s ease; display: flex; align-items: center; gap: 9px;
}
.toast.ok::before { content: '✓'; color: #7fd6a4; font-weight: 800; }
.toast.err { background: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.toast.out { opacity: 0; transform: translateY(10px); transition: all .3s; }

/* ---------- Install button ---------- */
#install-btn {
  position: fixed; bottom: 20px; right: 20px; z-index: 9000;
  display: none; align-items: center; gap: 9px;
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  padding: 13px 20px; border-radius: 999px; font-weight: 700; font-size: 14.5px;
  font-family: inherit; box-shadow: 0 10px 28px rgba(196, 85, 46, .45);
  animation: toast-in .3s ease;
}
#install-btn:hover { background: var(--accent-dark); }
#install-btn.show { display: inline-flex; }

/* ---------- Page head ---------- */
.page-head { padding: 36px 0 6px; }
.page-head h1 { font-size: clamp(28px, 5vw, 42px); margin: 0 0 6px; }
.page-head p { color: var(--muted); margin: 0; }

/* ---------- Offline page ---------- */
.offline-hero { min-height: 100vh; display: grid; place-items: center; padding: 30px 18px; text-align: center; }
.offline-card { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); max-width: 440px; padding: 46px 34px; }
.offline-card .mark { width: 64px; height: 64px; border-radius: 16px; background: var(--accent); margin: 0 auto 20px; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(196, 85, 46, .35); }
.offline-card h1 { margin: 0 0 10px; font-size: 28px; }
.offline-card p { color: var(--muted); margin: 0 0 24px; }

/* ---------- Utility ---------- */
.hide { display: none !important; }
.center { text-align: center; }
.mt-20 { margin-top: 20px; }
.spin {
  display: inline-block; width: 17px; height: 17px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff;
  animation: spin .7s linear infinite; vertical-align: -3px;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 620px) {
  .main-nav a { padding: 7px 9px; font-size: 14px; }
  .brand { font-size: 20px; }
  .cart-link span.txt { display: none; }
  .cart-item { grid-template-columns: 70px 1fr; }
  .cart-item .ci-right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .pay-opts { grid-template-columns: 1fr; }
}
