/* Fuente Google Fonts (Nunito) para el cuerpo */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;900&display=swap');

body {
    font-family: 'Nunito', sans-serif;
    background-color: #fcfcfc;
    color: #333;
}

/* Banner solicitado por el usuario (Estilo Original Restaurado) */
.banner-decomania {
    background-color: pink; 
    height: auto; 
    padding: 10px; 
    margin-top: 2px; 
    border-radius: 5px;
    text-align: center; 
    border: none;
}

.banner-decomania h1 {
    font-size: 36px;  
    font-family: 'Comic Sans MS', 'Comic Sans', cursive; 
    font-weight: bolder;
    margin: 0;
    color: #000;
}

.navbar-nav li a {
    font-weight: 700;
}

/* Tarjeta de Producto */
.producto {
    background-color: white;
    text-align: center;
    margin-bottom: 25px;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    height: 100%; 
    display: flex;
    flex-direction: column;
}

.producto:hover {
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.imagen-producto {
    width: 100%;
    height: 220px; /* Altura máxima permitida para las imágenes */
    margin-bottom: 10px;
    position: relative;
    background-color: #fff;
    overflow: hidden; /* Asegura que absolutamente nada salga del recuadro */
}

/* Fix crítico: El enlace debe heredar las restricciones de la caja padre */
.imagen-producto a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.img-producto {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Ajusta la imagen dentro de la caja sin distorsionarla ni cortarla */
}

.caja_desc {
    position: absolute;
    top: 5px;
    left: 5px;
    color: white;
    background: #ff4757;
    border-radius: 5px;
    padding: 2px 8px;
    font-weight: 900;
    font-size: 14px;
    z-index: 5;
}

/* Filtros */
.accordion-button:not(.collapsed) {
    background-color: #ffeef2;
    color: #d63384;
}

/* Redes Sociales Flotantes */
.socialmedia {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    left: 0;
}

.socialmedia a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    transition: all 0.3s ease;
    color: white;
    font-size: 20px;
    text-decoration: none;
}

.facebook { background: #3B5998; border-top-right-radius: 5px; }
.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); border-bottom-right-radius: 5px; }

/* Detalle Producto - Corregido para que no sea tan grande */
.img_prod {
    max-height: 400px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.img_masvendidos {
    max-height: 120px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.titulo_producto {
    font-size: 22px;
    font-weight: 900;
}

.precio_producto {
    font-size: 18px;
    margin-bottom: 5px;
}

.info_producto {
    font-size: 14px;
    margin-bottom: 3px;
}

.titulo_masven {
    font-weight: 700;
    font-size: 18px;
    color: #444;
}