﻿/* DROPDOWN CATEGORIAS */
.custom-category-dropdown {
    position: relative;
}

.custom-category-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 320px;
    max-height: 320px;
    overflow-y: auto;
    background: #cfe5fb;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 18px 40px rgba(5, 61, 115, .18);
    padding: 14px 0;
    z-index: 1050;
    display: none;
}

.custom-category-menu::-webkit-scrollbar {
    width: 8px;
}

.custom-category-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 8px;
}

.custom-category-menu::-webkit-scrollbar-thumb {
    background: rgba(5, 61, 115, 0.35);
    border-radius: 8px;
}

.custom-category-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(5, 61, 115, 0.55);
}

.header-search-row .search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
}

.home-sucursal-select {
    min-width: 210px;
    max-width: 260px;
    position: relative;
}

.home-sucursal-select #homeSucursalSelect {
    width: 100%;
}

#homeSucursalToggle {
    width: 100%;
    justify-content: flex-start;
    height: 44px;
    border-radius: 10px;
    white-space: nowrap;
    text-align: left;
}

#homeSucursalText {
    flex: 1 1 auto;
    text-align: left;
}

#homeSucursalMenu {
    top: calc(100% + 8px);
    left: 0;
    min-width: 100%;
    width: 260px;
    max-height: 280px;
    overflow-y: auto;
    display: none;
    background: #fff;
    border: 1px solid rgba(15, 77, 140, .12);
    border-radius: 12px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, .18);
    padding: 8px;
}

#homeSucursalMenu.show {
    display: block;
}

#homeSucursalMenu .dropdown-item {
    font-size: .88rem;
    color: #123d72;
    border-radius: 10px;
}

#homeSucursalMenu .home-sucursal-option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    margin: 0;
    padding: 8px 10px;
    cursor: pointer;
    white-space: normal;
    transition: background .15s ease, color .15s ease;
}

#homeSucursalMenu .home-sucursal-option + .home-sucursal-option {
    margin-top: 4px;
}

#homeSucursalMenu .home-sucursal-option:hover {
    background: #f2f7ff;
}

#homeSucursalMenu .home-sucursal-option.is-selected {
    background: #eaf4ff;
    color: #004F9F;
    font-weight: 700;
}

#homeSucursalMenu .ck-home-sucursal {
    flex: 0 0 auto;
    margin: 0;
}

#homeSucursalMenu .home-sucursal-name {
    line-height: 1.25;
}

.product-title-link {
    border: 0;
    background: transparent;
    padding: 0;
    color: #212529;
    font: inherit;
    font-weight: inherit;
    text-align: left;
    line-height: inherit;
    cursor: pointer;
}

.product-title-link:hover {
    color: #004F9F;
}

.product-title-link.is-disabled,
.product-hover-image.is-disabled {
    cursor: not-allowed;
}

.product-title-link.is-disabled {
    color: #212529;
}



.header-search-row #homeSearchInput {
    flex: 1 1 auto;
    min-width: 180px;
}

    .custom-category-menu.show {
        display: block;
    }

.custom-category-item {
    width: 100%;
    border: 0;
    background: transparent;
    color: #052e57;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 500;
    transition: background .2s ease, padding-left .2s ease;
}

    .custom-category-item:hover {
        background: rgba(255,255,255,.45);
        padding-left: 26px;
    }

    .custom-category-item i {
        font-size: .95rem;
        opacity: .8;
    }

/* CINTA DE CATEGORIAS */
.home-category-strip-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.home-category-strip {
    background: var(--efe-navy);
    border-radius: 0;
    padding: 14px 8px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    scroll-behavior: smooth;
    white-space: nowrap;
    flex: 1 1 auto;
}

    .home-category-strip::-webkit-scrollbar {
        display: none;
    }

.home-category-chip {
    border: 1px solid rgba(255,255,255,.12);
    background: transparent;
    color: #fff;
    border-radius: 999px;
    padding: 10px 14px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all .2s ease;
    font-size: .92rem;
    flex: 0 0 auto;
}

    .home-category-chip:hover {
        background: rgba(255,255,255,.08);
        transform: translateY(-1px);
    }

.strip-scroll-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #b8cbe0;
    background: #f3f5f7;
    color: #7aa7d8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    transition: all .2s ease;
    padding: 0;
}

    .strip-scroll-btn:hover {
        background: #ffffff;
        color: #4b86c5;
        border-color: #9fbfe0;
    }

    .strip-scroll-btn:disabled {
        opacity: .45;
        cursor: not-allowed;
    }


/* HERO */
.hero-product-card-custom {
    min-height: 100%;
    background: rgba(255,255,255,.12);
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

    .hero-product-card-custom img {
        height: 150px;
        object-fit: cover;
    }

/* BLOQUES CATEGORIA */
.category-showcase-section {
    scroll-margin-top: 120px;
}

.home-offer-indicators {
    display: flex;
    gap: 8px;
    align-items: center;
}

.home-offer-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f1c3c8;
    display: inline-block;
}

.home-offer-indicator.active {
    width: 22px;
    border-radius: 999px;
    background: #0572d8;
}

#homeOfferModal .modal-content {
    max-width: 1320px;
    margin: 0 auto;
}

#homeOfferModal .added-product-card {
    max-width: 1260px;
    padding: 28px 32px;
}

#homeOfferModal .added-product-img {
    max-width: 240px;
    height: 170px;
}

#homeOfferModal .added-name {
    font-size: 1.45rem;
}

#homeOfferModal .added-price {
    font-size: 2.8rem;
}

@media (max-width: 767.98px) {
    #homeOfferModal .modal-dialog {
        margin: 12px;
    }

    #homeOfferModal .modal-content {
        max-width: calc(100vw - 24px);
    }

    #homeOfferModal .added-product-card {
        max-width: 100%;
        padding: 18px 16px;
    }

    #homeOfferModal .added-product-img {
        max-width: 180px;
        height: 130px;
    }

    #homeOfferModal .added-name {
        font-size: 1.1rem;
    }

    #homeOfferModal .added-price {
        font-size: 2rem;
    }
}

.category-products-frame {
    min-height: 420px;
}

.category-slider-nav {
    display: flex;
    gap: 8px;
}

.category-nav-btn {
    width: 42px;
    height: 42px;
    border: 1px solid #c7d8ea;
    border-radius: 50%;
    background: #fff;
    color: var(--efe-blue);
    transition: all .2s ease;
}

    .category-nav-btn:hover {
        background: var(--efe-blue);
        color: #fff;
        border-color: var(--efe-blue);
    }

.home-product-card {
    border-radius: 18px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .home-product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 28px rgba(17,53,92,.12);
    }

    .home-product-card img {
        background: #f7f9fb;
    }

.product-card-category {
    font-size: .78rem;
    font-weight: 700;
    color: var(--efe-blue);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 6px;
}

.product-card-title {
    min-height: 48px;
    line-height: 1.35;
}

.product-card-brand {
    font-size: .85rem;
    color: #718295;
    margin-bottom: 8px;
    min-height: 20px;
}

.product-card-branch {
    min-height: 18px;
    font-size: .78rem;
    color: #6b7280;
    margin-top: -4px;
    margin-bottom: 8px;
}

#homeSucursalSelect {
    max-width: 180px;
    border: 0;
    border-right: 1px solid #dbe4f0;
    border-radius: 0;
    font-size: .82rem;
}

/* AJUSTE GENERAL SECCION */
.home-main-wrapper {
    background: #f3f5f7;
}

/* RESPONSIVE */
@media (max-width: 991.98px) {
    .custom-category-menu {
        width: 280px;
    }

    .category-products-frame {
        min-height: 380px;
    }
}

@media (max-width: 767.98px) {
    .custom-category-menu {
        width: min(90vw, 320px);
    }

    .home-category-strip {
        padding: 10px 6px;
    }

    .strip-scroll-btn {
        width: 32px;
        height: 32px;
    }

    .hero-product-card-custom img {
        height: 120px;
    }

    .category-nav-btn {
        width: 38px;
        height: 38px;
    }
}
.header-search-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

    .header-search-row .custom-category-dropdown {
        flex: 0 0 auto;
        position: relative;
    }

    .header-search-row .search-box {
        flex: 1 1 auto;
        min-width: 0;
        display: flex;
        align-items: stretch;
    }

        .header-search-row .search-box .form-control {
            border-radius: 10px 0 0 10px;
            height: 44px;
            border: 0;
            box-shadow: none;
        }

        .header-search-row .search-box .search-btn {
            width: 52px;
            height: 44px;
            border-radius: 0 10px 10px 0;
            background: #f6b800;
            border: 0;
            color: #052e57;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

            .header-search-row .search-box .search-btn:hover {
                background: #e4ab00;
                color: #052e57;
            }

.category-btn {
    height: 44px;
    border-radius: 10px;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .header-search-row {
        flex-wrap: wrap;
    }

        .header-search-row .custom-category-dropdown,
        .header-search-row .search-box {
            width: 100%;
        }
}
/*para las flechas y dots en las cards */
.product-card-image-wrap {
    position: relative;
    margin-bottom: 10px;
}

    .product-card-image-wrap img.product-hover-image {
        width: 100%;
        height: 220px;
        object-fit: contain;
        display: block;
        background: #f8f8f8;
        border-radius: 12px;
    }

.product-image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 64px;
    border: 0;
    background: rgba(255,255,255,.92);
    color: #123d72;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
}

    .product-image-nav.prev {
        left: 8px;
    }

    .product-image-nav.next {
        right: 8px;
    }

    .product-image-nav:hover {
        background: #fff;
    }

.product-image-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 2;
}

.product-image-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 0;
    background: rgba(18,61,114,.35);
    padding: 0;
}

.product-image-dot.active {
        background: #0d62b7;
    }

/*loadin para cargar productoc*/
.home-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 420px;
    background: rgba(255, 255, 255, 0.03);
}

.home-catalog-layout {
    align-items: flex-start;
}

.home-content-shell {
    max-width: 1680px;
}

.home-filter-panel {
    position: sticky;
    top: 18px;
    background: #fff;
    border: 1px solid #eed6d6;
    border-radius: 20px;
    padding: 20px 18px;
    box-shadow: 0 14px 28px rgba(40, 17, 17, 0.06);
}

.home-filter-block + .home-filter-block {
    margin-top: 18px;
}

.home-filter-title {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #2f1111;
    font-size: 1.05rem;
    font-weight: 800;
}

.home-filter-body {
    padding-top: 14px;
}

.home-filter-body.is-collapsed {
    display: none;
}

.home-filter-separator {
    height: 1px;
    background: linear-gradient(90deg, rgba(198,40,40,0.14) 0%, rgba(198,40,40,0.4) 45%, rgba(198,40,40,0.14) 100%);
    margin: 18px 0;
}

.home-price-values,
.home-price-meta,
.home-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.home-price-values {
    font-weight: 700;
    color: #8b2222;
}

.home-price-range-box {
    display: grid;
    gap: 10px;
    margin: 14px 0;
}

.home-price-range-box input[type="range"] {
    width: 100%;
    accent-color: #0572d8;
}

.home-price-meta small {
    color: #6f6767;
}

.home-filter-search-wrap {
    margin-bottom: 12px;
}

.home-filter-search-wrap .form-control {
    border-radius: 12px;
    border-color: #f0d6d6;
}

.home-brand-filter-list {
    display: grid;
    gap: 10px;
    max-height: 410px;
    overflow-y: auto;
    padding-right: 4px;
}

.home-filter-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .96rem;
    color: #3d2a2a;
}

.home-filter-check-item input {
    width: 16px;
    height: 16px;
    accent-color: #0572d8;
}

.home-filter-check-item small {
    color: #8a7474;
}

.home-model-filter-state {
    color: #856d6d;
    font-size: .92rem;
    margin-bottom: 12px;
}

.home-model-filter-list {
    display: grid;
    gap: 10px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
}

.home-model-filter-list.is-disabled {
    opacity: .45;
    pointer-events: none;
}

.home-filter-empty {
    color: #8a7474;
    font-size: .92rem;
}

.home-results-header {
    background: #fff;
    border: 1px solid #f1dcdc;
    border-radius: 18px;
    padding: 15px 18px;
    color: #351313;
}

.home-results-active-filter {
    color: #9a4b4b;
    font-weight: 600;
    text-align: right;
}

.home-category-chip.is-active {
    background: #0572d8;
    border-color: #0572d8;
    color: #fff;
}

.hero-buy-btn {
    min-width: 220px;
    border-radius: 14px;
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .home-content-shell {
        max-width: 100%;
    }

    .home-filter-panel {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .home-results-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-results-active-filter {
        text-align: left;
    }
}

    .home-loading-overlay.d-none {
        display: none !important;
    }

.home-loading-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
}

.home-loading-spinner {
    width: 3rem;
    height: 3rem;
    border-width: 0.35em;
}

#homeLoadingText {
    font-size: 1rem;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,.22);
}

#homeSearchSpinner.d-none {
    display: none !important;
}

/* ===== Paleta comercial rojo / naranja / gris ===== */
.custom-category-menu {
    background: #f7e3e3;
    box-shadow: 0 18px 40px rgba(142, 28, 28, .14);
}

.custom-category-item {
    color: #5c1d1d;
}

.custom-category-item:hover {
    background: rgba(255,255,255,.60);
}

.home-category-strip {
    background: linear-gradient(90deg, #1f1f1f 0%, #2c2c2c 100%);
}

.home-category-chip {
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
}

.home-category-chip:hover {
    background: rgba(255,255,255,.08);
}

.strip-scroll-btn {
    border: 1px solid #d7d7db;
    background: #f6f6f7;
    color: #053d73;
}

.strip-scroll-btn:hover {
    background: #fff;
    color: #053d73;
    border-color: #cfcfd4;
}

.hero-product-card-custom {
    background: rgba(255,255,255,.10);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.category-nav-btn {
    border: 1px solid #d9d9de;
    background: #fff;
    color: #0572d8;
}

.category-nav-btn:hover {
    background: #0572d8;
    color: #fff;
    border-color: #0572d8;
}

.home-product-card:hover {
    box-shadow: 0 14px 28px rgba(31,31,31,.10);
}

.product-card-category {
    color: #0572d8;
}

.product-card-brand {
    color: #757575;
}

.home-main-wrapper {
    background: #f4f4f5;
}

.header-search-row .search-box .search-btn {
    background: #f4a261;
    color: #1f1f1f;
}

.header-search-row .search-box .search-btn:hover {
    background: #ee9448;
    color: #1f1f1f;
}

.product-card-image-wrap img.product-hover-image {
    background: #f7f7f7;
}

.product-image-nav {
    background: rgba(255,255,255,.94);
    color: #053d73;
}

.product-image-dot {
    background: rgba(142,28,28,.28);
}

.product-image-dot.active {
    background: #0572d8;
}

.home-loading-box,
#homeLoadingText {
    color: #ffffff;
}

/* Overrides azul/celeste */
.custom-category-menu {
    background: #eaf4ff;
    box-shadow: 0 18px 40px rgba(5, 114, 216, .14);
}

.custom-category-item {
    color: #123d72;
}

.custom-category-item:hover {
    background: rgba(255,255,255,.72);
    color: #0572d8;
}

.home-filter-panel,
.home-results-header {
    border-color: #d7e8f7;
    box-shadow: 0 14px 28px rgba(12, 60, 110, 0.06);
}

.home-filter-title,
.home-results-header {
    color: #133b63;
}

.home-filter-separator {
    background: linear-gradient(90deg, rgba(5,114,216,0.10) 0%, rgba(5,114,216,0.34) 45%, rgba(5,114,216,0.10) 100%);
}

.home-price-values,
.custom-category-item:hover,
.product-card-category {
    color: #0572d8;
}

.home-filter-search-wrap .form-control {
    border-color: #d8e7f6;
}

.home-filter-check-item {
    color: #254665;
}

.home-filter-check-item small,
.home-model-filter-state,
.home-filter-empty,
.home-results-active-filter {
    color: #6d88a3;
}

/* Categorías verticales */
.home-categories-vertical {
    background: linear-gradient(135deg, #003d82 0%, #004a9e 100%);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 61, 130, 0.15);
}

.home-category-vertical-list {
    display: flex;
    flex-direction: column;
    max-height: 630px; /* Aproximadamente 15 items * 42px de altura */
    overflow-y: auto;
    overflow-x: hidden;
}

/* Personalizar scrollbar para categorías */
.home-category-vertical-list::-webkit-scrollbar {
    width: 8px;
}

.home-category-vertical-list::-webkit-scrollbar-track {
    background: rgba(255,255,255,.05);
}

.home-category-vertical-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.2);
    border-radius: 4px;
}

.home-category-vertical-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,.3);
}

.home-category-vertical-item {
    border: none;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: transparent;
    color: #fff;
    padding: 14px 16px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all .2s ease;
    font-size: .92rem;
    text-align: left;
    width: 100%;
    min-height: 42px;
}

.home-category-vertical-item:last-child {
    border-bottom: none;
}

.home-category-vertical-item:hover {
    background: rgba(255,255,255,.12);
    padding-left: 20px;
}

.home-category-vertical-item.is-active {
    background: rgba(13, 110, 253, 0.2);
    border-left: 3px solid #0d6efd;
    padding-left: 13px;
}

.home-category-vertical-item i {
    font-size: 1.1rem;
}

