/* Tunnell Truck Stop — the register. Shared styles for shop / product / cart pages.
   Same paint as the front door: charcoal asphalt, gold for trading, red for bulls. */
:root {
  --bg: #0a0908;
  --bg2: #0c0a08;
  --panel: #171310;
  --panel2: #1d1712;
  --ink: #f7efdc;
  --ink-dim: #cfc3a8;
  --muted: #a2937a;
  --gold: #e8b33c;
  --gold-hi: #ffd166;
  --gold-deep: #9a741f;
  --red: #e0453a;
  --red-deep: #8f231c;
  --green: #7fb069;
  --line: #40331e;
  --line-soft: #2c2314;
  --radius: 14px;
  --font-body: "Barlow", system-ui, sans-serif;
  --font-cond: "Barlow Condensed", "Barlow", sans-serif;
  --font-sign: "Bebas Neue", "Barlow Condensed", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
}
a { color: var(--gold); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px 72px; }

/* Header */
.store-head {
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #100d0a, var(--bg2));
  margin-bottom: 28px;
}
.store-head-in {
  max-width: 1120px; margin: 0 auto; padding: 16px 20px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.brand { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; line-height: 1.05; }
.brand .sign { font-family: var(--font-sign); font-size: 30px; letter-spacing: 1.5px; color: var(--gold-hi); }
.brand .sub { font-family: var(--font-cond); font-size: 14px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); }
.head-nav { margin-left: auto; display: flex; align-items: center; gap: 18px; font-family: var(--font-cond); text-transform: uppercase; letter-spacing: 1.5px; font-size: 16px; }
.head-nav a { color: var(--ink-dim); text-decoration: none; }
.head-nav a:hover { color: var(--gold-hi); }
.cart-btn {
  position: relative; cursor: pointer;
  background: var(--panel); color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--font-cond); font-size: 16px; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 8px 18px;
}
.cart-btn:hover { border-color: var(--gold-deep); color: var(--gold-hi); }
.cart-count {
  position: absolute; top: -8px; right: -6px; min-width: 22px; height: 22px;
  border-radius: 999px; background: var(--red); color: #fff;
  font-family: var(--font-body); font-size: 13px; font-weight: 700; line-height: 22px; text-align: center;
  padding: 0 5px;
}
.cart-count:empty { display: none; }

/* Page titles */
.kicker { font-family: var(--font-cond); letter-spacing: 3px; text-transform: uppercase; color: var(--red); font-size: 15px; margin: 0 0 6px; }
h1.page-title { font-family: var(--font-sign); font-weight: 400; font-size: 52px; letter-spacing: 1.5px; margin: 0 0 8px; color: var(--ink); }
.page-lede { color: var(--ink-dim); max-width: 640px; margin: 0 0 28px; }
.tagline { color: var(--muted); font-style: italic; }

/* Buttons */
.btn {
  display: inline-block; cursor: pointer; text-decoration: none; text-align: center;
  font-family: var(--font-cond); text-transform: uppercase; letter-spacing: 1.5px; font-size: 18px;
  border-radius: 10px; padding: 12px 26px; border: 1px solid var(--line);
  background: var(--panel); color: var(--ink);
}
.btn:hover { border-color: var(--gold-deep); color: var(--gold-hi); }
.btn-primary { background: linear-gradient(180deg, var(--gold), var(--gold-deep)); color: #221806; border-color: var(--gold-deep); font-weight: 700; }
.btn-primary:hover { color: #221806; filter: brightness(1.07); }
.btn-red { background: linear-gradient(180deg, var(--red), var(--red-deep)); color: #fff; border-color: var(--red-deep); }
.btn-red:hover { color: #fff; filter: brightness(1.1); }
.btn[disabled], .btn.disabled { opacity: .45; cursor: not-allowed; filter: none; }
.btn-small { padding: 7px 14px; font-size: 15px; border-radius: 8px; }
.text-btn { background: none; border: none; color: var(--gold); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }

/* Listing */
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; margin-bottom: 8px; }
.toolbar .field { display: flex; flex-direction: column; gap: 5px; }
.toolbar label { font-family: var(--font-cond); text-transform: uppercase; letter-spacing: 1.5px; font-size: 14px; color: var(--muted); }
.toolbar input[type="search"], .toolbar input[type="number"], .toolbar select, .coupon-row input {
  background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 8px;
  padding: 9px 12px; font: inherit; font-size: 16px;
}
.result-count { color: var(--muted); margin: 6px 0 18px; font-family: var(--font-cond); letter-spacing: 1px; text-transform: uppercase; font-size: 15px; }
.facets { display: flex; flex-wrap: wrap; gap: 22px; margin: 0 0 20px; }
.facet-group legend, .facet-group .facet-name { font-family: var(--font-cond); text-transform: uppercase; letter-spacing: 1.5px; color: var(--ink-dim); font-size: 15px; margin-bottom: 7px; }
.facet-group { border: none; padding: 0; margin: 0; }
.chip {
  cursor: pointer; margin: 0 7px 7px 0; padding: 6px 13px; border-radius: 999px;
  background: var(--panel); color: var(--ink-dim); border: 1px solid var(--line-soft);
  font-family: var(--font-cond); font-size: 15px; letter-spacing: .5px;
}
.chip[aria-pressed="true"] { background: var(--gold); color: #221806; border-color: var(--gold-deep); font-weight: 700; }
.chip .count { opacity: .75; font-size: 13px; }
.swatch-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--line); vertical-align: -1px; margin-right: 6px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.tile { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.tile:hover { border-color: var(--line); }
.tile .tile-img { aspect-ratio: 4 / 3; background: var(--panel2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tile .tile-img img { width: 100%; height: 100%; object-fit: cover; }
.tile .tile-img .no-img { font-family: var(--font-sign); color: var(--gold-deep); font-size: 26px; letter-spacing: 2px; padding: 20px; text-align: center; }
.tile .tile-body { padding: 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.tile h3 { margin: 0; font-family: var(--font-cond); font-size: 22px; letter-spacing: .5px; font-weight: 600; }
.tile h3 a { color: var(--ink); text-decoration: none; }
.tile h3 a:hover { color: var(--gold-hi); }
.ribbons { display: flex; gap: 6px; flex-wrap: wrap; }
.ribbon { background: var(--red); color: #fff; font-family: var(--font-cond); font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; padding: 3px 9px; border-radius: 5px; }
.price { font-size: 19px; font-weight: 700; color: var(--gold-hi); }
.price .was { color: var(--muted); text-decoration: line-through; font-weight: 400; font-size: 16px; margin-left: 8px; }
.discount-names { color: var(--green); font-size: 14px; }
.options-summary { color: var(--muted); font-size: 14px; }
.swatches { display: flex; gap: 5px; }
.tile .tile-foot { margin-top: auto; padding-top: 8px; }
.state-box { border: 1px dashed var(--line); border-radius: var(--radius); padding: 42px 26px; text-align: center; color: var(--ink-dim); background: var(--bg2); }
.state-box .big { font-family: var(--font-sign); font-size: 34px; letter-spacing: 1.5px; color: var(--ink); display: block; margin-bottom: 8px; }
.load-more-row { text-align: center; margin-top: 30px; }
.error-line { color: #ffb3ab; }
.dim { opacity: .55; }

/* Product page */
.crumbs { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.crumbs a { color: var(--ink-dim); text-decoration: none; }
.crumbs a:hover { color: var(--gold-hi); }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
@media (max-width: 760px) { .product-layout { grid-template-columns: 1fr; } }
.gallery-main { background: var(--panel2); border: 1px solid var(--line-soft); border-radius: var(--radius); aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main .no-img { font-family: var(--font-sign); color: var(--gold-deep); font-size: 34px; letter-spacing: 2px; text-align: center; padding: 24px; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumbs button { padding: 0; border: 2px solid var(--line-soft); border-radius: 9px; overflow: hidden; cursor: pointer; width: 74px; height: 56px; background: var(--panel2); }
.gallery-thumbs button[aria-pressed="true"] { border-color: var(--gold); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-family: var(--font-sign); font-weight: 400; font-size: 46px; letter-spacing: 1px; margin: 0 0 6px; line-height: 1.05; }
.product-info .price { font-size: 26px; }
.product-info .price .was { font-size: 19px; }
.per-unit { color: var(--muted); font-size: 15px; }
.desc { color: var(--ink-dim); margin: 16px 0; }
.desc p { margin: 0 0 10px; }
.opt-group { border: none; padding: 0; margin: 18px 0 0; }
.opt-group legend { font-family: var(--font-cond); text-transform: uppercase; letter-spacing: 1.5px; color: var(--ink-dim); font-size: 16px; margin-bottom: 8px; }
.opt-group .chip[disabled] { opacity: .4; cursor: not-allowed; }
.mod-row { margin-top: 16px; }
.mod-row label { display: block; font-family: var(--font-cond); text-transform: uppercase; letter-spacing: 1.5px; color: var(--ink-dim); font-size: 16px; margin-bottom: 8px; }
.mod-row input[type="text"] { width: 100%; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: inherit; }
.qty-row { display: flex; align-items: center; gap: 14px; margin: 22px 0 6px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.stepper button { background: var(--panel); color: var(--ink); border: none; width: 40px; height: 42px; font-size: 20px; cursor: pointer; }
.stepper button:hover { color: var(--gold-hi); }
.stepper .qty { min-width: 42px; text-align: center; font-weight: 700; }
.remaining { color: var(--gold-hi); font-size: 15px; }
.blocked { color: var(--muted); margin: 6px 0 0; }
.add-row { margin-top: 16px; display: flex; gap: 12px; flex-wrap: wrap; }
.info-sections { margin-top: 40px; border-top: 1px solid var(--line-soft); }
.info-sections section { padding: 20px 0; border-bottom: 1px solid var(--line-soft); }
.info-sections h2 { font-family: var(--font-cond); text-transform: uppercase; letter-spacing: 1.5px; font-size: 20px; margin: 0 0 8px; }
.info-sections .desc { margin: 0; }
.notify-box { margin-top: 18px; background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 18px; }
.notify-box input { width: 100%; background: var(--bg2); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: inherit; margin-bottom: 10px; }

/* Cart (drawer + page) */
.cart-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.62); z-index: 60; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(430px, 94vw); z-index: 61;
  background: var(--bg2); border-left: 1px solid var(--line); padding: 20px; overflow-y: auto;
  display: flex; flex-direction: column;
}
.cart-drawer h2, .cart-page h2 { font-family: var(--font-sign); font-weight: 400; letter-spacing: 1.5px; font-size: 32px; margin: 0; }
.cart-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cart-close { background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; width: 38px; height: 38px; font-size: 18px; cursor: pointer; }
.cart-line { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.cart-line .cl-img { width: 64px; height: 64px; border-radius: 9px; background: var(--panel2); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cart-line .cl-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-line .cl-name { font-family: var(--font-cond); font-size: 19px; letter-spacing: .5px; }
.cart-line .cl-desc { color: var(--muted); font-size: 14px; }
.cart-line .cl-status { color: var(--gold-hi); font-size: 14px; }
.cart-line .cl-row { display: flex; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.cart-line .stepper button { width: 32px; height: 34px; font-size: 17px; }
.cart-line .stepper .qty { min-width: 32px; }
.cart-line .cl-price { margin-left: auto; font-weight: 700; color: var(--gold-hi); }
.cart-line .cl-price .was { color: var(--muted); text-decoration: line-through; font-weight: 400; font-size: 14px; margin-right: 6px; }
.remove-line { color: var(--muted); font-size: 14px; }
.totals { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.totals .t-row { display: flex; justify-content: space-between; padding: 3px 0; color: var(--ink-dim); }
.totals .t-row.grand { color: var(--ink); font-size: 21px; font-weight: 700; border-top: 1px solid var(--line-soft); margin-top: 8px; padding-top: 10px; }
.totals .t-note { color: var(--muted); font-size: 14px; }
.coupon-row { display: flex; gap: 9px; margin-top: 16px; }
.coupon-row input { flex: 1; }
.coupon-on { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; background: var(--panel); border: 1px solid var(--line-soft); border-radius: 9px; padding: 9px 13px; }
.note-row { margin-top: 14px; }
.note-row label { display: block; color: var(--muted); font-size: 14px; margin-bottom: 5px; }
.note-row textarea { width: 100%; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; font: inherit; min-height: 58px; }
.checkout-row { margin-top: 20px; }
.checkout-row .btn { width: 100%; }
.cart-page { max-width: 760px; }
body.no-scroll { overflow: hidden; }
[hidden] { display: none !important; }

/* Blog */
.post-meta { color: var(--muted); font-family: var(--font-cond); letter-spacing: 1px; text-transform: uppercase; font-size: 14px; }
.post-excerpt { color: var(--ink-dim); margin: 0; font-size: 16px; }
.post-wrap { max-width: 760px; }
.post-title { font-family: var(--font-sign); font-weight: 400; font-size: 48px; letter-spacing: 1px; line-height: 1.05; margin: 0 0 8px; }
.post-wrap .post-meta { margin: 0 0 22px; }
.post-cover { border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; margin-bottom: 26px; background: var(--panel2); }
.post-cover img { width: 100%; }
.post-body { color: var(--ink-dim); font-size: 18px; }
.post-body p { margin: 0 0 16px; }
.post-body h1, .post-body h2, .post-body h3, .post-body h4, .post-body h5, .post-body h6 {
  font-family: var(--font-cond); color: var(--ink); letter-spacing: .5px; margin: 28px 0 10px; line-height: 1.2;
}
.post-body h1 { font-size: 34px; } .post-body h2 { font-size: 29px; } .post-body h3 { font-size: 24px; }
.post-body ul, .post-body ol { margin: 0 0 16px; padding-left: 26px; }
.post-body li { margin-bottom: 6px; }
.post-body li p { margin: 0; }
.post-body blockquote {
  margin: 0 0 16px; padding: 6px 0 6px 18px; border-left: 3px solid var(--gold);
  color: var(--ink); font-size: 19px;
}
.post-body blockquote p { margin: 0 0 8px; }
.post-body figure { margin: 0 0 18px; }
.post-body figure img { border-radius: var(--radius); border: 1px solid var(--line-soft); }
.post-body figcaption { color: var(--muted); font-size: 14px; margin-top: 7px; text-align: center; }
.post-body hr { border: none; border-top: 1px solid var(--line); margin: 26px 0; }
.post-body pre { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 10px; padding: 14px 16px; overflow-x: auto; font-size: 15px; }
.post-body .link-preview { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 14px 16px; }
.post-body .link-preview a { font-family: var(--font-cond); font-size: 19px; letter-spacing: .5px; text-decoration: none; }
.post-body .link-preview span { display: block; color: var(--muted); font-size: 15px; margin-top: 4px; }
.post-back { margin-top: 34px; }

/* ---------- BLOG CATEGORY TABS ---------- */
.blog-tabs{display:flex;flex-wrap:wrap;gap:9px;margin:20px 0 4px}
.blog-tab{font-family:"Barlow Condensed",sans-serif;font-weight:700;letter-spacing:.09em;text-transform:uppercase;font-size:16.5px;color:var(--gold-hi);background:var(--panel);border:2px solid var(--line);border-radius:999px;padding:8px 18px;cursor:pointer;min-height:44px}
.blog-tab:hover{border-color:var(--gold-deep)}
.blog-tab.is-active{background:var(--gold);border-color:var(--gold);color:#221a02}

/* ---------- SHOP SHELVES ---------- */
.shelf{margin:30px 0 4px}
.shelf:first-child{margin-top:8px}
.shelf-title{font-family:var(--font-sign);font-weight:400;font-size:36px;letter-spacing:1.2px;color:var(--gold-hi);margin:0}
.shelf-sub{color:var(--ink-dim);margin:2px 0 14px}
