/* Bigfoot Forever — public site styles. Cryptid field-journal vibe. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #201509;
  --paper: #f4ecd8;
  --paper-2: #ece0c4;
  --moss: #2f4a34;
  --moss-2: #1d3223;
  --rust: #b5502e;
  --gold: #c8952f;
  --muted: #6b5c40;
  --border: #d8c8a0;
  --danger: #a5342a;
  --radius: 12px;
}

body {
  font-family: 'Lora', Georgia, serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  padding-bottom: 90px; /* room for the floating cart bar */
}

h1, h2, h3 { font-family: 'Cinzel', serif; letter-spacing: .03em; }

a { color: var(--rust); }

.muted { color: var(--muted); font-size: .9rem; }

/* ── Header ── */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; background: var(--moss); color: var(--paper);
  position: sticky; top: 0; z-index: 50; flex-wrap: wrap; gap: 10px;
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--paper); }
.brand-mark { font-size: 1.4rem; }
.brand-name { font-family: 'Cinzel', serif; font-weight: 700; letter-spacing: .08em; font-size: 1.1rem; }
.site-nav { display: flex; gap: 18px; }
.site-nav a { color: var(--paper); text-decoration: none; font-size: .9rem; opacity: .9; }
.site-nav a:hover { opacity: 1; text-decoration: underline; }

/* ── Hero ── */
.hero { text-align: center; padding: 48px 20px 24px; max-width: 700px; margin: 0 auto; }
.hero h1 { font-size: 2rem; margin-bottom: 10px; color: var(--moss-2); }
.hero p { color: var(--muted); }

/* ── Filter bar ── */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  padding: 10px 20px 24px; max-width: 1100px; margin: 0 auto;
}
.filter-pill {
  padding: 7px 16px; border-radius: 999px; border: 1px solid var(--border);
  text-decoration: none; color: var(--ink); font-size: .85rem; background: var(--paper-2);
  white-space: nowrap;
}
.filter-pill.active, .filter-pill:hover { background: var(--moss); color: var(--paper); border-color: var(--moss); }

/* ── Sticker grid ── */
.sticker-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px; max-width: 1200px; margin: 0 auto; padding: 0 20px 40px;
}
.sticker-card {
  background: #fffdf6; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .15s;
}
.sticker-card:hover { transform: translateY(-3px); }
.sticker-art { position: relative; display: block; aspect-ratio: 1; background: var(--paper-2); }
.sticker-art img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.sticker-art.large { max-width: 320px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; }
.badge-rare {
  position: absolute; top: 8px; right: 8px; background: var(--rust); color: #fff;
  font-size: .68rem; padding: 3px 8px; border-radius: 999px; font-weight: 600;
}
.sticker-info { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sticker-info h3 { font-size: 1.05rem; }
.sticker-info h3 a { color: var(--moss-2); text-decoration: none; }
.region { font-size: .78rem; color: var(--muted); }
.blurb { font-size: .88rem; color: var(--ink); flex: 1; }
.empty-msg { text-align: center; color: var(--muted); grid-column: 1 / -1; padding: 40px 0; }

.btn-add {
  margin-top: 8px; background: var(--rust); color: #fff; border: none; border-radius: 8px;
  padding: 10px 14px; font-family: 'Lora', serif; font-weight: 600; cursor: pointer; font-size: .88rem;
}
.btn-add:hover { background: #963f22; }
.btn-large { font-size: 1rem; padding: 12px 20px; }

/* ── Pagination ── */
.pagination { display: flex; justify-content: center; gap: 8px; padding-bottom: 40px; }
.page-link {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 6px; text-decoration: none; color: var(--ink);
}
.page-link.active { background: var(--moss); color: var(--paper); border-color: var(--moss); }

/* ── Product detail ── */
.page-narrow { max-width: 900px; margin: 0 auto; padding: 40px 20px 60px; }
.product-detail { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 720px) { .product-detail { grid-template-columns: 340px 1fr; } }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; color: var(--rust); font-weight: 700; }
.product-copy h1 { font-size: 1.8rem; margin: 6px 0 4px; }
.fine-print { font-size: .8rem; color: var(--muted); margin-top: 10px; }
.back-link { display: inline-block; margin-top: 16px; font-size: .85rem; }
.certificate { text-align: center; }
.certificate h1 { margin-bottom: 16px; }
.certificate .btn-add { display: inline-block; margin-top: 20px; text-decoration: none; }

/* ── Newsletter footer ── */
.site-footer { background: var(--moss-2); color: var(--paper); padding: 44px 20px 30px; text-align: center; margin-top: 20px; }
.newsletter-box { max-width: 480px; margin: 0 auto 20px; }
.newsletter-box h2 { font-size: 1.3rem; margin-bottom: 8px; }
.newsletter-box p { font-size: .9rem; opacity: .85; margin-bottom: 14px; }
.newsletter-box form { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.newsletter-box input[type=email] {
  flex: 1; min-width: 200px; padding: 10px 12px; border-radius: 6px; border: none; font-family: 'Lora', serif;
}
.newsletter-box button {
  background: var(--gold); color: var(--ink); border: none; padding: 10px 20px; border-radius: 6px;
  font-weight: 700; cursor: pointer;
}
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.newsletter-msg { min-height: 1.2em; font-size: .85rem; margin-top: 8px; }
.newsletter-msg.ok { color: #9ee6a8; }
.newsletter-msg.err { color: #f0a0a0; }
.footer-fine { font-size: .75rem; opacity: .6; }

/* ── Floating cart bar ── */
#cart-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: var(--ink); color: var(--paper); display: flex;
  align-items: center; justify-content: space-between; padding: 12px 20px;
  box-shadow: 0 -4px 16px rgba(0,0,0,.25); transition: transform .2s;
}
#cart-bar.cart-empty { transform: translateY(100%); }
#cart-bar.pulse { animation: pulse .3s; }
@keyframes pulse { 50% { transform: scale(1.01); } }
.cart-summary { background: none; border: none; color: var(--paper); font-size: .95rem; cursor: pointer; font-family: 'Lora', serif; }
.btn-checkout {
  background: var(--gold); color: var(--ink); border: none; border-radius: 8px;
  padding: 10px 18px; font-weight: 700; cursor: pointer; font-family: 'Lora', serif;
}
.btn-checkout:disabled { opacity: .6; cursor: wait; }

/* ── Cart panel ── */
#cart-panel {
  position: fixed; bottom: 68px; right: 16px; width: min(340px, calc(100vw - 32px));
  background: #fffdf6; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,.25); z-index: 95; display: none; max-height: 60vh; overflow-y: auto;
}
#cart-panel.open { display: block; }
.cart-panel-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.cart-panel-header button { background: none; border: none; font-size: 1.1rem; cursor: pointer; }
#cart-panel-items { padding: 10px 16px; }
.cart-line { display: grid; grid-template-columns: 1fr 50px 60px 24px; gap: 6px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .82rem; }
.cart-line-qty { width: 46px; padding: 3px; border: 1px solid var(--border); border-radius: 4px; }
.cart-line-remove { background: none; border: none; color: var(--danger); cursor: pointer; }
.cart-empty-msg { color: var(--muted); font-size: .85rem; padding: 10px 0; }

@media (max-width: 480px) {
  .site-nav { font-size: .8rem; gap: 10px; }
  #cart-bar { flex-direction: row; gap: 8px; }
  .cart-summary { font-size: .85rem; }
}
