/* Vigilant Merchant storefront.
   Palette: manganese/navy blue (from the logo) + red accents on off-white paper and cardboard tones.
   Rebrand by editing these tokens. */
:root {
  --bg: #f3efe6;           /* off-white paper */
  --surface: #fbf9f4;
  --ink: #1c2440;
  --muted: #6e6a60;
  --line: #e2d9c7;
  --brand: #23346b;        /* manganese / navy blue */
  --brand-ink: #f3efe6;
  --accent: #b3312b;       /* vintage red */
  --accent-ink: #ffffff;
  --kraft: #c8a77a;        /* cardboard */
  --kraft-deep: #a5824f;
  --kraft-soft: #e6d6bb;
  --radius: 8px;
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .28 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15171c; --surface: #1d2027; --ink: #ece7dc; --muted: #a39d90;
    --line: #2d313b; --brand: #2d4386; --kraft: #8c714c; --kraft-deep: #6f5836; --kraft-soft: #3a3226;
  }
}
:root[data-theme="dark"] {
  --bg: #15171c; --surface: #1d2027; --ink: #ece7dc; --muted: #a39d90;
  --line: #2d313b; --brand: #2d4386; --kraft: #8c714c; --kraft-deep: #6f5836; --kraft-soft: #3a3226;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg) var(--paper-grain); color: var(--ink); font: 16px/1.55 var(--font-body); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: .02em; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); text-transform: uppercase; color: var(--brand); }
h2 { font-size: 1.5rem; text-transform: uppercase; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.section { padding: 40px 16px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; }
.section-head a { color: var(--accent); text-decoration: none; font-weight: 600; }

.site-header { background: var(--bg) var(--paper-grain); color: var(--brand); position: sticky; top: 0; z-index: 10; border-bottom: 3px solid var(--brand); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand img.logo-banner { height: 54px; width: auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-size: 1.3rem; text-transform: uppercase; letter-spacing: .06em; }
.site-nav { display: flex; gap: 18px; flex: 1; flex-wrap: wrap; }
.site-nav a { text-decoration: none; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; font-size: .95rem; }
.site-nav a:hover { opacity: 1; color: var(--accent); }
.search input { background: var(--surface); border: 1px solid var(--line); color: inherit; border-radius: 999px; padding: 7px 14px; width: 180px; }
.nav-toggle { display: none; background: none; border: 0; color: inherit; font-size: 1.5rem; margin-left: auto; cursor: pointer; }

.hero { background: var(--kraft) var(--paper-grain); color: var(--ink); padding: 56px 0 64px; border-bottom: 1px solid var(--kraft-deep); }
.hero h1 { color: var(--brand); }
.hero-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 600; }
.lead { font-size: 1.1rem; max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-art { display: grid; place-items: center; }
.hero-art img { width: min(100%, 380px); margin: 0 auto; transform: rotate(-4deg); filter: drop-shadow(0 6px 12px rgba(60,40,10,.25)); }

.btn { display: inline-block; padding: 11px 20px; border-radius: 6px; text-decoration: none; font-weight: 600; border: 2px solid transparent; cursor: pointer; font-size: .95rem; text-align: center; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--brand); color: var(--brand); }
.btn-blue { background: var(--brand); color: var(--brand-ink); }
.btn-block { display: block; width: 100%; margin-bottom: 8px; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.cat-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; display: flex; flex-direction: column; gap: 6px; transition: border-color .15s; }
.cat-tile strong { font-family: var(--font-display); text-transform: uppercase; font-size: 1.15rem; color: var(--brand); }
.cat-tile span { color: var(--muted); font-size: .9rem; }
.cat-tile:hover { border-color: var(--accent); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.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 .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.card-img { position: relative; aspect-ratio: 1; background: var(--line); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 12px 14px 16px; }
.card-cat { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.card-title { font-weight: 600; margin: 2px 0 6px; }
.card-price { font-weight: 700; color: var(--brand); }
.card-price s, .price-lg s { color: var(--muted); font-weight: 400; margin-left: 6px; }
.badge { position: absolute; top: 10px; left: 10px; background: var(--surface); color: var(--ink); font-size: .72rem; font-weight: 600; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: .05em; }
.badge-dark { background: var(--ink); color: var(--bg); }
.badge-accent { background: var(--accent); color: var(--accent-ink); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .9rem; background: var(--surface); }
.chip.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.empty { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a { text-decoration: none; }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.product-img { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.price-lg { font-size: 1.6rem; font-weight: 700; margin-bottom: 16px; }
.facts { list-style: none; padding: 0; margin: 0 0 20px; border-top: 1px solid var(--line); }
.facts li { padding: 9px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; }
.facts span { width: 110px; flex-shrink: 0; color: var(--muted); }
.buy-box { margin: 20px 0; }
.desc { color: var(--ink); }

.band { background: var(--kraft-soft) var(--paper-grain); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 32px 16px; }
.band-grid strong { display: block; font-family: var(--font-display); text-transform: uppercase; margin-bottom: 4px; }
.band-grid span { color: var(--muted); font-size: .92rem; }

.prose { max-width: 760px; }
.prose p, .prose li { font-size: 1.05rem; }

.site-footer { background: var(--brand); color: var(--brand-ink); margin-top: 40px; padding: 40px 0 20px; border-top: 4px solid var(--accent); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.footer-grid a { display: block; text-decoration: none; opacity: .8; font-size: .92rem; margin: 4px 0; }
.footer-grid h4 { text-transform: uppercase; font-size: .9rem; }
.site-footer .muted { color: inherit; opacity: .65; }
.fine { font-size: .8rem; opacity: .55; margin-top: 24px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .header-row { flex-wrap: wrap; gap: 12px; padding: 8px 16px; }
  .site-nav, .search { display: none; width: 100%; }
  .nav-open .site-nav { display: flex; flex-direction: column; gap: 10px; padding-bottom: 12px; }
  .nav-open .search { display: block; padding-bottom: 12px; }
  .search input { width: 100%; }
  .hero-inner, .product-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .band-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

.footer-badge { width: 120px; height: auto; background: var(--bg); border-radius: 50%; padding: 6px; }
.footer-stamp { display: inline-block; vertical-align: middle; width: 66px; height: auto; filter: brightness(1.35) saturate(.9); }
.eyebrow { color: var(--accent); }
.cat-tile { background: var(--surface) var(--paper-grain); border-left: 4px solid var(--kraft); }
.cat-tile:hover { border-color: var(--accent); }
.badge-accent { background: var(--brand); color: var(--brand-ink); }
.product-img, .card-img { background: var(--kraft-soft); }
@media (max-width: 860px) { .brand img.logo-banner { height: 44px; } }

.review-form { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin-top: 20px; }
.review-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.review-form input { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; min-width: 240px; background: var(--surface); color: var(--ink); }

/* Shop All dropdown */
.site-nav { align-items: center; }
.nav-drop { position: relative; display: flex; align-items: center; }
.nav-drop-btn { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 4px 2px 4px 6px; line-height: 1; }
.nav-drop-menu { display: none; position: absolute; top: 100%; left: -12px; z-index: 20; min-width: 230px; padding: 8px 0; margin-top: 8px;
  background: var(--surface) var(--paper-grain); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 12px 28px rgba(28,36,64,.18); }
.nav-drop-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -11px; height: 11px; } /* hover bridge */
.nav-drop-menu a { display: block; padding: 8px 16px; white-space: nowrap; color: var(--brand); }
.nav-drop-menu a:hover, .nav-drop-menu a:focus { background: var(--kraft-soft); color: var(--accent); }
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu, .nav-drop.open .nav-drop-menu { display: block; }
@media (max-width: 860px) {
  .nav-drop { flex-wrap: wrap; }
  .nav-drop-menu { position: static; display: none; width: 100%; margin: 6px 0 0; box-shadow: none; border-radius: var(--radius); }
  .nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { display: none; }
  .nav-drop.open .nav-drop-menu { display: block; }
  .nav-drop-btn { padding: 6px 10px; font-size: 1.1rem; }
  .nav-open .site-nav { align-items: flex-start; }
}
