/* =========================================
   1. MI BARRA DE ARRIBA (HEADER)
   Esta es la barra donde están los botones principales.
   La hice para que flote en medio de la pantalla.
   ========================================= */
.site-header {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-header, 1000);
  display: flex;
  align-items: center;
  width: max-content;
  max-width: 95vw;
  height: 64px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
}

.site-header .container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
  padding: 0 16px !important;
  margin: 0 !important;
}

.site-header .header-nav,
.site-header .header-actions {
  display: flex !important;
  align-items: center !important;
}

.site-header .header-nav {
  gap: 20px !important;
}

/* Mejorando el contraste de los enlaces de la navegaci�n */
.site-header .header-nav a {
  color: var(--gray-900);
  font-weight: 700 !important;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
  transition: all var(--t-fast) ease;
}

html[data-theme="dark"] .site-header .header-nav a {
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.site-header .header-actions {
  gap: 8px !important;
}

.site-header .icon-btn {
  flex-shrink: 0 !important;
  margin: 0 !important;
  min-width: 38px;
  min-height: 38px;
}

/* Asegurar que el hamburger esté oculto en desktop */
.site-header .hamburger {
  display: none !important;
}

/* =========================================
   2. EL LOGO DE LA ESQUINA
   Esto es para que el logo se vea grande en una esquina solo en el inicio.
   ========================================= */
@media (min-width: 1025px) {
  [data-page="home"] .site-header .brand {
    display: none !important;
  }

  /* Empujar la c�psula a la derecha para no encimarse con el logo de la esquina */
  [data-page="home"] .site-header {
    left: auto;
    right: 20px;
    transform: none;
    max-width: calc(100vw - 320px);
  }
}

[data-page="home"] .site-header .container {
  justify-content: flex-end !important;
  gap: 32px;
}

/* Este logo se queda pegado en la esquina izquierda arriba */
.fixed-corner-logo {
  display: none;
}

[data-page="home"] .fixed-corner-logo {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-corner-logo, 1100);
  background: var(--body-bg);
  height: 80px;
  pointer-events: none;
  padding: 0 40px 0 24px;
  border-radius: 0 0 30px 0;
  align-items: center;
}

.fixed-corner-logo .curve-svg {
  position: absolute;
  width: 30px;
  height: 30px;
  fill: var(--body-bg);
}

.curve-right {
  top: 0;
  left: 100%;
}

.curve-bottom {
  top: 100%;
  left: 0;
}

/* La burbujita roja que avisa cuántas cosas hay en el carrito */
.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--pink-main);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
  z-index: 10;
}


/* =========================================
   TABLET: COMPRESI�N FLUIDA (769px � 1024px)
   ========================================= */
@media (max-width: 1024px) and (min-width: 769px) {
  .site-header {
    height: 56px;
    padding: 0 6px;
  }
  .site-header .container {
    gap: 12px !important;
    padding: 0 10px !important;
  }
  .site-header .header-nav {
    gap: 10px !important;
  }
  .site-header .header-nav a {
    font-size: 13px;
    white-space: nowrap;
  }
  .site-header .header-actions {
    gap: 4px !important;
  }
  .site-header .icon-btn {
    min-width: 34px;
    min-height: 34px;
    width: 34px;
    height: 34px;
  }
  .site-header .icon-btn svg {
    width: 16px;
    height: 16px;
  }
  /* El logo de la esquina se oculta en tablet */
  [data-page="home"] .fixed-corner-logo {
    display: none !important;
  }
  
  /* La c�psula se centra y muestra el logo integrado */
  [data-page="home"] .site-header {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    max-width: 95vw;
    width: fit-content;
  }
  
  [data-page="home"] .site-header .brand {
    display: flex !important;
    font-size: 15px;
  }
  
  .site-header .brand .brand-icon {
    width: 32px;
    height: 32px;
  }
  .site-header .hamburger {
    display: none !important;
  }
}

/* =========================================
   COMO SE VE EL HEADER EN CELULARES
   Aquí cambio las medidas porque en el celular no cabe todo igual.
   ========================================= */
@media (max-width: 768px) {

  /* Header: cápsula compacta tipo 'pastilla' */
  .site-header {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    /* Se adapta al contenido */
    max-width: 90vw;
    min-width: 200px;
    /* Evitar que sea demasiado pequeña */
    border-radius: var(--radius-pill);
    height: 52px;
    /* Ligeramente más compacta en altura */
    padding: 0 20px;
    /* Padding equilibrado para que respire */
    backdrop-filter: blur(16px) saturate(1.6);
    -webkit-backdrop-filter: blur(16px) saturate(1.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .site-header .container {
    width: auto !important;
    max-width: 100% !important;
    gap: 0 !important;
    padding: 0 !important;
    justify-content: center !important;
  }

  /* Ocultar navegación y acciones: solo queda el BRAND en la cápsula superior móvil */
  .site-header .hamburger,
  .site-header .header-nav,
  .site-header .header-actions {
    display: none !important;
  }

  /* En mobile el brand se muestra centrado con el nombre COMPLETO */
  .site-header .brand {
    flex: 0 1 auto;
    /* No forzar a ocupar todo el ancho */
    text-align: center;
    font-size: clamp(14px, 4vw, 17px);
    white-space: nowrap;
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .site-header .brand em {
    display: inline;
  }

  /* Eliminar reglas de visibilidad condicional de iconos (ya están ocultos arriba) */

  /* Asegurar que el nombre completo se muestre siempre en la cápsula */
  .brand-extra {
    display: inline !important;
  }

  /* Ajuste de contenedor para centrado perfecto */
  .site-header .container {
    justify-content: center !important;
    padding: 0 !important;
  }

  /* Touch targets de 38px en móvil/tablet para la cápsula */
  .site-header .icon-btn {
    min-width: 38px !important;
    min-height: 38px !important;
    width: 38px !important;
    height: 38px !important;
  }

  [data-page="home"] .fixed-corner-logo .curve-svg {
    display: none;
  }
}

/* Escondo el logo de la esquina en el cel porque si no tapa todo */
@media (max-width: 768px) {
  [data-page="home"] .fixed-corner-logo {
    display: none !important;
  }
}

@media (max-width: 1024px) {

  /* El header debe mostrar el brand mini en todas las páginas */
  .site-header .brand {
    display: flex !important;
    font-size: 14px;
    gap: 6px;
    flex: 1;
    justify-content: center;
  }

  .site-header .brand .brand-icon {
    width: 36px;
    height: 36px;
  }

  .site-header .container {
    justify-content: space-between !important;
  }
}

/* =========================================
   PARA CELULARES MUY CHIQUITOS
   Hago todo más apretado para que quepa bien.
   ========================================= */
@media (max-width: 375px) {
  .site-header {
    height: 52px;
    padding: 0 8px;
  }

  .site-header .icon-btn {
    min-width: 36px !important;
    min-height: 36px !important;
    width: 36px !important;
    height: 36px !important;
  }

  .site-header .brand {
    font-size: 13px;
  }
}

/* =========================================
   PARA PANTALLAS GIGANTES
   ========================================= */
@media (min-width: 1920px) {
  .site-header {
    height: 72px;
    padding: 0 12px;
  }

  .site-header .header-nav {
    gap: 28px !important;
  }

  .site-header .header-nav a {
    font-size: 15px;
  }

  .site-header .icon-btn {
    min-width: 44px;
    min-height: 44px;
  }

  [data-page="home"] .fixed-corner-logo {
    height: 88px;
    padding: 0 48px 0 28px;
  }
}


/* El circulito donde está la flor del logo */
.brand-icon {
  width: 48px;
  height: 48px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur, 10px));
  -webkit-backdrop-filter: blur(var(--glass-blur, 10px));
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  transition: all var(--t-med) var(--ease-out-expo);
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

/* El nombre de mi florería con el tipo de letra bonito */
.brand {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  color: var(--gray-900) !important;
  text-decoration: none !important;
}

.brand em {
  color: var(--pink-main) !important;
  font-style: normal !important;
}





/* LOS NUMERITOS DE NOTIFICACIÓN */
.cart-badge,
.wish-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  background: var(--green-accent);
  /* Color por defecto */
  color: white;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
  z-index: 10;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), opacity .3s ease;
}

/* El de favoritos lo puse rosa para que combine */
.wish-badge {
  background: var(--pink-main);
  box-shadow: 0 2px 6px rgba(231, 84, 128, 0.4);
}

.cart-badge.escondido,
.wish-badge.escondido {
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  cursor: pointer;
  transition: background var(--t-fast)
}

.icon-btn:hover {
  background: var(--gray-100)
}

/* EL BOTÓN PARA CAMBIAR A MODO OSCURO */
.dark-toggle {
  font-size: 18px;
  cursor: pointer;
  position: relative;
  width: 38px;
  height: 38px;
}

.icon-btn.dark-toggle .icon-sun,
.icon-btn.dark-toggle .icon-moon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Para el botón del menú que sale de lado */
.btn.dark-toggle .icon-sun,
.btn.dark-toggle .icon-moon {
  position: static !important;
  transform: none !important;
  opacity: 1 !important;
}

.dark-toggle .icon-sun,
.dark-toggle .icon-moon {
  transition: transform .4s ease, opacity .4s ease;
  pointer-events: none;
}

html[data-theme="dark"] .dark-toggle .icon-sun {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-90deg) scale(0.5);
}

html:not([data-theme="dark"]) .dark-toggle .icon-moon {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scale(0.5);
}

/* EL BOTÓN DE LAS TRES RAYITAS PARA MÓVIL */
.hamburger {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: var(--t-fast);
}

@media(max-width:768px) {
  .hamburger {
    display: flex;
  }
}

/* EL MENÚ QUE SALE DE LADO EN EL CELULAR */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: var(--z-mobile-menu, 200);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-med), visibility var(--t-med);
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--card-bg-solid);
  z-index: calc(var(--z-mobile-menu, 200) + 1);
  transform: translateX(100%);
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
  padding: 24px
}

.mobile-menu.open {
  transform: translateX(0)
}

/* La parte de arriba del menú móvil */
.mobile-menu-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px
}

.mobile-menu-head strong {
  font-size: 20px;
  color: var(--gray-900)
}

/* Los enlaces que están adentro del menú móvil */
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 4px
}

.mobile-menu nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-800);
  transition: background var(--t-fast)
}

.mobile-menu nav a:hover {
  background: var(--gray-100)
}

.mobile-menu nav a .nav-icon {
  font-size: 20px;
  width: 28px;
  text-align: center
}

/* MI BARRA DE BÚSQUEDA */
.search-overlay {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 5000;
  padding: 20px 12px;
  transform: translateY(-100%);
  transition: transform .4s var(--ease-out-expo);
  display: flex;
  flex-direction: column;
}

[data-theme="dark"] .search-overlay.open {
  background: rgba(0, 0, 0, 0.6);
}

.search-overlay.open {
  transform: translateY(0)
}

.search-box {
  width: 100%;
  position: relative;
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-pill);
  transition: all var(--t-fast);
  display: flex;
  align-items: center;
}

.search-box:focus-within {
  border-color: var(--pink-main);
  background: var(--card-bg-solid);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.search-box input {
  flex: 1;
  padding: 14px 20px 14px 48px;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  font-size: 16px;
  color: var(--gray-800);
  width: 100%;
}

.search-box .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  pointer-events: none
}

.search-box .search-close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 20px;
  color: var(--gray-400);
  cursor: pointer
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--card-bg-solid);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .12);
  max-height: 60vh;
  overflow-y: auto;
  display: none;
}

.search-results.active {
  display: block
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background var(--t-fast)
}

.search-result-item:hover {
  background: var(--gray-100)
}

.search-result-item img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover
}

@media (min-width: 769px) {
  .search-overlay {
    background: transparent;
    pointer-events: none;
    z-index: 5000;
    inset: 0;
    padding: 0;
    display: block;
    transform: none;
    box-shadow: none;
  }

  .search-overlay.open {
    pointer-events: auto;
  }

  .search-box {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%) translateY(-150%);
    width: 650px;
    height: 64px;
    margin: 0;
    background: var(--card-bg-solid);
    border-radius: 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--gray-200);
    opacity: 0;
    transition: transform 0.4s var(--ease-out-expo), opacity 0.3s;
    display: flex;
    align-items: center;
    padding: 0 12px;
  }

  .search-overlay.open .search-box {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }

  .search-box:focus-within {
    border-color: var(--pink-main);
    box-shadow: 0 20px 50px rgba(231, 84, 128, 0.15);
  }

  .search-box input {
    height: 100%;
    padding-left: 50px;
  }

  .search-results {
    top: 72px;
    max-height: 500px;
    border-radius: 24px;
    border: 1px solid var(--gray-200);
    padding-bottom: 12px;
  }

  /* Escondo las letras de arriba cuando busco algo para que no se vea amontonado */
  body.search-open .site-header .header-nav {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.3s ease;
  }
}

.search-result-item .sr-info h4 {
  font-size: 14px;
  color: var(--gray-900);
  margin: 0
}

.search-result-item .sr-info span {
  font-size: 12px;
  color: var(--gray-500)
}

/* TODOS MIS BOTONES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast)
}

.btn:hover {
  transform: translateY(-1px)
}

.btn-primary {
  background: var(--pink-main);
  color: white;
  box-shadow: 0 4px 16px rgba(231, 84, 128, .25)
}

.btn-primary:hover {
  background: var(--pink-dark);
  box-shadow: 0 6px 24px rgba(231, 84, 128, .35)
}

.btn-outline {
  background: var(--card-bg-solid);
  color: var(--gray-800);
  border: 1px solid var(--gray-300)
}

.btn-outline:hover {
  background: var(--gray-50);
  border-color: var(--gray-400)
}

.btn-sm {
  padding: 10px 20px;
  font-size: 13px
}

/* LAS TARJETAS DONDE SALEN LAS FLORES */
.product-card {
  background: var(--card-bg-solid);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: transform var(--t-med);
  cursor: pointer;
  display: flex;
  flex-direction: column
}

.product-card:hover {
  transform: translateY(-4px)
}

.product-card .img-wrap {
  position: relative;
  aspect-ratio: 1/1.05;
  overflow: hidden;
  background: var(--gray-100)
}

.product-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease
}

.product-card:hover .img-wrap img {
  transform: scale(1.05)
}

.product-card .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--pink-main);
  color: white;
  font-size: 11px;
  font-weight: 700
}

/* El de las ofertas lo pongo en verde para que se note que es descuento */
.product-card .badge-offer {
  background: var(--green-accent)
}

/* EL BOTÓN PARA MARCAR COMO FAVORITO */
.wish-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--gray-100);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: var(--gray-600);
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease !important;
}

.wish-btn:hover {
  transform: scale(1.1);
  color: var(--pink-main);
  background: var(--pink-soft);
}

.wish-btn.active {
  color: var(--pink-main);
  animation: heartPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Para que el corazón se mueva cuando le das clic */
@keyframes heartPop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.4);
  }

  100% {
    transform: scale(1);
  }
}

/* La parte de abajo de la tarjeta con las letras */
.product-card .card-body {
  padding: 14px 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column
}

/* La categoría, como 'Ramos' o 'Cumpleaños' */
.product-card .card-cat {
  font-size: 11px;
  font-weight: 600;
  color: var(--pink-main);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px
}

.product-card h3 {
  font-size: 17px;
  font-weight: 500;
  color: var(--gray-900);
  margin: 0;
  line-height: 1.3
}

/* Un poquito de texto sobre lo que es */
.product-card .card-desc {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.5;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden
}

/* La parte final de la tarjeta, con el precio */
.product-card .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
  gap: 8px;
}

.product-card .price-group {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.product-card .price {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-900)
}

.product-card .price-original {
  font-size: 13px;
  color: var(--gray-400);
  text-decoration: line-through;
}

/* El aviso de cuánto descuento tiene */
.product-card .discount-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--pink-main);
}

/* EL BOTÓN PARA AGREGAR RÁPIDO AL CARRITO */
.add-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pink-main);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
  flex-shrink: 0;
}

.add-btn:hover {
  background: var(--pink-dark);
  transform: scale(1.1)
}

/* LA CUADRÍCULA PARA MOSTRAR MUCHOS PRODUCTOS */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px
}

/* EL TÍTULO DE CADA SECCIÓN */
.section-header {
  text-align: center;
  margin-bottom: 36px
}

.section-header h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 600;
  color: var(--gray-900);
  margin: 0
}

.section-header p {
  color: var(--gray-500);
  font-size: 15px;
  margin-top: 8px
}

/* EL CARRITO QUE SALE DE LADO */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .3);
  z-index: 4000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-med), visibility var(--t-med)
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 100vw);
  height: 100vh;
  background: var(--card-bg-solid);
  z-index: 4100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s ease;
  box-shadow: -4px 0 24px rgba(0, 0, 0, .08)
}

.drawer.open {
  transform: translateX(0)
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--gray-200)
}

.drawer-head strong {
  font-size: 22px
}

/* El botón para cerrar los menús laterales */
.close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: var(--card-bg-solid);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--gray-600)
}

.close-btn:hover {
  background: var(--gray-50)
}

/* Donde salen todos los productos que elegiste */
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 120px;
  display: flex;
  flex-direction: column;
  gap: 12px
}

/* Cada fila de producto en el carrito */
.cart-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--gray-50);
  border: 1px solid var(--gray-200)
}

.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px
}

.cart-item h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-900)
}

.cart-item p {
  margin: 2px 0 0;
  color: var(--gray-500);
  font-size: 12px
}

.cart-item .remove-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center
}

.cart-item .remove-btn:hover {
  color: var(--pink-main)
}

/* La parte de abajo del carrito con el botón de pagar */
.drawer-foot {
  padding: 16px 20px 100px;
  border-top: 1px solid var(--gray-200)
}

/* Lo que toca pagar antes de envíos */
.subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px
}

.subtotal span {
  color: var(--gray-500);
  font-size: 14px
}

.subtotal strong {
  font-size: 22px;
  color: var(--gray-900)
}

/* Lo que sale cuando no hay nada que mostrar */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 12px;
  color: var(--gray-400);
  text-align: center;
  padding: 40px
}

.empty-state svg {
  width: 48px;
  height: 48px;
  stroke: var(--gray-300);
  fill: none
}

/* LOS MENSAJES QUE SALEN ABAJO A LA DERECHA */
.toast-wrap {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: var(--z-toast, 2000);
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none
}

/* El mensajito solo */
.toast {
  background: var(--card-bg-solid);
  border: 1px solid var(--gray-200);
  color: var(--gray-800);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
  animation: toastIn .25s ease, toastOut .25s ease 2.7s forwards
}

/* El circulito con la palomita */
.toast .t-icon {
  width: 20px;
  height: 20px;
  background: var(--green-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0
}

/* PARA ELEGIR CUÁNTOS QUIERES COMPRAR */
.qty-row {
  display: flex;
  align-items: center;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-pill);
  overflow: hidden;
  width: fit-content
}

.qty-btn {
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  color: var(--gray-700);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center
}

.qty-btn:hover {
  background: var(--gray-50)
}

/* El número que cambia */
.qty-value {
  min-width: 32px;
  text-align: center;
  font-size: 14px;
  font-weight: 600
}

/* LAS CAJAS PARA ESCRIBIR COSAS */
.field {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  position: relative
}

.label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: .06em
}

.input,
.textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--card-bg-solid);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  color: var(--gray-900);
  font-size: 14px;
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast)
}

html[data-theme="dark"] .input,
html[data-theme="dark"] .textarea {
  color: #ffffff;
  background: #222222;
  border-color: #444;
}

/* Para escribir mensajes largos */
.textarea {
  min-height: 100px;
  resize: none
}

.input:focus,
.textarea:focus {
  border-color: var(--pink-main);
  box-shadow: 0 0 0 3px rgba(231, 84, 128, .15)
}

.input::placeholder,
.textarea::placeholder {
  color: var(--gray-400)
}

.input.error,
.textarea.error {
  border: 2px solid red;
  background: var(--red-bg, #FEF2F2);
  animation: shake .4s cubic-bezier(.36, .07, .19, .97) both
}

/* El texto que sale cuando escribes algo mal */
.error-msg {
  font-size: 11px;
  color: var(--red-error, #EF4444);
  margin-top: 2px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  animation: toastIn .2s ease
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

@media(max-width:540px) {
  .row {
    grid-template-columns: 1fr
  }
}

/* Esta animación hace que la caja se mueva si hay error */
@keyframes shake {

  10%,
  90% {
    transform: translate3d(-1px, 0, 0)
  }

  20%,
  80% {
    transform: translate3d(2px, 0, 0)
  }

  30%,
  50%,
  70% {
    transform: translate3d(-4px, 0, 0)
  }

  40%,
  60% {
    transform: translate3d(4px, 0, 0)
  }
}

/* EL DISEÑO DEL CATÁLOGO CON LOS FILTROS AL LADO */
.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start
}

@media(max-width:900px) {
  .catalog-layout {
    grid-template-columns: 1fr
  }
}

/* La caja de filtros que se queda quieta al bajar */
.filters-sidebar {
  position: sticky;
  top: 100px;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--gray-200);
  background: var(--card-bg-solid)
}

@media(max-width:900px) {
  .filters-sidebar {
    display: none
  }

  .filters-sidebar.mobile-open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 300;
    border-radius: 0;
    overflow-y: auto;
    padding: 24px
  }
}

/* El título de arriba de los filtros */
.filter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px
}

.filter-head h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0
}

.filter-group {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-100)
}

.filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0
}

/* Los títulos de cada sección de filtros */
.filter-group h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 12px
}

/* Los cuadritos para seleccionar opciones */
.filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
  font-size: 14px;
  color: var(--gray-700)
}

.filter-check input[type="checkbox"] {
  accent-color: var(--pink-main);
  width: 16px;
  height: 16px
}

/* Para poner el precio mínimo y máximo */
.price-range {
  display: flex;
  align-items: center;
  gap: 8px
}

.price-range input[type="number"] {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: var(--gray-50);
  color: var(--gray-800)
}

/* La barrita de arriba del catálogo */
.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px
}

.catalog-toolbar select {
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--card-bg-solid);
  color: var(--gray-800);
  font-size: 14px;
  cursor: pointer
}

/* Un botón que solo sale en el cel para ver filtros */
.filter-mobile-btn {
  display: none;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer
}

@media(max-width:900px) {
  .filter-mobile-btn {
    display: inline-flex
  }
}

/* El botón de "Cargar más" */
.load-more-wrap {
  text-align: center;
  padding: 40px 0
}

/* EL BOTÓN VERDE QUE FLOTA PARA HABLAR POR WHATSAPP */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, .4);
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
  border: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, .5)
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: white
}

.whatsapp-float::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, .3);
  animation: waPulse 2s infinite
}

/* Para que el botón de WhatsApp parezca que está latiendo */
@keyframes waPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1
  }

  50% {
    transform: scale(1.15);
    opacity: 0
  }
}

/* LA PARTE DE HASTA ABAJO DE LA PÁGINA (FOOTER) */
.site-footer {
  background: var(--footer-bg);
  color: white;
  padding: 48px 0 24px;
  margin-top: 0
}

/* Cómo se reparten las columnas del footer */
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px
}

@media(max-width:768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr
  }
}

@media(max-width:480px) {
  .footer-grid {
    grid-template-columns: 1fr
  }
}

.footer-brand {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px
}

.footer-brand em {
  color: var(--pink-soft);
  font-style: normal
}

/* Un poco de texto sobre nosotros */
.footer-desc {
  font-size: 13px;
  color: var(--footer-text);
  line-height: 1.7
}

/* Los títulos de cada columna de abajo */
.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--pink-soft);
  margin-bottom: 14px
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--footer-text);
  margin-bottom: 8px;
  transition: color var(--t-fast)
}

.footer-col a:hover {
  color: white
}

/* Los iconos de las redes sociales para que nos sigan */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast)
}

.footer-social a:hover {
  background: var(--pink-main)
}

.footer-social a svg {
  width: 18px;
  height: 18px;
  fill: white
}

/* La rayita de hasta abajo con los derechos de autor */
.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, .4)
}

/* Los cuadritos de las tarjetas que aceptamos */
.payment-icons {
  display: flex;
  gap: 8px
}

.payment-icons span {
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .1);
  font-size: 10px;
  font-weight: 700
}

/* A qué hora abrimos y cerramos */
.footer-hours {
  margin-top: 12px;
  font-size: 12px;
  color: var(--footer-text);
  line-height: 1.8
}

/* PARA CAMBIAR EL IDIOMA DE LA PÁGINA */
.lang-select {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(231, 84, 128, .15);
  border: 1.5px solid var(--pink-main);
  color: var(--pink-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-select:hover {
  background: rgba(231, 84, 128, .25);
  border-color: var(--pink-dark);
}

.lang-select:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(231, 84, 128, .2);
}

[data-theme="dark"] .lang-select {
  background: rgba(231, 84, 128, .1);
  border-color: rgba(231, 84, 128, .4);
}

[data-theme="dark"] .lang-select:hover {
  background: rgba(231, 84, 128, .2);
}

/* LAS VENTANAS QUE SALEN EN MEDIO DE LA PANTALLA */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: var(--z-overlay, 500);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-med), visibility var(--t-med);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible
}

.modal-box {
  background: var(--card-bg-solid);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform .3s ease
}

.modal-overlay.open .modal-box {
  transform: translateY(0)
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px
}

.modal-head h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0
}

/* AJUSTES PARA QUE SE VEA BIEN EN TABLETAS Y CELS */
@media(max-width:768px) {
  .header-nav {
    display: none
  }

  .promo-modal {
    width: auto !important;
    max-width: 200px !important;
    left: 16px !important;
    right: auto !important;
    transform: none !important;
    bottom: calc(110px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 14px 16px !important;
    border-radius: 20px !important;
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center !important;
    gap: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4) !important;
  }

  .promo-modal h4 {
    font-size: 14px !important;
    margin-bottom: 2px !important;
    letter-spacing: 0.02em !important;
  }

  .promo-modal p {
    font-size: 11px !important;
    margin: 0 !important;
    opacity: 0.9;
    line-height: 1.4 !important;
  }

  .promo-modal .promo-code {
    display: inline-block !important;
    margin: 8px 0 0 !important;
    padding: 6px 14px !important;
    font-size: 14px !important;
    border-width: 1px !important;
    background: rgba(231, 84, 128, 0.1) !important;
    letter-spacing: 0.05em !important;
  }

  .promo-modal .popup-close {
    top: 10px !important;
    right: 10px !important;
    width: 24px !important;
    height: 24px !important;
    font-size: 12px !important;
    opacity: 0.7;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px
  }

  .toast-wrap {
    width: auto !important;
    max-width: 260px !important;
    right: 16px !important;
    left: auto !important;
    transform: none !important;
    bottom: calc(130px + env(safe-area-inset-bottom, 0px)) !important;
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center !important;
    z-index: 3000;
  }
}

@media (max-width: 375px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
  }

  .product-card .card-body {
    padding: 10px 12px 14px;
  }

  .product-card h3 {
    font-size: 14px;
  }

  .product-card .price {
    font-size: 17px;
  }

  .add-btn {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .drawer {
    width: 100vw;
  }

  .modal-box {
    padding: 24px 16px;
    max-width: calc(100vw - 32px);
  }

  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 16px;
    right: 16px;
  }

  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }



  .toast {
    font-size: 13px;
    padding: 10px 14px;
  }



  .footer-grid {
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .payment-icons {
    justify-content: center;
  }
}

/* 1024px Laptop */
@media (min-width: 769px) and (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
  }

  .catalog-layout {
    grid-template-columns: 220px 1fr;
    gap: 24px;
  }
}

/* 1440px Desktop Wide */
@media (min-width: 1440px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 24px;
  }

  .footer-grid {
    gap: 48px;
  }
}

/* 1920px+ TV & Ultra-Wide */
@media (min-width: 1920px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
  }

  .product-card .card-body {
    padding: 18px 20px 22px;
  }

  .product-card h3 {
    font-size: 19px;
  }

  .product-card .price {
    font-size: 22px;
  }

  .product-card .card-desc {
    font-size: 14px;
  }

  .add-btn {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .drawer {
    width: min(480px, 100vw);
  }

  .drawer-head strong {
    font-size: 26px;
  }

  .cart-item {
    gap: 16px;
    padding: 16px;
  }

  .cart-item img {
    width: 72px;
    height: 72px;
  }

  .cart-item h4 {
    font-size: 16px;
  }

  .subtotal strong {
    font-size: 26px;
  }

  .close-btn {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .modal-box {
    max-width: 600px;
    padding: 40px;
  }

  .modal-head h3 {
    font-size: 26px;
  }

  .whatsapp-float {
    width: 68px;
    height: 68px;
  }

  .whatsapp-float svg {
    width: 34px;
    height: 34px;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
  }

  .footer-brand {
    font-size: 24px;
  }

  .footer-desc {
    font-size: 15px;
  }

  .footer-col a {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .footer-social a {
    width: 42px;
    height: 42px;
  }

  .footer-social a svg {
    width: 20px;
    height: 20px;
  }
}

/* MIS ANIMACIONES */
@keyframes toastIn {
  from {
    transform: translateX(100%);
    opacity: 0
  }

  to {
    transform: translateX(0);
    opacity: 1
  }
}

@keyframes toastOut {
  from {
    opacity: 1
  }

  to {
    opacity: 0
  }
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(10px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes confirmPop {
  0% {
    transform: scale(0)
  }

  60% {
    transform: scale(1.15)
  }

  100% {
    transform: scale(1)
  }
}

/* LA VENTANA DE DESCUENTO QUE SALE AL PRINCIPIO */
.promo-modal {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 280px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  color: #111;
  z-index: var(--z-toast, 2000);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  text-align: center;
}

html[data-theme="dark"] .promo-modal {
  background: rgba(30, 30, 30, 0.9);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.popup-hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.popup-show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* La tachita para cerrar el aviso */
.promo-modal .popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: inherit;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* El cupón de regalo escrito en grande */
.promo-modal .promo-code {
  display: block;
  margin: 15px auto;
  padding: 10px 20px;
  background: var(--pink-light);
  border: 2px dashed var(--pink-main);
  color: var(--pink-main);
  font-weight: 700;
  font-size: 18px;
  border-radius: 8px;
  letter-spacing: 1px;
}

/* Para que el fondo no haga cosas raras */
[data-page="home"] main {
  background: transparent !important;
}

/* 3. La parte de arriba que se queda quieta al inicio */
[data-page="home"] .hero-sticky {
  position: sticky !important;
  top: 0;
  height: 100vh;
  max-height: 900px;
  padding: 12px 12px 0 12px !important;
  /* Estrictamente sin padding inferior para unin perfecta */
  box-sizing: border-box;
  z-index: 1;
  background: transparent !important;
  /* Forzado transparente para evitar parches blancos */
  isolation: isolate;
}

[data-page="home"] .hero-media-box {
  width: 100%;
  height: 100%;
  background: transparent !important;
  /* Elimina fondo para evitar tringulos */
  border-radius: 24px 24px 0 0 !important;
  /* Base recta para unin perfecta */
  overflow: hidden !important;
  /* Guillotina de pxeles sobrantes */
  position: relative;
  transform: translateZ(0);
  clip-path: inset(0 0 0 0 round 24px 24px 0 0);
}

[data-page="home"] .hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Elimina gaps de alineación de línea base */
  opacity: 1;
  filter: contrast(1.1) brightness(1.05);
  transition: opacity 0.5s ease;
}

[data-page="home"] .hero-title-box {
  position: absolute;
  bottom: 0;
  left: 0;
  background: var(--card-bg-solid) !important;
  height: auto !important;
  min-height: 280px;
  max-width: 580px;
  padding: 40px 50px 30px 24px;
  border-radius: 0 40px 0 0 !important;
  z-index: 10;
  transition: background var(--t-normal) ease;
}

[data-page="home"] .hero-title-box .hero-text {
  padding-left: 0;
  padding-bottom: 0;
}

[data-page="home"] .hero-title-box .btn {
  padding: 12px 24px;
  font-size: 14px;
}

/* =========================================
   COMO SE VE EL HERO EN EL CELULAR
   Aquí pongo las cosas una arriba de otra porque si no no caben.
   ========================================= */
@media (max-width: 768px) {
  [data-page="home"] .hero-sticky {
    position: relative !important;
    height: auto !important;
    max-height: none;
    padding: 80px 12px 0 12px !important;
  }

  [data-page="home"] .hero-media-box {
    height: auto !important;
    display: flex;
    flex-direction: column;
    border-radius: 24px 24px 0 0 !important;
    clip-path: inset(0 0 0 0 round 24px 24px 0 0);
  }

  /* La imagen: protagonista, ocupa 45vh mínimo */
  [data-page="home"] .hero-bg-img {
    width: 100%;
    height: 55vh;
    min-height: 340px;
    max-height: 480px;
    object-fit: cover;
    object-position: center 0%;
    border-radius: 0 0 32px 32px;
  }

  /* El texto: debajo de la imagen, fluido */
  [data-page="home"] .hero-title-box {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    max-width: 100% !important;
    min-height: auto !important;
    padding: 24px 20px 28px !important;
    border-radius: 0 !important;
    background: var(--body-bg) !important;
    text-align: center;
  }

  [data-page="home"] .hero-title-box .hero-text {
    padding: 0;
  }

  [data-page="home"] .hero-title-box .hero-text .tag {
    margin-bottom: 12px;
  }

  [data-page="home"] .hero-title-box .hero-text h1 {
    font-size: clamp(24px, 6vw, 32px);
    margin-bottom: 8px;
  }

  [data-page="home"] .hero-title-box .hero-text p {
    font-size: 14px;
    max-width: 100%;
    margin: 0 auto 16px;
  }

  [data-page="home"] .hero-actions {
    justify-content: center;
    gap: 10px;
  }

  [data-page="home"] .hero-title-box .btn {
    padding: 14px 28px;
    font-size: 14px;
  }

  /* Ocultar curvas decorativas en móvil */
  [data-page="home"] .curve-title-top,
  [data-page="home"] .curve-title-right {
    display: none !important;
  }
}

/* Tablet (iPad) Hero & Header Adjustment */
@media (min-width: 769px) and (max-width: 1024px) {
  [data-page="home"] .hero-sticky {
    padding-top: 10px !important;
  }

  /* Quitar modo oscuro del menú drawer solo en tablet, ya que está en el header */
  .mobile-nav-actions .dark-toggle {
    display: none !important;
  }
}

/* Hero responsive — SMALL MOBILE (≤375px) */
@media (max-width: 375px) {
  [data-page="home"] .hero-bg-img {
    height: 40vh;
    min-height: 240px;
    max-height: 340px;
    object-position: center 25%;
  }

  [data-page="home"] .hero-title-box {
    padding: 20px 16px 24px !important;
  }

  [data-page="home"] .hero-title-box .hero-text h1 {
    font-size: clamp(20px, 5.5vw, 26px);
  }

  [data-page="home"] .hero-title-box .hero-text p {
    font-size: 13px;
  }

  [data-page="home"] .hero-title-box .btn {
    padding: 12px 22px;
    font-size: 13px;
    width: 100%;
    justify-content: center;
  }

  [data-page="home"] .hero-actions {
    flex-direction: column;
    gap: 8px;
  }
}

/* Hero responsive — TV & Ultra-wide */
@media (min-width: 1440px) {
  [data-page="home"] .hero-sticky {
    max-height: 800px;
  }

  [data-page="home"] .hero-title-box {
    max-width: 640px;
    padding: 48px 60px 36px 32px;
  }
}

@media (min-width: 1920px) {
  [data-page="home"] .hero-sticky {
    max-height: 850px;
    padding: 16px 16px 0 16px !important;
  }

  [data-page="home"] .hero-title-box {
    max-width: 720px;
    min-height: 320px;
    padding: 52px 72px 40px 36px;
    border-radius: 0 48px 0 0 !important;
  }

  [data-page="home"] .hero-title-box .btn {
    padding: 16px 32px;
    font-size: 16px;
  }

  [data-page="home"] .hero-media-box {
    border-radius: 28px 28px 0 0 !important;
    clip-path: inset(0 0 0 0 round 28px 28px 0 0);
  }
}

/* Unas curvas que puse para que el diseño no sea todo recto y aburrido */
[data-page="home"] .curve-title-top {
  position: absolute;
  top: -30px;
  left: 0;
  width: 30px;
  height: 30px;
  fill: var(--body-bg) !important;
  stroke: var(--body-bg) !important;
  transition: fill 0.3s ease, stroke 0.3s ease;
}

[data-page="home"] .curve-title-right {
  position: absolute;
  bottom: 0;
  right: -30px;
  width: 30px;
  height: 30px;
  fill: var(--body-bg) !important;
  stroke: var(--body-bg) !important;
  transition: fill 0.3s ease, stroke 0.3s ease;
}

/* 4. El contenido que va tapando al hero cuando bajas */
[data-page="home"] .content-slide-over {
  position: relative;
  z-index: 2;
  background: var(--body-bg) !important;
  border-radius: 0 !important;
  /* Sin curvas para transicin fluida */
  padding-top: 60px;
  box-shadow: none !important;
  /* Elimina la raya de sombra en la unin */
  transition: background var(--t-normal) ease;
}

/* Responsivo */
@media (max-width: 768px) {
  [data-page="home"] .fixed-cutout-logo {
    width: 260px;
    height: 60px;
    padding-left: 16px;
  }

  [data-page="home"] .site-header .header-nav {
    display: none;
  }
}

/* Arreglo para que los numeritos de notificación no se tapen */
.icon-btn {
  position: relative;
  overflow: visible;
}

/* La burbujita de los números otra vez */
.cart-badge,
.wish-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  z-index: 50;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  font-size: 10px;
  line-height: 1;
  background: var(--pink-main);
  color: #FAFBFC;
  border-radius: 50%;
  font-weight: 700;
  pointer-events: none;
  border: 2px solid var(--body-bg);
  box-shadow: 0 2px 6px var(--pink-glow);
  transition: transform .3s var(--ease-spring), opacity .3s ease;
}

/* EL MENÚ QUE SE ABRE EN EL CELULAR */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: var(--z-mobile-menu, 200);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-med), visibility var(--t-med);
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-drawer {
  position: absolute;
  top: 0;
  left: 0;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--card-bg-solid);
  z-index: calc(var(--z-mobile-menu, 200) + 1);
  transform: translateX(-100%);
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow-y: auto;
  padding-bottom: 100px;
}

.mobile-menu-overlay.open .mobile-menu-drawer {
  transform: translateX(0);
}

.mobile-menu-drawer .drawer-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 20px 0;
}

.mobile-nav-link {
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-800);
  border-bottom: 1px solid var(--gray-100);
}

.mobile-nav-link:active {
  background: var(--pink-light);
  color: var(--pink-main);
}

.mobile-nav-actions {
  padding: 24px 24px 100px;
  margin-top: auto;
}

/* La barrita de abajo para navegar en el celular */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 100px !important;
    right: 20px !important;
  }

  .site-header {
    display: flex !important;
    /* Vuelvo a poner el header en el cel por si acaso */
  }

  body {
    padding-bottom: 100px !important;
  }

  .mobile-nav-bar {
    display: flex !important;
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    width: auto;
    max-width: 500px;
    margin: 0 auto;
    height: 70px;
    z-index: 1000;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    border-radius: 35px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(20px);
    /* Para que se vea bien en los iPhones nuevos con el borde de abajo */
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }

  html[data-theme="dark"] .mobile-nav-bar {
    background: rgba(20, 22, 42, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.1);
  }

  .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--gray-800);
    text-decoration: none;
    gap: 4px;
    padding: 10px;
    border-radius: 20px;
    transition: all 0.3s ease;
    flex: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  html[data-theme="dark"] .nav-item {
    color: var(--gray-900);
  }

  .nav-item svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.2;
    transition: transform 0.2s ease;
  }

  .nav-label {
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-body);
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
  }

  html[data-theme="dark"] .nav-label {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  }

  .nav-item:active svg,
  .nav-item:active .nav-label {
    color: var(--pink-main) !important;
    transform: scale(0.95);
  }

  .hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 22px;
  }

  .hamburger-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background: currentColor;
    border-radius: 2px;
  }

  .nav-item .icon-wrap {
    position: relative;
    display: flex;
  }

  .nav-item .cart-badge {
    top: -5px;
    right: -8px;
    width: 18px;
    height: 18px;
    font-size: 10px;
    background: var(--pink-main);
  }
}

@media (min-width: 769px) {
  .mobile-nav-bar {
    display: none !important;
  }
}






/* Fix for catalog layout on tablets (overrides earlier grid settings) */
@media(max-width: 900px) {
  .catalog-layout {
    grid-template-columns: 1fr !important;
  }
}
