/* ─────────────────────────────────────────────────────────────────────────────
   Storefront — /shop, /shop/:slug, /shop/cart, /shop/checkout
   Follows the site's existing language: square corners, orange #F97316 accent,
   slate text, uppercase tracked micro-labels.
   ───────────────────────────────────────────────────────────────────────────── */

.shop-wrap { max-width: 80rem; margin: 0 auto; padding: 0 20px; }

/* ── page head ─────────────────────────────────────────────── */
/* The header injects its own .header-spacer, so this only adds breathing room
   below it — not the full clearance the fixed header needs. */
.shop-head {
  background: #f8fafc; border-bottom: 1px solid rgba(15,23,42,0.10);
  padding: 52px 0 36px;
}
.shop-head h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 900; letter-spacing: -0.03em;
  color: #0F172A; margin: 8px 0 12px; line-height: 1.02;
}
.shop-head p { color: #475569; font-size: 14px; line-height: 1.7; margin: 0; max-width: 640px; }
.shop-crumb { font-size: 11px; color: #94a3b8; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; }
.shop-crumb a { color: #94a3b8; text-decoration: none; }
.shop-crumb a:hover { color: #F97316; }

/* ── layout ────────────────────────────────────────────────── */
.shop-layout {
  display: grid; grid-template-columns: 248px minmax(0, 1fr);
  gap: 32px; align-items: start; padding: 32px 0 80px;
}
.shop-sidebar { position: sticky; top: 110px; }
#filterToggle { display: none; }          /* mobile-only; revealed in the media query */
.shop-side-box { border: 1px solid rgba(15,23,42,0.10); background: #fff; margin-bottom: 16px; }
.shop-side-title {
  font-size: 10px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: #94a3b8; padding: 14px 16px 10px; border-bottom: 1px solid rgba(15,23,42,0.07);
}
.shop-cat {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 10px 16px; font-size: 12.5px; font-weight: 600; color: #475569;
  border-left: 2px solid transparent; transition: color .15s, background .15s, border-color .15s;
}
.shop-cat:hover { color: #0F172A; background: rgba(249,115,22,0.06); }
.shop-cat.active { color: #F97316; border-left-color: #F97316; background: rgba(249,115,22,0.08); }
.shop-cat span { font-size: 11px; color: #94a3b8; font-weight: 700; }
.shop-cat.active span { color: #F97316; }

.shop-filter-row { padding: 12px 16px; }
.shop-filter-row label { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #475569; cursor: pointer; padding: 5px 0; }
.shop-filter-row input[type=checkbox] { accent-color: #F97316; width: 14px; height: 14px; }
.shop-range { width: 100%; accent-color: #F97316; }

/* ── toolbar ───────────────────────────────────────────────── */
.shop-toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  border: 1px solid rgba(15,23,42,0.10); background: #fff; padding: 12px 14px; margin-bottom: 20px;
}
.shop-search { position: relative; flex: 1; min-width: 220px; }
.shop-search input {
  width: 100%; border: 1px solid rgba(15,23,42,0.12); background: #f8fafc;
  padding: 11px 12px 11px 36px; font-size: 13px; color: #0F172A; outline: none;
  transition: border-color .15s, background .15s;
}
.shop-search input:focus { border-color: #F97316; background: #fff; }
.shop-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #94a3b8; }
/* Native selects render as bare OS widgets and look unfinished beside the custom
   search field and buttons — appearance:none plus an inlined chevron matches
   them to the rest of the toolbar. */
.shop-select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  border: 1px solid rgba(15,23,42,0.12); background-color: #fff;
  padding: 11px 32px 11px 13px; font-family: inherit;
  font-size: 12.5px; font-weight: 600; color: #334155; cursor: pointer; outline: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10' fill='none'%3E%3Cpath d='M2 3.5L5 6.5L8 3.5' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
  transition: border-color .15s, background-color .15s;
}
.shop-select:hover { border-color: rgba(15,23,42,0.28); }
.shop-select:focus { border-color: #F97316; box-shadow: 0 0 0 3px rgba(249,115,22,0.14); }
.shop-select option { font-weight: 600; color: #0F172A; background: #fff; }
.shop-count { font-size: 12px; color: #64748b; font-weight: 600; white-space: nowrap; }

/* ── product grid ──────────────────────────────────────────── */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 18px; }

.pcard {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid rgba(15,23,42,0.10); position: relative;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.pcard:hover { border-color: rgba(249,115,22,0.45); box-shadow: 0 14px 34px rgba(15,23,42,0.10); transform: translateY(-2px); }
.pcard-imgwrap {
  position: relative; aspect-ratio: 4 / 3; background: #f8fafc;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  border-bottom: 1px solid rgba(15,23,42,0.07);
}
.pcard-imgwrap img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .3s; }
.pcard:hover .pcard-imgwrap img { transform: scale(1.05); }
.pcard-noimg { color: #cbd5e1; }

.pcard-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.pbadge {
  font-size: 9px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 7px; color: #fff; background: #F97316;
}
.pbadge-off { background: #16A34A; }
.pbadge-out { background: #64748b; }
.pbadge-new { background: #0EA5E9; }

.pcard-wish {
  position: absolute; top: 8px; right: 8px; width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.92); border: 1px solid rgba(15,23,42,0.10);
  color: #94a3b8; cursor: pointer; transition: color .15s, border-color .15s;
}
.pcard-wish:hover { color: #E63946; border-color: rgba(230,57,70,0.4); }
.pcard-wish.on { color: #E63946; border-color: rgba(230,57,70,0.4); }
.pcard-wish.on svg { fill: currentColor; }

.pcard-body { padding: 13px 14px 0; flex: 1; display: flex; flex-direction: column; }
.pcard-cat { font-size: 9.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #F97316; margin-bottom: 6px; }
.pcard-name {
  font-size: 13.5px; font-weight: 700; color: #0F172A; line-height: 1.35; margin: 0 0 6px;
  text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
a.pcard-name:hover { color: #F97316; }
.pcard-desc {
  font-size: 11.5px; color: #64748b; line-height: 1.5; margin: 0 0 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pcard-price { display: flex; align-items: baseline; gap: 7px; margin-top: auto; padding-bottom: 10px; }
.pcard-price b { font-size: 16px; font-weight: 800; color: #0F172A; letter-spacing: -0.02em; }
.pcard-price s { font-size: 12px; color: #94a3b8; }
.pcard-price em { font-size: 10px; color: #94a3b8; font-style: normal; font-weight: 600; }

.pcard-actions { display: flex; gap: 0; border-top: 1px solid rgba(15,23,42,0.07); }
.pcard-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 8px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.09em;
  text-transform: uppercase; border: 0; cursor: pointer; background: #fff; color: #F97316;
  transition: background .15s, color .15s;
}
.pcard-btn:hover { background: #F97316; color: #fff; }
.pcard-btn:disabled { color: #cbd5e1; cursor: not-allowed; background: #fff; }
.pcard-btn-ghost { color: #64748b; border-left: 1px solid rgba(15,23,42,0.07); flex: 0 0 42%; }
.pcard-btn-ghost:hover { background: #0F172A; color: #fff; }

.shop-empty { border: 1px dashed rgba(15,23,42,0.18); padding: 60px 24px; text-align: center; color: #94a3b8; font-size: 13px; }

/* ── product detail page ───────────────────────────────────── */
.pdp-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 32px; align-items: start; }

/* The sidebar's category links are anchors here rather than filter buttons, so
   they need the button reset the .shop-cat rules assume. */
a.shop-cat { text-decoration: none; }

.pdp-tabs { display: flex; gap: 0; border-bottom: 1px solid rgba(15,23,42,0.12); margin-bottom: 22px; flex-wrap: wrap; }
.pdp-tab {
  background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer;
  padding: 12px 18px; font-size: 11px; font-weight: 800; letter-spacing: 0.11em;
  text-transform: uppercase; color: #94a3b8; font-family: inherit; transition: color .15s, border-color .15s;
}
.pdp-tab:hover { color: #0F172A; }
.pdp-tab.on { color: #F97316; border-bottom-color: #F97316; }

.spec-table { width: 100%; border-collapse: collapse; max-width: 820px; }
.spec-table th, .spec-table td {
  text-align: left; font-size: 13px; padding: 10px 14px;
  border-bottom: 1px solid rgba(15,23,42,0.07); vertical-align: top;
}
.spec-table th { width: 210px; font-weight: 700; color: #64748b; background: #f8fafc; }
.spec-table td { color: #334155; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
/* Numbered specification rows — the leading index column */
.spec-no {
  width: 34px; color: #F97316; font-weight: 800; font-size: 12px;
  text-align: right; padding-right: 4px !important; white-space: nowrap;
}
.spec-numbered th { width: 190px; }
/* Numbered "at a glance" list */
.spec-list { margin: 0; padding: 0; list-style: none; counter-reset: spec; max-width: 820px; }
.spec-list li {
  counter-increment: spec; position: relative; padding: 6px 0 6px 30px;
  color: #475569; font-size: 13.5px; line-height: 1.7;
}
.spec-list li::before {
  content: counter(spec) "."; position: absolute; left: 0; top: 6px;
  color: #F97316; font-weight: 800; font-size: 12.5px;
}

/* ── quickview modal ───────────────────────────────────────── */
.qv-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,0.55); backdrop-filter: blur(3px);
  z-index: 300; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.qv-overlay.open { opacity: 1; visibility: visible; }
.qv-modal {
  position: fixed; z-index: 301; left: 50%; top: 50%; transform: translate(-50%, -48%) scale(.98);
  width: min(880px, calc(100vw - 32px)); max-height: min(86vh, 720px); overflow-y: auto;
  background: #fff; border: 1px solid rgba(15,23,42,0.12); box-shadow: 0 30px 80px rgba(15,23,42,0.3);
  opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
}
.qv-modal.open { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.qv-close {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; z-index: 2;
  background: rgba(255,255,255,0.9); border: 1px solid rgba(15,23,42,0.12);
  cursor: pointer; color: #64748b; font-size: 18px; line-height: 1;
}
.qv-close:hover { color: #0F172A; }
.qv-body { display: grid; grid-template-columns: 1fr 1fr; }
.qv-img { background: #f8fafc; display: flex; align-items: center; justify-content: center; min-height: 300px; border-right: 1px solid rgba(15,23,42,0.07); }
.qv-img img { width: 100%; height: 100%; max-height: 420px; object-fit: contain; padding: 24px; }
.qv-info { padding: 30px 28px; }

/* ── qty stepper ───────────────────────────────────────────── */
.qty { display: inline-flex; align-items: center; border: 1px solid rgba(15,23,42,0.14); }
.qty button {
  width: 34px; height: 36px; background: #f8fafc; border: 0; cursor: pointer;
  color: #334155; font-size: 15px; line-height: 1; transition: background .15s;
}
.qty button:hover { background: #F97316; color: #fff; }
.qty input {
  width: 46px; height: 36px; border: 0; border-left: 1px solid rgba(15,23,42,0.14);
  border-right: 1px solid rgba(15,23,42,0.14); text-align: center; font-size: 13px;
  font-weight: 700; color: #0F172A; outline: none; -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ── buttons ───────────────────────────────────────────────── */
.sbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; font-size: 11px; font-weight: 800; letter-spacing: 0.11em;
  text-transform: uppercase; border: 1px solid transparent; cursor: pointer;
  text-decoration: none; transition: background .18s, color .18s, border-color .18s, opacity .18s;
}
.sbtn-primary { background: #F97316; color: #fff; }
.sbtn-primary:hover { background: #EA6C0A; }
.sbtn-primary:disabled { opacity: .55; cursor: not-allowed; }
.sbtn-dark { background: #0F172A; color: #fff; }
.sbtn-dark:hover { background: #1E293B; }
.sbtn-ghost { background: transparent; color: #475569; border-color: rgba(15,23,42,0.14); }
.sbtn-ghost:hover { color: #F97316; border-color: rgba(249,115,22,0.5); }

/* ── cart + checkout ───────────────────────────────────────── */
.cart-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 28px; align-items: start; padding: 32px 0 80px; }
.cart-panel { border: 1px solid rgba(15,23,42,0.10); background: #fff; }
.cart-line { display: grid; grid-template-columns: 84px minmax(0,1fr) auto; gap: 16px; padding: 18px; border-bottom: 1px solid rgba(15,23,42,0.07); align-items: center; }
.cart-line:last-child { border-bottom: 0; }
.cart-thumb { width: 84px; height: 68px; object-fit: contain; background: #f8fafc; border: 1px solid rgba(15,23,42,0.07); }
.cart-name { font-size: 13.5px; font-weight: 700; color: #0F172A; text-decoration: none; display: block; }
.cart-name:hover { color: #F97316; }
.cart-meta { font-size: 11px; color: #94a3b8; margin-top: 3px; }
.cart-remove { background: none; border: 0; color: #94a3b8; font-size: 11px; cursor: pointer; padding: 4px 0; text-decoration: underline; }
.cart-remove:hover { color: #E63946; }

.sum-panel { border: 1px solid rgba(15,23,42,0.10); background: #fff; position: sticky; top: 110px; }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 18px; font-size: 13px; color: #475569; }
.sum-row b { color: #0F172A; font-weight: 700; }
.sum-total { border-top: 1px solid rgba(15,23,42,0.10); margin-top: 6px; padding: 14px 18px; display: flex; justify-content: space-between; align-items: baseline; }
.sum-total span { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #64748b; }
.sum-total b { font-size: 22px; font-weight: 900; color: #0F172A; letter-spacing: -0.02em; }

/* Editable line items inside the checkout summary panel */
.co-item { padding: 12px 18px; border-bottom: 1px solid rgba(15,23,42,0.05); }
.co-item:last-child { border-bottom: 0; }
.co-item-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.co-item-name { font-size: 12.5px; font-weight: 700; color: #0F172A; text-decoration: none; line-height: 1.4; }
.co-item-name:hover { color: #F97316; }
.co-item-total { font-size: 13px; color: #0F172A; white-space: nowrap; }
.co-item-bottom { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.co-item-each { font-size: 11px; color: #94a3b8; flex: 1; }
.co-item-remove {
  background: none; border: 0; padding: 2px 0; cursor: pointer;
  font-size: 11px; color: #94a3b8; text-decoration: underline; font-family: inherit;
}
.co-item-remove:hover { color: #E63946; }
.qty-sm button { width: 26px; height: 28px; font-size: 13px; }
.qty-sm input { width: 36px; height: 28px; font-size: 12px; }

.co-field { margin-bottom: 14px; }
.co-field label { display: block; font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #64748b; margin-bottom: 6px; }
.co-field input, .co-field textarea, .co-field select {
  width: 100%; border: 1px solid rgba(15,23,42,0.14); background: #fff; padding: 11px 12px;
  font-size: 13px; color: #0F172A; outline: none; font-family: inherit; transition: border-color .15s;
}
.co-field input:focus, .co-field textarea:focus, .co-field select:focus { border-color: #F97316; }
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pay-opt {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px;
  border: 1px solid rgba(15,23,42,0.12); margin-bottom: 10px; cursor: pointer; transition: border-color .15s, background .15s;
}
.pay-opt:hover { border-color: rgba(249,115,22,0.45); }
.pay-opt.on { border-color: #F97316; background: rgba(249,115,22,0.05); }
.pay-opt input { accent-color: #F97316; margin-top: 2px; }
.pay-opt strong { display: block; font-size: 13px; color: #0F172A; }
.pay-opt small { display: block; font-size: 11.5px; color: #64748b; margin-top: 2px; line-height: 1.5; }

.co-alert { padding: 12px 14px; font-size: 12.5px; border: 1px solid; margin-bottom: 16px; }
.co-alert-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.co-alert-info { background: #f0f9ff; border-color: #bae6fd; color: #075985; }

/* ── account pages (sign in / register) ────────────────────────────────────
   Two panels: a dark brand column carrying the reasons to have an account, and
   the form itself. On a phone the brand column collapses to a slim header so
   the form stays above the fold. */
.auth-shell {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  border: 1px solid rgba(15,23,42,0.10); background: #fff; overflow: hidden;
  box-shadow: 0 24px 60px rgba(15,23,42,0.07);
  margin: 40px auto 80px; max-width: 940px;
}
.auth-brand {
  background: #06121F; color: #fff; padding: 40px 36px;
  display: flex; flex-direction: column; position: relative; overflow: hidden;
}
/* Faint grid, matching the treatment used on the site's hero sections. */
.auth-brand::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(249,115,22,0.07) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(249,115,22,0.07) 1px, transparent 1px);
  background-size: 44px 44px;
}
.auth-brand > * { position: relative; }
/* Text lockup rather than the PNG logo — the site's mark is dark-on-light and
   disappears against this panel. */
.auth-brand-mark {
  font-family: 'Space Grotesk', sans-serif; font-size: 21px; font-weight: 800;
  letter-spacing: -0.02em; color: #fff; margin-bottom: 30px; line-height: 1;
}
.auth-brand-mark span {
  display: block; font-size: 9px; font-weight: 800; letter-spacing: 0.34em;
  text-transform: uppercase; color: #F97316; margin-top: 5px;
}
.auth-brand h2 {
  font-size: 26px; font-weight: 900; letter-spacing: -0.03em; line-height: 1.15;
  margin: 0 0 12px; color: #fff;
}
.auth-brand p { font-size: 13px; color: #94a3b8; line-height: 1.7; margin: 0 0 26px; }
.auth-perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.auth-perks li { display: flex; gap: 11px; align-items: flex-start; font-size: 13px; color: #cbd5e1; line-height: 1.5; }
.auth-perks svg { flex-shrink: 0; margin-top: 1px; color: #F97316; }
.auth-perks strong { display: block; color: #fff; font-weight: 700; font-size: 13px; margin-bottom: 1px; }
.auth-trust {
  margin-top: auto; padding-top: 28px; display: flex; gap: 18px; flex-wrap: wrap;
  font-size: 10.5px; color: #64748b; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.auth-trust span { display: inline-flex; align-items: center; gap: 6px; }

.auth-form { padding: 40px 38px; }
.auth-title { font-size: 25px; font-weight: 900; letter-spacing: -0.03em; color: #0F172A; margin: 0 0 6px; }
.auth-sub { font-size: 13px; color: #64748b; line-height: 1.6; margin: 0 0 24px; }

/* Password field with a show/hide toggle */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 62px; }
.pw-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; cursor: pointer; padding: 4px 6px; font-family: inherit;
  font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #94a3b8;
}
.pw-toggle:hover { color: #F97316; }

@media (max-width: 840px) {
  .auth-shell { grid-template-columns: minmax(0, 1fr); margin: 24px auto 60px; }
  .auth-brand { padding: 28px 24px; }
  .auth-brand-mark { font-size: 18px; margin-bottom: 18px; }
  .auth-brand h2 { font-size: 21px; }
  .auth-brand p { margin-bottom: 18px; }
  .auth-perks { flex-direction: row; flex-wrap: wrap; gap: 12px 20px; }
  .auth-perks li { flex: 1 1 210px; font-size: 12px; }
  .auth-trust { padding-top: 20px; }
  .auth-form { padding: 28px 22px; }
}
.auth-alt { font-size: 13px; color: #64748b; text-align: center; margin: 18px 0 0; }
.auth-alt a { color: #F97316; font-weight: 700; text-decoration: none; }
.auth-alt a:hover { text-decoration: underline; }
.auth-note { font-size: 11.5px; color: #94a3b8; text-align: center; margin: 8px 0 0; line-height: 1.5; }
.auth-divider {
  display: flex; align-items: center; gap: 12px; margin: 20px 0 16px;
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #94a3b8;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: rgba(15,23,42,0.10); }
.auth-divider span { flex-shrink: 0; }

/* Sign-in prompt shown above the checkout form for guests */
.co-signin {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border: 1px solid rgba(249,115,22,0.35); background: rgba(249,115,22,0.06);
  padding: 13px 16px; margin-bottom: 16px; font-size: 12.5px; color: #475569;
}
.co-signin a { color: #F97316; font-weight: 800; text-decoration: none; }
.co-signin a:hover { text-decoration: underline; }

/* Shipping rate table */
.ship-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ship-table td { padding: 5px 0; color: #64748b; }
.ship-table td:last-child { text-align: right; font-weight: 700; color: #334155; }

/* ── floating cart button ──────────────────────────────────── */
/* Bottom-LEFT on purpose: the site's chat widget (#ia-chat-btn) is fixed at
   bottom:22px right:22px, and the two would sit on top of each other. */
#cartFab {
  position: fixed; left: 20px; bottom: 20px; z-index: 190; display: none;
  align-items: center; gap: 8px; padding: 13px 18px; background: #0F172A; color: #fff;
  text-decoration: none; box-shadow: 0 12px 34px rgba(15,23,42,0.32);
  font-size: 13px; font-weight: 800; transition: background .18s;
}
#cartFab:hover { background: #F97316; }
#cartFab [data-cart-count] {
  background: #F97316; color: #fff; min-width: 20px; height: 20px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 11px; font-weight: 800; padding: 0 5px;
}
#cartFab:hover [data-cart-count] { background: #fff; color: #F97316; }

/* ── toast ─────────────────────────────────────────────────── */
#shopToast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 26px; z-index: 400; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.shop-toast {
  padding: 12px 20px; font-size: 12.5px; font-weight: 700; color: #fff; background: #0F172A;
  box-shadow: 0 12px 30px rgba(15,23,42,0.28); transition: opacity .4s, transform .4s;
}
.shop-toast-success { background: #16A34A; }
.shop-toast-error { background: #DC2626; }

/* ── responsive ────────────────────────────────────────────── */
/* Every single-column fallback below uses minmax(0, 1fr), never 1fr. A grid
   track defaults to min-width:auto, so a plain 1fr refuses to shrink under its
   widest content — the category chip scroller and the product grid then push
   the whole page wider than the phone and the right-hand cards get clipped. */
@media (max-width: 1000px) {
  .shop-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .shop-layout > * { min-width: 0; }
  .shop-sidebar { position: static; min-width: 0; }
  /* The buttons live inside #catList, so that is the element that has to become
     the scroller — flexing the outer box would only lay out title + list. */
  .shop-side-box.cats { border: 0; margin-bottom: 12px; background: none; }
  .shop-side-box.cats .shop-side-title { display: none; }
  .shop-side-box.cats #catList {
    display: flex; overflow-x: auto; gap: 8px; padding-bottom: 4px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .shop-side-box.cats #catList::-webkit-scrollbar { display: none; }
  .shop-side-box.cats .shop-cat {
    width: auto; flex: 0 0 auto; border: 1px solid rgba(15,23,42,0.12);
    border-left-width: 1px; padding: 9px 14px; white-space: nowrap; background: #fff;
  }
  .shop-side-box.cats .shop-cat.active { border-color: #F97316; }
  .cart-layout { grid-template-columns: minmax(0, 1fr); }
  .cart-layout > * { min-width: 0; }
  .sum-panel { position: static; }
  .pdp-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .pdp-grid > * { min-width: 0; }

  /* On a product page the sidebar is browse-on links, not filters — the product
     itself has to come first on a phone. */
  .pdp-layout .shop-sidebar { order: 2; }
  .pdp-layout > div { order: 1; }

  /* Filters collapse behind a toggle so products start near the top. */
  #filterToggle {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    background: #fff; border: 1px solid rgba(15,23,42,0.12); cursor: pointer;
    padding: 11px 14px; margin-bottom: 12px; font-family: inherit;
    font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #475569;
  }
  #filterToggle span { display: inline-flex; align-items: center; gap: 8px; }
  #filterToggle.open { color: #F97316; border-color: rgba(249,115,22,0.5); }
  #filterToggle .ft-chev { transition: transform .2s; }
  #filterToggle.open .ft-chev { transform: rotate(180deg); }
  #sideFilters { display: none; }
  #sideFilters.open { display: block; }
}
@media (max-width: 720px) {
  .shop-head { padding: 34px 0 24px; }
  .shop-layout { padding-bottom: 96px; }        /* clear of the floating cart button */
  .shop-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .pcard-body { padding: 11px 12px 0; }
  .pcard-name { font-size: 12.5px; }
  .pcard-desc { font-size: 11px; -webkit-line-clamp: 3; }
  .pcard-price b { font-size: 15px; }
  .pcard-btn { padding: 10px 6px; font-size: 9.5px; letter-spacing: 0.06em; }
  .pcard-btn-ghost { flex: 0 0 40%; }
  .shop-toolbar { padding: 10px; gap: 8px; }
  .shop-search { flex: 1 1 100%; min-width: 0; }
  .shop-select { flex: 1; min-width: 0; }
  .qv-body { grid-template-columns: 1fr; }
  .qv-img { border-right: 0; border-bottom: 1px solid rgba(15,23,42,0.07); min-height: 220px; }
  .qv-info { padding: 22px 20px; }
  .co-row { grid-template-columns: 1fr; }
  .spec-table th { width: 38%; }
  .spec-table th, .spec-table td { padding: 9px 10px; font-size: 12px; }
  .pdp-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .pdp-tabs::-webkit-scrollbar { display: none; }
  .pdp-tab { padding: 11px 12px; font-size: 10px; white-space: nowrap; }
  .cart-line { grid-template-columns: 64px minmax(0,1fr); }
  .cart-thumb { width: 64px; height: 54px; }
  .cart-line > div:last-child { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; }
  #cartFab { left: 14px; bottom: 14px; padding: 12px 15px; }
  #shopToast { bottom: 84px; }              /* above both floating buttons */
}
@media (max-width: 400px) {
  /* Two columns stop being readable here — one full-width card per row. */
  .shop-grid { grid-template-columns: minmax(0, 1fr); }
  .shop-wrap { padding: 0 14px; }
}
