/* elliotfloyd.com — Streamlined Dark-Luxury Merch & Art Poster Store
   Unified structural architecture with elliottfloyed.com (sticky pill nav, split grids, cards, responsive engine) */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

:root {
  --bg:        #000000;
  --bg-soft:   #080808;
  --card:      #0d0d0d;
  --card-hi:   #141414;
  --ink:       #f4efe6;
  --muted:     #a8a296;
  --quiet:     #736e64;
  --rule:      #222222;
  --accent:    #d4af6a;
  --accent-hi: #e5c687;
  --emerald:   #2d6a4f;
  --emerald-bg:#13241b;
  --pig-pink:  #d98a9c;
  --ok-bg:     #12261a;
  --ok-bd:     #2d6a4f;
  --err-bg:    #2b1414;
  --err-bd:    #b34728;
  --serif:     "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans:      -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  --mono:      ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --maxw:      72rem;
  --gutter:    clamp(1rem, 4vw, 2.5rem);
}

html[data-compact="1"] {
  --gutter: 0.9rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--accent-hi);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
a:hover { color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Sticky Top Navigation Bar — Streamlined in the same fashion as elliottfloyed.com */
.site-head-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 12, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.site-head {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.75rem var(--gutter);
  display: flex;
   flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}
.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.brand:hover { color: var(--accent-hi); }
.brand-sig {
  width: 2.15rem;
  height: 1.68rem;
  display: inline-block;
  flex-shrink: 0;
}
.brand-sub {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--muted);
  border-left: 1px solid var(--rule);
  padding-left: 0.65rem;
}
.site-head nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
}
.site-head nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.38rem 0.78rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.site-head nav a:hover {
  color: var(--ink);
  background: var(--card);
  border-color: var(--rule);
}
.site-head nav a[aria-current="page"] {
  background: var(--card-hi);
  color: var(--ink);
  border-color: rgba(212, 175, 106, 0.45);
  font-weight: 600;
}
.site-head nav a.nav-cta {
  background: var(--accent);
  color: #0b0c0a;
  font-weight: 700;
  border-color: var(--accent);
}
.site-head nav a.nav-cta:hover {
  background: var(--accent-hi);
  color: #0b0c0a;
}

/* Page Hero & Section Headers */
.page-hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(1.75rem, 4.5vw, 3.25rem) var(--gutter) 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.kicker {
  font-size: 0.76rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 0.55rem;
}
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.page-hero h1 span {
  display: block;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.1rem, 2.3vw, 1.45rem);
  color: var(--muted);
  margin-top: 0.35rem;
}
.page-lead {
  font-size: 1.04rem;
  color: var(--muted);
  max-width: 58ch;
  margin: 0;
}

/* Sections & Grids */
.sec {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(1.85rem, 4.5vw, 3rem) var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.5rem;
}
.sec h2 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 1.95rem);
  line-height: 1.2;
  margin: 0 0 0.4rem;
  color: var(--ink);
}
.sec-intro {
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 1.4rem;
}

/* Hero Showcase Grid (Drop 01 + Poster Switcher) */
.drop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
@media (min-width: 820px) {
  .drop-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.art-frame {
  position: relative;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
  margin: 0;
  cursor: zoom-in;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
  transition: border-color 0.2s, transform 0.2s;
}
.art-frame:hover {
  border-color: rgba(212, 175, 106, 0.55);
}
.art-frame img {
  width: 100%;
  height: auto;
  display: block;
}
.art-frame-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.95rem;
  background: rgba(18, 20, 17, 0.95);
  border-top: 1px solid var(--rule);
  font-size: 0.8rem;
  color: var(--muted);
}
.sig-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--accent-hi);
  background: rgba(212, 175, 106, 0.1);
  border: 1px solid rgba(212, 175, 106, 0.3);
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
}

/* Product Meta & Interactive Option Selector */
.drop-panel {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: clamp(1.25rem, 3vw, 2rem);
}
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  background: rgba(212, 175, 106, 0.14);
  color: var(--accent-hi);
  border: 1px solid rgba(212, 175, 106, 0.32);
}
.badge-live {
  background: var(--emerald-bg);
  color: #74c69d;
  border-color: var(--emerald);
}
.badge-pink {
  background: rgba(217, 138, 156, 0.14);
  color: #f2b5c4;
  border-color: rgba(217, 138, 156, 0.35);
}

.drop-title {
  font-family: var(--serif);
  font-size: clamp(1.65rem, 3.2vw, 2.25rem);
  margin: 0 0 0.35rem;
  line-height: 1.15;
}
.drop-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0 0 1rem;
}
.drop-price {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--ink);
}
.drop-price-note {
  font-size: 0.86rem;
  color: var(--muted);
}
.drop-desc {
  color: var(--muted);
  font-size: 0.96rem;
  margin: 0 0 1.25rem;
}

/* Format & Size Pill Selectors */
.opt-group {
  margin-bottom: 1.15rem;
}
.opt-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.45rem;
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.opt-pill {
  appearance: none;
  background: var(--bg-soft);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.opt-pill:hover {
  border-color: var(--accent);
}
.opt-pill[aria-pressed="true"],
.opt-pill.active {
  background: rgba(212, 175, 106, 0.16);
  border-color: var(--accent);
  color: var(--accent-hi);
}

/* Buttons */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.1rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--accent);
  color: #0b0c0a;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.74rem 1.25rem;
  border-radius: 8px;
  border: 2px solid var(--accent);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:hover {
  background: var(--accent-hi);
  border-color: var(--accent-hi);
  color: #0b0c0a;
}
.btn:active { transform: translateY(1px); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn-outline:hover {
  background: var(--card-hi);
  border-color: var(--accent);
  color: var(--accent-hi);
}
.btn-sm {
  font-size: 0.82rem;
  padding: 0.46rem 0.82rem;
  border-radius: 6px;
}

/* Gallery Grid */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.35rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18.5rem, 1fr));
  gap: 1.25rem;
}
.gallery-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s, transform 0.2s;
}
.gallery-card:hover {
  border-color: rgba(212, 175, 106, 0.5);
  transform: translateY(-2px);
}
.gallery-img-btn {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: #080907;
  width: 100%;
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-img-btn.portrait {
  aspect-ratio: 4 / 4.6;
}
.gallery-img-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-card:hover .gallery-img-btn img {
  transform: scale(1.03);
}
.zoom-tag {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: rgba(11, 12, 10, 0.78);
  color: var(--ink);
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  pointer-events: none;
}
.gallery-body {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}
.gallery-meta-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}
.gallery-title {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}
.gallery-price {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent-hi);
  white-space: nowrap;
}
.gallery-sub {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}
.gallery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 0.4rem;
}

/* Cards & Split Grid (Matching elliottfloyed.com) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.15rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
}
.card-highlight {
  background: linear-gradient(180deg, #191d17 0%, #131612 100%);
  border-color: rgba(212, 175, 106, 0.4);
}
.card h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 0.25rem 0 0.35rem;
  color: var(--ink);
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: start;
}
@media (min-width: 820px) {
  .split-grid {
    grid-template-columns: 1fr 1.15fr;
  }
}
.info-stack {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* Forms & Live Order Checkout */
.form-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: clamp(1.25rem, 3vw, 2rem);
}
.form-card h2, .form-card h3 {
  font-family: var(--serif);
  margin: 0 0 0.35rem;
  font-size: 1.4rem;
}
.form-card > p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 1.15rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}
.field .hint {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-weight: 400;
  padding: 0.62rem 0.78rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--ink);
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: none;
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
@media (min-width: 520px) {
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.order-summary-box {
  background: var(--bg-soft);
  border: 1px solid rgba(212, 175, 106, 0.35);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin: 0.85rem 0 1.1rem;
}
.order-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 0.22rem 0;
}
.order-summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--accent-hi);
  border-top: 1px solid var(--rule);
  margin-top: 0.45rem;
  padding-top: 0.55rem;
}

.form-ok {
  padding: 1rem 1.15rem;
  border-radius: 10px;
  background: var(--ok-bg);
  border: 1px solid var(--ok-bd);
  color: #d8f3dc;
  font-size: 0.93rem;
  margin: 0.9rem 0;
}
.form-ok strong {
  display: block;
  font-size: 1.02rem;
  color: #95d5b2;
  margin-bottom: 0.25rem;
}
.form-error {
  padding: 0.75rem 0.95rem;
  border-radius: 8px;
  background: var(--err-bg);
  border: 1px solid var(--err-bd);
  color: #ffb4a2;
  font-size: 0.88rem;
  margin: 0.75rem 0;
}

/* Spec Tables */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 0.65rem;
}
.spec-table th,
.spec-table td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--rule);
}
.spec-table th {
  color: var(--accent-hi);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.spec-table td {
  color: var(--muted);
}

/* Lightbox Modal for Full-Screen Zoom */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6, 7, 6, 0.94);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.viewer[hidden] { display: none !important; }
.viewer-top {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  left: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.viewer-top > * { pointer-events: auto; }
.viewer-close {
  appearance: none;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 999px;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.viewer-stage {
  max-width: min(92vw, 1080px);
  max-height: 76vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.viewer-stage img {
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--rule);
  transition: transform 0.15s ease-out;
}
.viewer-bar {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}
.viewer-caption {
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--ink);
  margin: 0;
}

/* Footer */
.site-foot {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  padding: 2rem var(--gutter) 2.5rem;
  color: var(--muted);
  font-size: 0.86rem;
}
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}
.foot-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.foot-nav a:hover { color: var(--accent-hi); }
.logline {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: var(--quiet);
}

/* Merch Factory Array Cards */
.factory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 1.15rem;
}
.factory-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.factory-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--card-hi);
}
.factory-plate {
  position: relative;
  background: radial-gradient(circle at 50% 42%, #1d211b 0%, #0d0f0c 78%);
  border-bottom: 1px solid var(--rule);
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.factory-plate svg {
  width: 100%;
  height: 100%;
  max-height: 128px;
}
.factory-stage-pill {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  background: rgba(11, 12, 10, 0.86);
  border: 1px solid var(--rule);
  color: var(--accent-hi);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.18rem 0.48rem;
  border-radius: 999px;
}
.factory-stage-pill.live {
  border-color: rgba(102, 224, 163, 0.45);
  color: var(--ok);
}
.factory-stamp-tag {
  position: absolute;
  bottom: 0.45rem;
  right: 0.55rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  opacity: 0.88;
}
.factory-body {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}
.factory-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}
.factory-title {
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--ink);
  margin: 0;
}
.factory-price {
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-hi);
  white-space: nowrap;
}
.factory-desc {
  font-size: 0.84rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.48;
  flex: 1;
}
.factory-meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  margin-top: 0.15rem;
}

/* ---- Sticky Header Cart Pill & Slide-Over Shopping Bag Drawer ---- */
.cart-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(200, 155, 82, 0.55);
  background: rgba(200, 155, 82, 0.14);
  color: var(--accent-hi);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}
.cart-pill-btn:hover {
  background: var(--accent);
  color: #111;
  border-color: var(--accent-hi);
}
.cart-pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: #111;
  font-size: 0.74rem;
  font-weight: 700;
}
.cart-pill-btn:hover .cart-pill-count {
  background: #111;
  color: var(--accent-hi);
}

.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(6, 7, 6, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: flex-end;
}
.cart-drawer-backdrop[hidden] {
  display: none !important;
}
.cart-drawer {
  width: min(460px, 100vw);
  height: 100%;
  background: var(--bg-elev);
  border-left: 1px solid var(--rule-hi);
  display: flex;
  flex-direction: column;
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.65);
}
.cart-drawer-head {
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-drawer-head h2 {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin: 0;
}
.cart-drawer-body {
  padding: 1.1rem 1.35rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.cart-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.75rem;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 10px;
}
.cart-item img {
  width: 56px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--rule);
}
.cart-item-title {
  font-family: var(--serif);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
  display: block;
}
.cart-item-sub {
  font-size: 0.78rem;
  color: var(--muted);
  display: block;
  margin-top: 0.12rem;
}
.cart-item-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.45rem;
}
.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  border: 1px solid var(--rule-hi);
  background: var(--bg-elev);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.82rem;
  cursor: pointer;
}
.qty-btn:hover {
  border-color: var(--accent);
  color: var(--accent-hi);
}
.cart-item-price {
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent-hi);
  text-align: right;
}
.cart-drawer-foot {
  padding: 1.1rem 1.35rem 1.35rem;
  border-top: 1px solid var(--rule);
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.promo-row {
  display: flex;
  gap: 0.45rem;
}
.promo-row input {
  flex: 1;
  background: var(--bg-elev);
  color: var(--ink);
  border: 1px solid var(--rule-hi);
  border-radius: 7px;
  padding: 0.45rem 0.65rem;
  font-family: var(--mono);
  font-size: 0.8rem;
}

/* ---- Inline Gallery Size Selectors ---- */
.gallery-sale-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-top: 0.35rem;
}
.gallery-sale-select {
  width: 100%;
  background: var(--bg-soft);
  color: var(--ink);
  border: 1px solid var(--rule-hi);
  border-radius: 6px;
  padding: 0.38rem 0.5rem;
  font-family: var(--sans);
  font-size: 0.78rem;
}

/* ---- Official Tax Invoice & Receipt Card ---- */
.tax-invoice-card {
  margin-top: 1.1rem;
  padding: 1.35rem;
  border-radius: 12px;
  border: 1px solid rgba(102, 224, 163, 0.45);
  background: #101510;
  color: var(--ink);
}
.tax-invoice-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--rule);
}
.tax-invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.85rem 0;
  font-size: 0.84rem;
}
.tax-invoice-table th,
.tax-invoice-table td {
  padding: 0.48rem 0.4rem;
  border-bottom: 1px solid var(--rule);
  text-align: left;
}
.tax-invoice-table th {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--muted);
}
.sale-toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 300;
  background: #142219;
  border: 1px solid var(--ok);
  color: #d9fbee;
  padding: 0.75rem 1.1rem;
  border-radius: 10px;
  font-size: 0.86rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

@media print {
  .site-header, .page-hero, #merch-factory, .site-footer, .no-print, .cart-drawer-backdrop {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .tax-invoice-card {
    border: 2px solid #000 !important;
    background: #fff !important;
    color: #000 !important;
  }
}


/* ---- Unified Sticky Header, Mobile Hamburger, Lightbox & Footer ---- */
html, body { overflow-x: hidden; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11, 12, 10, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.65rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  position: relative;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink);
}
.header-inner .brand-sub {
  border-left: 0;
  padding-left: 0;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--accent-hi);
}
.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.nav-toggle {
  display: none;
  appearance: none;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--rule-hi);
  border-radius: 999px;
  padding: 0.42rem 0.78rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.site-nav a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.site-nav a:hover {
  color: var(--ink);
  background: var(--card);
  border-color: var(--rule);
}
.site-nav a[aria-current="page"] {
  background: var(--card-hi);
  color: var(--ink);
  border-color: rgba(212, 175, 106, 0.45);
  font-weight: 600;
}
.site-nav a.nav-cta {
  background: var(--accent);
  color: #0b0c0a;
  font-weight: 700;
  border-color: var(--accent);
}

/* Fullscreen Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 260;
  background: rgba(6, 7, 6, 0.94);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox[hidden] { display: none !important; }
.lightbox-inner {
  max-width: min(95vw, 1040px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}
.lightbox-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.lightbox-title {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink);
}
.lb-close {
  appearance: none;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--rule-hi);
  border-radius: 999px;
  padding: 0.38rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
#lbImg {
  max-width: 94vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--rule);
}

/* Site Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--bg-soft);
  padding: 1.75rem var(--gutter) 2.25rem;
  margin-top: auto;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.84rem;
  color: var(--muted);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.15rem;
  font-size: 0.85rem;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
}
.footer-links a:hover { color: var(--accent-hi); }
.footer-legal {
  margin: 0;
  font-size: 0.76rem;
  color: var(--quiet);
}

/* ---- Mobile Streamlined Experience (<= 768px & <= 480px) ---- */
@media (max-width: 768px) {
  :root { --gutter: 0.85rem; }
  .header-inner {
    min-height: 52px;
    padding: 0.45rem var(--gutter);
  }
  .header-inner .brand-sub { display: none; }
  .brand-name { font-size: 0.98rem; }
  .brand-sig { width: 1.85rem; height: 1.45rem; }
  .nav-toggle { display: inline-flex; align-items: center; min-height: 38px; }
  .cart-pill-btn {
    padding: 0.4rem 0.72rem;
    font-size: 0.76rem;
    min-height: 38px;
  }
  .cart-pill-btn [data-cart-subtotal-pill] { display: none; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 17, 14, 0.98);
    border-bottom: 1px solid var(--rule-hi);
    padding: 0.75rem var(--gutter);
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65);
  }
  .site-nav.nav-open { display: flex; }
  .site-nav a {
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    font-size: 0.95rem;
  }

  /* Compact, image-led mobile hero & sections */
  .page-hero {
    padding: 1rem var(--gutter) 0.9rem;
  }
  .page-hero h1 {
    font-size: 1.42rem;
    margin-bottom: 0.25rem;
  }
  .page-hero h1 span {
    font-size: 0.95rem;
    margin-top: 0.2rem;
  }
  .page-lead,
  .sec-intro,
  .drop-desc,
  .gallery-sub,
  .factory-desc,
  .factory-meta {
    display: none;
  }
  .sec {
    padding: 1.15rem var(--gutter);
  }
  .sec-head {
    margin-bottom: 0.85rem;
    gap: 0.45rem;
  }
  .sec h2 {
    font-size: 1.25rem;
  }
  .drop-grid {
    gap: 0.9rem;
  }
  .drop-panel {
    padding: 1rem;
  }
  .opt-pill {
    min-height: 42px;
    padding: 0.48rem 0.75rem;
    font-size: 0.84rem;
    flex: 1 1 auto;
    text-align: center;
  }
  .cta-row {
    flex-direction: column;
    gap: 0.5rem;
  }
  .cta-row .btn {
    width: 100%;
    min-height: 46px;
  }

  /* Streamlined Mobile Gallery & Merch Factory Cards */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
  .gallery-body {
    padding: 0.85rem;
    gap: 0.45rem;
  }
  .gallery-sale-select,
  .field input,
  .field select,
  .field textarea,
  .promo-row input {
    font-size: 16px !important;
    min-height: 42px;
  }
  .gallery-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }
  .gallery-actions a {
    grid-column: 1 / -1;
  }
  .gallery-actions .btn {
    min-height: 42px;
    width: 100%;
  }

  .factory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }
  .factory-plate {
    aspect-ratio: 16 / 11;
    padding: 0.65rem;
  }
  .factory-stamp-tag { display: none; }
  .factory-body {
    padding: 0.7rem;
    gap: 0.35rem;
  }
  .factory-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
  }
  .factory-title { font-size: 0.92rem; line-height: 1.2; }
  .factory-price { font-size: 0.8rem; }
  .factory-body .btn-sm {
    min-height: 38px;
    font-size: 0.76rem;
    padding: 0.38rem 0.5rem;
    width: 100%;
  }

  /* Full-width Mobile Shopping Bag Drawer */
  .cart-drawer {
    width: 100vw;
    max-width: 100vw;
    border-left: 0;
  }
  .cart-drawer-head,
  .cart-drawer-body,
  .cart-drawer-foot {
    padding-left: 0.95rem;
    padding-right: 0.95rem;
  }
  .qty-btn {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }
}

@media (max-width: 420px) {
  .factory-grid {
    grid-template-columns: 1fr;
  }
}


/* Smart Menu Pills & Print-Only 1-Page Receipt */
.smart-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}
.smart-pill {
  appearance: none;
  background: var(--bg-soft);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.38rem 0.78rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.smart-pill:hover,
.smart-pill.active {
  background: var(--accent);
  color: #0b0d0a;
  border-color: var(--accent-hi);
  font-weight: 700;
}
.smart-row-3 {
  display: grid;
  grid-template-columns: 1.2fr 1.1fr 1.1fr;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}
@media (max-width: 720px) {
  .smart-row-3 {
    grid-template-columns: 1fr;
  }
}
@media print {
  .site-header,
  .page-hero,
  .site-footer,
  .no-print,
  #merch-factory,
  #checkoutFormColumn .smart-cat-pills,
  #merchOrderForm > *:not(.form-ok) {
    display: none !important;
  }
  #infoStackColumn {
    display: none !important;
  }
  .split-grid {
    display: block !important;
  }
  .form-card {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  body, main, .sec {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .tax-invoice-card {
    border: 1px solid #222 !important;
    color: #000 !important;
    background: #fff !important;
    page-break-inside: avoid;
  }
}


/* ==== RULE OF THREE & COLOUR-CHANGING PILL BUTTONS (t254u) ==== */
.rule3-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}
@media (max-width: 860px) {
  .rule3-grid {
    grid-template-columns: 1fr;
  }
}
.rule3-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.rule3-card:hover {
  border-color: #39d98a;
  transform: translateY(-2px);
}
.rule3-body {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}
.rule3-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}
.rule3-title {
  font-family: var(--serif);
  font-size: 1.16rem;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}
.rule3-price {
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: #39d98a;
  white-space: nowrap;
}
.rule3-chips {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0;
  letter-spacing: 0.02em;
}

/* Small Tactile Colour-Changing Buttons */
.btn-group-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  align-items: center;
}
.opt-btn,
.smart-pill,
.opt-pill,
.tab-pill {
  appearance: none;
  background: #121615;
  color: #c7c2b8;
  border: 1px solid #2b3531;
  border-radius: 999px;
  padding: 0.34rem 0.68rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: all 0.14s ease;
  user-select: none;
}
.opt-btn:hover,
.smart-pill:hover,
.opt-pill:hover,
.tab-pill:hover {
  border-color: #39d98a;
  color: #ffffff;
  background: #18241e;
}
.opt-btn.active,
.opt-btn[aria-pressed="true"],
.smart-pill.active,
.smart-pill[aria-pressed="true"],
.opt-pill.active,
.opt-pill[aria-pressed="true"],
.tab-pill.active,
.tab-pill[aria-pressed="true"] {
  background: #39d98a !important;
  color: #04140c !important;
  border-color: #39d98a !important;
  font-weight: 700 !important;
  box-shadow: 0 0 12px rgba(57, 217, 138, 0.38);
  transform: translateY(-1px);
}
.tab-pill {
  padding: 0.48rem 0.95rem;
  font-size: 0.82rem;
}
.btn.added-flash {
  background: #39d98a !important;
  border-color: #39d98a !important;
  color: #04140c !important;
  box-shadow: 0 0 14px rgba(57, 217, 138, 0.45);
}
.step-box {
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.65rem;
}
.step-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-hi);
  margin-bottom: 0.45rem;
}
