@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
  /* User requested colors */
  --color-main: #800000;
  --color-secondary: #602B19;
  --color-accent-1: #D893AA;
  --color-accent-2: #B97771;
  --color-base: #dbcdc0;

  /* Font mapping */
  --font-serif: "TAN Mon Cheri", "Playfair Display", serif;
  --font-sans: "TT Commons Pro", "Montserrat", sans-serif;
}

html {
  margin: 0;
  padding: 0;
  /* clip stops horizontal overflow WITHOUT creating a scroll context
     so position:sticky still works correctly */
  overflow-x: clip;
  width: 100%;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: clip;    /* prevents horizontal scroll without creating a scroll context */
  overscroll-behavior-y: none; /* prevents scroll chaining from drawers/sheets into page */
  width: 100%;
  font-family: var(--font-sans);
  background-color: #faf8f7;
  color: var(--color-secondary);
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

/* Floating WhatsApp Button */

.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #25D366;
  color: white;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 60px;
  width: 60px;
  padding: 0;
}

.floating-whatsapp .whatsapp-text {
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  font-size: 15px;
  display: none;
}

@media (min-width: 768px) {
  .floating-whatsapp .whatsapp-text {
    display: block;
  }
  
  .floating-whatsapp:hover {
    width: auto;
    padding: 0 24px 0 18px;
    justify-content: flex-start;
  }

  .floating-whatsapp:hover .whatsapp-text {
    max-width: 200px;
    opacity: 1;
    margin-left: 12px;
  }
}

.floating-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
  color: white;
}

/* Cart Nudge Notification */

.cart-nudge {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(128, 0, 0, 0.95);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(128, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  cursor: pointer;
  animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.9rem;
  font-weight: 500;
  max-width: 400px;
  width: 90%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cart-nudge:hover {
  transform: translateX(-50%) translateY(-3px);
  box-shadow: 0 12px 40px rgba(128, 0, 0, 0.35), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cart-nudge-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-nudge-content span {
  flex: 1;
  line-height: 1.4;
}

.cart-nudge-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.cart-nudge-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translate(-50%, 30px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 768px) {
  .cart-nudge {
    bottom: 90px;
    padding: 10px 16px;
    font-size: 0.8rem;
    width: 92%;
    border-radius: 16px;
  }
}
/* App.css - Redesign for Mini Bakes */
:root {
  --primary: #FFD1DC;
  --secondary: #5c0d1b;
  /* Maroon color from logo */
  --text-dark: #333;
  --bg-white: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #fcfcfc;
  color: var(--text-dark);
  scroll-behavior: smooth;
}

.main-layout {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.mobile-only {
  display: none !important;
}

@media (max-width: 768px) {
  .mobile-only {
    display: inherit !important;
    /* Allow the element's original display property to work */
  }

  .desktop-only {
    display: none !important;
  }
}

/* Page Transitions */
.page-transition-wrapper {
  animation: pageFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  width: 100%;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Page Loader Styles */
.page-transition-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: white;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.loader-shimmer {
  width: 40px;
  height: 40px;
  border: 3px solid #FFF0F4;
  border-top-color: var(--secondary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.page-transition-loader p {
  color: var(--secondary);
  font-family: var(--font-serif, serif);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Splash Screen Styles */
.splash-screen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #ffffff;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.4s;
  opacity: 1;
  visibility: visible;
}

.splash-screen-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 90%;
  animation: splashScaleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.splash-logo {
  max-width: 180px;
  height: auto;
  margin-bottom: 24px;
  animation: splashLogoFloat 3s ease-in-out infinite;
}

.splash-loader-bar {
  width: 140px;
  height: 3px;
  background: #FFEbee;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
}

.splash-loader-progress {
  width: 100%;
  height: 100%;
  background: var(--secondary);
  position: absolute;
  left: -100%;
  animation: splashProgress 2.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.splash-tagline {
  color: var(--secondary);
  font-family: var(--font-serif, serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.8px;
  opacity: 0;
  transform: translateY(10px);
  animation: splashTextFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

@keyframes splashScaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes splashLogoFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes splashProgress {
  0% {
    left: -100%;
  }
  50% {
    left: -30%;
  }
  100% {
    left: 0%;
  }
}

@keyframes splashTextFadeIn {
  to {
    opacity: 0.95;
    transform: translateY(0);
  }
}

/* Header Styles */
.header {
  background-color: var(--bg-white);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4rem;
  box-shadow: none;
  position: fixed; /* Overlay on top of hero */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  height: 90px;
}

.logo-container img {
  height: 80px;
  object-fit: contain;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.search-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
}

.search-input {
  width: 0;
  padding: 0;
  opacity: 0;
  border: 1px solid transparent;
  outline: none;
  background: #f5f5f5;
  border-radius: 20px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-dark);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-wrapper.open .search-input {
  width: 320px;
  padding: 0.6rem 1.2rem;
  margin-right: 0.5rem;
  opacity: 1;
  border-color: var(--secondary);
}

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 15px);
  right: 0;
  width: 380px;
  background: white;
  border-radius: 24px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
  max-height: 500px;
  overflow-y: auto;
  z-index: 1001;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  animation: searchSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

@keyframes searchSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-result-item:hover {
  background: #fdf2f2;
  transform: translateX(5px);
}

.search-result-img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.search-result-info {
  flex: 1;
}

.search-result-info h4 {
  font-size: 1rem;
  color: var(--secondary);
  margin-bottom: 0.2rem;
  font-weight: 600;
}

.search-result-info p {
  font-size: 0.85rem;
  color: #666;
}

.search-no-results {
  padding: 2.5rem 1rem;
  text-align: center;
  color: #999;
  font-size: 0.95rem;
}

.search-results-dropdown::-webkit-scrollbar {
  width: 6px;
}

.search-results-dropdown::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.search-icon {
  color: var(--secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
}

.search-icon:active {
  transform: scale(0.9);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 500;
  color: var(--secondary);
}

.nav-link {
  text-decoration: none;
  color: var(--secondary);
  font-size: 1.2rem;
  transition: opacity 0.2s;
}

.nav-link:hover {
  opacity: 0.7;
}

.nav-divider {
  font-size: 1.2rem;
  color: var(--secondary);
}

.menu-icon {
  display: none;
  /* Hide on desktop */
  color: var(--secondary);
  cursor: pointer;
}

/* Unique Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--secondary);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  clip-path: circle(0% at 90% 5%);
  /* Starts from the menu icon area */
  transition: clip-path 0.8s cubic-bezier(0.77, 0, 0.175, 1);
  pointer-events: none;
}

.mobile-menu-overlay.open {
  clip-path: circle(150% at 90% 5%);
  pointer-events: auto;
}

.menu-close-btn {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 10px;
  opacity: 0;
  transform: rotate(-90deg);
  transition: all 0.5s ease 0.4s;
}

.mobile-menu-overlay.open .menu-close-btn {
  opacity: 1;
  transform: rotate(0deg);
}

.menu-content {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.nav-item-wrapper {
  overflow: hidden;
}

.mobile-nav-link {
  display: block;
  font-size: 4rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  text-transform: lowercase;
  letter-spacing: -2px;
  line-height: 1.1;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu-overlay.open .mobile-nav-link {
  transform: translateY(0%);
}

/* Staggered text reveals */
.nav-item-wrapper:nth-child(1) .mobile-nav-link {
  transition-delay: 0.4s;
}

.nav-item-wrapper:nth-child(2) .mobile-nav-link {
  transition-delay: 0.5s;
}

.nav-item-wrapper:nth-child(3) .mobile-nav-link {
  transition-delay: 0.6s;
}

.nav-item-wrapper:nth-child(4) .mobile-nav-link {
  transition-delay: 0.7s;
}

.nav-item-wrapper:nth-child(5) .mobile-nav-link {
  transition-delay: 0.8s;
}

.menu-footer {
  margin-top: 4rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.6s ease 0.9s;
}

.mobile-menu-overlay.open .menu-footer {
  opacity: 1;
}

/* Hero Section Styles */
.hero-section {
  position: relative;
  height: 100dvh; /* Full screen height */
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 120px; /* Offset for the fixed header with extra room */
}

.global-fixed-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -10; /* Far behind everything */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  pointer-events: none;
}

.global-fixed-bg.visible {
  opacity: 1;
  visibility: visible;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  /* background-attachment: fixed; Not needed with position: fixed on parent */
  opacity: 0;
  transition: opacity 2.5s ease-in-out;
  transform: translateZ(0); /* Hardware acceleration */
}

.hero-bg-image.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.3));
}

.hero-content {
  color: #fff;
  padding: 2rem;
  max-width: 800px;
  z-index: 10;
}

.hero-top-left-content {
  position: absolute;
  top: 13rem;
  left: 4rem;
  z-index: 20;
  text-align: left;
  max-width: 600px;
}

.hero-celebration-text {
  color: var(--secondary);
  line-height: 1.1;
  margin-bottom: 2rem;
}

/* Hero Rating Badge */
.hero-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(92, 13, 27, 0.05);
  border: 1px solid rgba(92, 13, 27, 0.15);
  padding: 8px 16px;
  border-radius: 30px;
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
  animation: heroFadeIn 0.8s ease-out;
}

.hero-rating-badge .star-icon {
  color: #f59e0b; /* Golden star */
  font-size: 1rem;
}

/* Hero Subtext */
.hero-subtext {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--color-main);
  margin: 24px 0 32px 0;
  max-width: 520px;
  animation: heroFadeIn 1s ease-out;
}

/* Hero CTA Buttons */
.hero-cta-buttons {
  display: flex;
  gap: 16px;
  animation: heroFadeIn 1.2s ease-out;
}

.hero-cta-btn {
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.3px;
  font-family: inherit;
}

.hero-cta-btn.primary {
  background: var(--secondary);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(92, 13, 27, 0.2);
}

.hero-cta-btn.primary:hover {
  background: #731322;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(92, 13, 27, 0.3);
}

.hero-cta-btn.secondary {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}

.hero-cta-btn.secondary:hover {
  background: rgba(92, 13, 27, 0.04);
  transform: translateY(-2px);
}

/* Floating Decorative Elements */
.hero-decorative-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 15;
}

.floating-sparkle {
  position: absolute;
  font-size: 1.5rem;
  opacity: 0.65;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.05));
}

.floating-sparkle.pos-1 {
  top: 25%;
  left: 55%;
  font-size: 1.8rem;
  animation: sparkleFloat 4s ease-in-out infinite alternate;
}

.floating-sparkle.pos-2 {
  top: 60%;
  left: 80%;
  font-size: 1.4rem;
  animation: sparkleFloat 5s ease-in-out infinite alternate-reverse 1s;
}

.floating-sparkle.pos-3 {
  top: 15%;
  left: 88%;
  font-size: 1.6rem;
  animation: sparkleFloat 6s ease-in-out infinite alternate 0.5s;
}

.floating-sparkle.pos-4 {
  top: 75%;
  left: 45%;
  font-size: 1.7rem;
  opacity: 0.45;
  animation: sparkleFloat 7s ease-in-out infinite alternate-reverse 1.5s;
}

/* Scroll Mouse Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  z-index: 20;
  transition: opacity 0.3s;
}

.hero-scroll-indicator:hover {
  opacity: 0.8;
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid var(--secondary);
  border-radius: 12px;
  position: relative;
}

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

.scroll-text {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--secondary);
  opacity: 0.8;
}

/* Keyframes */
@keyframes sparkleFloat {
  0% {
    transform: translateY(0) rotate(0deg) scale(0.9);
  }
  100% {
    transform: translateY(-20px) rotate(15deg) scale(1.1);
  }
}

@keyframes scrollWheelAnimation {
  0% {
    top: 6px;
    opacity: 1;
  }
  50% {
    top: 16px;
    opacity: 0.3;
  }
  100% {
    top: 6px;
    opacity: 1;
  }
}

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

.hero-sans {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 3.2rem;
  font-weight: 800;
  font-style: normal;
  letter-spacing: -1px;
}

.hero-serif-accent {
  font-family: var(--font-serif);
  font-size: 4.5rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.5px;
}

.hero-right-circle {
  position: absolute;
  top: 50%;
  right: 25%;
  transform: translateY(-50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background-color: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
  z-index: 30;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.15),
    inset 0 0 0 2px rgba(255, 215, 0, 0.1);
  /* Subtle gold inner ring */
  border: 4px solid #fff;
}

.hero-orbit-container {
  position: absolute;
  top: 50%;
  right: 25%;
  transform: translateY(-50%) rotate(var(--orbit-rotation, 0deg));
  width: 200px;
  height: 200px;
  z-index: 10;
  transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
  /* Smoother premium easing */
}

.hero-orbit-container::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  right: -100px;
  bottom: -100px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 0, 0, 0.2);
  /* Finer, more subtle line */
}

.orbit-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70px;
  /* Slightly larger for better detail */
  height: 70px;
  background-color: #fff;
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-200px) rotate(calc(-1 * (var(--angle) + var(--orbit-rotation, 0deg))));
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  z-index: 10;
  border: 3px solid #fff;
  transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
}

.orbit-item:hover {
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-200px) rotate(calc(-1 * (var(--angle) + var(--orbit-rotation, 0deg)))) scale(1.15);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
}

.hero-info-box {
  position: absolute;
  bottom: 0;
  right: calc(25% - 275px);
  width: 760px;
  height: 400px;
  background: none; /* Move background to pseudo-element for perfect layering */
  border-radius: 100% 45% 0 0 / 100% 100% 0 0;
  /* Perfected organic asymmetric shape */
  border: none;
  border-bottom: none;
  box-shadow: none;
  z-index: 20;
  display: flex;
  align-items: flex-end; /* Align to bottom */
  justify-content: flex-end; /* Keep on the right */
  padding: 0 100px 60px 40px; /* Positioned at the bottom right */
}

/* Maroon Top Layer */
.hero-info-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #800000;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: none;
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.3),
    inset 0 2px 2px rgba(255, 255, 255, 0.3);
  z-index: -1;
}

/* Rose Under Layer */
.hero-info-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: -35px; /* Offset to the left */
  width: 100%;
  height: 100%;
  background-color: var(--primary); /* Rose/Pink color */
  border-radius: inherit;
  z-index: -2; /* Sit behind the maroon layer */
  opacity: 0.9;
}

@media (max-width: 768px) {
  .hero-info-box::before {
    display: none;
  }
}

.info-box-content {
  position: relative; /* Context for style images */
  z-index: 5;
  text-align: left; /* Aligned left as in reference */
  transition: opacity 0.4s ease, filter 0.4s ease;
  width: 100%;
  max-width: 440px; /* Constrain text width */
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dome-style-img {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  opacity: 0.8;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.1));
}

.style-left {
  width: 60px;
  top: 75%;
  left: 15%;
  transform: translate(-50%, -50%) rotate(-10deg);
}

.style-top {
  width: 45px;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(5deg);
}

.style-right {
  width: 55px;
  top: 45%;
  left: 58%;
  transform: translate(-50%, -50%) rotate(15deg);
}

.info-box-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 10px;
  opacity: 0.8;
}

.divider-line-left, .divider-line-right {
  flex: 1;
  display: flex;
  align-items: center;
}

.divider-line-left .dot, .divider-line-right .dot {
  width: 6px;
  height: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  flex-shrink: 0;
}

.divider-line-left .line, .divider-line-right .line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
}

.divider-heart {
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  margin-bottom: 2px;
}

.info-box-desc {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: white;
  /* Changed to white for brown background */
  line-height: 1.7;
  margin: 0;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.reveal-word {
  display: inline-block;
  margin-right: 0.35em; /* Restores space between words */
  opacity: 0;
  transform: translateY(12px);
  filter: blur(4px);
  animation: wordReveal 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes wordReveal {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.info-box-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 10px;
  opacity: 0;
  animation: dividerReveal 0.8s ease-out 0.6s forwards; /* Reveal after words */
}

@keyframes dividerReveal {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 0.8; transform: translateY(0); }
}

.hero-right-circle {
  position: absolute;
  top: 50%;
  right: 25%;
  transform: translateY(-50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background-color: var(--primary);
  background-size: cover;
  background-position: center;
  opacity: 1;
  z-index: 30;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.15),
    inset 0 0 0 2px rgba(255, 215, 0, 0.3);
  /* Subtle gold inner ring */
  border: 4px solid #fff;
  animation: heroImagePulse 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  transition: opacity 0.4s ease, filter 0.4s ease, transform 0.4s ease;
}



@keyframes heroImagePulse {
  0% {
    transform: translateY(-50%) scale(0.9);
    opacity: 0.5;
  }

  100% {
    transform: translateY(-50%) scale(1);
    opacity: 1;
  }
}


.hero-tagline {
  font-size: 3.5rem;
  /* Increased size since logo is gone */
  font-weight: 800;
  font-style: italic;
  margin-bottom: 3rem;
  color: #fff0f3;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  letter-spacing: -1px;
}

.hero-cta-group {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.hero-cta {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.hero-cta.primary {
  background-color: var(--secondary);
  color: #fff;
}

.hero-cta.primary:hover {
  background-color: #7a1223;
  transform: translateY(-3px);
}

.hero-cta.secondary {
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.hero-cta.secondary:hover {
  background-color: #fff;
  color: var(--secondary);
  transform: translateY(-3px);
}

/* Founder Section */
.founder-section {
  background-color: var(--secondary);
  padding: 6rem 4rem;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.founder-decoration {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 400px;
  pointer-events: none;
}

.founder-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 500;
  letter-spacing: 2px;
  margin-bottom: 4rem;
  position: relative;
  z-index: 2;
}

.founder-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.founder-image-wrapper {
  flex: 0 0 350px;
  height: 350px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.founder-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-text-box {
  flex: 1;
  border: 4px solid #f8c8d4;
  border-radius: 30px;
  padding: 3rem;
  font-size: 1.2rem;
  line-height: 1.8;
  text-align: center;
  font-weight: 500;
  max-width: 500px;
}

/* Explore Menu Section */
.explore-section {
  background-color: #f7ebe0;
  /* Soft beige background */
  padding: 8rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.explore-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.pattern-icon {
  position: absolute;
  width: 35px;
  height: auto;
  opacity: 0.6;
}

.explore-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.explore-title {
  font-size: 3rem;
  font-weight: 600;
  color: var(--secondary);
  letter-spacing: 2px;
  margin-bottom: 2.5rem;
}

.explore-btn {
  background-color: var(--secondary);
  color: #fff;
  border: none;
  padding: 1.2rem 3.5rem;
  border-radius: 50px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(92, 13, 27, 0.2);
}

.explore-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(92, 13, 27, 0.35);
}

/* Client Reviews Section */
.instagram-section {
  padding: 6rem 4rem;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.insta-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.insta-title {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.insta-handle {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  color: #888;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.insta-handle:hover {
  color: var(--secondary);
}

.insta-feed-container {
  max-width: 1400px;
  margin: 0 auto;
}

.insta-row {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem 0 2rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.insta-row::-webkit-scrollbar {
  display: none;
}

.insta-card-placeholder {
  flex: 0 0 220px;
  /* Reduced width for vertical look */
  aspect-ratio: 9/16;
  /* Vertical Reel size */
  background: #fafafa;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  border: 1px solid #f0f0f0;
}

.insta-real-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  transition: transform 0.5s ease;
}

.insta-card-placeholder:hover .insta-real-img {
  transform: scale(1.05);
}

.insta-card-link-wrapper {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
}

.insta-card-icon-container {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.insta-card-placeholder:hover .insta-card-icon-container {
  transform: scale(1.1);
  background: white;
}

.insta-card-icon {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.insta-img-shimmer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #fafafa 0%, #f5f5f5 50%, #fafafa 100%);
  background-size: 200% 100%;
  animation: instaShimmer 2s infinite;
  z-index: 1;
}

@keyframes instaShimmer {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

.insta-footer {
  margin-top: 3.5rem;
  text-align: center;
}

.insta-btn {
  display: inline-block;
  padding: 1.2rem 3rem;
  border: 2.5px solid var(--secondary);
  color: var(--secondary);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.insta-btn:hover {
  background: var(--secondary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(128, 0, 0, 0.2);
}

.reviews-section {
  background-color: var(--secondary);
  padding: 6rem 0;
  text-align: center;
}

.reviews-title {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 500;
  letter-spacing: 2px;
  margin-bottom: 4rem;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reviews-section.reveal .reviews-title {
  opacity: 1;
  transform: translateY(0);
}

.reviews-grid {
  display: flex;
  flex-wrap: nowrap;
  /* Prevent wrapping to force horizontal scroll */
  overflow-x: auto;
  gap: 2.5rem;
  padding: 1rem 0 4rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  max-width: 100vw;
  margin: 0 auto;
  cursor: grab;
}

.reviews-grid:active {
  cursor: grabbing;
}

.reviews-grid::-webkit-scrollbar {
  display: none;
}

.review-card {
  flex: 0 0 450px;
  /* Slightly wider for luxury desktop feel */
  background-color: #fff;
  border-radius: 40px;
  padding: 3.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  opacity: 1;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  position: relative;
}

.review-fb-link, 
.review-card > .review-fb-icon {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 12px; /* Large touch area */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  color: #1877F2;
  opacity: 0.7;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.review-fb-link:hover,
.review-card:hover > .review-fb-icon {
  opacity: 1;
  transform: scale(1.1);
}

.review-fb-icon {
  /* The SVG itself stays clean */
  pointer-events: none;
}

.review-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.review-client-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 4px solid #fff3f5;
  box-shadow: 0 8px 20px rgba(128, 0, 0, 0.1);
  background: #fdf2f4;
}

.review-client-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-stars {
  color: var(--secondary);
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.review-text {
  color: var(--secondary);
  font-size: 1.1rem;
  line-height: 1.6;
  font-weight: 500;
  margin-bottom: 2rem;
  flex-grow: 1;
  max-height: 5.5rem;
  /* Limits to roughly 3-4 lines */
  overflow-y: auto;
  padding-right: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(128, 0, 0, 0.2) transparent;
}

.review-text::-webkit-scrollbar {
  width: 4px;
}

.review-text::-webkit-scrollbar-thumb {
  background: rgba(128, 0, 0, 0.2);
  border-radius: 10px;
}

.review-author {
  color: var(--secondary);
  font-style: italic;
  font-weight: 600;
  font-size: 1.1rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .header {
    padding: 0 1.5rem;
    height: 80px;
    position: fixed;
  }

  .header.scrolled {
    height: 70px;
  }

  .logo-container img {
    height: 60px;
  }

  .header-right {
    gap: 1rem;
  }

  .nav-links {
    display: none;
  }

  .menu-icon {
    display: flex;
    align-items: center;
  }

  .search-icon {
    display: flex;
  }

  .logo-container,
  .menu-icon {
    transition: max-width 0.3s ease, opacity 0.3s ease, margin 0.3s ease, padding 0.3s ease;
    overflow: hidden;
  }

  .logo-container {
    max-width: 150px;
  }

  .menu-icon {
    max-width: 40px;
  }

  .header-right {
    transition: flex-grow 0.3s ease;
  }

  .search-wrapper {
    transition: flex-grow 0.3s ease;
  }

  /* Mobile Search Open State */
  .header.search-open .logo-container {
    max-width: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
  }

  .header.search-open .menu-icon {
    max-width: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
  }

  .header.search-open .header-right {
    flex-grow: 1;
    gap: 0;
  }

  .header.search-open .search-wrapper {
    flex-grow: 1;
  }

  .header.search-open .search-input {
    width: 100%;
    margin-right: 1rem;
    padding: 0.8rem 1.5rem;
  }

  .search-results-dropdown {
    width: calc(100vw - 3rem);
    left: 0;
    right: auto;
    transform: none;
    top: calc(100% + 10px);
    max-height: 400px;
    padding: 0.8rem;
    border-radius: 20px;
  }

  .search-result-item {
    padding: 0.6rem;
    gap: 0.8rem;
  }

  .search-result-img {
    width: 50px;
    height: 50px;
  }

  .search-result-info h4 {
    font-size: 0.95rem;
  }

  .search-result-info p {
    font-size: 0.85rem;
  }

  .hero-section {
    height: 100dvh;
    padding-top: 100px; /* Offset for mobile header */
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-logo {
    height: 180px;
    /* Scaled down for mobile */
    margin-bottom: 0.5rem;
  }

  .hero-tagline {
    font-size: 2.2rem;
    font-weight: 800;
    font-style: italic;
    margin-bottom: 2.5rem;
    color: #fff0f3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .hero-cta {
    width: 100%;
    padding: 1.2rem;
  }

  .hero-top-left-content {
    top: 11.5rem;
    left: 50% !important;
    transform: translateX(-50%);
    max-width: 90%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-subtext {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 16px auto 24px auto;
    text-align: center;
    color: #444;
  }

  .hero-cta-buttons {
    width: 100%;
    flex-direction: column;
    gap: 10px;
    max-width: 280px;
    margin: 0 auto;
  }

  .hero-cta-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .hero-scroll-indicator {
    display: none !important;
  }

  .hero-sans {
    font-size: 1.8rem;
  }

  .hero-serif-accent {
    font-size: 2.5rem;
  }



  .mobile-nav-link {
    font-size: 3rem;
  }

  /* Mobile Founder Section */
  .founder-section {
    padding: 4rem 1.5rem;
  }

  .founder-title {
    font-size: 2rem;
    margin-bottom: 3rem;
  }

  .founder-content {
    flex-direction: column;
    gap: 0;
  }

  .founder-image-wrapper {
    flex: none;
    width: 250px;
    height: 250px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    border: 8px solid var(--secondary);
    /* Creates a cutout effect over the pink line */
  }

  .founder-text-box {
    margin-top: -125px;
    /* Overlap by half the image height */
    padding: 140px 1.5rem 2rem;
    /* Give text room to breathe below image */
    font-size: 1.05rem;
    position: relative;
    z-index: 2;
  }

  /* Mobile Explore Section */
  .explore-section {
    padding: 5rem 1.5rem;
  }

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

  .pattern-icon {
    width: 25px;
    /* Even smaller on mobile */
  }

  .hide-on-mobile {
    display: none;
  }

  /* Mobile Reviews Section */
  .reviews-section {
    padding: 4rem 0;
  }

  .reviews-title {
    font-size: 2rem;
    margin-bottom: 3rem;
  }

  .reviews-grid {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding-bottom: 2rem;
    /* Prevent shadow clipping */
    margin: 0;
    /* Full bleed scroll */
    padding-left: 0;
    padding-right: 0;
    scrollbar-width: none;
    /* Firefox */
  }

  .reviews-grid::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
  }

  .review-card {
    flex: 0 0 85%;
    padding: 2.5rem 1.5rem;
  }

  /* Mobile Contact Section */
  .contact-section {
    padding: 4rem 1.5rem;
  }

  .contact-subtitle {
    font-size: 1.4rem;
  }

  .contact-footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-top: 3rem;
    align-items: center;
    border-top: 1px solid rgba(92, 13, 27, 0.1);
  }

  .contact-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    color: #5c0d1b;
    min-width: 40px;
  }

  /* Anchor icons to their positions */
  .contact-item:nth-child(1) {
    justify-content: flex-start;
  }

  .contact-item:nth-child(2) {
    justify-content: center;
  }

  .contact-item:nth-child(3) {
    justify-content: flex-end;
    flex-direction: row-reverse;
  }

  .contact-label {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.4s ease;
    white-space: nowrap;
  }

  .contact-item.expanded {
    background: white;
    padding: 0.8rem 1rem;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(92, 13, 27, 0.12);
  }

  .contact-item.expanded .contact-label {
    max-width: 150px;
    opacity: 1;
  }

  .contact-item:nth-child(1).expanded .contact-label,
  .contact-item:nth-child(2).expanded .contact-label {
    margin-left: 0.8rem;
  }

  .contact-item:nth-child(3).expanded .contact-label {
    margin-right: 0.8rem;
  }

  .contact-item svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.5px;
    flex-shrink: 0;
  }
}

/* Desktop Label Visibility */
.contact-label {
  display: inline;
}

/* Contact Section */
.contact-section {
  background: linear-gradient(180deg, #fdf6f7 0%, #fae8eb 100%);
  /* Warmer, softer pink gradient */
  padding: 6rem 2rem 4rem;
  text-align: center;
}

.contact-main {
  max-width: 800px;
  margin: 0 auto 5rem;
}

.nav-link {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  position: relative;
  transition: opacity 0.3s;
}

.nav-cart-badge {
  position: absolute;
  top: -8px;
  right: -15px;
  background: var(--primary);
  color: var(--secondary);
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 800;
  border: 1px solid var(--secondary);
}

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

.remove-item-btn {
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  padding: 2px;
  transition: color 0.2s;
}

.remove-item-btn:hover {
  color: var(--secondary);
}

.contact-title {
  color: var(--secondary);
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: 2px;
  margin-bottom: 2.5rem;
}

.contact-subtitle {
  color: var(--secondary);
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-order-btn {
  background-color: var(--secondary);
  /* Aligned with brand */
  color: #fff;
  border: none;
  padding: 1rem 3rem;
  border-radius: 40px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(92, 13, 27, 0.2);
}

.contact-order-btn:hover {
  background-color: #4a0914;
  /* Slightly darker maroon on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(92, 13, 27, 0.3);
}

.contact-footer {
  display: flex;
  justify-content: space-between;
  padding-top: 4rem;
  border-top: 1px solid rgba(92, 13, 27, 0.1);
  max-width: 1000px;
  margin: 0 auto;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #5c0d1b;
  font-size: 1.3rem;
  font-weight: 600;
}

.contact-icon {
  color: #5c0d1b;
}

/* Featured Section Styles */
.featured-section {
  padding: 3rem 4rem 6rem;
  background-color: #fff;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 2rem;
  letter-spacing: 2px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.featured-section.reveal .section-title {
  opacity: 1;
  transform: translateY(0);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.featured-card {
  background: #fff;
  border-radius: 40px;
  padding: 2rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.3s ease;
}

.featured-section.reveal .featured-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.featured-section.reveal .featured-card:nth-child(1) {
  transition-delay: 0.1s;
}

.featured-section.reveal .featured-card:nth-child(2) {
  transition-delay: 0.2s;
}

.featured-section.reveal .featured-card:nth-child(3) {
  transition-delay: 0.3s;
}

@media (hover: hover) {
  .featured-card:hover {
    transform: translateY(-10px) scale(1.02) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  }
}

.card-image-wrapper {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 30px;
  margin-bottom: 1.5rem;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  animation: fadeZoom 0.8s ease-out;
}

@keyframes fadeZoom {
  from {
    opacity: 0.5;
    transform: scale(1.05);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.card-info h3 {
  font-size: 1.5rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.card-info p {
  color: var(--secondary);
  opacity: 0.7;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.card-actions {
  display: flex;
  gap: 0.8rem;
  width: 100%;
  margin-top: 0.5rem;
}

.view-details-btn.secondary {
  background: transparent;
  color: var(--secondary);
  border: 1px solid var(--secondary);
  flex: 1;
  padding: 0.8rem 1rem;
}

.add-to-order-btn-direct {
  background-color: var(--secondary);
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  flex: 1.5;
  transition: all 0.3s ease;
}

.add-to-order-btn-direct:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(92, 13, 27, 0.2);
}

/* Expanded Desktop Card Styles */
.expanded-card {
  background: #fff;
  border-radius: 40px;
  padding: 3rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  animation: fadeIn 0.4s ease-out;
}

.expanded-card-content {
  display: flex;
  gap: 4rem;
  align-items: center;
}

.expanded-image-wrapper {
  flex: 1;
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 1/1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.expanded-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.expanded-info {
  flex: 1;
  text-align: left;
}

.expanded-info h3 {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.expanded-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--secondary);
  opacity: 0.8;
  margin-bottom: 2rem;
}

.expanded-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 2.5rem;
}

.close-expanded-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 10;
}

.close-expanded-btn:hover {
  color: var(--secondary);
}

.add-to-cart-btn {
  background-color: var(--secondary);
  color: #fff;
  border: none;
  padding: 1.2rem 3rem;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(92, 13, 27, 0.3);
}

.add-to-cart-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(92, 13, 27, 0.4);
}

/* Mobile Popup Modal */
.mobile-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  /* Reduced padding to allow popup to be larger */
  animation: fadeIn 0.3s ease-out;
}

.mobile-popup-content {
  background: #fff;
  border-radius: 30px;
  width: 95%;
  max-width: 450px;
  max-height: 95vh;
  overflow-y: auto;
  position: relative;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  animation: scaleUp 0.3s ease-out;
}

.popup-image-wrapper {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.popup-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popup-info h3 {
  font-size: 1.8rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.popup-price {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--secondary);
  opacity: 0.8;
  margin-bottom: 1rem;
}

.popup-description {
  font-size: 1rem;
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.close-popup-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Visibility helpers */
.desktop-only {
  display: grid;
}

.mobile-only {
  display: none;
}

/* ── Mobile Horizontal Scroll Carousel ── */
.mobile-featured-container {
  padding: 0 0 1rem 0;
  width: 100%;
  overflow: hidden;
}

.mobile-featured-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.5rem 10% 2rem 10%;
  gap: 1.5rem;
}

.mobile-featured-scroll::-webkit-scrollbar {
  display: none;
}

.mobile-scroll-card {
  flex: 0 0 100%;
  scroll-snap-align: center;
}

/* Dot indicators */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1c4c6;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.carousel-dot.active {
  background: var(--secondary);
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block;
  }

  .featured-section {
    padding: 2rem 0 1rem;
    /* Reduced bottom padding */
  }

  .section-title {
    padding: 0 1.5rem;
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
}

/* ── Keep existing desktop featured styles ── */
@media (max-width: 1024px) {
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Final Footer Styles */
.final-footer {
  background-color: #fdf2f2;
  /* Light pink/cream background */
  padding: 3.5rem 4rem;
  border-top: 1px solid rgba(92, 13, 27, 0.05);
}

.footer-bottom-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-side {
  flex: 1;
}

.footer-mid {
  flex: 2;
  text-align: center;
}

.footer-brand-icon {
  height: 110px;
  width: auto;
  object-fit: contain;
}

.footer-brand-img {
  height: 110px;
  width: auto;
  object-fit: contain;
}

.footer-right-side {
  text-align: right;
}

.footer-email-text {
  color: #5c0d1b;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .final-footer {
    padding: 3rem 1.5rem;
  }

  .footer-bottom-container {
    flex-direction: row;
    justify-content: center;
    gap: 1.2rem;
    align-items: center;
  }

  .footer-side {
    flex: 0 1 auto;
  }

  .footer-right-side {
    display: none;
  }

  .footer-brand-icon {
    height: 65px;
  }

  .footer-email-text {
    font-size: 0.95rem;
    text-align: left;
  }

  .instagram-section {
    padding: 1.5rem 1.5rem 4rem;
    /* Reduced top padding */
  }

  .insta-header {
    margin-bottom: 2rem;
    /* Reduced margin */
  }

  .insta-title {
    font-size: 2.2rem;
  }

  .insta-card-placeholder {
    flex: 0 0 160px;
    border-radius: 15px;
  }

  .insta-row {
    margin: 0 -1.5rem;
    padding: 1rem 1.5rem;
  }
}

/* Desktop Cart Drawer Styles */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 4000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.cart-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: 480px;
  /* Slightly wider for luxury feel */
  height: 100%;
  background: #fff;
  box-shadow: -15px 0 60px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.cart-drawer-header {
  padding: 2.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.cart-drawer-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--secondary);
  letter-spacing: -0.5px;
}

.close-cart-btn {
  background: #fdf2f4;
  border: none;
  color: var(--secondary);
  cursor: pointer;
  padding: 0.7rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close-cart-btn:hover {
  background: var(--secondary);
  color: white;
  transform: rotate(90deg);
}

.cart-drawer-content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  scrollbar-width: thin;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.cart-item-row {
  display: flex;
  gap: 1.2rem;
  padding: 1.2rem;
  background: #fff;
  border-radius: 20px;
  border: 1px solid #f8f8f8;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

.cart-item-row:hover {
  border-color: rgba(155, 45, 48, 0.15);
  box-shadow: 0 8px 25px rgba(155, 45, 48, 0.06);
  transform: translateY(-2px);
}

.cart-item-row img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
}

.cart-item-icon-fallback {
  width: 90px;
  height: 90px;
  border-radius: 12px;
  background: #fdf2f4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px dashed rgba(128, 0, 0, 0.2);
}

.price-wa-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #25D366;
  font-weight: 700;
}

.tooltip-trigger {
  position: relative;
  cursor: help;
}

.tooltip-trigger::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  width: 180px;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  line-height: 1.4;
}

.tooltip-trigger:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Tooltip arrow */
.tooltip-trigger::before {
  content: '';
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  border: 6px solid transparent;
  border-top-color: rgba(30, 30, 30, 0.95);
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

.tooltip-trigger:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.cart-item-header h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--secondary);
  margin: 0;
}

.remove-item-btn {
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  padding: 4px;
  transition: color 0.3s;
}

.remove-item-btn:hover {
  color: var(--secondary);
}

.cart-item-meta {
  font-size: 0.85rem;
  color: #888;
  margin: 0 0 0.8rem;
}

.cart-item-price-qty {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--secondary);
}

.cart-qty {
  font-size: 0.9rem;
  background: #fdf2f4;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
}

.empty-cart-state {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  text-align: center;
}

.empty-cart-state p {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: #888;
  margin: 0;
}

.start-order-btn {
  padding: 1rem 2.5rem;
  background: transparent;
  border: 2px solid var(--secondary);
  color: var(--secondary);
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.start-order-btn:hover {
  background: var(--secondary);
  color: white;
}

.cart-drawer-footer {
  padding: 2.5rem 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background: #fff;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.02);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.cart-total-row span:first-child {
  font-size: 1.1rem;
  color: #888;
  font-weight: 500;
}

.cart-total-row span:last-child {
  font-size: 1.8rem;
  color: var(--secondary);
  font-weight: 800;
  font-family: 'Playfair Display', serif;
}

.buy-now-btn {
  width: 100%;
  padding: 1.4rem;
  background: var(--secondary);
  color: white;
  border: none;
  border-radius: 24px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 30px rgba(155, 45, 48, 0.25);
}

.buy-now-btn:disabled {
  background: #eee;
  color: #aaa;
  box-shadow: none;
  cursor: not-allowed;
}

.buy-now-btn:not(:disabled):hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 40px rgba(155, 45, 48, 0.35);
}

/* Shimmer Loading Effect */
.shimmer-loader {
  position: relative;
  overflow: hidden;
  background: #f0f0f0;
  display: block;
}

.shimmer-loader img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shimmer-loader::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0,
      rgba(255, 255, 255, 0.6) 50%,
      rgba(255, 255, 255, 0) 100%);
  animation: shimmer 2s infinite;
  z-index: 1;
}

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

  100% {
    transform: translateX(100%);
  }
}

.image-loading {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  position: relative;
  z-index: 2;
}

.image-loaded {
  opacity: 1;
}

/* Desktop Cart Item Styles */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cart-item-row {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: #fff;
  border-radius: 15px;
  border: 1px solid #f0f0f0;
  transition: transform 0.2s;
}

.cart-item-row:hover {
  transform: translateX(-5px);
}

.cart-item-row img {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
}

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

.cart-item-info h4 {
  font-size: 1rem;
  color: var(--secondary);
  margin-bottom: 0.2rem;
}

.cart-item-meta {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 0.4rem;
}

.cart-item-price-qty {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--secondary);
}

.cart-qty {
  background: #fdf2f4;
  color: var(--secondary);
  padding: 0.1rem 0.5rem;
  border-radius: 8px;
  font-size: 0.8rem;
}

.view-details-btn {
  background: none;
  border: none;
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  margin-top: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.view-details-btn::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 30px;
  height: 2px;
  background: var(--secondary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  opacity: 0.5;
}

.view-details-btn:hover {
  letter-spacing: 1.5px;
}

.view-details-btn:hover::after {
  width: 60px;
  opacity: 1;
}

/* Floating Cart Button */
.floating-cart-btn {
  position: fixed;
  top: 100px;
  right: 2.5rem;
  background: var(--secondary);
  color: white !important;
  width: 50px;
  height: 50px;
  border-radius: 0 0 25px 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(128, 0, 0, 0.3);
}

.header.scrolled + .floating-cart-btn {
  top: 90px;
}

.floating-cart-btn:hover {
  transform: scale(1.15) rotate(5deg);
}

.floating-cart-btn.white {
  color: white;
}

.floating-cart-btn.white .floating-cart-count {
  background: white;
  color: var(--secondary);
}

.floating-cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: white;
  color: var(--secondary);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: 1.5px solid var(--secondary);
}

@media (max-width: 768px) {
  .floating-cart-btn {
    top: 80px;
    right: 1.5rem;
    z-index: 1001;
  }

  .header.scrolled + .floating-cart-btn {
    top: 70px;
  }

  .hero-bg-image {
    background-attachment: scroll !important;
    background-size: cover !important;
    /* Fills the area perfectly */
    background-position: center center;
    background-color: #fcf4f4;
  }
}

/* Page Transition Loader */
.page-transition-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  animation: fadeInLoader 0.3s ease;
}

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

.loader-shimmer {
  width: 120px;
  height: 4px;
  background: #eee;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  margin: 0 auto 1.5rem;
}

.loader-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  animation: shimmerAnim 1.5s infinite;
}

.loader-content p {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--primary);
  font-style: italic;
  letter-spacing: 1px;
}

@keyframes shimmerAnim {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

@keyframes fadeInLoader {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}


@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-20px); } 60% { transform: translateY(-10px); } }

.menu-page {
  padding: 8rem 4rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 80vh;
}

.menu-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.menu-header h1 {
  font-size: 3rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.menu-header p {
  font-size: 1.2rem;
  color: #666;
}

.menu-categories {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  margin-bottom: 4rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 1rem 4rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  margin-left: -4rem;
  margin-right: -4rem;
}

.menu-categories::-webkit-scrollbar {
  display: none;
}

.category-btn {
  padding: 0.8rem 2rem;
  border-radius: 50px;
  border: 2px solid var(--secondary);
  background: transparent;
  color: var(--secondary);
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.category-btn:hover {
  background: rgba(92, 13, 27, 0.05);
}

.category-btn.active {
  background: var(--secondary);
  color: white;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 3rem;
}

.menu-subcategory-selector {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 3rem;
  padding: 0 1.2rem;
}

.subcategory-btn {
  background: none;
  border: none;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: #aaa;
  cursor: pointer;
  padding: 0.5rem 0;
  position: relative;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.subcategory-btn.active {
  color: var(--secondary);
  font-weight: 700;
}

.subcategory-indicator {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.3s ease;
}

.subcategory-btn.active .subcategory-indicator {
  width: 100%;
}

@media (max-width: 768px) {
  .menu-subcategory-selector {
    gap: 1.5rem;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 1rem;
    scrollbar-width: none;
  }
  .menu-subcategory-selector::-webkit-scrollbar {
    display: none;
  }
}

.menu-card {
  background: white;
  border-radius: 30px;
  padding: 1.5rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

@media (min-width: 769px) {
  .menu-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  }

  .menu-card:hover .menu-card-image img {
    transform: scale(1.05);
  }
}

.menu-card.full-width-card:hover {
  transform: none;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

.menu-card-image {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.menu-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  animation: fadeZoom 0.8s ease-out;
}

@keyframes fadeZoom {
  from {
    opacity: 0.5;
    transform: scale(1.05);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.menu-card-image-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.fade-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity 1.5s ease-in-out;
}

.fade-img.show {
  opacity: 1;
  z-index: 2;
}

.fade-img.hide {
  opacity: 0;
  z-index: 1;
}

.menu-fixed-whatsapp-wrapper {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  z-index: 1000;
  display: flex;
  align-items: center;
}

.menu-fixed-whatsapp {
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(37,211,102,0.3);
  text-decoration: none;
  color: white;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 2;
}

@media (hover: hover) {
  .menu-fixed-whatsapp:hover {
    background: #128C7E;
  }
  
  .menu-fixed-whatsapp-wrapper:hover .whatsapp-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }
}

.whatsapp-popup {
  position: absolute;
  right: calc(100% + 15px);
  background: white;
  color: #333;
  padding: 0.6rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0,0,0,0.05);
  z-index: 1;
}

.whatsapp-popup::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  border-width: 6px 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent transparent white;
  filter: drop-shadow(2px 0 2px rgba(0,0,0,0.05));
}

.whatsapp-popup.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

@media (max-width: 768px) {
  .menu-fixed-whatsapp-wrapper {
    bottom: 1.5rem;
    right: 1.5rem;
  }
  
  .menu-fixed-whatsapp {
    width: 55px;
    height: 55px;
  }
}

.menu-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.menu-card-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--secondary);
  margin-bottom: 0.8rem;
}

.item-options-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.5rem 0 1.2rem 0;
}

.option-chip {
  background: #fdf7f8;
  border: 1px solid rgba(92, 13, 27, 0.1);
  padding: 0.4rem 0.9rem;
  border-radius: 12px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s ease;
  color: #666;
  font-weight: 500;
}

.option-chip:hover {
  background: white;
  border-color: var(--secondary);
  color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.option-chip.active {
  background: var(--secondary);
  border-color: var(--secondary);
  color: white;
  box-shadow: 0 4px 12px rgba(92, 13, 27, 0.2);
}

.menu-card-desc {
  color: #666;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex: 1;
}

.menu-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.menu-card-price {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--secondary);
}

.menu-add-btn {
  background: var(--secondary);
  color: white;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.menu-add-btn:hover:not(:disabled) {
  opacity: 0.9;
}

.menu-add-btn:disabled {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
  opacity: 0.7;
}

/* 3D Designer UI Styles */
.designer-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  position: relative;
}

.designer-ui {
  display: flex;
  justify-content: flex-start;
  gap: 1.5rem;
  width: 100%;
  padding: 1rem;
}

.designer-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.designer-column h4 {
  font-size: 1rem;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.designer-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.designer-options:hover {
  scrollbar-color: rgba(92, 13, 27, 0.3) transparent;
}

.designer-options::-webkit-scrollbar {
  width: 4px;
}

.designer-options::-webkit-scrollbar-track {
  background: transparent;
}

.designer-options::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 4px;
}

.designer-options:hover::-webkit-scrollbar-thumb {
  background: rgba(92, 13, 27, 0.3);
}

.designer-options::-webkit-scrollbar-thumb:hover {
  background: rgba(92, 13, 27, 0.6);
}

.designer-card {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  border: 2px solid rgba(92, 13, 27, 0.1);
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--secondary);
  flex-shrink: 0;
}

.designer-card-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
}

.color-swatch {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.08);
  flex-shrink: 0;
}

.summary-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(92, 13, 27, 0.08);
  border: none;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  cursor: pointer;
  color: var(--secondary);
  padding: 0;
  flex-shrink: 0;
  transition: background 0.2s ease;
  position: absolute;
  top: 4px;
  right: 4px;
}

.summary-remove:hover {
  background: rgba(92, 13, 27, 0.2);
}

.summary-empty {
  font-size: 0.8rem;
  color: #aaa;
  font-style: italic;
  white-space: nowrap;
}

.designer-card:hover {
  border-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.designer-card.active-design {
  border-color: var(--secondary);
  background: rgba(92, 13, 27, 0.05);
  box-shadow: inset 0 0 0 1px var(--secondary);
}

.designer-summary {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: auto;
  padding: 0.8rem 1rem 1rem;
  overflow: hidden;
}

.summary-divider {
  border: none;
  border-top: 1px solid rgba(92, 13, 27, 0.1);
  margin-bottom: 1rem;
}

.summary-title {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.summary-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
}

.designer-text-input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.designer-text-input {
  width: 100%;
  padding: 0.6rem 2.5rem 0.6rem 1rem;
  border: 1px solid rgba(92, 13, 27, 0.1);
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--secondary);
  background: #fdfdfd;
  transition: all 0.2s ease;
  outline: none;
}

.designer-text-input:focus {
  border-color: var(--secondary);
  background: #fff;
  box-shadow: 0 4px 10px rgba(92, 13, 27, 0.05);
}

.text-char-limit {
  position: absolute;
  right: 0.8rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #ccc;
  pointer-events: none;
}

.summary-cards {
  display: flex;
  gap: 0.8rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.summary-cards::-webkit-scrollbar {
  display: none;
}

.summary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: white;
  min-width: 80px;
  height: 80px;
  border-radius: 12px;
  border: 1px solid rgba(92, 13, 27, 0.1);
  color: var(--secondary);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  position: relative;
}

.summary-item.selected {
  border: 2px solid var(--secondary);
  background: #fdf2f2;
}

.toast-notification {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  z-index: 100;
  animation: slideIn 0.3s ease;
}

.designer-order-wrapper {
  position: absolute;
  top: 100%; 
  left: 0;
  width: 100%;
  transform: translateY(0);
  z-index: 50;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: #fdfafb;
  padding: 16px;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  box-sizing: border-box;
}

.designer-order-btn {
  background: var(--secondary);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  border: 2px solid white;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 2px;
  white-space: nowrap;
}

.designer-price-label {
  font-size: 0.65rem;
  letter-spacing: 0.5px;
  opacity: 0.8;
  font-weight: 400;
  margin-right: 0.8rem;
  padding-right: 0.8rem;
  border-right: 1px solid rgba(255,255,255,0.4);
  text-transform: none;
  font-family: 'Inter', sans-serif;
}

.price-wa-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #25D366; /* WhatsApp Green */
  font-weight: 700;
}

.designer-order-btn:hover:not(:disabled) {
  background: #b22d30;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(155, 45, 48, 0.3);
}

.designer-whatsapp-btn {
  background: #25D366; /* WhatsApp Green */
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  border: 3px solid white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.2);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.designer-whatsapp-btn:hover {
  background: #128C7E; /* WhatsApp Darker Green */
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(18, 140, 126, 0.3);
}

.designer-order-btn:disabled {
  background: #e0e0e0;
  color: #aaa;
  cursor: not-allowed;
  box-shadow: none;
  border-color: #f5f5f5;
}

.designer-order-btn:not(:disabled):hover {
  background: #7d1619; /* Just change color, no movement */
}

.designer-order-btn span {
  margin-top: 2px;
}

@keyframes slideIn {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (min-width: 769px) {
  .full-width-card {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: stretch;
    gap: 1rem;
    margin-bottom: 90px;
  }
  
  .full-width-card .menu-card-image {
    width: 550px;
    height: 100%;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .full-width-card .menu-card-content {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .menu-page {
    padding: 120px 1.2rem 3rem;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
  }

  .menu-header {
    text-align: center;
    padding: 0 0.5rem;
  }

  .menu-header h1 {
    font-size: 2rem;
    word-break: break-word;
  }

  .menu-header p {
    font-size: 1rem;
  }

  .menu-categories {
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 0.5rem 1.2rem;
    margin-left: -1.2rem;
    margin-right: -1.2rem;
  }

  .category-btn {
    padding: 0.55rem 1.1rem;
    font-size: 0.85rem;
  }

  .menu-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    width: 100%;
    box-sizing: border-box;
  }

  .menu-card {
    padding: 0.8rem;
    border-radius: 16px;
    width: 100%;
    box-sizing: border-box;
    overflow: visible; /* Changed from hidden to show designer buttons */
    position: relative;
  }

  .full-width-card {
    display: none !important;
  }

  .menu-card-image {
    border-radius: 12px;
    margin-bottom: 0.75rem;
  }

  .menu-card-content h3 {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
  }

  .menu-card-desc {
    display: none;
  }

  .hide-on-mobile {
    display: none;
  }

  .menu-card-footer {
    flex-wrap: wrap;
    gap: 0.4rem;
    padding-top: 0.6rem;
  }

  .menu-card-price {
    font-size: 0.95rem;
  }

  .menu-add-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }



  .designer-ui {
    overflow-x: auto;
    justify-content: flex-start;
    padding: 1rem;
    gap: 1.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
  }

  .designer-ui::-webkit-scrollbar {
    display: none;
  }

  .designer-column {
    flex-shrink: 0;
    min-width: 100px;
  }

  .designer-order-wrapper {
    flex-direction: row;
    top: 100%;
    left: 0;
    width: 100%;
    transform: translateY(0);
    padding: 12px;
  }

  .designer-order-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    border-width: 2px;
    width: 100%;
    height: auto;
    border-radius: 50px;
  }

  .order-hover-text {
    display: none;
  }
}

.menu-gallery-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--secondary);
  border: none;
  padding: 0.5rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  z-index: 10;
}

.menu-gallery-btn:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.menu-lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInLightbox 0.3s ease-out forwards;
}

.lightbox-counter {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  background: rgba(0,0,0,0.5);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  z-index: 5010;
}

/* Lightbox styles can be shared or repeated if necessary, utilizing StudioPage styles or standalone */

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: white;
  z-index: 5010;
  cursor: pointer;
  opacity: 0.8;
  padding: 0.5rem;
}

.polaroid-wrapper {
  position: relative;
  z-index: 5005;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: rotate(-1.5deg);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  max-width: 520px;
  width: 90%;
}

.polaroid-wrapper:hover {
  transform: rotate(0deg) scale(1.03);
}

.polaroid-tape {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 38px;
  background: rgba(255, 255, 255, 0.38);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  border-left: 1px dashed rgba(255,255,255,0.4);
  border-right: 1px dashed rgba(255,255,255,0.4);
  z-index: 5006;
}

.polaroid-frame {
  background: white;
  padding: 1.5rem 1.5rem 3.5rem 1.5rem;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.polaroid-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1; /* Keep perfect square proportions like a classic polaroid photo */
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fafafa;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid rgba(0,0,0,0.06);
}

.polaroid-loader-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10;
}

.polaroid-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(128, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: var(--secondary);
  animation: spinLoader 0.9s cubic-bezier(0.55, 0.055, 0.675, 0.19) infinite;
}

@keyframes spinLoader {
  to { transform: rotate(360deg); }
}

.lightbox-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-img.loading {
  opacity: 0;
  transform: scale(0.96);
}

.lightbox-img.loaded {
  opacity: 1;
  transform: scale(1);
}

.polaroid-caption {
  margin-top: 1.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--secondary);
  text-align: center;
  letter-spacing: 0.5px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  z-index: 5010;
  cursor: pointer;
  padding: 1rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.lightbox-nav.prev {
  left: 10px;
}

.lightbox-nav.next {
  right: 10px;
}

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

/* Fixed Gallery Button */
.menu-fixed-gallery-btn {
  position: fixed;
  bottom: calc(2.5rem + 80px);
  right: 2.5rem;
  background: white;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.8rem 1.5rem 0.8rem 0.8rem;
  border-radius: 60px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  text-decoration: none;
  color: var(--secondary);
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0,0,0,0.05);
  cursor: pointer;
  outline: none;
}

@media (hover: hover) {
  .menu-fixed-gallery-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 50px rgba(0,0,0,0.18);
    border-color: var(--secondary);
  }
  .menu-fixed-gallery-btn:hover .gallery-circle {
    transform: rotate(15deg) scale(1.1);
  }
}

@media (max-width: 768px) {
  .menu-fixed-gallery-btn {
    bottom: calc(1.5rem + 60px);
    right: 1.2rem;
    padding: 0;
    width: 50px;
    height: 50px;
    justify-content: flex-start;
    align-items: center;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    overflow: hidden;
    background: var(--secondary);
    border: none;
    display: flex;
    z-index: 1000;
    
    /* Auto-expand after 5 seconds */
    animation: expandMobileButton 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 5s;
  }
  
  .menu-fixed-gallery-btn .whatsapp-content {
    display: flex !important;
    flex-direction: column;
    white-space: nowrap;
    padding-left: 0.5rem;
    padding-right: 1.5rem;
    opacity: 0;
    z-index: 1;
    color: var(--secondary);
    
    /* Fade in after button expands */
    animation: fadeInContentMobile 0.5s ease forwards;
    animation-delay: 5.2s;
  }

  .polaroid-wrapper {
    transform: rotate(0deg) !important;
    max-width: 85%;
  }
  .polaroid-tape {
    width: 90px;
    height: 28px;
    top: -16px;
  }
  .polaroid-frame {
    padding: 0.8rem 0.8rem 2.2rem 0.8rem;
  }
  .polaroid-caption {
    font-size: 1rem;
    margin-top: 0.8rem;
  }
  .polaroid-image-container {
    max-height: 40vh;
  }
}
.order-page {
  padding: 8rem 2rem 4rem;
  min-height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.4s ease-out;
}

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

.order-header h1 {
  font-size: 2rem;
  color: var(--secondary);
}

.back-btn {
  background: none;
  border: none;
  color: var(--secondary);
  cursor: pointer;
  padding: 0.5rem;
}

.order-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.empty-order {
  text-align: center;
  max-width: 400px;
  margin-top: 5rem;
}

.empty-icon-wrapper {
  color: var(--secondary);
  opacity: 0.2;
  margin-bottom: 2rem;
}

.empty-order h2 {
  font-size: 1.5rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.empty-order p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.start-shopping-btn {
  padding: 1rem 2.5rem;
  background: var(--secondary);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.order-items-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.order-item-card {
  display: flex;
  gap: 1.2rem;
  padding: 1rem;
  background: #fff;
  border-radius: 20px;
  border: 1px solid #f0f0f0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.order-item-img {
  width: 80px;
  height: 80px;
  border-radius: 15px;
  object-fit: cover;
}

.order-item-icon-fallback {
  width: 80px;
  height: 80px;
  border-radius: 15px;
  background: #fdf2f4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px dashed rgba(128, 0, 0, 0.2);
}

.price-wa-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #25D366;
  font-weight: 700;
}

.tooltip-trigger {
  position: relative;
  cursor: help;
}

.tooltip-trigger::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  width: 180px;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  line-height: 1.4;
}

.tooltip-trigger:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Tooltip arrow */
.tooltip-trigger::before {
  content: '';
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  border: 6px solid transparent;
  border-top-color: rgba(30, 30, 30, 0.95);
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

.tooltip-trigger:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.order-item-details {
  flex: 1;
}

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

.order-item-details h3 {
  font-size: 1.1rem;
  color: var(--secondary);
  margin-bottom: 0.3rem;
}

.order-item-options {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 0.3rem;
}

.order-item-notes {
  font-size: 0.85rem;
  color: #555;
  font-style: italic;
  margin-bottom: 0.5rem;
  background: #fdf2f4;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  border-left: 3px solid var(--secondary);
}

.order-item-ref {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
}

.ref-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ref-preview-img {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid #fdf2f4;
  box-shadow: 0 5px 15px rgba(128, 0, 0, 0.05);
}

.order-item-layers {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
  padding: 0.8rem;
  background: #fdfdfd;
  border-radius: 12px;
  border: 1px solid #f8f8f8;
}

.order-layer-summary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.layer-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.05);
}

.layer-text {
  font-size: 0.85rem;
  color: #666;
  font-weight: 500;
}

.order-item-price-qty {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--secondary);
  margin-top: 0.5rem;
}

.order-qty-selector {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: #fdf2f4;
  padding: 0.3rem 0.6rem;
  border-radius: 50px;
}

.order-qty-selector button {
  background: none;
  border: none;
  color: var(--secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}

.order-qty-selector span {
  font-size: 0.95rem;
  min-width: 15px;
  text-align: center;
}

.order-footer {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.checkout-btn {
  width: 100%;
  padding: 1.2rem;
  background: var(--secondary);
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.checkout-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Checkout View */
.checkout-view .order-content {
  align-items: stretch;
}

.checkout-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-bottom: 2rem;
}

.form-section h3 {
  font-size: 1.1rem;
  color: var(--secondary);
  margin-bottom: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.form-group-icon {
  position: relative;
  display: flex;
  align-items: center;
  background: #fdf2f4;
  border-radius: 15px;
  padding: 0 1.2rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.form-group-icon:focus-within {
  background: #fff;
  border-color: var(--secondary);
  box-shadow: 0 5px 15px rgba(128, 0, 0, 0.05);
}

.form-group-icon svg {
  color: var(--secondary);
  opacity: 0.6;
}

.form-group-icon input {
  flex: 1;
  background: none;
  border: none;
  padding: 1.2rem 1rem;
  font-size: 1rem;
  color: var(--secondary);
  outline: none;
  font-weight: 500;
}

.country-code-select {
  background: transparent !important;
  border: none !important;
  color: var(--secondary) !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  outline: none !important;
  cursor: pointer !important;
  padding: 1.2rem 0.5rem !important;
  margin-left: 0.5rem !important;
  border-right: 1px solid rgba(128, 0, 0, 0.15) !important;
  margin-right: 0.2rem !important;
  font-family: inherit !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23800000' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 2px center !important;
  padding-right: 18px !important;
  border-radius: 0 !important;
}

.form-row-checkout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--secondary);
  margin-bottom: 1rem;
  font-weight: 500;
  opacity: 0.8;
}

.checkout-form textarea {
  width: 100%;
  min-height: 120px;
  background: #fdf2f4;
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 1.2rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--secondary);
  resize: none;
  outline: none;
  transition: all 0.3s ease;
}

.checkout-form textarea:focus {
  background: #fff;
  border-color: var(--secondary);
}

.confirm-btn {
  background: #800000;
  box-shadow: 0 10px 30px rgba(128, 0, 0, 0.2);
}

/* Success View */
.success-view {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 99999;
  text-align: center;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow: hidden !important;
  overscroll-behavior: none;
  padding: 0;
  margin: 0;
}

.success-content {
  max-width: 500px;
  width: 100%;
  margin: auto 0;
  padding: 1.5rem;
  z-index: 2;
  position: relative;
}

/* Decorative background elements */
.success-view::before, .success-view::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, #fdf2f4 0%, transparent 70%);
  z-index: 1;
  opacity: 0.6;
}

.success-view::before { top: -100px; left: -100px; }
.success-view::after { bottom: -100px; right: -100px; }

.success-icon-anim {
  margin-bottom: 1rem;
  display: inline-flex;
  padding: 1rem;
  background: #fdf2f4;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(128, 0, 0, 0.05);
  animation: bounceIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1.2);
}

.success-view h1 {
  font-size: 2.2rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
  font-weight: 800;
}

.order-id-tag {
  display: inline-block;
  background: var(--secondary);
  color: white;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.success-view p {
  color: #666;
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 1.5rem;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.success-msg {
  text-wrap: balance; /* Modern browsers will balance the lines */
}

.customer-name {
  color: var(--secondary);
  font-weight: 700;
  text-transform: capitalize;
}

.order-summary-box {
  background: #fdf2f4;
  border-radius: 25px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.02);
}

.summary-item {
  background: white;
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 10px 25px rgba(128, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.summary-item:hover {
  transform: translateY(-5px);
}

.summary-item span {
  color: #999;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.summary-item strong {
  color: var(--secondary);
  font-size: 1.2rem;
  font-weight: 700;
}

.whatsapp-notice {
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 1.5rem !important;
  font-size: 0.95rem !important;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.continue-btn {
  width: 100%;
  padding: 1rem;
  background: #800000;
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 15px 35px rgba(128, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.continue-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 45px rgba(128, 0, 0, 0.4);
}

.whatsapp-urgent-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  width: 100%;
  padding: 1rem 1.5rem;
  background: #25d366;
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.25);
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  margin-bottom: 0.8rem;
  box-sizing: border-box;
}

.whatsapp-urgent-btn:hover {
  background: #20ba5a;
  transform: translateY(-3px);
  box-shadow: 0 20px 45px rgba(37, 211, 102, 0.35);
  color: white;
}

@keyframes bounceIn {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

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

@media (max-width: 768px) {
  .order-page {
    padding: 120px 1.5rem 120px;
  }
  
  .order-header h1 {
    font-size: 1.8rem;
  }

  .form-row-checkout {
    grid-template-columns: 1fr;
  }

  .order-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: white;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.05);
    border-top: 1px solid #f0f0f0;
    z-index: 100;
  }

  .success-view {
    padding-bottom: 0;
  }
}
/* Cake Care Guide Styles */
.cake-care-section {
  margin-top: 3rem;
  padding: 2.5rem;
  background: #fff;
  border-radius: 24px;
  border: 1px solid #eee;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.care-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--secondary);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

.care-heading::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--secondary);
  opacity: 0.5;
}

.care-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}

.care-card {
  text-align: center;
  padding: 1rem;
  transition: transform 0.3s ease;
}

.care-card:hover {
  transform: translateY(-5px);
}

.care-img-wrapper {
  width: 100%;
  aspect-ratio: 16/9; /* Wider images often look more cinematic */
  background: #fdfdfd;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  overflow: hidden;
  border: 1px solid #eee;
}

.care-instruction-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Fill the area nicely */
}

.care-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--secondary);
  font-weight: 700;
  font-family: 'Playfair Display', serif;
}

.care-card p {
  font-size: 0.85rem;
  color: #777;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .cake-care-section {
    padding: 1.5rem;
  }
  .care-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .care-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}
.product-details-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 2000; /* Above header */
  background: #fff;
  display: flex;
  animation: fadeIn 0.4s ease-out;
  overflow: hidden;
}

.added-notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--secondary);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(92, 13, 27, 0.3);
  animation: slideDownFade 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDownFade {
  from { opacity: 0; transform: translate(-50%, -20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}


.details-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.details-header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  z-index: 100;
}

.back-btn-details {
  background: none;
  border: none;
  color: var(--secondary);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.cart-btn-details {
  background: var(--secondary);
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(128, 0, 0, 0.15);
}

.cart-btn-details:hover {
  transform: scale(1.1) rotate(5deg);
}

.cart-icon-wrapper-details {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-badge-details {
  position: absolute;
  top: -8px;
  right: -8px;
  background: white;
  color: var(--secondary);
  font-size: 0.7rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--secondary);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.details-layout {
  display: flex;
  width: 100%;
  flex: 1;
  overflow: hidden;
  background: #66021F;
}

.details-image-side {
  flex: 0.67;
  height: 100%;
  position: relative;
  background: #66021F;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.main-details-img {
  display: inline-flex !important;
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: 100%;
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  animation: detailsFadeZoom 0.8s ease-out;
  background: transparent !important;
  position: relative;
  z-index: 2;
}

.main-details-img img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain !important;
  border-radius: 30px;
  border: 3px solid var(--color-secondary);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

@keyframes detailsFadeZoom {
  from {
    opacity: 0.5;
    transform: scale(1.02);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.details-3d-wrapper {
  width: 100%;
  height: 500px;
  background: #fdfdfd;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.details-info-side {
  flex: 1;
  height: 100%;
  padding: 2.5rem 3rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 40px 0 0 40px;
  box-shadow: -15px 0 40px rgba(0,0,0,0.06);
  position: relative;
  z-index: 10;
}

.details-title {
  font-size: 2.5rem; /* Reduced from 3.5rem */
  color: var(--secondary);
  margin-bottom: 0.2rem;
  line-height: 1.1;
}

.details-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: #888;
  margin-bottom: 1.2rem;
}

.details-description {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #666;
  margin-bottom: 1.5rem;
  max-width: 450px;
}

.customization-section {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.option-group {
  margin-bottom: 1.5rem; /* Reduced spacing */
}

.option-group label {
  display: block;
  font-size: 0.75rem; /* Smaller labels */
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.option-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.addon-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.addon-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.2rem;
  border: 1.5px solid #eee;
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.addon-btn:hover {
  border-color: var(--secondary);
}

.addon-btn.active {
  background: var(--secondary);
  border-color: var(--secondary);
  box-shadow: 0 4px 12px rgba(155, 45, 48, 0.15);
}

.addon-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.addon-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: #444;
}

.addon-btn.active .addon-label {
  color: white;
}

.addon-price {
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(0,0,0,0.06);
  color: #666;
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
}

.addon-btn.active .addon-price {
  background: rgba(255,255,255,0.25);
  color: white;
}

.option-btn {
  padding: 0.6rem 1.2rem;
  border: 1.5px solid #eee;
  background: transparent;
  border-radius: 10px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.option-btn:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

.option-btn.active {
  background: var(--secondary);
  border-color: var(--secondary);
  color: white;
  box-shadow: 0 4px 10px rgba(155, 45, 48, 0.15);
}

.details-input, .details-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid #eee;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s;
  background: #fdfdfd;
}

.details-textarea {
  height: 70px; /* Reduced height */
  resize: none;
}

.details-input:focus, .details-textarea:focus {
  border-color: var(--secondary);
  background: #fff;
}

.file-upload-wrapper {
  position: relative;
  width: 100%;
}

.file-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.file-upload-label {
  display: block;
  width: 100%;
  padding: 1.2rem;
  background: #fdf2f4;
  border: 2px dashed #eecaca;
  border-radius: 12px;
  text-align: center;
  color: var(--secondary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-name-display, .upload-prompt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.file-upload-label:hover {
  background: #fae6e9;
  border-color: var(--secondary);
}

/* ── Option label hint text ── */
.option-label-hint {
  font-size: 0.78rem;
  font-weight: 500;
  color: #aaa;
  margin-left: 0.4rem;
}

/* ── Live Price Breakdown ── */
.price-breakdown {
  background: #fdf2f4;
  border-radius: 16px;
  padding: 1.2rem 1.4rem;
  margin-top: 1.5rem;
  border: 1px solid #f5e0e2;
}

.price-breakdown-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--secondary);
  margin-bottom: 0.8rem;
  opacity: 0.7;
}

.price-breakdown-rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-row-label {
  font-size: 0.9rem;
  color: #555;
  font-weight: 500;
}

.price-row-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--secondary);
}

.price-row-addon .price-row-label {
  font-size: 0.82rem;
  color: #888;
  font-weight: 400;
}

.price-row-addon .price-row-value {
  font-size: 0.82rem;
  font-weight: 600;
}

.price-row-free {
  color: #2e8b57 !important;
  font-size: 0.78rem !important;
  background: #e8f5ed;
  padding: 0.1rem 0.5rem;
  border-radius: 50px;
}

.price-row-total {
  margin-top: 0.4rem;
  padding-top: 0.6rem;
  border-top: 1px dashed #e8c5c8;
}

.price-row-total .price-row-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary);
}

.price-row-total .price-row-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--secondary);
}

.price-wa-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #25D366;
  font-weight: 700;
}

.tooltip-trigger {
  position: relative;
  cursor: help;
}

.tooltip-trigger::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  width: 180px;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  line-height: 1.4;
}

.tooltip-trigger:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Tooltip arrow */
.tooltip-trigger::before {
  content: '';
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  border: 6px solid transparent;
  border-top-color: rgba(30, 30, 30, 0.95);
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

.tooltip-trigger:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.quantity-checkout-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f0f0f0;
  position: sticky;
  bottom: 0;
  background: #fff;
  z-index: 5;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: #fdf2f4;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
}

.quantity-selector button {
  background: none;
  border: none;
  color: var(--secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.quantity-selector span {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--secondary);
  min-width: 25px;
  text-align: center;
}

.add-to-order-final-btn {
  flex: 1;
  padding: 1.2rem;
  background: var(--secondary);
  color: white;
  border: none;
  border-radius: 15px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.add-to-order-final-btn:hover {
  background: #7d1619;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(155, 45, 48, 0.2);
}

@media (max-width: 1024px) {
  .details-image-side {
    flex: 1;
  }
  .details-info-side {
    padding: 2.5rem;
  }
  .details-title {
    font-size: 2.5rem;
  }
}

/* Cake Care Guide Styles */
.cake-care-section {
  margin-top: 3rem;
  padding: 2rem;
  background: #fdfdfd;
  border-radius: 20px;
  border: 1.5px solid #f0f0f0;
}

.care-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--secondary);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

.care-heading::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--secondary);
  opacity: 0.3;
}

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

.care-card {
  text-align: center;
  padding: 0.5rem;
}

.care-icon-wrapper {
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--secondary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.care-icon {
  width: 24px;
  height: 24px;
}

.care-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: #1a1a1a;
  font-weight: 700;
}

.care-card p {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.4;
}

@media (max-width: 480px) {
  .care-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

  @media (max-width: 768px) {
    .product-details-page {
      position: fixed;
      top: 0 !important;
      left: 0 !important;
      width: 100vw !important;
      height: 100vh !important;
      z-index: 99999 !important;
      flex-direction: column;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      overscroll-behavior: contain;
      background: #faf8f8 !important;
    }
  
    .details-container {
      height: auto;
      display: block;
    }
  
    .details-layout {
      flex-direction: column;
    }
  
    .details-image-side {
      height: auto;
      min-height: 250px;
      max-height: 45vh;
      flex: none;
      width: 100%;
      padding: 0;
      box-sizing: border-box;
    }

    .details-image-side .main-details-img,
    .details-image-side .main-details-img img {
      border-radius: 20px !important;
      max-height: 40vh !important;
    }

    .back-btn-details span {
      display: none; /* Now works because it's wrapped in a span */
    }
    
    .back-btn-details::after {
      content: 'Back';
      font-size: 0.9rem;
    }
  
    .details-info-side {
      padding: 1.5rem;
      height: auto;
      overflow: visible;
      padding-bottom: 140px !important; /* Space for fixed footer */
      border-radius: 30px 30px 0 0;
      box-shadow: 0 -15px 30px rgba(0,0,0,0.06);
      margin-top: -20px;
    }
  
    .details-title {
      font-size: 1.8rem;
    }

    .option-grid {
      gap: 0.5rem;
    }

    .option-btn {
      padding: 0.5rem 1rem;
      font-size: 0.85rem;
    }
  
    .quantity-checkout-row {
      position: fixed !important;
      bottom: 0 !important;
      left: 0 !important;
      width: 100% !important;
      z-index: 9999999 !important;
      background: white !important;
      padding: 1.2rem 1rem !important;
      box-shadow: 0 -10px 30px rgba(0,0,0,0.15) !important;
      margin-top: 0 !important;
      border-top: 1px solid #f0f0f0 !important;
      gap: 0.5rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      box-sizing: border-box;
    }

    .quantity-selector {
      padding: 0.4rem 0.6rem;
      gap: 0.8rem;
      flex: none;
    }

    .quantity-selector span {
      font-size: 1.1rem;
    }

    .add-to-order-final-btn {
      padding: 0.8rem 0.5rem;
      font-size: 0.85rem;
      border-radius: 12px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      width: auto;
      flex: 1;
    }
  }
/* Conversational Form Styles */
.conversational-form {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-top: 1rem;
  padding-bottom: 2rem;
}

.conv-step {
  animation: slideUpFade 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
  opacity: 0;
  transform: translateY(20px);
}

.conv-question-bubble {
  background: rgba(219, 205, 192, 0.25);
  color: var(--color-secondary);
  padding: 1.2rem 1.5rem;
  border-radius: 20px 20px 20px 4px;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  max-width: 85%;
  margin-bottom: 1.2rem;
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.conv-answer-area {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

.conv-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: flex-end;
}

.conv-pill {
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  background: #fff;
  border: 1px solid #eee;
  color: #555;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.conv-pill:hover {
  border-color: var(--color-secondary);
  transform: translateY(-2px);
}

.conv-pill.active {
  background: var(--color-secondary);
  color: #fff;
  border-color: var(--color-secondary);
  box-shadow: 0 5px 15px rgba(96, 43, 25, 0.2);
}

.conv-input-wrapper {
  width: 90%;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.conv-input {
  flex: 1;
  padding: 1.2rem;
  border-radius: 16px;
  border: 1px solid #eaeaea;
  background: #fbfbfb;
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.02);
}

.conv-input:focus {
  outline: none;
  background: #fff;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 4px rgba(96, 43, 25, 0.1);
}

.conv-textarea {
  resize: vertical;
  min-height: 80px;
}

.conv-next-btn {
  background: var(--color-secondary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(96, 43, 25, 0.2);
  flex-shrink: 0;
}

.conv-next-btn:hover {
  transform: scale(1.05);
  background: var(--color-main);
}

.conv-upload-box {
  width: 90%;
  border: 2px dashed var(--color-secondary);
  border-radius: 16px;
  background: rgba(253, 242, 244, 0.5);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-secondary);
}

.conv-upload-box:hover {
  background: rgba(253, 242, 244, 1);
  transform: scale(1.02);
}

.conv-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  padding: 1rem 1.2rem;
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 16px;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.conv-toggle-label {
  display: flex;
  flex-direction: column;
}

.conv-toggle-title {
  font-weight: 600;
  color: var(--color-secondary);
  font-size: 1rem;
}

.conv-toggle-desc {
  font-size: 0.85rem;
  color: #777;
}

.conv-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

.conv-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.conv-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.conv-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .conv-slider {
  background-color: var(--color-secondary);
}

input:checked + .conv-slider:before {
  transform: translateX(22px);
}

@keyframes slideUpFade {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.care-guide-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px; background: rgba(102, 2, 31, 0.05); color: #66021F; border: 1px dashed rgba(102, 2, 31, 0.3); border-radius: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; margin-top: 20px; }
.care-guide-btn:hover { background: rgba(102, 2, 31, 0.1); border-color: #66021F; }
@keyframes modalOverlayFade {
  from { opacity: 0; backdrop-filter: blur(0px); }
  to { opacity: 1; backdrop-filter: blur(4px); }
}

@keyframes modalContentPop {
  0% { opacity: 0; transform: scale(0.92) translateY(25px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.care-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.6); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; animation: modalOverlayFade 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.care-modal-content { background: #fff; width: 100%; max-width: 900px; max-height: 90vh; overflow-y: auto; border-radius: 20px; position: relative; padding: 30px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); animation: modalContentPop 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.care-modal-close { position: absolute; top: 20px; right: 20px; background: #fdf2f2; border: none; color: #66021F; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s ease; z-index: 10; }
.care-modal-close:hover { background: #66021F; color: #fff; transform: rotate(90deg) scale(1.1); }

/* -- Two-panel details layout -- */
.details-info-side {
  flex-direction: row !important;
  padding: 0 !important;
  gap: 0;
}

.details-summary-panel {
  width: 42%;
  min-width: 220px;
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  border-right: 1.5px solid rgba(102, 2, 31, 0.08);
  overflow-y: auto;
  background: #fff;
  border-radius: 40px 0 0 40px;
  flex-shrink: 0;
}

.summary-divider {
  width: 100%;
  height: 1.5px;
  background: linear-gradient(90deg, rgba(102,2,31,0.15), transparent);
  border-radius: 2px;
  margin: 1rem 0 1.2rem;
}

.details-chat-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 1.5rem 1.8rem 2rem;
  background: #faf8f8;
  gap: 1rem;
}

.chat-panel-header {
  padding-bottom: 0.8rem;
  border-bottom: 1.5px solid rgba(102, 2, 31, 0.08);
  margin-bottom: 0.5rem;
}

.chat-panel-badge {
  font-size: 0.82rem;
  font-weight: 700;
  color: #66021F;
  background: rgba(102, 2, 31, 0.07);
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

@media (max-width: 900px) {
  .details-info-side {
    flex-direction: column !important;
  }
  .details-summary-panel {
    width: 100%;
    border-right: none;
    border-bottom: 1.5px solid rgba(102, 2, 31, 0.08);
    border-radius: 0;
    padding: 1.5rem;
  }
  .details-chat-panel {
    padding: 1.5rem;
  }
}

/* -- Mobile: reorder panels, boxed chat, summary at bottom -- */
@media (max-width: 768px) {
  .details-info-side {
    flex-direction: column !important;
    padding: 0 !important;
    height: auto !important;
    overflow: visible !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin-top: 0 !important;
    padding-bottom: 0 !important;
    display: flex !important;
  }

  /* 1. Summary panel: name/price/desc right under image */
  .details-summary-panel {
    order: 1;
    width: calc(100% - 2rem) !important;
    border-right: none !important;
    border-bottom: none !important;
    border-radius: 24px !important;
    padding: 1.8rem 1.5rem !important;
    background: #fff !important;
    flex-shrink: 0;
    overflow: visible !important;
    margin: -40px auto 1rem auto !important;
    box-shadow: 0 10px 30px rgba(102, 2, 31, 0.08) !important;
    position: relative;
    z-index: 10;
  }

  /* 2. Hide the order summary (price-breakdown) from summary panel on mobile */
  .details-summary-panel .price-breakdown {
    display: none;
  }

  /* 2. Chat panel: boxed with its own scroll */
  .details-chat-panel {
    order: 2;
    width: 100% !important;
    flex: none !important;
    height: 55vh;
    max-height: 55vh;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: #faf8f8 !important;
    border-radius: 20px;
    margin: 0.8rem 1rem;
    width: calc(100% - 2rem) !important;
    padding: 1.2rem !important;
    box-shadow: 0 4px 20px rgba(102, 2, 31, 0.08);
    border: 1px solid rgba(102, 2, 31, 0.08);
    position: relative;
  }

  /* Subtle scroll indicator at bottom of chat box */
  .details-chat-panel::after {
    content: '';
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, rgba(250,248,248,0.95), transparent);
    pointer-events: none;
    display: block;
    margin-top: -40px;
  }

  /* 3. Order summary at the bottom */
  .mobile-order-summary-footer {
    order: 3;
    width: 100% !important;
    padding: 1rem 1.2rem 2rem !important;
    background: #fff;
    border-top: 1.5px solid rgba(102, 2, 31, 0.08);
  }

  /* Move the quantity + add-to-order inside chat panel on mobile */
  .details-chat-panel .quantity-checkout-wrapper {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(102, 2, 31, 0.08);
  }

  /* Care guide button inside summary */
  .details-summary-panel .care-guide-btn {
    margin-top: 0.8rem;
  }
}



/* --- Desktop Button & Quantity Tweaks --- */
@media (min-width: 769px) {
  .details-chat-panel .quantity-checkout-wrapper {
    position: sticky;
    bottom: -2rem; /* Negate the chat panel bottom padding to stick flush */
    background: #faf8f8;
    padding: 1.5rem 0 2rem 0;
    margin-top: auto;
    border-top: 1.5px solid rgba(102, 2, 31, 0.08);
    z-index: 10;
  }

  .details-chat-panel .add-to-order-final-btn {
    background: transparent;
    color: #66021F;
    border: 2px solid #66021F;
    padding: 0.8rem 1.5rem; /* smaller height */
    font-size: 0.95rem;
    border-radius: 30px; /* softer pill shape */
  }

  .details-chat-panel .add-to-order-final-btn:hover {
    background: #66021F;
    color: #fff;
  }

  .details-chat-panel .quantity-selector {
    background: transparent;
    border: 1.5px solid rgba(102, 2, 31, 0.2);
    border-radius: 30px;
    padding: 0.4rem 0.8rem;
    height: auto;
  }
}

/* --- Fix Mobile Add to Order to Bottom --- */
@media (max-width: 768px) {
  .details-chat-panel .quantity-checkout-wrapper {
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 15px 20px 25px !important;
    margin: 0 !important;
    border-top: 1px solid rgba(102, 2, 31, 0.08);
    box-shadow: 0 -10px 20px rgba(0,0,0,0.08);
    z-index: 9999;
  }

  .mobile-order-summary-footer {
    padding-bottom: 110px !important; /* Space for the fixed checkout bar */
  }
}

/* --- Typing Indicator --- */
.typing-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0.5rem 0.2rem;
}
.typing-indicator span {
  width: 6px;
  height: 6px;
  background-color: var(--color-secondary);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
  opacity: 0.7;
}
.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }
@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* --- Skip Button --- */
.conv-skip-btn {
  background: transparent;
  color: #888;
  border: 1px dashed #ccc;
  border-radius: 30px;
  padding: 0.8rem 1.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  flex-shrink: 0;
}
.conv-skip-btn:hover {
  color: var(--color-secondary);
  border-color: var(--color-secondary);
  background: rgba(102, 2, 31, 0.05);
}

/* --- Dropdown Select --- */
.conv-select {
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill=\"%2366021F\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M7 10l5 5 5-5z\"/><path d=\"M0 0h24v24H0z\" fill=\"none\"/></svg>');
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.conv-select[multiple] {
  background-image: none;
  padding-right: 1.2rem;
}
.conv-select option {
  padding: 0.5rem;
}

/* --- Mobile Customize Trigger & Full-Screen Overlay --- */
.mobile-customize-trigger {
  display: none;
}
.mobile-close-overlay-btn {
  display: none;
}

@media (max-width: 768px) {
  .details-chat-panel {
    display: none !important; /* Hide inline chat on mobile by default */
  }

  /* Show trigger button */
  .mobile-customize-trigger {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 15px 20px 25px;
    border-top: 1px solid rgba(102, 2, 31, 0.08);
    box-shadow: 0 -10px 20px rgba(0,0,0,0.08);
    z-index: 999;
  }

  .mobile-customize-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(102, 2, 31, 0.3);
  }

  /* Full Screen Overlay */
  .details-chat-panel.mobile-overlay-open {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    z-index: 99999 !important;
    background: #faf8f8 !important;
    flex-direction: column !important;
    padding: 0 !important;
    overflow-y: hidden !important; /* Fix double scrollbar issue */
  }

  .details-chat-panel.mobile-overlay-open .chat-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.2rem 1rem;
    background: #fff;
    border-bottom: 1px solid rgba(102, 2, 31, 0.08);
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    z-index: 10; /* Ensure it stays above scrolling content */
  }

  .details-chat-panel.mobile-overlay-open .chat-panel-badge {
    font-size: 1rem;
  }

  .mobile-close-overlay-btn {
    display: flex;
    background: #fdf2f2;
    border: none;
    color: #66021F;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .details-chat-panel.mobile-overlay-open .customization-section {
    padding: 1.5rem 1.2rem;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    padding-bottom: 2rem !important; /* Normal padding, no absolute overlap */
  }

  .details-chat-panel.mobile-overlay-open .quantity-checkout-wrapper {
    position: relative !important;
    bottom: auto !important;
    flex-shrink: 0;
    padding: 15px 20px 25px !important;
    background: #fff !important;
    border-top: 1px solid rgba(102, 2, 31, 0.08);
    box-shadow: 0 -10px 20px rgba(0,0,0,0.08);
    z-index: 1000;
  }
}

.recently-viewed-section { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid rgba(128, 0, 0, 0.1); width: 100%; max-width: 1200px; margin-left: auto; margin-right: auto; } .recently-viewed-title { font-family: var(--font-heading); color: var(--primary); font-size: 1.5rem; margin-bottom: 1.5rem; text-align: left; } .recently-viewed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.5rem; } .recently-viewed-card { background: #fff; border-radius: 16px; overflow: hidden; cursor: pointer; transition: all 0.3s ease; border: 1px solid rgba(0,0,0,0.05); } .recently-viewed-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); border-color: rgba(128,0,0,0.2); } .recently-viewed-img { width: 100%; height: 160px; object-fit: cover; } .recently-viewed-info { padding: 12px; } .recently-viewed-info h4 { font-size: 1rem; color: #333; margin: 0 0 4px 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .recently-viewed-info p { margin: 0; color: var(--secondary); font-weight: 500; font-size: 0.95rem; }
.classes-page {
  padding-top: 120px;
  animation: fadeIn 0.8s ease-out;
}

/* Hero Section */
.classes-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 6rem 4rem;
  align-items: center;
  background: linear-gradient(to right, #fff, #fdf2f2);
}

.classes-badge {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: rgba(128, 0, 0, 0.08);
  color: #800000;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.studio-hero-content h1 {
  font-size: 4rem;
  color: var(--secondary);
  line-height: 1.1;
  margin-bottom: 2rem;
}

.studio-hero-content h1 span {
  font-family: var(--font-serif, "Playfair Display", serif);
  font-style: italic;
  color: #800000;
}

.studio-hero-content p {
  font-size: 1.2rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.cta-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 2.5rem;
  background: #800000;
  color: white;
  border: 2px solid #800000;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(128, 0, 0, 0.2);
}

.cta-btn-primary:hover {
  transform: translateY(-3px);
  background: #600000;
  border-color: #600000;
  box-shadow: 0 15px 40px rgba(128, 0, 0, 0.3);
}

.classes-hero-image {
  position: relative;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  position: relative;
}

.hero-slide img {
  width: 100%;
  aspect-ratio: 4/3;
  max-height: 460px;
  object-fit: cover;
  display: block;
}

.studio-hero-image img {
  width: 100%;
  aspect-ratio: 4/3;
  max-height: 460px;
  object-fit: cover;
  display: block;
}

.classes-floating-card {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  background: white;
  padding: 1.5rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  animation: float 4s ease-in-out infinite;
  z-index: 50; /* Ensure it stays on top of images */
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Perks Section */
.classes-perks, .studio-perks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 4rem;
  background: white;
}

.perk-card {
  padding: 3rem;
  text-align: center;
  border-radius: 30px;
  background: #fdfdfd;
  border: 1px solid rgba(0,0,0,0.03);
  transition: all 0.3s ease;
}

.perk-card:hover {
  transform: translateY(-5px);
  background: white;
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.perk-icon {
  width: 60px;
  height: 60px;
  background: #fdf2f2;
  color: #800000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.perk-card h3 {
  font-size: 1.4rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.perk-card p {
  color: #888;
  line-height: 1.6;
}

/* Schedule Section */
.classes-schedule {
  padding: 4rem;
  background: #fdfdfd;
}

.section-title-alt {
  text-align: center;
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

.section-header-alt {
  text-align: center;
  margin-bottom: 1.25rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(128, 0, 0, 0.08);
  color: #800000;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.calendar-wrapper {
  max-width: 1050px;
  margin: 0 auto;
}

.calendar-container {
  background: white;
  border-radius: 40px;
  padding: 1.75rem 3rem 2.5rem;
  box-shadow: 0 30px 60px rgba(128, 0, 0, 0.05);
  border: 1px solid rgba(128, 0, 0, 0.03);
}

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

.calendar-header h3 {
  font-size: 1.8rem;
  color: var(--secondary);
  font-family: var(--font-serif, "Playfair Display", serif);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.month-nav-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 1px solid rgba(128, 0, 0, 0.1);
  background: white;
  color: #800000;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.month-nav-btn:hover {
  background: #800000;
  color: white;
  transform: scale(1.1);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 700;
  color: #888;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

.calendar-day {
  aspect-ratio: 1;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.calendar-day.available {
  background: #fdf2f2;
  color: #800000;
}

.calendar-day.available:hover {
  transform: translateY(-5px);
  background: #800000;
  color: white;
  box-shadow: 0 10px 20px rgba(128, 0, 0, 0.2);
}

.calendar-day.booked {
  background: #f5f5f5;
  color: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

.calendar-day.selected {
  background: #800000;
  color: white;
  box-shadow: 0 10px 20px rgba(128, 0, 0, 0.2);
  transform: scale(1.05);
}

.calendar-day.today {
  border: 2px solid #800000;
  background-color: rgba(128, 0, 0, 0.05);
}

.day-number {
  z-index: 2;
}

.booked-label {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.calendar-legend {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #666;
}

.calendar-note {
  font-size: 0.82rem;
  color: #888;
  line-height: 1.6;
  margin-top: 2rem;
  font-style: italic;
  opacity: 0.8;
}

.calendar-main-content {
  display: flex;
  flex-direction: column-reverse;
}

.calendar-body {
  flex: 1;
}

@media (min-width: 769px) {
  .calendar-container {
    padding: 1.5rem 3rem 2rem;
  }
  .calendar-header {
    margin-bottom: 1.2rem;
  }
  .calendar-main-content {
    flex-direction: row;
    gap: 2rem;
    align-items: flex-start;
  }
  .calendar-weekdays {
    margin-bottom: 0.75rem;
  }
  .calendar-grid {
    gap: 8px;
  }
  .calendar-day {
    aspect-ratio: 1.4 / 1;
    font-size: 1rem;
    border-radius: 14px;
  }
  .calendar-legend {
    flex-direction: column;
    width: 200px;
    border-top: none;
    border-right: 1px solid rgba(0,0,0,0.08);
    padding-top: 0.5rem;
    padding-right: 2rem;
    margin-top: 0.5rem;
    gap: 1.2rem;
    justify-content: flex-start;
  }
  .legend-item {
    font-size: 0.95rem;
  }
  .calendar-note {
    margin-top: 1.5rem;
    max-width: 160px;
    opacity: 0.7;
  }
}

.legend-box {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.legend-box.available { background: #fdf2f2; }
.legend-box.booked { background: #f5f5f5; }
.legend-box.selected { background: #800000; }

/* Gallery Section */
.classes-gallery {
  padding: 6rem 4rem;
}

.expanding-gallery {
  display: flex;
  width: 100%;
  height: 620px; /* Further increased height for better visibility */
  gap: 0.8rem; /* Tighter gap for 8 cards */
  padding: 0 1rem;
}

.gallery-card {
  position: relative;
  flex: 1; /* All cards same size by default */
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.gallery-card:hover {
  /* No flex change on hover, just a slight brightness/filter shift */
  filter: brightness(1.05);
}

@media (min-width: 769px) {
  .expanding-gallery:hover .gallery-card {
    flex: 0.6; /* Shrink others when gallery is hovered */
  }
  
  .expanding-gallery .gallery-card:hover {
    flex: 4.5; /* Slightly less wide expansion */
    filter: brightness(1);
  }
  
  .gallery-card:hover .gallery-card-overlay {
    opacity: 0;
    pointer-events: none;
  }

  .gallery-card:hover img {
    /* removed scale zoom */
  }
}

.gallery-card .shimmer-loader,
.gallery-card img {
  width: 100%;
  height: 100%; /* Image fills full card */
  object-fit: cover;
  display: block;
}

.gallery-card img {
  transition: transform 0.6s ease;
}

.gallery-card.expanded img {
  /* removed scale zoom */
}

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(128, 0, 0, 0.15); /* Subtle tint instead of heavy gradient */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.gallery-card.expanded .gallery-card-overlay {
  opacity: 0;
  pointer-events: none;
}

.gallery-card-overlay span {
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(0,0,0,0.3);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .expanding-gallery {
    height: 320px;
  }
}

@media (max-width: 768px) {
  .expanding-gallery {
    flex-direction: column;
    height: auto;
    gap: 0.8rem;
    padding: 0;
  }
  
  .gallery-card {
    flex: none;
    height: 100px;
    width: 100%;
    transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0.85;
    filter: grayscale(0.2) brightness(0.9);
  }
  
  .gallery-card.expanded {
    height: 320px;
    flex: none;
    opacity: 1;
    filter: grayscale(0) brightness(1);
    transform: scale(1.02);
    z-index: 5;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  }

  .gallery-card.expanded .gallery-card-overlay {
    opacity: 0;
  }
}

/* Booking Section */
.booking-section {
  padding: 8rem 4rem;
  background: #fdf2f2;
}

.booking-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}

.booking-info h2 {
  font-size: 3rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.booking-info p {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 3rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  color: var(--secondary);
  font-weight: 600;
}

.booking-form-wrapper {
  background: white;
  padding: 4rem;
  border-radius: 40px;
  box-shadow: 0 40px 100px rgba(128, 0, 0, 0.1);
}

.classes-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.form-group label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--secondary);
}

.form-group input, .form-group select {
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid #eee;
  background: #fdfdfd;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group select:focus {
  border-color: #800000;
}

.phone-input-row {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.phone-input-row input {
  flex: 1;
}

.studio-country-code {
  flex-shrink: 0;
  width: auto;
  min-width: 110px;
  background: #fdfdfd !important;
  border: 1px solid #eee !important;
  border-radius: 12px !important;
  padding: 1rem 0.5rem 1rem 1rem !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: var(--secondary) !important;
  outline: none !important;
  cursor: pointer !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23800000' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
  padding-right: 28px !important;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.submit-booking-btn {
  margin-top: 1rem;
  padding: 1.2rem;
  background: #800000;
  color: white;
  border: 2px solid #800000;
  border-radius: 15px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-booking-btn:hover:not(:disabled) {
  background: #600000;
  border-color: #600000;
  transform: translateY(-2px);
}

.submit-booking-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.booking-success {
  text-align: center;
  padding: 2rem 0;
}

.booking-success h3 {
  font-size: 2rem;
  color: var(--secondary);
  margin: 1.5rem 0 1rem;
}

.booking-success p {
  color: #666;
  margin-bottom: 2rem;
}

/* Responsive Enhancements */
@media (max-width: 1024px) {
  .studio-hero, .booking-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 4rem 2rem;
  }
  .classes-hero-content { text-align: center; }
  .studio-hero-content p { margin: 0 auto 2.5rem; }
  .booking-info { text-align: center; }
  .contact-details { display: flex; flex-direction: column; align-items: center; }
}

@media (max-width: 768px) {
  .classes-page { 
    padding-top: 120px; 
    width: 100vw;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    overflow-x: hidden;
  }
  
  .studio-hero, .studio-schedule, .studio-gallery, .classes-gallery, .booking-section, .classes-perks, .studio-perks {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    box-sizing: border-box;
  }

  .classes-gallery {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .classes-hero { 
    padding: 2rem 1.5rem 3rem;
    background: #fdf2f2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }

  .classes-hero-content {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
  }
  
  .studio-hero-content h1 { 
    font-size: 2.2rem; 
    margin-bottom: 1rem;
    letter-spacing: -1px;
    width: 100%;
  }

  .studio-hero-content p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2rem;
  }

  .classes-hero-image {
    order: -1; 
    border-radius: 20px;
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 100%;
  }

  .classes-floating-card {
    padding: 1rem;
    bottom: 1rem;
    left: 1rem;
  }

  .classes-perks, .studio-perks { 
    grid-template-columns: 1fr; 
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }

  .perk-card { padding: 2rem; }

  /* Horizontal Snap Carousel for Classes on Mobile */
  /* Calendar Mobile Refinements */
  .classes-schedule { padding: 2rem 0; }
  .section-title-alt { padding: 0 1.5rem; margin-bottom: 1.2rem; font-size: 1.6rem; }
  
  .calendar-wrapper {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }

  .calendar-container {
    padding: 1.2rem 0.5rem;
    border-radius: 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .calendar-header h3 {
    font-size: 1.2rem;
  }

  .calendar-weekdays {
    gap: 4px;
    margin-bottom: 1rem;
    font-size: 0.75rem;
  }

  .calendar-grid {
    gap: 4px;
    width: 100%;
    box-sizing: border-box;
  }

  .calendar-day {
    aspect-ratio: 1;
    font-size: 0.85rem;
    border-radius: 8px;
    position: relative;
    padding: 0;
    box-sizing: border-box;
  }

  .booked-label {
    position: absolute;
    bottom: 3px;
    left: 0;
    right: 0;
    font-size: 0.45rem;
    letter-spacing: -0.2px;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 0;
    font-weight: 800;
  }

  .calendar-legend {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.5rem;
    padding-top: 1.2rem;
  }

  .legend-item {
    font-size: 0.75rem;
    gap: 0.5rem;
  }

  .calendar-note {
    font-size: 0.75rem;
    margin-top: 1rem;
    text-align: center;
    max-width: 100%;
  }

  /* Remove old classes styles */
  .classes-grid { display: none; }

  .class-card-img { height: 180px; }

  /* Gallery Section is handled in the main component styles above for consistency */

  /* Booking Section Mobile */
  .booking-section { 
    padding: 2.5rem 1.5rem; 
    width: 100% !important;
    box-sizing: border-box;
  }
  .booking-container {
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    margin: 0;
  }
  .booking-info { 
    width: 100%;
    text-align: center; 
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .booking-info h2 { 
    font-size: 1.8rem; 
    width: 100%;
    margin-bottom: 0.6rem;
  }
  .booking-info p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #777;
    width: 100%;
    margin-bottom: 1.2rem;
  }

  /* Redesign contact chips into clean pill cards for mobile */
  .contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }
  .contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    border: 1px solid #f0dede;
    border-radius: 14px;
    padding: 0.85rem 1.1rem;
    text-align: left;
    font-size: 0.88rem;
    font-weight: 500;
    color: #555;
    box-shadow: 0 2px 8px rgba(128,0,0,0.04);
  }
  .contact-item svg {
    flex-shrink: 0;
    color: #800000;
    opacity: 0.8;
  }

  .booking-form-wrapper { 
    width: 100%;
    max-width: 100%;
    padding: 2rem 1.2rem; 
    border-radius: 25px;
    margin-top: 1rem;
    box-sizing: border-box;
  }

  .form-row { grid-template-columns: 1fr; gap: 1rem; }
  
  /* Refined Sticky Mobile Action */
  .studio-page::after {
    content: '';
    display: block;
    height: 60px;
  }

  /* Target the hero CTA specifically if needed, but remove global fixed */
  .studio-hero-content .cta-btn-primary {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    width: auto;
    display: inline-flex;
    margin-top: 1rem;
  }

  /* Create a dedicated sticky class for mobile booking */
  .mobile-sticky-book {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 3rem); /* Full width minus side margins */
    max-width: 400px;
    z-index: 100;
    padding: 1.2rem;
    background: #800000;
    color: white;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    box-shadow: 0 15px 40px rgba(128, 0, 0, 0.4);
    animation: slideUp 0.5s ease-out;
  }

  @keyframes slideUp {
    from { transform: translateY(100px) translateX(-50%); opacity: 0; }
    to { transform: translateY(0) translateX(-50%); opacity: 1; }
  }
}

.readonly-input {
  background: #f9f9f9 !important;
  color: #888;
  cursor: default;
  border-color: #eee !important;
}

.clickable-date-input {
  cursor: pointer !important;
}

.guest-limit-note {
  font-size: 0.75rem;
  color: #800000;
  background: #fff5f5;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  margin-top: 0.5rem;
  border: 1px solid rgba(128,0,0,0.1);
  animation: guestFadeIn 0.3s ease;
  font-weight: 500;
}

@keyframes guestFadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile Lightbox */
.mobile-lightbox {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInLightbox 0.3s ease-out forwards;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: white;
  z-index: 4010;
  cursor: pointer;
  opacity: 0.8;
  padding: 0.5rem;
}

.lightbox-img {
  position: relative;
  z-index: 4005;
  width: 90%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  z-index: 4010;
  cursor: pointer;
  padding: 1rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.lightbox-nav.prev {
  left: 10px;
}

.lightbox-nav.next {
  right: 10px;
}

@keyframes fadeInLightbox {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cake-care-page {
  padding: 8rem 2rem 4rem;
  min-height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.8s ease-out;
}

.care-page-container {
  max-width: 1100px;
  width: 100%;
  position: relative;
}

.care-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 1.5rem;
  margin-bottom: 3rem;
  width: 100%;
}

.back-btn-care {
  background: rgba(128, 0, 0, 0.05);
  border: none;
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.back-btn-care:hover {
  background: var(--secondary);
  color: #fff;
  transform: scale(1.08);
}

.care-page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--secondary);
  margin: 0;
  font-weight: 700;
}

.care-page-content {
  width: 100%;
}

.care-intro {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.care-intro p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #666;
  font-family: 'Inter', sans-serif;
}

/* Ensure the guide inside the page doesn't have extra shadow/padding if it's already on a clean page */
.cake-care-page .cake-care-section {
  box-shadow: none;
  border: none;
  padding: 0;
  background: transparent;
}

.care-footer-note {
  margin-top: 5rem;
  padding: 3rem;
  background: #fdf2f4;
  border-radius: 24px;
  text-align: center;
}

.care-footer-note p {
  font-size: 1.1rem;
  color: var(--secondary);
  font-weight: 600;
}

@media (max-width: 768px) {
  .cake-care-page {
    padding: 7rem 1.5rem 3rem;
  }

  .care-page-header h1 {
    font-size: 1.5rem;
  }
  
  .care-page-content {
    padding: 0;
  }
  
  .care-intro p {
    font-size: 1rem;
  }
}
.contact-page {
  padding: 10rem 2rem 4rem;
  min-height: 100vh;
  background: #fff;
  display: flex;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.contact-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  font-size: 22vw;
  font-weight: 900;
  color: rgba(89, 45, 18, 0.05);
  z-index: 0;
  pointer-events: none;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
}

.contact-container {
  max-width: 1100px;
  width: 100%;
  position: relative;
}

.contact-back-btn {
  position: absolute;
  top: -3.5rem;
  left: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  color: var(--secondary);
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  z-index: 10;
}

.contact-back-btn:hover {
  background: rgba(92, 13, 27, 0.05);
  transform: translateX(-5px);
}

.contact-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.contact-header h1 {
  font-size: 3.5rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.contact-header p {
  font-size: 1.2rem;
  color: #666;
  line-height: 1.6;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
}

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

.contact-card {
  background: #fdfdfd;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 24px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.05);
  border-color: var(--secondary);
}

.contact-icon-box {
  width: 54px;
  height: 54px;
  background: var(--secondary);
  color: white;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card-content h3 {
  font-size: 1.3rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.contact-card-content p {
  color: #666;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.contact-sub-text {
  font-size: 0.85rem !important;
  opacity: 0.8;
  font-style: italic;
}

.contact-action-link {
  display: inline-block;
  color: var(--secondary);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.contact-action-link:hover {
  border-color: var(--secondary);
}

.contact-social-section {
  background: #fdf2f2;
  border-radius: 32px;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-social-section h2 {
  font-size: 2rem;
  color: var(--secondary);
}

.contact-social-section p {
  color: #666;
  line-height: 1.5;
}

.contact-social-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.social-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.5rem;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.social-box.instagram {
  background: #fff;
  color: #E1306C;
}

.social-box.facebook {
  background: #fff;
  color: #4267B2;
}

.social-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.contact-hours {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(92, 13, 27, 0.1);
}

.contact-hours h3 {
  font-size: 1.1rem;
  color: var(--secondary);
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  font-size: 1rem;
  color: #666;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .contact-page {
    padding-top: 140px;
  }

  .contact-header h1 {
    font-size: 2.5rem;
  }

  .contact-info-section {
    grid-template-columns: 1fr;
  }

  .contact-social-section {
    padding: 2rem;
  }

  .contact-back-btn {
    top: -3rem;
  }
}

.contact-footer-extras {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.privacy-card {
  flex-direction: row;
  align-items: center;
  cursor: pointer;
  padding: 1.5rem 2rem;
  max-width: 500px;
  width: 100%;
}

.privacy-card .contact-icon-box {
  background: #fdf2f2;
  color: var(--secondary);
  transition: all 0.3s ease;
}

.privacy-card:hover .contact-icon-box {
  background: var(--secondary);
  color: white;
}

.privacy-card .contact-card-content {
  gap: 0.2rem;
  display: flex;
  flex-direction: column;
}

.privacy-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.privacy-card p {
  margin: 0;
  font-size: 0.9rem;
}

/* Modal Overlay */
.privacy-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.privacy-modal-content {
  background: #fff;
  border-radius: 24px;
  padding: 3rem;
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  animation: slideUp 0.4s ease;
  scrollbar-width: thin;
}

.privacy-modal-content::-webkit-scrollbar {
  width: 6px;
}
.privacy-modal-content::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.1);
  border-radius: 10px;
}

.privacy-modal-drag-handle {
  display: none;
}

.privacy-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: #f5f5f5;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #333;
  transition: all 0.2s ease;
}

.privacy-close-btn:hover {
  background: #eee;
  transform: scale(1.05);
}

.privacy-modal-content h2 {
  color: var(--secondary);
  font-size: 2rem;
  margin-bottom: 2rem;
  margin-top: 0;
}

.privacy-text-content h3 {
  color: #333;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  margin-top: 1.5rem;
}

.privacy-text-content h3:first-child {
  margin-top: 0;
}

.privacy-text-content p {
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
}

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

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

/* Mobile Bottom Sheet */
@media (max-width: 768px) {
  .privacy-modal-overlay {
    align-items: flex-end; /* push to bottom */
  }

  .privacy-modal-content {
    width: 100%;
    max-width: 100%;
    border-radius: 30px 30px 0 0;
    height: 75vh; /* 75% of screen */
    padding: 2.5rem 1.5rem;
    animation: slideUpSheet 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .privacy-modal-drag-handle.mobile-only {
    display: block;
    width: 40px;
    height: 5px;
    background: #e0e0e0;
    border-radius: 10px;
    margin: 0 auto 1.5rem auto;
  }

  .privacy-modal-content h2 {
    font-size: 1.5rem;
    margin-top: 0;
  }

  @keyframes slideUpSheet {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
}
