/* ==========================================================================
   Xefag Artisanal Coffee - 3D Specialty Showcase Style System
   Features: Three.js Particles, CSS 3D Stage, Dynamic Reflection, Pure Coffee Metrics
   ========================================================================== */

:root {
  --bg-gradient: radial-gradient(circle at 50% 40%, #ba1041 0%, #7d0327 55%, #3d0012 100%);
  --accent-white: #ffffff;
  --accent-dark: #121212;
  --pill-dark: rgba(0, 0, 0, 0.4);
  --pill-dark-hover: rgba(0, 0, 0, 0.65);
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.16);
  --text-primary: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.75);
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: var(--font-family);
  background: var(--bg-gradient);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  position: relative;
}

/* Three.js Background Canvas */
#threeCanvasBg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}

/* Main Viewport Container */
.app-viewport {
  width: 100%;
  max-width: 1440px;
  height: 100vh;
  max-height: 900px;
  padding: 2rem 3.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  z-index: 5;
}

/* ================= TOP NAVIGATION ================= */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-icon {
  width: 26px;
  height: 26px;
  stroke: var(--text-primary);
}

.brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.12);
}

.brand-name {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-tagline {
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  margin-left: 0.4rem;
  letter-spacing: 0.5px;
}

/* Nav Pills */
.pill-nav {
  background: var(--pill-dark);
  padding: 4px;
  border-radius: 40px;
  display: flex;
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
}

.pill-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  padding: 0.55rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.pill-btn.active, .pill-btn:hover {
  background: var(--accent-white);
  color: var(--accent-dark);
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0,0,0,0.18);
}

/* Nav Right Actions */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.icon-circle-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--pill-dark);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
}

.icon-circle-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-white);
  color: var(--accent-dark);
  font-size: 0.7rem;
  font-weight: 800;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* ================= APP FOOTER & SECTION SELECTOR NAV ================= */
.app-footer-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 0 0.5rem 0;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 10;
}

.info-tab-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-tab-btn {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  padding: 0.55rem 1.25rem;
  border-radius: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  backdrop-filter: blur(10px);
  transition: var(--transition-fast);
}

.section-tab-btn.active, .section-tab-btn:hover {
  background: var(--accent-white);
  color: var(--accent-dark);
  border-color: var(--accent-white);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3);
}

.footer-copyright {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

/* ================= HERO SECTION ================= */
.hero-section {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 1fr;
  align-items: center;
  height: 100%;
  margin: 0.8rem 0;
  position: relative;
}

/* Left Hero Column & Interactive Coffee Info Slider */
.hero-col-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 85%;
  padding-right: 1.5rem;
  z-index: 5;
  position: relative;
}

.coffee-slider-wrapper {
  position: relative;
  width: 100%;
  min-height: 270px;
}

.coffee-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-15px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.coffee-slide.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.specialty-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.82rem;
  margin-bottom: 0.8rem;
}

.specialty-badge i {
  color: #ffd166;
}

.specialty-badge.gold {
  background: rgba(255, 209, 102, 0.2);
  border-color: rgba(255, 209, 102, 0.4);
}

.specialty-badge.gold i {
  color: #ffd166;
}

.specialty-badge.teal {
  background: rgba(78, 205, 196, 0.2);
  border-color: rgba(78, 205, 196, 0.4);
}

.specialty-badge.teal i {
  color: #4ecdc4;
}

.product-title {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 0.8rem;
}

.product-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.coffee-specs-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.spec-tag {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
}

.spec-tag i {
  color: #ff9ebb;
}

.hero-footnote {
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
  max-width: 340px;
}

/* Slider Controls Bar */
.slider-controls-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.2rem;
  z-index: 10;
}

.slider-arrow-btn {
  background: var(--pill-dark);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: var(--transition-fast);
}

.slider-arrow-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active, .slider-dot:hover {
  background: var(--accent-white);
  width: 24px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Center Hero Column (3D Interactive Stage) */
.hero-col-center {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  perspective: 1000px;
}

.jar-3d-stage {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.jar-card-3d {
  position: relative;
  z-index: 5;
  width: 360px;
  height: 440px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: scale(var(--jar-scale, 1.0));
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.jar-card-3d:hover {
  transform: scale(calc(var(--jar-scale, 1.0) * 1.07));
}

.jar-angle-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.6));
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.jar-angle-img.active {
  opacity: 1;
  pointer-events: auto;
}

.jar-3d-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  pointer-events: auto;
}

.jar-3d-canvas.active {
  display: block;
}

.mode-switch-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.mode-pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-secondary);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mode-pill.active, .mode-pill:hover {
  background: #ffffff;
  color: #5d0718;
  border-color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.25);
}

.jar-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(28px);
  transition: var(--transition-smooth);
}

.angle-controls-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.8rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.35rem 0.65rem;
  border-radius: 30px;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.angle-dot {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: inherit;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.angle-dot.active, .angle-dot:hover {
  background: var(--accent-white);
  color: var(--accent-dark);
}

.spin-toggle-btn {
  background: rgba(255, 215, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.4);
  color: #ffd700;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: inherit;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.3rem;
}

.spin-toggle-btn.active, .spin-toggle-btn:hover {
  background: #ffd700;
  color: #121212;
}

.hint-3d {
  margin-top: 0.7rem;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  z-index: 10;
}

/* Right Hero Column */
.hero-col-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
  padding-left: 1.5rem;
  z-index: 5;
}

.control-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
  max-width: 320px;
  background: rgba(30, 4, 13, 0.65);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  padding: 1.6rem 1.4rem;
  border-radius: 24px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.control-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

/* Weight Selector Group & Circular Pills */
.weight-selector-group {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  justify-content: center;
}

.weight-option-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.weight-pill {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--pill-dark);
  border: 1.5px solid var(--glass-border);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.weight-pill.active {
  background: var(--accent-white);
  color: var(--accent-dark);
  border-color: var(--accent-white);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.weight-pill:hover:not(.active) {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.05);
}

/* Hero Action Button Group */
.hero-action-btn-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.2rem;
}

.hero-action-btn-group .add-to-cart-btn,
.hero-action-btn-group .buy-now-btn {
  width: 100%;
  justify-content: center;
}

/* Big White Main Price Display directly below Weight Selector Circles */
.price-display-main {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.85rem;
  padding: 0.2rem 0.5rem;
  background: transparent;
  border: none;
  border-radius: 0;
  backdrop-filter: none;
  box-shadow: none;
  transition: var(--transition-fast);
}

.price-display-main .currency-symbol {
  font-size: 1.9rem;
  font-weight: 700;
  color: #ffffff;
}

.price-display-main .main-price-val {
  font-size: 2.7rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.price-display-main .bdt-code {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  margin-left: 0.2rem;
}

/* Grind Pills */
.grind-selector-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
  max-width: 200px;
}

.grind-pill {
  background: var(--pill-dark);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: right;
}

.grind-pill.active, .grind-pill:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  border-color: var(--accent-white);
}

.info-trigger-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: var(--transition-fast);
  text-align: right;
}

.info-trigger-btn:hover {
  color: var(--text-primary);
}

/* ================= BOTTOM ACTION BAR ================= */
.bottom-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: 10;
}

.price-display {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.currency-symbol {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.price-val {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.bdt-code {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  margin-left: 0.3rem;
}

/* Quantity Controller */
.quantity-controller {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: var(--pill-dark);
  padding: 0.4rem 0.8rem;
  border-radius: 30px;
  border: 1px solid var(--glass-border);
}

.qty-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.qty-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.qty-val {
  font-size: 1.15rem;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}

/* Bottom Button Group */
.bottom-btn-group {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.add-to-cart-btn {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  padding: 0.85rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  border-radius: 40px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: var(--transition-fast);
}

.add-to-cart-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: var(--accent-white);
  transform: translateY(-2px);
}

/* Buy Now / Checkout Button */
.buy-now-btn {
  background: var(--accent-white);
  color: var(--accent-dark);
  border: none;
  padding: 0.85rem 2.2rem;
  font-size: 0.95rem;
  font-weight: 800;
  font-family: inherit;
  border-radius: 40px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  transition: var(--transition-fast);
}

.buy-now-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  background: #ffffff;
}

/* Dynamic Cart Items List & Rows */
.cart-items-header h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ff9ebb;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cart-items-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 0.3rem;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  gap: 0.8rem;
}

.cart-item-details {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
}

.cart-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cart-item-subtitle {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.cart-item-right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.mini-qty-controller {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
}

.mini-qty-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.mini-qty-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.mini-qty-val {
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 16px;
  text-align: center;
}

.cart-item-total {
  font-size: 0.9rem;
  font-weight: 800;
  color: #ffd166;
  min-width: 70px;
  text-align: right;
}

.cart-remove-item-btn {
  background: transparent;
  border: none;
  color: rgba(255, 100, 100, 0.8);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.3rem;
  border-radius: 6px;
  transition: var(--transition-fast);
}

.cart-remove-item-btn:hover {
  color: #ff4d4d;
  background: rgba(255, 0, 0, 0.15);
}

.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--text-muted);
  gap: 0.4rem;
}

.cart-empty-state i {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 0.3rem;
}

.cart-empty-state p {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cart-empty-state span {
  font-size: 0.8rem;
}

/* Toast Notifications */
.toast-notification {
  position: fixed;
  bottom: 80px;
  right: 30px;
  background: rgba(25, 6, 14, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px);
  color: #ffffff;
  padding: 0.75rem 1.4rem;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 200;
}

.toast-notification.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-notification i {
  color: #2ecc71;
  font-size: 1.1rem;
}

/* Cart Badge Bounce Animation */
@keyframes bounceBadge {
  0% { transform: scale(1); }
  40% { transform: scale(1.4); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.bounce-badge {
  animation: bounceBadge 0.4s ease-in-out;
}

/* ================= MODALS SYSTEM ================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 3, 8, 0.78);
  backdrop-filter: blur(18px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: rgba(42, 6, 18, 0.95);
  border: 1px solid var(--glass-border);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
  border-radius: 24px;
  padding: 2.2rem;
  width: 90%;
  max-width: 580px;
  position: relative;
  transform: scale(0.92) translateY(20px);
  transition: var(--transition-smooth);
  color: var(--text-primary);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-card {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Info Modal Styling */
.info-modal-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.info-modal-header p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

.info-tabs-bar {
  display: flex;
  gap: 0.8rem;
  margin: 1.2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 0.8rem;
}

.info-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  border-radius: 6px;
  transition: var(--transition-fast);
}

.info-tab-btn.active, .info-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.12);
}

.info-tab-content {
  display: none;
}

.info-tab-content.active {
  display: block;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.info-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem;
}

.info-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #ffc2d1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.info-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.flavor-notes-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.flavor-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.flavor-label {
  font-size: 0.85rem;
  font-weight: 500;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff758c 0%, #ff7eb3 100%);
  border-radius: 10px;
}

.brewing-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ================= CHECKOUT FORM & PREMIUM MODAL ================= */
.checkout-modal-card {
  max-width: 620px;
  background: rgba(20, 3, 9, 0.94);
  backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 26px;
  padding: 2.2rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.checkout-header {
  margin-bottom: 1.4rem;
  text-align: center;
}

.checkout-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 209, 102, 0.15);
  border: 1px solid rgba(255, 209, 102, 0.3);
  color: #ffd166;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.checkout-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.checkout-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.order-summary-box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.4rem;
}

.cart-items-header h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.summary-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
  margin: 0.8rem 0;
}

.summary-item.grand-total {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0;
}

.summary-item.grand-total span:last-child {
  color: #ffd166;
  font-size: 1.2rem;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon i {
  position: absolute;
  left: 1.1rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.input-with-icon input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 0.8rem 1rem 0.8rem 2.8rem;
  color: var(--text-primary);
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition-fast);
}

.input-with-icon input:focus {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.2);
}

.input-with-icon input:focus + i,
.input-with-icon input:focus ~ i {
  color: var(--accent-white);
}

/* 2-Tier Payment Method Styling */
.payment-category-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.pm-cat-tab {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 700;
  font-family: inherit;
  padding: 0.65rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.pm-cat-tab.active, .pm-cat-tab:hover {
  background: var(--accent-white);
  color: var(--accent-dark);
  border-color: var(--accent-white);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.25);
}

.payment-sub-options {
  position: relative;
}

.sub-option-group {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  animation: fadeInSub 0.3s ease forwards;
}

.sub-option-group.active {
  display: grid;
}

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

.cod-info-banner {
  grid-column: span 3;
  background: rgba(46, 204, 113, 0.12);
  border: 1px solid rgba(46, 204, 113, 0.3);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.84rem;
  color: #2ecc71;
  line-height: 1.4;
}

.pm-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 0.75rem 0.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.pm-card input {
  position: absolute;
  opacity: 0;
}

.pm-card.active, .pm-card:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--accent-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.pm-card.active {
  border-color: #ffd166;
  box-shadow: 0 0 14px rgba(255, 209, 102, 0.35);
}

.pm-logo {
  font-size: 0.9rem;
  font-weight: 800;
}

.bkash-logo { color: #e2136e; font-weight: 900; }
.nagad-logo { color: #f7921e; font-weight: 900; }
.rocket-logo { color: #8c3294; font-weight: 900; }
.visa-logo { color: #4b86e8; font-size: 1.35rem; }
.master-logo { color: #eb001b; font-size: 1.35rem; }
.amex-logo { color: #006fcf; font-size: 1.35rem; }
.card-logo { color: #4b86e8; font-size: 1.15rem; }
.cod-logo { color: #2ecc71; font-size: 1.15rem; }

.pm-name {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.2;
}

.submit-order-btn {
  background: linear-gradient(135deg, #ffffff 0%, #e6e6e6 100%);
  color: var(--accent-dark);
  border: none;
  border-radius: 14px;
  padding: 0.95rem;
  font-size: 1.05rem;
  font-weight: 800;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.submit-order-btn:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 255, 255, 0.4);
}

.checkout-trust-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.4rem;
  text-align: center;
}

.checkout-trust-badge i {
  color: #2ecc71;
}

/* ================= SUCCESS RECEIPT MODAL ================= */
.success-modal-card {
  text-align: center;
  align-items: center;
}

.success-icon-wrap {
  width: 65px;
  height: 65px;
  background: #2ecc71;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem auto;
  box-shadow: 0 8px 25px rgba(46, 204, 113, 0.4);
}

.success-subtitle {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 0.3rem;
  margin-bottom: 1.2rem;
}

.receipt-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 1.2rem;
  text-align: left;
  margin-bottom: 1.2rem;
}

.receipt-header-print {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.8rem;
}

.receipt-brand h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.receipt-brand p {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.receipt-location {
  font-size: 0.72rem !important;
  color: rgba(255, 255, 255, 0.5) !important;
}

.receipt-title-badge {
  background: var(--pill-dark);
  border: 1px solid var(--glass-border);
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffd166;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.receipt-row strong {
  color: var(--text-primary);
  font-weight: 600;
}

.badge-payment {
  background: rgba(255, 255, 255, 0.15);
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.76rem;
  color: #fff;
}

.receipt-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0.7rem 0;
}

.receipt-row.grand-total {
  font-size: 1.05rem;
  margin-bottom: 0;
}

.receipt-row.grand-total strong {
  color: #2ecc71;
  font-size: 1.15rem;
}

.receipt-footer-seal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.9rem;
  padding-top: 0.6rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
}

.seal-text {
  font-size: 0.72rem;
  color: #4ecdc4;
  font-weight: 600;
}

.thank-you-msg {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Print Styles for PDF / Invoice Printing */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  body * {
    visibility: hidden;
  }

  #successModalOverlay,
  #successModalOverlay *,
  #printableCashMemo,
  #printableCashMemo * {
    visibility: visible !important;
  }

  #successModalOverlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .success-modal-card {
    background: #ffffff !important;
    color: #000000 !important;
    border: none !important;
    box-shadow: none !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
  }

  .success-icon-wrap,
  .success-modal-card h2,
  .success-subtitle,
  .success-actions {
    display: none !important;
  }

  .receipt-card {
    background: #ffffff !important;
    border: 2px solid #000000 !important;
    border-radius: 8px !important;
    padding: 1.8rem !important;
    color: #000000 !important;
    margin: 0 auto !important;
    max-width: 700px !important;
  }

  .receipt-brand h3 {
    color: #000000 !important;
  }

  .receipt-brand p, .receipt-location {
    color: #444444 !important;
  }

  .receipt-title-badge {
    background: #000000 !important;
    color: #ffffff !important;
    border: none !important;
  }

  .receipt-row {
    color: #333333 !important;
  }

  .receipt-row strong {
    color: #000000 !important;
  }

  .receipt-row.grand-total strong {
    color: #16a085 !important;
  }

  .badge-payment {
    background: #eeeeee !important;
    color: #000000 !important;
    border: 1px solid #cccccc !important;
  }

  .receipt-divider {
    background: #cccccc !important;
  }

  .receipt-footer-seal {
    border-top: 1px dashed #aaaaaa !important;
  }

  .seal-text {
    color: #27ae60 !important;
  }

  .thank-you-msg {
    color: #555555 !important;
  }
}

.success-actions {
  display: flex;
  gap: 0.8rem;
}

.btn-primary {
  flex: 1;
  background: var(--accent-white);
  color: var(--accent-dark);
  border: none;
  border-radius: 12px;
  padding: 0.8rem;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition-fast);
}

/* Coffee Recipe Cards & Steps Styling */
.recipe-ratio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.recipe-ingredient-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition-fast);
}

.recipe-ingredient-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
}

.ingredient-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 209, 102, 0.2);
  color: #ffd166;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.recipe-ingredient-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.ingredient-qty {
  font-size: 0.8rem;
  font-weight: 700;
  color: #4ecdc4;
  background: rgba(78, 205, 196, 0.15);
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
}

.recipe-steps-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 1.4rem 1.6rem;
}

.recipe-steps-box h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.recipe-steps-list {
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.recipe-steps-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.recipe-steps-list strong {
  color: var(--text-primary);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.8rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .app-viewport {
    padding: 1.5rem 1.8rem;
    height: auto;
    min-height: 100vh;
    max-height: none;
  }

  .hero-section {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    margin: 1.5rem 0;
  }

  .hero-col-left, .hero-col-right {
    align-items: center;
    height: auto;
    padding: 0;
  }

  .control-box {
    align-items: center;
  }

  .grind-pill {
    text-align: center;
  }

  .jar-image-3d {
    max-height: 320px;
  }
}

/* ================= MAIN STAGE & VIEW PANELS ================= */
.main-stage-container {
  position: relative;
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.5rem 0;
  z-index: 5;
}

.view-panel {
  display: none;
  width: 100%;
  animation: fadeInView 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.view-panel.active {
  display: grid;
}

.view-panel.content-card-panel.active {
  display: flex;
  flex-direction: column;
}

@keyframes fadeInView {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Content Card Panels */
.content-card-panel {
  position: relative;
  background: rgba(30, 4, 13, 0.75);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 2.2rem 2.8rem;
  max-width: 1100px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* Panel Close (X) Button */
.panel-close-btn {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  z-index: 10;
}

.panel-close-btn:hover {
  background: var(--accent-white);
  color: var(--accent-dark);
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.panel-header {
  margin-bottom: 1.8rem;
}

.panel-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.panel-header h2 i {
  color: #ff9ebb;
}

.panel-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

/* Quick Roast Badge in 3D Showcase Right Col */
.quick-roast-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--glass-border);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.quick-roast-badge i {
  color: #2ecc71;
}

/* Flavor Radar Meters */
.flavor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flavor-pct {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ff9ebb;
}

/* Brewing Grid */
.brewing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.brew-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: var(--transition-fast);
}

.brew-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
}

.brew-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 117, 140, 0.2);
  color: #ff758c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.9rem;
}

.brew-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.brew-ratio {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffd166;
  background: rgba(255, 209, 102, 0.15);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.6rem;
}

.brew-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Customer Reviews */
.reviews-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  margin-bottom: 0.6rem;
}

.rating-num {
  font-size: 1rem;
  font-weight: 800;
  color: #ffd166;
}

.stars {
  color: #ffd166;
  font-size: 0.85rem;
  display: flex;
  gap: 2px;
}

.review-count {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.review-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.reviewer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.reviewer-name {
  font-size: 0.92rem;
  font-weight: 700;
}

.buyer-badge {
  font-size: 0.72rem;
  color: #2ecc71;
  font-weight: 600;
}

.review-rating {
  color: #ffd166;
  font-size: 0.8rem;
  display: flex;
  gap: 2px;
}

.review-text {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
  font-style: italic;
}

.review-date {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: auto;
}

/* Simplified Contact Section */
.contact-simple-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  padding: 1rem 0;
}

.contact-simple-pill {
  flex: 1;
  min-width: 240px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  backdrop-filter: blur(10px);
  transition: var(--transition-fast);
}

.contact-simple-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
}

.contact-pill-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(78, 205, 196, 0.2);
  color: #4ecdc4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.contact-pill-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-pill-text strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.contact-pill-text span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ================= RESPONSIVE DESIGN (MOBILE & TABLET) ================= */
@media (max-width: 900px) {
  html, body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    display: block;
  }

  .app-viewport {
    height: auto;
    min-height: 100vh;
    max-height: none;
    padding: 0.6rem 1rem 2.5rem 1rem;
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.8rem;
  }

  .top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(30, 4, 13, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.65rem 1rem;
    margin: -0.6rem -1rem 0 -1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  }

  .brand-logo-img {
    height: 32px;
  }

  .brand-name {
    font-size: 1.3rem;
  }

  .nav-center {
    order: 3;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 0.15rem;
  }

  .pill-nav {
    width: 100%;
    max-width: 320px;
    justify-content: space-around;
    padding: 3px;
  }

  .pill-btn {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
  }

  .info-tab-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    margin-top: 0.4rem;
  }

  .section-tab-btn {
    padding: 0.38rem 0.75rem;
    font-size: 0.78rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--glass-border);
  }

  .hero-section {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    height: auto;
    margin: 0.6rem 0 1.8rem 0;
    text-align: center;
  }

  .hero-col-left {
    height: auto;
    align-items: center;
    padding-right: 0;
    order: 1;
  }

  .specialty-badge {
    margin: 0 auto 0.6rem auto;
  }

  .product-title {
    font-size: 2rem;
  }

  .coffee-specs-mini {
    justify-content: center;
  }

  .hero-footnote {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-col-center {
    order: 2;
    margin: 0.4rem 0;
  }

  .jar-card-3d {
    width: 250px;
    height: 320px;
  }

  .hero-col-right {
    height: auto;
    align-items: center;
    padding-left: 0;
    order: 3;
    width: 100%;
  }

  .control-box {
    align-items: center;
    max-width: 100%;
    padding: 1.4rem 1.1rem;
  }

  .brewing-grid, .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 550px) {
  .product-title {
    font-size: 1.75rem;
  }

  .jar-card-3d {
    width: 200px;
    height: 260px;
  }

  .brewing-grid, .contact-grid {
    grid-template-columns: 1fr;
  }

  .modal-card {
    width: 95vw;
    padding: 1.2rem;
  }
}

