/* =========================================================
   KHADIJA — design system
   ========================================================= */
:root {
  --ink: #16130f;
  --ink-2: #4a443c;
  --ink-3: #857c70;
  --line: #e7e1d8;
  --line-2: #f2ede5;
  --bg: #ffffff;
  --bg-2: #faf7f2;
  --bg-3: #f4efe6;
  --gold: #b08432;
  --gold-2: #8d6822;
  --gold-soft: #f6edda;
  --green: #1f7a4d;
  --green-soft: #e6f4ec;
  --red: #b3261e;
  --red-soft: #fdeceb;
  --blue: #1f5c9e;
  --blue-soft: #e9f1fa;
  --amber: #9a6b09;
  --amber-soft: #fdf2da;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(22,19,15,.05), 0 8px 24px -12px rgba(22,19,15,.18);
  --shadow-lg: 0 24px 60px -20px rgba(22,19,15,.32);
  --serif: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.hidden { display: none !important; }
.spacer { flex: 1; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: transform .12s ease, background .16s ease, box-shadow .16s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); background: #000; }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-gold { background: var(--gold); }
.btn-gold:hover { background: var(--gold-2); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { background: var(--bg-2); border-color: var(--ink-3); }
.btn-ghost { background: transparent; color: var(--ink-2); padding: 8px 12px; }
.btn-ghost:hover { background: var(--bg-3); transform: none; }
.btn-danger { background: var(--red); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* ---------------- Forms ---------------- */
.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 12.5px; font-weight: 600;
  color: var(--ink-2); margin-bottom: 6px; letter-spacing: .02em;
}
.input, .select, .textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft);
}
.textarea { resize: vertical; min-height: 92px; }
.row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.hint { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; }
.err { color: var(--red); font-size: 13px; margin-top: 6px; }

/* ---------------- Header ---------------- */
.topbar {
  background: var(--ink); color: #d8d2c8; font-size: 12.5px;
  padding: 8px 0; text-align: center; letter-spacing: .04em;
}
.topbar b { color: var(--gold); }

header.site {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.head-inner { display: flex; align-items: center; gap: 22px; padding: 14px 0; }
.brand {
  font-family: var(--serif); font-size: 30px; font-weight: 700;
  letter-spacing: .18em; line-height: 1;
}
.brand span { color: var(--gold); }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a {
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  padding: 6px 0; border-bottom: 2px solid transparent; transition: .15s;
}
.nav a:hover, .nav a.active { color: var(--ink); border-color: var(--gold); }

.head-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  position: relative; width: 40px; height: 40px; display: grid; place-items: center;
  border: none; background: transparent; border-radius: 50%; cursor: pointer;
  color: var(--ink-2); transition: background .15s;
}
.icon-btn:hover { background: var(--bg-3); color: var(--ink); }
.badge {
  position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px;
  padding: 0 4px; border-radius: 9px; background: var(--gold); color: #fff;
  font-size: 10.5px; font-weight: 700; display: grid; place-items: center;
}
.search-bar { flex: 1; max-width: 420px; position: relative; }
.search-bar input {
  width: 100%; padding: 10px 14px 10px 38px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--bg-2); outline: none;
}
.search-bar input:focus { background: #fff; border-color: var(--gold); }
.search-bar svg { position: absolute; left: 13px; top: 11px; color: var(--ink-3); }
.menu-toggle { display: none; }

/* ---------------- Hero ---------------- */
.hero {
  background:
    radial-gradient(900px 420px at 78% 8%, rgba(176,132,50,.16), transparent 60%),
    linear-gradient(160deg, #1c1815 0%, #262019 55%, #171310 100%);
  color: #f6f1e8; padding: 92px 0 100px; position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: auto -10% -55% 55%;
  height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(176,132,50,.22), transparent 68%);
}
.hero-inner { position: relative; z-index: 1; max-width: 640px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
  border: 1px solid rgba(176,132,50,.4); padding: 6px 14px; border-radius: 999px;
  margin-bottom: 26px;
}
.hero h1 {
  font-family: var(--serif); font-size: clamp(48px, 8vw, 86px);
  letter-spacing: .12em; line-height: 1; margin-bottom: 18px; font-weight: 600;
}
.hero p { font-size: 18px; color: #cfc7ba; margin: 0 0 32px; max-width: 460px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-outline { color: #f6f1e8; border-color: rgba(246,241,232,.3); }
.hero .btn-outline:hover { background: rgba(246,241,232,.1); border-color: #f6f1e8; }

/* ---------------- Sections ---------------- */
section.block { padding: 68px 0; }
section.block.tint { background: var(--bg-2); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 30px; gap: 16px; }
.sec-head h2 { font-family: var(--serif); font-size: 36px; font-weight: 600; letter-spacing: .01em; }
.sec-head p { margin: 6px 0 0; color: var(--ink-3); font-size: 14.5px; }
.sec-link { font-size: 14px; font-weight: 600; color: var(--gold); white-space: nowrap; }
.sec-link:hover { color: var(--gold-2); }

/* ---------------- Category tiles ---------------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.cat-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3.1; display: grid; place-items: center; text-align: center;
  background: linear-gradient(150deg, var(--bg-3), #e8dfd0);
  border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-card .cat-icon { font-size: 34px; margin-bottom: 8px; }
.cat-card h3 {
  font-size: 14px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700;
}
.cat-card small { color: var(--ink-3); font-size: 12.5px; }

/* ---------------- Product cards ---------------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 22px; }
.card {
  position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #ded6c9; }
.card-img {
  position: relative; aspect-ratio: 1 / 1; background: var(--bg-3);
  display: grid; place-items: center; overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.ph {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-family: var(--serif); font-size: 46px; font-weight: 600; color: #fff;
  letter-spacing: .04em;
}
.tag-row { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; }
.tag {
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 5px; background: var(--ink); color: #fff;
}
.tag.sale { background: var(--red); }
.tag.out { background: var(--ink-3); }
.tag.new { background: var(--gold); }
.wish {
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px;
  border-radius: 50%; border: none; background: rgba(255,255,255,.94);
  display: grid; place-items: center; cursor: pointer; color: var(--ink-2);
  box-shadow: 0 2px 8px rgba(0,0,0,.1); transition: .15s;
}
.wish:hover { transform: scale(1.08); }
.wish.on { color: var(--red); }
.wish.on svg { fill: var(--red); }

.card-body { padding: 15px 16px 17px; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.card-name {
  font-size: 15px; font-weight: 600; margin: 5px 0 7px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.stars { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-3); margin-bottom: 9px; }
.stars b { color: var(--gold); letter-spacing: 1px; font-weight: 500; }
.price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 13px; }
.price { font-size: 17px; font-weight: 700; }
.price-old { font-size: 13.5px; color: var(--ink-3); text-decoration: line-through; }
.price-off { font-size: 12px; font-weight: 700; color: var(--red); }
.card .btn { margin-top: auto; }

/* ---------------- Feature strip ---------------- */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.feat {
  text-align: center; padding: 30px 20px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.feat .fi {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--gold-soft); color: var(--gold-2); display: grid; place-items: center;
}
.feat h4 { font-size: 15px; margin-bottom: 5px; }
.feat p { margin: 0; font-size: 13.5px; color: var(--ink-3); }

/* ---------------- Shop layout ---------------- */
.shop-layout { display: grid; grid-template-columns: 258px 1fr; gap: 34px; align-items: start; }
.filters {
  position: sticky; top: 92px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
}
.filter-group { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line-2); }
.filter-group:last-child { border: none; margin-bottom: 0; padding-bottom: 0; }
.filter-group h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.check { display: flex; align-items: center; gap: 9px; padding: 5px 0; cursor: pointer; font-size: 14px; }
.check input { accent-color: var(--gold); width: 15px; height: 15px; }
.check span.count { margin-left: auto; color: var(--ink-3); font-size: 12.5px; }
.shop-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-bottom: 22px; flex-wrap: wrap;
}
.result-count { color: var(--ink-3); font-size: 14px; }

/* ---------------- Product page ---------------- */
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.pd-media { border-radius: var(--radius); overflow: hidden; background: var(--bg-3); aspect-ratio: 1/1; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pd-thumbs div {
  width: 68px; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden;
  border: 2px solid transparent; cursor: pointer; background: var(--bg-3);
}
.pd-thumbs div.on { border-color: var(--gold); }
.pd h1 { font-family: var(--serif); font-size: 40px; line-height: 1.12; margin: 8px 0 12px; }
.pd-price { display: flex; align-items: baseline; gap: 12px; margin: 18px 0; flex-wrap: wrap; }
.pd-price .price { font-size: 30px; }
.pd-price .price-old { font-size: 18px; }
.pd-price .price-off {
  font-size: 12px; background: var(--red-soft); color: var(--red);
  padding: 4px 9px; border-radius: 5px;
}
.stock-pill {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600;
  padding: 5px 12px; border-radius: 999px; background: var(--green-soft); color: var(--green);
}
.stock-pill.out { background: var(--red-soft); color: var(--red); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.variants { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 9px; }
.variant {
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer; font-size: 13.5px; background: #fff; transition: .15s;
}
.variant:hover { border-color: var(--ink-3); }
.variant.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button {
  width: 40px; height: 42px; border: none; background: #fff; cursor: pointer;
  font-size: 18px; color: var(--ink-2);
}
.qty button:hover { background: var(--bg-3); }
.qty span { width: 46px; text-align: center; font-weight: 600; }
.pd-actions { display: flex; gap: 12px; margin: 22px 0; flex-wrap: wrap; }
.pd-actions .btn { flex: 1; min-width: 160px; }
.accordion { border-top: 1px solid var(--line); margin-top: 26px; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; background: none; border: none; cursor: pointer;
  font-size: 14.5px; font-weight: 600; text-align: left;
}
.acc-body { padding: 0 0 18px; color: var(--ink-2); font-size: 14.5px; display: none; }
.acc-item.open .acc-body { display: block; }
.acc-item.open .acc-head svg { transform: rotate(180deg); }
.acc-head svg { transition: transform .2s; color: var(--ink-3); }

/* ---------------- Cart drawer ---------------- */
.overlay {
  position: fixed; inset: 0; background: rgba(22,19,15,.45);
  opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 90;
}
.overlay.on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(430px, 100%);
  background: #fff; z-index: 100; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .28s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-lg);
}
.drawer.on { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px; border-bottom: 1px solid var(--line);
}
.drawer-head h3 { font-family: var(--serif); font-size: 24px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 20px 22px; background: var(--bg-2); }
.cart-item { display: flex; gap: 13px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.cart-item .ci-img {
  width: 74px; height: 74px; border-radius: var(--radius-sm);
  overflow: hidden; background: var(--bg-3); flex-shrink: 0;
}
.cart-item .ci-info { flex: 1; min-width: 0; }
.cart-item h4 { font-size: 14px; margin-bottom: 3px; }
.cart-item .ci-var { font-size: 12.5px; color: var(--ink-3); }
.cart-item .ci-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; }
.qty-sm { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty-sm button { width: 28px; height: 28px; border: none; background: none; cursor: pointer; color: var(--ink-2); }
.qty-sm span { width: 28px; text-align: center; font-size: 13px; font-weight: 600; }
.link-x { background: none; border: none; color: var(--ink-3); cursor: pointer; font-size: 12.5px; text-decoration: underline; }
.link-x:hover { color: var(--red); }
.totals { font-size: 14px; }
.totals div { display: flex; justify-content: space-between; padding: 5px 0; color: var(--ink-2); }
.totals div.grand {
  font-size: 18px; font-weight: 700; color: var(--ink);
  border-top: 1px solid var(--line); margin-top: 9px; padding-top: 12px;
}

/* ---------------- Toast ---------------- */
.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px;
  font-size: 14px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 9px;
  animation: pop .25s ease;
}
.toast.err { background: var(--red); }
.toast.ok { background: var(--green); }
@keyframes pop { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------------- Modal ---------------- */
.modal {
  position: fixed; inset: 0; z-index: 110; display: none;
  place-items: center; padding: 20px; overflow-y: auto;
}
.modal.on { display: grid; }
.modal-card {
  background: #fff; border-radius: 18px; width: min(430px, 100%);
  padding: 32px; box-shadow: var(--shadow-lg); position: relative; animation: pop .25s ease;
}
.modal-card h2 { font-family: var(--serif); font-size: 30px; text-align: center; margin-bottom: 6px; }
.modal-card .sub { text-align: center; color: var(--ink-3); font-size: 14px; margin-bottom: 24px; }
.modal-close { position: absolute; top: 14px; right: 14px; }
.switch-line { text-align: center; font-size: 14px; color: var(--ink-3); margin-top: 18px; }
.switch-line button { background: none; border: none; color: var(--gold); font-weight: 600; cursor: pointer; }

/* ---------------- Checkout ---------------- */
.checkout { display: grid; grid-template-columns: 1fr 380px; gap: 34px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 22px; }
.panel > h3 { font-size: 17px; margin-bottom: 4px; }
.panel > .psub { color: var(--ink-3); font-size: 13.5px; margin: 0 0 20px; }
.summary { position: sticky; top: 92px; }
.sum-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.sum-item .si-img { width: 52px; height: 52px; border-radius: 8px; overflow: hidden; background: var(--bg-3); flex-shrink: 0; }
.pay-option {
  display: flex; gap: 13px; padding: 16px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); cursor: pointer; margin-bottom: 11px; transition: .15s;
}
.pay-option:hover { border-color: var(--ink-3); }
.pay-option.on { border-color: var(--gold); background: var(--gold-soft); }
.pay-option input { accent-color: var(--gold); margin-top: 3px; }
.pay-option .po-title { font-weight: 600; font-size: 14.5px; }
.pay-option .po-desc { font-size: 13px; color: var(--ink-3); }
.pay-details {
  margin-top: 14px; padding: 18px; background: var(--bg-2);
  border: 1px dashed var(--line); border-radius: var(--radius-sm);
}
.acct-line { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; }
.acct-line span:first-child { color: var(--ink-3); }
.acct-line b { font-family: ui-monospace, monospace; }
.upload-box {
  border: 2px dashed var(--line); border-radius: var(--radius-sm); padding: 22px;
  text-align: center; cursor: pointer; transition: .15s; color: var(--ink-3);
}
.upload-box:hover { border-color: var(--gold); background: var(--gold-soft); color: var(--gold-2); }
.upload-preview { margin-top: 12px; max-width: 190px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }

/* ---------------- Order success ---------------- */
.success { text-align: center; max-width: 520px; margin: 0 auto; padding: 60px 0; }
.success .tick {
  width: 84px; height: 84px; margin: 0 auto 26px; border-radius: 50%;
  background: var(--green-soft); color: var(--green); display: grid; place-items: center;
  animation: pop .4s ease;
}
.success h1 { font-family: var(--serif); font-size: 40px; margin-bottom: 10px; }
.success p { color: var(--ink-3); margin: 0 0 26px; }
.order-box { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: left; margin-bottom: 26px; }

/* ---------------- Account ---------------- */
.acct-layout { display: grid; grid-template-columns: 236px 1fr; gap: 32px; align-items: start; }
.acct-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; position: sticky; top: 92px; }
.acct-nav button {
  width: 100%; text-align: left; padding: 11px 14px; border: none; background: none;
  border-radius: var(--radius-sm); cursor: pointer; font-size: 14px; font-weight: 500;
  color: var(--ink-2); display: flex; align-items: center; gap: 10px;
}
.acct-nav button:hover { background: var(--bg-2); }
.acct-nav button.on { background: var(--ink); color: #fff; }
.order-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.order-card-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.pill {
  font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px;
  letter-spacing: .03em; background: var(--bg-3); color: var(--ink-2);
}
/* Order + payment status pills. Class names match the database enum values. */
.pill.pending { background: var(--amber-soft); color: var(--amber); }
.pill.pending_verification { background: var(--amber-soft); color: var(--amber); }
.pill.confirmed { background: var(--blue-soft); color: var(--blue); }
.pill.processing { background: var(--gold-soft); color: var(--gold-2); }
.pill.shipped { background: #e8eefb; color: #2f4a8a; }
.pill.delivered { background: var(--green-soft); color: var(--green); }
.pill.cancelled, .pill.failed { background: var(--red-soft); color: var(--red); }
.pill.paid { background: var(--green-soft); color: var(--green); }
.pill.refunded { background: var(--bg-3); color: var(--ink-2); }

/* Tracking */
.track { display: flex; margin: 26px 0 6px; }
.track-step { flex: 1; text-align: center; position: relative; font-size: 12.5px; color: var(--ink-3); }
.track-step::before {
  content: ''; position: absolute; top: 13px; left: -50%; width: 100%;
  height: 2px; background: var(--line);
}
.track-step:first-child::before { display: none; }
.track-step.done::before { background: var(--green); }
.track-dot {
  width: 28px; height: 28px; border-radius: 50%; margin: 0 auto 8px;
  background: #fff; border: 2px solid var(--line); display: grid; place-items: center;
  position: relative; z-index: 1; font-size: 13px; color: var(--ink-3);
}
.track-step.done .track-dot { background: var(--green); border-color: var(--green); color: #fff; }
.track-step.current .track-dot { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.track-step.done, .track-step.current { color: var(--ink); font-weight: 600; }

/* ---------------- Empty state ---------------- */
.empty { text-align: center; padding: 70px 20px; color: var(--ink-3); }
.empty .ei { font-size: 48px; margin-bottom: 14px; opacity: .5; }
.empty h3 { font-size: 19px; color: var(--ink); margin-bottom: 7px; }
.empty p { margin: 0 0 22px; font-size: 14.5px; }

/* ---------------- Footer ---------------- */
footer.site { background: var(--ink); color: #b8b1a6; padding: 58px 0 26px; margin-top: 60px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 36px; margin-bottom: 40px; }
footer.site .brand { color: #fff; font-size: 26px; margin-bottom: 14px; }
footer.site h4 { color: #fff; font-size: 13px; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 15px; }
footer.site a, footer.site p { font-size: 14px; color: #b8b1a6; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site ul li { margin-bottom: 9px; }
footer.site a:hover { color: var(--gold); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; font-size: 13px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* ---------------- Breadcrumb / misc ---------------- */
.crumb { font-size: 13px; color: var(--ink-3); padding: 20px 0; }
.crumb a:hover { color: var(--gold); }
.skeleton { background: linear-gradient(90deg, var(--bg-3) 25%, var(--line-2) 50%, var(--bg-3) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .checkout, .shop-layout, .acct-layout, .pd { grid-template-columns: 1fr; }
  .filters, .summary, .acct-nav { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .menu-toggle { display: grid; }
  .search-bar { display: none; }
  .search-bar.mobile-on {
    display: block; position: absolute; left: 20px; right: 20px; top: 100%;
    max-width: none; padding: 12px 0;
  }
  .head-inner { gap: 10px; }
  .brand { font-size: 24px; }
  .hero { padding: 62px 0 70px; }
  .sec-head h2 { font-size: 28px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 14px; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .pd h1 { font-size: 30px; }
  section.block { padding: 44px 0; }
  .nav.mobile-on {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; left: 0; right: 0; top: 100%; background: #fff;
    border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
  }
  .nav.mobile-on a { padding: 12px 0; border-bottom: 1px solid var(--line-2); }
}
