/* ==========================================================
   1. RESET & LAYOUT BASE
   ========================================================== */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  font-style: normal;
  background-color: #fcfcfc;
}

/* ==========================================================
   2. NAVBAR - SOLUCIÓN ALINEACIÓN Y DESPLEGABLES
   ========================================================== */
.navbar {
  min-height: 80px;            /* Altura mínima permitiendo expansión */
  background: #845afd !important;
  padding: 0;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1050;
  overflow: visible !important; /* CRUCIAL: Para que el menú no desaparezca */
}

/* El container define los límites donde pusiste las "X" */
.navbar .container {
  display: flex;
  justify-content: space-between !important; 
  align-items: center;
  max-width: 1320px;
  height: 80px;
}

/* LOGO - Alineado a la Izquierda (Start) */
.navbar-brand {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
}

.logo {
  height: 125px;               /* Logo grande y visible */
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

/* MENÚ - Alineado a la Derecha (End) */
.navbar-nav {
  display: flex;
  flex-direction: row;
  gap: 15px;
  align-items: center;
}

.nav-link {
  color: white !important;
  font-size: 1.05rem;
  padding: 0.5rem 1rem !important;
}

/* DROPDOWN - Solución para que no se sobreponga */
.dropdown-menu {
  position: absolute;
  top: 100%;                  /* Se despliega justo debajo del nav */
  z-index: 2000 !important;
  background-color: white;
  border: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border-radius: 8px;
  margin-top: 0;
}

.dropdown-item {
  color: #333 !important;
  padding: 10px 20px;
  font-family: sans-serif;    /* Mejor legibilidad en lista */
}

.dropdown-item:hover {
  background-color: #f8f9fa;
  color: #845afd !important;
}

/* ICONOS ACCIÓN */
.nav-icons {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 20px;
  border-left: 1px solid rgba(255,255,255,0.2);
  padding-left: 20px;
}

.nav-icons a {
  color: white;
  font-size: 1.3rem;
  text-decoration: none;
}

/* ==========================================================
   3. TIPOGRAFÍAS Y UTILIDADES
   ========================================================== */
.dm-serif-display-regular {
  font-family: "DM Serif Display", serif;
  font-weight: 400;
}

.dm-serif-display-regular-italic {
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  font-style: italic;
}

/*.h-100 { height: 80% !important; }*/

.h-100 { height: auto !important; }

/* ==========================================================
   4. SLIDER INFINITO
   ========================================================== */
.slider-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 20px 0;
}

.slider-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
}

.slider-item {
  width: 220px;
  flex-shrink: 0;
}

/* ==========================================================
   5. TARJETAS DE PRODUCTO (PRODUCT CARDS)
   ========================================================== */
.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #eee;
  position: relative;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.card-img-top {
  height: 280px;
  object-fit: cover;
}

.badge-offer {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #da0b72;
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 20px;
  z-index: 2;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
  padding: 15px 15px 5px 15px;
  margin: 0;
}

.price-final {
  color: #845afd;
  font-weight: 700;
  font-size: 1.25rem;
}

.price-old {
  color: #aaa;
  text-decoration: line-through;
  font-size: 0.9rem;
  margin-left: 8px;
}

.btn-product {
  background-color: #845afd;
  color: white;
  border: none;
  width: calc(100% - 30px);
  margin: 15px;
  padding: 10px;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.3s;
}

.btn-product:hover {
  background-color: #6a46c7;
  color: white;
}

/* ==========================================================
   6. FOOTER
   ========================================================== */
#footer {
  background-color: #845afd;
  color: white;
  padding: 50px 0;
  margin-top: 50px;
}

#footer a { color: white; text-decoration: none; }
#footer a:hover { text-decoration: underline; }

.logoFooter {
  max-width: 180px;
  margin-top: -20px;
  margin-bottom: 20px;
}

/* ==========================================================
   7. MENÚ MÓVIL (Móviles)
   ========================================================== */
/* ==========================================================
   7. MENÚ MÓVIL (Móviles)
   ========================================================== */
.mobile-menu {
  display: none;
  background: #845afd;
  width: 100%;
  padding: 15px 0; /* Ajustado para que no sea tan alto */
  border-top: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu.show {
  display: block;
}

/* Limpieza total de la lista móvil */
#mobileMenu ul, 
#mobileMenu .navbar-nav {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none;
    display: block; /* Para que se apilen uno debajo de otro */
}

/* Alineación Maestra: Aquí es donde forzamos que Categorías esté a la par */
#mobileMenu .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

#mobileMenu .nav-link,
#mobileMenu [data-mobile-dropdown="categorias"] {
    display: flex !important;
    align-items: center;
    justify-content:间-between; /* <-- AQUÍ HABÍA UN ERROR, USA EL CÓDIGO DE ABAJO */
    justify-content: space-between !important; 
    padding: 12px 20px !important; /* Padding idéntico para todos */
    margin: 0 !important;
    text-align: left;
    width: 100%;
    background: transparent;
    border: none;
    color: white !important;
    font-size: 1.1rem;
    text-decoration: none;
}

/* Estilo específico para el botón de categorías para que no parezca botón */
#mobileMenu button[data-mobile-dropdown="categorias"] {
    font-family: "DM Serif Display", serif; /* Misma fuente que los links */
    cursor: pointer;
    outline: none;
    
}

/* Ajuste del submenú de categorías */
#mobileCategorias {
    background: rgba(0, 0, 0, 0.1); /* Un fondo ligeramente distinto para notar que es submenú */
    padding-bottom: 10px !important;

}

#mobileCategorias .nav-link {
    padding-left: 60px !important; /* Más sangría para los hijos */
    font-size: 1rem;
}

.categ >span{
  margin-left: 18px;
}
@media (max-width: 768px) {
  .navbar-nav { display: none; } /* Oculta menú desktop */
  .logo { height: 80px; }
  .navbar .container { height: 70px; }
}