/*
 * Post-launch UI fixes (approved by Haruun, 2026-10-08). Loaded last on every page so the
 * extracted live-site CSS stays untouched and every change is reviewable in one place.
 */

/* 1. No sideways wobble. Elements that slide in from the side (.revL / .revR) sit off-screen
      before their animation and widened the page by ~26px on phones. clip (not hidden) keeps
      the sticky header working. */
html, body { overflow-x: clip; max-width: 100%; }

/* 2. Collection header shows immediately. Its content waited for a scroll-reveal that does not
      always fire on phones, leaving a large empty block. */
.brand-hero .revL, .brand-hero .revR, .brand-hero .rev { opacity: 1 !important; transform: none !important; }

@media (max-width: 768px) {
  .bh-inner { padding: 22px 16px 20px; gap: 14px; }
  .bh-title { font-size: 44px !important; line-height: .9 !important; }
  .bh-desc { font-size: 13px; }
  .bh-img-wrap img { max-height: 150px; width: auto; }

  /* 3. Homepage hero: readable text over busy banner images. */
  .slide .s-content { position: relative; }
  .slide::after {
    content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(180deg, rgba(8,8,8,.15) 0%, rgba(8,8,8,.55) 45%, rgba(8,8,8,.88) 100%);
  }
  .slide .s-content { z-index: 3; }

  /* 4. Readable labels and thumb-sized buttons (44px tap targets). */
  .pc-stock, .sr-body .pc-stock { font-size: 11px !important; letter-spacing: .08em !important; }
  .pc-brand, .sr-brand { font-size: 10px; }
  .pc-badge, .sr-badge { font-size: 10px; }
  .pc .atc, .pc .atc-sm { min-height: 40px; padding: 10px 14px; font-size: 12px; }
  .sb-pill { min-height: 40px; display: inline-flex; align-items: center; }
  .qty-btn { min-width: 44px; min-height: 44px; }
  .vp { min-height: 40px; display: inline-flex; align-items: center; }
  .sort-sel { min-height: 40px; }
}

/* 5. Footer: tidy grid, real spacing, policy row. Base rules repeated here because the homepage
      stylesheet never had footer styles (only collection/product pages did). */
footer { background: var(--black, #080808); border-top: 3px solid var(--red, #D91B1B); padding: 52px 44px 26px; }
footer .fg { display: grid; padding-bottom: 40px; border-bottom: 1px solid #1A1A1A; margin-bottom: 22px; }
footer .f-name { font-family: var(--fh); font-size: 26px; letter-spacing: .04em; margin-bottom: 12px; }
footer .f-name em { color: var(--red, #D91B1B); font-style: normal; }
footer .f-tag { font-size: 12px; color: #BBBBBB; line-height: 1.75; max-width: 280px; margin-bottom: 16px; }
footer .fc-col h5 { font-weight: 700; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 15px; }
footer .fc-col ul { list-style: none; margin: 0; padding: 0; }
footer .fc-col li { margin-bottom: 9px; color: #BBBBBB; }
footer .fc-col li a { color: inherit; text-decoration: none; }
footer .fc-col li a:hover { color: #fff; }
footer .fb-bar { display: flex; justify-content: space-between; align-items: center; }
footer .fb-bar p { font-size: 11px; color: #888; margin: 0; }
footer .fg { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 36px; }
footer .f-info { list-style: none; margin: 0; padding: 0; }
footer .f-info li { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: #BBBBBB; line-height: 1.6; margin-bottom: 8px; }
footer .f-info svg { flex: 0 0 14px; margin-top: 3px; color: var(--red, #D91B1B); }
footer .f-info a { color: inherit; }
footer .fc-col h5 { color: #fff; }
footer .fc-col li { font-size: 13px; }
footer .fb-bar { gap: 16px; flex-wrap: wrap; }
footer .fb-pol { display: flex; gap: 16px; flex-wrap: wrap; }
footer .fb-pol a { font-size: 11px; color: #888; }
footer .fb-pol a:hover { color: #fff; }
@media (max-width: 1024px) {
  footer .fg { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  footer .fg > .f-store { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  footer { padding: 30px 16px 20px; }
  footer .fc-col h5 { margin-bottom: 10px; }
  footer .fc-col li { margin-bottom: 0; }
  footer .fc-col li a { display: block; padding: 7px 0; font-size: 14px; }
  footer .fb-bar { flex-direction: column; text-align: center; }
  footer .fb-pol { justify-content: center; }
}

/* 6. Live Deals page (page-deals.php) */
.deals-wrap { padding: 8px 44px 60px; }
.deals-intro { max-width: 760px; color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.7; margin: 0 0 28px; }
.deals-wrap .sub-grp { margin-bottom: 44px; }
@media (max-width: 768px) { .deals-wrap { padding: 4px 16px 40px; } }

/* 7. Menu: brands with a collapsed sub-menu of types (build-theme.js NESTED). */
.ns-row2 { display: flex; align-items: stretch; border-bottom: 1px solid #0A0A0A; }
.ns-row2 > .ns-sub-link { flex: 1; border-bottom: none; }
.ns-expand2 { padding: 0 16px; font-size: 12px; border-left: 1px solid #0A0A0A; }
.ns-sub2 { background: rgba(0,0,0,.35); border-left: 2px solid var(--red, #D91B1B); }
.ns-sub2 .ns-sub-link { padding-left: 52px; font-size: 9.5px; color: #bbb; }
.ns-sub2 .ns-sub-link:hover { padding-left: 58px; }
.ns-feat > .ns-sub-link { color: #fff; }
.ns-badge { display: inline-block; margin-left: 8px; padding: 2px 6px; border-radius: 2px; background: var(--red, #D91B1B); color: #fff; font-size: 8px; letter-spacing: .12em; vertical-align: 1px; }
@media (max-width: 768px) {
  .ns-sub2 .ns-sub-link { padding: 11px 18px 11px 44px; font-size: 10px; }
  .ns-expand2 { min-width: 44px; }
}

/* 8. Brand pages: featured product in the header, spotlit (taxonomy-product_cat.php). */
.bh-feat { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: inherit; position: relative; }
.bh-feat .bh-spot { position: absolute; left: 50%; top: 42%; width: 78%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(217,27,27,.42) 0%, rgba(217,27,27,.14) 42%, rgba(217,27,27,0) 70%); filter: blur(6px); pointer-events: none; z-index: 0; }
.bh-feat img { position: relative; z-index: 1; filter: drop-shadow(0 18px 34px rgba(0,0,0,.75)) drop-shadow(0 0 22px rgba(217,27,27,.25)); transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.bh-feat:hover img { transform: translateY(-6px) scale(1.03); }
.bh-feat-cap { position: relative; z-index: 2; margin-top: 14px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; max-width: 320px; }
.bh-feat-lbl { font-size: 9px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--red, #D91B1B); }
.bh-feat-name { font-size: 14px; font-weight: 600; line-height: 1.35; color: #fff; }
.bh-feat-row { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.bh-feat-price { font-family: var(--fc, 'Barlow Condensed', sans-serif); font-weight: 700; font-size: 20px; color: #fff; }
.bh-feat-cta { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; background: var(--red, #D91B1B); color: #fff; padding: 9px 14px; border-radius: 3px; }
@media (max-width: 768px) {
  .bh-feat-cap { margin-top: 10px; }
  .bh-feat-name { font-size: 13px; }
  .bh-feat-cta { padding: 11px 16px; }
}
.bh-img-wrap.bh-feat { width: 300px; height: auto; }
.bh-img-wrap.bh-feat img { width: 240px; height: 240px; }
@media (max-width: 1024px) { .bh-img-wrap.bh-feat { width: 240px; } .bh-img-wrap.bh-feat img { width: 190px; height: 190px; } }
@media (max-width: 768px) { .bh-img-wrap.bh-feat { width: 100%; max-width: 280px; } .bh-img-wrap.bh-feat img { width: 160px; height: 160px; max-height: none; } }

/* 9. Featured product reads as a link (taxonomy-product_cat.php header). */
.bh-feat-name { text-decoration: underline; text-decoration-color: var(--red, #D91B1B); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: color .2s; color: rgba(255,255,255,.88); }
.bh-feat-arr { display: inline-block; transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
.bh-feat:hover .bh-feat-name, .bh-feat:focus-visible .bh-feat-name { color: #fff; text-decoration-thickness: 3px; }
.bh-feat:hover .bh-feat-arr, .bh-feat:focus-visible .bh-feat-arr { transform: translateX(5px); }
.bh-feat:hover .bh-feat-cta { background: var(--red-dark, #A01010); }
.bh-feat:focus-visible { outline: 2px solid #fff; outline-offset: 6px; border-radius: 6px; }
.bh-feat:focus-visible img { transform: translateY(-6px) scale(1.03); }
@media (max-width: 768px) {
  .bh-feat-cta { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
}

/* 10. Line pages: the big "all" collections grouped by product line, with three views
       (Lines / Grid / List). Markup in taxonomy-product_cat.php, grouping in inc/helpers.php. */
.vw-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 44px 0; flex-wrap: wrap; }
.vw-sum { font-family: var(--fc); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--grey, #888); }
.vw-tog { display: inline-flex; background: var(--b3, #181818); border: 1px solid #242424; border-radius: 6px; padding: 3px; gap: 3px; }
.vw-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gl, #bbb); transition: background .2s, color .2s; }
.vw-btn svg { width: 16px; height: 16px; fill: currentColor; flex: 0 0 16px; }
.vw-btn:hover { color: #fff; background: #222; }
.vw-btn--on, .vw-btn--on:hover { background: var(--red, #D91B1B); color: #fff; }
.vw-btn:focus-visible, .ln-more:focus-visible, .ll-row summary:focus-visible, .ll-chip:focus-visible, .ln-link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Lines view */
.ln-grp { scroll-margin-top: 140px; }
.ln-head { align-items: flex-end; }
.ln-hl { min-width: 0; }
.ln-brand { font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--red, #D91B1B); margin-bottom: 6px; }
.ln-head .sub-grp-title { margin: 0; font-weight: 400; }
.ln-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 8px; font-size: 13px; color: var(--gl, #bbb); }
.ln-stock { color: #5fd38d; font-weight: 600; }
.ln-stock--out { color: #777; }
.ln-price { font-family: var(--fc); font-weight: 700; font-size: 16px; color: #fff; line-height: 1.1; }
.ln-hr { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ln-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid rgba(255,255,255,.15); border-radius: 3px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.8); transition: border-color .2s, color .2s, background .2s; }
.ln-link:hover { border-color: var(--red, #D91B1B); background: rgba(217,27,27,.08); color: #fff; }
@media (min-width: 1200px) {
  .ln-cards { grid-template-columns: repeat(6, 1fr); }
  .ln-grp.is-collapsed .ln-cards > :nth-child(n+7) { display: none; }
}
@media (min-width: 769px) and (max-width: 1199px) { .ln-grp.is-collapsed .ln-cards > :nth-child(n+5) { display: none; } }
.ln-more { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; margin-top: 12px; background: var(--b2, #101010); border: 1px solid #242424; border-radius: 4px; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; transition: border-color .2s, background .2s; }
.ln-more:hover { border-color: var(--red, #D91B1B); background: rgba(217,27,27,.08); }

/* List view: one row per line, tap to see every flavour */
.ll-list { display: flex; flex-direction: column; gap: 8px; }
.ll-row { background: var(--b3, #181818); border: 1px solid #1E1E1E; border-radius: 6px; scroll-margin-top: 140px; }
.ll-row[open] { border-color: #2c2c2c; }
.ll-row summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 10px 16px 10px 10px; min-height: 76px; cursor: pointer; border-radius: 6px; }
.ll-row summary::-webkit-details-marker { display: none; }
.ll-row summary:hover { background: #1d1d1d; }
.ll-img { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 4px; background: #141414; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ll-img img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.ll-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ll-brand { font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--red, #D91B1B); }
.ll-name { font-size: 16px; font-weight: 700; line-height: 1.25; color: #fff; }
.ll-meta { font-size: 12px; color: var(--grey, #888); }
.ll-price { font-family: var(--fc); font-weight: 700; font-size: 18px; color: #fff; white-space: nowrap; }
.ll-chev { flex: 0 0 10px; width: 10px; height: 10px; border-right: 2px solid #888; border-bottom: 2px solid #888; transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
.ll-row[open] .ll-chev { transform: rotate(225deg) translate(-2px, -2px); }
.ll-row--out .ll-img img { opacity: .45; }
.ll-body { padding: 4px 16px 16px; border-top: 1px solid #222; }
.ll-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; }
.ll-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border: 1px solid #2a2a2a; border-radius: 22px; background: #121212; font-size: 13px; font-weight: 600; color: #eee; line-height: 1.25; transition: border-color .2s, background .2s; }
.ll-chip:hover { border-color: var(--red, #D91B1B); background: rgba(217,27,27,.08); }
.ll-chip i { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: #5fd38d; }
.ll-chip small { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #ff7070; }
.ll-chip--out { color: #777; border-style: dashed; }
.ll-chip--out i { background: #444; }
.ll-chip--out small { color: #777; }
.ll-body .ln-link { margin-top: 14px; }

@media (max-width: 768px) {
  .vw-bar { padding: 12px 12px 0; }
  .vw-sum { font-size: 11px; letter-spacing: .12em; }
  .vw-tog { width: 100%; }
  .vw-btn { flex: 1; justify-content: center; min-height: 44px; padding: 0 8px; }
  .ln-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .ln-hr { width: 100%; justify-content: space-between; }
  .ln-link { min-height: 44px; }
  .ln-meta { font-size: 12px; }
  /* A line of 3+ is a swipeable row of every flavour (ln-rail, set by JS); "Show all" turns it into the 2-column grid. */
  .ln-grp.ln-rail .ln-cards { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; gap: 10px; margin: 0 -12px; padding: 8px 12px 6px; scroll-padding-inline: 12px; scrollbar-width: none; }
  .ln-grp.ln-rail .ln-cards::-webkit-scrollbar { display: none; }
  .ln-grp.ln-rail .ln-cards > .pc { flex: 0 0 43%; min-width: 0; scroll-snap-align: start; }
  .ll-row summary { gap: 12px; padding: 8px 12px 8px 8px; min-height: 72px; }
  .ll-name { font-size: 15px; }
  .ll-price { font-size: 16px; }
  .ll-body { padding: 2px 12px 14px; }
}

/* 11. Driver tip on the checkout (inc/tip.php, assets/js/tip.js). */
#vom-tip { margin: 18px 0; padding: 16px; border: 1px solid #262626; border-radius: 6px; background: #121212; }
#vom-tip[hidden] { display: none; }
#vom-tip .vt-title { font-weight: 700; font-size: 14px; letter-spacing: .04em; color: #fff; }
#vom-tip .vt-sub { font-size: 12px; color: #999; margin-top: 2px; }
#vom-tip .vt-opts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 12px; }
#vom-tip .vt-opt { min-height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 1px solid #333; border-radius: 4px; background: #1a1a1a; color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; }
#vom-tip .vt-opt small { font-weight: 500; font-size: 11px; color: #aaa; }
#vom-tip .vt-opt[aria-pressed="true"] { border-color: var(--red, #D91B1B); background: rgba(217,27,27,.15); }
#vom-tip .vt-opt:focus-visible, #vom-tip .vt-apply:focus-visible { outline: 2px solid var(--red, #D91B1B); outline-offset: 2px; }
#vom-tip .vt-custom { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
#vom-tip .vt-custom[hidden] { display: none; }
#vom-tip .vt-custom label { font-size: 12px; color: #bbb; width: 100%; }
#vom-tip .vt-custom input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; background: #0d0d0d; border: 1px solid #333; border-radius: 4px; color: #fff; font-size: 16px; }
#vom-tip .vt-apply { min-height: 44px; padding: 0 18px; border: 0; border-radius: 4px; background: var(--red, #D91B1B); color: #fff; font-weight: 700; cursor: pointer; }
@media (max-width: 480px) { #vom-tip .vt-opts { grid-template-columns: repeat(3, 1fr); } }

/* 12. Filter bar link to a related collection (e.g. STLTH × Geek Bar on the Geek Bar page). */
.sb-pill.sb-pill--link { border-color: var(--red, #D91B1B); color: #fff; }
.sb-pill.sb-pill--link:hover { background: rgba(217,27,27,.15); }

/* 13. Header search is a real form (build-theme.js): a text box on desktop; on phones the round
 * icon opens the box across the header (the inline script adds .open). */
.h-search .hs-btn { display: flex; align-items: center; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.h-search .hs-input { width: 170px; min-width: 0; padding: 0; border: 0; outline: 0; background: none; color: #fff; font: inherit; }
.h-search .hs-input::placeholder { color: var(--grey, #888); opacity: 1; }
.h-search:focus-within { border-color: #444; }
@media (max-width: 768px) {
  .h-search .hs-input { display: none; }
  .h-search.open { position: absolute; top: 9px; left: 12px; right: 12px; z-index: 2; width: auto; padding: 0 14px 0 13px; border-radius: 20px; justify-content: flex-start; gap: 9px; }
  .h-search.open .hs-input { display: block; flex: 1; width: auto; font-size: 16px; }
}
