/* ==========================================================================
   MA' NATURAL - DESIGN SYSTEM & LUXURY ARTISANAL BOTANICAL PRELOADER
   ========================================================================== */

:root {
  --primary-forest: #1b4d24;
  --primary-forest-dark: #0f3016;
  --primary-leaf: #5cdb54;
  --primary-leaf-glow: #73e659;
  --primary-herb: #3ba834;
  --accent-gold: #d4af37;
  --bg-soft: #f0f7ee;
  --bg-dark-top: #06150a;
  --bg-dark-mid: #0d2814;
  --bg-dark-bottom: #173e1e;
  --text-light: #f1f8f2;
  --text-dark: #1e2d21;
  --text-muted: #6b826f;
  --card-bg: rgba(255, 255, 255, 0.92);
  --card-shadow: 0 20px 40px rgba(15, 48, 22, 0.08);
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  width: 100%;
  height: 100%;
  font-family: var(--font-body);
  background-color: #f7faf6;
  color: var(--text-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   1. PRELOADER OVERLAY & 3D ARTISANAL BOTANICAL STAGE
   ========================================================================== */

#preloader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background: radial-gradient(circle at center, var(--bg-dark-bottom) 0%, var(--bg-dark-mid) 55%, var(--bg-dark-top) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 1.2s var(--transition-smooth), transform 1.2s var(--transition-smooth), filter 1.2s var(--transition-smooth);
  perspective: 1200px;
}

#preloader-container.preloader-hidden {
  opacity: 0;
  filter: blur(16px);
  transform: scale(1.08);
  pointer-events: none;
  display: none !important;
}

/* Textura Artesanal de Papel / Fibra Botánica */
.artisan-texture-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.08'/%3E%3C/svg%3E");
  opacity: 0.4;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 2;
}

/* Rayos de Sol Cálidos Filtro Follaje */
.sunbeam-container {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 140%;
  height: 140%;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.sunbeam {
  position: absolute;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(92, 219, 84, 0.05) 45%, transparent 70%);
  filter: blur(40px);
  transform-origin: top left;
}

.sunbeam-1 {
  top: -10%;
  left: 15%;
  width: 40vw;
  height: 120vh;
  transform: rotate(25deg);
  animation: sunbeamPulse 7s ease-in-out infinite alternate;
}

.sunbeam-2 {
  top: -15%;
  left: 55%;
  width: 35vw;
  height: 110vh;
  transform: rotate(18deg);
  animation: sunbeamPulse 9s ease-in-out 1.5s infinite alternate;
}

@keyframes sunbeamPulse {
  0% { opacity: 0.3; transform: scaleY(0.95) rotate(22deg); }
  100% { opacity: 0.75; transform: scaleY(1.05) rotate(26deg); }
}

/* 3D Canvas Background Particles */
#preloader-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

/* Ambient Radial Emerald & Sun Glow */
.ambient-glow {
  position: absolute;
  width: 750px;
  height: 750px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(92, 219, 84, 0.28) 0%, rgba(212, 175, 55, 0.12) 40%, rgba(27, 77, 36, 0.05) 65%, transparent 80%);
  filter: blur(55px);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 1.5s ease, transform 1.5s var(--transition-smooth);
  pointer-events: none;
  z-index: 3;
}

.ambient-glow.active {
  opacity: 1;
  transform: scale(1);
}

/* SVG Mask Defs Hidden */
.mask-svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Central 3D Stage */
.preloader-stage-3d {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
}

/* Seed Light */
.seed-light {
  position: absolute;
  top: 45%;
  left: 48%;
  width: 16px;
  height: 16px;
  background: var(--primary-leaf-glow);
  border-radius: 50%;
  box-shadow: 0 0 35px 12px var(--primary-leaf-glow), 0 0 70px 25px var(--accent-gold);
  opacity: 0;
  transform: scale(0);
  transition: all 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 6;
}

.seed-light.blooming {
  opacity: 1;
  transform: scale(2.2);
}

.seed-light.dispersed {
  opacity: 0;
  transform: scale(4.5);
}

/* Disco de Luz Suave Orgánica / Pergamino Botánico */
.logo-light-disc {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #ffffff 0%, #f4faf2 55%, #e1f0df 75%, transparent 100%);
  box-shadow: 0 0 80px 35px rgba(255, 255, 255, 0.45), 0 0 120px 50px rgba(92, 219, 84, 0.22);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 1.2s ease, transform 1.2s var(--transition-smooth);
  pointer-events: none;
  z-index: 4;
}

@media (min-width: 768px) {
  .logo-light-disc {
    width: 440px;
    height: 440px;
  }
}

.logo-light-disc.disc-active {
  opacity: 1;
  transform: scale(1);
}

/* Logo Transformation Wrapper */
.logo-transformation-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  z-index: 5;
}

@media (min-width: 768px) {
  .logo-transformation-wrapper {
    width: 440px;
    height: 440px;
  }
}

/* Logo PNG Layers */
.logo-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  backface-visibility: hidden;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

/* Layer Master: Pristine Complete Logo — revealed by a circular sweep
   (mask driven from JS, see runSweepReveal in app.js) then settles into place. */
.layer-master {
  opacity: 1;
  transform: scale(0.99);
  transition: transform 0.5s var(--transition-smooth);
  mask-image: conic-gradient(from -90deg at 50% 50%, white 0deg, transparent 0deg);
  -webkit-mask-image: conic-gradient(from -90deg at 50% 50%, white 0deg, transparent 0deg);
  z-index: 10;
}

.layer-master.master-active {
  transform: scale(1);
}

/* Sweep Tracer: a small point of light that traces the leading edge of the
   reveal, like a hand drawing the circle. */
.sweep-tracer {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, var(--accent-gold) 55%, transparent 75%);
  box-shadow: 0 0 12px 4px rgba(212, 175, 55, 0.85), 0 0 22px 8px rgba(115, 230, 89, 0.35);
  opacity: 0;
  pointer-events: none;
  z-index: 13;
  transition: opacity 0.3s ease;
}

.sweep-tracer.tracer-active {
  opacity: 1;
}

/* Soft Botanical Glow Aura */
.logo-glow-aura {
  position: absolute;
  width: 125%;
  height: 125%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(115, 230, 89, 0.35) 0%, rgba(212, 175, 55, 0.18) 50%, transparent 70%);
  filter: blur(30px);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 1.2s ease, transform 1.2s var(--transition-smooth);
  pointer-events: none;
  z-index: 12;
}

.logo-glow-aura.aura-active {
  opacity: 1;
  transform: scale(1.05);
}

/* Reveal Pulse: a single soft ring of light that ripples outward the instant
   the logo resolves into focus — the one restrained premium accent. */
.reveal-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  border: 1.5px solid rgba(212, 175, 55, 0.9);
  box-shadow: 0 0 20px 2px rgba(115, 230, 89, 0.35);
  opacity: 0;
  pointer-events: none;
  z-index: 11;
}

.reveal-pulse.pulse-active {
  animation: revealPulse 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes revealPulse {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
  25% { opacity: 0.9; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.7); }
}

/* ==========================================================================
   2. MAIN CATALOG STYLES
   ========================================================================== */

#main-catalog {
  opacity: 1;
  transition: opacity 1s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(247, 250, 246, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(27, 77, 36, 0.08);
  padding: 12px 24px;
}

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

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--primary-forest);
}

.navbar-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 50%;
  background: #ffffff;
  padding: 2px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.navbar-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-forest);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-replay-anim {
  background: transparent;
  border: 1px solid rgba(27, 77, 36, 0.2);
  color: var(--primary-forest);
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.btn-replay-anim:hover {
  background: var(--primary-forest);
  color: #ffffff;
}

.btn-whatsapp-nav {
  background: #25d366;
  color: #ffffff;
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
}

.btn-whatsapp-nav:hover {
  background: #1eb956;
  transform: translateY(-2deg);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

.btn-instagram-nav {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(220, 39, 67, 0.35);
  transition: all 0.3s ease;
}

.btn-instagram-nav:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 39, 67, 0.5);
}

.hero-section {
  position: relative;
  padding: 70px 24px 50px;
  background: linear-gradient(180deg, rgba(27, 77, 36, 0.05) 0%, rgba(247, 250, 246, 1) 100%);
  text-align: center;
}

.hero-container {
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(92, 219, 84, 0.15);
  color: var(--primary-forest);
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  line-height: 1.2;
  color: var(--primary-forest-dark);
  margin-bottom: 18px;
  font-weight: 700;
}

@media (min-width: 768px) {
  .hero-title { font-size: 3.6rem; }
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 30px;
}

.hero-highlights {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-forest);
  background: #ffffff;
  padding: 10px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  border: 1px solid rgba(27, 77, 36, 0.08);
}

.catalog-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px 80px;
  width: 100%;
  flex: 1;
  box-sizing: border-box;
}

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  background: #ffffff;
  border: 1px solid rgba(27, 77, 36, 0.12);
  color: var(--text-muted);
  padding: 10px 22px;
  border-radius: 99px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.filter-btn.active {
  background: var(--primary-forest);
  color: #ffffff;
  border-color: var(--primary-forest);
  box-shadow: 0 4px 14px rgba(27, 77, 36, 0.25);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (min-width: 640px) { .products-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (min-width: 1024px) { .products-grid { grid-template-columns: repeat(3, 1fr); gap: 30px; } }
@media (min-width: 1280px) { .products-grid { grid-template-columns: repeat(4, 1fr); gap: 30px; } }

.product-card {
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(27, 77, 36, 0.08);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s var(--transition-smooth);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(15, 48, 22, 0.15);
  border-color: rgba(92, 219, 84, 0.4);
}

.product-image-wrap {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background: #edf3ec;
  overflow: hidden;
}

.product-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--transition-smooth);
}

.product-card:hover .product-img { transform: scale(1.06); }

.product-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  color: var(--primary-forest);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
  text-transform: uppercase;
}

.product-info {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-leaf);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.product-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-forest-dark);
  margin-bottom: 10px;
}

.product-price {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-forest);
  margin-bottom: 10px;
}

.product-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  flex: 1;
}

.btn-view-details {
  background: var(--primary-forest);
  color: #ffffff;
  border: none;
  padding: 9px 18px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  width: 100%;
  justify-content: center;
}

.btn-view-details:hover {
  background: var(--primary-forest-dark);
  box-shadow: 0 4px 14px rgba(27, 77, 36, 0.3);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 9999;
  background: rgba(10, 24, 13, 0.75);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--transition-smooth);
}

.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal-container {
  background: #ffffff;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  max-height: 90dvh;
  border-radius: 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.4s var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .modal-container { flex-direction: row; overflow: hidden; }
}

.modal-overlay.active .modal-container { transform: translateY(0) scale(1); }

.modal-close-btn {
  position: sticky;
  top: 14px;
  right: 14px;
  z-index: 100;
  width: 38px;
  height: 38px;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-left: auto;
  margin-right: 14px;
  margin-top: 14px;
  margin-bottom: -52px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: all 0.25s ease;
  flex-shrink: 0;
}
.modal-close-btn:hover {
  background: rgba(0,0,0,0.7);
  transform: scale(1.08);
}

@media (min-width: 768px) {
  .modal-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    margin: 0;
  }
}

.modal-media {
  width: 100%;
  background: #edf3ec;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

@media (min-width: 768px) { .modal-media { width: 48%; min-height: 480px; } }

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

.modal-content {
  padding: 30px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (min-width: 768px) { .modal-content { width: 52%; padding: 40px 36px; overflow-y: auto; } }

.modal-tag {
  color: var(--primary-leaf);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--primary-forest-dark);
  margin-bottom: 16px;
}

.modal-price {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-forest);
  margin-top: -8px;
  margin-bottom: 18px;
}

.modal-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.modal-highlights-list {
  list-style: none;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-highlights-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.modal-highlights-list li svg { color: var(--primary-leaf); flex-shrink: 0; margin-top: 3px; }

.btn-whatsapp-order {
  background: #25d366;
  color: #ffffff;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 99px;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  transition: all 0.3s ease;
  margin-top: auto;
}

.btn-whatsapp-order:hover {
  background: #1eb956;
  transform: translateY(-2deg);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
}

.footer {
  background: var(--primary-forest-dark);
  color: rgba(241, 248, 242, 0.8);
  padding: 50px 24px 30px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-logo-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 50%;
  background: #ffffff;
  padding: 3px;
}

.footer-text { font-size: 0.9rem; max-width: 500px; line-height: 1.6; }
.footer-copyright { font-size: 0.8rem; color: rgba(241, 248, 242, 0.4); margin-top: 10px; }

.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(241, 248, 242, 0.75);
  padding: 8px 18px;
  border-radius: 99px;
  border: 1px solid rgba(241, 248, 242, 0.15);
  background: rgba(255,255,255,0.05);
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
}

.footer-social-link:first-child {
  background: linear-gradient(135deg, rgba(240,148,51,0.25), rgba(188,24,136,0.25));
  border-color: rgba(220,39,67,0.3);
  color: #f5c5d0;
}

.footer-social-link:first-child:hover {
  background: linear-gradient(135deg, rgba(240,148,51,0.5), rgba(188,24,136,0.5));
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-social-wa {
  background: rgba(37, 211, 102, 0.1) !important;
  border-color: rgba(37, 211, 102, 0.25) !important;
  color: #b2f0c8 !important;
}

.footer-social-wa:hover {
  background: rgba(37, 211, 102, 0.25) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* ===== SEARCH BAR ===== */
.search-wrap {
  max-width: 680px;
  margin: 0 auto 24px;
  padding: 0 16px;
}
.search-box {
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 16px;
  color: var(--primary-forest);
  pointer-events: none;
  opacity: 0.6;
}
.search-input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border: 1.5px solid rgba(27,77,36,0.18);
  border-radius: 99px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(27,77,36,0.08);
  outline: none;
}
.search-input:focus {
  border-color: var(--primary-herb);
  background: #ffffff;
  box-shadow: 0 4px 24px rgba(59,168,52,0.18);
}
.search-input::placeholder { color: var(--text-muted); }
.search-highlight { background: rgba(212,175,55,0.35); border-radius: 3px; padding: 0 2px; }
.search-empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 60px 20px;
  color: var(--text-muted);
  text-align: center;
}
.search-empty-state svg { opacity: 0.3; }
.search-empty-state p { font-size: 1.05rem; font-weight: 600; }
.search-empty-state small { font-size: 0.85rem; }

/* ===== PRODUCT CARD FOOTER & LUXURY CTA ===== */
.product-card-footer {
  display: flex;
  align-items: center;
  margin-top: 14px;
}
.btn-view-details {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--primary-forest);
  color: #ffffff;
  border: none;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(27,77,36,0.22);
  transition: all 0.25s ease;
}
.btn-view-details:hover {
  background: var(--primary-forest-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27,77,36,0.35);
}

/* ===== QUICK ADD BUTTON ON CARD ===== */
.btn-quick-add {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-forest);
  color: #ffffff;
  border: 2px solid #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1 !important;
  transform: scale(1) !important;
  box-shadow: 0 4px 14px rgba(27,77,36,0.35);
  transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
  z-index: 5;
}
.btn-quick-add:hover, .btn-quick-add:active {
  background: #25d366;
  transform: scale(1.12) !important;
  box-shadow: 0 6px 20px rgba(37,211,102,0.45);
}

/* ===== NAVBAR CART BUTTON & BADGE ===== */
.btn-cart-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 99px;
  background: rgba(27,77,36,0.08);
  color: var(--primary-forest-dark);
  font-weight: 700;
  font-size: 0.85rem;
  font-family: inherit;
  border: 1.5px solid rgba(27,77,36,0.18);
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}
.btn-cart-nav:hover {
  background: var(--primary-forest);
  color: #fff;
  border-color: var(--primary-forest);
}
.nav-cart-badge {
  background: #dc2743;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 99px;
  margin-left: 2px;
  line-height: 1;
}

/* ===== FLOATING TOAST NOTIFICATION ===== */
.cart-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--primary-forest-dark);
  color: #fff;
  padding: 12px 22px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  box-shadow: 0 12px 36px rgba(0,0,0,0.3);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(255,255,255,0.18);
  max-width: calc(100vw - 32px);
}
.cart-toast span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.cart-toast.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: all;
}
.cart-toast svg { color: #5cdb54; flex-shrink: 0; }
.cart-toast button {
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  padding: 5px 14px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.cart-toast button:hover { background: #5cdb54; color: var(--primary-forest-dark); }
  border-color: var(--primary-forest);
}
.product-card.cart-added {
  animation: cartAddPulse 0.6s ease;
}
@keyframes cartAddPulse {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.025); box-shadow: 0 8px 30px rgba(59,168,52,0.35); }
  100% { transform: scale(1); }
}

/* ===== CART FAB ===== */
.cart-fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--primary-forest);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(27,77,36,0.45);
  transition: all 0.3s ease;
}
.cart-fab:hover {
  background: var(--primary-herb);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 32px rgba(59,168,52,0.5);
}
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  border-radius: 99px;
  background: #dc2743;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid #fff;
  animation: badgePop 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes badgePop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

/* ===== CART OVERLAY ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 950;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cart-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ===== CART DRAWER ===== */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: min(420px, 95vw);
  height: 100vh;
  height: 100dvh;
  max-height: -webkit-fill-available;
  background: #fff;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,0.18);
  transition: right 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.cart-drawer.open { right: 0; }
.cart-drawer-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  background: var(--primary-forest-dark);
  color: #fff;
}
.cart-drawer-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
}
.cart-close-btn {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.cart-close-btn:hover { background: rgba(255,255,255,0.3); }
.cart-empty {
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 24px;
  color: var(--text-muted);
  text-align: center;
}
.cart-empty svg { opacity: 0.2; }
.cart-empty p { font-weight: 600; font-size: 1rem; }
.cart-empty small { font-size: 0.85rem; }
.cart-items-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid rgba(27,77,36,0.08);
}
.cart-item-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-price {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-forest);
  margin-bottom: 8px;
}
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}
.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(27,77,36,0.2);
  background: #fff;
  color: var(--primary-forest);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}
.qty-btn:hover { background: var(--primary-forest); color: #fff; border-color: var(--primary-forest); }
.qty-num { font-size: 0.9rem; font-weight: 700; min-width: 20px; text-align: center; color: var(--text-dark); }
.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 4px;
  border-radius: 50%;
  transition: all 0.2s;
  flex-shrink: 0;
}
.cart-item-remove:hover { color: #dc2743; background: rgba(220,39,67,0.08); }
.cart-footer {
  flex-shrink: 0;
  padding: 14px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(0,0,0,0.07);
  background: #fff;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.04);
}
.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid rgba(27,77,36,0.1);
}
.cart-total-row span:first-child {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}
.cart-total-row span:last-child {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-forest);
}
.cart-name-group, .modal-name-group {
  margin-bottom: 12px;
}
.cart-name-label, .modal-name-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-forest-dark);
  margin-bottom: 6px;
}
.cart-name-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #d0e0d2;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  background: #fdfdfd;
  color: var(--text-dark);
  transition: all 0.2s ease;
}
.cart-name-input:focus {
  border-color: var(--primary-forest);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(27,77,36,0.12);
}
.cart-name-error {
  color: #dc2743;
  font-size: 0.8rem;
  margin-top: 4px;
  display: block;
}
.cart-footer-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 14px;
}
.cart-footer-note svg { flex-shrink: 0; margin-top: 2px; }
.btn-send-order {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(37,211,102,0.35);
  transition: all 0.3s ease;
}
.btn-send-order:hover {
  background: #1eb956;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37,211,102,0.45);
}

/* ===== MODAL CART BUTTON ===== */
.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.btn-modal-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  background: var(--primary-forest);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-modal-cart:hover { background: var(--primary-herb); transform: translateY(-1px); }

/* ===== REVIEWS SECTION ===== */
.reviews-section {
  padding: 80px 24px;
  background: linear-gradient(180deg, #f7faf6 0%, rgba(92,219,84,0.05) 100%);
}
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212,175,55,0.15);
  color: #a88520;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.25;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.reviews-carousel-wrap {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
}

.reviews-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 12px 4px 24px;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}
.reviews-grid::-webkit-scrollbar {
  height: 6px;
}
.reviews-grid::-webkit-scrollbar-track {
  background: rgba(27,77,36,0.06);
  border-radius: 99px;
}
.reviews-grid::-webkit-scrollbar-thumb {
  background: var(--primary-leaf);
  border-radius: 99px;
}

.review-card {
  flex: 0 0 min(340px, 85vw);
  scroll-snap-align: start;
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(27,77,36,0.07);
  border: 1px solid rgba(27,77,36,0.07);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.carousel-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid rgba(27,77,36,0.15);
  color: var(--primary-forest);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.25s ease;
  z-index: 10;
  flex-shrink: 0;
}
.carousel-nav-btn:hover {
  background: var(--primary-forest);
  color: #ffffff;
  border-color: var(--primary-forest);
  transform: scale(1.08);
}
.carousel-nav-btn.prev {
  margin-right: -14px;
}
.carousel-nav-btn.next {
  margin-left: -14px;
}
@media (max-width: 600px) {
  .carousel-nav-btn {
    display: none;
  }
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(27,77,36,0.12);
}
.review-header { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-herb), var(--primary-forest));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.review-name { font-weight: 700; font-size: 0.9rem; color: var(--text-dark); }
.review-location { font-size: 0.78rem; color: var(--text-muted); }
.review-stars { color: #d4af37; font-size: 1.1rem; letter-spacing: 2px; }
.star { display: inline-block; }
.review-product-tag {
  display: inline-block;
  background: rgba(92,219,84,0.12);
  color: var(--primary-forest);
  border-radius: 99px;
  padding: 3px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  align-self: flex-start;
}
.review-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  font-style: italic;
  flex: 1;
}

/* ===== SHIPPING SECTION ===== */
.shipping-section {
  padding: 80px 24px;
  background: var(--primary-forest-dark);
  color: rgba(241,248,242,0.9);
}
.shipping-section .section-badge {
  background: rgba(255,255,255,0.1);
  color: rgba(241,248,242,0.7);
}
.shipping-section .section-title { color: rgba(241,248,242,0.95); }
.shipping-section .section-subtitle { color: rgba(241,248,242,0.6); }
.shipping-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto 28px;
}
.shipping-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  backdrop-filter: blur(8px);
  transition: background 0.25s ease;
}
.shipping-card:hover { background: rgba(255,255,255,0.1); }
.shipping-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  color: rgba(241,248,242,0.85);
}
.shipping-card h3 {
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  color: rgba(241,248,242,0.95);
}
.shipping-zone-desc { font-size: 0.85rem; color: rgba(241,248,242,0.6); line-height: 1.5; }
.shipping-time { font-size: 0.85rem; color: rgba(92,219,84,0.9); margin-top: 4px; }
.shipping-time strong { color: #73e659; }
.shipping-card-cta { border-color: rgba(37,211,102,0.25); background: rgba(37,211,102,0.07); }
.btn-shipping-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #fff;
  padding: 10px 20px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  margin-top: 4px;
  align-self: flex-start;
}
.btn-shipping-wa:hover { background: #1eb956; transform: translateY(-1px); }
.shipping-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 700px;
  margin: 0 auto;
  font-size: 0.82rem;
  color: rgba(241,248,242,0.4);
  line-height: 1.5;
  text-align: center;
  justify-content: center;
}

/* ===== PWA INSTALL BANNER ===== */
.pwa-banner {
  position: fixed;
  bottom: -120px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 800;
  width: min(480px, calc(100vw - 32px));
  background: #fff;
  border-radius: 20px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
  border: 1px solid rgba(27,77,36,0.1);
  transition: bottom 0.45s cubic-bezier(0.34,1.56,0.64,1);
}
.pwa-banner.visible { bottom: 24px; }
.pwa-banner-content { display: flex; align-items: center; gap: 12px; }
.pwa-banner-icon { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.pwa-banner-content strong { font-size: 0.95rem; color: var(--text-dark); display: block; }
.pwa-banner-content p { font-size: 0.78rem; color: var(--text-muted); margin: 0; }
.pwa-banner-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.pwa-install-btn {
  background: var(--primary-forest);
  color: #fff;
  border: none;
  padding: 9px 18px;
  border-radius: 99px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.pwa-install-btn:hover { background: var(--primary-herb); }
.pwa-dismiss-btn {
  background: rgba(0,0,0,0.06);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background 0.2s;
}
.pwa-dismiss-btn:hover { background: rgba(0,0,0,0.12); }

/* ===== RESPONSIVE ===== */
@media (max-width: 639px) {
  .catalog-section {
    padding: 16px 12px 60px;
  }
  .product-card {
    border-radius: 16px;
  }
  .product-image-wrap {
    padding-top: 90%;
  }
  .product-tag {
    top: 8px;
    left: 8px;
    font-size: 0.65rem;
    padding: 3px 8px;
  }
  .product-info {
    padding: 10px 12px 12px;
  }
  .product-category {
    font-size: 0.68rem;
    margin-bottom: 4px;
  }
  .product-title {
    font-size: 0.92rem;
    line-height: 1.25;
    margin-bottom: 6px;
  }
  .product-desc {
    font-size: 0.78rem;
    line-height: 1.35;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .btn-view-details {
    padding: 7px 10px;
    font-size: 0.78rem;
    border-radius: 8px;
  }
  .btn-quick-add {
    width: 32px;
    height: 32px;
    top: 8px;
    right: 8px;
  }
  .nav-cart-text {
    display: none;
  }
  .btn-cart-nav {
    padding: 7px 9px;
  }
}

@media (max-width: 600px) {
  .navbar {
    padding: 10px 12px;
  }
  .navbar-container {
    gap: 8px;
  }
  .navbar-brand {
    gap: 6px;
    min-width: 0;
  }
  .navbar-logo-img {
    width: 36px;
    height: 36px;
  }
  .navbar-title {
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .navbar-actions {
    gap: 6px;
    flex-shrink: 0;
  }
  .btn-cart-nav, .btn-whatsapp-nav, .btn-instagram-nav {
    padding: 7px 10px;
    font-size: 0.78rem;
    gap: 5px;
  }
  .nav-ig-text {
    display: none;
  }
  .btn-instagram-nav {
    padding: 7px 8px;
  }
  .cart-fab { bottom: 20px; right: 20px; width: 52px; height: 52px; }
  .shipping-grid { grid-template-columns: 1fr; }
  .navbar-actions .btn-replay-anim { display: none; }
}

@media (max-width: 380px) {
  .navbar {
    padding: 8px 10px;
  }
  .navbar-title {
    font-size: 0.95rem;
  }
  .nav-wa-text {
    display: none;
  }
  .btn-whatsapp-nav {
    padding: 7px 9px;
  }
}

/* ===== REVIEW FORM SECTION ===== */
.review-form-section {
  padding: 80px 24px;
  background: #f7faf6;
}
.review-form-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: flex-start;
}
@media (max-width: 768px) {
  .review-form-wrap { grid-template-columns: 1fr; }
}

/* FORM */
.review-form {
  background: #fff;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(27,77,36,0.08);
  border: 1px solid rgba(27,77,36,0.07);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}
.required { color: #dc2743; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid rgba(27,77,36,0.15);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--bg-soft);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  resize: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-herb);
  box-shadow: 0 0 0 3px rgba(59,168,52,0.12);
  background: #fff;
}
.char-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
}

/* STAR RATING INPUT */
.star-rating {
  display: flex;
  gap: 4px;
}
.star-input {
  font-size: 2rem;
  color: #d4d4d4;
  cursor: pointer;
  transition: color 0.15s, transform 0.1s;
  line-height: 1;
  user-select: none;
}
.star-input.hovered,
.star-input.selected {
  color: #d4af37;
  transform: scale(1.15);
}

/* SUBMIT BUTTON */
.btn-submit-review {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--primary-forest);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(27,77,36,0.25);
  margin-top: 4px;
}
.btn-submit-review:hover:not(:disabled) {
  background: var(--primary-herb);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27,77,36,0.35);
}
.btn-submit-review:disabled { opacity: 0.65; cursor: not-allowed; }

/* FEEDBACK MESSAGES */
.rf-feedback {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  animation: fadeInDown 0.3s ease;
}
.rf-feedback-success { background: rgba(37,211,102,0.12); color: #0d6b2f; border: 1px solid rgba(37,211,102,0.3); }
.rf-feedback-error   { background: rgba(220,39,67,0.1); color: #a0112a; border: 1px solid rgba(220,39,67,0.25); }
@keyframes fadeInDown { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }

/* USER REVIEWS FEED */
.user-reviews-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 620px;
  overflow-y: auto;
  padding-right: 4px;
}
.user-reviews-feed::-webkit-scrollbar { width: 5px; }
.user-reviews-feed::-webkit-scrollbar-track { background: transparent; }
.user-reviews-feed::-webkit-scrollbar-thumb { background: rgba(27,77,36,0.2); border-radius: 99px; }
.user-review-card {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(27,77,36,0.06);
  border: 1px solid rgba(27,77,36,0.07);
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fadeInUp 0.4s ease;
}
@keyframes fadeInUp { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
.feed-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 0;
  color: var(--text-muted);
}
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(27,77,36,0.15);
  border-top-color: var(--primary-herb);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.feed-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 30px 0;
  font-style: italic;
}

/* ===== FEED PANEL — ESTADOS PREMIUM ===== */

/* Estado vacío */
.feed-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 24px;
  text-align: center;
}
.feed-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(27,77,36,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-forest);
  opacity: 0.5;
}
.feed-empty-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  opacity: 0.6;
}
.feed-empty-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 260px;
  line-height: 1.5;
}

/* Error state */
.feed-error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: rgba(220,39,67,0.07);
  border: 1px solid rgba(220,39,67,0.15);
  border-radius: 12px;
  font-size: 0.85rem;
  color: #a0112a;
}

/* Skeleton loader */
.skeleton-card {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  border: 1px solid rgba(27,77,36,0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.skeleton-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.skeleton-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(90deg, #ececec 25%, #f5f5f5 50%, #ececec 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  flex-shrink: 0;
}
.skeleton-lines { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.skeleton-line {
  height: 10px;
  border-radius: 99px;
  background: linear-gradient(90deg, #ececec 25%, #f5f5f5 50%, #ececec 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
.skeleton-line-lg    { width: 65%; }
.skeleton-line-sm    { width: 40%; }
.skeleton-line-stars { width: 80px; height: 12px; }
.skeleton-line-md    { width: 45%; height: 10px; }
.skeleton-line-full  { width: 100%; height: 10px; }
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Estrellas en feed */
.review-stars-row { display: flex; gap: 2px; font-size: 1rem; }
.star-filled { color: #d4af37; }
.star-empty  { color: #d4d4d4; }

/* Review location con ícono */
.review-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Botón spinner inline */
.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}

/* Ocultar el feed-loading del HTML (ya no lo necesitamos) */
.feed-loading { display: none !important; }

/* ===== MOBILE HARDWARE ACCELERATION & PERFORMANCE OPTIMIZATIONS ===== */
@media (max-width: 768px) {
  html, body {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }
  .product-card, .review-card, .shipping-card {
    will-change: transform;
    transform: translateZ(0);
  }
  .artisan-texture-overlay, .sunbeam-container, .ambient-glow {
    display: none !important;
  }
  .modal-overlay, .cart-overlay {
    backdrop-filter: none !important;
    background: rgba(0, 0, 0, 0.7) !important;
  }
}
