/* ==========================================================================
   TL-04: Nostalgic Thai Snacks & Food Trends (1955–2025)
   Bodega Glass Jar Shop Shelf + Counter Tray + Perforated Thermal Receipt
   ========================================================================== */

:root {
  --bg-main: #2a1810;
  --bg-pattern: #382015;
  --shelf-wood: #4a2a18;
  --shelf-plank: #6e3f23;
  --shelf-border: #8c5230;
  --card-surface: #fff9f0;
  --text-main: #23150d;
  --text-muted: #694e3f;
  --accent-primary: #e63946;
  --accent-secondary: #ffb703;
  --awning-stripe-1: #d62828;
  --awning-stripe-2: #fff8eb;
  --lid-color: #d62828;
  --font-heading: 'Sriracha', 'Kanit', sans-serif;
  --font-body: 'Sarabun', 'IBM Plex Sans Thai', sans-serif;
  --font-mono: 'Chakra Petch', monospace;
}

/* 23 Distinct Era Themes & Typography */
html[data-theme="era-1955"] {
  --bg-main: #28160d; --bg-pattern: #3a2014; --shelf-wood: #4f2d1b; --shelf-plank: #784426;
  --accent-primary: #d62828; --accent-secondary: #f77f00; --lid-color: #d62828;
  --awning-stripe-1: #c1121f; --awning-stripe-2: #fdf0d5;
  --font-heading: 'Sriracha', cursive;
}
html[data-theme="era-1968"] {
  --bg-main: #1d2d2a; --bg-pattern: #263c38; --shelf-wood: #4a3222; --shelf-plank: #734f36;
  --accent-primary: #ff9f1c; --accent-secondary: #2ec4b6; --lid-color: #ff9f1c;
  --awning-stripe-1: #2ec4b6; --awning-stripe-2: #fffdf7;
  --font-heading: 'Itim', cursive;
}
html[data-theme="era-1977"] {
  --bg-main: #261c15; --bg-pattern: #36281e; --shelf-wood: #54331d; --shelf-plank: #804f2f;
  --accent-primary: #e63946; --accent-secondary: #ffb703; --lid-color: #e63946;
  --awning-stripe-1: #e63946; --awning-stripe-2: #ffea9f;
  --font-heading: 'Mitr', sans-serif;
}
html[data-theme="era-1984"] {
  --bg-main: #2e1028; --bg-pattern: #42183a; --shelf-wood: #59253a; --shelf-plank: #853857;
  --accent-primary: #ff007f; --accent-secondary: #00bbf9; --lid-color: #ff007f;
  --awning-stripe-1: #ff007f; --awning-stripe-2: #fff0f7;
  --font-heading: 'Mali', cursive;
}
html[data-theme="era-1989"] {
  --bg-main: #0f1e36; --bg-pattern: #162b4d; --shelf-wood: #3b2d4a; --shelf-plank: #5c4673;
  --accent-primary: #0096c7; --accent-secondary: #ffd60a; --lid-color: #0077b6;
  --awning-stripe-1: #0077b6; --awning-stripe-2: #fff8d6;
  --font-heading: 'Chakra Petch', sans-serif;
}
html[data-theme="era-1994"] {
  --bg-main: #0d2b1d; --bg-pattern: #143d2a; --shelf-wood: #3d2c1e; --shelf-plank: #634730;
  --accent-primary: #2b9348; --accent-secondary: #ff006e; --lid-color: #2b9348;
  --awning-stripe-1: #2b9348; --awning-stripe-2: #f4fce3;
  --font-heading: 'Kanit', sans-serif;
}
html[data-theme="era-1998"] {
  --bg-main: #1b2432; --bg-pattern: #253246; --shelf-wood: #402e2a; --shelf-plank: #664943;
  --accent-primary: #ef233c; --accent-secondary: #2b9348; --lid-color: #ef233c;
  --awning-stripe-1: #ef233c; --awning-stripe-2: #e8f8f5;
  --font-heading: 'Prompt', sans-serif;
}
html[data-theme="era-2001"] {
  --bg-main: #291d2c; --bg-pattern: #3b2a3f; --shelf-wood: #543d34; --shelf-plank: #7d5b4d;
  --accent-primary: #9d4edd; --accent-secondary: #f4a261; --lid-color: #9d4edd;
  --awning-stripe-1: #7b2cbf; --awning-stripe-2: #fdf4ff;
  --font-heading: 'Mitr', sans-serif;
}
html[data-theme="era-2003"] {
  --bg-main: #112233; --bg-pattern: #1a334d; --shelf-wood: #4a2f1d; --shelf-plank: #73492d;
  --accent-primary: #0077b6; --accent-secondary: #ff9f1c; --lid-color: #ef233c;
  --awning-stripe-1: #0077b6; --awning-stripe-2: #fff8eb;
  --font-heading: 'Kanit', sans-serif;
}
html[data-theme="era-2005"] {
  --bg-main: #2e150b; --bg-pattern: #421f10; --shelf-wood: #592e18; --shelf-plank: #854625;
  --accent-primary: #f77f00; --accent-secondary: #fcbf49; --lid-color: #d62828;
  --awning-stripe-1: #d62828; --awning-stripe-2: #fff3b0;
  --font-heading: 'Kanit', sans-serif;
}
html[data-theme="era-2007"] {
  --bg-main: #122a1e; --bg-pattern: #1b3d2c; --shelf-wood: #473223; --shelf-plank: #6e4e37;
  --accent-primary: #2d6a4f; --accent-secondary: #ffcad4; --lid-color: #40916c;
  --awning-stripe-1: #40916c; --awning-stripe-2: #fff0f3;
  --font-heading: 'Mitr', sans-serif;
}
html[data-theme="era-2009"] {
  --bg-main: #18271c; --bg-pattern: #223828; --shelf-wood: #4f3524; --shelf-plank: #754f36;
  --accent-primary: #1b8a3d; --accent-secondary: #e07a5f; --lid-color: #1b8a3d;
  --awning-stripe-1: #1b8a3d; --awning-stripe-2: #fff8f0;
  --font-heading: 'Prompt', sans-serif;
}
html[data-theme="era-2011"] {
  --bg-main: #2b1628; --bg-pattern: #3d1f38; --shelf-wood: #542a46; --shelf-plank: #7d3f68;
  --accent-primary: #f72585; --accent-secondary: #4cc9f0; --lid-color: #f72585;
  --awning-stripe-1: #f72585; --awning-stripe-2: #fdf2f8;
  --font-heading: 'Mali', cursive;
}
html[data-theme="era-2013"] {
  --bg-main: #2b1f14; --bg-pattern: #3d2c1d; --shelf-wood: #5c4028; --shelf-plank: #875e3b;
  --accent-primary: #d97706; --accent-secondary: #fbbf24; --lid-color: #b45309;
  --awning-stripe-1: #b45309; --awning-stripe-2: #fffbeb;
  --font-heading: 'Itim', cursive;
}
html[data-theme="era-2014"] {
  --bg-main: #231528; --bg-pattern: #331f3b; --shelf-wood: #4f291e; --shelf-plank: #783f2e;
  --accent-primary: #9b5de5; --accent-secondary: #fee440; --lid-color: #9b5de5;
  --awning-stripe-1: #7209b7; --awning-stripe-2: #fef9c3;
  --font-heading: 'Sriracha', cursive;
}
html[data-theme="era-2016"] {
  --bg-main: #2d141e; --bg-pattern: #401c2a; --shelf-wood: #572b39; --shelf-plank: #824156;
  --accent-primary: #e11d48; --accent-secondary: #fb7185; --lid-color: #e11d48;
  --awning-stripe-1: #e11d48; --awning-stripe-2: #fff1f2;
  --font-heading: 'Mali', cursive;
}
html[data-theme="era-2017"] {
  --bg-main: #211230; --bg-pattern: #311b47; --shelf-wood: #4c265e; --shelf-plank: #70388a;
  --accent-primary: #7209b7; --accent-secondary: #ffd166; --lid-color: #7209b7;
  --awning-stripe-1: #7209b7; --awning-stripe-2: #f3e8ff;
  --font-heading: 'Kanit', sans-serif;
}
html[data-theme="era-2019"] {
  --bg-main: #241206; --bg-pattern: #361b09; --shelf-wood: #4f280e; --shelf-plank: #783d16;
  --accent-primary: #ea580c; --accent-secondary: #f59e0b; --lid-color: #c2410c;
  --awning-stripe-1: #c2410c; --awning-stripe-2: #fef3c7;
  --font-heading: 'Chakra Petch', sans-serif;
}
html[data-theme="era-2020"] {
  --bg-main: #0f222d; --bg-pattern: #173445; --shelf-wood: #3e2c23; --shelf-plank: #614537;
  --accent-primary: #0096c7; --accent-secondary: #f59e0b; --lid-color: #0096c7;
  --awning-stripe-1: #0284c7; --awning-stripe-2: #f0f9ff;
  --font-heading: 'Prompt', sans-serif;
}
html[data-theme="era-2021"] {
  --bg-main: #1c1917; --bg-pattern: #292524; --shelf-wood: #44403c; --shelf-plank: #68625d;
  --accent-primary: #b45309; --accent-secondary: #d97706; --lid-color: #78350f;
  --awning-stripe-1: #57534e; --awning-stripe-2: #fafaf9;
  --font-heading: 'IBM Plex Sans Thai', sans-serif;
}
html[data-theme="era-2023"] {
  --bg-main: #2a0a12; --bg-pattern: #3d0f1b; --shelf-wood: #541e29; --shelf-plank: #7d2d3d;
  --accent-primary: #e11d48; --accent-secondary: #22c55e; --lid-color: #be123c;
  --awning-stripe-1: #be123c; --awning-stripe-2: #ffe4e6;
  --font-heading: 'Kanit', sans-serif;
}
html[data-theme="era-2024"] {
  --bg-main: #241b0f; --bg-pattern: #362917; --shelf-wood: #523a1e; --shelf-plank: #7a572d;
  --accent-primary: #ca8a04; --accent-secondary: #16a34a; --lid-color: #ca8a04;
  --awning-stripe-1: #ca8a04; --awning-stripe-2: #fefce8;
  --font-heading: 'Mitr', sans-serif;
}
html[data-theme="era-2025"] {
  --bg-main: #0f241d; --bg-pattern: #16362b; --shelf-wood: #3d2817; --shelf-plank: #5e3e24;
  --accent-primary: #059669; --accent-secondary: #f59e0b; --lid-color: #059669;
  --awning-stripe-1: #047857; --awning-stripe-2: #ecfdf5;
  --font-heading: 'Prompt', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-body);
  background-color: var(--bg-main);
  background-image: radial-gradient(var(--bg-pattern) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  color: #fff;
  transition: background-color 0.45s ease;
}

body {
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   1. Top Striped Awning Bar (กันสาดร้านโชห่วย)
   ========================================================================== */
.shop-awning {
  position: relative;
  z-index: 20;
  flex-shrink: 0;
  background: var(--shelf-wood);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.awning-stripes {
  height: 14px;
  width: 100%;
  background: repeating-linear-gradient(
    90deg,
    var(--awning-stripe-1) 0px,
    var(--awning-stripe-1) 34px,
    var(--awning-stripe-2) 34px,
    var(--awning-stripe-2) 68px
  );
  transition: background 0.4s ease;
}

.awning-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 20px;
  background: linear-gradient(180deg, rgba(20, 10, 5, 0.88), rgba(32, 16, 8, 0.95));
  border-bottom: 3px solid var(--accent-secondary);
}

.awning-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shop-sign-icon {
  font-size: 1.9rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.awning-kicker {
  font-size: 0.72rem;
  color: var(--accent-secondary);
  letter-spacing: 0.04em;
  font-weight: 600;
}

.awning-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.awning-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.era-theme-badge {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #FFE8A3;
}

.shop-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.shop-btn:hover {
  transform: translateY(-1px);
}

.btn-jar {
  background: var(--accent-secondary);
  color: #1f1108;
}

.btn-autoplay {
  background: var(--accent-primary);
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}

.btn-autoplay.is-playing {
  background: #16a34a;
  animation: pulseGlow 1.4s infinite;
}

.btn-hub {
  background: #fff8eb;
  color: #23150d;
  border-color: var(--accent-secondary);
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.6); }
  50% { box-shadow: 0 0 0 7px rgba(22, 163, 74, 0); }
}

/* ==========================================================================
   2. Main 3-Column Bodega Stage (Fits 100vh Desktop)
   ========================================================================== */
.bodega-stage {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.25fr;
  gap: 16px;
  padding: 14px 20px 16px;
  max-width: 1680px;
  width: 100%;
  margin: 0 auto;
}

/* ==========================================================================
   3. Left Zone: Multi-Tiered Shop Shelf (16 Glass Jars)
   ========================================================================== */
.shelf-zone {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--shelf-wood), #2b170c);
  border: 4px solid var(--shelf-plank);
  border-radius: 16px;
  padding: 12px;
  box-shadow: inset 0 4px 16px rgba(0,0,0,0.5), 0 10px 24px rgba(0,0,0,0.4);
  min-height: 0;
}

.zone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding: 0 4px;
}

.zone-title {
  font-family: var(--font-heading);
  font-size: 0.96rem;
  color: #ffe8a3;
}

.zone-hint {
  font-size: 0.74rem;
  color: rgba(255,255,255,0.72);
}

.jar-shelf-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 10px 8px;
  padding: 4px;
}

/* Individual Glass Jar Item */
.snack-jar-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-bottom: 7px solid var(--shelf-plank);
  border-radius: 14px 14px 10px 10px;
  padding: 14px 6px 6px;
  cursor: pointer;
  color: #fff;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
  text-align: center;
}

/* Red Screw Lid on Top of Every Jar */
.snack-jar-btn::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 54%;
  height: 9px;
  background: var(--lid-color);
  border: 2px solid rgba(255,255,255,0.65);
  border-radius: 5px 5px 2px 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.35);
  transition: background 0.3s ease, transform 0.2s ease;
}

.snack-jar-btn:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--accent-secondary);
}

.snack-jar-btn.active {
  background: linear-gradient(180deg, rgba(255, 248, 230, 0.96), rgba(255, 232, 185, 0.96));
  color: #23150d;
  border-color: var(--accent-primary);
  border-bottom: 7px solid var(--accent-primary);
  box-shadow: 0 0 16px rgba(255, 183, 3, 0.55);
  transform: translateY(-3px) scale(1.02);
}

.snack-jar-btn.active::before {
  transform: translateX(-50%) rotate(-5deg) translateY(-2px);
  background: var(--accent-primary);
}

.jar-year-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 99px;
  background: rgba(0,0,0,0.35);
  color: #ffd166;
}

.snack-jar-btn.active .jar-year-tag {
  background: var(--accent-primary);
  color: #fff;
}

.jar-color-orb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.85);
  box-shadow: inset -3px -3px 6px rgba(0,0,0,0.25);
  margin: 2px 0;
}

.jar-short-name {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wood-plank-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding: 6px 10px;
  background: var(--shelf-plank);
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #fff5d6;
}

/* ==========================================================================
   4. Center Zone: Counter Display Tray (ถาดโชว์หน้าร้าน)
   ========================================================================== */
.counter-zone {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.counter-display-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: radial-gradient(circle at 50% 38%, #fffdf9 0%, #f5e6d3 100%);
  color: var(--text-main);
  border: 4px solid var(--shelf-plank);
  border-radius: 20px;
  padding: 14px 16px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.45);
  position: relative;
  overflow: hidden;
}

.counter-top-tags {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tray-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(0,0,0,0.06);
  padding: 4px 10px;
  border-radius: 99px;
}

.counter-era-tag {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--accent-primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 99px;
}

.tray-stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  margin: 6px 0;
}

.price-sticker {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 5;
  background: #ffd60a;
  color: #1d1e2c;
  border: 3px dashed #d62828;
  border-radius: 14px;
  padding: 6px 12px;
  text-align: center;
  transform: rotate(7deg);
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

.price-caption {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  color: #b81d13;
}

.price-sticker strong {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1;
}

.doily-plate {
  width: 100%;
  max-width: 265px;
  aspect-ratio: 1 / 0.92;
  background: radial-gradient(circle, #ffffff 58%, #f2e2ce 100%);
  border: 4px dotted var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-shadow: inset 0 4px 12px rgba(0,0,0,0.08), 0 8px 20px rgba(0,0,0,0.12);
}

.snack-svg-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: popSnack 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.snack-svg-stage svg {
  width: 100%;
  height: 100%;
  max-height: 210px;
  overflow: visible;
}

@keyframes popSnack {
  0% { opacity: 0; transform: scale(0.84) rotate(-4deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

.counter-caption {
  text-align: center;
  margin-bottom: 10px;
}

.counter-short-title {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  color: var(--text-main);
  margin-bottom: 4px;
  line-height: 1.25;
}

.counter-subtitle {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.counter-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 2px dashed rgba(0,0,0,0.12);
}

.nav-step-btn {
  background: var(--accent-primary);
  color: #fff;
  border: none;
  padding: 7px 14px;
  border-radius: 99px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.nav-step-btn:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.step-indicator {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

/* ==========================================================================
   5. Right Zone: Perforated Thermal Receipt & Nutrition Label
   ========================================================================== */
.receipt-zone {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.thermal-receipt {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #fffdf7;
  color: #1e1b18;
  border-radius: 4px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}

.receipt-zigzag-top,
.receipt-zigzag-bottom {
  height: 10px;
  width: 100%;
  flex-shrink: 0;
  background: linear-gradient(-45deg, #fffdf7 5px, transparent 0),
              linear-gradient(45deg, #fffdf7 5px, transparent 0);
  background-color: var(--bg-main);
  background-position: left top;
  background-repeat: repeat-x;
  background-size: 10px 10px;
}

.receipt-zigzag-bottom {
  transform: rotate(180deg);
}

.receipt-inner {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.receipt-inner::-webkit-scrollbar {
  width: 5px;
}
.receipt-inner::-webkit-scrollbar-thumb {
  background: #d4c5b4;
  border-radius: 99px;
}

.receipt-head {
  border-bottom: 2px dashed #2b2d42;
  padding-bottom: 6px;
}

.receipt-shop-name {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-primary);
}

.receipt-meta-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: #495057;
}

.receipt-era-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.receipt-main-title {
  font-family: var(--font-heading);
  font-size: 1.24rem;
  line-height: 1.25;
  color: #141210;
}

/* Nutrition Facts Box */
.nutrition-box {
  border: 2px solid #1e1b18;
  padding: 8px 10px;
  background: #fff9ec;
}

.nutrition-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 800;
  border-bottom: 3px solid #1e1b18;
  padding-bottom: 3px;
  margin-bottom: 6px;
}

.nutrition-row {
  margin-bottom: 5px;
}
.nutrition-row:last-child {
  margin-bottom: 0;
}

.nutri-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.nutri-bar-track {
  height: 7px;
  background: #e9ecef;
  border-radius: 99px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.2);
}

.nutri-bar-fill {
  height: 100%;
  width: 85%;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.fill-sweet { background: #ff006e; }
.fill-hype { background: #fb8500; }
.fill-nostalgia { background: #2b9348; }

/* 4 Historical Specs Grid */
.receipt-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.spec-item {
  background: #f6efe4;
  border-left: 3px solid var(--accent-primary);
  padding: 5px 8px;
  border-radius: 4px;
}

.spec-kicker {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: #6c584c;
}

.spec-val {
  font-size: 0.78rem;
  color: #1d1e2c;
  line-height: 1.25;
}

.receipt-section-heading {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--accent-primary);
  margin-bottom: 4px;
  border-bottom: 1px dashed #ccc;
  padding-bottom: 2px;
}

.receipt-story-text {
  font-size: 0.84rem;
  line-height: 1.52;
  color: #2b2623;
}

.receipt-bullets-list {
  padding-left: 18px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #2b2623;
}

.receipt-bullets-list li {
  margin-bottom: 3px;
}

.receipt-barcode-footer {
  margin-top: auto;
  padding-top: 8px;
  border-top: 2px dashed #2b2d42;
  text-align: center;
}

.barcode-lines {
  height: 22px;
  width: 75%;
  margin: 0 auto 3px;
  background: repeating-linear-gradient(
    90deg,
    #111 0px, #111 2px,
    transparent 2px, transparent 5px,
    #111 5px, #111 9px,
    transparent 9px, transparent 11px,
    #111 11px, #111 12px,
    transparent 12px, transparent 16px
  );
}

.barcode-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: #495057;
}

/* Responsive Layout for Smaller Screens */
@media (max-width: 1120px) {
  html, body {
    overflow: auto;
    height: auto;
  }
  .bodega-stage {
    grid-template-columns: 1fr;
  }
  .jar-shelf-grid {
    grid-template-columns: repeat(4, 1fr);
    min-height: 320px;
  }
}
