/* -------------------------------------------------------------
   Gorky Coffee - Premium 3D Cafe Style System
------------------------------------------------------------- */

:root {
  --color-bg-dark: #0b0a0a;
  --color-bg-glass: rgba(15, 14, 14, 0.75);
  --color-text-light: #fcfaf7;
  --color-text-muted: #a8a29e;
  --color-gold: #d4af37;
  --color-gold-hover: #e5c158;
  --color-gold-glow: rgba(212, 175, 55, 0.25);
  --color-coffee: #4b2e1e;
  --color-milk: #e8e1d7;
  --color-foam: #faf6f0;
  --color-caramel: #b87333;
  --color-card-border: rgba(212, 175, 55, 0.15);
  --color-card-border-active: rgba(212, 175, 55, 0.5);
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Outfit', system-ui, -apple-system, sans-serif;
  
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: all 0.25s ease;
}

/* Reset & Core Setup */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  background-color: var(--color-bg-dark);
  font-family: var(--font-sans);
  color: var(--color-text-light);
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.6;
  font-weight: 300;
}

/* Hide scrollbar for clean layout */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--color-gold);
  border-radius: 3px;
}

/* Typography & Titles */
.serif-title {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.02em;
}

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
}

strong {
  font-weight: 600;
  color: var(--color-gold);
}

/* Premium Layout Helpers */
.glass-container {
  background: var(--color-bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-card-border);
  padding: 3rem 2rem;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  max-width: 1000px;
  margin: 0 auto;
}

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

.gold-accent {
  color: var(--color-gold);
}

/* -------------------------------------------------------------
   1. Preloader Overlay Style
------------------------------------------------------------- */
.preloader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #060505;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

.preloader-content {
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.preloader-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.logo-serif {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--color-text-light);
  letter-spacing: 0.05em;
  line-height: 1;
}

.logo-sans {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--color-gold);
  letter-spacing: 0.4em;
  margin-top: 0.3rem;
  font-weight: 600;
}

.loader-visual {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem auto;
}

.cup-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 10px rgba(212, 175, 55, 0.2));
}

.cup-outline, .cup-handle {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: drawStroke 2.5s infinite ease-in-out;
}

@keyframes drawStroke {
  0%, 100% { stroke-dashoffset: 400; }
  50% { stroke-dashoffset: 0; }
}

.liquid-wave {
  animation: fillLiquid 3s infinite ease-in-out;
  transform-origin: bottom center;
}

@keyframes fillLiquid {
  0%, 100% { transform: scaleY(0.1); opacity: 0.2; }
  50% { transform: scaleY(1); opacity: 0.85; }
}

.steam-line {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  animation: steamRise 1.8s infinite ease-in-out;
}

.steam-2 { animation-delay: 0.3s; }
.steam-3 { animation-delay: 0.6s; }

@keyframes steamRise {
  0% { stroke-dashoffset: 20; opacity: 0; transform: translateY(0); }
  50% { stroke-dashoffset: 0; opacity: 0.8; }
  100% { stroke-dashoffset: -20; opacity: 0; transform: translateY(-8px); }
}

.loader-percentage {
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.loader-status {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  height: 20px;
}

.loader-progress-bar {
  height: 2px;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.loader-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--color-gold);
  transition: width 0.3s ease-out;
  box-shadow: 0 0 10px var(--color-gold);
}

/* -------------------------------------------------------------
   2. Sticky Background Canvas & Parallax Overlay
------------------------------------------------------------- */
.canvas-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  background-color: var(--color-bg-dark);
}

#scrub-canvas, #bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.canvas-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(11, 10, 10, 0.4) 0%, rgba(6, 5, 5, 0.92) 80%),
              linear-gradient(to bottom, rgba(11,10,10,0.85) 0%, rgba(11,10,10,0) 15%, rgba(11,10,10,0) 85%, rgba(11,10,10,0.95) 100%);
  pointer-events: none;
}

.dust-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#dust-canvas {
  width: 100%;
  height: 100%;
}

/* -------------------------------------------------------------
   3. Main Header Navigation
------------------------------------------------------------- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(11, 10, 10, 0.4);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo {
  display: flex;
  flex-direction: column;
}

.logo-primary {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--color-text-light);
}

.logo-sub {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--color-gold);
  font-weight: 500;
  margin-top: -2px;
}

.desktop-nav {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  transition: var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-text-light);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
}

.cart-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-card-border);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}

.cart-btn:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--color-gold);
  transform: scale(1.05);
}

.icon-gold {
  color: var(--color-gold);
  width: 20px;
  height: 20px;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--color-gold);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 10px var(--color-gold-glow);
}

/* -------------------------------------------------------------
   4. Content Layer Sections
------------------------------------------------------------- */
.content-layer {
  position: relative;
  z-index: 10;
  width: 100%;
}

/* Section Header styling */
.section-tag {
  color: var(--color-gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.8rem;
  color: var(--color-text-light);
  margin-bottom: 0.8rem;
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1.5rem;
}

.hero-content {
  max-width: 700px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUpIn 1.2s forwards cubic-bezier(0.16, 1, 0.3, 1) 0.6s;
}

@keyframes fadeUpIn {
  to { opacity: 1; transform: translateY(0); }
}

.scroll-reveal-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border: 1px solid var(--color-card-border);
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 1.5rem;
}

.scroll-reveal-badge span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--color-gold);
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title span {
  display: block;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 500px;
  margin: 0 auto 2.5rem auto;
}

.scroll-indicator {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.scroll-text {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  font-weight: 500;
}

.scroll-mouse {
  width: 24px;
  height: 40px;
  border: 1.5px solid var(--color-text-muted);
  border-radius: 12px;
  position: relative;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: var(--color-gold);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollBob 1.6s infinite ease-in-out;
}

@keyframes scrollBob {
  0% { top: 6px; opacity: 1; }
  50% { top: 18px; opacity: 0; }
  100% { top: 6px; opacity: 0; }
}

/* Generic Text Section */
.text-section {
  padding: 8rem 1.5rem;
}

.section-icon {
  width: 32px;
  height: 32px;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
}

.section-heading {
  font-size: 2.2rem;
  font-family: var(--font-serif);
  margin-bottom: 1.2rem;
}

.section-desc {
  color: var(--color-text-muted);
  font-size: 1.15rem;
  line-height: 1.8;
  max-width: 750px;
  margin: 0 auto;
}

/* -------------------------------------------------------------
   5. Interactive 3D Menu Section & Card Deck
------------------------------------------------------------- */
.menu-section {
  padding: 6rem 1.5rem;
  position: relative;
  min-height: 80vh;
}

.carousel-3d-wrapper {
  margin-top: 4rem;
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: 400px;
  margin-left: auto;
  margin-right: auto;
  perspective: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-3d {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-3d {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 280px;
  height: 360px;
  margin-left: -140px;
  margin-top: -180px;
  transform-style: preserve-3d;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.card-3d-inner {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background: var(--color-bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-card-border);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  transform: translateZ(0px);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
}

.card-3d-inner:hover {
  border-color: var(--color-gold-hover);
  box-shadow: 0 20px 40px rgba(212, 175, 55, 0.15);
}

.card-bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(212,175,55,0.06) 0%, rgba(75,46,30,0.12) 100%);
  pointer-events: none;
  z-index: 1;
}

.card-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: space-between;
  transform: translateZ(30px); /* Generates visual 3D tilt depth */
}

.card-icon-container {
  width: 70px;
  height: 70px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
  transition: var(--transition-fast);
}

.card-3d.active .card-icon-container {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--color-gold);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
}

.card-icon {
  width: 32px;
  height: 32px;
  color: var(--color-gold);
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.card-tagline {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

.explore-btn {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--color-gold);
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-gold);
  padding-bottom: 4px;
  margin-top: auto;
  transition: var(--transition-fast);
}

.card-3d:hover .explore-btn {
  color: var(--color-text-light);
  border-color: var(--color-text-light);
}

/* 3D Stack positions classes configured via Javascript */
.card-3d.active {
  transform: translate3d(0, 0, 100px) rotateY(0deg);
  z-index: 10;
  opacity: 1;
  pointer-events: auto;
}
.card-3d.active .card-3d-inner {
  border-color: var(--color-gold);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.card-3d.prev {
  transform: translate3d(-250px, 0, -80px) rotateY(25deg);
  z-index: 5;
  opacity: 0.65;
  pointer-events: auto;
}

.card-3d.next {
  transform: translate3d(250px, 0, -80px) rotateY(-25deg);
  z-index: 5;
  opacity: 0.65;
  pointer-events: auto;
}

.card-3d.hidden-left {
  transform: translate3d(-450px, 0, -200px) rotateY(45deg);
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.card-3d.hidden-right {
  transform: translate3d(450px, 0, -200px) rotateY(-45deg);
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

/* Carousel Control Panels */
.carousel-controls {
  position: absolute;
  bottom: -40px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  z-index: 50;
}

.control-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-card-border);
  color: var(--color-text-light);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.control-btn:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: #000;
  transform: scale(1.08);
}

.carousel-dots {
  display: flex;
  gap: 0.6rem;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: var(--transition-fast);
  cursor: pointer;
}

.dot.active {
  background: var(--color-gold);
  width: 20px;
  border-radius: 4px;
}

/* Expanded Category Item List (fades in, slides down) */
.menu-items-container {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  max-width: 900px;
  margin: 5rem auto 0 auto;
  background: var(--color-bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-card-border);
  padding: 2.5rem;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  z-index: 20;
}

.menu-items-container.visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.items-grid-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1.2rem;
  margin-bottom: 2rem;
}

.items-grid-header h3 {
  font-size: 2rem;
  color: var(--color-text-light);
}

.back-to-carousel-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-muted);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.back-to-carousel-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text-light);
  border-color: var(--color-gold);
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* Individual Item Cards */
.menu-item-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-fast);
}

.menu-item-card:hover {
  background: rgba(212, 175, 55, 0.02);
  border-color: rgba(212, 175, 55, 0.25);
  transform: translateY(-4px);
}

.item-main-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.item-name {
  font-size: 1.2rem;
  color: var(--color-text-light);
  font-weight: 600;
}

.item-price {
  font-size: 1.25rem;
  color: var(--color-gold);
  font-weight: 700;
  font-family: var(--font-serif);
}

.item-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.size-selector-pills {
  display: flex;
  gap: 0.4rem;
}

.pill-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.pill-btn.active {
  background: var(--color-gold);
  color: #000;
  border-color: var(--color-gold);
}

.add-item-btn {
  background: var(--color-gold);
  border: none;
  color: #000;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 4px 10px var(--color-gold-glow);
}

.add-item-btn:hover {
  background: var(--color-gold-hover);
  transform: scale(1.1);
}

.add-item-btn i {
  width: 16px;
  height: 16px;
}

/* -------------------------------------------------------------
   6. Interactive Drink Builder (Customizer)
------------------------------------------------------------- */
.customizer-section {
  padding: 6rem 1.5rem;
}

.customizer-card-wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

.customizer-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  margin-top: 3.5rem;
  align-items: center;
}

/* Visualizer Left Column */
.customizer-visual-pane {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.interactive-cup-container {
  position: relative;
  width: 200px;
  height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 2rem;
}

/* Steam particles */
.steam-emitter {
  position: absolute;
  top: -40px;
  width: 80px;
  height: 60px;
  display: flex;
  justify-content: space-around;
  pointer-events: none;
}

.steam-particle {
  width: 6px;
  height: 20px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  filter: blur(4px);
}

.st-1 { animation: driftSteam 2.5s infinite ease-out; }
.st-2 { animation: driftSteam 3.2s infinite ease-out 0.8s; }
.st-3 { animation: driftSteam 2.8s infinite ease-out 0.4s; }

@keyframes driftSteam {
  0% { transform: translateY(40px) scale(0.5); opacity: 0; }
  30% { opacity: 0.6; }
  100% { transform: translateY(-10px) translateX(var(--drift-x, 8px)) scale(1.5); opacity: 0; }
}

.st-1 { --drift-x: -12px; }
.st-2 { --drift-x: 15px; }
.st-3 { --drift-x: -4px; }

/* SVG/CSS Glass Cup Graphic */
.glass-cup {
  position: relative;
  width: 140px;
  height: 180px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top: none;
  border-radius: 4px 4px 50px 50px;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 -10px 20px rgba(255, 255, 255, 0.05),
              0 10px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.glass-cup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10px;
  width: 10px;
  height: 90%;
  background: linear-gradient(to right, rgba(255,255,255,0.15), rgba(255,255,255,0));
  border-radius: 4px;
}

.cup-fill-area {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column-reverse;
}

.liquid-layer {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 0;
  overflow: hidden;
  transition: height 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.layer-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  pointer-events: none;
  z-index: 10;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.4s ease 0.4s;
}

/* Active height styles set by JS */
.liquid-layer.active {
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
}
.liquid-layer.active .layer-label {
  opacity: 1;
}

.layer-espresso {
  background: linear-gradient(to top, #1e0f07, #3d2314);
}
.layer-milk {
  background: linear-gradient(to top, #ded7cc, #eae4db);
}
.layer-foam {
  background: linear-gradient(to top, #eae2d3, #faf6f0);
}
.layer-syrup {
  background: linear-gradient(to top, #844c20, #b87333);
}

.glass-cup-shadow {
  width: 110px;
  height: 10px;
  background: rgba(0, 0, 0, 0.6);
  filter: blur(5px);
  border-radius: 50%;
  margin-top: 10px;
}

.cup-metrics {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 320px;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.metric-name {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.metric-val {
  font-size: 1.1rem;
  font-weight: 600;
}

.gold-text {
  color: var(--color-gold);
}

/* Control Panel Right Column */
.customizer-controls-pane {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.option-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.group-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.customizer-options-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.opt-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text-light);
  padding: 0.65rem 1.2rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.opt-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(212, 175, 55, 0.3);
}

.opt-btn.active {
  background: var(--color-gold-glow);
  border-color: var(--color-gold);
  color: var(--color-gold);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.08);
}

/* Size options custom style */
.size-options .opt-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  padding: 0;
}

.size-abbr {
  font-size: 1.2rem;
  font-weight: 700;
}

.size-full {
  font-size: 0.65rem;
  color: var(--color-text-muted);
}

.size-options .opt-btn.active .size-full {
  color: var(--color-gold);
}

.add-to-cart-container {
  margin-top: 1rem;
}

/* Premium Buttons */
.premium-btn {
  width: 100%;
  background: linear-gradient(135deg, #d4af37 0%, #b59223 100%);
  border: none;
  color: #000;
  padding: 1.1rem;
  border-radius: 40px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  transition: var(--transition-bounce);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2);
}

.premium-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(212, 175, 55, 0.35);
  background: linear-gradient(135deg, #e5c158 0%, #c4a129 100%);
}

.premium-btn:active {
  transform: translateY(1px);
}

/* -------------------------------------------------------------
   7. About Story Section
------------------------------------------------------------- */
.about-section {
  padding-bottom: 8rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
}

.detail-badge span {
  font-size: 0.9rem;
  font-weight: 500;
}

.about-metrics {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.glass-number-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
}

.huge-number {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 0.5rem;
  display: block;
}

.number-label {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

/* -------------------------------------------------------------
   8. Footer Styling
------------------------------------------------------------- */
.main-footer {
  background: #060505;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 5rem 1.5rem 2rem 1.5rem;
  position: relative;
  z-index: 10;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.brand-col .footer-logo {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  display: block;
  margin-bottom: 1rem;
}

.brand-col p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  max-width: 350px;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--color-text-muted);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-fast);
}

.social-links a:hover {
  background: var(--color-gold);
  color: #000;
  border-color: var(--color-gold);
  transform: translateY(-2px);
}

.social-links a i {
  width: 18px;
  height: 18px;
}

.links-col h4 {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
}

.links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.links-col ul li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.links-col ul li i {
  width: 16px;
  height: 16px;
  color: var(--color-gold);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.75rem;
}

/* -------------------------------------------------------------
   9. Sliding Cart Overlay Panels
------------------------------------------------------------- */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-panel {
  width: 420px;
  max-width: 100%;
  height: 100%;
  background: #0f0e0e;
  border-left: 1px solid var(--color-card-border);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.7);
}

.cart-overlay.open .cart-panel {
  transform: translateX(0);
}

.cart-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
}

.close-icon-btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 4px;
  transition: var(--transition-fast);
}

.close-icon-btn:hover {
  color: var(--color-text-light);
  transform: rotate(90deg);
}

.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.empty-cart-message {
  text-align: center;
  margin: auto;
  color: var(--color-text-muted);
}

.empty-cart-icon {
  width: 48px;
  height: 48px;
  color: rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
}

.empty-cart-message p {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text-light);
  margin-bottom: 0.3rem;
}

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

/* Item cards in Cart */
.cart-item-card {
  display: flex;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 1rem;
  border-radius: 12px;
  position: relative;
}

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

.cart-item-name {
  font-weight: 600;
  font-size: 0.95rem;
}

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

.cart-item-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-gold);
  margin-top: 0.3rem;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}

.remove-cart-item {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: var(--transition-fast);
}

.remove-cart-item:hover {
  color: #ef4444;
}

.remove-cart-item i {
  width: 16px;
  height: 16px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  padding: 2px 4px;
}

.qty-btn {
  background: none;
  border: none;
  color: var(--color-text-light);
  cursor: pointer;
  font-size: 0.9rem;
  width: 18px;
  height: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.qty-btn:hover {
  color: var(--color-gold);
}

.qty-num {
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 14px;
  text-align: center;
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #0a0909;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.cart-total-row span:last-child {
  color: var(--color-gold);
  font-family: var(--font-serif);
  font-size: 1.35rem;
}

.checkout-btn {
  width: 100%;
  background: var(--color-gold);
  border: none;
  color: #000;
  padding: 1rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.checkout-btn:hover {
  background: var(--color-gold-hover);
  transform: translateY(-1px);
}

/* -------------------------------------------------------------
   10. Order Confirmation Modal Dialog
------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 3000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.glass-modal {
  background: var(--color-bg-glass);
  border: 1px solid var(--color-card-border);
  border-radius: 28px;
  width: 480px;
  max-width: 90%;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.open .glass-modal {
  transform: scale(1) translateY(0);
}

.modal-success-icon {
  width: 80px;
  height: 80px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 1.5rem auto;
}

.success-icon {
  width: 44px;
  height: 44px;
  color: var(--color-gold);
}

.glass-modal h3 {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.glass-modal p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* Horizontal order tracker */
.order-tracker-box {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 1.5rem;
  border-radius: 16px;
  margin-bottom: 2rem;
}

.tracker-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  position: relative;
}

.tracker-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 11px;
  top: 24px;
  width: 2px;
  height: calc(1.5rem + 2px);
  background: rgba(255, 255, 255, 0.08);
}

.tracker-node {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: #0f0e0e;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.tracker-node i {
  width: 12px;
  height: 12px;
  color: #000;
}

.tracker-step.completed {
  color: var(--color-text-light);
}

.tracker-step.completed .tracker-node {
  background: var(--color-gold);
  border-color: var(--color-gold);
}

.tracker-step.completed:not(:last-child)::after {
  background: var(--color-gold);
}

.tracker-step.active {
  color: var(--color-gold);
  font-weight: 500;
}

.tracker-step.active .tracker-node {
  border-color: var(--color-gold);
}

.tracker-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gold);
  animation: pulseNode 1.5s infinite ease-in-out;
}

@keyframes pulseNode {
  0% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.4); opacity: 1; box-shadow: 0 0 8px var(--color-gold); }
  100% { transform: scale(0.8); opacity: 0.5; }
}

.close-modal-btn {
  max-width: 200px;
  margin: 0 auto;
}

/* -------------------------------------------------------------
   11. Responsive Styles (Mobile First / Tablet Adapts)
------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-title {
    font-size: 3.2rem;
  }
  
  .customizer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .customizer-visual-pane {
    order: 1; /* Pushes the cup visualization below or keeps it visually in context */
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none; /* In a real app we'd trigger mobile menu, but for responsive menu scrolling it fits cleanly */
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .text-section {
    padding: 5rem 1rem;
  }
  
  .carousel-3d-wrapper {
    height: 380px;
  }
  
  .card-3d {
    width: 250px;
    height: 330px;
    margin-left: -125px;
    margin-top: -165px;
  }
  
  .card-3d.prev {
    transform: translate3d(-170px, 0, -100px) rotateY(30deg) scale(0.85);
  }
  
  .card-3d.next {
    transform: translate3d(170px, 0, -100px) rotateY(-30deg) scale(0.85);
  }

  .card-3d.hidden-left {
    transform: translate3d(-300px, 0, -200px) rotateY(45deg);
  }
  
  .card-3d.hidden-right {
    transform: translate3d(300px, 0, -200px) rotateY(-45deg);
  }
  
  .items-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 0.95rem;
  }
  
  .carousel-3d-wrapper {
    height: 350px;
  }
  
  .card-3d {
    width: 220px;
    height: 290px;
    margin-left: -110px;
    margin-top: -145px;
  }
  
  .card-3d.prev {
    transform: translate3d(-110px, 0, -120px) rotateY(35deg) scale(0.8);
    opacity: 0.4;
  }
  
  .card-3d.next {
    transform: translate3d(110px, 0, -120px) rotateY(-35deg) scale(0.8);
    opacity: 0.4;
  }
  
  .card-content {
    transform: translateZ(15px);
  }
  
  .card-title {
    font-size: 1.3rem;
  }
  
  .card-icon-container {
    width: 55px;
    height: 55px;
    margin-bottom: 0.5rem;
  }
  
  .card-icon {
    width: 24px;
    height: 24px;
  }
  
  .customizer-options-row {
    gap: 0.5rem;
  }
  
  .opt-btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }
  
  .size-options .opt-btn {
    width: 54px;
    height: 54px;
  }
  
  .size-abbr {
    font-size: 1rem;
  }
  
  .cart-panel {
    width: 100%;
  }
  
  .menu-items-container {
    padding: 1.5rem 1rem;
  }
  
  .items-grid-header h3 {
    font-size: 1.5rem;
  }
}
