/* Everloft Home — home-goods storefront priced live by PVSN */

:root {
  --paper:      #faf8f5;   /* warm off-white */
  --paper-2:    #ffffff;
  --paper-3:    #f1ede7;   /* sunken tile ground */
  --ink:        #1c1a17;
  --ink-2:      #45413b;
  --ink-3:      #7d776e;
  --line:       rgba(28, 26, 23, 0.12);
  --line-soft:  rgba(28, 26, 23, 0.06);
  --clay:       #b4592e;   /* terracotta accent */
  --clay-deep:  #94431f;
  --clay-soft:  rgba(180, 89, 46, 0.09);
  --moss:       #5d6e4e;
  --save:       #166e52;   /* price down */
  --rise:       #a8344e;   /* price up */
  --gold:       #c2954a;
  --radius:     12px;
  --radius-lg:  18px;
  --shadow:     0 1px 2px rgba(28,26,23,0.05), 0 0 0 1px var(--line-soft);
  --shadow-up:  0 16px 36px -18px rgba(28,26,23,0.28), 0 0 0 1px var(--line);
  --serif:      'Fraunces', Georgia, serif;
  --sans:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono:       'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper);
  padding: 8px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- header ---------- */
.announce {
  background: var(--ink); color: #efe9df; font-size: 12.5px; letter-spacing: .02em;
  text-align: center; padding: 7px 16px;
}
.announce strong { color: #fff; font-weight: 600; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 245, 0.88); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: .01em; }
.brand .logo {
  width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; font-size: 17px; font-style: italic; font-family: Georgia, serif;
}
.brand small { font-size: 11px; font-weight: 500; color: var(--ink-3); font-family: var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-left: 2px; align-self: flex-end; padding-bottom: 3px; }
.main-nav { display: flex; gap: 4px; flex: 1; }
.main-nav a {
  padding: 8px 13px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: background .18s ease, color .18s ease;
}
.main-nav a:hover { background: var(--paper-3); color: var(--ink); }
.main-nav a.active { background: var(--ink); color: var(--paper); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper-2); font-size: 13.5px; font-weight: 500;
  transition: transform .12s ease, box-shadow .18s ease, border-color .18s ease;
}
.icon-btn:hover { border-color: var(--ink-3); box-shadow: var(--shadow); }
.icon-btn:active { transform: scale(0.96); }
.cart-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--clay);
  color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.cart-count.bump { transform: scale(1.45); }

/* ---------- live pricing strip ---------- */
.pricebar {
  background: linear-gradient(90deg, var(--clay-soft), rgba(194,149,74,0.08));
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px; color: var(--ink-2);
}
.pricebar-inner { display: flex; align-items: center; gap: 12px; padding: 8px 0; flex-wrap: wrap; }
.pricebar .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--save);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .45; transform: scale(.75);} }
.daypart-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px;
  background: var(--paper-2); border: 1px solid var(--line); font-weight: 600; font-size: 12.5px;
}
.daypart-chip .dp-icon { font-size: 13px; }
.pricebar .stamp { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }

/* ---------- hero ---------- */
.hero { padding: 72px 0 56px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-kicker { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--clay); font-weight: 600; margin-bottom: 18px; }
.hero h1 { font-family: var(--serif); font-size: clamp(38px, 5vw, 56px); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; }
.hero h1 em { font-style: italic; color: var(--clay); }
.hero p { margin-top: 18px; font-size: 16.5px; color: var(--ink-2); max-width: 50ch; }
.hero-cta { margin-top: 28px; display: flex; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-size: 14.5px; font-weight: 600; border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: scale(0.965); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #000; box-shadow: 0 10px 24px -12px rgba(28,26,23,.5); }
.btn-ghost { border-color: var(--line); background: var(--paper-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-clay { background: var(--clay); color: #fff; }
.btn-clay:hover { background: var(--clay-deep); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.hero-art { position: relative; }
.hero-art img { border-radius: var(--radius-lg); aspect-ratio: 4/3.4; object-fit: cover; box-shadow: var(--shadow-up); }
.hero-tag {
  position: absolute; bottom: 18px; left: 18px; background: rgba(250,248,245,.94); backdrop-filter: blur(8px);
  border-radius: 12px; padding: 10px 16px; font-size: 13px; box-shadow: var(--shadow);
}
.hero-tag b { font-family: var(--mono); }

/* ---------- sections ---------- */
.section { padding: 48px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 26px; }
.section-head h2 { font-family: var(--serif); font-size: 28px; font-weight: 500; }
.section-head a { font-size: 14px; font-weight: 600; color: var(--clay); }
.section-head a:hover { color: var(--clay-deep); }

/* category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat-tile {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1.18;
  transition: transform .18s ease, box-shadow .25s ease;
}
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
.cat-tile:active { transform: scale(.97); }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cat-tile:hover img { transform: scale(1.06); }
.cat-tile span {
  position: absolute; left: 10px; right: 10px; bottom: 10px; background: rgba(250,248,245,.93);
  border-radius: 9px; text-align: center; padding: 7px 6px; font-size: 13px; font-weight: 600;
}

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--paper-2); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-up); }
.card:active { transform: scale(.98); }
.card-img { position: relative; aspect-ratio: 1/0.92; overflow: hidden; background: var(--paper-3); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-badge {
  position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(6px);
}
.card-badge.down { background: rgba(22,110,82,.92); color: #fff; }
.card-badge.up { background: rgba(168,52,78,.92); color: #fff; }
.card-badge.low { background: rgba(194,149,74,.94); color: #fff; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.card-cat { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.card-name { font-family: var(--serif); font-size: 16.5px; font-weight: 500; line-height: 1.25; }
.card-stars { font-size: 12px; color: var(--gold); letter-spacing: 1px; }
.card-stars small { color: var(--ink-3); font-family: var(--sans); letter-spacing: 0; margin-left: 5px; }
.price-row { margin-top: auto; padding-top: 8px; display: flex; align-items: baseline; gap: 8px; }
.price-now { font-size: 18px; font-weight: 700; font-family: var(--mono); transition: color .3s ease; }
.price-was { font-size: 13px; color: var(--ink-3); text-decoration: line-through; font-family: var(--mono); }
.price-delta { font-size: 12px; font-weight: 700; }
.price-delta.down { color: var(--save); }
.price-delta.up { color: var(--rise); }
.price-now.flash { animation: priceflash .9s ease; }
@keyframes priceflash { 0% { color: var(--clay); } 100% { color: var(--ink); } }

/* skeleton shimmer while live prices load */
.skel {
  display: inline-block; width: 64px; height: 18px; border-radius: 6px;
  background: linear-gradient(90deg, var(--paper-3) 25%, #e7e1d8 50%, var(--paper-3) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* fade-in on scroll */
.fade { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.fade.in { opacity: 1; transform: none; }

/* ---------- value props / story ---------- */
.props { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.prop { background: var(--paper-2); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.prop h3 { font-family: var(--serif); font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.prop p { font-size: 13.5px; color: var(--ink-2); }
.prop .glyph { font-size: 20px; margin-bottom: 10px; }

/* ---------- product detail ---------- */
.pd { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; padding: 40px 0 24px; }
.pd-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-up); position: sticky; top: 96px; }
.pd-img img { aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.crumbs { font-size: 13px; color: var(--ink-3); padding: 18px 0 0; }
.crumbs a:hover { color: var(--clay); }
.pd-info h1 { font-family: var(--serif); font-size: 34px; font-weight: 500; line-height: 1.12; margin: 6px 0 10px; }
.pd-cat { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--clay); font-weight: 600; }
.pd-stars { color: var(--gold); font-size: 15px; letter-spacing: 1.5px; margin-bottom: 14px; }
.pd-stars small { color: var(--ink-3); font-size: 13px; letter-spacing: 0; margin-left: 8px; }
.pd-desc { color: var(--ink-2); font-size: 15.5px; max-width: 56ch; }
.pd-pricebox {
  margin: 22px 0; padding: 18px 20px; border-radius: var(--radius);
  background: var(--paper-2); box-shadow: var(--shadow);
}
.pd-price-row { display: flex; align-items: baseline; gap: 12px; }
.pd-price { font-family: var(--mono); font-size: 32px; font-weight: 700; }
.pd-meta { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 12.5px; color: var(--ink-3); flex-wrap: wrap; }
.pd-meta .daypart-chip { font-size: 11.5px; padding: 2px 9px; }
.pd-why { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 12px; }
.pd-why summary { font-size: 13px; font-weight: 600; color: var(--clay); cursor: pointer; }
.pd-why ul { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.pd-why li { font-size: 13px; color: var(--ink-2); display: flex; justify-content: space-between; gap: 12px; }
.pd-why li b { font-family: var(--mono); font-weight: 600; }
.pd-why li b.down { color: var(--save); }
.pd-why li b.up { color: var(--rise); }
.qty-row { display: flex; gap: 12px; margin-top: 18px; }
.qty {
  display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--paper-2);
}
.qty button { width: 40px; height: 46px; background: none; border: none; font-size: 18px; color: var(--ink-2); }
.qty button:active { transform: scale(.85); }
.qty span { min-width: 28px; text-align: center; font-weight: 600; }
.stock-note { font-size: 13px; margin-top: 12px; color: var(--ink-2); }
.stock-note.low { color: var(--gold); font-weight: 600; }
.pd-ship { margin-top: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.pd-ship li { list-style: none; display: flex; gap: 9px; align-items: baseline; }

/* reviews */
.reviews { padding: 40px 0 64px; }
.reviews-head { display: grid; grid-template-columns: 240px 1fr; gap: 40px; margin-bottom: 28px; }
.rv-score { text-align: center; background: var(--paper-2); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.rv-score .big { font-family: var(--serif); font-size: 48px; font-weight: 500; line-height: 1; }
.rv-score .stars { color: var(--gold); letter-spacing: 2px; margin: 8px 0 4px; }
.rv-score small { color: var(--ink-3); font-size: 12.5px; }
.rv-bars { display: flex; flex-direction: column; gap: 7px; justify-content: center; }
.rv-bar { display: grid; grid-template-columns: 44px 1fr 36px; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-3); }
.rv-bar .track { height: 7px; border-radius: 99px; background: var(--paper-3); overflow: hidden; }
.rv-bar .fill { height: 100%; border-radius: 99px; background: var(--gold); }
.rv-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.rv {
  background: var(--paper-2); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow);
}
.rv-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.rv-name { font-weight: 600; font-size: 14px; }
.rv-name .verified { font-size: 10.5px; color: var(--save); font-weight: 700; letter-spacing: .04em; margin-left: 8px; }
.rv-date { font-size: 12px; color: var(--ink-3); }
.rv-stars { color: var(--gold); font-size: 12.5px; letter-spacing: 1px; margin-bottom: 6px; }
.rv p { font-size: 13.5px; color: var(--ink-2); }

/* related rail */
.rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ---------- cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 36px; padding: 40px 0 80px; align-items: start; }
.cart-lines { display: flex; flex-direction: column; gap: 14px; }
.line {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; align-items: center;
  background: var(--paper-2); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow);
}
.line img { width: 96px; height: 96px; object-fit: cover; border-radius: 9px; }
.line-name { font-family: var(--serif); font-size: 16px; font-weight: 500; }
.line-cat { font-size: 11.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .1em; margin-top: 2px; }
.line-controls { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.line-remove { background: none; border: none; font-size: 12.5px; color: var(--ink-3); text-decoration: underline; }
.line-remove:hover { color: var(--rise); }
.line-price { text-align: right; font-family: var(--mono); }
.line-price .each { font-size: 12px; color: var(--ink-3); display: block; }
.line-price .total { font-size: 17px; font-weight: 700; }
.summary {
  background: var(--paper-2); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow);
  position: sticky; top: 96px;
}
.summary h2 { font-family: var(--serif); font-size: 21px; font-weight: 500; margin-bottom: 16px; }
.sum-row { display: flex; justify-content: space-between; font-size: 14px; padding: 7px 0; color: var(--ink-2); }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; font-size: 17px; font-weight: 700; color: var(--ink); font-family: var(--mono); }
.sum-row .save { color: var(--save); font-weight: 600; }
.summary .btn { width: 100%; margin-top: 16px; }
.summary .fineprint { font-size: 11.5px; color: var(--ink-3); margin-top: 12px; text-align: center; }
.empty-state { text-align: center; padding: 90px 0 110px; }
.empty-state h2 { font-family: var(--serif); font-size: 28px; font-weight: 500; margin-bottom: 10px; }
.empty-state p { color: var(--ink-2); margin-bottom: 24px; }

/* checkout modal */
.modal-back {
  position: fixed; inset: 0; background: rgba(28,26,23,.45); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; z-index: 90; padding: 20px;
}
.modal-back.open { display: flex; animation: fadein .25s ease; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--paper); border-radius: var(--radius-lg); width: 520px; max-width: 100%;
  padding: 30px 32px; box-shadow: 0 32px 80px -24px rgba(0,0,0,.4);
  animation: rise .3s cubic-bezier(.22,1,.36,1);
  max-height: 86vh; overflow: auto;
}
@keyframes rise { from { transform: translateY(22px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal h2 { font-family: var(--serif); font-weight: 500; font-size: 23px; margin-bottom: 4px; }
.modal .steps { display: flex; gap: 6px; margin: 14px 0 22px; }
.modal .step-dot { height: 4px; flex: 1; border-radius: 99px; background: var(--paper-3); transition: background .3s; }
.modal .step-dot.on { background: var(--clay); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field input {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper-2);
  font: inherit; font-size: 14px; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px var(--clay-soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-actions { display: flex; gap: 10px; margin-top: 22px; }
.modal-actions .btn { flex: 1; }
.demo-note { font-size: 11.5px; color: var(--ink-3); text-align: center; margin-top: 14px; }
.order-done { text-align: center; padding: 16px 0 6px; }
.order-done .mark { width: 64px; height: 64px; border-radius: 50%; background: var(--save); color: #fff; font-size: 30px; display: grid; place-items: center; margin: 0 auto 16px; animation: pop .45s cubic-bezier(.34,1.56,.64,1); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.order-done .oid { font-family: var(--mono); color: var(--ink-3); font-size: 13px; margin: 6px 0 16px; }

/* ---------- account ---------- */
.account-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; padding: 40px 0 80px; align-items: start; }
.acct-card { background: var(--paper-2); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); text-align: center; }
.avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--clay); color: #fff; font-family: var(--serif); font-size: 28px; display: grid; place-items: center; margin: 0 auto 14px; }
.acct-card h2 { font-family: var(--serif); font-weight: 500; font-size: 20px; }
.acct-card .since { font-size: 12.5px; color: var(--ink-3); margin: 4px 0 16px; }
.acct-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.acct-stat { background: var(--paper-3); border-radius: 10px; padding: 12px 8px; }
.acct-stat b { display: block; font-family: var(--mono); font-size: 18px; }
.acct-stat small { font-size: 11px; color: var(--ink-3); }
.orders h2 { font-family: var(--serif); font-weight: 500; font-size: 24px; margin-bottom: 18px; }
.order {
  background: var(--paper-2); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 14px;
}
.order-top { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.order-top b { font-family: var(--mono); font-size: 13.5px; }
.order-top .status { font-size: 11.5px; font-weight: 700; color: var(--save); background: rgba(22,110,82,.1); padding: 3px 10px; border-radius: 99px; }
.order-items { font-size: 13.5px; color: var(--ink-2); }
.order-total { margin-top: 8px; font-family: var(--mono); font-weight: 700; font-size: 15px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 90px); z-index: 95;
  background: var(--ink); color: var(--paper); padding: 13px 24px; border-radius: 999px;
  font-size: 14px; font-weight: 500; box-shadow: 0 18px 44px -16px rgba(0,0,0,.5);
  transition: transform .35s cubic-bezier(.22,1,.36,1); pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); background: var(--paper-3); margin-top: 56px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 48px 0 36px; }
.footer-inner h4 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.footer-inner a { display: block; font-size: 13.5px; color: var(--ink-2); padding: 3px 0; }
.footer-inner a:hover { color: var(--clay); }
.footer-brand p { font-size: 13px; color: var(--ink-3); max-width: 34ch; margin-top: 10px; }
.footer-base { border-top: 1px solid var(--line-soft); padding: 16px 0 22px; font-size: 12px; color: var(--ink-3); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-base a { color: var(--clay); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .grid, .rail { grid-template-columns: repeat(2, 1fr); }
  .props { grid-template-columns: 1fr; }
  .pd { grid-template-columns: 1fr; }
  .pd-img { position: static; }
  .reviews-head { grid-template-columns: 1fr; }
  .rv-list { grid-template-columns: 1fr; }
  .cart-layout, .account-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
}
@media (max-width: 560px) {
  .grid, .rail { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- top view-switcher bar (injected on every page) ---------- */
.viewbar {
  background: #161412; color: #d8d2c8; border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 12.5px;
}
.viewbar-inner { display: flex; align-items: center; gap: 16px; min-height: 38px; padding: 5px 0; flex-wrap: wrap; }
.viewbar-label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: #8c857a; font-weight: 700; padding-right: 2px;
}
.viewbar-tabs { display: flex; align-items: center; gap: 4px; }
.viewbar-tab {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 13px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: #cfc9bf; border: 1px solid transparent;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.viewbar-tab .vt-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .55; }
.viewbar-tab:hover { background: rgba(255,255,255,0.07); color: #fff; }
.viewbar-tab.active { background: var(--paper); color: var(--ink); font-weight: 600; }
.viewbar-tab.active .vt-dot { opacity: 1; background: var(--clay); }
.viewbar-tab .vt-ext { font-size: 10.5px; opacity: .6; }
.viewbar-back {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px; padding: 5px 14px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.04);
  font-size: 12.5px; font-weight: 600; color: #efe9df;
  transition: background .16s ease, border-color .16s ease;
}
.viewbar-back:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.35); }
@media (max-width: 560px) {
  .viewbar-label { display: none; }
  .viewbar-back { margin-left: 0; }
  .viewbar-tab { padding: 5px 10px; }
}

/* ---------- merchant ops view ---------- */
.merch-head { padding: 30px 0 8px; }
.merch-eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--clay); font-weight: 700; margin-bottom: 8px;
}
.merch-head h1 { font-family: var(--serif); font-size: clamp(28px, 4vw, 40px); font-weight: 500; line-height: 1.1; }
.merch-head p { margin-top: 10px; font-size: 15px; color: var(--ink-2); max-width: 64ch; }
.merch-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 26px 0 8px; }
.merch-stat { background: var(--paper-2); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.merch-stat .label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.merch-stat .val { font-family: var(--mono); font-size: 24px; font-weight: 700; margin-top: 6px; }
.merch-stat .val.down { color: var(--save); }
.merch-stat .val.up { color: var(--rise); }
.merch-stat .sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

.merch-toolbar { display: flex; align-items: center; gap: 12px; margin: 28px 0 14px; flex-wrap: wrap; }
.merch-toolbar h2 { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.merch-toolbar .grow { flex: 1; }
.merch-refresh-note { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }

.merch-table-wrap { background: var(--paper-2); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; overflow-x: auto; }
.merch-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 760px; }
.merch-table thead th {
  text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
  font-weight: 700; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--paper-3);
  position: sticky; top: 0;
}
.merch-table thead th.num { text-align: right; }
.merch-table tbody td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.merch-table tbody tr:last-child td { border-bottom: none; }
.merch-table tbody tr:hover { background: var(--clay-soft); }
.merch-table tbody td.num { text-align: right; font-family: var(--mono); }
.merch-prod { display: flex; align-items: center; gap: 12px; }
.merch-prod img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; background: var(--paper-3); flex: none; }
.merch-prod .pname { font-family: var(--serif); font-size: 14.5px; font-weight: 500; line-height: 1.2; }
.merch-prod .pname a:hover { color: var(--clay); }
.merch-prod .psku { font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.merch-cat { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.merch-live { font-family: var(--mono); font-weight: 700; font-size: 15px; }
.merch-base { font-family: var(--mono); font-size: 12px; color: var(--ink-3); text-decoration: line-through; }
.merch-move { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 12.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.merch-move.up { color: var(--rise); background: rgba(168,52,78,.10); }
.merch-move.down { color: var(--save); background: rgba(22,110,82,.10); }
.merch-move.flat { color: var(--ink-3); background: var(--paper-3); }
.merch-stock { font-family: var(--mono); font-weight: 600; }
.merch-stock-flag { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: #fff; background: var(--gold); padding: 2px 8px; border-radius: 999px; margin-left: 8px; }
.merch-skel-row td { padding: 14px 16px; }
.merch-empty { padding: 40px 16px; text-align: center; color: var(--ink-3); }
@media (max-width: 720px) {
  .merch-stats { grid-template-columns: 1fr 1fr; }
}
