/* Fetch & Forge — rugged, warm, outdoorsy.
   Change the colors here to restyle the whole site. */
:root {
  --bg: #f6efe3;          /* kraft-paper cream */
  --surface: #fffdf8;
  --ink: #1b1f1a;
  --muted: #6a6458;
  --line: #e4d9c6;
  --forest: #1f3a2e;      /* main dark green */
  --forest-2: #2c4f3f;
  --ember: #d9622b;       /* "forge" orange accent */
  --ember-dark: #b44d1d;
  --ember-soft: #fbe6d8;
  --ok: #2f7d4f;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(27,31,26,.06), 0 10px 30px rgba(27,31,26,.08);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: .01em; line-height: 1.1; text-transform: uppercase; }
h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0; }
h3 { font-size: 20px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #f0b48f; margin: 0 0 10px; }
.eyebrow.dark { color: var(--ember-dark); }
.link-arrow { color: var(--forest); font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow:hover { color: var(--ember-dark); }

/* Test mode bar */
.test-bar { background: #fff1b8; color: #5c4600; font-size: 13.5px; text-align: center; padding: 6px 16px; border-bottom: 1px solid #ecd77a; }

/* Header */
.site-header { background: var(--forest); color: #f6efe3; position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 0 rgba(0,0,0,.08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #f6efe3; }
.logo-mark { width: 38px; height: 38px; color: var(--ember); flex: none; }
.logo-text { font-family: var(--display); font-size: 23px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.nav { display: flex; gap: 2px; align-items: center; }
.nav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; color: rgba(246,239,227,.78); white-space: nowrap; }
.nav a:hover, .nav a.active { color: #fff; background: rgba(255,255,255,.1); }
.cart-link { position: relative; display: inline-flex !important; align-items: center; padding: 8px 12px !important; }
.cart-count { position: absolute; top: 0; right: 0; background: var(--ember); color: #fff; border-radius: 999px; font-size: 11px; min-width: 19px; height: 19px; line-height: 19px; text-align: center; padding: 0 5px; font-weight: 700; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid var(--ember); cursor: pointer; font: inherit; font-weight: 700; padding: 13px 24px; border-radius: 10px; background: var(--ember); color: #fff; text-decoration: none; transition: background .15s, border-color .15s, transform .15s; letter-spacing: .01em; }
.btn:hover { background: var(--ember-dark); border-color: var(--ember-dark); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn.ghost { background: transparent; border-color: rgba(246,239,227,.7); color: #f6efe3; }
.btn.ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.secondary:hover { border-color: var(--forest); }
.btn.block { width: 100%; }

/* Hero */
.hero { position: relative; background: var(--forest); color: #f6efe3; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; filter: saturate(.85); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,38,30,.96) 0%, rgba(20,38,30,.82) 45%, rgba(20,38,30,.35) 100%); }
.hero-inner { position: relative; padding: 96px 20px 104px; max-width: 1180px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); margin: 0 0 18px; max-width: 14ch; color: #fff; }
.hero-sub { font-size: clamp(17px, 1.6vw, 20px); max-width: 46ch; color: rgba(246,239,227,.88); margin: 0 0 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Trust strip */
.trust { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-top: 18px; padding-bottom: 18px; }
.trust-grid div { display: grid; grid-template-columns: 36px 1fr; column-gap: 10px; align-items: center; }
.trust-grid .ti { grid-row: span 2; width: 36px; height: 36px; border-radius: 10px; background: var(--ember-soft); color: var(--ember-dark); display: grid; place-items: center; font-size: 16px; }
.trust-grid b { font-size: 14.5px; }
.trust-grid small { color: var(--muted); font-size: 13px; }

section { padding: 56px 0; }
section.band { background: #efe5d3; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }

/* Category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-tile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; text-decoration: none; color: #fff; background: var(--forest); box-shadow: var(--shadow); }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(16,30,23,.88) 100%); }
.cat-tile:hover img { transform: scale(1.06); }
.cat-label { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; display: flex; flex-direction: column; }
.cat-label b { font-family: var(--display); text-transform: uppercase; font-size: 22px; letter-spacing: .02em; line-height: 1.1; }
.cat-label small { color: #f0b48f; font-weight: 600; margin-top: 4px; }

/* Product grid & cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s, border-color .18s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d6c8b0; }
.card-img { position: relative; aspect-ratio: 1; background: #ece3d3; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-img .tag { position: absolute; top: 10px; left: 10px; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-weight: 600; line-height: 1.35; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.card-meta { font-size: 13px; color: var(--muted); }
.card-cta { font-size: 13.5px; font-weight: 700; color: var(--ember-dark); margin-top: 2px; }
.price { font-weight: 700; font-size: 18px; color: var(--forest); }
.tag { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--forest); background: rgba(255,253,248,.94); padding: 4px 9px; border-radius: 999px; width: fit-content; box-shadow: 0 1px 3px rgba(0,0,0,.12); }

/* Shop filters */
.page-title { padding-top: 40px; padding-bottom: 8px; }
.page-title h1 { margin: 0 0 6px; font-size: clamp(32px, 4.4vw, 46px); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0 24px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.chip { border: 1px solid var(--line); background: var(--bg); padding: 8px 15px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); }
.chip:hover { border-color: var(--forest); }
.chip.active { background: var(--forest); color: #fff; border-color: var(--forest); }
.search { max-width: 280px; }
.filters select { width: auto; }

/* Forms */
label { font-weight: 600; font-size: 14px; display: block; margin-bottom: 6px; }
input, select, textarea { font: inherit; width: 100%; padding: 11px 13px; border: 1px solid #d8ccb6; border-radius: 10px; background: var(--surface); color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ember); outline-offset: 1px; border-color: transparent; }
.field { margin-bottom: 16px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 5px; }

/* Product page */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 24px; }
.crumbs a { color: var(--muted); }
.product { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; padding: 24px 0 40px; }
.product > div:first-child { min-width: 0; }
.product-img { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); aspect-ratio: 1; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 8px; margin-top: 12px; }
.thumb { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--surface); aspect-ratio: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--ember); }
.product h1 { font-size: clamp(28px, 3.4vw, 40px); margin: 10px 0 10px; }
.product .price { font-size: 30px; margin-bottom: 18px; }
.product .tag { box-shadow: none; background: var(--ember-soft); color: var(--ember-dark); }
.desc { white-space: pre-line; color: #3a3d36; }
.buy-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 10px; }
.buy-box .field { margin-bottom: 12px; }
.qty-row { display: flex; gap: 12px; align-items: end; }
.perks { list-style: none; padding: 12px 0 0; margin: 0; border-top: 1px dashed var(--line); font-size: 14px; color: var(--muted); }
.perks li { padding: 3px 0 3px 22px; position: relative; }
.perks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }.qty-row .field { margin: 0; width: 100px; }
.qty-row .btn { flex: 1; }
.details { padding-left: 18px; color: var(--muted); }
.added-msg { color: var(--ok); font-weight: 600; min-height: 1.5em; margin: 8px 0 6px; }

/* Cart & checkout */
.layout-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; padding: 20px 0 56px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel h3 { margin-top: 0; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line img { width: 76px; height: 76px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); }
.line-name { font-weight: 600; text-decoration: none; }
.line-meta { font-size: 14px; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; margin-top: 6px; background: var(--bg); }
.stepper button { border: 0; background: none; width: 32px; height: 32px; cursor: pointer; font-size: 16px; color: var(--ink); }
.stepper span { min-width: 24px; text-align: center; font-weight: 700; }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: 13px; margin-left: 10px; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; }
.sum-row.total { font-weight: 800; font-size: 19px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.empty { text-align: center; padding: 56px 20px; }
.notice { background: var(--ember-soft); border-radius: 10px; padding: 12px 14px; font-size: 14px; margin: 14px 0; }
.notice.test { background: #fff1b8; color: #5c4600; }
.error { color: #b3261e; font-weight: 600; margin-top: 10px; }
.narrow { max-width: 700px; }

/* Custom-order call to action */
.cta { background: var(--forest); color: #f6efe3; border-radius: 22px; padding: 44px; display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(217,98,43,.45), rgba(217,98,43,0) 70%); }
.cta > * { position: relative; }
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { color: rgba(246,239,227,.82); margin: 0; max-width: 52ch; }

/* Footer */
.site-footer { background: #15281f; color: rgba(246,239,227,.75); margin-top: 0; padding: 48px 0 0; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; padding-bottom: 32px; }
.site-footer h4 { color: #fff; font-size: 15px; letter-spacing: .08em; margin: 6px 0 12px; }
.site-footer a { display: block; text-decoration: none; padding: 3px 0; }
.site-footer a:hover { color: #fff; }
.logo-footer { display: flex !important; margin-bottom: 12px; }
.footer-blurb { max-width: 38ch; margin: 0; }
.footer-bottom { border-top: 1px solid rgba(246,239,227,.12); padding-top: 16px; padding-bottom: 20px; font-size: 13px; }

/* Phones & tablets */
@media (max-width: 900px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .product, .layout-2 { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .site-header .wrap { height: 60px; }
  .logo-text { font-size: 19px; }
  .logo-mark { width: 32px; height: 32px; }
  .nav a { padding: 8px 9px; font-size: 14.5px; }
  .nav .hide-sm { display: none; }
  .hero-inner { padding: 64px 20px 72px; }
  section { padding: 40px 0; }
  .section-head { flex-direction: column; align-items: start; gap: 6px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 10px 12px 12px; }
  .card-title { font-size: 14.5px; }
  .card-meta, .card-cta { display: none; }
  .price { font-size: 16px; }
  .cat-tile { aspect-ratio: 1; }
  .cat-label b { font-size: 18px; }
  .cta { padding: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: span 2; }
  .search { max-width: none; }
  .site-header .wrap { padding: 0 12px; gap: 8px; }
  .nav a { padding: 8px 7px; }
  .cart-link { padding: 8px 6px !important; }
  #chips { flex-wrap: nowrap !important; overflow-x: auto; width: 100%; padding-bottom: 4px; scrollbar-width: none; }
  #chips .chip { flex: none; }
}
@media (max-width: 380px) {
  .logo-text { font-size: 17px; }
  .logo-mark { width: 28px; height: 28px; }
}
