:root {
  --pine: #17301f;
  --pine-deep: #0d1f14;
  --pine-mid: #24422e;
  --canvas: #f2edda;
  --canvas-warm: #eae3c8;
  --flame: #a92534;
  --flame-hot: #c43547;
  --ember: #e8b872;
  --ink: #1d2420;
  --line: rgba(23, 48, 31, 0.16);
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Archivo", -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--canvas);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='340'%20height='340'%20viewBox='0%200%20340%20340'%3E%3Cg%20fill='none'%20stroke='%2317301f'%20stroke-opacity='0.07'%20stroke-width='1.2'%3E%3Cpath%20d='M0%2030%20q42.5%20-14%2085%200%20t85%200%20t85%200%20t85%200'/%3E%3Cpath%20d='M0%2082%20q42.5%2010%2085%200%20t85%200%20t85%200%20t85%200'/%3E%3Cpath%20d='M0%20136%20q42.5%20-16%2085%200%20t85%200%20t85%200%20t85%200'/%3E%3Cpath%20d='M0%20188%20q42.5%2012%2085%200%20t85%200%20t85%200%20t85%200'/%3E%3Cpath%20d='M0%20240%20q42.5%20-15%2085%200%20t85%200%20t85%200%20t85%200'/%3E%3Cpath%20d='M0%20296%20q42.5%209%2085%200%20t85%200%20t85%200%20t85%200'/%3E%3C/g%3E%3C/svg%3E");
  line-height: 1.55;
}

/* film grain over everything, very faint */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100;
  opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 { font-family: var(--font-display); color: var(--pine); }
a { color: inherit; }
img { max-width: 100%; }

.promo-bar {
  background: linear-gradient(90deg, var(--flame), var(--flame-hot), var(--flame));
  color: #fff; text-align: center;
  font-size: 0.85rem; letter-spacing: 0.04em;
  padding: 0.55rem 1rem;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 2rem;
  padding: 0.7rem clamp(1rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--canvas) 86%, white);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-weight: 800; font-size: 1.3rem;
  color: var(--pine); text-decoration: none; letter-spacing: -0.01em;
}
.brand em { color: var(--flame); font-style: normal; }
.brand img { height: 46px; width: auto; display: block; filter: drop-shadow(0 3px 6px rgba(23,48,31,0.25)); }
.site-nav { display: flex; gap: 1.4rem; margin-left: auto; }
.site-nav a {
  text-decoration: none; font-size: 0.92rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  border-bottom: 2px solid transparent; padding-bottom: 2px;
}
.site-nav a:hover { border-color: var(--flame); color: var(--flame); }
.cart-button {
  font: inherit; font-weight: 600; cursor: pointer;
  background: var(--pine); color: var(--canvas);
  border: 0; border-radius: 999px; padding: 0.5rem 1.1rem;
  transition: background 0.15s ease;
}
.cart-button:hover { background: var(--pine-mid); }
.cart-count {
  background: var(--flame); border-radius: 999px;
  padding: 0.05rem 0.5rem; margin-left: 0.3rem; font-size: 0.8rem;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(155deg, rgba(13, 31, 20, 0.94) 20%, rgba(23, 48, 31, 0.72) 65%, rgba(13, 31, 20, 0.88)),
    url("/images/hero.jpg") center 30%/cover no-repeat,
    var(--pine-deep);
  color: var(--canvas);
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1rem, 4vw, 3rem) clamp(6rem, 10vw, 9rem);
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2rem; align-items: center; max-width: 72rem; margin: 0 auto;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 0.6rem;
  text-transform: uppercase; letter-spacing: 0.24em; font-size: 0.75rem;
  color: var(--ember); margin-bottom: 1.1rem;
}
.hero-eyebrow .tick { width: 2.2rem; height: 2px; background: var(--flame); display: inline-block; }
.hero h1 {
  color: var(--canvas);
  font-size: clamp(2.7rem, 6.5vw, 4.8rem);
  font-weight: 800; line-height: 1.0; letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
  text-wrap: balance;
}
.hero-sub { max-width: 30rem; font-size: 1.1rem; opacity: 0.88; margin-bottom: 1.8rem; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.hero-badges { display: flex; gap: 0.6rem; flex-wrap: wrap; list-style: none; }
.hero-badges li {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  border: 1px solid rgba(242, 237, 218, 0.35); border-radius: 999px;
  padding: 0.35rem 0.85rem; color: rgba(242, 237, 218, 0.9);
  backdrop-filter: blur(2px);
}

/* floating cutout cans */
.hero-cans { position: relative; height: clamp(300px, 34vw, 450px); }
.hero-cans .can {
  position: absolute; width: clamp(115px, 12vw, 165px);
  filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.45));
  animation: float 7s ease-in-out infinite;
}
.can-msr { left: 0; top: 0; transform: rotate(-9deg); }
.can-primus { left: 2%; bottom: 0; transform: rotate(6deg); animation-delay: -5.2s; }
.can-optimus { right: 4%; bottom: 3%; transform: rotate(-5deg); animation-delay: -0.9s; }
.can-jet { right: 0; top: 4%; transform: rotate(7deg); animation-delay: -3.5s; }
.can-snow { left: 37%; top: 34%; width: clamp(85px, 9vw, 125px); transform: rotate(4deg); animation-delay: -1.7s; }
@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

/* ridgeline dividers */
.ridge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(40px, 6vw, 90px); display: block; fill: var(--canvas); }
.reviews .ridge-top { position: absolute; top: -1px; bottom: auto; fill: var(--canvas); }

.btn {
  display: inline-block; font: inherit; font-weight: 700; cursor: pointer;
  text-decoration: none; border-radius: 999px; padding: 0.8rem 1.7rem;
  border: 2px solid transparent; transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--flame); color: #fff; box-shadow: 0 8px 24px -8px rgba(169, 37, 52, 0.6); }
.btn-primary:hover { background: var(--flame-hot); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(242, 237, 218, 0.5); color: var(--canvas); }
.btn-ghost:hover { border-color: var(--canvas); transform: translateY(-2px); }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- value strip ---------- */
.value-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px;
  background: var(--line); border-bottom: 1px solid var(--line);
}
.value-strip > div { background: var(--canvas-warm); padding: 1.3rem clamp(1rem, 3vw, 2.2rem); }
.value-strip h3 {
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--flame); margin-bottom: 0.25rem;
}
.value-strip p { font-size: 0.9rem; color: color-mix(in srgb, var(--ink) 72%, transparent); }

/* ---------- catalog ---------- */
.catalog { padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem); max-width: 76rem; margin: 0 auto; }
.eyebrow {
  display: flex; align-items: center; gap: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.72rem; font-weight: 600;
  color: var(--flame);
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section-head { margin: 3rem 0 1.6rem; }
.section-head h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); font-weight: 800; letter-spacing: -0.01em; margin-top: 0.4rem; }
.section-sub { color: color-mix(in srgb, var(--ink) 68%, transparent); max-width: 34rem; }

.product-grid {
  display: grid; gap: 1.3rem;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
}
.product-card {
  position: relative;
  background: linear-gradient(175deg, color-mix(in srgb, var(--canvas-warm) 75%, white), var(--canvas-warm));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.4rem 0 0;
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.product-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--flame) 45%, var(--line));
  box-shadow: 0 20px 38px -18px rgba(14, 32, 21, 0.4);
}
.product-media {
  position: relative; display: grid; place-items: center;
  padding: 1.3rem 1.3rem 0.6rem;
}
.product-media img {
  position: relative; width: 78%; aspect-ratio: 1; object-fit: contain;
  filter: drop-shadow(0 14px 14px rgba(14, 32, 21, 0.28));
  transition: transform 0.25s ease;
}
.product-card:hover .product-media img { transform: translateY(-4px) rotate(-2deg) scale(1.03); }
.product-body { padding: 0.4rem 1.2rem 1.25rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.product-brand {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--flame); font-weight: 700;
}
.product-name { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; color: var(--pine); line-height: 1.25; }
.product-blurb { font-size: 0.85rem; color: color-mix(in srgb, var(--ink) 70%, transparent); flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 0.5rem; }
.price-stack { display: flex; flex-direction: column; line-height: 1.15; }
.product-price { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--pine); }
.ships-free { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; color: var(--flame); }
.add-button {
  font: inherit; font-size: 0.86rem; font-weight: 700; cursor: pointer;
  background: var(--pine); color: var(--canvas);
  border: 0; border-radius: 999px; padding: 0.55rem 1.05rem;
  transition: background 0.15s ease, transform 0.15s ease;
}
.add-button:hover { background: var(--flame); transform: translateY(-1px); }
.add-button.added { background: var(--flame); }

/* ---------- reviews ---------- */
.reviews {
  position: relative;
  background:
    radial-gradient(ellipse 60% 50% at 50% 115%, rgba(169, 37, 52, 0.25), transparent),
    linear-gradient(180deg, var(--pine-deep), var(--pine));
  color: var(--canvas);
  padding: clamp(5rem, 9vw, 7.5rem) clamp(1rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem);
}
.reviews .eyebrow-light { color: var(--ember); justify-content: center; }
.reviews .eyebrow-light::after { display: none; }
.reviews h2 {
  color: var(--canvas); text-align: center;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem); font-weight: 800;
  margin: 0.4rem 0 2rem;
}
.review-row { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); max-width: 68rem; margin: 0 auto; }
.review-row figure {
  background: rgba(242, 237, 218, 0.06);
  border: 1px solid rgba(242, 237, 218, 0.14);
  border-radius: 14px; padding: 1.4rem;
  backdrop-filter: blur(2px);
}
.stars { color: var(--flame-hot); letter-spacing: 0.2em; font-size: 0.9rem; display: block; margin-bottom: 0.7rem; }
.review-row blockquote { font-size: 0.95rem; margin-bottom: 0.9rem; opacity: 0.92; }
.review-row figcaption {
  color: var(--ember); font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--pine-deep); color: rgba(242, 237, 218, 0.85);
  padding: 3rem clamp(1rem, 4vw, 3rem) 2rem;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='340'%20height='340'%20viewBox='0%200%20340%20340'%3E%3Cg%20fill='none'%20stroke='%23f2edda'%20stroke-opacity='0.05'%20stroke-width='1.2'%3E%3Cpath%20d='M0%2030%20q42.5%20-14%2085%200%20t85%200%20t85%200%20t85%200'/%3E%3Cpath%20d='M0%2082%20q42.5%2010%2085%200%20t85%200%20t85%200%20t85%200'/%3E%3Cpath%20d='M0%20136%20q42.5%20-16%2085%200%20t85%200%20t85%200%20t85%200'/%3E%3Cpath%20d='M0%20188%20q42.5%2012%2085%200%20t85%200%20t85%200%20t85%200'/%3E%3Cpath%20d='M0%20240%20q42.5%20-15%2085%200%20t85%200%20t85%200%20t85%200'/%3E%3Cpath%20d='M0%20296%20q42.5%209%2085%200%20t85%200%20t85%200%20t85%200'/%3E%3C/g%3E%3C/svg%3E");
}
.footer-cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); max-width: 60rem; }
.footer-cols h3 { font-size: 0.85rem; margin-bottom: 0.7rem; color: var(--ember); text-transform: uppercase; letter-spacing: 0.14em; }
.footer-cols a { display: block; text-decoration: none; font-size: 0.92rem; padding: 0.18rem 0; }
.footer-cols a:hover { color: var(--flame-hot); }
.footer-cols p { font-size: 0.92rem; }
.footer-fine { margin-top: 2.5rem; font-size: 0.78rem; color: rgba(242, 237, 218, 0.5); }

/* ---------- cart drawer ---------- */
.cart-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(13, 31, 20, 0.55);
}
.cart-overlay[hidden], .cart-drawer[hidden] { display: none; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70;
  width: min(26rem, 100vw);
  background: var(--canvas);
  display: flex; flex-direction: column;
  box-shadow: -18px 0 40px rgba(13, 31, 20, 0.35);
  animation: slide-in 0.22s ease;
}
@keyframes slide-in { from { transform: translateX(100%); } }
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--line);
}
.cart-head h2 { font-size: 1.3rem; }
.cart-head button { font-size: 1.6rem; background: none; border: 0; cursor: pointer; line-height: 1; color: var(--pine); }
.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.3rem; }
.cart-empty { color: color-mix(in srgb, var(--ink) 60%, transparent); padding: 2rem 0; text-align: center; }
.cart-line { display: flex; gap: 0.9rem; padding: 0.8rem 0; border-bottom: 1px dashed var(--line); }
.cart-line img { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 4px 5px rgba(14,32,21,0.25)); }
.cart-line-info { flex: 1; }
.cart-line-name { font-weight: 600; font-size: 0.92rem; }
.cart-line-price { font-size: 0.85rem; color: color-mix(in srgb, var(--ink) 65%, transparent); }
.qty-controls { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.4rem; }
.qty-controls button {
  width: 1.6rem; height: 1.6rem; border-radius: 6px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-size: 1rem; line-height: 1;
}
.cart-line-remove { background: none; border: 0; cursor: pointer; font-size: 0.78rem; color: var(--flame); align-self: flex-start; }
.cart-foot { padding: 1.1rem 1.3rem 1.4rem; border-top: 1px solid var(--line); }
.cart-total { display: flex; justify-content: space-between; font-size: 1.05rem; margin-bottom: 0.3rem; }
.cart-note { font-size: 0.8rem; color: color-mix(in srgb, var(--ink) 60%, transparent); margin-bottom: 0.9rem; }
#checkout-button:disabled { opacity: 0.6; cursor: wait; }

/* ---------- static pages ---------- */
.page-wrap { max-width: 44rem; margin: 0 auto; padding: clamp(2rem, 6vw, 4rem) 1.2rem 4rem; }
.page-wrap h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 1.2rem; }
.page-wrap h2 { font-size: 1.25rem; margin: 1.6rem 0 0.5rem; }
.page-wrap p, .page-wrap li { margin-bottom: 0.7rem; }
.page-wrap ul { padding-left: 1.2rem; }

@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-cans { height: 230px; margin-top: 0.5rem; }
}
@media (max-width: 640px) {
  .site-nav { display: none; }
  .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-cans .can { animation: none; }
  html { scroll-behavior: auto; }
}
