﻿:root {
    --rosa-claro: rgb(235, 199, 206);
    --rosa-medio: rgb(228, 137, 164);
    --rosa-fondo: rgb(249, 230, 225);
    --rosa-profundo: rgb(209, 167, 180);
    --rosa-suave: rgb(250, 236, 239);
    --rosa-suave2: rgb(239, 228, 225);
    --beige: #f5f5dc;
    --moka: #b89b82;
    --rosa-claro-contenedor: #fef6f8;
}

body {
    background-color: var(--rosa-suave);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ----- Cards generales (tanto normales como promocionales) ----- */
.card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

    .card:hover {
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
        transform: translateY(-6px);
    }

.card-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.card-body {
    background-color: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
}

.custom-img {
    height: 140px;
    width: auto;
    display: block;
    margin: 20px auto 0 auto; /* ↑ margen arriba, centrado horizontalmente */
    border-radius: 12px;
}

/* ----- Botón personalizado ----- */
.btn-eterea {
    background-color: var(--rosa-profundo);
    color: white;
    width: 100%;
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    .btn-eterea:hover {
        background-color: rgb(189, 147, 160);
        transform: scale(1.02);
        color: white;
    }

/* ----- Botones de presentación (tamaños) ----- */
.btn-tamanio {
    background-color: var(--rosa-suave2);
    border: 1px solid;
    border-radius: 20px;
    margin: 2px;
    padding: 4px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .btn-tamanio:hover {
        background-color: var(--rosa-medio);
        color: white;
    }

    .btn-tamanio.active {
        background-color: var(--rosa-profundo);
        color: white;
        font-weight: bold;
    }

.selector-tamanios .btn-tamanio {
    padding: 6px 12px;
    font-size: 0.9rem;
    border-radius: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    min-width: 55px;
    text-align: center;
}

    .selector-tamanios .btn-tamanio.active,
    .selector-tamanios .btn-tamanio:hover {
        background-color: var(--rosa-profundo);
        color: white;
    }


/* ----- Estado de stock ----- */
.text-danger.fw-bold {
    color: #c0392b !important;
    font-size: 0.95rem;
}

/* ----- Carrito Offcanvas ----- */
#carrito-offcanvas {
    position: fixed;
    top: 20px;
    right: -350px;
    width: 350px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    padding: 20px;
    z-index: 2000;
    transition: right 0.5s ease-in-out;
}

    #carrito-offcanvas.show {
        right: 20px;
    }

.offcanvas-contenido {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

    .offcanvas-contenido img {
        width: 100%;
        height: auto;
        border-radius: 10px;
        margin-bottom: 10px;
    }

    .offcanvas-contenido p {
        margin: 0;
        font-size: 14px;
    }

/* ----- Paginación ----- */
.pagination .page-link {
    color: var(--rosa-profundo);
}

.pagination .page-item.active .page-link {
    background-color: var(--rosa-profundo);
    border-color: var(--rosa-profundo);
    color: white;
}

/* ----- Card destacada para promociones (opcional visual extra) ----- */
.resaltado {
    border: 2px solid #a0435c;
    box-shadow: 0 0 12px #d1a7b4;
    transition: all 0.5s ease;
}





/* Nuevo Filtrod*/

.filtro-checkbox-list {
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 8px;
    border-radius: 5px;
    background-color: #fff;
}


/* ----- Botones de filtro ----- */
.btn-filtro-aplicar {
    background-color: var(--rosa-profundo);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.95rem;
    width: 100%;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    .btn-filtro-aplicar:hover {
        background-color: rgb(189, 147, 160);
        transform: scale(1.02);
    }

.btn-filtro-limpiar {
    background-color: var(--rosa-suave2);
    color: #333;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.9rem;
    width: 100%;
    transition: background-color 0.3s ease, color 0.2s ease;
}

    .btn-filtro-limpiar:hover {
        background-color: var(--rosa-claro);
        color: #000;
    }

/* Ocultamos el checkbox original */
.form-check-input {
    display: none;
}

/* Estilo del label que reemplaza al checkbox */
.form-check-label {
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    line-height: 1.5;
    user-select: none;
}

    /* Caja visual del checkbox */
    .form-check-label::before {
        content: '';
        position: absolute;
        left: 0;
        top: 2px;
        width: 18px;
        height: 18px;
        border: 2px solid var(--rosa-profundo);
        border-radius: 4px;
        background-color: white;
        transition: background-color 0.2s ease;
    }

/* Tilde cuando está chequeado */
.form-check-input:checked + .form-check-label::after {
    content: '✔';
    position: absolute;
    left: 3px;
    top: 0px;
    font-size: 14px;
    color: white;
}

/* Fondo cuando está chequeado */
.form-check-input:checked + .form-check-label::before {
    background-color: var(--rosa-profundo);
    border-color: var(--rosa-profundo);
}

/* ---------- PANEL DE FILTROS COMPLETO ---------- */
aside.col-md-2 {
    background-color: var(--rosa-claro-contenedor);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 20px;
    height: fit-content;
}

/* ---------- TÍTULOS DE FILTROS ---------- */
aside h5 {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--rosa-profundo);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--rosa-medio);
    padding-bottom: 5px;
}

/* ---------- BLOQUES INDIVIDUALES DE FILTROS ---------- */
aside .mb-3 {
    margin-bottom: 20px !important;
    padding-bottom: 10px;
    border-bottom: 1px dashed #ccc;
}

    aside .mb-3:last-child {
        border-bottom: none;
    }

.linea-filtros {
    border: none;
    border-top: 1px dashed;
    margin: 20px 0;
}

/* ---------- SCROLL INTERNO DE LISTAS ---------- */
.filtro-checkbox-list {
    max-height: 160px;
    overflow-y: auto;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background-color: white;
    scrollbar-width: thin;
    scrollbar-color: var(--rosa-profundo) transparent;
}

    .filtro-checkbox-list::-webkit-scrollbar {
        width: 6px;
    }

    .filtro-checkbox-list::-webkit-scrollbar-thumb {
        background-color: var(--rosa-profundo);
        border-radius: 10px;
    }

/* ---------- BOTONES DE FILTROS ---------- */
aside .btn-outline-danger,
aside .btn-outline-primary,
aside .btn-outline-secondary {
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.9rem;
    width: 100%;
    margin-top: 6px;
    transition: all 0.3s ease;
}

    aside .btn-outline-danger:hover {
        background-color: #e74c3c;
        color: white;
    }

    aside .btn-outline-primary:hover {
        background-color: var(--rosa-profundo);
        border-color: var(--rosa-profundo);
        color: white;
    }

    aside .btn-outline-secondary:hover {
        background-color: #bbb;
        color: white;
    }



.titulo-perfumes {
    background-color: var(--rosa-claro-contenedor); /* igual que el fondo del filtro */
    color: var(--moka); /* igual que el color del texto del filtro */
    padding: 20px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}


    .titulo-perfumes h2 {
        flex: 1;
        text-align: center;
        margin: 0;
        font-size: 1.6rem;
        font-weight: bold;
        color: var(--rosa-profundo); /* color igual al filtro */
    }

    /* Botón del dropdown */
    .titulo-perfumes .dropdown-toggle {
        background-color: var(--rosa-claro);
        color: white;
        border: none;
        border-radius: 10px;
        padding: 10px 18px;
        font-weight: 500;
        transition: background-color 0.3s ease, color 0.2s ease;
    }

        .titulo-perfumes .dropdown-toggle:hover {
            background-color: var(--rosa-profundo);
            color: white;
        }

    /* Menú desplegado */
    .titulo-perfumes .dropdown-menu {
        border: 1px solid var(--rosa-profundo);
        border-radius: 12px;
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
    }

    /* Opciones del menú */
    .titulo-perfumes .dropdown-item {
        padding: 10px 16px;
        font-weight: 500;
        color: var(--moka);
        transition: background-color 0.2s ease, color 0.2s ease;
    }

        .titulo-perfumes .dropdown-item:hover {
            background-color: var(--rosa-profundo); /* Fondo al pasar el mouse */
            color: white; /* Texto al pasar el mouse */
        }


input.no-outline:focus {
    outline: none;
    box-shadow: none;
    border-color: inherit;
}

.btn-buscar {
    background-color: var(--rosa-claro);
    color: white;
    border: none;
}

    .btn-buscar:hover {
        background-color: var(--rosa-profundo);
        color: white;
    }

.sin-resultados {
    text-align: center;
    padding: 60px 20px;
    color: #555;
}

.mt-espaciado-footer {
    margin-top: 620px;
}


/* ----- Precio con promoción ----- */
.precio-original {
    color: #888;
    text-decoration: line-through;
    margin-right: 8px;
    font-size: 0.95rem;
}

.precio-descuento {
    font-size: 1.1rem;
    font-weight: bold;
}

/* ----- Leyenda de promoción ----- */
.leyenda-promocion {
    font-size: 1rem;
    background-color: var(--rosa-medio);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    min-width: 120px;
    text-align: center;
    display: inline-block;
}

.promo-placeholder {
    min-height: 1.2rem; /* ajusta este valor según el alto que necesites */
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 600;
}


.promo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.promo-content {
    flex: 1;
    text-align: center;
}

.promo-display .precio-original {
    color: #888;
    text-decoration: line-through;
    margin-right: 8px;
    font-size: 0.95rem;
}

.promo-display .precio-descuento {
    font-size: 1.1rem;
    font-weight: bold;
}

.btn-promo-prev, .btn-promo-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    font-size: 1rem;
    color: white;
    background-color: var(--rosa-profundo);
    border: none;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

    .btn-promo-prev:hover,
    .btn-promo-next:hover {
        transform: scale(1.1);
        background-color: var(--rosa-medio);
    }


    .btn-promo-prev:focus,
    .btn-promo-next:focus {
        outline: none !important;
        box-shadow: none !important;
    }

    .btn-promo-prev:active,
    .btn-promo-next:active {
        background-color: transparent !important;
        box-shadow: none !important;
    }

.promo-container.promo-sin-promocion {
    padding: 12px 16px;
    border-radius: 6px;
    text-align: center;
    font-style: italic;
    color: #555;
    padding-top: 25px;
    padding-bottom: 25px;
}


    .promo-container.promo-sin-promocion .leyenda-promocion {
        display: inline-block;
        font-size: 0.85rem;
        color: #666;
        background-color: #f5f5f5;
        padding: 4px 8px;
        border-radius: 4px;
        width: 100%;
        max-width: 160px;
        text-align: center;
        margin: 0 auto;
    }


.filtros-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-toggle-filtros {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--rosa-profundo); /* o un color fijo como #e83e8c */
    position: relative;
    top: -15px; /* Subí un poco el ícono */
}

    .btn-toggle-filtros:focus {
        outline: none;
    }

#form-filtros.oculto {
    display: none;
}

/* ==========================
   RESPONSIVE FILTROS - MOBILE
   ========================== */
@media (max-width: 768px) {

    /* El panel deja de ser sticky */
    aside.col-md-2 {
        position: relative;
        top: 0;
        width: 100%;
        border-radius: 12px;
        margin-bottom: 20px;
        box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    }

    /* Listas de checkbox más compactas */
    .filtro-checkbox-list {
        max-height: 120px;
        padding: 10px;
    }

    /* Acomodar los títulos */
    aside h5 {
        text-align: center;
        font-size: 1.1rem;
    }

    /* Botones ocupan toda la fila */
    aside .btn-filtro-aplicar,
    aside .btn-filtro-limpiar {
        width: 100%;
        margin-top: 10px;
    }

    /* que no se corran los checkboxes */
    .form-check-label {
        padding-left: 26px;
        font-size: 0.95rem;
    }
}

/* Imagen del perfume en el popup "Se agregó a tu carrito" */
.popup-perfume-img {
    max-width: 120px; /* ancho máximo visible */
    max-height: 160px; /* alto máximo visible */
    width: auto;
    height: auto;
    object-fit: contain; /* respeta proporciones, sin recortar */
    display: block;
    margin: 0 auto 10px; /* centrado y espacio abajo */
}