/* ============================================
   DELICIAS DE MI TIERRA — STYLES
   Palette: Terracotta, Warm Yellow, Cream White
   ============================================ */

/* ---------- CSS VARIABLES ---------- */
:root {
  --terracotta: #E25E30;
  /* Brighter, more vibrant orange/terracotta */
  --terracotta-dark: #C64920;
  --terracotta-light: #F08D6A;
  --warm-yellow: #E8C468;
  --warm-yellow-light: #F2D98A;
  --cream: #FFF8F0;
  --cream-dark: #F5EDE0;
  --white: #FFFFFF;
  --text-dark: #3A2A1D;
  --text-medium: #6B5544;
  --text-light: #9A8575;
  --gold: #C9A84C;
  --shadow-sm: 0 2px 8px rgba(58, 42, 29, 0.08);
  --shadow-md: 0 4px 20px rgba(58, 42, 29, 0.12);
  --shadow-lg: 0 8px 40px rgba(58, 42, 29, 0.16);
  --shadow-xl: 0 16px 60px rgba(58, 42, 29, 0.20);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ---------- PROMO BAR ---------- */
.promo-bar {
  background: var(--warm-yellow);
  color: var(--text-dark);
  text-align: center;
  padding: 8px 10px;
  font-size: 0.85rem;
  font-weight: 700;
  position: relative;
  z-index: 1001;
}

.promo-bar strong {
  color: var(--terracotta-dark);
}

/* ---------- HEADER ---------- */
#main-header {
  position: fixed;
  top: 36px;
  /* Offset for promo bar */
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 248, 240, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-bottom: 1px solid rgba(226, 94, 48, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
}

#main-header.scrolled {
  background: rgba(255, 248, 240, 0.98);
  padding: 6px 0;
  box-shadow: 0 4px 30px rgba(58, 42, 29, 0.08);
  border-bottom: 1px solid rgba(226, 94, 48, 0.2);
}

.header-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Espacia Nav de Acciones */
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  /* Espacio entre carrito e idioma */
}

/* Nav */
.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  /* Más grande y llamativo */
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: capitalize;
  color: var(--text-dark);
  position: relative;
  padding: 10px 22px;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-links a::after {
  display: none;
}

.nav-links a:hover {
  background: rgba(226, 94, 48, 0.08);
  color: var(--terracotta);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 15px rgba(226, 94, 48, 0.1);
}

.nav-links a.active {
  background: var(--terracotta);
  color: white;
}

/* Logo */
.logo-wrapper {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.logo-wrapper img {
  height: 60px;
  width: auto;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.logo-wrapper img:hover {
  transform: scale(1.05);
}

/* Cart */
.cart-btn {
  background: var(--terracotta);
  border: none;
  cursor: pointer;
  color: white;
  position: relative;
  padding: 10px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(226, 94, 48, 0.3);
}

.cart-btn:hover {
  transform: scale(1.1) rotate(-5deg);
  background: var(--terracotta-dark);
  box-shadow: 0 6px 20px rgba(226, 94, 48, 0.4);
}

.cart-btn svg {
  width: 22px;
  height: 22px;
}

.cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--warm-yellow);
  color: var(--text-dark);
  font-size: 0.7rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--terracotta);
  transform: scale(0);
  transition: all 0.3s ease;
}

.cart-count.visible {
  transform: scale(1);
}

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* ---------- HERO ---------- */
.hero-section {
  position: relative;
  min-height: calc(100vh - 300px);
  /* Espacio garantizado para el banner naranja */
  padding-top: 25px;
  /* Mínimo necesario */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  /* El marquee arriba, el resto fluye */
  overflow: hidden;
  background: linear-gradient(135deg, #FFF8F0 0%, #F5EDE0 30%, #E8D5C4 60%, #D4C0A8 100%);
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video-fallback {
  width: 100%;
  height: 100%;
  background: transparent;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

/* ---------- HERO MARQUEE BANNER ---------- */
.hero-marquee-container {
  width: 100vw;
  height: 350px;
  /* Reducido para quitar espacio abajo */
  padding: 20px 0 0 0;
  /* Espacio solo arriba */
  margin-top: -10px;
  margin-bottom: 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 45px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
}

.hero-marquee-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(90deg, var(--cream) 0%, transparent 15%, transparent 85%, var(--cream) 100%);
  z-index: 3;
}

.hero-marquee-track {
  display: flex;
  gap: 0;
  height: 100%;
  width: max-content;
  flex-shrink: 0;
  animation: scrollMarqueeRight 45s linear infinite;
  /* Movimiento hacia la derecha en 45s */
}

.hero-marquee-track img {
  height: 320px;
  width: 380px;
  /* Ancho un poco más pequeño, pero fijo e igual en todas */
  object-fit: cover;
  /* Fuerza a que cada imagen llene esta caja exacta 380x320, cortando el sobrante externo, lo que las hace ver de igual tamaño */
  background-color: transparent;
  object-position: center center;
  border-radius: 20px;
  /* Redondeo conservado */
  flex-shrink: 0;
  box-shadow: none;
  margin: 0 10px;
}

/* Se eliminan overrides de position porque ya no se recorta la imagen */

@keyframes scrollMarqueeRight {
  0% {
    transform: translateX(-50%);
  }

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

@keyframes heroGlow {
  0% {
    opacity: 0.6;
  }

  100% {
    opacity: 1;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255, 248, 240, 0.3) 0%, transparent 40%, transparent 60%, rgba(255, 248, 240, 0.5) 100%);
}

/* Decorative pattern overlay */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C2714F' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  /* Ocupa todo el espacio restante */
  display: flex;
  align-items: center;
  /* Centra verticalmente en ese espacio */
  justify-content: center;
  width: 100%;
  max-width: 1350px;
  padding: 20px;
  animation: heroFadeIn 1.2s ease-out;
}

.hero-content--integrated {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  text-align: left;
  margin-top: -35px;
  /* Ajuste para compensar el banner más grande */
}

.hero-logo-image {
  max-height: 320px;
  /* Tamaño optimizado para impacto y balance */
  width: auto;
  max-width: 420px;
  margin-top: 0;
  /* Eliminamos el margen individual para que el centro sea real */
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 30px rgba(58, 42, 29, 0.15));
  animation: logoFloat 5s ease-in-out infinite alternate;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s;
}

.hero-logo-image:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 16px 40px rgba(58, 42, 29, 0.25));
}

.hero-text-column {
  max-width: 550px;
}

.hero-logo-wrapper {
  margin-bottom: 32px;
  display: flex;
  justify-content: center;
}

.hero-logo {
  width: 280px;
  height: auto;
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 8px 30px rgba(58, 42, 29, 0.15));
  transition: var(--transition);
  animation: logoFloat 4s ease-in-out infinite alternate;
}

.hero-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 12px 40px rgba(58, 42, 29, 0.25));
}

@keyframes logoFloat {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-10px);
  }
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  /* Ligeramente más pequeño para ahorrar espacio */
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 8px;
}

.hero-highlight {
  color: var(--terracotta);
  font-style: italic;
  position: relative;
}

.hero-highlight::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--terracotta), var(--warm-yellow));
  border-radius: 2px;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 15px;
  /* Reducción de margen */
}

@media (max-width: 968px) {
  .hero-section {
    padding-top: 60px;
    min-height: auto;
  }

  .hero-content--integrated {
    flex-direction: column;
    text-align: center;
    gap: 30px;
    padding: 40px 20px;
  }

  .hero-logo-image {
    max-height: 220px;
    max-width: 280px;
    margin-top: 0;
  }

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

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
  }

  .trust-banner {
    padding: 40px 20px;
  }

  .trust-text {
    font-size: 1.2rem;
  }

  .trust-highlight {
    font-size: 1.8rem;
  }

  .trust-features {
    gap: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- LANGUAGE SWITCHER STYLES ---------- */
.lang-switcher {
  position: relative;
  margin-right: 10px;
}

.lang-btn {
  background: rgba(226, 94, 48, 0.08);
  border: 1px solid rgba(226, 94, 48, 0.2);
  color: var(--text-dark);
  padding: 8px 12px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.lang-btn:hover {
  background: rgba(226, 94, 48, 0.15);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: white;
  min-width: 140px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.lang-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  width: 100%;
  padding: 10px 16px;
  text-align: left;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-medium);
  transition: all 0.2s ease;
}

.lang-option:hover {
  background: var(--cream);
  color: var(--terracotta);
}

.hero-cta {
  display: inline-block;
  padding: 16px 40px;
  background: linear-gradient(135deg, var(--terracotta), var(--terracotta-dark));
  color: white;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(194, 113, 79, 0.35);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(194, 113, 79, 0.45);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: -25px;
  /* Pushed down to point into banner */
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
}

.scroll-arrow {
  width: 28px;
  height: 28px;
  border-right: 3px solid #FFFFFF;
  border-bottom: 3px solid #FFFFFF;
  transform: rotate(45deg);
  animation: scrollBounce 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

@keyframes scrollBounce {
  0% {
    transform: rotate(45deg) translate(-4px, -4px);
    opacity: 0.3;
    border-color: #FFFFFF;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
  }

  50% {
    transform: rotate(45deg) translate(6px, 6px);
    opacity: 1;
    border-color: var(--warm-yellow-light);
    filter: drop-shadow(0 0 25px rgba(242, 217, 138, 1));
  }

  100% {
    transform: rotate(45deg) translate(-4px, -4px);
    opacity: 0.3;
    border-color: #FFFFFF;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
  }
}

/* ---------- TRUST BANNER ---------- */
.trust-banner {
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--terracotta-dark) 100%);
  padding: 12px 0;
  min-height: auto;
  position: relative;
  overflow: hidden;
}

.trust-banner::before {
  content: '';
  position: absolute;
  inset: -100px;
  /* Expand out to allow movement */
  opacity: 0.03;
  background-size: 16px;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 0L40 20L20 40L0 20Z' fill='%23FFF' fill-opacity='0.7' fill-rule='evenodd'/%3E%3C/svg%3E");
  animation: shineBannerCircles 8s ease-in-out infinite alternate;
}

@keyframes shineBannerCircles {
  0% {
    opacity: 0.02;
    transform: translateY(0);
  }

  100% {
    opacity: 0.08;
    transform: translateY(-20px) scale(1.05);
  }
}

.trust-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  justify-content: center;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.trust-icon {
  color: var(--warm-yellow);
  flex-shrink: 0;
  animation: bounceGlowIcon 2.5s infinite ease-in-out;
}

@keyframes bounceGlowIcon {

  0%,
  100% {
    transform: scale(1) translateY(0);
    filter: drop-shadow(0 0 10px rgba(232, 196, 104, 0.2));
    color: var(--warm-yellow);
  }

  50% {
    transform: scale(1.15) translateY(-6px);
    filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.9));
    color: #FFFFFF;
  }
}

.trust-text {
  color: #FFFFFF;
  font-size: 1.3rem;
  line-height: 1.4;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.trust-highlight {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-style: italic;
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
  color: var(--warm-yellow-light);
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.5px;
}

.trust-text strong {
  color: var(--warm-yellow-light);
  font-size: 1.4rem;
  font-weight: 700;
}

.trust-features {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.trust-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
}

.trust-feature span {
  transition: color 0.3s ease;
}

.trust-feature:hover span {
  color: var(--warm-yellow-light);
}

.feature-icon {
  font-size: 1.2rem;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  backdrop-filter: blur(10px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.trust-feature:hover .feature-icon {
  transform: translateY(-8px) scale(1.1);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 20px rgba(242, 217, 138, 0.3);
}

/* ---------- PRODUCTS SECTION ---------- */
.products-section {
  padding: 100px 0;
  background: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--terracotta);
  margin-bottom: 12px;
  position: relative;
  padding: 0 20px;
}

.section-label::before,
.section-label::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background: var(--terracotta-light);
}

.section-label::before {
  right: 100%;
}

.section-label::after {
  left: 100%;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 550px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Product Block */
.product-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 100px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.product-block.visible {
  opacity: 1;
  transform: translateY(0);
}

.product-block:last-child {
  margin-bottom: 0;
}

.product-block--reverse {
  direction: rtl;
}

.product-block--reverse>* {
  direction: ltr;
}

/* Collage Styles */
.product-collage {
  position: relative;
}

.collage-pasteles {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
}

.collage-main img {
  width: 100%;
  height: 380px;
  /* Altura uniforme para todos */
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.collage-main img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-xl);
}

.collage-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.collage-stack img {
  width: 100%;
  height: 184px;
  /* Ajustado para que 184+184 + gap(12) = 380 */
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.collage-stack img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

.collage-empanadas {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
}

.collage-empanadas .collage-main img {
  height: 380px;
}

.collage-empanadas .collage-stack .collage-accent img {
  height: 184px;
  width: 100%;
  object-fit: contain;
  background-color: var(--cream-dark);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.collage-empanadas .collage-stack .collage-accent:hover img {
  transform: scale(1.05);
}

.collage-accent {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.collage-accent img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: var(--transition);
}

.collage-accent:hover img {
  transform: scale(1.05);
}

.collage-accent-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(58, 42, 29, 0.7));
  color: white;
  padding: 20px 16px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.collage-single .collage-main--full img {
  height: 380px;
  /* Unificado */
  border-radius: var(--radius-lg);
}

/* Specific adjustment for empanadas-mini package to show it fully */
#empanadas-mini .collage-main img {
  object-fit: contain;
  height: 320px;
  background-color: var(--cream-dark);
}

#empanadas-mini .collage-stack img {
  height: 320px;
  object-fit: contain;
  background-color: var(--cream-dark);
  filter: brightness(1.2);
}

/* Ensure vacuum packs are fully visible in all sections */
#empanadas .collage-main img,
#pasteles .collage-main img,
#pasteles .collage-stack img,
#pandebono .collage-main img {
  object-fit: contain;
  background-color: var(--cream-dark);
}

/* Product Info */
.product-info {
  padding: 20px 0;
}

.product-rating {
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: #ffb400;
  /* Gold for stars */
  display: flex;
  align-items: center;
  gap: 5px;
}

.product-rating span {
  color: var(--text-light);
  font-weight: 500;
}

.product-badge {
  display: inline-block;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(226, 94, 48, 0.15), rgba(226, 94, 48, 0.05));
  color: var(--terracotta);
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 50px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  border: 1px solid rgba(226, 94, 48, 0.1);
}

.badge-new {
  background: linear-gradient(135deg, rgba(194, 113, 79, 0.15), rgba(194, 113, 79, 0.08));
}

.badge-bakery {
  background: linear-gradient(135deg, rgba(232, 196, 104, 0.2), rgba(232, 196, 104, 0.08));
  color: var(--gold);
}

.badge-cheese {
  background: linear-gradient(135deg, rgba(232, 196, 104, 0.25), rgba(194, 113, 79, 0.08));
  color: var(--terracotta-dark);
}

.product-name {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  /* Más grande y visible */
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.product-desc {
  font-size: 1.15rem;
  /* Aumentado para mejor lectura */
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: 28px;
  font-weight: 400;
}

.product-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.detail-tag {
  padding: 6px 12px;
  background: var(--cream);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--text-medium);
  font-weight: 500;
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.product-price {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--terracotta);
}

.product-price small {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-light);
  font-family: var(--font-sans);
}

/* Add to Cart Button */
.btn-add-cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--terracotta), var(--terracotta-dark));
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 25px rgba(226, 94, 48, 0.35);
  font-family: var(--font-sans);
  letter-spacing: 0.5px;
}

.btn-add-cart:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 30px rgba(226, 94, 48, 0.45);
}

.btn-add-cart:hover {
  transform: translateY(-8px) scale(1.05);
  background: linear-gradient(135deg, var(--terracotta-light), var(--terracotta));
  box-shadow: 0 10px 20px rgba(194, 113, 79, 0.4), 0 0 15px rgba(232, 196, 104, 0.3);
}

.btn-add-cart:active {
  transform: translateY(0);
}

.btn-add-cart.added {
  background: linear-gradient(135deg, #5a9e6f, #4a8e5f);
  box-shadow: 0 4px 15px rgba(90, 158, 111, 0.3);
}

/* ---------- PREPARE SECTION ---------- */
.prepare-section {
  padding: 100px 0;
  background: var(--cream);
}

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

.step-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: var(--transition);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-number {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  background: var(--terracotta);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.step-card h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
}

.step-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.step-link {
  font-size: 0.9rem;
  color: var(--terracotta);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  padding: 6px 12px;
  background: var(--cream);
  border-radius: 5px;
  display: inline-block;
}

.step-link:hover {
  background: var(--terracotta);
  color: var(--white);
  transform: translateY(-2px);
}

/* ---------- SHIPPING SECTION ---------- */
.shipping-section {
  padding: 100px 0;
  background: var(--white);
}

.shipping-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.shipping-text .section-label {
  display: inline-block;
  padding: 0 20px;
}

.shipping-text .section-title {
  text-align: left;
}

.shipping-text p {
  font-size: 1rem;
  color: var(--text-medium);
  line-height: 1.8;
  margin-top: 16px;
}

.shipping-features {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ship-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 500;
}

.ship-feature span {
  font-size: 1.3rem;
}

.shipping-visual {
  display: flex;
  justify-content: center;
}

.shipping-card {
  background: linear-gradient(135deg, var(--cream), var(--cream-dark));
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  box-shadow: var(--shadow-md);
  width: 280px;
  transition: var(--transition);
}

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

.shipping-card-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.shipping-card h4 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.shipping-card-price {
  font-size: 1.1rem;
  color: var(--terracotta);
  margin-bottom: 4px;
}

.shipping-card-free {
  font-size: 0.9rem;
  font-weight: 700;
  color: #27ae60;
  background: rgba(39, 174, 96, 0.1);
  padding: 6px 14px;
  border-radius: 50px;
  display: inline-block;
  margin: 10px 0;
  border: 1px solid rgba(39, 174, 96, 0.2);
}

.shipping-card-detail {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ---------- FOOTER ---------- */
#main-footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  height: 50px;
  width: auto;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  opacity: 0.9;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links h5,
.footer-contact h5 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--warm-yellow);
}

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.social-link:hover {
  color: var(--warm-yellow);
  border-color: var(--warm-yellow);
  background: rgba(232, 196, 104, 0.1);
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ---------- CART SIDEBAR ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(58, 42, 29, 0.5);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.cart-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  max-width: 90vw;
  height: 100vh;
  background: var(--white);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-sidebar.active {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--cream-dark);
}

.cart-header h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text-dark);
}

.cart-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.cart-close:hover {
  background: var(--cream);
  color: var(--text-dark);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.cart-empty {
  text-align: center;
  padding: 60px 0;
  color: var(--text-light);
}

.cart-empty p {
  font-size: 1rem;
  margin-bottom: 4px;
}

.cart-empty span {
  font-size: 0.85rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--cream-dark);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.cart-item-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--terracotta);
  font-weight: 600;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--cream-dark);
  background: var(--cream);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--text-dark);
}

.qty-btn:hover {
  background: var(--terracotta);
  color: white;
  border-color: var(--terracotta);
}

.qty-value {
  font-weight: 600;
  min-width: 20px;
  text-align: center;
  font-size: 0.9rem;
}

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--cream-dark);
  background: var(--cream);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
}

#cart-total-price {
  color: var(--terracotta);
  font-family: var(--font-serif);
  font-size: 1.3rem;
}

.btn-checkout {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--terracotta), var(--terracotta-dark));
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-sans);
  box-shadow: 0 4px 15px rgba(194, 113, 79, 0.3);
}

.btn-checkout:hover {
  box-shadow: 0 6px 25px rgba(194, 113, 79, 0.4);
  transform: translateY(-1px);
}

/* ---------- TOAST ---------- */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text-dark);
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 3000;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 968px) {
  .product-block {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-block--reverse {
    direction: ltr;
  }

  .shipping-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .shipping-text .section-title {
    text-align: center;
  }

  .shipping-text .section-label {
    text-align: center;
    display: block;
  }

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

  .shipping-features {
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-logo {
    margin: 0 auto 16px;
  }

  .social-icons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    padding: 100px 32px 32px;
    gap: 24px;
    box-shadow: var(--shadow-xl);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }

  .nav-links.active {
    left: 0;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .logo-wrapper {
    position: relative;
    left: auto;
    transform: none;
  }

  .logo-wrapper img {
    height: 45px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
  }

  .collage-pasteles {
    grid-template-columns: 1fr;
  }

  .collage-main img {
    height: 250px;
  }

  .collage-stack {
    flex-direction: row;
  }

  .collage-stack img {
    height: 130px;
  }

  .collage-single .collage-main--full img {
    height: 280px;
  }

  #empanadas-mini .collage-main img {
    height: 220px;
  }

  #empanadas-mini .collage-stack img {
    height: 220px;
  }

  .product-price-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .trust-features {
    gap: 20px;
  }

  .hero-content {
    padding: 140px 20px 100px;
  }

  .video-container {
    height: 300px !important;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 10px 16px;
  }

  .container {
    padding: 0 16px;
  }

  .products-section {
    padding: 60px 0;
  }

  .prepare-section {
    padding: 60px 0;
  }

  .shipping-section {
    padding: 60px 0;
  }

  .product-block {
    margin-bottom: 60px;
  }

  .trust-banner {
    padding: 32px 0;
  }

  .trust-content {
    flex-direction: column;
  }
}

/* ---------- NEUROMARKETING ELEMENTS ---------- */
.price-old {
  text-decoration: line-through;
  color: #a0a0a0;
  font-size: 0.9rem;
  margin-right: 8px;
  font-weight: 500;
}

.scarcity-badge {
  background: #fff0f0;
  color: #d63031;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 8px;
  border: 1px solid rgba(214, 48, 49, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Simulated Sales Notification */
#sales-toast {
  position: fixed;
  bottom: 25px;
  left: 25px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  padding: 12px 18px;
  border-radius: 14px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2000;
  transform: translateX(-150%);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-left: 4px solid var(--terracotta);
}

#sales-toast.show {
  transform: translateX(0);
}

.sales-toast-icon {
  width: 38px;
  height: 38px;
  background: var(--warm-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.sales-toast-text {
  font-size: 0.82rem;
  color: var(--text-dark);
  line-height: 1.4;
}

.sales-toast-text strong {
  color: var(--terracotta);
  font-weight: 700;
}

@media (max-width: 768px) {
  #sales-toast {
    left: 15px;
    right: 15px;
    bottom: 20px;
    transform: translateY(200%);
  }

  #sales-toast.show {
    transform: translateY(0);
  }
}

/* ---------- CHECKOUT MODAL ---------- */
.checkout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(58, 42, 29, 0.4);
  backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

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

.checkout-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  background: var(--white);
  border-radius: var(--radius-xl);
  z-index: 2001;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}

.checkout-modal.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.checkout-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--cream-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 2;
}

.checkout-header h2 {
  font-family: var(--font-serif);
  color: var(--text-dark);
  font-size: 1.5rem;
}

.checkout-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--text-light);
  cursor: pointer;
  line-height: 1;
}

.checkout-body {
  padding: 32px;
}

.form-section {
  margin-bottom: 32px;
}

.form-section h4 {
  font-family: var(--font-serif);
  color: var(--terracotta);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-medium);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--terracotta-light);
  background: var(--cream);
  box-shadow: 0 0 0 4px rgba(226, 94, 48, 0.08);
}

/* Payment Methods Selector */
.payment-methods {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.payment-option {
  flex: 1;
  cursor: pointer;
}

.payment-option input {
  display: none;
}

.payment-card {
  padding: 16px;
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  background: var(--white);
}

.payment-icon {
  font-size: 1.8rem;
}

.payment-option span {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-medium);
}

.payment-option input:checked+.payment-card {
  border-color: var(--terracotta);
  background: rgba(226, 94, 48, 0.05);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(226, 94, 48, 0.1);
}

.payment-option input:checked+.payment-card span {
  color: var(--terracotta);
}

/* MB WAY specific */
.mbway-container {
  background: var(--cream);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--terracotta-light);
  margin-top: 10px;
}

.phone-input {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.phone-input span {
  font-weight: 800;
  color: var(--text-dark);
  font-size: 1.1rem;
}

.phone-input input {
  flex: 1;
  letter-spacing: 2px;
  font-weight: 700;
  text-align: center;
}

.btn-mbway {
  width: 100%;
  margin-top: 24px;
  padding: 16px;
  background: linear-gradient(135deg, #005a9c, #0076cf);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 25px rgba(0, 90, 156, 0.3);
}

.btn-mbway:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 90, 156, 0.4);
}

/* Success Modal */
.success-modal {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(15px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

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

.success-content {
  max-width: 450px;
  animation: slideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

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

.success-icon {
  font-size: 6rem;
  margin-bottom: 32px;
  filter: drop-shadow(0 15px 30px rgba(90, 158, 111, 0.3));
}

.success-content h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.success-content p {
  color: var(--text-medium);
  font-size: 1.1rem;
  margin-bottom: 32px;
  line-height: 1.6;
}

.btn-primary {
  padding: 16px 40px;
  background: var(--terracotta);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
}

/* ---------- GUIDE MODAL SPECIFIC ---------- */
.guide-modal {
  max-width: 650px;
}

.guide-body {
  padding: 30px;
}

.guide-intro {
  font-size: 1.1rem;
  color: var(--text-medium);
  margin-bottom: 25px;
  text-align: center;
  font-weight: 500;
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.guide-step {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  background: var(--cream);
  padding: 18px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--terracotta);
  transition: var(--transition);
}

.guide-step:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(226, 94, 48, 0.1);
}

.guide-icon {
  font-size: 1.8rem;
  background: white;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.guide-text strong {
  display: block;
  font-size: 1.15rem;
  color: var(--terracotta-dark);
  margin-bottom: 6px;
  font-family: var(--font-serif);
}

.guide-text p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-medium);
}

.guide-summary {
  background: linear-gradient(135deg, rgba(226, 94, 48, 0.08), rgba(232, 196, 104, 0.12));
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(226, 94, 48, 0.15);
}

.guide-summary h4 {
  font-family: var(--font-serif);
  color: var(--terracotta-dark);
  font-size: 1.35rem;
  margin-bottom: 12px;
  text-align: center;
}

.guide-summary ul {
  list-style: none;
  font-size: 0.95rem;
  color: var(--text-dark);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.guide-summary li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-summary span {
  font-weight: 600;
  color: var(--terracotta);
}

.guide-divider {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--cream-dark), transparent);
  margin: 40px 0;
}

.guide-header-alt {
  text-align: center;
  margin-bottom: 25px;
}

.guide-header-alt h3 {
  font-family: var(--font-serif);
  color: var(--terracotta-dark);
  font-size: 1.8rem;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.guide-header-alt h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 25%;
  right: 25%;
  height: 2px;
  background: var(--warm-yellow);
}

.guide-table-wrapper {
  overflow-x: auto;
  margin-top: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  background: white;
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  text-align: left;
}

.guide-table th {
  background: var(--terracotta);
  color: white;
  padding: 14px 16px;
  font-weight: 600;
  font-family: var(--font-serif);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
}

.guide-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--cream-dark);
  color: var(--text-dark);
}

.guide-table tr:last-child td {
  border-bottom: none;
}

.guide-table tbody tr:nth-child(even) {
  background: rgba(255, 248, 240, 0.5);
}

.pickup-container {
  margin-top: 15px;
  background: var(--cream);
  padding: 15px;
  border-radius: 12px;
  display: none;
}

.payment-notice {
  background: white;
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 12px;
  border-left: 4px solid var(--terracotta);
  font-size: 0.9rem;
  color: var(--text-dark);
}

.delivery-fee-notice {
  border-left-color: var(--warm-yellow);
}

.pickup-hours-notice {
  border-left-color: var(--terracotta);
}

.payment-info-box {
  margin-top: 12px;
  padding: 12px;
  background: #fff9e6;
  border-radius: 8px;
  border: 1px solid #ffd966;
  text-align: center;
  font-size: 0.95rem;
}

.payment-info-box p {
  color: #856404;
  margin: 0;
  font-weight: 500;
}

.pickup-hours-notice strong {
  color: var(--terracotta);
}

.form-select {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--cream-dark);
  border-radius: 8px;
  background: white;
  font-family: inherit;
  color: var(--text-dark);
  margin-top: 8px;
}

.btn-checkout-submit {
  width: 100%;
  padding: 15px;
  background: var(--terracotta);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(224, 82, 47, 0.3);
}

.btn-checkout-submit:hover {
  background: var(--terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224, 82, 47, 0.4);
}

@media (max-width: 500px) {
  .guide-table {
    font-size: 0.85rem;
  }

  .guide-table th,
  .guide-table td {
    padding: 10px 12px;
  }
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .checkout-modal {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
}

/* ---------- IMAGE ZOOM MODAL ---------- */
.zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  cursor: zoom-out;
}

.zoom-overlay.active {
  opacity: 1;
  visibility: visible;
}

.zoom-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: scale(0.85);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.zoom-overlay.active .zoom-img {
  transform: scale(1);
}

.zoom-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 3rem;
  font-weight: 300;
  cursor: pointer;
  line-height: normal;
  transition: transform 0.3s ease;
}

.zoom-close:hover {
  transform: scale(1.2) rotate(90deg);
  color: var(--warm-yellow);
}

.product-collage img {
  cursor: zoom-in;
}