/* Custom Styles for Frost & Bean Lahore */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
  --color-espresso: #181311;
  --color-espresso-light: #2c221e;
  --color-cream: #FAF7F2;
  --color-cream-card: #FFFFFF;
  --color-sage: #2C4A3E;
  --color-sage-light: #EBF2EE;
  --color-sage-dark: #1E342B;
  --color-caramel: #C78652;
  --color-caramel-light: #FBF0E6;
  --color-gold: #D89F57;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--color-cream);
  color: var(--color-espresso);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.font-serif {
  font-family: 'Playfair Display', Georgia, serif;
}

/* Official Brand Waves Pattern Backgrounds */
.bg-waves-pattern {
  background-image: url('../images/brand_waves_pattern.png');
  background-repeat: repeat;
  background-size: 650px auto;
}

.bg-waves-subtle {
  background-image: radial-gradient(circle at center, rgba(250, 247, 242, 0.92), rgba(250, 247, 242, 0.98)), url('../images/brand_waves_pattern.png');
  background-repeat: repeat;
  background-size: 700px auto;
}

.bg-waves-dark {
  background-image: radial-gradient(circle at center, rgba(24, 19, 17, 0.93), rgba(24, 19, 17, 0.98)), url('../images/brand_waves_pattern.png');
  background-repeat: repeat;
  background-size: 700px auto;
}

/* Glassmorphism */
.glass-nav {
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(44, 74, 62, 0.08);
}

.glass-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(44, 74, 62, 0.06);
}

.glass-card-dark {
  background: rgba(44, 34, 30, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(216, 159, 87, 0.18);
}

/* Smooth transitions */
.transition-smooth {
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #FAF7F2;
}
::-webkit-scrollbar-thumb {
  background: #2C4A3E33;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2C4A3E66;
}

/* Custom floating animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}

.animate-float {
  animation: float 5s ease-in-out infinite;
}

@keyframes pulse-subtle {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.02);
    opacity: 0.96;
  }
}

.animate-pulse-subtle {
  animation: pulse-subtle 3.5s ease-in-out infinite;
}

/* Glow effects */
.glow-gold {
  box-shadow: 0 0 30px rgba(216, 159, 87, 0.3);
}

.glow-sage {
  box-shadow: 0 0 30px rgba(44, 74, 62, 0.25);
}

/* Tab active indicator */
.tab-active {
  background-color: var(--color-sage) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(44, 74, 62, 0.25);
}

/* Range input styling */
input[type="range"] {
  accent-color: var(--color-sage);
}

/* Customizer option cards */
.custom-option-card {
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.custom-option-card.selected {
  border-color: var(--color-sage);
  background-color: var(--color-sage-light);
}

/* Leaflet map fix */
#lahore-map {
  z-index: 10;
  border-radius: 1.5rem;
  overflow: hidden;
}

.leaflet-popup-content-wrapper {
  background: #FAF7F2;
  border-radius: 1rem;
  font-family: 'Outfit', sans-serif;
  color: #181311;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Swiper carousel custom pagination */
.swiper-pagination-bullet-active {
  background: #2C4A3E !important;
  width: 24px !important;
  border-radius: 9999px !important;
}

/* Line clamp */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Frost & Bean Modal & Addon Drawer Enhancements */
#location-modal, #addon-modal {
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.branch-option-card:hover {
  transform: translateY(-2px);
}

.addon-option-label:hover {
  transform: translateY(-1px);
}

#nav-location-pill:hover {
  border-color: var(--color-sage);
  background-color: #FFFFFF;
}

/* Subtle clean shadow for transparent cutout product images */
.drop-shadow-product {
  filter: drop-shadow(0 8px 14px rgba(24, 19, 17, 0.08));
}

/* Sticky Section Jump Navigation */
.sticky-jump-bar {
  position: sticky;
  top: 5rem;
  z-index: 35;
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(44, 74, 62, 0.1);
  box-shadow: 0 4px 12px rgba(24, 19, 17, 0.03);
}

.jump-link {
  white-space: nowrap;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  color: #44403C;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.jump-link:hover, .jump-link.active {
  background: #2C4A3E;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(44, 74, 62, 0.25);
}

/* Scroll Offset for Navigation Targets */
section[id] {
  scroll-margin-top: 8.5rem;
}

/* Dynamic CYO Cup Preview Styling */
.cyo-cup-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 1.5rem;
  background: radial-gradient(circle at 50% 40%, #FFFFFF, #FAF7F2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.04);
}

.cyo-swirl-glow {
  position: absolute;
  top: 20%;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.6;
  pointer-events: none;
  transition: all 0.5s ease;
}

.topping-chip {
  animation: popIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.8) translateY(4px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Delivery Map Location Picker Custom Markers */
.store-pin-icon, .customer-pin-icon {
  background: transparent;
  border: none;
}
.customer-pin-icon div {
  animation: pulse-pin 2s infinite;
}
@keyframes pulse-pin {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(199, 134, 82, 0.7); }
  70% { transform: scale(1.08); box-shadow: 0 0 0 10px rgba(199, 134, 82, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(199, 134, 82, 0); }
}

/* Reviews Swiper Custom Styling */
.reviews-swiper-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #C78652;
  opacity: 0.35;
  transition: all 0.3s ease;
}
.reviews-swiper-pagination .swiper-pagination-bullet-active {
  width: 24px;
  border-radius: 9999px;
  background: #2C4A3E;
  opacity: 1;
}
.reviews-swiper .swiper-slide {
  height: auto;
  display: flex;
}

/* Mobile Smooth Horizontal Product Rows (Like Google Reviews Carousel) */
@media (max-width: 639px) {
  .mobile-scroll-row {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 1rem !important;
    padding-bottom: 1rem !important;
    padding-right: 1rem !important;
    scrollbar-width: thin !important;
    scrollbar-color: #2C4A3E #E7E2D9 !important;
  }
  .mobile-scroll-row > * {
    flex: 0 0 78vw !important;
    max-width: 300px !important;
    scroll-snap-align: start !important;
  }
  .mobile-scroll-row::-webkit-scrollbar {
    height: 5px !important;
  }
  .mobile-scroll-row::-webkit-scrollbar-track {
    background: #f0ebe1 !important;
    border-radius: 9999px !important;
  }
  .mobile-scroll-row::-webkit-scrollbar-thumb {
    background: #2C4A3E !important;
    border-radius: 9999px !important;
  }
}
