*{
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

body {
  font-family: 'Georgia', serif;
  color: #1A1919;
  background: #ddd0f8;
  height: 100%;
}

main{
  min-height: 600px;
  margin-top: 220px;
}

.main{
  min-height: 660px;
  text-align: center;
  padding: 50px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
}

body, p, li, a, button, input {
  font-family: 'Montserrat', sans-serif;
}



header{
    background: #cbb8ee; 
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 220px;
}

.navbar{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 15px 30px;
}

.logo img{
    width: 80px;
}

.menu {
  list-style: none;
  display: flex;
  margin-left: auto;
  flex-wrap: wrap;
}

.menu li {
  margin-left: 20px;
}

.menu li:not(.nav-cart):hover a{
  font-size: 20px;
}

.menu li a {
  text-decoration: none;
  color: #4A148C;
}



/* little red badge */
.cart-badge {
  position: absolute;
  /* Ajusta estas coordenadas al tamaño de tu icono */
  top: 2px;
  right: 0;

  /* Círculo de 16×16px (ajusta a tu gusto) */
  width: 16px;
  height: 16px;

  background: #c00;
  color: #fff;
  border-radius: 50%;

  /* Texto pequeño */
  font-size: 10px;
  line-height: 1;

  /* Flexbox para centrar número */
  display: flex;
  align-items: center;
  justify-content: center;

}





/* TITULO CENTRAL */

.titulo{
    text-align: center;
    padding: 25px 15px;
}

.titulo h5{
    font-style: italic;
}

/* SECCIÓN PRINCIPAL */

.seccion-inicio{
    display: flex;
    flex-wrap: wrap;
    background: #ebe5f6;
    padding: 25px;
    gap: 25px;
    width: 100%;
    justify-content: center;
}

/* Productos: grid de 2x2 */
.grid-productos {
  width: 45%;
  text-align: center;
}

.grid-productos div{
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
}
.grid-productos div .imagen-inicio {
  width: 45%;
  height: 200px;
  border-radius: 8px;
  margin: 10px;
  overflow: hidden;
}

/* Estilos para las imágenes dentro de los <a> */
.grid-productos div .imagen-inicio a {
  display: block;
  width: 100%;
  height: 100%;
}

/* Estilos para las imágenes */
.grid-productos div .imagen-inicio img {
  width: auto;
  height: 100%;
  border-radius: 8px;
  object-position: center;
  object-fit: cover;
  display: block;
  border: solid 3px #d2bcfc;  
}

/*Aromaterapia*/

.aromaterapia{
    width: 45%;
    text-align: center;
        
}
.aromaterapia img{
     width: 80%;
    height: auto;
     margin-top: 15px;
     border-radius: 8px;
   
}

/*Inicio de Sesión*/

.login{
  border-top: solid 10px #bfb3d5;
  width: 300px;
  height: 400px;
  text-align: center;
  margin: 20px auto;
  background: #ffffff;
  padding: 40px;
  position: relative;

}

.login input, .register input{
    margin: 10px;
    border-radius: 10px;
    padding: 5px ;
    cursor: pointer;

}

.login button{
  padding: 6px;
  width: 85%;
  height: 30px;
  color: white;
  font-weight: bold;
  background: #924ee6;
  cursor: pointer;
  border: none;
  bottom: 80px;
  position: absolute;
  right: 25px;
}

.login p{
  bottom: 20px;
  position: absolute;
  right: 10px;
}

.register{
  border-top: solid 10px #bfb3d5;
  width: 300px;
  height: 450px;
  text-align: center;
  margin: 20px auto;
  background: #ffffff;
  padding: 40px;
  position: relative;
}

.register button{
   padding: 6px;
  width: 85%;
  height: 30px;
  color: white;
  font-weight: bold;
  background: #e34ee6;
  cursor: pointer;
  border: none;
  bottom: 80px;
  position: absolute;
  right: 25px;
}

.register p{
  bottom: 20px;
  position: absolute;
  right: 5px;
}

/*Carrito*/

.conteiner-cart{
  display: flex;
  justify-content: center;
  padding: 30px;
  gap: 80px;
}


.cart{
  min-width: 600px;
  max-width: auto;
  box-shadow: 0 2px 3px rgba(0, 0, 8, 10);
  border-radius: 20px;
  overflow: hidden;

}

.cart-header {
  background: #d9cbf3;
  padding: 10px 20px;
  text-align: center;
}

.cart-header h3 {
  margin: 0px 60px;
  font-size: 30px;
  font-weight: 400;
}


.cart-item{
  display: flex;
  align-items: center;
  padding: 15px 20px;
  border-top: 1px solid #e0dad9;
  position: relative;
}

.cart-item img{
  width: 100px;
  height: auto;
  border-radius: 20px;
}

.cart-item a {
  position: absolute;
  top: 50%;
  right: 10px;           /* un poco de espacio desde el borde */
  transform: translateY(-50%);
  font-size: 28px;
  text-decoration: none;
  cursor: pointer;
}

.cart-item h2{
  margin-left: 20px;
  margin-top: 20px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 100;
}


.cart-item h5 {
  position: static;      /* antes era absolute */
  margin: 0 20px;        /* espaciado arriba/abajo y a los lados */
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
}
.cart-item a i:hover{
  color: #693abe;
}

.conteiner-cart h4{
  text-align: center;
  margin: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
}

.cart-summary{
  width: 250px;
  height: 220px;
  box-shadow: 0 2px 3px rgba(0, 0, 8, 10);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  background: #d9cbf3;
  position: relative;
  box-sizing: border-box; /* para que padding no sume a ancho total */
}

.cart-summary h3{
 border-bottom: solid 1.5px #cdbcee;
}

.cart-summary p{
  margin: 10px
}

.cart-summary a{
  text-decoration: none;
  color: black;
}

.cart-summary a:hover{
 color: #8347fb;
}

.cart-summary form{
  padding: 10px;
}

.cart-summary input{
  width: 100%;
  border-radius: 5px;
  padding: 8px;
  border: none;
  background: #9d08b1;
  color: white;
  cursor: pointer;
}

.cart-summary input:hover{
    background: #d422eb;
}


.cart-summary .checkout-btn {
  width: 100%;
  box-sizing: border-box;
  overflow: hidden; /* oculta cualquier exceso */
  justify-content: center;
}

.cart-summary .checkout-btn > button {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

.contenedor-productos {
  display: flex;
  gap: 2%;
}


/* Estilos del sidebar */
aside.col-md-3 {
  flex: 0 0 250px;           /* Ancho fijo */
  background: #cbb8ee; 
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  height: 100%;
  text-align: center;
}

aside.col-md-3 h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  margin-bottom: 16px;
  color: #333;
}

aside.col-md-3 ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

aside.col-md-3 ul li {
  margin-bottom: 8px;
}

aside.col-md-3 ul li a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: #555;
  border-radius: 6px;
  transition: background-color 0.2s, color 0.2s;
}

/* Estado hover */
aside.col-md-3 ul li a:hover {
  background-color: #eaeaea;
  color: #000;
}

/* Categoría activa */
aside.col-md-3 ul li a.active {
  background-color: #9d08b1;
  color: #fff;
  font-weight: 500;
}


/*Productos*/

.product-content{
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  padding: 3% 2px;
  gap: 20px;
  align-items: stretch;
}

.product-content a{
  text-decoration: none;
  color: black;
}


.product{
  display: flex;
  flex-direction: column;
  width: 200px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-radius: 16px; 
  text-align: center;
  position: relative;

}

.product:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.product h2 {
  font-weight: 500;
  font-size: 1.1rem;
  margin-top: 10px;
  margin-bottom: 70px ;
  color: #333;
}

.product .imagen {
  flex: 0 0 auto;
  width: 100%;
  height: 150px;
  overflow: hidden;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.product .imagen img {
  width: auto;
  height: 100%;
  object-position: center;  /* Centra el recorte */
}

.product p {
  font-weight: 600;
  font-size: 1rem;
  color: #9d08b1; /* color institucional, refuerza branding */
  margin-bottom: 10px;
}



/*Producto individual*/

.detalle-producto {
  display: flex;
  gap: 32px;           
  padding: 12px ;   
  align-items: start;
  justify-content: center;
}


.card {
  background: #fff;
  border-radius: 12px;           
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 24px;                    
}


/* Productos relacionados - carrusel horizontal */

.related-section { 
  margin: 24px 50px;
  justify-content: center;
  text-align: center;
  

}


.related-wrap { 
  display:flex; align-items:center; gap:8px; 
}

/* lista horizontal con scroll (móvil friendly) */
.related-list {
  display:flex;
  gap:20px;
  overflow-x:auto;
  margin: 0 auto;
  padding:8px 4px;
  -webkit-overflow-scrolling: touch;
}

/* tarjeta relacionada (match con .product) */
.related-card {
  text-decoration:none;
  color: black;
  display:flex;
  flex-direction:column;
  width:200px;
  border-radius:16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align:center;
  overflow:hidden;
}

.related-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
  transform: translateY(-4px);
  transition: box-shadow .25s ease, transform .25s ease;
}

/* imagen */
.related-img{ height:150px; overflow:hidden; display:flex; align-items:center; justify-content:center; background:#fafafa; }
.related-img img{ width:auto; height:100%; object-fit:cover; }

/* texto */
.related-info { padding:10px; }
.related-name { font-weight:500; font-size:1.05rem; margin:6px 0; color:#333; }
.related-price { font-weight:700; color:#9d08b1; margin:0 0 6px; }

/* 3. Imagen ajustada */
.imagen-detalle img {
  width: 100%;
  height: 450px;                     /* fijo en px */
  border-radius: 8px;                /* ya estaba en px */
  object-fit: cover;
}

/* 4. Título y precio */
.detalle-titulo {
  font-size: 32px;                   /* antes: 2rem */
  margin-bottom: 8px;                /* antes: 0.5rem */
  color: #9d08b1;
}

.precio {
  font-size: 28px;                   /* antes: 1.75rem */
  margin: 8px 0 16px;                /* antes: 0.5rem 0 1rem */
  font-weight: bold;
}

/* 5. Descripción */
.descripcion {
  line-height: 1.6;
  margin-bottom: 24px;               /* antes: 1.5rem */
  color: #333;
}

/* 6. Formulario y botón */
.detalle-form {
  display: flex;
  align-items: center;
  gap: 16px;                         /* antes: 1rem */
}

.cantidad-group {
  display: flex;
  flex-direction: column;
  padding-top: 30px ;
}

.cantidad-group input[type="number"] {
  width: 70px;
  padding: 5px;                      /* antes: 0.3rem (~4.8px) */
  border: 1px solid #ccc;
  border-radius: 6px;
  text-align: center;
}

.cantidad-group input:focus {
  outline: none;
  border-color: #693abe;
  box-shadow: 0 0 0 2px rgba(105, 58, 190, 0.2);
}

.cantidad-group input:hover{
    border-color: #693abe;
}

.aroma-group {
  margin: 20px 0;
  font-family: 'Montserrat', sans-serif;
}

/* Etiqueta */
.aroma-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #4a2f6f;
}

/* Select personalizado */
.aroma-group {
  position: relative; /* para el icono desplegable */
}

.aroma-group select {
  width: 100%;
  max-width: 300px;          /* ajusta al tamaño que prefieras */
  padding: 10px 40px 10px 15px;
  font-size: 1rem;
  line-height: 1.4;
  color: #333;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;

  appearance: none;
  cursor: pointer;
}

.aroma-group select:focus {
  outline: none;
  border-color: #693abe;
  box-shadow: 0 0 0 2px rgba(105, 58, 190, 0.2);
}

.aroma-group select:hover{
   border-color: #693abe;
}


/* Botón principal */
.detalle-btn {
  background: #9d08b1;
  color: #fff;
  border: none;
  padding: 12px 20px;                /* antes: 0.75rem 1.25rem */
  border-radius: 8px;
  font-size: 16px;                   /* antes: 1rem */
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;                          /* antes: 0.5rem */
}

.detalle-btn:hover {
  background: #c60fde;
}

/*EXTRA*/

.whatsapp{
    position: fixed;
    right: 20px;
    bottom: 90px;
    font-size: 30px;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow:  0px 0px 5px rgba(0,0, 0, 10);
    width: 3%;
    height: 5.5%;
    text-align: center;
    cursor: pointer;
    justify-content: center;
    padding-top: 0.2% ;
    
}



.event{
  width: 300px;
  height: 350px;
  box-shadow: 0 2px 3px rgba(0, 0, 8, 10);
  border-radius: 20px;
  text-align: center;
  position: relative;
  padding: 10px;
  

}

.event .icono{
  width: 100%;
  height: 150px;            /* Altura uniforme */
  overflow: hidden;         /* Recorta cualquier parte de la img que sobresalga */
  padding-top: 50px;

}




/*Panel de administración*/

.admin-container{
  display: flex;
  padding: 20px 0px;
}

.admin-panel{
  width: 1000px;
  margin: 0 auto;
  text-align: center;
  padding: 20px;
  
}

.admin-panel form {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  max-width: 600px;
  margin: 0 auto 60px;
  text-align: left;
}

.admin-panel form h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 400;
  color: #4a3f5f;
  margin-bottom: 24px;
}

.admin-panel form label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  color: #5a4a6a;
  margin-bottom: 8px;
}

.admin-panel form input[type="text"],
.admin-panel form input[type="number"],
.admin-panel form input[type="date"],
.admin-panel form input[type="time"],
.admin-panel form textarea,
.admin-panel form input[type="file"] {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  border: 1px solid #d3c2f0;
  border-radius: 8px;
  margin-bottom: 20px;
  box-sizing: border-box;
}

.admin-panel form textarea {
  min-height: 100px;
  resize: vertical;
}

.admin-panel form input[type="file"] {
  padding: 8px;
}

.admin-panel form button {
  display: block;
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  padding: 14px 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  color: #ffffff;
  background-color: #e34ee6;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: background-color 0.2s;
}

.admin-panel form button:hover {
  background-color: #c12fc8;
}
.admin-panel table {
  margin: 0 auto;    /* céntralo horizontalmente */
  border-collapse: collapse;
  padding: 10px;
}

.admin-panel table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.admin-panel th,
.admin-panel td {
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-color);
  text-align: left;
  font-family: var(--font-base);
  color: var(--text-color);
}

.admin-panel th {
  background: var(--primary-color);
}

.admin-panel tr:nth-child(even) {
  background: white;
}

.sidebar{
  width: 20%;
  background-color: #d5c4f6;
}

.sidebar ul li{
  padding: 10px;
  border: solid 1px #ad8af3;
}

.sidebar ul li a{
  color: black;
  text-decoration: none;
  display: block;
}

.sidebar ul li:hover{
  background-color: #b38dfe;
}


/*FOOTER*/

footer {
  background: #B39DDB; /* lila pastel */
  color: #4A148C;      /* violeta oscuro */

  font-family: 'Montserrat', sans-serif;
 
  
}
.footer-sections {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.footer-sections div {
  flex: 1 1 200px;
  margin: 15px;
}
.footer-links ul {
  list-style: none;
  padding: 0;
}
.footer-links a, .footer-social a {
  color: inherit;
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
}
.footer-legal {
  text-align: center;
  margin-top: 30px;
  font-size: 10px;
  background-color: #333;
  color: white;
  padding: 5px;
display: flex;
  justify-content: center;
  
}

.footer-legal span{
  display: flex;
  margin: 0px 5px;
}

.footer-legal a{
  color: white;
}

/*Contacto*/
.contacto-container{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 30px;
  gap: 40px;
}

.info-contacto, .contacto-container form{
  border-radius: 20px;
  border: solid 1px #B39DDB;
  box-shadow: 0px 2px 3px;
  padding: 20px 30px;

}


.info-contacto h3, .info-contacto h4{
    margin: 20px 0px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

.info-contacto a{
  text-decoration: none;
  color: white;
  background-color: #bb8bf6;
  border-radius: 70px;
  padding: 6px;
 
}

.contacto-container label{
  display: block;
  margin: 5px;

}

.contacto-container input, .contacto-container textarea{
  border: solid 1px #B39DDB;
  border-radius: 10px;
  padding: 10px;
}

.contacto-container button{
  display: block;
  border-radius: 5px;
  background-color: #9d08b1;
  color: white;
  padding: 10px;
  width: 150px;
  margin: 0 auto;
}

/* Boton Arrepentimiento */

.page-form {
  max-width: 600px;
  margin: 32px auto;       /* antes 2rem */
  padding: 0 16px;         /* antes 1rem */
}

.form-title {
  font-family: 'Playfair Display', serif;
  color: #450368;
  margin-bottom: 8px;      /* antes .5rem */
}

.form-intro {
  margin-bottom: 24px;     /* antes 1.5rem */
  font-size: 15px;         /* antes .95rem (≈ 15px) */
  color: #333;
}

.cancel-form label {
  display: block;
  margin-top: 16px;        /* antes 1rem */
  font-weight: 600;
}

.cancel-form input,
.cancel-form textarea {
  width: 100%;
  padding: 10px;           /* ya estaba en px */
  margin-top: 5px;         /* ya estaba en px */
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;         /* antes .9rem (≈ 14px) */
}

.cancel-form .btn-repentimiento {
  display: block;
  width: 100%;
  text-align: center;
  background-color: #4A148C;
  padding: 10px;           /* antes 5px, lo subí a 10px para mejor clicabilidad */
  color: white;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  font-size: 16px;         /* un tamaño cómodo para botones */
}

.cancel-form .btn-repentimiento:hover {
  background-color: #380063; /* ligero tono más oscuro */
}

/*Buscador*/

.buscador {
  margin-left: 5%;
  display: flex;
  align-items: center;
  position: relative;
}

.buscador input {
  width: 220px;
  border-radius: 24px;
  padding: 10px 40px 10px 14px; /* espacio para botón a la derecha */
  border: 1px solid #4A148C;
  font-size: 14px;
  transition: box-shadow .18s ease, border-color .18s ease;
}

.buscador input:focus {
  border-color: #450368;
  outline: none;
  box-shadow: 0 0 6px rgba(69, 3, 104, 0.28);
}

.buscador__btn {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.buscador__btn svg {
  width: 18px;
  height: 18px;
  stroke: #450368;
  stroke-width: 1.6;
  fill: none;
}

.buscador__btn:hover svg {
  stroke: #4A148C;
}



@media (max-width: 992px) {
  aside.col-md-3 {
    flex: 0 0 200px;
  }
}


@media screen and (max-width: 700px){


  header{
    height: auto;
  }

  main{
    margin-top: 290px;
  }

  .grid-productos, .aromaterapia{
    width: 100%;
  }

  .conteiner-cart{
  display: block;
}

.grid-productos div .imagen-inicio {
  width: 40%;
  height: 100px;
        /* Recorta cualquier parte de la img que sobresalga */
}



.cart{
  width: 100%;
  margin: 20px 0px;
}

.cart-item h5, .cart-item p{
 display: none;
}

  .contenedor-productos {
    display: flex;
    flex-direction: column;
  }

  aside.col-md-3 {
    flex: 0 0 auto;
    width: 100%;
    margin-bottom: 20px;
  }

  .product-content {
    padding: 1%;
    gap: 20px;
  }

  .product {
    width: 90%;;
    margin: 0 auto;
  }

  .product .imagen{
    height: 250px;
  }

  

.contacto-container{
  padding: 10px 0px;
}


.info-contacto, .contacto-container form{
  width: 95%;

}
.contacto-container form button{
  margin-left: 10px;
}

.info-contacto p{
  display: none;

}

.login, .register{
  width: 100%;
}

.register button, .login button{
  right: 15px;
}


.whatsapp{
    bottom: 70px;
    width: 7.5%;
    height: 5.4%;
    padding: 2px;
    
}

.detalle-producto {
  flex-wrap: wrap;
}


}