/* ============================================================
   DONA FULANA — Design System & Storefront (Mobile-First)
   ============================================================ */

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

/* ============================================================
   1. CSS RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { min-height: 100vh; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; }

/* ============================================================
   2. CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --burgundy: #6B1C3A;
  --burgundy-light: #8B3A5A;
  --burgundy-dark: #4A0E25;
  --burgundy-rgb: 107, 28, 58;
  --gold: #C4A55A;
  --gold-light: #D4BC7E;
  --gold-dark: #A88B3D;
  --gold-rgb: 196, 165, 90;
  --cream: #FAF3EB;
  --cream-dark: #F0E4D4;
  --cream-rgb: 250, 243, 235;
  --white: #FFFFFF;
  --text-dark: #2C1320;
  --text-medium: #5A3D4A;
  --text-light: #8A7080;
  --shadow-sm: 0 2px 8px rgba(107, 28, 58, 0.08);
  --shadow-md: 0 4px 16px rgba(107, 28, 58, 0.12);
  --shadow-lg: 0 8px 32px rgba(107, 28, 58, 0.16);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --header-height: 56px;
  --safe-top: env(safe-area-inset-top, 0px);
}

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--text-dark); }
h1 { font-size: clamp(1.8rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.75rem); }
p { color: var(--text-medium); line-height: 1.7; }

/* ============================================================
   4. BODY
   ============================================================ */
body {
  background-color: var(--cream);
  font-family: var(--font-body);
  color: var(--text-dark);
  overflow-x: hidden;
  padding-top: var(--header-height);
}

/* ============================================================
   5. HEADER — Mobile-First
   ============================================================ */
#main-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-height);
  padding: 0 1rem;
  background: rgba(var(--cream-rgb), 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(var(--burgundy-rgb), 0.06);
  transition: var(--transition);
  display: flex;
  align-items: center;
}

#main-header.scrolled {
  background: rgba(var(--cream-rgb), 0.95);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* ── Logo ── */
.logo-container {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.logo-img {
  height: 36px;
  width: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(var(--gold-rgb), 0.4);
  transition: var(--transition);
}

.logo-text-group { display: flex; flex-direction: column; }
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--burgundy);
  line-height: 1.1;
}
.logo-tagline {
  font-size: 0.55rem;
  color: var(--text-light);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Desktop nav hidden on mobile */
.desktop-only { display: none; }

/* ── Cart Toggle ── */
#cart-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--burgundy);
  font-size: 1.2rem;
  -webkit-tap-highlight-color: transparent;
}

.cart-badge {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--gold);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.65rem;
  min-width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--cream);
}
.cart-badge[data-count='0'] { display: none; }
.cart-badge.bounce { animation: badgeBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }

@keyframes badgeBounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.45); }
  70%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}

/* ============================================================
   6. HERO — Mobile-First (Clean)
   ============================================================ */
#hero-section {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  background: linear-gradient(135deg, var(--burgundy-dark) 0%, var(--burgundy) 50%, #7B2548 100%);
  padding: 2rem 1rem;
}

.hero-bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 70%, rgba(var(--gold-rgb), 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(var(--gold-rgb), 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  margin: 0 auto 1.25rem;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 0 30px rgba(var(--gold-rgb), 0.3);
  animation: heroLogoPulse 4s ease-in-out infinite;
}

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

@keyframes heroLogoPulse {
  0%, 100% { box-shadow: 0 0 30px rgba(var(--gold-rgb), 0.3); }
  50%      { box-shadow: 0 0 45px rgba(var(--gold-rgb), 0.45); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 6vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.35rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}

.hero-tagline {
  font-size: clamp(0.85rem, 2.5vw, 1.2rem);
  color: var(--gold-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.hero-cta {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--gold);
  color: var(--text-dark);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(var(--gold-rgb), 0.35);
  -webkit-tap-highlight-color: transparent;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(var(--gold-rgb), 0.5); }
.hero-cta:active { transform: scale(0.97); }

/* ── Hero Location Badge ── */
.hero-location-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.4rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(var(--gold-rgb), 0.35);
  border-radius: var(--radius-full);
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  animation: locationPulse 3s ease-in-out infinite;
}

.hero-location-badge svg {
  stroke: var(--gold);
  flex-shrink: 0;
}

@keyframes locationPulse {
  0%, 100% { border-color: rgba(var(--gold-rgb), 0.35); box-shadow: 0 0 0 0 rgba(var(--gold-rgb), 0); }
  50% { border-color: rgba(var(--gold-rgb), 0.7); box-shadow: 0 0 12px 2px rgba(var(--gold-rgb), 0.15); }
}

/* ── Floating Hearts (Hero) ── */
.hero-hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.hero-hearts .heart {
  position: absolute;
  bottom: -30px;
  color: rgba(255, 255, 255, 0.06);
  font-size: 1.5rem;
  animation: floatHeart linear infinite;
  will-change: transform;
}
.hero-hearts .heart:nth-child(1)  { left: 5%;  font-size: 1.2rem; animation-duration: 8s;  animation-delay: 0s; }
.hero-hearts .heart:nth-child(2)  { left: 15%; font-size: 1.8rem; animation-duration: 10s; animation-delay: 1s; }
.hero-hearts .heart:nth-child(3)  { left: 25%; font-size: 1rem;   animation-duration: 7s;  animation-delay: 2.5s; }
.hero-hearts .heart:nth-child(4)  { left: 38%; font-size: 2rem;   animation-duration: 11s; animation-delay: 0.5s; }
.hero-hearts .heart:nth-child(5)  { left: 50%; font-size: 1.4rem; animation-duration: 9s;  animation-delay: 3s; }
.hero-hearts .heart:nth-child(6)  { left: 62%; font-size: 1.6rem; animation-duration: 8.5s; animation-delay: 1.5s; }
.hero-hearts .heart:nth-child(7)  { left: 72%; font-size: 1.1rem; animation-duration: 10s; animation-delay: 4s; }
.hero-hearts .heart:nth-child(8)  { left: 82%; font-size: 1.9rem; animation-duration: 7.5s; animation-delay: 2s; }
.hero-hearts .heart:nth-child(9)  { left: 92%; font-size: 1.3rem; animation-duration: 9.5s; animation-delay: 0.8s; }
.hero-hearts .heart:nth-child(10) { left: 45%; font-size: 2.2rem; animation-duration: 12s; animation-delay: 5s; }

@keyframes floatHeart {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-110vh) rotate(45deg) scale(0.5);
    opacity: 0;
  }
}

/* ============================================================
   6b. BEST SELLERS SECTION
   ============================================================ */
.bestsellers-section {
  padding: 2rem 1rem;
  max-width: 1280px;
  margin: 0 auto;
}

.bestsellers-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.bestsellers-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--burgundy-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.bestsellers-title::before { content: '🔥'; }
.bestsellers-title::after {
  content: '';
  display: block;
}

.bestsellers-subtitle {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

.bestsellers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

/* Mobile: scroll horizontal */
@media (max-width: 639px) {
  .bestsellers-grid {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
  }
  .bestsellers-grid::-webkit-scrollbar { display: none; }
  .bestsellers-grid > * { scroll-snap-align: start; }
}

/* Bestseller card — mini product card */
.bestseller-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
  -webkit-tap-highlight-color: transparent;
}
.bestseller-card:active { transform: scale(0.96); }

.bestseller-rank {
  position: absolute;
  top: 8px; left: 8px;
  width: 28px; height: 28px;
  background: var(--gold);
  color: var(--text-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.bestseller-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--cream-dark);
}

.bestseller-info {
  padding: 0.6rem;
}

.bestseller-name {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.2rem;
}

.bestseller-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--burgundy);
}

@media (min-width: 640px) {
  .bestsellers-section { padding: 3rem 1.5rem; }
  .bestsellers-grid { gap: 1.25rem; }
  .bestseller-name { font-size: 0.9rem; }
  .bestseller-info { padding: 0.85rem; }
}

@media (min-width: 1024px) {
  .bestsellers-section { padding: 3rem 2rem; }
  .bestsellers-grid { gap: 2rem; }
  .bestseller-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
  .bestseller-name { font-size: 1rem; }
  .bestseller-info { padding: 1rem; }
  .bestseller-price { font-size: 1.15rem; }
  .bestseller-rank { width: 32px; height: 32px; font-size: 0.85rem; }
}

/* ============================================================
   7. SECTION HEADERS
   ============================================================ */
.section-header {
  text-align: center;
  margin: 2rem auto 1.5rem;
  padding: 0 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--burgundy-dark);
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  display: block;
  width: 50px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 0.6rem auto 0;
  border-radius: 2px;
}
.section-subtitle {
  color: var(--text-light);
  margin-top: 0.4rem;
  font-size: 0.88rem;
}

/* ============================================================
   8. QUICK FILTERS (Category Pills)
   ============================================================ */
.quick-filters {
  position: sticky;
  top: var(--header-height);
  z-index: 100;
  background: rgba(var(--cream-rgb), 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cream-dark);
  padding: 0.6rem 0;
}

.quick-filters-scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 1rem;
  -webkit-overflow-scrolling: touch;
}
.quick-filters-scroll::-webkit-scrollbar { display: none; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 1rem;
  border: 1.5px solid var(--burgundy-light);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--burgundy);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
  min-height: 36px;
}
.pill:hover, .pill.active {
  background: var(--burgundy);
  color: var(--white);
  border-color: var(--burgundy);
}
.pill.active { font-weight: 600; }

/* ============================================================
   9. FILTER BAR & ADVANCED FILTERS PANEL
   ============================================================ */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background: var(--cream);
}

.filter-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: var(--white);
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
  min-height: 40px;
}
.filter-toggle-btn:hover, .filter-toggle-btn.active {
  border-color: var(--burgundy);
  background: rgba(var(--burgundy-rgb), 0.04);
}

.filter-count {
  background: var(--burgundy);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.results-count {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ── Filters Panel ── */
.filters-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--white);
  border-bottom: 1px solid var(--cream-dark);
}
.filters-panel.open {
  max-height: 600px;
}

.filters-panel-inner {
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.filter-group-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  padding: 0.4rem 0.85rem;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-full);
  background: var(--white);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-medium);
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
}
.chip:hover { border-color: var(--gold); }
.chip.active {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--white);
  font-weight: 600;
}

/* ── Price Range ── */
.price-range-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.price-inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--cream);
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.6rem;
  flex: 1;
  min-height: 40px;
}
.price-input-wrap span {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 600;
}
.price-input-wrap input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 0.85rem;
  color: var(--text-dark);
  outline: none;
}
.price-separator {
  font-size: 0.8rem;
  color: var(--text-light);
  flex-shrink: 0;
}

/* ── Price Slider ── */
.price-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--burgundy), var(--gold));
  outline: none;
}
.price-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--burgundy);
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  cursor: pointer;
}
.price-slider::-moz-range-thumb {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--burgundy);
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  cursor: pointer;
}

/* ── Filter Actions ── */
.filter-actions {
  display: flex;
  justify-content: flex-end;
}

.btn-clear-filters {
  padding: 0.5rem 1.25rem;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-full);
  background: var(--white);
  color: var(--text-medium);
  font-size: 0.82rem;
  font-weight: 500;
  transition: var(--transition);
  min-height: 38px;
}
.btn-clear-filters:hover {
  border-color: var(--burgundy);
  color: var(--burgundy);
}

/* ============================================================
   10. PRODUCTS GRID — Mobile-First (2 columns)
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  max-width: 1280px;
  margin: 0 auto;
}

/* ============================================================
   11. PRODUCT CARD — Compact Mobile Design
   ============================================================ */
.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
  opacity: 0;
  transform: translateY(20px);
}
.product-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.product-card:active { transform: scale(0.97); }

/* Skeleton always visible */
.product-skeleton { opacity: 1; transform: none; }

.product-image-container {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--cream-dark);
}
.product-image {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-image { transform: scale(1.06); }

.product-category-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: rgba(var(--burgundy-rgb), 0.88);
  color: var(--white);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(6px);
}

.product-info { padding: 0.85rem 0.75rem; }

.product-name {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-description {
  font-size: 0.72rem;
  color: var(--text-light);
  line-height: 1.4;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.product-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--burgundy);
  line-height: 1;
}
.product-price .currency { font-size: 0.7rem; font-weight: 400; }

.btn-add-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.9rem;
  background: var(--gold);
  color: var(--text-dark);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
  min-height: 36px;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
.btn-add-cart:active { transform: scale(0.92); }

.btn-add-cart.added {
  background: var(--burgundy);
  color: var(--white);
  animation: addedPulse 0.35s ease;
}
@keyframes addedPulse { 0% { transform: scale(1); } 50% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* ============================================================
   12. NO PRODUCTS STATE
   ============================================================ */
.no-products {
  text-align: center;
  padding: 3rem 1rem;
  grid-column: 1 / -1;
}
.no-products-icon { font-size: 3rem; margin-bottom: 0.75rem; opacity: 0.5; }
.no-products-text { font-family: var(--font-heading); font-size: 1.1rem; color: var(--text-medium); margin-bottom: 0.25rem; }
.no-products-sub { font-size: 0.85rem; color: var(--text-light); margin-bottom: 1rem; }

/* ============================================================
   13. SKELETON LOADING
   ============================================================ */
.skeleton-img {
  aspect-ratio: 4 / 5;
  background: var(--cream-dark);
  position: relative;
  overflow: hidden;
}
.skeleton-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(var(--cream-rgb), 0.6) 50%, transparent 100%);
  animation: shimmer 1.8s ease-in-out infinite;
}
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

.skeleton-text {
  height: 0.8rem;
  background: var(--cream-dark);
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

/* ============================================================
   14. FOOTER
   ============================================================ */
#main-footer {
  background: var(--burgundy-dark);
  color: var(--cream);
  padding: 2rem 1rem 0;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
}

.footer-brand { text-align: center; }
.footer-brand .footer-logo {
  width: 50px; height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.5rem;
  border: 2px solid rgba(var(--gold-rgb), 0.4);
}
.footer-brand .footer-tagline {
  font-size: 0.82rem;
  color: var(--gold-light);
  letter-spacing: 1px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.footer-heading::after {
  content: '';
  display: block;
  width: 25px; height: 2px;
  background: var(--gold);
  margin-top: 0.4rem;
}

.footer-links a, .footer-contact a {
  display: block;
  color: rgba(var(--cream-rgb), 0.7);
  font-size: 0.85rem;
  padding: 0.3rem 0;
  transition: var(--transition-fast);
}
.footer-links a:hover, .footer-contact a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(var(--cream-rgb), 0.10);
  text-align: center;
  padding: 1rem 0;
  font-size: 0.75rem;
  color: rgba(var(--cream-rgb), 0.4);
}

/* ============================================================
   15. TOAST
   ============================================================ */
#toast-container {
  position: fixed;
  bottom: 1rem; left: 1rem; right: 1rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.toast {
  background: var(--white);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--gold);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transform: translateY(120%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
  max-width: 100%;
  font-size: 0.85rem;
  color: var(--text-dark);
}
.toast.show { transform: translateY(0); }
.toast.success { border-left-color: #22C55E; }
.toast.error { border-left-color: #EF4444; }
.toast-icon { font-size: 1.1rem; flex-shrink: 0; }
.toast-message { flex: 1; font-weight: 500; }
.toast-close {
  background: none; border: none;
  color: var(--text-light);
  font-size: 1rem;
  padding: 0.25rem;
  border-radius: 50%;
}

/* ============================================================
   16. SCROLL ANIMATIONS
   ============================================================ */
.product-card.visible:nth-child(2n + 1) { transition-delay: 0s; }
.product-card.visible:nth-child(2n + 2) { transition-delay: 0.08s; }

/* ============================================================
   17. UTILITY
   ============================================================ */
::selection { background: rgba(var(--burgundy-rgb), 0.20); color: var(--burgundy-dark); }
:focus-visible { outline: 2px solid var(--burgundy-light); outline-offset: 2px; border-radius: 4px; }

/* Glow Pulse */
@keyframes glow-pulse {
  0% { box-shadow: 0 0 0 0 rgba(196, 165, 90, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(196, 165, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(196, 165, 90, 0); }
}
.glow-effect { animation: glow-pulse 1s cubic-bezier(0.16, 1, 0.3, 1); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: rgba(var(--burgundy-rgb), 0.2); border-radius: 3px; }
* { scrollbar-width: thin; scrollbar-color: rgba(var(--burgundy-rgb), 0.2) var(--cream); }

/* ============================================================
   18. RESPONSIVE — TABLET (min-width: 640px)
   ============================================================ */
@media (min-width: 640px) {
  :root { --header-height: 64px; }

  .logo-img { height: 42px; width: 42px; }
  .logo-text { font-size: 1.3rem; }
  .logo-tagline { font-size: 0.6rem; letter-spacing: 2px; }

  #hero-section { min-height: 55vh; padding: 3rem 2rem; }
  .hero-logo { width: 130px; height: 130px; }
  .hero-tagline { letter-spacing: 3px; }

  .section-header { margin: 3rem auto 2rem; }
  .section-title { font-size: 1.9rem; }

  .products-grid { gap: 1.25rem; padding: 1rem 1.5rem; }

  .product-info { padding: 1rem; }
  .product-name { font-size: 1rem; }
  .product-description { font-size: 0.8rem; }
  .product-price { font-size: 1.15rem; }
  .btn-add-cart { font-size: 0.8rem; padding: 0.5rem 1rem; }

  .footer-inner { flex-direction: row; flex-wrap: wrap; gap: 2rem; }
  .footer-brand { flex: 1 1 100%; text-align: center; }
  .footer-links, .footer-contact { flex: 1; }
}

/* ============================================================
   19. RESPONSIVE — DESKTOP (min-width: 1024px)
   ============================================================ */
@media (min-width: 1024px) {
  :root { --header-height: 72px; }

  #main-header { padding: 0 2rem; }
  .desktop-only { display: flex; }

  .logo-img { height: 50px; width: 50px; }
  .logo-text { font-size: 1.5rem; }
  .logo-tagline { font-size: 0.65rem; letter-spacing: 2.5px; }

  .category-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .category-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1.25rem;
    border: 1.5px solid var(--burgundy-light);
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--burgundy);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition);
  }
  .category-btn:hover, .category-btn.active {
    background: var(--burgundy);
    color: var(--white);
    border-color: var(--burgundy);
  }

  #hero-section { min-height: 65vh; padding: 4rem 2rem; }
  .hero-logo { width: 160px; height: 160px; }

  .section-header { margin: 4rem auto 3rem; }
  .section-title { font-size: 2.2rem; }

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

  .product-image-container { aspect-ratio: 1 / 1; }
  .product-info { padding: 1.5rem; }
  .product-name { font-size: 1.15rem; }
  .product-price { font-size: 1.35rem; }
  .product-price .currency { font-size: 0.85rem; }
  .btn-add-cart { font-size: 0.85rem; padding: 0.6rem 1.2rem; }

  .product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
  .product-card:active { transform: translateY(-4px); }

  /* Stagger for 3+ cols */
  .product-card.visible:nth-child(4n + 1) { transition-delay: 0s; }
  .product-card.visible:nth-child(4n + 2) { transition-delay: 0.08s; }
  .product-card.visible:nth-child(4n + 3) { transition-delay: 0.16s; }
  .product-card.visible:nth-child(4n + 4) { transition-delay: 0.24s; }

  .footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
  }
  .footer-brand { text-align: left; }

  #toast-container { bottom: 2rem; right: 2rem; left: auto; }
  .toast { max-width: 360px; transform: translateX(120%); }
  .toast.show { transform: translateX(0); }

  .filter-bar { padding: 0.5rem 2rem; }
  .filters-panel-inner { padding: 1.5rem 2rem; }
  .quick-filters-scroll { padding: 0 2rem; justify-content: center; }
}

/* ============================================================
   20. DELIVERY TYPE SELECTOR (Cart)
   ============================================================ */
.delivery-type-selector {
  display: flex;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.delivery-type-btn {
  flex: 1;
  padding: 0.6rem 0.5rem;
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-medium);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.delivery-type-btn.active {
  border-color: var(--burgundy);
  background: rgba(var(--burgundy-rgb), 0.06);
  color: var(--burgundy-dark);
}

.delivery-type-btn:hover:not(.active) {
  border-color: var(--gold-light);
}

#address-field-wrapper {
  overflow: hidden;
  max-height: 60px;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 1;
}

#address-field-wrapper.hidden {
  max-height: 0;
  opacity: 0;
  margin: 0;
}

/* ============================================================
   21. PRINT
   ============================================================ */
@media print {
  #main-header, #cart-toggle, #cart-overlay, #cart-drawer, #toast-container,
  .quick-filters, .filter-bar, .filters-panel, #floating-whatsapp { display: none !important; }
  body { background: white; color: black; padding-top: 0; }
  .product-card { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; opacity: 1; transform: none; }
}

/* ============================================================
   21. FLOATING WHATSAPP BUTTON
   ============================================================ */
#floating-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--white);
  padding: 0.35rem 0.35rem 0.35rem 1rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 20px rgba(107, 28, 58, 0.2);
  border: 1.5px solid var(--gold-light);
  color: var(--burgundy-dark);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  -webkit-tap-highlight-color: transparent;
}

#floating-whatsapp:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(107, 28, 58, 0.3);
  border-color: var(--gold);
}

#floating-whatsapp:active {
  transform: scale(0.95);
}

.whatsapp-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

.whatsapp-icon-wrapper {
  background: linear-gradient(135deg, var(--burgundy), var(--burgundy-dark));
  color: var(--gold);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
  animation: whatsappPulse 2s infinite;
}

@keyframes whatsappPulse {
  0% { box-shadow: 0 0 0 0 rgba(196, 165, 90, 0.6); }
  70% { box-shadow: 0 0 0 15px rgba(196, 165, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(196, 165, 90, 0); }
}

@media (max-width: 639px) {
  #floating-whatsapp {
    bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    right: 1rem;
  }
}
