/* ============================================================
   RESET Y CONFIGURACIÓN GENERAL
============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat';
}

body {
  background-color: #D7B1E3;
}

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat/Montserrat-VariableFont_wght.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "DynaPuff";
    src: url("../fonts/DynaPuff/DynaPuff-VariableFont_wdth\,wght.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

/* ============================================================
   CONTENEDORES GENERALES
============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 15px;
}

#wrapper {
  background-color: #D7B1E3;
}

#footer {
  background-color: #F5D4FF;
}

#footer .footer-nav {
  background-color: #F5D4FF;
}

#footer .footer-divider{
  background-color: #F5D4FF;
}

/* ============================================================
   CABECERA GENERAL
============================================================ */
#header {
  position: relative;
  margin-bottom: 5%;
}

/* ------------------------------------------------------------
   Header nav superior
------------------------------------------------------------ */
#header .header-nav .alert  {
  background-color: #e76484;
  color: white;
  text-align: center;
  padding: 14px !important;
  margin-bottom: 0px !important;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 50%;
  font-family: 'Montserrat';
}

/* ============================================================
   HEADER TOP - LOGO / BÚSQUEDA / USUARIO
============================================================ */
#header .header-top {
  background-color: #D7B1E3 !important;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
  padding: 0 50px;
  margin-top: -2px;
}

/* ------------------------------------------------------------
   LOGO
------------------------------------------------------------ */
#header .logo {
  flex: 0 0 auto;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

#header .header-top .img-fluid {
  width: 95px;
  height: 95px;
  max-width: none !important;
}

/* ------------------------------------------------------------
   BARRA DE BÚSQUEDA (CENTRADA ABSOLUTAMENTE)
------------------------------------------------------------ */
#header .search-box {
  flex: 0 0 auto;
  z-index: 1;
  max-width: 500px;
  width: 30%;
}

.search-box form {
  display: flex;
  width: 100%;
}

.search-box input[type="text"] {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* ------------------------------------------------------------
   WIDGET DE BÚSQUEDA
------------------------------------------------------------ */
#search_widget {
  width: 70%;
  max-width: 500px;
}

#search_widget .search {
  color: #621F72 !important;
  left: 88% !important;
  top: 5px;
}

#search_widget form {
  display: flex;
  width: 100%;
}

#search_widget form input[type="text"],
#search_widget input[type="search"] {
  flex: 1;
  padding: 15px 20px;
  font-size: 18px;
  color: #000;
  border: none;
  border-radius: 25px;
  background: #f5f5f5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  outline: none;
}

/* ------------------------------------------------------------
   USUARIO / CARRITO
------------------------------------------------------------ */

.user{
  width: 29%;
}

#_desktop_user_info .logout  {
  display: none !important;
}

#_desktop_user_info .hidden-sm-down{
  color: #621F72;
  font-family: 'Montserrat';
  font-weight: bold;
}

 #_desktop_cart .hidden-sm-down{
  display: none;
}

#_desktop_cart .cart-products-count{
  display: none;
}

#_desktop_language_selector .material-icons{
  display: none;
}

#_desktop_cart .material-icons {
  color: #621F72 !important;
}

#_desktop_language_selector .expand-more{
  color: #621F72;
  font-family: 'Montserrat';
  font-weight: bold;
  position: relative;
}

#_desktop_language_selector .dropdown-menu{
  box-shadow: 4px 4px 0 #8dd7c4;
  background-color: #F5D4FF;
  text-align: center;
  position: absolute;
  min-width: 7rem;
  left: 50%;
  transform: translateX(-50%);
  width: 10% !important;
  border-radius: 15px;
}

#_desktop_language_selector .dropdown-item{
  color: #621F72;
  font-weight: bold;
}


#header .header-top .right-nav {
  display: flex;
  gap: 5px;
  text-align: center;
  cursor: pointer;
  color: #621F72; 
  font-weight: bold;
}


.currency-selector{
  display: none;
}

/* ------------------------------------------------------------
 MENU 
 ------------------------------------------------------------- */


#header .menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 10px 20px;
  gap: 5%;
}

#header .menu .dropdown-item{
  position: relative;
}

#header .menu ul li {
  margin-left: 70px;
}

.menu a {
  font-family: 'DynaPuff' !important;
}

.menu a:hover {
  background-color: #8AC2BF;
  border-radius: 50px;
}

.menu ul li a:hover {
  color: #f5f5f5 !important;
}


/* ------------------------------------------------------------
 SUBMENU 
 ------------------------------------------------------------- */

#header .top-menu > li {
  position: relative;
}

#header .menu ul li .popover {
  background-color: #F5D4FF;
  border-radius: 12px;
  min-width: 200px;
  width: 100%;
  display: block !important;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 105% !important;
  z-index: 999;
  gap: 5%;
  box-shadow: 8px 8px 0 #8dd7c4;

}

#header .popover ul {
  display: block !important; /* fuerza apilamiento clásico */
  padding: 0;
  margin: 0;
}

.popover li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0;
  display: block !important;
  /**/
  width: 100%;
}

.popover li a {
  color: #621F72 !important;
  font-weight: bold !important;
  text-decoration: none;
  display: inline-block !important; /* Clave para que el fondo se ajuste */
  white-space: nowrap;
  padding: 8px 14px !important;
  border-radius: 18px;
  position: relative !important;
  text-align: left !important;
  box-sizing: border-box;
  margin-left: 10px; /* reemplaza left: 10px para mantener separación */
  font-family: 'Monserrat' !important;
}

/* Efecto hover para enlaces */

.popover a:hover {
  background-color: #8AC2BF !important; /* el azul que querés */
  color: #621F72 !important;
  font-weight: bold !important;/* opcional, para mejor contraste */
  width: auto;
  border-radius: 50px; /* opcional, si querés esquinas redondeadas */
  font-family: 'Montserrat' !important;
  font-weight: bold !important;
}

.divisor{
  height: 50px;
  background-color: #4EA39F;
  }

/* ------------------------------------------------------------
   BACKGROUND HEADER DERECHO (si aplica)
------------------------------------------------------------ */
#header .header-top-right {
  background-color: #A059B5;
  width: 100%;
}

/* ------------------------------------------------------------
Footer
------------------------------------------------------------ */

#footer{
  margin-top: auto !important;
}

#custom-footer {
  background-color: #f8d7ff;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  height: 60%;
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 38px;
}

.footer-link {
  color: #9c4fa8;
  font-weight: 700;
  text-decoration: none;
  padding: 6px 16px;
  border-radius: 20px;
  transition: all 0.3s ease;
  font-size: 14px;
}

.footer-link:hover {
  background-color: #4db6ac;
  color: white;
}

.footer-icons {
  display: flex;
  gap: 12px;
  margin-left: 18px;
}

.footer-icons a {
  color: #9c4fa8;
  font-size: 18px;
  transition: color 0.3s;
}

.footer-icons a:hover {
  color: #4db6ac;
}


.footer-divider {
  border-top: 2px dashed #d3a4d9;
  margin: 20px auto 10px;
  width: 90%;
}

.footer-copyright {
  font-size: 13px;
  color: #9c4fa8;
  text-align: center;
  margin-bottom: 10px;
}

/* ✅ OCULTAMOS buscador duplicado */
.header-top-right #search_widget {
  display: none !important;
}

#header,
#header a {
  color: #F5F5F5;
}

#header .header-top a[data-depth="0"] {
  color: #F5F5F5;
  text-transform: uppercase;
}

#header .header-top .popover {
  background-color: #A059B5;
}

/*.product-miniature {
  background-color: #4EA39F;
  border-radius: 25% !important;
}

.product-miniature .product-thumbnail-container{
    border-radius: 50% !important;
    width: 100% !important;


    -----------------------------------
    Lo que tenia la clase product_menu
    /* Tamaño del card 
.product-miniature {
  width: 230px;
  height: 320px;
  background: #F3D8F8; /* lila como en tu ejemplo 
  border-radius: 12px;
  padding: 10px;
  margin: 10px;
  position: relative;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Tags (banderitas) 
.product-flag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff4081;
  color: white;
  font-size: 12px;
  padding: 3px 6px;
  border-radius: 6px;
  font-weight: bold;
}

.product-flag.discount { background: #8e44ad; }
.product-flag.new { background: #27ae60; }
.product-flag.outofstock { background: #bdc3c7; }

/* Botón añadir 
.btn-add {
  display: inline-block;
  background: #20c997;
  color: white;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 20px;
  text-decoration: none;
}

.btn-add:hover {
  background: #17a589;
}

/* Botón deshabilitado 
.btn-disabled {
  display: inline-block;
  background: #e0e0e0;
  color: #777;
  padding: 6px 12px;
  border-radius: 20px;
}



}*/

/* Catalogo */
/* === CARD PRINCIPAL === */
.product-card {
  background-color: #d8aef3; /* fondo lila */
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-inner {
  background-color: #d8aef3;
  padding: 10px 12px 14px;
  position: relative;
  width: 95%;
  max-width: 240px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-inner:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* === TAG DE NOVEDAD / DESCUENTO === */
.product-flag {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  gap: 5px;
  z-index: 20;
}

.product-flag {
  padding: 2px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 10px;
  color: #fff;
  line-height: 1.2;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.product-flag {
  background-color: #7c4d9e; /* morado intenso */
}

.modal-content .modal-header{
  background-color: #F5D4FF !important;
}

.modal-content .modal-header .modal-title{
  font-family: 'Montserrat' !important;
  font-weight: bold  !important;
  color: #9c4fa8  !important;
}

.modal-content .modal-body{
  background-color: #F5D4FF !important;
}

.cart-container {
  background-color: #D7B1E3;
}
/* === IMAGEN === */
.product-image {
  display: block;
  margin: 5px auto;
}

.product-image img {
  border-radius: 20px;
  box-shadow: 4px 4px 0 #8dd7c4;
  display: block;
  width: 100%;
  height: auto;
}

/* === INFORMACIÓN DEL PRODUCTO === */
.product-content {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start; 
}

.product-name {
  color: #8d4f97;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 6px 0 3px;
  margin-top: 8px;
  text-align: left;
  font-family: 'Montserrat';
  font-weight: bold;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: #5c2a70;
  margin-top: 8px;
  align-items: initial !important;
}

.regular-price {
  text-decoration: line-through;
  color: #8b6b9f; /* tono gris-morado suave */
  font-weight: 500;
  margin-right: 6px;
  font-size: 0.95rem;
  opacity: 0.8;
}

.current-price{
 font-family: 'DynaPuff' !important;
}


#product-modal .modal-content .modal-body .product-cover-modal, .product-cover img{
  background-color: #D7B1E3 !important;
}

#product-modal .modal-content .modal-body {
  background-color: #D7B1E3 !important;
  padding: 0% !important;
}

#product-modal .modal-content .modal-body .image-caption {
  background-color: #D7B1E3 !important;
}

.product-flags li.product-flag.discount, .product-flags li.product-flag.discount-amount, .product-flags 
li.product-flag.discount-percentage{
  background-color: #621F72 !important;
  color: #d0d0d0 !important;
}

/* Botón */
.btn-add{
  margin-top: 8px;
  font-family: 'DynaPuff' !important;
  background:#59c5bb; color:#fff; border:0; border-radius:20px; padding:6px 18px; font-weight:700; cursor:pointer;
}
.btn-add:hover{ background:#48a79d; }

.btn-disabled {
  background-color: #d0d0d0;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 6px 16px;
  cursor: not-allowed;
}

/*-------------------------------*/


/* 🔄 RESPONSIVE */
@media screen and (max-width: 1224px) {
  #header .header-top {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px 10px;
  }

  #header .header-top .img-fluid {
    width: 90px;
    height: auto;
  }
/* 
  #header .search-box {
    width: 90%;
    max-width: 850px;
  } */

  #search_widget form input[type="text"],
  #search_widget input[type="search"] {
    font-size: 16px;
    padding: 12px 18px;
  }

  #header .user {
    justify-content: center;
    width: 100%;
    gap: 20px;
  }

  #header .menu {
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 20px 0;
    gap: 10px;
    background-color: #A059B5;
  }

  #header .menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #header .menu ul li {
    width: 100%;
    text-align: center;
  }

  #header .menu ul li a {
    color: #fff;
    font-weight: bold;
    display: block;
    padding: 12px;
    text-decoration: none;
    font-size: 16px;
  }

  #header .menu ul li a:hover {
    background-color: #e91ee9;
    border-radius: 5px;
  }
}
