/* Freedom Warehouse Direct — site styles */

:root {
  --ink: #363B36;
  --steel: #2A2F2A;
  --line: #4B524B;
  --paper: #F8F5ED;
  --white: #FFFFFF;
  --brass: #C9A46B;
  --brass-dark: #8B6437;
  --red: #C8372D;
  --muted: #6F6F66;
  --muted-dark: #BDB8AA;
  --text: #2B2F2B;
  --border: #E6E0D2;
  --radius: 12px;
  --gutter: 16px;
  --maxw: 1240px;
  --font-head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Barlow", "Segoe UI", Arial, sans-serif;
  --shadow: 0 1px 2px rgba(54, 59, 54, .08), 0 4px 14px rgba(54, 59, 54, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: .005em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--ink); text-decoration-color: var(--brass-dark); text-underline-offset: 3px; }
a:hover { color: var(--brass-dark); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; border-radius: 4px; }
.on-light :focus-visible, main :focus-visible { outline-color: var(--ink); }

.sr-only {
  position: absolute !important; 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: 16px; top: -60px; z-index: 100;
  background: var(--brass); color: var(--ink); padding: 10px 16px; border-radius: 6px;
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 28px; } }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head); font-weight: 700; font-size: .9rem;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--brass-dark); margin: 0 0 .6em;
}
.on-dark .eyebrow { color: var(--brass); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 0 22px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  text-transform: uppercase; letter-spacing: .08em; text-decoration: none;
  border: 2px solid transparent; border-radius: 8px; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-brass { background: var(--brass); color: var(--ink); }
.btn-brass:hover { background: var(--brass-dark); color: var(--ink); }
.btn-brass:disabled { background: #E8E4DA; color: var(--muted); cursor: not-allowed; }
.btn-outline-light { border-color: rgba(255,255,255,.55); color: var(--white); background: transparent; }
.btn-outline-light:hover { border-color: var(--brass); color: var(--brass); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-block { width: 100%; }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 1.15rem; }

/* ---------- Header ---------- */
.site-header { background: var(--ink); color: var(--white); position: relative; z-index: 20; }
.header-inner {
  display: flex; align-items: center; gap: 24px;
  min-height: 76px; padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); flex-shrink: 0; }
.brand:hover { color: var(--white); }
.brand-mark { width: auto; height: 44px; flex-shrink: 0; }
.brand-lockup { display: block; width: 220px; max-width: 100%; height: auto; margin: 0 0 14px; }
.brand-word { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-head); text-transform: uppercase; }
.brand-word .w1 { font-weight: 700; font-size: 1.45rem; letter-spacing: .04em; }
.brand-word .w2 { font-weight: 600; font-size: .9rem; letter-spacing: .42em; color: var(--brass); margin-top: 3px; }

.header-search { flex: 1; max-width: 520px; margin-left: auto; position: relative; }
.header-search input {
  width: 100%; height: 44px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--steel); color: var(--white); padding: 0 48px 0 14px;
  font: inherit; font-size: .98rem;
}
.header-search input::placeholder { color: var(--muted-dark); }
.header-search input:focus { outline: 2px solid var(--brass); outline-offset: 0; border-color: var(--brass); }
.header-search button {
  position: absolute; right: 4px; top: 4px; width: 36px; height: 36px;
  display: grid; place-items: center; border: 0; border-radius: 6px;
  background: transparent; color: var(--muted-dark); cursor: pointer;
}
.header-search button:hover { color: var(--brass); }

.cart-link {
  position: relative; display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 8px; color: var(--white); border: 1px solid var(--line); flex-shrink: 0;
}
.cart-link:hover { color: var(--brass); border-color: var(--brass); }
.cart-count {
  position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 11px; background: var(--brass); color: var(--ink);
  font: 700 .8rem/22px var(--font-body); text-align: center;
}
.cart-count[hidden] { display: none; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 8px; border: 1px solid var(--line);
  background: transparent; color: var(--white); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; flex-shrink: 0;
}
.nav-toggle .bar { display: block; width: 20px; height: 2px; background: currentColor; margin: 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-6px) rotate(-45deg); }

.site-nav { background: var(--steel); border-top: 1px solid var(--line); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a {
  display: block; padding: 13px 14px 11px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem;
  text-transform: uppercase; letter-spacing: .1em; text-decoration: none;
  color: var(--muted-dark); border-bottom: 3px solid transparent;
}
.site-nav a:hover { color: var(--white); }
.site-nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--brass); }
.site-nav li.nav-right { margin-left: auto; }

@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; gap: 12px; min-height: 0; }
  .brand { margin-right: auto; }
  .brand-mark { height: 38px; }
  .brand-word .w1 { font-size: 1.2rem; }
  .brand-word .w2 { font-size: .78rem; letter-spacing: .36em; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; margin: 0; }
  .nav-toggle { display: flex; }
  .site-nav { display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 6px 0 10px; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); border-left: 0; }
  .site-nav a[aria-current="page"] { color: var(--brass); border-bottom-color: var(--line); }
  .site-nav li.nav-right { margin-left: 0; }
}

/* ---------- Sample banner ---------- */
.sample-banner { background: #FBF3E2; border-bottom: 1px solid #EBD6A6; color: var(--text); }
.sample-banner-inner { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.sample-banner p { margin: 0; font-size: .94rem; font-weight: 500; flex: 1; }
.sample-banner p::before {
  content: "PREVIEW"; display: inline-block; margin-right: 10px; padding: 1px 8px; border-radius: 4px;
  background: var(--ink); color: var(--brass); font: 700 .75rem/1.6 var(--font-head); letter-spacing: .12em;
}
.banner-close { border: 0; background: transparent; color: var(--text); width: 36px; height: 36px; border-radius: 6px; cursor: pointer; display: grid; place-items: center; flex-shrink: 0; }
.banner-close:hover { background: #F2E3C1; }

/* ---------- Sections ---------- */
.section { padding-top: 64px; padding-bottom: 64px; }
.section-tight { padding-top: 40px; padding-bottom: 40px; }
.section-white { background: var(--white); }
.section-dark { background: var(--ink); color: #E6E2D8; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head .link-arrow { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--brass); padding-bottom: 2px; }
.section-head .link-arrow:hover { color: var(--brass-dark); }
.section-dark .link-arrow { color: var(--white); }
.section-dark .link-arrow:hover { color: var(--brass); }
.lead { font-size: 1.15rem; color: #4A4F49; max-width: 46em; }
.muted { color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  background-color: var(--ink);
  background-image:
    linear-gradient(var(--steel) 1px, transparent 1px),
    linear-gradient(90deg, var(--steel) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
  color: #E6E2D8; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--ink) 30%, rgba(54,59,54,.55) 100%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; padding-top: 80px; padding-bottom: 88px; }
.hero h1 { color: var(--white); text-transform: uppercase; letter-spacing: .01em; max-width: 13em; }
.hero h1 em { font-style: normal; color: var(--brass); }
.hero .lead { color: var(--muted-dark); font-size: 1.2rem; max-width: 34em; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-panel {
  border: 1px solid var(--line); border-radius: var(--radius); background: rgba(42,47,42,.88);
  padding: 24px; display: grid; gap: 0;
}
.hero-panel .row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.hero-panel .row:last-child { border-bottom: 0; }
.hero-panel .ico { width: 40px; height: 40px; border-radius: 8px; background: var(--ink); border: 1px solid var(--line); display: grid; place-items: center; color: var(--brass); flex-shrink: 0; }
.hero-panel h3 { color: var(--white); font-size: 1.15rem; margin: 2px 0 2px; text-transform: uppercase; letter-spacing: .05em; }
.hero-panel p { margin: 0; color: var(--muted-dark); font-size: .95rem; line-height: 1.45; }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 56px; gap: 32px; }
}

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cat-tile {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.cat-tile:hover { border-color: var(--brass); color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-tile .cat-media { aspect-ratio: 3 / 2; display: grid; place-items: center; padding: 10px 14px; background: var(--white); }
.cat-tile .cat-media svg { width: 100%; height: 100%; }
.cat-tile .cat-label {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 12px 14px; border-top: 1px solid var(--border); background: var(--paper);
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 1.02rem; line-height: 1.15;
}
.cat-tile .cat-label svg { color: var(--brass-dark); flex-shrink: 0; }
@media (max-width: 1100px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .cat-tile .cat-label { font-size: .95rem; } }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 380px) { .product-grid { grid-template-columns: minmax(0, 1fr); } }

.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.product-card { display: flex; flex-direction: column; transition: box-shadow .15s, border-color .15s; }
.product-card:hover { box-shadow: var(--shadow); border-color: #D1CCBF; }
.card-media { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--white); padding: 18px; border-bottom: 1px solid #EFEBE2; }
.card-media img, .card-media .sil { width: 100%; height: 100%; object-fit: contain; }
.tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  display: inline-block; padding: 3px 8px; border-radius: 4px;
  font: 700 .74rem/1.3 var(--font-head); letter-spacing: .1em; text-transform: uppercase;
}
.tag-sale { background: var(--red); color: var(--white); }
.tag-ffl { background: var(--ink); color: var(--white); }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; flex: 1; }
.card-brand { margin: 0; font: 600 .78rem/1.3 var(--font-body); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.card-title { margin: 0; font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.35; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--brass-dark); text-decoration: underline; }
.card-price { margin: 6px 0 0; }
.price { font: 700 1.35rem/1 var(--font-head); color: var(--ink); letter-spacing: .01em; }
.compare { color: var(--muted); font-size: .92rem; margin-left: 4px; }
.stock { display: flex; align-items: center; gap: 7px; margin: 2px 0 12px; font-size: .88rem; font-weight: 500; }
.stock .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.stock-in { color: #1E6B3A; } .stock-in .dot { background: #2E8B57; }
.stock-dist { color: #5A4614; } .stock-dist .dot { background: var(--brass-dark); }
.stock-out { color: var(--muted); } .stock-out .dot { background: #A9A79C; }
.card-body .btn { margin-top: auto; min-height: 42px; font-size: .98rem; }
@media (max-width: 480px) {
  .card-body { padding: 12px; }
  .price { font-size: 1.2rem; }
  .card-body .btn { padding: 0 10px; font-size: .9rem; letter-spacing: .05em; }
}

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; background: var(--steel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 24px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font: 700 2.6rem/1 var(--font-head); color: var(--brass); margin-bottom: 14px;
}
.step h3 { color: var(--white); text-transform: uppercase; letter-spacing: .04em; font-size: 1.35rem; }
.step p { margin: 0; color: var(--muted-dark); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Feature grid (why direct) ---------- */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.feature-list { display: grid; gap: 16px; }
.feature { display: flex; gap: 16px; padding: 20px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); }
.feature .ico { width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px; background: var(--ink); color: var(--brass); display: grid; place-items: center; }
.feature h3 { margin: 2px 0 4px; font-size: 1.25rem; }
.feature p { margin: 0; color: #4A4F49; }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Guide cards ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.guide-card { display: flex; flex-direction: column; padding: 24px; text-decoration: none; color: var(--text); position: relative; }
.guide-card:hover { border-color: var(--brass); color: var(--text); }
.guide-card .kicker { font: 700 .8rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--brass-dark); margin-bottom: 14px; }
.guide-card h3 { font-size: 1.45rem; margin-bottom: .4em; }
.guide-card p { color: #4A4F49; flex: 1; }
.guide-card .more { font: 700 .95rem/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.guide-card .soon { font-size: .85rem; color: var(--muted); }
@media (max-width: 860px) { .guide-grid { grid-template-columns: 1fr; } }

/* ---------- Newsletter ---------- */
.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.newsletter h2 { margin-bottom: .3em; }
.newsletter p { color: var(--muted-dark); margin: 0; }
.nl-form { display: flex; gap: 10px; flex-wrap: wrap; }
.nl-form .field { flex: 1 1 240px; }
.nl-form label { display: block; font-size: .85rem; color: var(--muted-dark); margin-bottom: 6px; font-weight: 500; }
.nl-form input {
  width: 100%; height: 48px; border-radius: 8px; border: 1px solid var(--line); background: var(--steel);
  color: var(--white); padding: 0 14px; font: inherit;
}
.nl-form input:focus { outline: 2px solid var(--brass); border-color: var(--brass); }
.nl-form .btn { align-self: flex-end; height: 48px; }
.nl-msg { flex-basis: 100%; margin: 4px 0 0; color: var(--brass); font-weight: 500; min-height: 1.5em; }
@media (max-width: 860px) { .newsletter { grid-template-columns: 1fr; } }

/* ---------- Page header (inner pages) ---------- */
.page-head { background: var(--white); border-bottom: 1px solid var(--border); padding: 36px 0 28px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.9rem); text-transform: uppercase; margin-bottom: .2em; }
.page-head p { margin: 0; color: #4A4F49; }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #B5B2A6; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }

/* ---------- Shop ---------- */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
.filters { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; position: sticky; top: 16px; }
.filters h2 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.filters fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.filters legend { font: 700 .85rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 10px; padding: 0; }
.cat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cat-list a { display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 6px; text-decoration: none; color: var(--text); font-weight: 500; }
.cat-list a:hover { background: var(--paper); color: var(--ink); }
.cat-list a[aria-current="true"] { background: var(--ink); color: var(--white); }
.check { display: flex; gap: 10px; align-items: center; cursor: pointer; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; justify-content: space-between; margin-bottom: 20px; }
.toolbar .count { margin: 0; color: #4A4F49; font-weight: 500; }
.toolbar-controls { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.field-inline label { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.input, .select {
  height: 42px; border: 1px solid #D6D1C4; border-radius: 8px; background: var(--white);
  padding: 0 12px; font: inherit; color: var(--text);
}
.input:focus, .select:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.search-inline .input { width: 240px; }
.filter-toggle { display: none; }
.empty { background: var(--white); border: 1px dashed #D6D1C4; border-radius: var(--radius); padding: 40px 24px; text-align: center; }
.product-grid > .empty, .product-grid > .loading, .product-grid > .muted { grid-column: 1 / -1; }
.empty h2 { font-size: 1.6rem; }
.pagination { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center; border-radius: 8px;
  border: 1px solid #D6D1C4; background: var(--white); text-decoration: none; color: var(--ink); font-weight: 600;
}
.pagination a:hover { border-color: var(--ink); }
.pagination [aria-current="page"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pagination .disabled { color: #A9A79C; }
@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; gap: 16px; }
  .filters { position: static; display: none; }
  .filters.open { display: block; }
  .filter-toggle { display: inline-flex; }
  .search-inline { flex: 1 1 100%; }
  .search-inline .input { width: 100%; }
  .toolbar-controls { width: 100%; }
  .toolbar-controls .field-inline { flex: 1; }
  .toolbar-controls .select { width: 100%; }
}

/* ---------- Product detail ---------- */
.pdp { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start; }
.pdp-gallery { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 40px; position: relative; }
.pdp-gallery img, .pdp-gallery .sil { width: 100%; height: 100%; object-fit: contain; }
.pdp-gallery .tags { top: 16px; left: 16px; }
.pdp-gallery-note { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.pdp-info .card-brand { font-size: .9rem; }
.pdp-info h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 6px 0 10px; }
.pdp-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 6px 0 6px; }
.pdp-price .price { font-size: 2.2rem; }
.pdp-price .compare { font-size: 1.05rem; }
.save { color: var(--red); font-weight: 600; font-size: .95rem; }
.meta { font-size: .9rem; color: var(--muted); margin: 0 0 16px; }
.buy-row { display: flex; gap: 12px; align-items: end; margin: 18px 0 20px; flex-wrap: wrap; }
.qty { display: inline-flex; border: 1px solid #D6D1C4; border-radius: 8px; overflow: hidden; background: var(--white); height: 50px; }
.qty button { width: 44px; border: 0; background: var(--paper); font-size: 1.3rem; cursor: pointer; color: var(--ink); }
.qty button:hover { background: #E8E4DA; }
.qty input { width: 54px; border: 0; text-align: center; font: 600 1.05rem var(--font-body); color: var(--ink); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-row .btn { flex: 1; min-width: 200px; height: 50px; }
.notice-box { border-radius: var(--radius); padding: 18px 20px; margin: 0 0 16px; border: 1px solid var(--border); background: var(--white); }
.notice-box h2 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; display: flex; gap: 10px; align-items: center; }
.notice-box p { margin: 0; color: #4A4F49; font-size: .96rem; }
.notice-box.compliance { border-left: 4px solid var(--brass-dark); }
.specs { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.specs th, .specs td { text-align: left; padding: 11px 16px; border-bottom: 1px solid #EFEBE2; vertical-align: top; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.specs th { width: 40%; font-weight: 600; color: var(--muted); background: #FAF8F3; }
.pdp-details { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 56px; }
.pdp-details h2 { font-size: 1.6rem; text-transform: uppercase; }
@media (max-width: 900px) {
  .pdp, .pdp-details { grid-template-columns: 1fr; gap: 28px; }
  .pdp-gallery { padding: 24px; }
  .pdp-details { margin-top: 36px; }
}

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.cart-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 120px 1fr auto; gap: 18px; align-items: center; padding: 16px; }
.cart-item .thumb { aspect-ratio: 4 / 3; display: grid; place-items: center; border: 1px solid #EFEBE2; border-radius: 8px; padding: 8px; background: var(--white); }
.cart-item .thumb img, .cart-item .thumb .sil { width: 100%; height: 100%; object-fit: contain; }
.cart-item h2 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 600; margin: 2px 0 4px; line-height: 1.35; }
.cart-item h2 a { text-decoration: none; }
.cart-item .line-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: .9rem; color: var(--muted); }
.cart-item .controls { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cart-item .qty { height: 40px; }
.cart-item .qty button { width: 36px; }
.cart-item .qty input { width: 44px; }
.cart-item .line-total { font: 700 1.3rem/1 var(--font-head); color: var(--ink); }
.link-btn { border: 0; background: none; padding: 4px 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .9rem; }
.link-btn:hover { color: var(--red); }
.summary { padding: 22px; position: sticky; top: 16px; }
.summary h2 { font-size: 1.4rem; text-transform: uppercase; letter-spacing: .05em; }
.summary dl { margin: 0 0 14px; display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; }
.summary dt { color: #4A4F49; } .summary dd { margin: 0; text-align: right; font-weight: 600; }
.summary .total { border-top: 1px solid var(--border); padding-top: 12px; font-size: 1.1rem; }
.summary .small { font-size: .88rem; color: var(--muted); }
.inline-notice { margin: 14px 0 0; padding: 12px 14px; border-radius: 8px; background: #FBF3E2; border: 1px solid #EBD6A6; color: #4A3A12; font-weight: 500; font-size: .95rem; }
.inline-notice.error { background: #FBEAE8; border-color: #EBB8B3; color: #7A1F18; }
.ffl-note { display: flex; gap: 12px; padding: 14px 16px; margin-top: 16px; border-left: 4px solid var(--brass-dark); }
.ffl-note p { margin: 0; font-size: .95rem; }
@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 560px) {
  .cart-item { grid-template-columns: 84px 1fr; gap: 12px; }
  .cart-item .controls { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ---------- Content pages ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; text-transform: uppercase; font-size: clamp(1.5rem, 3vw, 2rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.content-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
.toc { position: sticky; top: 16px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.toc h2 { font-size: .95rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 8px; border-radius: 6px; text-decoration: none; color: var(--text); font-weight: 500; }
.toc a:hover { background: var(--paper); }
.table-wrap { overflow-x: auto; margin: 0 0 1em; }
.plain-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--border); font-size: .96rem; }
.plain-table th, .plain-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid #EFEBE2; vertical-align: top; }
.plain-table thead th { background: var(--ink); color: var(--white); font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; }
.placeholder { background: #FBF3E2; border: 1px dashed var(--brass-dark); padding: 2px 6px; border-radius: 4px; font-weight: 600; color: #4A3A12; }
.callout { background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--brass-dark); border-radius: 8px; padding: 16px 18px; margin: 1.2em 0; }
.callout p:last-child { margin-bottom: 0; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 1.5em 0; }
.facts .card { padding: 20px; }
.facts h3 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .05em; }
.facts p { margin: 0; color: #4A4F49; font-size: .96rem; }
@media (max-width: 900px) {
  .content-layout { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; }
  .facts { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-dark); padding: 56px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer .brand { margin-bottom: 14px; }
.site-footer p { font-size: .95rem; }
.site-footer h2 { color: var(--white); font-size: 1rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--muted-dark); text-decoration: none; }
.site-footer a:hover { color: var(--brass); text-decoration: underline; }
.footer-legal { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .9rem; }
.footer-legal p { margin: 0; }
.footer-legal strong { color: #E6E2D8; font-weight: 600; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 50;
  background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: 8px;
  border-left: 4px solid var(--brass); box-shadow: 0 8px 24px rgba(0,0,0,.25);
  font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.loading { color: var(--muted); padding: 24px 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
