/* ============================================================
   TRAGICALLY TIKI — SHARED STYLES
   Update brand tokens here. Propagates to every page.
   ============================================================ */

:root {
  /* Color tokens */
  --bone: #EDE4D3;
  --bone-deep: #E2D6BD;
  --bone-warm: #F1E4C8;
  --manila: #E2D2AC;
  --ink: #1A1814;
  --palm: #5C5235;
  --rum: #A63D2A;
  --rum-deep: #7A2A1C;
  --rule: rgba(26, 24, 20, 0.35);
  --rule-soft: rgba(26, 24, 20, 0.18);

  /* Type tokens */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'EB Garamond', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-script: 'Yellowtail', cursive;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 0.5px;
}

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.announce {
  background: var(--rum);
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  padding: 9px 16px;
}
.announce em { font-style: normal; color: #f3d4a0; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-bottom: 0.5px solid var(--rule-soft);
}
.nav-left, .nav-right {
  display: flex;
  gap: 22px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--palm);
}
.nav-right { justify-content: flex-end; }
.nav-shop { color: var(--rum); font-weight: 700; }
.nav-logo { height: 38px; }
.nav-logo img { height: 100%; width: auto; display: block; }
.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: var(--ink);
  color: var(--bone);
  padding: 8px 14px;
  border-radius: 100px;
  border: 0;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}
.cart-count {
  background: var(--rum);
  color: var(--bone);
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 8px;
  min-width: 16px;
  text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--ink);
  color: var(--bone);
  padding: 56px 32px 28px;
  position: relative;
  overflow: hidden;
}
.footer-totem-watermark {
  position: absolute;
  right: -20px;
  bottom: -40px;
  width: 240px;
  opacity: 0.06;
  pointer-events: none;
}
.footer-totem-watermark img { width: 100%; filter: invert(1); }
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  position: relative;
  z-index: 1;
}
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 18px;
}
.footer-brand-row img.logo {
  width: 180px;
  filter: invert(1) brightness(2.5);
}
.footer-brand-row img.mark {
  width: 36px;
  filter: invert(1) brightness(2.5);
  opacity: 0.7;
}
.footer-brand p {
  font-family: var(--font-script);
  font-size: 20px;
  transform: rotate(-1.5deg);
  color: #f3d4a0;
  margin: 0;
  display: inline-block;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 18px;
  color: #c9b68a;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.9;
}
.footer-col a { color: var(--bone); opacity: 0.85; }
.footer-col a:hover { opacity: 1; }
.footer-bottom {
  max-width: 1180px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 0.5px solid rgba(237, 228, 211, 0.2);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c9b68a;
  position: relative;
  z-index: 1;
}

/* ============================================================
   CART DRAWER
   ============================================================ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 24, 20, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 50;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 100%;
  max-width: 440px;
  background: var(--bone);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 60;
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(40, 30, 15, 0.25);
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  padding: 20px 28px;
  border-bottom: 0.5px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawer-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  margin: 0;
}
.drawer-close {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--palm);
}
.drawer-close:hover { color: var(--ink); }
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
}
.drawer-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--palm);
  font-family: var(--font-body);
  font-style: italic;
  font-size: 15px;
}
.drawer-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 0.5px solid var(--rule-soft);
}
.drawer-item-img {
  background: var(--bone-warm);
  padding: 8px;
  border: 0.5px solid var(--rule-soft);
}
.drawer-item-img svg { width: 100%; height: auto; }
.drawer-item-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  line-height: 1.1;
  margin: 0 0 4px;
}
.drawer-item-meta {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--palm);
  margin: 0 0 8px;
}
.drawer-foot {
  padding: 20px 28px;
  border-top: 0.5px solid var(--rule);
  background: var(--bone-deep);
}
.drawer-totals {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--palm);
  margin: 0 0 4px;
}
.drawer-grand {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 16px;
}
.drawer-grand .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 700;
}
.drawer-grand .total {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
}
.drawer-checkout {
  width: 100%;
  background: var(--ink);
  color: var(--bone);
  border: 0;
  padding: 16px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.2s ease;
}
.drawer-checkout:hover { background: var(--rum); }
.drawer-fineprint {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 12px;
  color: var(--palm);
  text-align: center;
  margin: 12px 0 0;
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 900px) {
  .nav-left { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
/* === Hide custom cart + summary band — using Shopify cart instead === */
.summary-band, .summary, .sticky-add { display: none !important; }
.cart-btn, .drawer, .drawer-overlay { display: none !important; }

/* === Hide unfinished sections (homepage + nav + footer) === */
.taxonomy, .social { display: none !important; }
.nav a[href="/regions/"] { display: none !important; }
.footer-col a[href="/regions/"],
.footer-col a[href="/eras"] { display: none !important; }