/* ============================================================
   MQubed Comics and Toys — Main Stylesheet
   styles.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Chewy&family=Luckiest+Guy&family=Patrick+Hand&family=Roboto+Serif&display=swap');


/* ============================================================
   CSS CUSTOM PROPERTIES (variables)
   ============================================================ */
:root {
  --bg:           #FAFAF8;
  --surface:      #FFFFFF;
  --ink:          #111110;
  --ink-soft:     #6B6B67;
  --ink-muted:    #AEAEA9;
  --line:         #E8E8E4;
  --accent:       #C8102E;
  --accent-soft:  rgba(200, 16, 46, 0.08);
  --gold:         #FFD700;
  --rail-w:       44px;
}


/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Chewy', cursive;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  display: block;
  width: 100%;
}


/* ============================================================
   HEADER
   ============================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 64px;
}

.logo {
  font-family: 'Chewy', cursive;
  font-weight: 300;
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.logo em { font-style: italic; color: var(--accent); }

.header-right {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--line);
  border-radius: 100px;
  padding: 6px 16px;
  transition: background 0.2s;
}
.header-search:focus-within { background: #e2e2de; }
.header-search input {
  background: none;
  border: none;
  outline: none;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--ink);
  width: 320px;
}
.header-search input::placeholder { color: var(--ink-muted); }
.header-search input[readonly] { color: var(--ink); cursor: text; }
.search-icon { color: var(--ink-muted); }

.cart-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 8px 20px;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.cart-trigger:hover { background: var(--accent); transform: translateY(-1px); }

.wishlist-trigger {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 8px 16px;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  white-space: nowrap;
}
.wishlist-trigger:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-1px); }
.wishlist-trigger.has-items { border-color: var(--accent); color: var(--accent); }
.wishlist-trigger.has-items:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.wishlist-badge {
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  transition: transform 0.2s;
}
.wishlist-badge.bump { transform: scale(1.5); }

.cart-badge {
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  transition: transform 0.2s;
}
.cart-badge.bump { transform: scale(1.5); }

.account-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.account-trigger:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-1px); }
.account-trigger.signed-in { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ── About page h2: yellow fill, white outline ── */
.about h2 {
  color: #FFD700;
  text-shadow:
    -1px -1px 0 #fff,  0 -1px 0 #fff,  1px -1px 0 #fff,
    -1px  0   0 #fff,                   1px  0   0 #fff,
    -1px  1px 0 #fff,  0  1px 0 #fff,   1px  1px 0 #fff;
}

/* ============================================================
   SIGN-IN MODAL
   ============================================================ */
.signin-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(17, 17, 16, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}
.signin-overlay.open { display: flex; }

.signin-modal {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 3rem 2.5rem 2.5rem;
  width: 100%;
  max-width: 420px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.signin-logo {
  font-family: 'Luckiest Guy', cursive;
  font-size: 42px;
  color: #FFD700;
  -webkit-text-stroke: 3px #FFFFFF;
  text-shadow:
    3px 3px 0 #003366,
    6px 6px 8px rgba(0,0,0,.25);
  text-decoration: none;
  display: block;
  margin-bottom: 0.25rem;
  white-space: nowrap;
}
.signin-logo em { font-style: italic; }

.signin-sub {
  font-size: 0.82rem;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  margin: 0 0 2rem;
}

.signin-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  margin-bottom: 1.25rem;
}

.signin-error {
  font-size: 0.78rem;
  color: var(--accent);
  display: none;
  margin: 0;
}
.signin-error.visible { display: block; }

.signin-forgot {
  font-size: 0.8rem;
  color: var(--ink-muted);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.signin-forgot:hover { color: var(--accent); }

.signin-divider {
  width: 100%;
  height: 1px;
  background: var(--line);
  margin: 1.5rem 0 1rem;
}

.signin-create-prompt {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin: 0;
}
.signin-create-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.signin-create-link:hover { color: var(--accent); }

.signin-panel {
  display: none;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.signin-panel.open { display: flex; }

.signin-panel-title {
  font-family: 'Chewy', cursive;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin: 0 0 1.25rem;
}

/* ============================================================
   USER PROFILE PAGE
   ============================================================ */
.profile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--bg);
  overflow-y: auto;
}
.profile-overlay.open { display: block; }

.profile-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 64px;
  background: rgba(250, 250, 248, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.profile-topbar-logo {
  font-family: 'Luckiest Guy', cursive;
  font-size: 42px;
  color: #FFD700;
  -webkit-text-stroke: 3px #FFFFFF;
  text-shadow:
    3px 3px 0 #003366,
    6px 6px 8px rgba(0,0,0,.25);
  text-decoration: none;
  white-space: nowrap;
}
.profile-topbar-logo em { font-style: italic; }

.profile-topbar-btn {
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 8px 20px;
  font-family: 'Chewy', cursive;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.profile-topbar-btn:hover { background: var(--accent); transform: translateY(-1px); }

.profile-body {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2.5rem 5rem;
}

.profile-heading {
  font-family: 'Chewy', cursive;
  font-weight: 300;
  font-size: 2.2rem;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin: 0 0 0.25rem;
}

.profile-welcome-name {
  font-size: 0.88rem;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  margin: 0 0 2.5rem;
}

.profile-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.profile-section {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2rem;
}
.profile-section:first-child { grid-column: 1 / -1; }

.profile-section-title {
  font-family: 'Chewy', cursive;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 1.25rem;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.profile-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.profile-field-note {
  font-size: 0.8rem;
  color: var(--ink-muted);
  line-height: 1.6;
  margin: 0 0 0.5rem;
}

.profile-save-msg {
  font-size: 0.78rem;
  margin: 0;
  min-height: 1.1em;
}
.profile-save-msg.success { color: #2a7a4b; }
.profile-save-msg.error   { color: var(--accent); }

.profile-sign-out {
  margin-top: 2.5rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: 'Chewy', cursive;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.profile-sign-out:hover { color: var(--accent); }

@media (max-width: 640px) {
  .profile-sections { grid-template-columns: 1fr; }
  .profile-section:first-child { grid-column: 1; }
  .profile-row { grid-template-columns: 1fr; }
  .profile-topbar { padding: 0 1.25rem; }
  .profile-body { padding: 2rem 1.25rem 4rem; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  border-bottom: 1px solid var(--line);
  animation: fadeUp 0.6s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-left {
  padding: 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
}

.hero-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.hero h1 {
  font-family: 'Chewy', cursive;
  font-weight: 300;
  font-size: clamp(2.8rem, 4vw, 4.2rem);
  line-height: 1.06;
  margin-bottom: 1.5rem;
}
.hero h1 em { font-style: italic; color: var(--accent); }

.hero-sub {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 380px;
  margin-bottom: 2.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  padding: 13px 32px;
  border-radius: 100px;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  font-weight: 400;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  width: fit-content;
}
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); }

.hero-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1px;
  background-color: var(--line);
}

.hero-tile {
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  gap: 0.5rem;
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.hero-tile:hover { background: #1c1c1a; }

.hero-tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}

.hero-tile-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
}
.hero-tile .tile-label {
  font-family: 'Chewy', cursive;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 300;
}
.hero-tile .tile-count {
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}


/* ============================================================
   SHOP CONTROLS
   ============================================================ */
.shop-controls {
  padding: 1.75rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.filter-pills { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.pill {
  background: none;
  border: 1px solid #1565C0;
  color: #1565C0;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  padding: 7px 18px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
}
.pill:hover  { background: rgba(21,101,192,0.12); }
.pill.active { background: #1565C0; color: #fff; border-color: #1565C0; }

.filter-pills .pill {
  background: #fff;
  border-color: #B8860B;
  color: #B8860B;
}
.filter-pills .pill:hover  { background: #B8860B; color: #fff; }
.filter-pills .pill.active {
  background: #B8860B;
  border-color: #B8860B;
  color: #fff;
}

.result-count { font-size: 0.78rem; color: var(--ink-muted); letter-spacing: 0.05em; }


/* ============================================================
   SHOP SECTION
   ============================================================ */
#shop {
  width: 100%;
  display: block;
}


/* ============================================================
   PRODUCT GRID
   ============================================================ */
.product-section {
  padding: 0 3rem 5rem;
  margin-top: 2rem;
  width: 100%;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.product-card {
  background: var(--surface);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: background 0.2s;
  animation: fadeUp 0.45s ease both;
}
.product-card:hover { background: #FEFEF9; }

.card-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(155deg, #F6F5F1 0%, #EEEDE8 100%);
  transition: transform 0.4s ease;
}
.product-card:hover .card-img-placeholder { transform: scale(1.04); }

.item-sub {
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 16, 0.05);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  gap: 0.5rem;
}
.product-card:hover .img-overlay { opacity: 1; }

.quick-add {
  flex: 1;
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 4px;
  font-family: 'Chewy', cursive;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.quick-add:hover  { background: var(--accent); }
.quick-add.added  { background: #2A7A2A; }

.quick-wish {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  line-height: 1;
}
.quick-wish:hover  { background: var(--accent); border-color: var(--accent); }
.quick-wish.wished { background: var(--accent); border-color: var(--accent); }


/* ============================================================
   PRODUCT BADGES
   ============================================================

   HOW TO USE
   ----------
   Every product badge is built from two classes:
     1. A SHAPE class  — controls border-radius and padding
     2. A COLOUR class — controls background, text colour, and border

   Example:
     badge: "vintage"
     → renders as: <span class="card-badge badge-vintage">vintage</span>

   To change a badge's look, update the .badge-{name} rule below.
   To add a brand new badge type, add a product with badge:"yourname"
   and create a matching .badge-yourname rule here.

   ─────────────────────────────────────────────────────────────
   SHAPE OPTIONS  (swap border-radius on .card-badge or per-badge)
   ─────────────────────────────────────────────────────────────
   Full pill     → border-radius: 100px;          (current default)
   Soft rounded  → border-radius: 6px;
   Sharp square  → border-radius: 2px;
   Flag tab      → border-radius: 0 4px 4px 0;   (open on left)

   ============================================================ */

/* Base badge — shared position, size, and font */
.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;           /* default shape: full pill */
}

/* ── VINTAGE ─────────────────────────────────────────────────
   Warm gold outline — classic, aged feel
   Other options (swap in):
     Solid gold:   background: #B8962E; color: #fff8e6; border: 1px solid #B8962E;
     Dark gold:    background: #2d2200; color: #e8c96a; border: 1px solid #5c4a00;
     Amber warm:   background: #FAEEDA; color: #633806; border: 1px solid #FAC775;
     Sepia:        background: #f5efe0; color: #7a5c2e; border: 1px solid #d4b483;
   ──────────────────────────────────────────────────────────── */
.badge-vintage {
  background: rgba(184, 150, 46, 0.12);
  color:      #8a6e1e;
  border:     1px solid rgba(184, 150, 46, 0.6);
}

/* ── RARE ────────────────────────────────────────────────────
   Ink background with gold text — premium, striking
   Other options (swap in):
     Navy gold:    background: #1a2340; color: #e8c96a; border: 1px solid #2a3a6a;
     Purple rich:  background: #534AB7; color: #EEEDFE; border: 1px solid #534AB7;
     Purple soft:  background: #EEEDFE; color: #3C3489; border: 1px solid #AFA9EC;
     Coral soft:   background: #FAECE7; color: #712B13; border: 1px solid #F0997B;
     Coral bold:   background: #D85A30; color: #FAECE7; border: 1px solid #D85A30;
   ──────────────────────────────────────────────────────────── */
.badge-rare {
  background: var(--ink);
  color:      var(--gold);
  border:     1px solid var(--ink);
}

/* ── NEW ─────────────────────────────────────────────────────
   Red accent outline — fresh, draws attention
   Other options (swap in):
     Red bold:     background: #C8102E; color: #fff;    border: 1px solid #C8102E;
     Teal soft:    background: #E1F5EE; color: #0F6E56; border: 1px solid #5DCAA5;
     Teal bold:    background: #1D9E75; color: #E1F5EE; border: 1px solid #1D9E75;
     Blue soft:    background: #E6F1FB; color: #185FA5; border: 1px solid #85B7EB;
     Blue bold:    background: #378ADD; color: #E6F1FB; border: 1px solid #378ADD;
   ──────────────────────────────────────────────────────────── */
.badge-new {
  background: var(--accent-soft);
  color:      var(--accent);
  border:     1px solid var(--accent);
}

/* ── SALE ────────────────────────────────────────────────────
   Bold red — urgent, promotional
   ──────────────────────────────────────────────────────────── */
.badge-sale {
  background: #C8102E;
  color:      #fff;
  border:     1px solid #C8102E;
}

/* ── GRAIL ───────────────────────────────────────────────────
   Deep navy with gold text — reserved for holy grail finds
   ──────────────────────────────────────────────────────────── */
.badge-grail {
  background: #1a2340;
  color:      #e8c96a;
  border:     1px solid #2a3a6a;
}

/* ── COMPLETE ────────────────────────────────────────────────
   Teal — signals a full, complete item with all accessories
   ──────────────────────────────────────────────────────────── */
.badge-complete {
  background: #E1F5EE;
  color:      #0F6E56;
  border:     1px solid #5DCAA5;
}

/* ── INCOMPLETE ──────────────────────────────────────────────
   Amber warm — flags missing parts, honest disclosure
   ──────────────────────────────────────────────────────────── */
.badge-incomplete {
  background: #FAEEDA;
  color:      #633806;
  border:     1px solid #FAC775;
}

/* ── MODERN ERA ──────────────────────────────────────────────
   Amber warm — flags missing parts, honest disclosure
   ──────────────────────────────────────────────────────────── */
.badge-modern {
  background: #FAEEDA;
  color:      #633806;
  border:     1px solid #188f0d;
}

/* ============================================================
   PRODUCT CARD BODY
   ============================================================ */
.card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-cat {
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.4rem;
}

.card-name {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.card-desc {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8rem;
  color: var(--ink-soft);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.2rem;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.card-price {
  font-family: 'Luckiest Guy', cursive;
  font-size: 2.8rem;
  color: #FFD700;
  -webkit-text-stroke: 2.5px #FFFFFF;
  text-shadow:
    3px 3px 0 #003366,
    0 0 14px rgba(255,215,0,0.22),
    6px 6px 10px rgba(0,0,0,.4);
  line-height: 1;
}

.add-btn {
  background: none;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: 'Chewy', cursive;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 7px 16px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
}
.add-btn:hover  { background: var(--ink); color: #fff; border-color: var(--ink); }
.add-btn.added  { background: #2A7A2A;   color: #fff; border-color: #2A7A2A; }
.add-btn.sold-out { opacity: 0.5; cursor: not-allowed; }
.add-btn.sold-out:hover { background: none; color: var(--ink-soft); border-color: var(--line); }

.product-card--sold-out { opacity: 0.72; }

.sold-out-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(17,17,16,0.82);
  color: #fff;
  font-family: 'Roboto Serif', serif;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 2;
  border: 2px solid rgba(255,255,255,0.25);
}

.empty-state {
  grid-column: 1 / -1;
  background: var(--surface);
  padding: 5rem;
  text-align: center;
}
.empty-state p {
  font-family: 'Chewy', cursive;
  font-size: 1.4rem;
  color: var(--ink-muted);
  font-style: italic;
}


/* ============================================================
   CART OVERLAY + DRAWER
   ============================================================ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 16, 0.35);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  /* Reset native <button> styles */
  border: none;
  padding: 0;
  cursor: default;
  display: block;
  width: 100%;
}
.overlay.open { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: -480px;
  width: 440px;
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--line);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transition: right 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.05);
}
.cart-drawer.open { right: 0; }

.wishlist-drawer {
  position: fixed;
  top: 0;
  right: -480px;
  width: 440px;
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--line);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transition: right 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.05);
}
.wishlist-drawer.open { right: 0; }

.wish-add-bag-btn {
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 6px 13px;
  font-family: 'Chewy', cursive;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}
.wish-add-bag-btn:hover { background: var(--accent); }
.wish-add-bag-btn.added { background: #2A7A2A; }

.drawer-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-header h3 {
  font-family: 'Chewy', cursive;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.close-drawer {
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.close-drawer:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.drawer-items { flex: 1; overflow-y: auto; padding: 1.5rem 2rem; }

.drawer-empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--ink-muted);
}
.drawer-empty .empty-icon { font-size: 2.5rem; }
.drawer-empty p {
  font-family: 'Chewy', cursive;
  font-style: italic;
  font-size: 1.1rem;
}

.drawer-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  animation: fadeUp 0.3s ease;
}

.drawer-item-thumb {
  width: 56px;
  height: 56px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.drawer-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.drawer-item-thumb .no-img {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center;
  padding: 4px;
}

.drawer-item-info { flex: 1; min-width: 0; }
.drawer-item-name {
  font-family: 'Chewy', cursive;
  font-size: 1rem;
  line-height: 1.3;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.drawer-item-price { font-size: 0.8rem; color: var(--ink-soft); }

.remove-btn {
  background: none;
  border: none;
  color: var(--ink-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
  transition: color 0.2s;
  line-height: 1;
}
.remove-btn:hover { color: var(--accent); }

.drawer-clear-row {
  padding: 0 2rem 1rem;
  text-align: center;
}
.drawer-clear-btn {
  background: none;
  border: none;
  font-size: 0.8rem;
  color: var(--ink-muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
}
.drawer-clear-btn:hover { color: var(--accent); }

.drawer-footer { padding: 1.5rem 2rem; border-top: 1px solid var(--line); }
.subtotal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.25rem;
}
.subtotal-label  { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-muted); }
.subtotal-amount { font-family: 'Chewy', cursive; font-size: 1.8rem; font-weight: 600; }

.checkout-btn {
  width: 100%;
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 15px;
  border-radius: 4px;
  font-family: 'Chewy', cursive;
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.checkout-btn:hover { background: var(--accent); transform: translateY(-1px); }


/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(70px);
  background: var(--ink);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  padding: 11px 22px;
  border-radius: 100px;
  z-index: 300;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
  opacity: 0;
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }


/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about {
  border-top: 1px solid var(--line);
  padding: 5rem 2.5rem;
  background: var(--surface);
  width: 100%;
  display: block;
}
.about-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.about h2 {
  font-family: 'Chewy', cursive;
  font-weight: 300;
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
.about-text {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.85;
  max-width: 580px;
  margin: 0 auto;
}


/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--line);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
  width: 100%;
  clear: both;
}
.footer-logo {
  font-family: 'Luckiest Guy', cursive;
  font-size: 42px;
  color: #FFD700;
  -webkit-text-stroke: 3px #FFFFFF;
  text-shadow:
    3px 3px 0 #003366,
    6px 6px 8px rgba(0,0,0,.25);
}
footer p { font-size: 0.78rem; color: var(--ink-muted); }
footer a { color: var(--accent); text-decoration: none; }


/* ============================================================
   PRODUCT DETAIL MODAL — IMAGE GALLERY
   ============================================================ */
.modal-img {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--line);
}

.modal-main-img {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  cursor: zoom-in;
  min-height: 0;
  position: relative;
}
.modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.38);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background 0.18s;
  -webkit-user-select: none;
  user-select: none;
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.8rem;
  color: #FFD700;
  -webkit-text-stroke: 1.5px #FFFFFF;
  text-shadow:
    2px 2px 0 #003366,
    4px 4px 6px rgba(0,0,0,.25);
}
.modal-arrow:hover { background: rgba(0,0,0,0.62); }
.modal-arrow--prev { left: 8px; }
.modal-arrow--next { right: 8px; }
.modal-main-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}
.modal-main-img.zoomed { overflow: hidden; cursor: zoom-out; }
.modal-main-img.zoomed img { transform: scale(2.2); transform-origin: center center; transition: none; }

.modal-thumbs {
  display: flex;
  gap: 6px;
  padding: 8px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  overflow-x: auto;
  flex-shrink: 0;
}
.modal-thumb {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border: 2px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  background: var(--surface);
  flex-shrink: 0;
  transition: border-color 0.2s, opacity 0.2s;
  opacity: 0.6;
}
.modal-thumb:hover  { opacity: 1; border-color: var(--ink-soft); }
.modal-thumb.active { border-color: var(--accent); opacity: 1; }

/* ── Consignment styles ───────────────────────────────────────────────────── */
.badge-consignment {
  background: #7b2d8b;
  color: #fff;
}
/* Qualified with .filter-pills and .pill (not just .pill--consignment) so this beats the
   generic .filter-pills .pill / .pill.active goldenrod rules on specificity — otherwise
   those rules (defined earlier but more specific) silently win and the pill just looks
   like every other gold category pill, both at rest and when active/clicked. */
.filter-pills .pill.pill--consignment {
  background: #7b2d8b;
  border-color: #7b2d8b;
  color: #fff;
}
.filter-pills .pill.pill--consignment.active,
.filter-pills .pill.pill--consignment:hover {
  background: #5b2168;
  color: #fff;
  border-color: #5b2168;
}
/* Same specificity-qualification reasoning as .pill--consignment above. */
.filter-pills .pill.pill--collections {
  background: #4CBB17;
  border-color: #4CBB17;
  color: #fff;
}
.filter-pills .pill.pill--collections.active,
.filter-pills .pill.pill--collections:hover {
  background: #398C11;
  color: #fff;
  border-color: #398C11;
}
.consignment-card .card-cat {
  color: #7b2d8b;
}
.consignment-boxes-notice {
  background: #f3e8ff;
  border: 1px solid #c084fc;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  color: #5b21b6;
  margin: 0.75rem 0;
}
.consignment-fee-note {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 0.2rem;
}
.checkout-consignment-badge {
  display: inline-block;
  background: #7b2d8b;
  color: #fff;
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 4px;
}
.consignment-pickup-notice {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: #78350f;
  margin-bottom: 0.75rem;
}
.consignment-pickup-notice p { margin: 0; line-height: 1.6; }
.consignment-contact-note {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.84rem;
  color: #166534;
  margin: 0.75rem 0;
}
.consignment-seller-info {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.seller-info-row {
  display: flex;
  gap: 1rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  align-items: center;
}
.seller-info-row:last-child { border-bottom: none; }
.seller-info-row span { color: var(--ink-soft); min-width: 60px; }
.seller-info-row a { color: var(--accent); text-decoration: none; }


/* ============================================================
   PRODUCT DETAIL MODAL — OVERLAY & LAYOUT
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 16, 0.6);
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--surface);
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--line);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.18);
  display: grid;
  grid-template-columns: 1fr 1fr;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s;
}
.modal-close:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.modal-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: linear-gradient(155deg, #F6F5F1 0%, #EEEDE8 100%);
  font-size: 5rem;
}
.modal-img-placeholder span.sub {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.modal-info { padding: 2.5rem 2rem; display: flex; flex-direction: column; }

.modal-badge {
  display: inline-block;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  font-weight: 500;
  margin-bottom: 1rem;
  width: fit-content;
}

.modal-cat {
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}
.modal-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.modal-divider { width: 40px; height: 2px; background: var(--accent); margin-bottom: 1.25rem; }
.modal-desc {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 1.75rem;
}
.modal-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.modal-price  { font-family: 'Chewy', cursive; font-size: 2.2rem; font-weight: 600; }
.modal-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.modal-add-btn {
  background: var(--ink);
  color: #fff;
  border: none;
  font-family: 'Chewy', cursive;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.modal-add-btn:hover  { background: var(--accent); transform: translateY(-1px); }
.modal-add-btn.added  { background: #2A7A2A; }
.modal-add-btn.sold-out { opacity: 0.5; cursor: not-allowed; }
.modal-add-btn.sold-out:hover { background: var(--ink); transform: none; }

.modal-back-btn {
  background: none;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  font-family: 'Chewy', cursive;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  padding: 12px 20px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
}
.modal-back-btn:hover { border-color: var(--ink); color: var(--ink); }

.modal-wish-btn {
  background: none;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  font-family: 'Chewy', cursive;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  padding: 12px 20px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
}
.modal-wish-btn:hover { border-color: var(--accent); color: var(--accent); }
.modal-wish-btn.wished { background: var(--accent); color: #fff; border-color: var(--accent); }


/* ============================================================
   SUB-FILTER ROWS (Toyline / Release / Title / Volume)
   ============================================================ */

/* Hidden by default; JS toggles via element.style.display = 'flex' */
#titleRow, #seriesRow, #subSeriesRow { display: none; }

.filter-subrow {
  padding: 0.75rem 3rem;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.filter-pill-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-pill-group .pill {
  background: #fff;
  border-color: #B8860B;
  color: #B8860B;
}
.filter-pill-group .pill:hover  { background: #B8860B; color: #fff; }
.filter-pill-group .pill.active {
  background: #B8860B;
  border-color: #B8860B;
  color: #fff;
}

.sub-filter-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-right: 0.25rem;
  flex-shrink: 0;
}

/* ============================================================
   SORT ROW
   ============================================================ */
#sortRow {
  display: flex;
  padding: 0.75rem 3rem;
  border-bottom: 1px solid var(--line);
  align-items: center;
  gap: 0.75rem;
}

.sort-select {
  background: #fff;
  border: 1px solid #B8860B;
  color: #B8860B;
  font-family: 'Chewy', cursive;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  padding: 7px 28px 7px 14px;
  border-radius: 100px;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23B8860B'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

/* ============================================================
   CHECKOUT OVERLAY
   ============================================================ */
.checkout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17,17,16,0.7);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.checkout-overlay.open { opacity: 1; pointer-events: all; }

.checkout-modal {
  background: var(--surface);
  width: 100%;
  max-width: 880px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--line);
  box-shadow: 0 32px 80px rgba(0,0,0,0.22);
  position: relative;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.checkout-overlay.open .checkout-modal { transform: translateY(0) scale(1); }

.checkout-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s;
}
.checkout-close:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.checkout-header {
  padding: 2.5rem 2.5rem 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.5rem;
}
.checkout-title {
  font-family: 'Chewy', cursive;
  font-weight: 300;
  font-size: 2rem;
  margin-bottom: 0.25rem;
}
.checkout-subtitle {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.checkout-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  padding: 2rem 2.5rem 2.5rem;
}

.checkout-section-title {
  font-family: 'Chewy', cursive;
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

/* Order Summary */
.checkout-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
}
.checkout-item-name { color: var(--ink); flex: 1; line-height: 1.4; }
.checkout-item-meta { color: var(--ink-soft); white-space: nowrap; }
.checkout-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0 0.4rem;
  font-family: 'Chewy', cursive;
  font-size: 1.5rem;
  font-weight: 600;
}
.checkout-shipping-note {
  font-size: 0.72rem;
  color: var(--ink-muted);
  letter-spacing: 0.03em;
}

.hidden { display: none !important; }

.buy-collection-btn {
  padding: 0.45rem 1.1rem;
  background: var(--gold, #FFD700);
  color: var(--navy, #1a1a3e);
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.buy-collection-btn:hover { opacity: 0.85; }
.buy-collection-btn.pulse-highlight { animation: collectionPulse 1.6s ease; }
@keyframes collectionPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,215,0,0.7); }
  70%  { box-shadow: 0 0 0 16px rgba(255,215,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,215,0,0); }
}

/* Individual issues that are only sellable as part of a collection —
   grayed out so they read as "not a normal add" without being truly disabled
   (clicking them still navigates to the collection's Buy button). */
.quick-add.collection-locked,
.add-btn.collection-locked {
  opacity: 0.5;
  background: var(--line, #ccc);
  color: var(--ink-soft, #666);
  border-color: var(--line, #ccc);
}
.quick-add.collection-locked:hover,
.add-btn.collection-locked:hover {
  opacity: 0.7;
  background: var(--line, #ccc);
  color: var(--ink-soft, #666);
}

/* Subtotal / shipping line rows */
.checkout-line-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.35rem 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.checkout-total-row { border-top: 1px solid var(--line); }

/* Shipping calculator section */
.checkout-subsection-title {
  font-family: 'Chewy', cursive;
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  margin-top: 1.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}

.shipping-form { display: flex; flex-direction: column; gap: 0.6rem; }
.shipping-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }

.address-suggest-wrap { position: relative; }
.address-suggestions {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 8px 8px;
  z-index: 200;
  max-height: 220px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.address-suggestions.open { display: block; }
.address-suggestion-item {
  padding: 9px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}
.address-suggestion-item:last-child { border-bottom: none; }
.address-suggestion-item:hover { background: var(--accent-soft); }
.address-suggest-street {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
}
.address-suggest-detail {
  display: block;
  font-size: 0.74rem;
  color: var(--ink-muted);
  margin-top: 1px;
}

.shipping-estimate-note {
  font-size: 0.72rem;
  color: var(--ink-muted);
  line-height: 1.55;
  margin: 0.75rem 0;
}
.shipping-error { font-size: 0.82rem; color: var(--accent); margin-top: 0.5rem; line-height: 1.7; }
.shipping-error code { background:var(--bg); border:1px solid var(--line); border-radius:4px; padding:1px 6px; font-size:0.8rem; color:var(--ink); }

.shipping-option-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 0.4rem;
  transition: border-color 0.2s, background 0.2s;
}
.shipping-option-row:hover { border-color: var(--ink-soft); }
.shipping-option-row:has(input:checked) { border-color: var(--ink); background: var(--bg); }
.shipping-option-row input[type="radio"] { flex-shrink: 0; cursor: pointer; }
.shipping-option-info { flex: 1; min-width: 0; }
.shipping-option-name { font-size: 0.85rem; font-weight: 400; display: block; color: var(--ink); }
.shipping-option-days { font-size: 0.72rem; color: var(--ink-muted); display: block; margin-top: 1px; }
.shipping-option-price {
  font-family: 'Chewy', cursive;
  font-size: 1.1rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink);
}

/* Stripe embedded checkout */
.stripe-embed-panel { padding-bottom: 0.5rem; }
.stripe-loading {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
}
#checkout { width: 100%; }

/* Payment order breakdown (shown inside each payment method panel) */
.payment-breakdown {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin: 0.85rem 0;
}
.payment-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.2rem 0;
  font-size: 0.83rem;
  color: var(--ink-soft);
}
.payment-breakdown-row.muted { color: var(--ink-muted); font-style: italic; }
.payment-breakdown-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.5rem 0 0;
  margin-top: 0.35rem;
  border-top: 1px solid var(--line);
  font-family: 'Chewy', cursive;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
}

/* Payment Methods */
.payment-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}
.payment-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: none;
  cursor: pointer;
  font-family: 'Chewy', cursive;
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-align: left;
  transition: all 0.2s;
}
.payment-option:hover { border-color: var(--ink); color: var(--ink); }
.payment-option.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.payment-option-icon { font-size: 1.15rem; flex-shrink: 0; }
.payment-option-label { font-weight: 400; letter-spacing: 0.03em; }

/* Payment Detail Panel */
.payment-detail {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.4rem;
  animation: fadeUp 0.22s ease;
}
.payment-detail-intro { font-size: 0.86rem; color: var(--ink-soft); margin-bottom: 0.75rem; line-height: 1.5; }
.payment-info-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.8rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
  word-break: break-all;
}
.payment-detail-note { font-size: 0.77rem; color: var(--ink-muted); line-height: 1.65; margin-bottom: 1.1rem; }

.customer-info-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1.25rem 0 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--accent-soft);
}
.customer-info-heading {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 0.25rem;
}
.required-note { color: var(--accent); font-size: 0.7rem; text-transform: none; letter-spacing: 0; }

.payment-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }

.payment-cta {
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  padding: 10px 24px;
  border-radius: 100px;
  font-family: 'Chewy', cursive;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.payment-cta:hover { background: var(--accent); transform: translateY(-1px); }

.payment-cta-outline {
  display: inline-flex;
  align-items: center;
  background: none;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 10px 24px;
  border-radius: 100px;
  font-family: 'Chewy', cursive;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s;
}
.payment-cta-outline:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

/* Invoice Form */
.invoice-form { display: flex; flex-direction: column; gap: 0.65rem; }
.invoice-field {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  font-family: 'Chewy', cursive;
  font-size: 0.85rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}
.invoice-field:focus { border-color: var(--ink); }
.invoice-field::placeholder { color: var(--ink-muted); }

/* Confirmation screen */
.payment-confirm { text-align: center; }
.confirm-icon {
  width: 48px;
  height: 48px;
  background: #E1F5EE;
  color: #0F6E56;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 1rem;
}
.confirm-title {
  font-family: 'Chewy', cursive;
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.confirm-note { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.65; margin-bottom: 1.25rem; }

/* ============================================================
   PAYMENT SHIPPING SECTION (inside payment detail panels)
   ============================================================ */
.payment-divider { border: none; border-top: 1px solid var(--line); margin: 1.1rem 0; }
.payment-ship-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
}

/* ============================================================
   ADMIN PANEL
   ============================================================ */
#adminPanel {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
#adminPanel.visible { display: flex; }

/* Test banner */
.test-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 99999;
  background: #ff4d00;
  color: #fff;
  text-align: center;
  font-family: monospace;
  font-size: 13px;
  font-weight: bold;
  padding: 6px;
  letter-spacing: 1px;
}
.test-banner-close {
  margin-left: 16px;
  background: rgba(0,0,0,0.25);
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
}
.test-banner-spacer { height: 34px; }

/* Login */
.admin-login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
}
.admin-login-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: static;
  background: none;
}
.admin-login-box {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 3rem;
  max-width: 380px;
  width: 100%;
  text-align: center;
}
.admin-login-logo {
  font-family: 'Chewy', cursive;
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.admin-login-logo em { font-style: italic; color: var(--accent); }

/* Admin view panels — JS adds .visible to show one at a time */
.admin-view { display: none; flex-direction: column; flex: 1; overflow: hidden; }
.admin-view.visible { display: flex; }
.admin-login-sub { font-size: 0.78rem; color: var(--ink-muted); margin-bottom: 2rem; }
.admin-login-form { display: flex; flex-direction: column; gap: 0.75rem; }
.admin-login-error { font-size: 0.78rem; color: var(--accent); display: none; margin-top: 0.5rem; }

/* Top bar */
.admin-topbar {
  background: rgba(250, 250, 248, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 0 2.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.admin-topbar-sticky {
  position: sticky;
  top: 0;
  z-index: 50;
}
.admin-topbar-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.admin-signout-btn { background: var(--accent) !important; }

/* Tab nav */
.admin-tab-nav {
  display: flex;
  gap: 0.25rem;
}
.admin-tab-btn {
  background: rgba(0,0,0,0.05);
  border: none;
  color: var(--ink-soft);
  border-radius: 6px;
  padding: 6px 16px;
  font-family: 'Chewy', cursive;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.admin-tab-btn:hover  { background: rgba(0,0,0,0.1); color: var(--ink); }
.admin-tab-btn.active { background: var(--ink); color: #fff; font-weight: 500; }

/* Users list */
.admin-users-header-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.5fr 1fr 2fr 0.9fr 80px;
  gap: 1rem;
  padding: 0.6rem 1.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--line);
}
.admin-user-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.5fr 1fr 2fr 0.9fr 80px;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.83rem;
  transition: background 0.15s;
}
.admin-user-row:hover { background: var(--accent-soft); }
.admin-user-name     { font-weight: 500; color: var(--ink); }
.admin-user-username { color: var(--ink-soft); font-family: monospace; font-size: 0.8rem; }
.admin-user-email    { color: var(--ink-soft); }
.admin-user-phone    { color: var(--ink-soft); font-size: 0.82rem; }
.admin-user-address  { color: var(--ink-muted); font-size: 0.78rem; }
.admin-user-date     { color: var(--ink-muted); font-size: 0.78rem; }
.admin-user-count    { font-size: 0.78rem; color: var(--ink-muted); letter-spacing: 0.05em; }
.admin-user-delete-btn {
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink-muted);
  font-size: 0.75rem;
  padding: 4px 10px;
  cursor: pointer;
  font-family: 'Chewy', cursive;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.admin-user-delete-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.admin-item-qty      { color: var(--ink-muted); }
.admin-item-shipping { color: var(--ink-muted); }
.admin-topbar-logo {
  font-family: 'Luckiest Guy', cursive;
  font-size: 42px;
  color: #FFD700;
  -webkit-text-stroke: 3px #FFFFFF;
  text-shadow: 3px 3px 0 #003366, 6px 6px 8px rgba(0,0,0,.25);
  white-space: nowrap;
  letter-spacing: normal;
  text-transform: none;
}
.admin-topbar-logo em { font-style: italic; }
.admin-topbar-btn {
  background: rgba(0,0,0,0.05);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: 'Chewy', cursive;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  padding: 7px 18px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s;
}
.admin-topbar-btn:hover { background: rgba(0,0,0,0.1); }
.admin-topbar-btn--back { margin-left: auto; }

/* Scrollable body */
.admin-body { flex: 1; overflow-y: auto; }

/* Summary cards */
.admin-summary {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 2px solid var(--line);
}
.admin-stat { background: var(--surface); padding: 1.25rem 1.5rem; }
.admin-stat-value {
  font-family: 'Chewy', cursive;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.admin-stat-value.pending-color { color: var(--accent); }
.admin-stat-value.profit-color  { color: #2e7d32; }
.admin-stat-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Orders list */
.admin-orders-section { padding: 2rem 2.5rem; }
.admin-orders-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.admin-orders-title {
  font-family: 'Chewy', cursive;
  font-size: 1.3rem;
  font-weight: 400;
}
.admin-show-completed {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.admin-order-row {
  display: grid;
  grid-template-columns: 90px 1fr 120px 90px 100px 90px;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  margin-bottom: 0.5rem;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.admin-order-row:hover { border-color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.admin-order-id { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.04em; color: var(--ink); }
.admin-order-customer { font-size: 0.88rem; color: var(--ink); }
.admin-order-customer span { font-size: 0.75rem; color: var(--ink-muted); display: block; margin-top: 1px; }
.admin-order-method { font-size: 0.78rem; color: var(--ink-soft); }
.admin-order-total { font-family: 'Chewy', cursive; font-size: 1.15rem; font-weight: 600; }
.admin-order-date { font-size: 0.75rem; color: var(--ink-muted); }

.admin-badge {
  font-size: 0.63rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
}
.admin-badge-pending  { background: rgba(184,150,46,0.12); color: #8a6e1e; border: 1px solid rgba(184,150,46,0.5); }
.admin-badge-completed { background: #E1F5EE; color: #0F6E56; border: 1px solid #5DCAA5; }

.admin-empty {
  padding: 3rem;
  text-align: center;
  color: var(--ink-muted);
  font-family: 'Chewy', cursive;
  font-style: italic;
  font-size: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 4px;
}

/* Order detail */
.admin-detail-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  gap: 1rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.admin-detail-order-id {
  font-family: 'Chewy', cursive;
  font-size: 1.6rem;
  font-weight: 300;
  margin-bottom: 0.3rem;
}
.admin-detail-meta-row {
  font-size: 0.8rem;
  color: var(--ink-soft);
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.admin-detail-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.admin-tracking-input { width: 220px; flex-shrink: 0; }
.invoice-field.field-error { border-color: #c0392b !important; box-shadow: 0 0 0 2px rgba(192,57,43,0.15); }

.admin-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.admin-detail-col {
  padding: 2rem 2.5rem;
  border-right: 1px solid var(--line);
}
.admin-detail-col:last-child { border-right: none; padding-right: 0; }
.admin-detail-col-title {
  font-size: 0.63rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}
.admin-ship-name  { font-size: 1.05rem; font-weight: 500; margin-bottom: 0.25rem; }
.admin-ship-email { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 0.5rem; }
.admin-ship-address { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.65; }

.admin-packaging-block {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.admin-packaging-label {
  font-size: 0.63rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}
.admin-packaging-select {
  width: 100%;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-size: 0.88rem;
  color: var(--ink);
  cursor: pointer;
}
.admin-packaging-select:disabled { opacity: 0.55; cursor: default; }

.admin-item-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}
.admin-item-name  { flex: 1; line-height: 1.4; }
.admin-item-price { color: var(--ink-soft); white-space: nowrap; text-align: right; }
.admin-items-total {
  display: flex;
  justify-content: space-between;
  padding: 0.9rem 0 0;
  font-family: 'Chewy', cursive;
  font-size: 1.35rem;
  font-weight: 600;
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  .hero                { grid-template-columns: 1fr; }
  .hero-right          { display: none; }
  .hero-left           { padding: 3rem 1.5rem; }
  header               { padding: 0 1.25rem; }
  .header-search       { display: none; }
  .shop-controls       { padding: 1.25rem; }
  .product-section     { padding: 0 1rem 4rem; margin-top: 1.5rem; }
  .cart-drawer         { width: 100%; right: -100%; }
  .wishlist-drawer     { width: 100%; right: -100%; }
  footer               { padding: 2rem 1.5rem; }
}

@media (max-width: 640px) {
  .modal               { grid-template-columns: 1fr; max-height: 95vh; }
  .modal-img           { aspect-ratio: 4/3; border-right: none; border-bottom: 1px solid var(--line); }
  .modal-info          { padding: 1.5rem; }
  .checkout-body       { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem; }
  .checkout-header     { padding: 1.5rem 1.5rem 1rem; }
  .admin-summary       { grid-template-columns: 1fr 1fr; }
  .admin-stat          { padding: 1rem 1.25rem; }
  .admin-orders-section { padding: 1.5rem; }
  .admin-order-row     { grid-template-columns: 80px 1fr auto; }
  .admin-order-method, .admin-order-date { display: none; }
  .admin-detail-grid   { grid-template-columns: 1fr; }
  .admin-detail-col    { border-right: none; border-bottom: 1px solid var(--line); padding: 1.5rem; }
  .admin-detail-info-bar { padding: 1rem 1.5rem; }
  .admin-topbar        { padding: 0 1.5rem; }
  .rpt-summary, .rpt-charts-row, .rpt-tables-row { grid-template-columns: 1fr; }
  .rpt-card, .rpt-chart-panel, .rpt-table-panel  { border-right: none; border-bottom: 1px solid var(--line); }
  .rpt-chart-wrap { max-width: 100%; }
}


/* ============================================================
   REPORTS TAB
   ============================================================ */

/* Summary cards */
.rpt-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.rpt-card {
  padding: 1.75rem 2rem;
  border-right: 1px solid var(--line);
}
.rpt-card:last-child { border-right: none; }
.rpt-card--highlight { background: var(--accent-soft); }
.rpt-card-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}
.rpt-card-count {
  font-family: 'Chewy', cursive;
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 0.2rem;
}
.rpt-card-sub {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}
.rpt-card-rev {
  font-family: 'Chewy', cursive;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--accent);
}
.rpt-green { color: #2e7d32; }
.rpt-gold  { color: #FFD700; }

/* Charts row */
.rpt-charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.rpt-chart-panel {
  padding: 2rem 2.5rem;
  border-right: 1px solid var(--line);
}
.rpt-chart-panel:last-child { border-right: none; }
.rpt-panel-title {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.rpt-panel-sub {
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.78rem;
}
.rpt-chart-wrap {
  max-width: 380px;
  margin: 0 auto;
  min-height: 180px;
}
.rpt-chart-empty {
  color: var(--ink-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 3rem 0;
  font-style: italic;
}

/* Tables row */
.rpt-tables-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.rpt-table-panel {
  padding: 2rem 2.5rem;
  border-right: 1px solid var(--line);
  background: var(--surface);
}
.rpt-table-panel:last-child { border-right: none; }
.rpt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  table-layout: fixed;
}
.rpt-table th {
  text-align: left;
  font-size: 0.66rem;
  white-space: normal;
  word-break: break-word;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 400;
  border-bottom: 1px solid var(--line);
  padding: 0 0.5rem 0.6rem;
}
.rpt-table td {
  padding: 0.5rem 0.5rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.rpt-table tr:last-child td { border-bottom: none; }
.rpt-table tr:hover td      { background: var(--accent-soft); }
.rpt-totals-row td {
  background: var(--accent-soft);
  border-top: 2px solid var(--line);
  font-size: 0.82rem;
  padding: 0.55rem 0.75rem;
}
.rpt-r   { text-align: right; font-variant-numeric: tabular-nums; }
.rpt-rev { color: var(--ink); }
.rpt-empty {
  text-align: center;
  color: var(--ink-muted);
  padding: 1.5rem 0;
  font-style: italic;
}

/* ════════════════════════════════════════════════════════════════════════
   VERTICAL TICKER RAILS — mock-up approved 2026-07-26. To remove entirely:
   delete this block, delete the two `.ticker-rail` divs in index_15.html
   right after <body>, delete the buildTickerRails() call + function, and
   remove `--rail-w` from the :root block above.

   Deliberately NOT reserving layout space (no body margin) — the site keeps
   its original full width so nothing (header buttons, the Bag icon, etc.)
   gets pushed off-screen or forces horizontal scrolling. --rail-w is a thin
   overlay sitting mostly within the header's own 2.5rem (40px) side padding;
   it runs a few px past that padding to fit the larger ticker text without
   clipping, so keep an eye on whether it starts covering the wordmark/Bag
   icon and shrink the text (rather than widen the rail further) if so.
   ════════════════════════════════════════════════════════════════════════ */

.ticker-rail {
  position: fixed;
  top: 0;
  bottom: 0;
  width: var(--rail-w);
  background: #fff;
  z-index: 150;
  overflow: hidden;
}
.ticker-rail--left  { left: 0;  border-right: 3px solid var(--accent); }
.ticker-rail--right { right: 0; border-left:  3px solid var(--accent); }

/* Pinned logo badges at the top/bottom of each rail — sit above the scrolling
   ticker track (higher z-index) with a solid white backing so the ticker text
   visibly scrolls behind/underneath them rather than through them. */
.ticker-rail-logo {
  position: absolute;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 2;
  background: #fff;
  pointer-events: none;
}
.ticker-rail-logo--top    { top: 0; }
.ticker-rail-logo--bottom { bottom: 0; }

.ticker-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.ticker-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ticker-rail--left  .ticker-track { animation: tickerDown 34s linear infinite; }
.ticker-rail--right .ticker-track { animation: tickerUp   34s linear infinite; }
.ticker-rail:hover .ticker-track { animation-play-state: paused; }

@keyframes tickerDown { from { transform: translateY(-50%); } to { transform: translateY(0%); } }
@keyframes tickerUp   { from { transform: translateY(0%); }  to { transform: translateY(-50%); } }

.ticker-item {
  writing-mode: vertical-rl;
  text-orientation: sideways;
  white-space: nowrap;
  line-height: 1;
  font-family: 'Luckiest Guy', cursive;
  font-size: 2rem;
  letter-spacing: 0.03em;
  color: var(--gold);
  -webkit-text-stroke: 1.5px #fff;
  text-shadow: 3px 3px 0 #003366;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.ticker-item:last-child { border-bottom: none; }

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none !important; }
}

@media (max-width: 720px) {
  :root { --rail-w: 34px; }
  .ticker-item { font-size: 1.5rem; padding: 14px 0; -webkit-text-stroke: 1px #fff; }
}
