﻿@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");
:root {
    --navbar-height: 70px;
}



.modal-backdrop {
    z-index: 1075;
}

.modal {
    z-index: 1080;
}

#hero-grid-container {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 3rem;
    padding-bottom: 3rem;
    margin-top: 0;
    margin-bottom: 0;
    background-color: white !important;
}

#hero {
    background-color: transparent !important;
    padding-top: 0 !important;
    height: auto !important;
}

    #hero .row {
        text-align: left;
    }

    #hero:before {
        background: rgba(0, 0, 0, 0) !important;
    }

#floating-filter-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1070;
    width: 55px;
    height: 55px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: bottom 0.3s ease-in-out;
}

.filter-btn-raised {
    bottom: 160px !important;
}

@media (min-width: 992px) {
    #floating-filter-btn {
        display: none !important;
    }

    #filter-placeholder {
        padding-left: 1rem;
        padding-right: 1rem;
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding-top: 3rem;
    }
}

@media (max-width: 991.98px) {
    .col-lg-10 {
        flex: 0 0 auto;
        width: 100%;
    }
}

.product-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: #333;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
    text-align: center;
}

.card-body {
    justify-content: space-between !important;
}


.product-card {
    border: 1px solid #ddd;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

    .product-card:hover {
        transform: scale(1.03);
        box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.2) !important;
    }

    .product-card.comparing {
        box-shadow: 0 0 0 3px #201544 !important;
    }

#main-banner-container {
    height: auto;
    overflow: hidden;
    margin-top: 70px;
    margin-bottom: 0 !important;
    height: auto !important;
}



#main-banner-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.product-image {
    max-width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    margin-bottom: 10px;
}

.product-description {
    font-size: 0.9rem;
    color: #555;
    margin-top: 5px;
    text-align: left !important;
}

.card-body .d-flex {
    width: 100%;
}

.btn-info {
    background-color: #201544;
    border-color: #201544;
    color: white;
}

    .btn-info:hover {
        background-color: #3f316f;
        border-color: #3f316f;
        color: white;
    }

.btn-outline-info {
    color: #201544;
    border-color: #201544;
}

    .btn-outline-info:hover {
        background-color: #201544;
        color: white;
    }

.btn.selected {
    background-color: #201544;
    border-color: #201544;
    color: white !important;
}

    .btn.selected:hover {
        background-color: #3f316f;
        border-color: #3f316f;
    }

/* Ajuste para el color verde de "Comparar" cuando hay 2+ productos */
.btn-success {
    background-color: #198754;
    border-color: #198754;
}

.pagination {
    margin-bottom: 0;
    gap: 10px;
}

    .pagination .page-item {
        margin: 0;
    }

    .pagination .page-link {
        border-radius: 50% !important;
        width: 50px;
        height: 50px;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
        color: #555;
        border: 1px solid #C0C0C0;
        background-color: white;
        transition: all 0.2s;
        font-size: 1.1rem;
    }

    .pagination .page-item.active .page-link {
        color: #555;
        background-color: white;
        border-color: #555;
        border-width: 2px;
        font-weight: 700;
        box-shadow: none;
    }

    .pagination .page-item:not(.active) .page-link:hover {
        color: #201544;
        border-color: #201544;
        background-color: #f8f9fa;
    }

.color-circle {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

.filter-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 5px 0;
    border-left: 3px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
}

    .filter-link:hover {
        color: #201544;
        background-color: #f8f9fa;
    }

.active-filter {
    font-weight: 700 !important;
    color: #201544 !important;
}

/* --- Estilos de Barra de Comparación Minimalista y Elegante --- */
#comparison-bar {
    height: auto;
    min-height: 60px;
    z-index: 1060;
    display: none;
    align-items: center;
    padding: 0.5rem 1rem !important;
    width: 100%;
    left: 0;
    flex-wrap: wrap;
    background-color: white !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05) !important;
}

#comparison-status {
    color: #555 !important;
}

    #comparison-status span {
        font-weight: 700;
    }

#comparison-bar .row {
    width: 100%;
}

#comparison-bar #comparison-slots {
    flex-wrap: wrap;
    gap: 0.5rem;
}

#comparison-bar .col-8 {
    flex-grow: 1;
}

#comparison-bar .col-4 {
    flex-shrink: 0;
    padding-left: 0.5rem;
}

/* Estilos específicos para la sección de botones en móvil */
@media (max-width: 575.98px) {
    #comparison-bar .col-4 {
        width: 100%;
        margin-top: 0.5rem;
    }

    #start-compare-btn, #clear-compare-btn {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    #comparison-bar .d-flex.flex-column.flex-sm-row {
        flex-direction: column !important;
    }
}

/* Estilos de Slots de Comparación Minimalista */
.comparison-slot {
    height: 40px;
    width: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    position: relative;
    overflow: visible;
    flex-shrink: 0;
    transition: all 0.2s ease-in-out;
}

    .comparison-slot.active {
        border-style: solid;
        border-color: #A0A0A0;
        background-color: #f3f3f3;
    }

    .comparison-slot.active-product {
        border-color: #201544;
        border-style: solid;
        border-width: 2px;
        background-color: white;
    }

    .comparison-slot .product-initial-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .comparison-slot .bi-box-seam {
        font-size: 1.2rem;
        color: #A0A0A0;
    }

.remove-product-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    padding: 0;
    width: 24px;
    height: 24px;
    font-size: 12px;
    line-height: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 1100;
    background-color: #dc3545;
    color: white;
    border: 1px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    cursor: pointer;
}

    .remove-product-btn:hover {
        background-color: #c82333;
    }

/* Ajuste para el botón Limpiar */
#clear-compare-btn {
    color: #201544;
    border-color: #201544;
    transition: all 0.2s;
}

    #clear-compare-btn:hover {
        background-color: #201544;
        color: white;
    }


