/* ── CatLands shop chrome ──────────────────────────────────────────────────
   Shared by /shop and the product pages: tokens, nav, buttons, footer,
   product media panels, and the cart drawer. Page-specific layout stays
   inline in each page.
   ───────────────────────────────────────────────────────────────────────── */
:root {
  --cream: #FAF8F3;
  --cream-deep: #F2EDE2;
  --white: #FFFFFF;
  --ink: #1C1812;
  --taupe: #6E665B;
  --taupe-soft: #8A8072;
  --brass: #D4AF43;
  --brass-dark: #B3902F;
  --sage: #3A4133;
  --sage-text: #F6F2E9;
  --hair: rgba(212, 175, 67, 0.35);
  --rule: rgba(28, 24, 18, 0.12);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { font-family: 'Playfair Display', serif; font-weight: 500; letter-spacing: -0.015em; }
img { max-width: 100%; }

/* ═══════════ NAV ═══════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250, 248, 243, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--hair);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 88px;
}
.nav-left { display: flex; align-items: center; gap: 40px; }
.nav-logo img { height: 62px; width: auto; display: block; filter: brightness(0) saturate(100%); }
.nav-menu { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-item > a {
  font-size: 14.5px; text-decoration: none; color: var(--ink);
  padding: 34px 0; display: inline-block;
  border-bottom: 1px solid transparent; transition: border-color 0.2s;
}
.nav-item:hover > a, .nav-item.on > a { border-bottom-color: var(--brass); }
.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-right a.plain { font-size: 14.5px; text-decoration: none; }
.nav-right a.plain:hover { text-decoration: underline; }
.nav-cta {
  background: var(--brass); color: #262B21; padding: 11px 26px; border-radius: 999px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.02em; text-decoration: none;
  transition: background 0.25s; white-space: nowrap;
}
.nav-cta:hover { background: var(--brass-dark); }
.hamburger { display: none; }

/* Cart button in the nav */
.cart-btn {
  position: relative; background: none; border: none; cursor: pointer;
  color: var(--ink); padding: 6px; display: flex; align-items: center;
  font: inherit; line-height: 0;
}
.cart-btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.cart-btn:hover { color: var(--brass-dark); }
.cart-count {
  position: absolute; top: -3px; right: -5px; min-width: 17px; height: 17px;
  border-radius: 999px; background: var(--ink); color: var(--cream);
  font-size: 10.5px; line-height: 17px; text-align: center; padding: 0 4px;
  opacity: 0; transform: scale(.6); transition: opacity .2s, transform .2s;
}
.cart-count.on { opacity: 1; transform: scale(1); }

/* ═══════════ BUTTONS ═══════════ */
.btn {
  display: inline-block; background: var(--brass); color: #262B21;
  padding: 15px 34px; border-radius: 999px; font-size: 13px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--brass); transition: background 0.25s, color 0.25s;
  cursor: pointer; font-family: inherit; text-align: center;
}
.btn:hover { background: var(--brass-dark); border-color: var(--brass-dark); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.ghost { background: transparent; color: var(--cream); border-color: rgba(246,242,233,.55); }
.btn.ghost:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn.ink { background: transparent; color: var(--ink); border-color: var(--brass); }
.btn.ink:hover { background: var(--brass); color: #262B21; }

/* ═══════════ PRODUCT MEDIA ═══════════ */
.p-media {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  background: linear-gradient(158deg, var(--white) 0%, var(--cream-deep) 58%, #E9DFCB 100%);
  border: 1px solid rgba(28,24,18,.07);
  display: grid; place-items: center;
}
.p-media::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 44%, rgba(212,175,67,.18), transparent 64%);
}
.p-watermark {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 62%; max-width: 210px; opacity: 0.06;
  filter: brightness(0) saturate(100%); pointer-events: none;
}
.p-icon {
  position: relative; font-size: clamp(54px, 7.4vw, 86px); line-height: 1;
  transition: transform 0.45s ease;
  filter: drop-shadow(0 12px 22px rgba(28,24,18,.14));
}
.p-photo { position: relative; width: 100%; height: 100%; object-fit: cover; display: block; }
.p-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--ink); color: var(--cream);
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 7px 11px;
}

/* ═══════════ EVENT CARDS ═══════════ */
.ev-card {
  display: block; text-decoration: none; background: var(--white);
  border: 1px solid rgba(28,24,18,.08); transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.ev-card:hover { transform: translateY(-4px); box-shadow: 0 22px 48px -26px rgba(28,24,18,.45); border-color: var(--hair); }
.ev-media {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: linear-gradient(158deg, var(--white) 0%, var(--cream-deep) 58%, #E9DFCB 100%);
  display: grid; place-items: center;
}
.ev-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-media img.mark { width: 42%; height: auto; opacity: .13; filter: brightness(0) saturate(100%); }
.ev-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase; padding: 6px 10px;
  background: var(--ink); color: var(--cream);
}
.ev-badge.hot { background: #8C3B2A; }
.ev-badge.free { background: var(--brass); color: #262B21; }
.ev-badge.full { background: var(--taupe-soft); }
.ev-badge.quiet { background: var(--sage); }
.ev-body { padding: 18px 20px 22px; }
.ev-name { font-family: 'Playfair Display', serif; font-size: 21px; line-height: 1.25; margin-bottom: 9px; }
.ev-when { font-size: 13px; color: var(--brass-dark); letter-spacing: .02em; margin-bottom: 5px; }
.ev-venue { font-size: 13.5px; color: var(--taupe); margin-bottom: 9px; }
.ev-price { font-size: 13.5px; color: var(--ink); font-weight: 500; }

/* ═══════════ CART DRAWER ═══════════ */
.cart-drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.cart-drawer.open { visibility: visible; }
.cart-scrim {
  position: absolute; inset: 0; background: rgba(28,24,18,.48);
  opacity: 0; transition: opacity .3s ease;
}
.cart-drawer.open .cart-scrim { opacity: 1; }
.cart-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  background: var(--cream); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .34s cubic-bezier(.4,0,.2,1);
  box-shadow: -24px 0 60px rgba(28,24,18,.22);
}
.cart-drawer.open .cart-panel { transform: translateX(0); }
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 26px; border-bottom: 1px solid var(--rule); flex: 0 0 auto;
}
.cart-head h2 { font-size: 22px; }
.cart-x { background: none; border: none; font-size: 17px; cursor: pointer; color: var(--taupe); line-height: 1; padding: 4px; }
.cart-x:hover { color: var(--ink); }
.cart-items { flex: 1 1 auto; overflow-y: auto; padding: 8px 26px; }
.cart-empty { text-align: center; color: var(--taupe); font-size: 14.5px; padding: 54px 0; line-height: 2; }
.cart-empty a { color: var(--ink); border-bottom: 1px solid var(--brass); text-decoration: none; padding-bottom: 3px; }
.cart-line { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.cart-line-media { flex: 0 0 76px; display: block; text-decoration: none; }
.cart-line-media .p-media { aspect-ratio: 1 / 1; }
.cart-line-media .p-icon { font-size: 30px; filter: none; }
.cart-line-media .p-watermark { width: 70%; }
.cart-line-body { flex: 1 1 auto; min-width: 0; }
.cart-line-name {
  font-family: 'Playfair Display', serif; font-size: 18px; text-decoration: none;
  display: block; margin-bottom: 3px;
}
.cart-line-name:hover { color: var(--brass-dark); }
.cart-line-price { font-size: 13.5px; color: var(--taupe); margin-bottom: 11px; }
.cart-qty { display: inline-flex; align-items: center; border: 1px solid var(--rule); background: var(--white); }
.cart-qty button {
  width: 30px; height: 30px; background: none; border: none; cursor: pointer;
  font: inherit; font-size: 15px; color: var(--ink); line-height: 1;
}
.cart-qty button:hover { background: var(--cream-deep); }
.cart-qty span { min-width: 30px; text-align: center; font-size: 13.5px; }
.cart-line-rm {
  display: block; margin-top: 10px; background: none; border: none; padding: 0;
  font: inherit; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--taupe-soft); cursor: pointer; text-decoration: underline;
}
.cart-line-rm:hover { color: var(--ink); }
.cart-foot { flex: 0 0 auto; padding: 22px 26px 26px; border-top: 1px solid var(--rule); background: var(--cream-deep); }
.cart-sub { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; font-size: 14px; }
.cart-sub strong { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 500; }
.cart-msg { font-size: 12.5px; line-height: 1.7; color: var(--taupe); margin-bottom: 16px; }
.cart-cta {
  display: block; text-align: center; background: var(--brass); color: #262B21;
  padding: 14px 20px; border-radius: 999px; text-decoration: none;
  font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500;
}
.cart-cta:hover { background: var(--brass-dark); }
.cart-clear {
  display: block; width: 100%; margin-top: 12px; background: none; border: none;
  font: inherit; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--taupe-soft); cursor: pointer; text-decoration: underline;
}
.cart-clear:hover { color: var(--ink); }
.cart-drawer.is-empty .cart-sub,
.cart-drawer.is-empty .cart-msg,
.cart-drawer.is-empty .cart-cta,
.cart-drawer.is-empty .cart-clear { display: none; }

/* add-to-bag confirmation */
.cart-toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 16px);
  background: var(--ink); color: var(--cream); padding: 13px 24px; border-radius: 999px;
  font-size: 13.5px; z-index: 300; opacity: 0; transition: opacity .3s, transform .3s;
  box-shadow: 0 16px 40px rgba(28,24,18,.3); max-width: calc(100vw - 32px); text-align: center;
}
.cart-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ═══════════ FOOTER ═══════════ */
footer { background: var(--ink); color: var(--cream); padding: 74px 40px 34px; }
.footer-top {
  max-width: 1180px; margin: 0 auto; padding-bottom: 46px;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; align-items: start;
}
.f-brand { display: flex; flex-direction: column; gap: 16px; }
.f-brand img { height: 52px; width: auto; align-self: flex-start; filter: brightness(0) invert(1); opacity: .9; }
.f-brand p { font-size: 12.5px; line-height: 1.9; color: rgba(244,239,230,.6); max-width: 30ch; }
.f-col h4 {
  font-family: 'DM Sans', sans-serif; font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--brass); margin-bottom: 18px; font-weight: 500;
}
.f-col a { display: block; font-size: 13.5px; color: rgba(244,239,230,.68); text-decoration: none; margin-bottom: 11px; }
.f-col a:hover { color: var(--cream); }
.footer-bottom {
  max-width: 1180px; margin: 0 auto; border-top: 1px solid rgba(244,239,230,.14);
  padding-top: 28px; font-size: 11px; letter-spacing: 0.08em;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: rgba(244,239,230,.6);
}

/* ═══════════ FADE-IN ═══════════ */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1020px) {
  .nav-menu { display: none; }
  .hamburger { display: block; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--ink); }
  .nav-inner { padding: 0 20px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 38px; }
  .f-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .nav-logo img { height: 48px; }
  footer { padding: 58px 22px 28px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
  .cart-panel { width: 100%; }
}
