/* Nephson Stickers: shared styles for every page */
:root {
  --dust: #e8eaed;        /* page background */
  --dust-2: #d5d9de;
  --card: #f6f7f9;
  --ink: #121418;
  --muted: #5b616a;
  --rust: #1f5fc9;        /* accent (blue) */
  --rust-dark: #17469a;
  --line: #c2c7ce;
  --glass: #1a1c1f;
  --band: #121418;        /* header, footer, dark sections */
  --band-text: #e8eaed;
  --band-muted: #9aa1ab;
  --on-accent: #fff;      /* text on accent buttons */
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--dust);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.5;
}
a { color: inherit; }
button { font: inherit; cursor: pointer; }
.wrap { max-width: 1140px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }

/* ---------- header ---------- */
header { position: sticky; top: 0; z-index: 20; background: var(--band); color: var(--band-text); }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.logo { font-family: Anton, sans-serif; font-size: 22px; letter-spacing: 1px; text-decoration: none; text-transform: uppercase; transform: skewX(-8deg); }
.logo span { color: var(--rust); }
nav { display: flex; align-items: center; gap: 20px; }
nav a { text-decoration: none; font-weight: 600; font-size: 14px; opacity: 0.8; }
nav a:hover { opacity: 1; }
.cart-btn {
  background: var(--rust); color: var(--on-accent); border: 0; border-radius: 6px;
  padding: 8px 14px; font-weight: 700; font-size: 14px; display: flex; gap: 8px; align-items: center;
}
.cart-btn b { background: var(--on-accent); color: var(--rust); border-radius: 999px; min-width: 22px; height: 22px; display: grid; place-items: center; font-size: 12px; }

/* ---------- hero ---------- */
.hero { padding-top: 72px; padding-bottom: 56px; }
.hero h1 {
  font-family: Anton, sans-serif; text-transform: uppercase;
  font-size: clamp(56px, 12vw, 148px); line-height: 0.9; margin-top: 8px;
  transform: skewX(-8deg); transform-origin: left;
}
.hero h1 span { color: var(--rust); display: block; }
.hero p { max-width: 520px; margin-top: 20px; font-size: 18px; color: var(--muted); }
.btn {
  display: inline-block; margin-top: 28px; background: var(--ink); color: var(--dust);
  padding: 14px 26px; border-radius: 6px; font-weight: 700; text-decoration: none; border: 0; font-size: 16px;
}
.btn:hover { background: var(--rust); color: var(--on-accent); }

/* tire tread divider */
.tread {
  height: 34px; background-color: var(--band);
  background-image:
    linear-gradient(60deg, transparent 42%, var(--dust-2) 42% 50%, transparent 50%),
    linear-gradient(-60deg, transparent 42%, var(--dust-2) 42% 50%, transparent 50%);
  background-size: 40px 34px; background-position: 0 0, 20px 0;
}

section { padding: 64px 0; }
h2 { font-family: Anton, sans-serif; font-size: clamp(36px, 6vw, 52px); text-transform: uppercase; line-height: 1; transform: skewX(-8deg); transform-origin: left; }
.sub { color: var(--muted); margin-top: 10px; }

/* ---------- product cards ---------- */
.grid { display: grid; gap: 24px; margin-top: 36px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card { background: var(--card); border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.preview {
  aspect-ratio: 4 / 3; padding: 28px; position: relative; transition: background 0.25s;
  /* tinted back glass with a sun glare */
  background:
    linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.08) 38%, transparent 46%),
    linear-gradient(180deg, #2a2d31, var(--glass));
}
.preview.paint {
  /* light truck paint, so dark vinyl shows */
  background:
    linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.5) 38%, transparent 46%),
    linear-gradient(180deg, #e9ebee, #c9cdd3);
}
.preview .where {
  position: absolute; left: 10px; bottom: 8px; font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: rgba(255,255,255,0.45);
}
.preview.paint .where { color: rgba(0,0,0,0.4); }
.decal {
  width: 100%; height: 100%;
  --img: linear-gradient(transparent, transparent);   /* hidden until the real sticker image is set */
  -webkit-mask: var(--img) center / contain no-repeat;
  mask: var(--img) center / contain no-repeat;
}
.info { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.info h3 { font-family: Anton, sans-serif; text-transform: uppercase; font-size: 24px; letter-spacing: 0.5px; line-height: 1.1; }
.info .blurb { color: var(--muted); font-size: 14px; margin-top: 2px; }
.label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.label b { color: var(--ink); }
.swatches { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 6px; }
.swatch {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--swatch-edge, rgba(0,0,0,0.25)); padding: 0;
  box-shadow: inset 0 0 0 2px var(--card);
}
.swatch[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--card), 0 0 0 2px var(--rust); }
.sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.opts { display: grid; gap: 6px; }
.pick-state, .pick-code {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--card);
  border: 2px solid var(--line); border-radius: 6px; padding: 8px 10px; width: 100%;
}
.pick-code { font-size: 20px; letter-spacing: 4px; max-width: 8ch; font-variant-numeric: tabular-nums; }
.pick-state:focus, .pick-code:focus { outline: none; border-color: var(--ink); }
.arts { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 6px; }
.opt { border: 2px solid var(--line); background: transparent; border-radius: 6px; padding: 6px 4px; font-weight: 600; font-size: 14px; color: var(--ink); }
.opt[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--dust); }
.hint { color: var(--rust-dark); font-size: 13px; min-height: 1em; }
.size { border: 2px solid var(--line); background: transparent; border-radius: 6px; padding: 6px 4px; line-height: 1.2; color: var(--ink); }
.size b { display: block; font-size: 15px; }
.size span { font-size: 12px; color: var(--muted); }
.size[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--dust); }
.size[aria-pressed="true"] span { color: var(--dust-2); }
.buy { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 4px; }
.price { font-family: Anton, sans-serif; font-size: 30px; }
.add { background: var(--rust); color: var(--on-accent); border: 0; border-radius: 6px; padding: 11px 18px; font-weight: 700; }
.add:hover { background: var(--rust-dark); }
.add.request { background: transparent; color: var(--rust); border: 2px solid var(--rust); }
.add.request:hover { background: var(--rust); color: var(--on-accent); }
.tag {
  display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px;
}

/* ---------- how it works ---------- */
.dark { background: var(--band); color: var(--band-text); }
.steps { display: grid; gap: 22px; margin-top: 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { border-left: 4px solid var(--rust); padding: 2px 0 2px 16px; }
.step b { display: block; font-family: Anton, sans-serif; text-transform: uppercase; font-size: 22px; letter-spacing: 0.5px; }
.step span { color: var(--band-muted); font-size: 15px; }

/* ---------- custom form ---------- */
form { margin-top: 28px; max-width: 580px; display: grid; gap: 14px; }
label.f { font-size: 14px; font-weight: 700; display: grid; gap: 6px; }
input, textarea {
  font: inherit; color: var(--ink); background: var(--card);
  border: 2px solid var(--line); border-radius: 6px; padding: 11px; width: 100%;
}
input:focus, textarea:focus { outline: none; border-color: var(--ink); }
.row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.hidden { display: none; }
.why {
  margin-top: 22px; max-width: 580px; padding: 14px 16px; border-radius: 8px;
  background: var(--card); border: 2px solid var(--rust); font-size: 15px; color: var(--ink);
}
.why b { display: block; margin-bottom: 4px; }

footer { background: var(--band); color: var(--band-muted); padding: 28px 0; font-size: 14px; }
footer b { font-family: Rye, serif; color: var(--band-text); font-weight: 400; }

/* ---------- cart drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 30; display: none; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); z-index: 31;
  background: var(--card); border-left: 2px solid var(--ink);
  transform: translateX(100%); transition: transform 0.25s; display: flex; flex-direction: column;
}
body.cart-open .scrim { display: block; }
body.cart-open .drawer { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 2px solid var(--ink); }
.drawer-head h2 { font-size: 30px; }
.x { background: none; border: 0; font-size: 28px; line-height: 1; color: var(--ink); }
.lines { flex: 1; overflow-y: auto; padding: 8px 18px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.thumb { width: 64px; height: 64px; border-radius: 6px; padding: 8px; background: linear-gradient(180deg, #2a2d31, var(--glass)); }
.thumb.paint { background: linear-gradient(180deg, #e9ebee, #c9cdd3); }
.line h4 { font-size: 15px; }
.line small { color: var(--muted); display: block; }
.qty { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.qty button { width: 26px; height: 26px; border: 2px solid var(--line); background: transparent; border-radius: 4px; line-height: 1; color: var(--ink); }
.line .amt { font-weight: 700; text-align: right; }
.empty { color: var(--muted); padding: 32px 0; text-align: center; }
.totals { border-top: 2px solid var(--ink); padding: 16px 18px 20px; display: grid; gap: 6px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-family: Anton, sans-serif; font-size: 24px; }
.checkout { margin-top: 8px; background: var(--rust); color: var(--on-accent); border: 0; border-radius: 6px; padding: 14px; font-weight: 700; font-size: 16px; }
.checkout:disabled { opacity: 0.5; cursor: default; }
.err { color: var(--rust-dark); font-size: 14px; }

.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 120px); transition: transform 0.25s;
  background: var(--band); color: var(--band-text); padding: 12px 18px; border-radius: 8px; font-weight: 600; z-index: 40;
}
.toast.show { transform: translate(-50%, 0); }

@media (max-width: 600px) {
  nav a { display: none; }
  .row { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; padding-bottom: 40px; }
  .grid { grid-template-columns: 1fr; }
}

/* ---------- on the rigs (photo page + homepage strip) ---------- */
@media (max-width: 600px) { nav a.keep { display: inline; } nav .long { display: none; } }
select.f-select { font: inherit; color: var(--ink); background: var(--card); border: 2px solid var(--line); border-radius: 6px; padding: 11px; width: 100%; }
select.f-select:focus { outline: none; border-color: var(--ink); }
input[type="file"] { padding: 9px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: auto; margin-top: 3px; }
.rigs { columns: 3 300px; column-gap: 16px; margin-top: 28px; }
.rig { break-inside: avoid; margin: 0 0 16px; background: var(--card); border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; }
.rig img { display: block; width: 100%; height: auto; background: var(--dust-2); }
.rig figcaption { padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.rig .who { color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.shopit { font-weight: 700; color: var(--rust); text-decoration: none; white-space: nowrap; }
.shopit:hover { text-decoration: underline; }
.empty-rigs { border: 2px dashed var(--line); border-radius: 10px; padding: 28px 16px; text-align: center; color: var(--muted); margin-top: 28px; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 12px; overflow-x: auto; margin-top: 24px; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.strip a { scroll-snap-align: start; position: relative; display: block; aspect-ratio: 4 / 5; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; }
.strip img { display: block; width: 100%; height: 100%; object-fit: cover; }
.strip span { position: absolute; left: 8px; bottom: 8px; background: var(--band); color: var(--band-text); font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.see-all { display: inline-block; margin-top: 16px; font-weight: 700; color: var(--rust); text-decoration: none; }
.card.flash { outline: 4px solid var(--rust); outline-offset: 3px; }
.card { scroll-margin-top: 76px; }   /* clears the sticky header when a rigs photo links to a card */
.ship-note { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- free sticker for a TikTok post ---------- */
.free-link { display: inline-block; margin: 28px 0 0 18px; font-weight: 700; color: var(--rust); text-decoration: none; }
.free-link:hover { text-decoration: underline; }
.free { background: var(--dust-2); }
.free .step span { color: var(--muted); }
.free .step a { color: var(--rust); font-weight: 700; }
.fine { font-size: 13px; color: var(--muted); }
@media (max-width: 600px) { .free-link { display: block; margin-left: 0; margin-top: 16px; } }

/* ---------- sticker group tabs ---------- */
.tabs {
  display: flex; gap: 8px; margin-top: 24px; padding: 8px 0; overflow-x: auto; scrollbar-width: thin;
  position: sticky; top: 60px; z-index: 10; background: var(--dust);
}
.tab {
  flex: none; border: 2px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 14px; white-space: nowrap;
}
.tab span { font-weight: 600; color: var(--muted); margin-left: 2px; }
.tab:hover { border-color: var(--ink); }
.tab[aria-selected="true"] { background: var(--rust); border-color: var(--rust); color: var(--on-accent); }
.tab[aria-selected="true"] span { color: var(--on-accent); opacity: 0.8; }
.grid { margin-top: 20px; }
.card[hidden] { display: none; }
