/* 
 * Guarulhos Liquor Store - Main Stylesheet
 * Modern, responsive design with dark/premium theme
 * Mobile-first approach
 */

/* ============= ROOT & VARIABLES ============= */
:root {
  /* Colors */
  --primary-dark: #0f0f0f;
  --secondary-dark: #1a1a1a;
  --accent-gold: #d4af37;
  --accent-amber: #ffa500;
  --text-light: #f0f0f0;
  --text-muted: #b0b0b0;
  --border-color: #333;
  --hover-bg: #2a2a2a;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* Typography */
  --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-heading: 'Georgia', serif;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.7);
  
  /* Transitions */
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--primary-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-amber);
}

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

/* ============= TYPOGRAPHY ============= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--accent-gold);
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  line-height: 1.2;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--text-light);
}

/* ============= NAVIGATION ============= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: var(--spacing-md) var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.navbar-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.navbar-logo span {
  font-size: 1.8rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
  align-items: center;
}

.nav-menu a {
  font-size: 0.95rem;
  color: var(--text-light);
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-amber));
  transition: width 0.3s ease;
}

.nav-menu a:hover {
  color: var(--accent-gold);
  transform: translateY(-2px);
}

.nav-menu a:hover::after {
  width: 100%;
}

.cart-icon-wrapper {
  position: relative;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.cart-icon-wrapper:hover {
  color: var(--accent-gold);
  transform: scale(1.1);
}

/* Floating Cart Button */
.floating-cart-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-amber));
  color: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.5);
  transition: all 0.3s ease;
  z-index: 100;
  border: none;
  animation: floatingPulse 2s ease-in-out infinite;
}

@keyframes floatingPulse {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.5);
  }
  50% {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 28px rgba(212, 175, 55, 0.7);
  }
}

.floating-cart-btn:hover {
  transform: scale(1.15) translateY(-5px);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.8);
  animation: none;
}

.floating-cart-btn:active {
  transform: scale(0.95) translateY(0);
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #ff4444;
  color: white;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-dark);
  box-shadow: 0 2px 8px rgba(255, 68, 68, 0.5);
}

.floating-cart-btn:hover .cart-badge {
  transform: scale(1.25);
  animation: badgePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes badgePop {
  0% {
    transform: scale(1.25);
  }
  50% {
    transform: scale(1.35);
  }
  100% {
    transform: scale(1.25);
  }
}

/* Keep old cart-icon-wrapper for compatibility if needed */
.cart-icon-wrapper {
  position: relative;
  cursor: pointer;
  font-size: 1.5rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--accent-gold);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hamburger animation */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* ============= HERO CAROUSEL - RECTANGULAR / FULL-WIDTH ============= */
.carousel-container {
  position: relative;
  width: 100%;
  height: 600px;
  background: linear-gradient(135deg, var(--secondary-dark) 0%, rgba(212, 175, 55, 0.02) 100%);
  overflow: hidden;
  margin-bottom: var(--spacing-xl);
}

.carousel {
  display: flex;
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.carousel-slide.active {
  opacity: 1;
  animation: carouselFadeIn 0.6s ease-out;
}

.carousel-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease-in-out;
  z-index: 1;
}

.carousel-slide.active img {
  animation: carouselImageZoom 1s ease-out;
}

.carousel-text {
  position: absolute;
  bottom: 30px;
  left: 40px;
  color: var(--text-light);
  text-align: left;
  z-index: 5;
  opacity: 0;
}

/* Caption overlay used with <img> slides */
.carousel-caption {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

.caption-panel {
  pointer-events: auto;
  background-color: rgba(28,18,6,0.45);
  padding: 30px 44px;
  border-radius: 10px;
  backdrop-filter: blur(6px);
  text-align: center;
  color: #fff;
  max-width: 640px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

.caption-panel h2 {
  font-size: 3rem;
  margin: 0 0 8px 0;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--accent-gold);
  text-shadow: 2px 2px 8px rgba(0,0,0,0.9);
}

.caption-panel p {
  margin: 0;
  font-weight: 700;
  color: #f7f0d6;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.85);
}

.carousel-slide.active .carousel-text {
  animation: slideUpFade 0.8s ease-out 0.2s forwards;
}

.carousel-text h2 {
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
}

.carousel-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.carousel-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--spacing-sm);
  z-index: 10;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(212, 175, 55, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.carousel-dot:hover {
  background-color: rgba(212, 175, 55, 0.6);
  transform: scale(1.1);
}

.carousel-dot.active {
  background-color: var(--accent-gold);
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
  animation: dotPulse 0.6s ease-out;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.6);
  color: var(--accent-gold);
  border: none;
  padding: 10px 15px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 8;
  border-radius: 5px;
}

.carousel-arrow:hover {
  background-color: var(--accent-gold);
  color: var(--primary-dark);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.carousel-arrow:active {
  transform: translateY(-50%) scale(0.98);
}

.carousel-arrow.prev {
  left: 20px;
}

.carousel-arrow.next {
  right: 20px;
}

/* ============= CONTAINER & SECTIONS ============= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xl) 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: var(--spacing-lg);
  position: relative;
  padding-bottom: var(--spacing-lg);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

/* ============= PRODUCT SECTION ============= */
.category-filter {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
}

.filter-btn {
  padding: var(--spacing-sm) var(--spacing-md);
  background-color: var(--secondary-dark);
  color: var(--text-light);
  border: 2px solid var(--border-color);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.filter-btn:active::before {
  width: 300px;
  height: 300px;
  animation: ripple 0.6s ease-out;
}

.filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(212, 175, 55, 0.3);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--accent-gold);
  color: var(--primary-dark);
  border-color: var(--accent-gold);
  animation: filterBtnPulse 0.6s ease-out;
}

/* Additional Filters Container */
.filters-container {
  display: flex;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
  justify-content: center;
  padding: var(--spacing-lg);
  background-color: var(--secondary-dark);
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.filter-label {
  font-weight: 600;
  color: var(--accent-gold);
  white-space: nowrap;
  font-size: 0.95rem;
}

.filter-options {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.filter-btn-option {
  padding: 8px 15px;
  background-color: var(--primary-dark);
  color: var(--text-light);
  border: 2px solid var(--border-color);
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

.filter-btn-option:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.filter-btn-option.active {
  background-color: var(--accent-gold);
  color: var(--primary-dark);
  border-color: var(--accent-gold);
}

.search-bar {
  margin-bottom: var(--spacing-lg);
  display: flex;
  gap: var(--spacing-sm);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.search-bar-wrapper {
  position: relative;
  margin-bottom: var(--spacing-lg);
}

.search-bar input {
  flex: 1;
  padding: var(--spacing-sm) var(--spacing-md);
  background-color: var(--secondary-dark);
  border: 2px solid var(--border-color);
  border-radius: 5px;
  color: var(--text-light);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
  transform: translateY(-2px);
  background-color: var(--primary-dark);
}

.search-bar button {
  padding: var(--spacing-sm) var(--spacing-md);
  background-color: var(--accent-gold);
  color: var(--primary-dark);
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.search-bar button:hover {
  background-color: var(--accent-amber);
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4);
}

.search-bar button:active {
  transform: scale(0.95);
}

/* Live Search Results Dropdown */
.live-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--secondary-dark);
  border: 2px solid var(--accent-gold);
  border-top: none;
  border-radius: 0 0 5px 5px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  margin-top: -2px;
}

.live-search-results.empty {
  padding: var(--spacing-md);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background-color: var(--hover-bg);
  padding-left: var(--spacing-lg);
}

.search-result-image {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  background-color: var(--primary-dark);
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-name {
  font-weight: bold;
  color: var(--accent-gold);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-category {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.search-result-price {
  font-size: 0.9rem;
  color: var(--accent-amber);
  font-weight: bold;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

/* Category Section Styling */
.category-section-wrapper {
  width: 100%;
  margin-bottom: var(--spacing-lg);
}

.category-banner {
  background: linear-gradient(135deg, var(--accent-gold) 0%, rgba(212, 175, 55, 0.8) 100%);
  padding: 25px 30px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.25);
  color: var(--primary-dark);
  position: relative;
  overflow: hidden;
}

.category-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.05) 10px,
    rgba(255, 255, 255, 0.05) 20px
  );
  pointer-events: none;
}

.category-banner-content {
  flex: 1;
  z-index: 2;
}

.category-title {
  font-size: 1.8rem;
  font-weight: 900;
  margin: 0;
  color: var(--primary-dark);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: 1px;
}

.category-subtitle {
  font-size: 0.95rem;
  color: var(--primary-dark);
  margin: 5px 0 0 0;
  opacity: 0.9;
  font-weight: 600;
}

.category-banner-icon {
  font-size: 3rem;
  z-index: 2;
  margin-left: 20px;
  animation: float 3s ease-in-out infinite;
}

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

@keyframes bubblePop {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
/* removed bubble keyframes (reverted to rectangular carousel) */

@keyframes buttonFloat {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes buttonPulseHover {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes priceGlowPulse {
  0% {
    text-shadow: 0 0 5px rgba(255, 165, 0, 0.5);
  }
  50% {
    text-shadow: 0 0 20px rgba(255, 165, 0, 0.8);
  }
  100% {
    text-shadow: 0 0 5px rgba(255, 165, 0, 0.5);
  }
}

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

@keyframes carouselImageZoom {
  from {
    transform: scale(1.1) rotate(2deg);
    opacity: 0;
  }
  to {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes dotPulse {
  0% {
    box-shadow: 0 0 0 rgba(212, 175, 55, 0.8);
  }
  50% {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
  }
  100% {
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
  }
}

@keyframes ripple {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    width: 300px;
    height: 300px;
    opacity: 0;
  }
}

@keyframes filterBtnPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

.product-card {
  background-color: var(--secondary-dark);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
  background-clip: padding-box;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

.product-card:hover::before {
  opacity: 1;
}

.product-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-gold);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.3);
  backdrop-filter: blur(10px);
}

.product-image {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, var(--secondary-dark), var(--hover-bg));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-image img {
  transform: scale(1.08) rotate(2deg);
  filter: brightness(1.1);
}

.product-image::after {
  content: attr(data-placeholder);
  position: absolute;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.product-info {
  padding: var(--spacing-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-size: 1.1rem;
  font-weight: bold;
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-xs);
  transition: all 0.3s ease;
}

.product-card:hover .product-name {
  transform: translateY(-5px);
  filter: drop-shadow(0 4px 8px rgba(212, 175, 55, 0.3));
}

.product-category {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--spacing-xs);
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.product-card:hover .product-category {
  opacity: 1;
  transform: translateY(0);
}

.product-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent-amber);
  margin-bottom: var(--spacing-md);
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.product-card:hover .product-price {
  animation: priceGlowPulse 1.5s ease-in-out infinite;
}

.product-actions {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: auto;
}

.btn-add-cart,
.btn-whatsapp {
  flex: 1;
  padding: var(--spacing-sm);
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: bold;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  animation: buttonFloat 2.5s ease-in-out infinite;
}

.product-card:hover .btn-add-cart,
.product-card:hover .btn-whatsapp {
  animation: buttonPulseHover 0.6s ease-out;
}

.btn-add-cart::before,
.btn-whatsapp::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  pointer-events: none;
}

.btn-add-cart:active::before,
.btn-whatsapp:active::before {
  width: 300px;
  height: 300px;
}

.btn-add-cart {
  background-color: var(--accent-gold);
  color: var(--primary-dark);
}

.btn-add-cart:hover {
  background-color: var(--accent-amber);
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

.btn-add-cart:active {
  transform: scale(0.96);
}

.btn-whatsapp {
  background-color: #25d366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-whatsapp:hover {
  background-color: #1ebc59;
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:active {
  transform: scale(0.96);
}

.whatsapp-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* ============= CART MODAL ============= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: var(--spacing-md);
  animation: fadeInOverlay 0.3s ease-out;
}

.modal-overlay.active {
  display: flex;
}

@keyframes fadeInOverlay {
  from {
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
  }
  to {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
  }
}

.modal-content {
  background-color: var(--secondary-dark);
  border-radius: 10px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: slideInScale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid rgba(212, 175, 55, 0.2);
}

@keyframes slideInScale {
  from {
    transform: translateY(-50px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

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

/* Age Verification Modal */
#age-verification-modal {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(20, 20, 40, 0.95));
}

.age-verification-content {
  max-width: 500px;
  border: 3px solid var(--accent-gold);
  background: linear-gradient(135deg, var(--secondary-dark) 0%, rgba(212, 175, 55, 0.05) 100%);
}

.age-verification-container {
  padding: 50px 30px 40px;
  text-align: center;
}

.age-verification-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  display: block;
  animation: bounce 2s infinite;
}

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

.age-verification-title {
  font-size: 2.2rem;
  color: var(--accent-gold);
  margin: 0 0 15px 0;
  font-weight: 900;
  letter-spacing: 2px;
}

.age-verification-text {
  font-size: 1.1rem;
  color: var(--text-light);
  margin: 10px 0 20px 0;
  line-height: 1.6;
}

.age-verification-question {
  font-size: 1.2rem;
  color: var(--accent-gold);
  margin: 25px 0 30px 0;
  font-weight: bold;
}

.age-verification-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.age-btn {
  flex: 1;
  padding: 15px 20px;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.age-btn-no {
  background-color: #ff4444;
  color: white;
}

.age-btn-no:hover {
  background-color: #ff2222;
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4);
}

.age-btn-yes {
  background-color: var(--accent-gold);
  color: var(--primary-dark);
}

.age-btn-yes:hover {
  background-color: var(--accent-amber);
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.6);
}

/* Age Denied Modal */
#age-denied-modal {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(50, 0, 0, 0.95));
}

.age-denied-content {
  max-width: 500px;
  border: 3px solid #ff4444;
  background: linear-gradient(135deg, var(--secondary-dark) 0%, rgba(255, 68, 68, 0.1) 100%);
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  75% {
    transform: translateX(10px);
  }
}

.age-denied-container {
  padding: 50px 30px 40px;
  text-align: center;
}

.age-denied-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  display: block;
}

.age-denied-title {
  font-size: 2.2rem;
  color: #ff4444;
  margin: 0 0 15px 0;
  font-weight: 900;
  letter-spacing: 2px;
}

.age-denied-text {
  font-size: 1.1rem;
  color: var(--text-light);
  margin: 10px 0 15px 0;
  line-height: 1.6;
}

.age-denied-subtitle {
  font-size: 1rem;
  color: #ff4444;
  margin: 20px 0 0 0;
  font-weight: bold;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-lg);
  border-bottom: 2px solid var(--border-color);
}

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

.modal-close {
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--text-light);
}

.modal-body {
  padding: var(--spacing-lg);
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
  background-color: var(--primary-dark);
  border-radius: 5px;
  margin-bottom: var(--spacing-sm);
}

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

.cart-item-name {
  font-weight: bold;
  color: var(--accent-gold);
  margin-bottom: 5px;
}

.cart-item-price {
  color: var(--accent-amber);
  font-size: 0.95rem;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-right: var(--spacing-md);
}

.qty-btn {
  width: 25px;
  height: 25px;
  border: 1px solid var(--border-color);
  border-radius: 3px;
  background-color: var(--hover-bg);
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.qty-btn:hover {
  background-color: var(--accent-gold);
  color: var(--primary-dark);
}

.qty-input {
  width: 40px;
  text-align: center;
  background-color: var(--hover-bg);
  border: 1px solid var(--border-color);
  border-radius: 3px;
  color: var(--text-light);
  padding: 5px;
}

.cart-item-remove {
  background-color: #d32f2f;
  color: white;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

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

.cart-empty {
  text-align: center;
  padding: var(--spacing-xl);
  color: var(--text-muted);
}

.cart-empty p {
  font-size: 1.1rem;
}

.cart-summary {
  padding: var(--spacing-lg);
  border-top: 2px solid var(--border-color);
  background-color: var(--primary-dark);
  border-radius: 5px;
  margin-bottom: var(--spacing-md);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--spacing-sm);
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--border-color);
}

.summary-row.total {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--accent-gold);
  border-bottom: none;
  margin-top: var(--spacing-md);
}

/* ============= CHECKOUT ============= */
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--spacing-md);
}

.form-group label {
  margin-bottom: 5px;
  color: var(--accent-gold);
  font-weight: 500;
  transition: all 0.2s ease;
}

.form-group input,
.form-group select {
  padding: var(--spacing-sm);
  background-color: var(--hover-bg);
  border: 2px solid var(--border-color);
  border-radius: 5px;
  color: var(--text-light);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.form-group input::placeholder {
  color: rgba(224, 224, 224, 0.4);
  transition: all 0.3s ease;
}

.form-group input:focus::placeholder {
  color: rgba(224, 224, 224, 0.7);
}

.form-group label {
  position: relative;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
  color: var(--accent-amber);
}

.btn-checkout {
  padding: var(--spacing-md);
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-amber));
  color: var(--primary-dark);
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  border: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-checkout::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.btn-checkout:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(212, 175, 55, 0.5);
  animation: checkoutGlow 0.6s ease-out;
}

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

.btn-checkout:active::before {
  width: 300px;
  height: 300px;
  animation: ripple 0.6s ease-out;
}

.btn-checkout:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@keyframes checkoutGlow {
  0% {
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  }
  50% {
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.8);
  }
  100% {
    box-shadow: 0 12px 25px rgba(212, 175, 55, 0.5);
  }
}

/* ============= FOOTER ============= */
.footer {
  background-color: var(--secondary-dark);
  border-top: 2px solid var(--border-color);
  padding: var(--spacing-lg) 0;
  margin-top: var(--spacing-xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-section h4 {
  color: var(--accent-gold);
  margin-bottom: var(--spacing-md);
}

.footer-section p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--accent-gold);
}

.social-icons {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--hover-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  transition: var(--transition);
  font-size: 1.2rem;
}

.social-icon:hover {
  background-color: var(--accent-gold);
  color: var(--primary-dark);
  transform: scale(1.1);
}

.map-embed {
  width: 100%;
  height: 250px;
  border-radius: 5px;
  margin-bottom: var(--spacing-lg);
  border: 2px solid var(--border-color);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ============= PAGE SECTIONS ============= */
.about-section,
.contact-section,
.faq-section {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-md);
}

.about-section h2,
.contact-section h2,
.faq-section h2 {
  margin-bottom: var(--spacing-lg);
}

.about-section p {
  margin-bottom: var(--spacing-md);
  text-align: justify;
  color: var(--text-light);
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
}

.highlight {
  background-color: var(--secondary-dark);
  padding: var(--spacing-lg);
  border-radius: 10px;
  border-left: 4px solid var(--accent-gold);
  text-align: center;
}

.highlight-number {
  font-size: 2rem;
  color: var(--accent-gold);
  font-weight: bold;
}

.highlight-text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
}

.contact-item {
  background-color: var(--secondary-dark);
  padding: var(--spacing-lg);
  border-radius: 10px;
  text-align: center;
  border: 2px solid var(--border-color);
  transition: var(--transition);
}

.contact-item:hover {
  border-color: var(--accent-gold);
  transform: translateY(-5px);
}

.contact-item-icon {
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
}

.contact-item-title {
  color: var(--accent-gold);
  font-weight: bold;
  margin-bottom: var(--spacing-xs);
}

.contact-item-value {
  color: var(--text-muted);
}

.faq-item {
  margin-bottom: var(--spacing-lg);
  background-color: var(--secondary-dark);
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.faq-question {
  padding: var(--spacing-md);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
  background-color: var(--secondary-dark);
}

.faq-question:hover {
  background-color: var(--hover-bg);
}

.faq-question h4 {
  margin: 0;
  color: var(--accent-gold);
}

.faq-toggle {
  font-size: 1.2rem;
  transition: var(--transition);
}

.faq-toggle.open {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 var(--spacing-md);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--text-light);
}

.faq-answer.open {
  padding: var(--spacing-md);
  max-height: 500px;
  border-top: 1px solid var(--border-color);
}

/* ============= RESPONSIVE DESIGN ============= */

/* Tablets (768px and below) */
@media (max-width: 768px) {
  .navbar {
    padding: var(--spacing-md) var(--spacing-md);
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: var(--secondary-dark);
    border-bottom: 2px solid var(--border-color);
    padding: var(--spacing-lg);
    gap: var(--spacing-md);
  }

  .nav-menu.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .carousel-container {
    height: 350px;
  }

  .carousel-text h2 {
    font-size: 1.5rem;
  }

  .carousel-text p {
    font-size: 0.95rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-md);
  }

  /* Mobile Category Banner */
  .category-banner {
    padding: 18px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .category-title {
    font-size: 1.4rem;
  }

  .category-subtitle {
    font-size: 0.85rem;
  }

  .category-banner-icon {
    font-size: 2.5rem;
    margin-left: 0;
  }

  .modal-content {
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
  }

  .checkout-form {
    padding: 0;
  }

  .checkout-form .form-group input,
  .checkout-form .form-group textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  /* Mobile-specific improvements */
  .navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .nav-menu {
    z-index: 999;
  }

  .carousel-arrow {
    width: 40px;
    height: 40px;
  }

  .product-card {
    border-radius: 8px;
  }

  .product-image {
    height: 200px;
  }

  button {
    font-size: 16px; /* Prevents zoom on iOS */
    min-height: 44px; /* Better touch target */
  }

  .modal-body {
    padding: 15px;
  }

  #saved-addresses-list {
    font-size: 0.85rem;
  }

  .notification {
    max-width: 90vw;
    min-width: 250px;
    bottom: 20px;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea,
  select {
    font-size: 16px; /* Prevents zoom on iOS when focusing */
  }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
  :root {
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
  }

  .navbar {
    padding: var(--spacing-sm);
  }

  .navbar-logo {
    font-size: 1.2rem;
  }

  .cart-icon-wrapper {
    font-size: 1.3rem;
  }

  /* Mobile Floating Cart Button - Adjusted Position and Size */
  .floating-cart-btn {
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    font-size: 2rem;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.4);
  }

  .cart-badge {
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  h3 {
    font-size: 1rem;
  }

  .carousel-container {
    height: 250px;
    margin-bottom: var(--spacing-lg);
  }

  .carousel-text h2 {
    font-size: 1.2rem;
  }

  .carousel-text p {
    font-size: 0.85rem;
  }

  .carousel-arrow {
    padding: 8px 12px;
    font-size: 1.2rem;
  }

  .category-filter {
    gap: 8px;
  }

  .filter-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  /* Mobile Filters Container */
  .filters-container {
    flex-direction: column;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
  }

  .filter-group {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .filter-label {
    font-size: 0.9rem;
  }

  .filter-options {
    width: 100%;
  }

  .filter-btn-option {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  /* Mobile Live Search */
  .search-bar-wrapper {
    max-width: 100%;
    padding: 0 var(--spacing-md);
  }

  .live-search-results {
    max-height: 300px;
    border-radius: 0 0 5px 5px;
  }

  .search-result-item {
    padding: var(--spacing-sm);
  }

  .search-result-image {
    width: 40px;
    height: 40px;
  }

  .search-result-name {
    font-size: 0.9rem;
  }

  .search-result-category {
    font-size: 0.8rem;
  }

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

  .search-bar {
    flex-direction: column;
    max-width: 100%;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--spacing-sm);
  }

  .product-image {
    height: 180px;
  }

  .product-actions {
    flex-direction: column;
  }

  .cart-item {
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: flex-start;
  }

  .cart-item-qty {
    width: 100%;
    justify-content: space-between;
  }

  .about-highlights,
  .contact-info {
    grid-template-columns: 1fr;
  }

  .modal-content {
    max-width: 95%;
  }

  .map-embed {
    height: 200px;
  }
}

/* ============= UTILITY CLASSES ============= */
.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}

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

.mt-lg {
  margin-top: var(--spacing-lg);
}

.mb-lg {
  margin-bottom: var(--spacing-lg);
}

.mt-md {
  margin-top: var(--spacing-md);
}

.mb-md {
  margin-bottom: var(--spacing-md);
}

/* ============= ANIMATIONS ============= */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes scaleIn {
  from {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

@keyframes scaleOut {
  from {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  to {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
  }
}

@keyframes slideUpFade {
  from {
    bottom: -100px;
    opacity: 0;
  }
  to {
    bottom: 30px;
    opacity: 1;
  }
}

@keyframes slideDownFade {
  from {
    bottom: 30px;
    opacity: 1;
  }
  to {
    bottom: -100px;
    opacity: 0;
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

.slide-in-up {
  animation: slideInUp 0.5s ease-out;
}

/* ============= ENTERTAINMENT ANIMATIONS ============= */

/* Pulse animation for important elements */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Glow animation for product prices */
@keyframes glow {
  0%, 100% {
    text-shadow: 0 0 5px transparent;
    color: var(--accent-amber);
  }
  50% {
    text-shadow: 0 0 15px var(--accent-gold);
    color: #ffeb3b;
  }
}

/* Spin animation */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Wobble animation */
@keyframes wobble {
  0%, 100% {
    transform: translateX(0);
  }
  15% {
    transform: translateX(-5px) rotate(-1deg);
  }
  30% {
    transform: translateX(5px) rotate(1deg);
  }
  45% {
    transform: translateX(-5px) rotate(-1deg);
  }
  60% {
    transform: translateX(3px) rotate(0.5deg);
  }
  75% {
    transform: translateX(-3px) rotate(-0.5deg);
  }
}

/* Flip animation */
@keyframes flip {
  0% {
    transform: perspective(400px) rotateY(0);
  }
  100% {
    transform: perspective(400px) rotateY(360deg);
  }
}

/* Heartbeat animation */
@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  10%, 30% {
    transform: scale(0.9);
  }
  20%, 50%, 80% {
    transform: scale(1.1);
  }
  40% {
    transform: scale(1.05);
  }
  60% {
    transform: scale(1.05);
  }
}

/* Swing animation */
@keyframes swing {
  20% {
    transform: rotate(15deg);
  }
  40% {
    transform: rotate(-10deg);
  }
  60% {
    transform: rotate(5deg);
  }
  80% {
    transform: rotate(-5deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

/* Slide in from left */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Slide in from right */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Bounce in */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Zoom in */
@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Apply animations to elements */

/* Product cards - staggered fade-in */
.product-card {
  animation: fadeIn 0.6s ease-out forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }
.product-card:nth-child(7) { animation-delay: 0.7s; }
.product-card:nth-child(8) { animation-delay: 0.8s; }
.product-card:nth-child(9) { animation-delay: 0.9s; }
.product-card:nth-child(10) { animation-delay: 1s; }

/* Glow effect on product prices on hover */
.product-price {
  transition: all 0.3s ease;
}

.product-card:hover .product-price {
  animation: glow 1.5s ease-in-out infinite;
}

/* Bounce on button hover */
.btn-add-cart:hover,
.btn-whatsapp:hover {
  animation: pulse 0.6s ease-in-out;
}

/* Category banner slide in */
.category-banner {
  animation: slideInLeft 0.6s ease-out;
}

/* Floating cart button bounce on hover */
.floating-cart-btn:hover {
  animation: heartbeat 0.6s ease-in-out;
}

/* Section title wobble */
.section-title {
  animation: zoomIn 0.8s ease-out;
}

/* Carousel dots spin animation */
.carousel-dot {
  transition: all 0.3s ease;
}

.carousel-dot.active {
  animation: pulse 1s ease-in-out infinite;
}

/* Filter buttons swing on hover */
.filter-btn:hover,
.filter-btn-option:hover {
  animation: swing 0.6s ease-in-out;
}

/* Search result items bounce in */
.search-result-item {
  animation: slideInLeft 0.3s ease-out;
}

.search-result-item:nth-child(1) { animation-delay: 0.05s; }
.search-result-item:nth-child(2) { animation-delay: 0.1s; }
.search-result-item:nth-child(3) { animation-delay: 0.15s; }
.search-result-item:nth-child(4) { animation-delay: 0.2s; }
.search-result-item:nth-child(5) { animation-delay: 0.25s; }
.search-result-item:nth-child(6) { animation-delay: 0.3s; }
.search-result-item:nth-child(7) { animation-delay: 0.35s; }
.search-result-item:nth-child(8) { animation-delay: 0.4s; }

/* ============= SCROLL-TRIGGERED ANIMATIONS ============= */

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

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

/* Apply scroll animations to elements */
.product-card.animate-in-view {
  animation: scrollFadeInUp 0.6s ease-out forwards;
  animation-delay: var(--animation-delay, 0s);
}

.category-banner.animate-in-view {
  animation: scrollScaleIn 0.6s ease-out forwards;
  animation-delay: var(--animation-delay, 0s);
}

/* Respect prefers-reduced-motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mobile Age Verification Modal */
@media (max-width: 768px) {
  .age-verification-content,
  .age-denied-content {
    max-width: 95%;
    width: 100%;
  }

  .age-verification-container,
  .age-denied-container {
    padding: 30px 20px 25px;
  }

  .age-verification-icon,
  .age-denied-icon {
    font-size: 3rem;
    margin-bottom: 15px;
  }

  .age-verification-title,
  .age-denied-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }

  .age-verification-text,
  .age-denied-text,
  .age-denied-subtitle {
    font-size: 0.95rem;
  }

  .age-verification-question {
    font-size: 1rem;
    margin: 15px 0 20px 0;
  }

  .age-verification-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .age-btn {
    padding: 12px 15px;
    font-size: 0.9rem;
  }
}
