/* Drilling Systems, LLC — storefront styles */
:root {
  --ink: #0b0d0c;
  --ink-2: #161a18;
  --ink-3: #232825;
  --bg: #f4f5f2;
  --surface: #ffffff;
  --surface-2: #f8f9f7;
  --line: #e2e5df;
  --line-2: #cfd4cc;
  --text: #171a18;
  --muted: #5b625d;
  --muted-2: #7c847e;
  --brand: #006600;          /* logo green */
  --brand-600: #0a7d14;
  --brand-700: #005200;
  --brand-50: #ebf5eb;
  --brand-100: #d5ebd5;
  --on-dark: #e9ece8;
  --on-dark-muted: #a3aaa5;
  --warn-bg: #fff7e0;
  --warn-line: #f0d99a;
  --danger: #b42318;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 20, .06);
  --shadow: 0 1px 2px rgba(16, 24, 20, .05), 0 6px 20px -6px rgba(16, 24, 20, .12);
  --shadow-lg: 0 24px 60px -20px rgba(16, 24, 20, .35);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Barlow Semi Condensed", "Inter", system-ui, sans-serif;
  --container: 1280px;
  --gutter: clamp(16px, 3vw, 32px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand-600); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: var(--radius-sm); }
.skip-link:focus { left: 8px; }
.icon { width: 20px; height: 20px; flex: none; }
.muted { color: var(--muted); }
.eyebrow { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; font-weight: 600; color: var(--brand-600); margin-bottom: .6rem; display: inline-flex; align-items: center; gap: .5rem; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: 0 1.15rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; font-weight: 600; font-size: .95rem; cursor: pointer;
  text-decoration: none !important; transition: background .15s, border-color .15s, color .15s, transform .05s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-700); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-3); }
.btn--ghost { background: var(--surface); border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }
.btn--ghost-dark { background: transparent; border-color: rgba(255,255,255,.28); color: #fff; }
.btn--ghost-dark:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn--lg { min-height: 52px; padding: 0 1.5rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-sm); border: 0; background: transparent; cursor: pointer; color: inherit; }
.icon-btn:hover { background: rgba(127,127,127,.12); }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand-600); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; }
.link-btn:hover { text-decoration: underline; }

/* ---------- Topbar & header ---------- */
.topbar { background: #000; color: var(--on-dark-muted); font-size: .82rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 36px; }
.topbar__links { display: flex; gap: 1.25rem; }
.topbar a { color: var(--on-dark); display: inline-flex; align-items: center; gap: .4rem; }
.topbar .icon { width: 15px; height: 15px; color: var(--brand-100); }

.header { position: sticky; top: 0; z-index: 40; background: var(--ink); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.header__inner { display: flex; align-items: center; gap: 1.25rem; min-height: var(--header-h); }
.header__menu { display: none; color: #fff; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none !important; flex: none; }
.brand__mark { width: 46px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; letter-spacing: .01em; }
.brand__text small { color: var(--on-dark-muted); font-size: .74rem; letter-spacing: .04em; margin-top: 3px; }

.search { flex: 1; display: flex; align-items: center; position: relative; max-width: 640px; margin-left: auto; }
.search__icon { position: absolute; left: 14px; color: var(--muted-2); pointer-events: none; }
.search input {
  width: 100%; height: 46px; border-radius: var(--radius-sm) 0 0 var(--radius-sm); border: 1px solid transparent;
  background: #fff; color: var(--text); padding: 0 14px 0 44px; font-size: .95rem;
}
.search input:focus { outline: none; box-shadow: 0 0 0 3px rgba(10,125,20,.45); }
.search__btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; min-height: 46px; }

.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: .5rem; height: 46px; padding: 0 .9rem 0 .8rem;
  background: var(--ink-3); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-sm); color: #fff; cursor: pointer; font-weight: 600;
}
.cart-btn:hover { background: #2d332f; }
.cart-btn__count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--brand-600); color: #fff;
  font-size: .78rem; display: inline-grid; place-items: center; font-weight: 700;
}
.cart-btn.bump .cart-btn__count { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }

.nav { background: var(--ink-2); border-top: 1px solid rgba(255,255,255,.06); }
.nav__inner { display: flex; gap: .25rem; min-height: 46px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.nav__inner::-webkit-scrollbar { display: none; }
.nav a { color: var(--on-dark); font-size: .92rem; font-weight: 500; padding: .55rem .8rem; border-radius: var(--radius-sm); white-space: nowrap; text-decoration: none; }
.nav a:hover { background: rgba(255,255,255,.07); }
.nav a.is-active { color: #fff; box-shadow: inset 0 -2px 0 var(--brand-600); border-radius: 0; }
.nav__close { display: none; }

.scrim { position: fixed; inset: 0; background: rgba(8,10,9,.55); z-index: 60; opacity: 0; transition: opacity .2s; }
body.nav-open .header { z-index: 80; }
.scrim.is-open { opacity: 1; }

/* ---------- Home ---------- */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #1e3a22 0%, transparent 60%), linear-gradient(180deg, var(--ink) 0%, #111512 100%); color: #fff; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; padding-block: clamp(40px, 6vw, 88px); }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: #7fd47f; }
.hero__lead { color: var(--on-dark-muted); font-size: 1.1rem; max-width: 36rem; margin-bottom: 1.75rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.hero__sku { display: flex; max-width: 30rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 6px; gap: 6px; }
.hero__sku input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; padding: 0 .75rem; font-size: .95rem; }
.hero__sku input::placeholder { color: var(--on-dark-muted); }
.hero__sku input:focus { outline: none; }
.hero__sku:focus-within { border-color: var(--brand-600); }
.hero__art { position: relative; aspect-ratio: 1 / .86; }
.hero__tile { position: absolute; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: grid; place-items: center; padding: 6%; overflow: hidden; }
.hero__tile img { width: 100%; height: 100%; object-fit: contain; }
.hero__tile--a { left: 0; top: 4%; width: 58%; height: 62%; }
.hero__tile--b { right: 0; top: 0; width: 40%; height: 44%; background: #eef1ec; }
.hero__tile--c { right: 4%; bottom: 0; width: 52%; height: 50%; background: #e9eee8; }
.hero__tile--d { left: 8%; bottom: 2%; width: 34%; height: 30%; background: #f2f4f0; }
.hero__badge { position: absolute; left: 12px; top: 12px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: rgba(255,255,255,.9); padding: 3px 8px; border-radius: 99px; }

.stats { background: var(--ink-2); color: var(--on-dark); border-top: 1px solid rgba(255,255,255,.06); }
.stats__inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 1.25rem 1rem; display: flex; gap: .8rem; align-items: center; border-left: 1px solid rgba(255,255,255,.07); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .icon { width: 28px; height: 28px; color: #7fd47f; }
.stat strong { display: block; font-family: var(--font-display); font-size: 1.15rem; color: #fff; font-weight: 600; }
.stat span { font-size: .85rem; color: var(--on-dark-muted); }

.section { padding-block: clamp(40px, 6vw, 80px); }
.section--tight { padding-block: clamp(28px, 4vw, 48px); }
.section--white { background: var(--surface); border-block: 1px solid var(--line); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.section__head h2 { margin: 0; }
.section__head p { margin: .4rem 0 0; color: var(--muted); max-width: 42rem; }

.brands { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.brand-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 340px; display: flex; color: #fff; text-decoration: none !important; isolation: isolate; box-shadow: var(--shadow); }
.brand-card__bg { position: absolute; inset: 0; z-index: -2; object-fit: cover; width: 100%; height: 100%; transition: transform .5s ease; }
.brand-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,10,9,.92) 0%, rgba(8,10,9,.7) 55%, rgba(8,10,9,.25) 100%); }
.brand-card:hover .brand-card__bg { transform: scale(1.04); }
.brand-card__body { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; justify-content: flex-end; max-width: 30rem; }
.brand-card__kicker { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: #a7e0a7; font-weight: 700; margin-bottom: .5rem; }
.brand-card h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); color: #fff; font-weight: 700; margin-bottom: .35rem; }
.brand-card p { color: #c9cfca; margin-bottom: 1.25rem; }
.brand-card__cta { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: #fff; }
.brand-card--ross { background: radial-gradient(420px 300px at 80% 40%, #2a322d, transparent 70%), linear-gradient(135deg, #1b201d, #0b0d0c); }
.brand-card--ross .brand-card__bg { left: auto; right: 0; width: 46%; object-fit: contain; padding: 28px 24px 28px 0; }
.brand-card--ross::after { display: none; }
.brand-card--ross .brand-card__body { max-width: 56%; }

.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.cat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; display: flex; gap: .9rem; align-items: center; color: var(--text); text-decoration: none !important; transition: border-color .15s, box-shadow .15s, transform .15s; }
.cat-card:hover { border-color: var(--brand-600); box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-card__img { width: 64px; height: 64px; flex: none; border-radius: var(--radius-sm); background: var(--surface-2); display: grid; place-items: center; padding: 6px; }
.cat-card__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cat-card strong { display: block; font-weight: 600; line-height: 1.25; }
.cat-card span { font-size: .82rem; color: var(--muted); }

.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.value { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.value__icon { width: 44px; height: 44px; border-radius: 10px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; margin-bottom: 1rem; }
.value__icon .icon { width: 22px; height: 22px; }
.value h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.value p { color: var(--muted); font-size: .93rem; margin: 0; }

.cta-band { background: var(--brand); color: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; background-image: radial-gradient(600px 200px at 100% 0%, rgba(255,255,255,.14), transparent 70%); }
.cta-band h2 { color: #fff; margin-bottom: .25rem; }
.cta-band p { margin: 0; color: #d7ecd7; max-width: 40rem; }
.cta-band__actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.cta-band .btn--light { background: #fff; color: var(--brand-700); }
.cta-band .btn--light:hover { background: #eef7ee; }

/* ---------- Product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s; position: relative; }
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.card__media { aspect-ratio: 4 / 3; background: var(--surface); position: relative; border-bottom: 1px solid var(--line); --pad: 1.1rem; }
.card__media img { position: absolute; inset: var(--pad); width: calc(100% - 2 * var(--pad)); height: calc(100% - 2 * var(--pad)); object-fit: contain; }
.card__body { padding: .95rem 1rem 1rem; display: flex; flex-direction: column; flex: 1; gap: .35rem; }
.card__title { font-family: var(--font); font-size: 1rem; font-weight: 600; line-height: 1.3; margin: 0; }
.card__title a { color: var(--text); }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__sub { font-size: .85rem; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { margin-top: auto; padding-top: .7rem; display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem; }
.card__price { font-weight: 700; font-size: 1.05rem; }
.card__price small { display: block; font-weight: 500; color: var(--muted); font-size: .75rem; }
.card__quote { font-weight: 600; color: var(--brand-700); font-size: .92rem; }
.card__configs { font-size: .78rem; color: var(--muted); white-space: nowrap; }

.tag { display: inline-flex; align-items: center; gap: .3rem; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; width: fit-content; }
.tag--ross { background: #fdecec; color: #9b1c1c; }
.tag--e2 { background: #e8f0fb; color: #1d4f91; }
.tag--soft { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }

/* ---------- Shop ---------- */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.page-head__inner { padding-block: 1.5rem 1.4rem; }
.page-head h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: .2rem 0 .3rem; }
.page-head p { color: var(--muted); margin: 0; max-width: 48rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; font-size: .85rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs .icon { width: 14px; height: 14px; }

.shop { display: grid; grid-template-columns: 260px 1fr; gap: 1.75rem; padding-block: 1.75rem 3rem; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 62px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; max-height: calc(100vh - var(--header-h) - 80px); overflow: auto; }
.filters__head { display: none; }
.filter-group + .filter-group { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; }
.filter-group h3 { font-family: var(--font); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: .6rem; }
.check { display: flex; align-items: center; gap: .6rem; padding: .3rem 0; cursor: pointer; font-size: .92rem; }
.check input { width: 17px; height: 17px; accent-color: var(--brand); margin: 0; }
.check span:last-child { margin-left: auto; color: var(--muted-2); font-size: .8rem; }
.subcats { margin: .1rem 0 .3rem 1.6rem; }

.toolbar { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.toolbar__count { color: var(--muted); font-size: .92rem; margin-right: auto; }
.toolbar select, .field select, .field input, .field textarea {
  height: 42px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); padding: 0 .75rem; font-size: .93rem;
}
.toolbar .filters-toggle { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100); border-radius: 99px; padding: .25rem .4rem .25rem .75rem; font-size: .85rem; font-weight: 500; cursor: pointer; }
.chip .icon { width: 14px; height: 14px; }
.empty { background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 2.5rem 1.5rem; text-align: center; color: var(--muted); }
.empty h3 { color: var(--text); }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); padding-block: 1.75rem 2.5rem; align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 62px); }
.gallery__main { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); aspect-ratio: 1 / .85; position: relative; --pad: clamp(16px, 4vw, 48px); }
.gallery__main img { position: absolute; inset: var(--pad); width: calc(100% - 2 * var(--pad)); height: calc(100% - 2 * var(--pad)); object-fit: contain; }
.gallery__thumbs { display: flex; gap: .6rem; margin-top: .75rem; flex-wrap: wrap; }
.gallery__thumbs button { width: 76px; height: 64px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px; cursor: pointer; }
.gallery__thumbs button.is-active { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.gallery__note { font-size: .78rem; color: var(--muted-2); margin-top: .6rem; }

.buybox h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: .5rem 0 .35rem; }
.buybox__sub { color: var(--muted); font-size: 1.02rem; margin-bottom: 1.25rem; }
.buybox__panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem; box-shadow: var(--shadow-sm); }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field label, .field .label { font-size: .85rem; font-weight: 600; }
.field select, .field input { width: 100%; max-width: 100%; min-width: 0; height: 46px; }
.field textarea { width: 100%; min-height: 96px; padding: .65rem .75rem; height: auto; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .toolbar select:focus { outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 3px rgba(10,125,20,.18); }
.field__hint { font-size: .8rem; color: var(--muted); }
.field--invalid input, .field--invalid select { border-color: var(--danger); }
.sku-line { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .88rem; color: var(--muted); margin-bottom: 1rem; }
.sku-line strong { color: var(--text); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-weight: 600; }
.price-row { display: flex; align-items: baseline; gap: .6rem; margin-bottom: 1rem; flex-wrap: wrap; }
.price-row__price { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; line-height: 1; }
.price-row__label { color: var(--muted); font-size: .85rem; }
.quote-note { background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--brand-700); border-radius: var(--radius-sm); padding: .7rem .85rem; font-size: .9rem; margin-bottom: 1rem; }
.buy-row { display: flex; gap: .75rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); height: 52px; }
.qty button { width: 40px; height: 100%; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--muted); }
.qty button:hover { color: var(--text); }
.qty input { width: 46px; text-align: center; border: 0; height: 100%; background: transparent; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm { height: 36px; }
.qty--sm button { width: 32px; }
.qty--sm input { width: 34px; font-size: .9rem; }
.buy-row .btn { flex: 1; }
.assist { display: flex; gap: .75rem; align-items: center; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.assist .icon { color: var(--brand); }
.assist a { font-weight: 600; }
.more-configs { font-size: .88rem; color: var(--muted); margin-top: .9rem; }

.details { padding-bottom: 3rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(18px, 2.5vw, 28px); }
.panel h2 { font-size: 1.45rem; margin-bottom: .9rem; }
.panel + .panel { margin-top: 1.5rem; }
.features { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .6rem; }
.features li { display: flex; gap: .6rem; align-items: flex-start; }
.features .icon { color: var(--brand); width: 18px; height: 18px; margin-top: 3px; }
.overview p { color: #343a36; }
.specs { width: 100%; border-collapse: collapse; font-size: .9rem; }
.specs th, .specs td { text-align: left; padding: .55rem .25rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 46%; color: var(--muted); font-weight: 500; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.specs-more { margin-top: .75rem; }
.docs { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.docs a { display: flex; gap: .6rem; align-items: center; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); font-size: .92rem; }
.docs a:hover { border-color: var(--brand-600); text-decoration: none; }
.docs .icon { color: var(--brand); }

/* ---------- Cart drawer ---------- */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--surface); z-index: 70; display: flex; flex-direction: column; transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility .25s; box-shadow: var(--shadow-lg); }
.drawer.is-open { transform: none; visibility: visible; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.4rem; margin: 0; }
.drawer__body { flex: 1; overflow: auto; padding: .5rem 1.25rem; }
.drawer__foot { border-top: 1px solid var(--line); padding: 1rem 1.25rem 1.25rem; background: var(--surface-2); }
.line { display: grid; grid-template-columns: 64px 1fr; gap: .85rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line__img { width: 64px; height: 64px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px; background: #fff; }
.line__img img { width: 100%; height: 100%; object-fit: contain; }
.line__name { font-weight: 600; font-size: .93rem; line-height: 1.3; color: var(--text); }
.line__meta { font-size: .8rem; color: var(--muted); margin: .15rem 0 .5rem; }
.line__meta code { font-size: .8rem; color: var(--text); }
.line__row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.line__price { font-weight: 700; font-size: .95rem; }
.line__remove { color: var(--muted-2); }
.totals { display: grid; gap: .35rem; margin-bottom: 1rem; font-size: .93rem; }
.totals div { display: flex; justify-content: space-between; }
.totals .total { font-weight: 700; font-size: 1.1rem; color: var(--text); }
.drawer__fine { font-size: .78rem; color: var(--muted); margin: .75rem 0 0; }
.cart-empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.cart-empty .icon { width: 44px; height: 44px; color: var(--line-2); margin: 0 auto 1rem; }

/* ---------- Checkout ---------- */
.checkout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); padding-block: 1.75rem 3rem; align-items: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.form-grid .span-2 { grid-column: span 2; }
.summary { position: sticky; top: calc(var(--header-h) + 62px); }
.summary .line { grid-template-columns: 52px 1fr; }
.summary .line__img { width: 52px; height: 52px; }
.notice { display: flex; gap: .7rem; background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--radius-sm); padding: .8rem .9rem; font-size: .88rem; color: #5c4a12; margin-bottom: 1rem; }
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.radio-card { border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: .7rem .8rem; display: flex; gap: .6rem; align-items: center; cursor: pointer; font-size: .9rem; }
.radio-card input { accent-color: var(--brand); }
.radio-card:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.success { text-align: center; max-width: 720px; margin: 0 auto; padding-block: 3rem; }
.success__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; margin: 0 auto 1rem; }
.success__icon .icon { width: 32px; height: 32px; }
.order-text { text-align: left; white-space: pre-wrap; font-family: ui-monospace, Consolas, monospace; font-size: .82rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; max-height: 360px; overflow: auto; margin: 1.5rem 0; }
.success__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(20px, 3vw, 40px); padding-block: 2rem 3rem; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .9rem; }
.contact-list li { display: flex; gap: .75rem; align-items: flex-start; }
.contact-list .icon { color: var(--brand); margin-top: 2px; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--surface-2); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--on-dark-muted); margin-top: 2rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 2rem; padding-block: 3rem 2rem; }
.footer h3 { font-family: var(--font); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: .9rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer a { color: var(--on-dark); }
.footer__blurb { max-width: 26rem; margin-top: 1rem; font-size: .92rem; }
.footer__contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer__contact .icon { width: 18px; height: 18px; color: #7fd47f; margin-top: 3px; }
.footer__legal { border-top: 1px solid rgba(255,255,255,.08); padding-block: 1.25rem 1.75rem; font-size: .78rem; color: #7d857f; }
.footer__legal p { margin: 0; max-width: 64rem; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--ink); color: #fff; padding: .8rem 1rem .8rem 1.1rem; border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 90; display: flex; gap: 1rem; align-items: center; transition: transform .25s ease; max-width: calc(100% - 32px); font-size: .93rem; }
.toast.is-open { transform: translate(-50%, 0); }
.toast .link-btn { color: #7fd47f; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .value-grid { grid-template-columns: 1fr 1fr; }
  .stats__inner { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .details { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .topbar__note { display: none; }
  .topbar__inner { justify-content: center; }
  .header__menu { display: inline-grid; margin-left: -8px; }
  .header__inner { flex-wrap: wrap; gap: .5rem .75rem; padding-block: .6rem; }
  .brand__text small { display: none; }
  .brand__text strong { font-size: 1.25rem; }
  .brand__mark { width: 38px; }
  .cart-btn { margin-left: auto; }
  .search { order: 5; flex-basis: 100%; max-width: none; margin: 0; }
  .search input { height: 42px; }
  .search__btn { min-height: 42px; }
  .nav { position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 86vw); z-index: 70; transform: translateX(-100%); visibility: hidden; transition: transform .25s ease, visibility .25s; border: 0; }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__inner { flex-direction: column; align-items: stretch; padding: 1rem; gap: .15rem; overflow: auto; height: 100%; }
  .nav__close { display: inline-grid; align-self: flex-end; color: #fff; margin-bottom: .5rem; }
  .nav a { padding: .8rem .9rem; font-size: 1rem; }
  .nav a.is-active { box-shadow: inset 3px 0 0 var(--brand-600); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { max-width: 560px; width: 100%; margin: 0 auto; }
  .brands { grid-template-columns: 1fr; }
  .shop { grid-template-columns: minmax(0, 1fr); }
  .filters { position: fixed; inset: 0 auto 0 0; width: min(340px, 90vw); max-height: none; z-index: 70; border-radius: 0; transform: translateX(-105%); visibility: hidden; transition: transform .25s ease, visibility .25s; top: 0; }
  .filters.is-open { transform: none; visibility: visible; }
  .filters__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
  .filters__head h2 { font-size: 1.3rem; margin: 0; }
  .toolbar .filters-toggle { display: inline-flex; }
  .pdp { grid-template-columns: minmax(0, 1fr); }
  .gallery { position: static; }
  .checkout { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  .about { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div:first-child { grid-column: span 2; }
}
@media (max-width: 600px) {
  .topbar__links a:last-child { display: none; }
  .cart-btn__label { display: none; }
  .search__btn { display: none; }
  .search input { border-radius: var(--radius-sm); }
  .hero__ctas .btn { flex: 1; }
  .stats__inner { grid-template-columns: 1fr; }
  .stat { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.07); }
  .stat:first-child { border-top: 0; }
  .value-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; gap: .65rem; }
  .card__media { --pad: .6rem; }
  .card__body { padding: .7rem; }
  .card__title { font-size: .92rem; }
  .card__sub { display: none; }
  .card__foot { flex-direction: column; align-items: flex-start; }
  .brand-card { min-height: 300px; }
  .brand-card--ross { flex-direction: column; }
  .brand-card--ross .brand-card__bg { position: static; width: 100%; height: 170px; padding: 20px 20px 0; }
  .brand-card--ross .brand-card__body { max-width: none; padding-top: 12px; }
  .brand-card::after { background: linear-gradient(0deg, rgba(8,10,9,.95) 0%, rgba(8,10,9,.7) 60%, rgba(8,10,9,.3) 100%); }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .radio-cards { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__grid > div:first-child { grid-column: auto; }
  .buy-row { flex-wrap: wrap; }
  .price-row__price { font-size: 1.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .header, .footer, .drawer, .toast, .success__actions { display: none !important; }
  body { background: #fff; }
  .order-text { max-height: none; border: 0; }
}
