/* ==========================================================================
   TU CAFETERÍA — CAFFIORA EDITORIAL DESIGN SYSTEM
   Tostaduría & Barra de Café de Especialidad
   ========================================================================== */

:root {
  /* Editorial Color Palette */
  --bg-parchment: #ebe5df;
  --bg-surface: #f7f3ee;
  --bg-surface-warm: #f1eae2;
  --bg-espresso: #1a120c;
  --bg-espresso-card: #231912;
  --bg-white: #ffffff;
  
  --text-primary: #1a120c;
  --text-secondary: #5e5349;
  --text-muted: #8c8074;
  --text-on-dark: #fbf9f6;
  --text-on-dark-secondary: #c9c0b5;
  
  --color-caramel: #b87b3a;
  --color-caramel-light: #e4c29b;
  --border-subtle: #dbd2c6;
  --border-card: #e5ded4;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Albert Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Elevation & Curves */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --shadow-sm: 0 2px 8px rgba(26, 18, 12, 0.04);
  --shadow-md: 0 8px 24px rgba(26, 18, 12, 0.08);
  --shadow-lg: 0 16px 40px rgba(26, 18, 12, 0.12);

  --header-height: 80px;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-parchment);
  color: var(--text-primary);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  background-color: var(--bg-parchment);
  color: var(--text-primary);
  overflow-x: hidden;
  padding-top: var(--header-height);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}

.prose {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Typography Utilities */
.editorial-heading {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.editorial-heading.text-white {
  color: #ffffff;
}

/* ==========================================================================
   BUTTONS & CTAS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: var(--transition-smooth);
  text-decoration: none;
  min-height: 48px;
}

.btn-sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.88rem;
  min-height: 40px;
}

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 1.05rem;
}

.btn-dark {
  background-color: var(--bg-espresso);
  color: #ffffff;
  border: 1px solid var(--bg-espresso);
}

.btn-dark:hover {
  background-color: #2e2016;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-dark {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-outline-dark:hover {
  border-color: var(--bg-espresso);
  background-color: var(--bg-surface);
}

.btn-light {
  background-color: #ffffff;
  color: var(--bg-espresso);
  font-weight: 700;
}

.btn-light:hover {
  background-color: var(--bg-parchment);
  transform: translateY(-2px);
}

.btn-outline-light {
  background-color: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
  border-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-block {
  width: 100%;
}

.inline-arrow-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-smooth);
}

.inline-arrow-link:hover {
  color: var(--color-caramel);
  padding-left: 4px;
}

/* ==========================================================================
   SITE HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(235, 229, 223, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(219, 210, 198, 0.6);
  z-index: 100;
  display: flex;
  align-items: center;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--text-primary);
}

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

.branch-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background-color: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #2e7d32;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-primary);
  transition: var(--transition-smooth);
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background-color: var(--bg-parchment);
  border-bottom: 1px solid var(--border-subtle);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-lg);
}

.mobile-drawer.open {
  display: block;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.mobile-link {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--text-primary);
}

/* ==========================================================================
   HERO SECTION (CAFFIORA EDITORIAL)
   ========================================================================== */
/* ==========================================================================
   HERO SECTION (CAFFIORA STYLE + DYNAMIC AROMA PARTICLES & 3D DEPTH)
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 3.5rem 0 2.5rem;
  background-color: var(--bg-parchment);
  overflow: hidden;
}

.hero-aroma-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 2;
}

.hero-text-block {
  position: relative;
  max-width: 900px;
  margin: 0 auto 2.5rem;
  padding: 0 1rem;
}

.hero-kicker-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-kicker-clean {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.live-roast-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: rgba(197, 133, 59, 0.15);
  color: var(--color-caramel);
  border: 1px solid rgba(197, 133, 59, 0.3);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.roast-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-caramel);
  animation: pulseDot 2s infinite ease-in-out;
}

.hero-headline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(3.2rem, 7.5vw, 5.8rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.hero-headline .headline-line {
  display: block;
  animation: fadeUpHeadline 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-headline .line-1 {
  animation-delay: 0.1s;
}

.hero-headline .line-2 {
  animation-delay: 0.25s;
}

.hero-headline em.amp {
  font-weight: 400;
  color: var(--color-caramel);
  font-style: normal;
  display: inline-block;
  transform: rotate(-4deg);
}

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

/* Rotating Stamp Badge with Magnetic Physics */
.stamp-badge {
  position: absolute;
  right: 15px;
  bottom: -45px;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 10;
}

.stamp-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: var(--text-primary);
  animation: rotateStamp 18s linear infinite;
}

.stamp-arrow {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  transition: transform 0.3s ease;
}

.stamp-badge:hover {
  transform: scale(1.12);
}

.stamp-badge:hover .stamp-arrow {
  transform: translateY(3px);
}

@keyframes rotateStamp {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 3D Depth Layered Media Wrapper */
.hero-media-wrapper {
  position: relative;
  width: 100%;
  max-width: 1100px;
  perspective: 1200px;
  margin-top: 1rem;
}

.hero-media-inner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-hands-img {
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(219, 210, 198, 0.8);
  display: block;
}

/* Floating Hero Interactive Badges */
.hero-float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 12px 30px rgba(26, 18, 12, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.8);
  pointer-events: auto;
  z-index: 5;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}

.hero-float-badge:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 18px 36px rgba(26, 18, 12, 0.18);
  background-color: #ffffff;
}

.badge-icon {
  font-size: 1.25rem;
  color: var(--color-caramel);
}

.badge-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.badge-text strong {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.badge-text small {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* Badge Layout Placements */
.badge-rating {
  top: 10%;
  left: -20px;
  animation: floatBobbing 5s ease-in-out infinite;
}

.badge-origin {
  bottom: 8%;
  left: 5%;
  animation: floatBobbing 6s ease-in-out infinite 1s;
}

.badge-fresh {
  bottom: 12%;
  right: -15px;
  animation: floatBobbing 5.5s ease-in-out infinite 0.5s;
}

@keyframes floatBobbing {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(1.2deg);
  }
}

/* ==========================================================================
   TERROIR INFINITE MARQUEE TICKER
   ========================================================================== */
.terroir-strip {
  position: relative;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.15rem 0;
  background-color: var(--bg-parchment);
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeLoop 28s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding-right: 1.75rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.terroir-item {
  transition: color 0.3s ease;
}

.terroir-item:hover {
  color: var(--text-primary);
}

.terroir-sep {
  color: var(--color-caramel);
  font-size: 0.75rem;
}

@keyframes marqueeLoop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Floating Quick Barista Action Button */
.floating-quick-bar {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.floating-quick-bar.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.quick-order-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background-color: var(--bg-espresso);
  color: #ffffff;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(26, 18, 12, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}

.quick-order-pill:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 16px 32px rgba(26, 18, 12, 0.45);
}

.quick-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulseDot 1.8s infinite ease-in-out;
}

.quick-arrow {
  color: var(--color-caramel-light);
  transition: transform 0.3s ease;
}

.quick-order-pill:hover .quick-arrow {
  transform: translateX(3px);
}

/* ==========================================================================
   FEATURES / WHY OUR BEANS ARE BEST (3-CARD GRID)
   ========================================================================= */
.section {
  padding: 5.5rem 0;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background-color: #ffffff;
}

.feature-icon-box {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.feature-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.feature-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   ASYMMETRICAL SHOWCASES (01 & 02)
   ========================================================================== */
.section-craft {
  background-color: var(--bg-surface-warm);
}

.craft-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}

.craft-block:last-child {
  margin-bottom: 0;
}

.craft-block.reverse {
  direction: rtl;
}

.craft-block.reverse .craft-content {
  direction: ltr;
}

.number-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--bg-espresso);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.craft-content .editorial-heading {
  margin-bottom: 1.25rem;
}

.craft-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-card);
}

.craft-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.craft-media:hover .craft-img {
  transform: scale(1.03);
}

/* ==========================================================================
   COLLECTION / MENU
   ========================================================================== */
.section-collection {
  background-color: var(--bg-parchment);
}

.collection-header {
  margin-bottom: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.collection-sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-top: 0.5rem;
}

.collection-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.55rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.filter-btn.active {
  background-color: var(--bg-espresso);
  color: #ffffff;
  border-color: var(--bg-espresso);
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 2rem;
}

/* ==========================================================================
   PHOTOREALISTIC BEVERAGE SHOWCASE & SENSORY BREAKDOWN
   ========================================================================== */
.photoreal-showcase-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-smooth);
}

.photoreal-stage-wrapper {
  position: relative;
  background: radial-gradient(circle at center, #f7f2ec 0%, #ded2c4 100%);
  min-height: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 1100px;
  padding: 3rem 2rem 2.5rem;
}

/* Camera Angle Selector Floating Bar */
.camera-angle-bar {
  position: absolute;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 0.4rem;
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 20px rgba(26, 18, 12, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.8);
  z-index: 25;
}

.camera-angle-btn {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-secondary);
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.camera-angle-btn:hover {
  color: var(--text-primary);
}

.camera-angle-btn.active {
  background-color: var(--bg-espresso);
  color: #ffffff;
}

.photoreal-stage-inner {
  position: relative;
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-md);
  overflow: visible;
  transform-style: preserve-3d;
  transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.photoreal-drink-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 48px rgba(26, 18, 12, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.9);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
  display: block;
}

/* Dynamic Interactive Specular Light Glare */
.specular-glare {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  pointer-events: none;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 65%);
  mix-blend-mode: overlay;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  z-index: 4;
}

/* Sensory Hotspots on Real Beverage */
.sensory-hotspot {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--bg-espresso);
  color: #ffffff;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 14px rgba(26, 18, 12, 0.35);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.3s ease;
}

.sensory-hotspot:hover, .sensory-hotspot.active {
  transform: scale(1.25);
  background-color: var(--color-caramel);
}

.hotspot-dot {
  font-size: 0.8rem;
  font-weight: 800;
  pointer-events: none;
}

.hotspot-ping {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--color-caramel-light);
  opacity: 0.8;
  animation: pingPulse 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes pingPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  70%, 100% { transform: scale(1.6); opacity: 0; }
}

.hotspot-top {
  top: 15%;
  right: 25%;
}

.hotspot-mid {
  top: 48%;
  left: 20%;
}

.hotspot-bot {
  bottom: 18%;
  right: 22%;
}

/* Tooltip on Hotspot */
.hotspot-tooltip {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background-color: rgba(26, 18, 12, 0.92);
  color: #ffffff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  z-index: 20;
  animation: fadeUpTooltip 0.3s ease forwards;
}

.tooltip-title {
  display: block;
  font-size: 0.88rem;
  color: var(--color-caramel-light);
  margin-bottom: 0.2rem;
}

.tooltip-desc {
  font-size: 0.8rem;
  color: var(--text-on-dark-secondary);
  line-height: 1.4;
  margin: 0;
}

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

.stage-badge-indicator {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(26, 18, 12, 0.85);
  color: #ffffff;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  backdrop-filter: blur(8px);
  pointer-events: none;
  white-space: nowrap;
  z-index: 5;
}

.stage-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #4ade80;
  animation: pulseDot 2s infinite ease-in-out;
}

/* Photoreal Info Panel */
.photoreal-info-panel {
  padding: clamp(2rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.photoreal-selector-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.photoreal-pills {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.drink-pill {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  background-color: var(--bg-surface-warm);
  color: var(--text-secondary);
  border: 1px solid var(--border-card);
  transition: var(--transition-smooth);
}

.drink-pill:hover {
  border-color: var(--bg-espresso);
  color: var(--text-primary);
}

.drink-pill.active {
  background-color: var(--bg-espresso);
  color: #ffffff;
  border-color: var(--bg-espresso);
}

.photoreal-drink-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.photoreal-drink-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Flavor Profile Bars */
.flavor-profile-box {
  background-color: var(--bg-surface-warm);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.5rem;
}

.profile-heading {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--color-caramel);
  margin-bottom: 0.75rem;
}

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

.profile-bar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.bar-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 60px;
}

.bar-track {
  flex: 1;
  height: 6px;
  background-color: rgba(26, 18, 12, 0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background-color: var(--color-caramel);
  border-radius: var(--radius-pill);
  transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.photoreal-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
}

.photoreal-stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.photoreal-stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.photoreal-stat-val {
  font-size: 0.9rem;
  color: var(--text-primary);
}

.photoreal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.photoreal-price {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
}

@media (max-width: 900px) {
  .photoreal-showcase-box {
    grid-template-columns: 1fr;
  }
  .photoreal-stage-wrapper {
    min-height: 380px;
  }
}

/* ==========================================================================
   MAGNETIC 3D TILT & SCROLL REVEAL ANIMATIONS (/animate)
   ========================================================================== */
.feature-card, .collection-card, .branch-card, .threed-showcase-box {
  transform-style: preserve-3d;
  will-change: transform;
}

[data-animate] {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    transition: none;
    transform: none;
  }
}

.collection-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.collection-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background-color: #ffffff;
}

.card-thumb-wrap {
  position: relative;
  height: 280px;
  background-color: var(--bg-surface-warm);
  overflow: hidden;
}

.card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.collection-card:hover .card-thumb {
  transform: scale(1.04);
}

.card-rating {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.card-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.card-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.card-notes {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

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

.card-price {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.card-action-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.card-action-link:hover {
  color: var(--color-caramel);
}

/* ==========================================================================
   MATCHER & BARISTA COMPANION
   ========================================================================== */
.section-matcher {
  background-color: var(--bg-espresso);
  color: #ffffff;
}

.matcher-card {
  max-width: 980px;
  margin: 0 auto;
}

.matcher-header {
  text-align: center;
  margin-bottom: 3rem;
}

.matcher-desc {
  color: var(--text-on-dark-secondary);
  font-size: 1.05rem;
  margin-top: 0.5rem;
}

.matcher-controls {
  display: grid;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.control-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-caramel-light);
  margin-bottom: 0.75rem;
}

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

.option-btn {
  padding: 0.65rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--text-on-dark-secondary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  transition: var(--transition-smooth);
}

.option-btn:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.option-btn.active {
  background-color: #ffffff;
  color: var(--bg-espresso);
  font-weight: 700;
}

.matcher-result {
  background-color: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.result-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 2.5rem;
  align-items: center;
}

.result-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.result-desc {
  color: var(--text-on-dark-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.result-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.spec-pill {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
}

.spec-label {
  display: block;
  font-size: 0.72rem;
  color: var(--color-caramel-light);
  text-transform: uppercase;
}

.spec-val {
  font-size: 0.88rem;
  color: #ffffff;
}

.result-thumb-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 200px;
}

.result-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Companion Layout */
.barista-companion {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
}

.companion-header {
  margin-bottom: 2rem;
}

.companion-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.8rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.companion-sub {
  color: var(--text-on-dark-secondary);
  font-size: 0.95rem;
}

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

.companion-panel {
  background-color: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.panel-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-caramel-light);
  margin-bottom: 1.25rem;
}

.slider-group {
  margin-bottom: 1.5rem;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.slider-label {
  font-size: 0.9rem;
  color: #ffffff;
}

.slider-val {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-caramel-light);
}

.custom-slider {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  outline: none;
  cursor: pointer;
}

.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.ratio-results {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ratio-pill {
  display: flex;
  justify-content: space-between;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.ratio-label {
  color: var(--text-on-dark-secondary);
}

.ratio-value {
  color: #ffffff;
}

/* Live Timer */
.timer-display-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1rem;
}

.timer-digits {
  font-variant-numeric: tabular-nums;
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.05em;
}

.timer-phase-badge {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-caramel-light);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
}

.timer-progress-bar {
  width: 100%;
  height: 5px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.timer-progress-fill {
  width: 0%;
  height: 100%;
  background: var(--color-caramel-light);
  transition: width 0.3s ease;
}

.timer-controls {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.timer-tip {
  font-size: 0.85rem;
  color: var(--text-on-dark-secondary);
  line-height: 1.5;
  background-color: rgba(255, 255, 255, 0.03);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   BEANS PRODUCT CUSTOMIZER
   ========================================================================== */
.section-beans {
  background-color: var(--bg-parchment);
}

.beans-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.beans-grid {
  display: grid;
  grid-template-columns: 45% 55%;
}

.beans-media {
  background-color: var(--bg-surface-warm);
  min-height: 480px;
}

.beans-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.beans-content {
  padding: clamp(2rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-customizer {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.custom-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.custom-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.field-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.select-input {
  width: 100%;
  min-height: 48px;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  background-color: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.select-input:focus {
  border-color: var(--bg-espresso);
  outline: none;
}

.order-summary-box {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background-color: var(--bg-surface-warm);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.price-caption {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.price-amount {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* ==========================================================================
   BRANCHES
   ========================================================================== */
.section-branches {
  background-color: var(--bg-surface-warm);
}

.section-subheading {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-top: 0.4rem;
}

.branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.branch-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.branch-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background-color: #ffffff;
}

.branch-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.branch-address {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.branch-hours {
  background-color: var(--bg-surface-warm);
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.branch-hours strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.2rem;
}

/* ==========================================================================
   STAY CAFFEINATED BANNER (CAFFIORA STYLE)
   ========================================================================== */
.section-community {
  padding: 2rem 0 5rem;
  background-color: var(--bg-parchment);
}

.caffiora-banner {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: var(--shadow-lg);
}

.banner-text-side {
  padding: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.banner-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.banner-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.banner-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.banner-media-side {
  background-color: var(--bg-surface-warm);
  overflow: hidden;
  min-height: 380px;
}

.banner-topdown-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   FOOTER (CAFFIORA STYLE)
   ========================================================================== */
.site-footer {
  background-color: var(--bg-espresso);
  color: var(--text-on-dark-secondary);
  padding: 4.5rem 0 0;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
}

.footer-logo-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  display: block;
  margin-bottom: 0.75rem;
}

.footer-about {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-list a {
  color: var(--text-on-dark-secondary);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.footer-list a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-contact-item {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
  font-size: 0.85rem;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-credit {
  color: var(--color-caramel-light);
}

/* ==========================================================================
   RESPONSIVE DESIGN (PROPORCIONES PERFECTAS PARA MÓVIL Y TABLET)
   ========================================================================== */
@media (max-width: 992px) {
  .main-nav {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .photoreal-showcase-box {
    grid-template-columns: 1fr;
  }

  .craft-block, .craft-block.reverse {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    direction: ltr;
  }

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

  .beans-media {
    min-height: 320px;
  }

  .caffiora-banner {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .result-layout {
    grid-template-columns: 1fr;
  }

  .result-thumb-wrapper {
    display: none;
  }

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

@media (max-width: 768px) {
  .site-header {
    padding: 0.65rem 0;
  }

  .header-actions {
    gap: 0.6rem;
  }

  .header-actions .btn-dark {
    display: none; /* Hide top bar button on mobile; floating action pill & drawer take over */
  }

  .branch-status {
    padding: 0.3rem 0.65rem;
    font-size: 0.76rem;
  }

  .hero-section {
    padding: 2rem 0 2.5rem;
  }

  .hero-text-block {
    margin-bottom: 1.5rem;
  }

  .hero-kicker-wrap {
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
  }

  .hero-headline {
    font-size: clamp(2.3rem, 10.5vw, 3.6rem);
    line-height: 1.04;
  }

  .hero-media-wrapper {
    margin-top: 1rem;
    perspective: none;
  }

  .hero-hands-img {
    max-height: 380px;
    border-radius: var(--radius-md);
  }

  /* Compact Proportional Hero Badges on Mobile */
  .hero-float-badge {
    padding: 0.35rem 0.65rem;
    gap: 0.35rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 6px 18px rgba(26, 18, 12, 0.16);
  }

  .badge-icon {
    font-size: 0.95rem;
  }

  .badge-text strong {
    font-size: 0.74rem;
    line-height: 1.1;
  }

  .badge-text small {
    display: none; /* Hide subtitle text on mobile to avoid overcrowding */
  }

  .badge-rating {
    top: 6%;
    left: 8px;
    right: auto;
    bottom: auto;
  }

  .badge-origin {
    top: 6%;
    right: 8px;
    left: auto;
    bottom: auto;
  }

  .badge-fresh {
    bottom: 6%;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  /* Photoreal Stage on Mobile */
  .photoreal-stage-wrapper {
    min-height: 360px;
    padding: 3rem 0.75rem 2.75rem;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }

  .camera-angle-bar {
    top: 0.65rem;
    gap: 0.25rem;
    padding: 0.25rem 0.35rem;
  }

  .camera-angle-btn {
    padding: 0.25rem 0.55rem;
    font-size: 0.72rem;
  }

  .photoreal-stage-inner {
    max-width: 290px;
  }

  .stage-badge-indicator {
    bottom: 0.65rem;
    font-size: 0.68rem;
    padding: 0.35rem 0.7rem;
    max-width: 90%;
    text-align: center;
    white-space: normal;
    line-height: 1.3;
  }

  .photoreal-info-panel {
    padding: 1.5rem 1.15rem;
  }

  .photoreal-drink-name {
    font-size: 1.85rem;
  }

  .photoreal-drink-desc {
    font-size: 0.9rem;
  }

  .photoreal-pills {
    gap: 0.4rem;
  }

  .drink-pill {
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
  }

  .photoreal-stats-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .photoreal-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .photoreal-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Horizontal Scrolling Collection Tabs */
  .collection-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .collection-tabs {
    display: flex;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.4rem;
    gap: 0.4rem;
    scrollbar-width: none;
  }

  .collection-tabs::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
  }

  .collection-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Matcher & Calculator on Mobile */
  .matcher-card {
    padding: 1.75rem 1.15rem;
  }

  .options-row {
    flex-direction: column;
    gap: 0.45rem;
  }

  .option-btn {
    width: 100%;
    text-align: center;
    padding: 0.65rem 1rem;
  }

  .result-specs {
    flex-direction: column;
    gap: 0.5rem;
  }

  .slider-header {
    font-size: 0.9rem;
  }

  .ratio-results {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .timer-digits {
    font-size: clamp(2.6rem, 9vw, 3.4rem);
  }

  .timer-controls {
    justify-content: center;
  }

  /* Customizer & Branches */
  .beans-media {
    min-height: 240px;
    max-height: 300px;
  }

  .beans-content {
    padding: 1.5rem 1.15rem;
  }

  .branches-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .branch-card {
    padding: 1.5rem 1.15rem;
  }

  .banner-text-side {
    padding: 1.75rem 1.15rem;
  }

  .banner-media-side {
    min-height: 220px;
  }
}

@media (max-width: 640px) {
  .stamp-badge {
    position: absolute;
    bottom: -15px;
    right: 5px;
    width: 75px;
    height: 75px;
  }

  .stamp-badge text {
    font-size: 11.5px;
  }

  .custom-row {
    flex-direction: column;
  }

  .order-summary-box {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 1rem;
  }

  .floating-quick-bar {
    bottom: 1rem;
    right: 1rem;
  }

  .quick-order-pill {
    padding: 0.65rem 1.05rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 400px) {
  .stamp-badge {
    display: none; /* Hide rotating stamp on ultra-narrow screens to keep headline completely clear */
  }

  .brand-logo .brand-name {
    font-size: 1.25rem;
  }
}

/* ==========================================================================
   DIGITAL MENU, MODIFIERS MODAL & CART DRAWER (FASE 1 ENGINE)
   ========================================================================== */

/* Cart Button in Header */
.cart-nav-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--bg-espresso);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.cart-nav-btn:hover {
  background-color: var(--color-caramel);
  transform: scale(1.06);
}

.cart-icon {
  font-size: 1.1rem;
}

.cart-badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--color-caramel);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-parchment);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-badge-count.pop {
  transform: scale(1.35);
}

/* Card Diet Badges & Customize Buttons */
.card-diet-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background-color: rgba(26, 18, 12, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
}

.btn-customize-item {
  background-color: var(--bg-espresso);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-customize-item:hover {
  background-color: var(--color-caramel);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(184, 123, 58, 0.3);
}

/* Hidden state overrides */
.customizer-modal[hidden],
.customizer-modal-backdrop[hidden],
.cart-drawer[hidden],
.cart-backdrop[hidden],
.cart-empty-state[hidden],
.cart-drawer-footer[hidden] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Customizer Modal
   -------------------------------------------------------------------------- */
.customizer-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(26, 18, 12, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  animation: fadeIn 0.25s ease forwards;
}

.customizer-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1001;
  overflow-y: auto;
}

.customizer-dialog {
  position: relative;
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-card);
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(26, 18, 12, 0.75);
  color: #ffffff;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  background-color: var(--color-caramel);
  transform: scale(1.1);
}

.modal-product-header {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem 1.5rem 1.25rem;
  background-color: var(--bg-surface-warm);
  border-bottom: 1px solid var(--border-subtle);
  align-items: center;
}

.modal-img-wrap {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.modal-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-product-intro {
  flex: 1;
}

.modal-badge-row {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.modal-diet-pill {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-caramel);
  background-color: rgba(184, 123, 58, 0.12);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
}

.modal-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.45rem;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.modal-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 0.4rem;
}

.modal-base-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-modifiers-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mod-group-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mod-tag-req {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
}

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

.mod-pill {
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  background-color: #ffffff;
  border: 1px solid var(--border-card);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.mod-pill:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.mod-pill.active {
  background-color: var(--bg-espresso);
  color: #ffffff;
  border-color: var(--bg-espresso);
}

.mod-price-extra {
  font-size: 0.74rem;
  opacity: 0.85;
}

.mod-pill.active .mod-price-extra {
  color: var(--color-caramel-light);
}

.mod-notes-input {
  width: 100%;
  min-height: 70px;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-card);
  font-family: var(--font-body);
  font-size: 0.85rem;
  resize: vertical;
  background-color: #ffffff;
}

.mod-notes-input:focus {
  outline: none;
  border-color: var(--bg-espresso);
}

/* Smart Upsell Box inside Modal */
.upsell-box {
  background-color: var(--bg-surface-warm);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem;
}

.upsell-heading {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--color-caramel);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.upsell-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-card);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.upsell-item-card:hover {
  border-color: var(--color-caramel);
}

.upsell-item-card.selected {
  border-color: var(--color-caramel);
  background-color: rgba(184, 123, 58, 0.06);
}

.upsell-info {
  display: flex;
  flex-direction: column;
}

.upsell-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

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

.upsell-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  transition: var(--transition-smooth);
}

.upsell-item-card.selected .upsell-checkbox {
  background-color: var(--color-caramel);
  border-color: var(--color-caramel);
}

/* Modal Footer */
.modal-footer {
  padding: 1.25rem 1.5rem;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.modal-qty-control {
  display: inline-flex;
  align-items: center;
  background-color: var(--bg-surface-warm);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.5rem;
}

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

.qty-btn:hover {
  background-color: #ffffff;
}

.qty-display {
  font-size: 0.95rem;
  font-weight: 800;
  padding: 0 0.65rem;
  min-width: 24px;
  text-align: center;
}

.btn-add-to-cart {
  flex: 1;
  padding: 0.85rem 1.25rem;
  font-size: 0.92rem;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Slide-Out Digital Cart & Order Drawer
   -------------------------------------------------------------------------- */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(26, 18, 12, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1100;
  animation: fadeIn 0.25s ease forwards;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background-color: var(--bg-surface);
  z-index: 1101;
  display: flex;
  flex-direction: column;
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.3);
  border-left: 1px solid var(--border-card);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.cart-drawer-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-surface-warm);
}

.cart-header-title h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.45rem;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.cart-items-counter {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.drawer-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: transparent;
  border: 1px solid var(--border-subtle);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.drawer-close-btn:hover {
  background-color: var(--bg-espresso);
  color: #ffffff;
}

/* Service Mode Selector */
.cart-service-selector {
  padding: 1.2rem 1.5rem;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-card);
}

.service-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.service-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.service-pill {
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  background-color: var(--bg-surface-warm);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.service-pill .service-pill-icon {
  stroke: currentColor;
  flex-shrink: 0;
}

.service-pill.active {
  background-color: var(--bg-espresso);
  color: #ffffff;
  border-color: var(--bg-espresso);
}

.service-input-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.service-text-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-card);
  background-color: var(--bg-surface-warm);
}

.service-text-input:focus {
  outline: none;
  border-color: var(--bg-espresso);
  background-color: #ffffff;
}

/* Cart Items Body */
.cart-items-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
}

.cart-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.empty-cart-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--bg-surface-warm);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-caramel);
  margin-bottom: 0.25rem;
}

.empty-cart-icon svg {
  stroke: currentColor;
}

.cart-empty-state h4 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--text-primary);
}

.cart-empty-state p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 280px;
}

.cart-items-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item-row {
  display: flex;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-card);
  position: relative;
}

.cart-item-thumb {
  width: 65px;
  height: 65px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
}

.cart-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.2rem;
}

.cart-item-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.cart-item-del-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 0 0.3rem;
  transition: color 0.2s ease;
}

.cart-item-del-btn:hover {
  color: #dc2626;
}

.cart-item-mods {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.cart-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-item-price {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-primary);
}

.cart-qty-mini {
  display: inline-flex;
  align-items: center;
  background-color: var(--bg-surface-warm);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-card);
  padding: 0.15rem 0.35rem;
}

.cart-qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: transparent;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-qty-val {
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0 0.4rem;
}

/* Cart Footer */
.cart-drawer-footer {
  padding: 1.5rem;
  background-color: var(--bg-surface-warm);
  border-top: 1px solid var(--border-subtle);
}

.cart-totals-summary {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.summary-total {
  font-size: 1.15rem;
  color: var(--text-primary);
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border-subtle);
  margin-top: 0.25rem;
}

.total-amount {
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
}

.cart-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.btn-send-order {
  padding: 0.95rem;
  font-size: 0.95rem;
  font-weight: 800;
  justify-content: center;
}

.btn-clear-cart {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-align: center;
}

.btn-clear-cart:hover {
  color: var(--text-primary);
}

.cart-footer-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
  text-align: center;
}
