
/* ============================================
    GENERAL
    ============================================ */

body {
    font-family: Arial, sans-serif;
    color: #222;
    background-color: #fff;
}

.search-page {
    padding: 40px 0 70px;
}


/* ============================================
    BREADCRUMB
    ============================================ */

.breadcrumb-wrapper {
    /* background-color: #faf7f5; */
    background-color: #f4f4f1;
    border-bottom: 1px solid #e5e5e5;
    padding: 14px 0;
}

.custom-breadcrumb {
    font-size: 14px;
}

.custom-breadcrumb .breadcrumb-item a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.custom-breadcrumb .breadcrumb-item a:hover {
    color: #7A1F3D;
}

.custom-breadcrumb .breadcrumb-item.active {
    color: #7A1F3D;
    font-weight: 500;
}


/* ============================================
    TITULO
    ============================================ */

.search-header {
    margin-bottom: 35px;
}

.search-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.search-description {
    color: #777;
    margin-bottom: 0;
}


/* ============================================
    SIDEBAR
    ============================================ */

.filters-sidebar {
    border: 1px solid #e5e5e5;
    padding: 24px;
    position: sticky;
    top: 20px;
}

.filter-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 18px;
}

.filter-section {
    padding-bottom: 24px;
}

.filter-section + .filter-section {
    border-top: 1px solid #e5e5e5;
    padding-top: 24px;
}


/* ============================================
    RADIO BUTTONS
    ============================================ */

.category-option {
    margin-bottom: 11px;
}

.category-option:last-child {
    margin-bottom: 0;
}

.category-option .form-check-label {
    color: #555;
    cursor: pointer;
    font-size: 14px;
}

.category-option .form-check-input {
    cursor: pointer;
}

.category-option .form-check-input:checked {
    background-color: #7A1F3D;
    border-color: #7A1F3D;
}

.category-option .form-check-input:focus {
    box-shadow: 0 0 0 0.15rem rgba(122, 31, 61, 0.15);
    border-color: #7A1F3D;
}


/* ============================================
    FILTRO DE PRECIO
    ============================================ */

.price-values {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

.price-slider {
    position: relative;
    height: 20px;
}

.price-slider input[type="range"] {
    position: absolute;
    width: 100%;
    height: 5px;
    top: 5px;
    left: 0;
    pointer-events: none;
    appearance: none;
    background: transparent;
}

.price-slider input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #7A1F3D;
    cursor: pointer;
    pointer-events: auto;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #7A1F3D;
}

.price-slider input[type="range"]::-moz-range-thumb {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #7A1F3D;
    cursor: pointer;
    pointer-events: auto;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #7A1F3D;
}

.price-slider-track {
    position: absolute;
    width: 100%;
    height: 5px;
    top: 5px;
    border-radius: 5px;
    background-color: #ddd;
}


/* ============================================
    MARCAS
    ============================================ */

.brand-option {
    margin-bottom: 11px;
}

.brand-option:last-child {
    margin-bottom: 0;
}

.brand-option .form-check-label {
    color: #555;
    cursor: pointer;
    font-size: 14px;
}

.brand-option .form-check-input {
    cursor: pointer;
}

.brand-option .form-check-input:checked {
    background-color: #7A1F3D;
    border-color: #7A1F3D;
}

.brand-option .form-check-input:focus {
    box-shadow: 0 0 0 0.15rem rgba(122, 31, 61, 0.15);
    border-color: #7A1F3D;
}


/* ============================================
    BOTON APLICAR FILTROS
    ============================================ */

.apply-filters {
    width: 100%;
    background-color: #7A1F3D;
    border-color: #7A1F3D;
    color: #fff;
    padding: 11px 20px;
    transition: all 0.2s ease;
}

.apply-filters:hover {
    background-color: #5C1830;
    border-color: #5C1830;
    color: #fff;
}


/* ============================================
    ORDENAMIENTO
    ============================================ */

.results-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.results-count {
    color: #777;
    font-size: 14px;
}

.results-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-select {
    min-width: 240px;
    border-color: #ddd;
    border-radius: 4px;
    font-size: 14px;
    padding: 10px 35px 10px 12px;
}

.sort-select:focus {
    border-color: #7A1F3D;
    box-shadow: 0 0 0 0.15rem rgba(122, 31, 61, 0.12);
}

.view-all-button {
    border: 1px solid #222;
    background-color: #222;
    color: #fff;
    padding: 10px 18px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.view-all-button:hover {
    background-color: #7A1F3D;
    border-color: #7A1F3D;
    color: #fff;
}


/* ============================================
    PRODUCT CARD
    ============================================ */

.product-card {
    border: 1px solid #e5e5e5;
    background-color: #fff;
    height: 100%;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.product-card:hover {
    /* box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08); */
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    background-color: #f7f7f7;
}

.product-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image {
    transform: scale(1.04);
}

.favorite-button {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.95);
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    transition: all 0.2s ease;
}

.favorite-button:hover,
.favorite-button.active {
    color: #A52A3A;
}

.product-info {
    padding: 18px;
}

.product-category {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.product-name {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #222;
}

.product-description {
    color: #777;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.product-rating {
    color: #d39e00;
    font-size: 13px;
    margin-bottom: 10px;
}

.product-rating span {
    color: #888;
    margin-left: 3px;
}

.product-price {
    font-size: 18px;
    font-weight: 600;
    color: #7A1F3D;
    margin-bottom: 15px;
}

.add-cart-button {
    background-color: #222;
    border-color: #222;
    border-radius: 4px;
    padding: 10px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.add-cart-button:hover {
    background-color: #7A1F3D;
    border-color: #7A1F3D;
}


/* ============================================
    PAGINACIÓN
    ============================================ */

.pagination-wrapper {
    margin-top: 40px;
}

.page-link {
    color: #7A1F3D;
    border-color: #e5e5e5;
}

.page-item.active .page-link {
    background-color: #7A1F3D;
    border-color: #7A1F3D;
}

.page-link:hover {
    color: #5C1830;
}


/* ============================================
    RESPONSIVE
    ============================================ */

@media (max-width: 991.98px) {

    .filters-sidebar {
        position: static;
        margin-bottom: 30px;
    }

    .results-toolbar {
        flex-wrap: wrap;
    }

}

@media (max-width: 767.98px) {

    .search-page {
        padding: 30px 0 50px;
    }

    .search-title {
        font-size: 24px;
    }

    .results-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .results-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .sort-select {
        width: 100%;
    }

    .view-all-button {
        width: 100%;
    }

    .product-image {
        height: 280px;
    }

}
