@import url('./product_tags.css');


/* Breadcrumb responsive: ocultar niveles intermedios en móvil */
@media (max-width: 767px) {
    .breadcrumb-item.bc-hidden-mobile {
        display: none;
    }
}

#navbarCollapse button.close {
    display: none;
}


#navbarCollapse {
    position: fixed;
    top: 0;
    overflow-y: auto;
    bottom: 0;
    left: -100%;
    width: 80vw;
    background-color: white;
    z-index: 9999;
    transition: all 0.3s ease-in-out;
    padding-left: 20px;
    padding-right: 5px;
    ;
    box-shadow: 3px 2px 10px 6px rgba(0, 0, 0, 0.3);
}

#navbarCollapse i {
    color: black !important;
}

#navbarCollapse.show {
    left: 0;
}

#navbarCollapse button.close {
    display: block;
    font-size: 2.5em;
    padding-right: 10px;
    padding-top: 10px;
}

#navbarCollapse .submenu-detail {
    display: inline;
}

#navbarCollapse .dropdown-menu {
    background-color: transparent;
}

#navbarCollapse .dropdown-menu .dropdown-item {
    color: #4b566b;
}

.cat-mobil {
    display: block;
}

.navbar-sticky.navbar-stuck {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    -webkit-animation: navbar-show .25s;
    animation: navbar-show .25s;
    box-shadow: 0 0.25rem 0.5625rem -0.0625rem rgba(0, 0, 0, 0.03), 0 0.275rem 1.25rem -0.0625rem rgba(0, 0, 0, 0.05);
    z-index: 1030;
}


.btn-search {
    background-color: transparent;
    color: #6c757d;
    border: none;
    border-left: 1px solid #6c757d;
}

.btn-search:hover {
    color: #343a40;
}

.cat-desktop {
    display: flex;
}

@media (max-width: 990px) {
    .cat-desktop {
        display: none;
    }
}

.max-height-14 {
    max-height: 14em;
}

.min-height-14 {
    min-height: 14em;
}

.border-radious-3 {
    border-radius: 3em !important;
}

.border-radious-1 {
    border-radius: 1em !important;
}

.badge-yellow {
    background-color: #FDCA00;
    color: black;
}

.loading {
    position: fixed;
    z-index: 999;
    height: 2em;
    width: 2em;
    overflow: show;
    margin: auto;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

/* Transparent Overlay */
.loading:before {
    content: '';
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(rgba(20, 20, 20, .8), rgba(0, 0, 0, .8));

    background: -webkit-radial-gradient(rgba(20, 20, 20, .8), rgba(0, 0, 0, .8));
}

/* :not(:required) hides these rules from IE9 and below */
.loading:not(:required) {
    /* hide "loading..." text */
    font: 0/0 a;
    color: transparent;
    text-shadow: none;
    background-color: transparent;
    border: 0;
}

.loading:not(:required):after {
    content: '';
    display: block;
    font-size: 10px;
    width: 1em;
    height: 1em;
    margin-top: -0.5em;
    -webkit-animation: spinner 150ms infinite linear;
    -moz-animation: spinner 150ms infinite linear;
    -ms-animation: spinner 150ms infinite linear;
    -o-animation: spinner 150ms infinite linear;
    animation: spinner 150ms infinite linear;
    border-radius: 0.5em;
    -webkit-box-shadow: rgba(255, 255, 255, 0.75) 1.5em 0 0 0, rgba(255, 255, 255, 0.75) 1.1em 1.1em 0 0, rgba(255, 255, 255, 0.75) 0 1.5em 0 0, rgba(255, 255, 255, 0.75) -1.1em 1.1em 0 0, rgba(255, 255, 255, 0.75) -1.5em 0 0 0, rgba(255, 255, 255, 0.75) -1.1em -1.1em 0 0, rgba(255, 255, 255, 0.75) 0 -1.5em 0 0, rgba(255, 255, 255, 0.75) 1.1em -1.1em 0 0;
    box-shadow: rgba(255, 255, 255, 0.75) 1.5em 0 0 0, rgba(255, 255, 255, 0.75) 1.1em 1.1em 0 0, rgba(255, 255, 255, 0.75) 0 1.5em 0 0, rgba(255, 255, 255, 0.75) -1.1em 1.1em 0 0, rgba(255, 255, 255, 0.75) -1.5em 0 0 0, rgba(255, 255, 255, 0.75) -1.1em -1.1em 0 0, rgba(255, 255, 255, 0.75) 0 -1.5em 0 0, rgba(255, 255, 255, 0.75) 1.1em -1.1em 0 0;
}

/* Animation */

@-webkit-keyframes spinner {
    0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-moz-keyframes spinner {
    0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-o-keyframes spinner {
    0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes spinner {
    0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.category-buttons .btn a>img {
    max-width: 100px;
    max-height: 100px;
    vertical-align: middle;
    background-color: white;
    border: 5px solid white;
    box-shadow: 0px 3px 7px 0px rgb(0 0 0 / 47%);
}

@media (max-width: 990px) {
    .scrolling-wrapper-flexbox {
        overflow-x: auto;
        scroll-behavior: smooth;
        white-space: nowrap;
        padding-bottom: 10px;
    }

    .category-buttons .btn a>img {
        max-width: 60px;
        max-height: 60px;
        vertical-align: middle;
        background-color: white;
        border: 5px solid white;
        box-shadow: 0px 3px 7px 0px rgb(0 0 0 / 47%);
    }
}

.gray-card {
    filter: grayscale(1);
    opacity: 0.7;
}

.btn-scale {
    transition: transform 0.2s ease-in-out;
}

.btn-scale:hover {
    transform: scale(1.1);
}

.product-card.card-static {
    box-shadow: 5px 5px 20px rgb(7 7 7 / 20%);
}

.announce {
    background-color: white;
}

.announce p {
    font-size: 0.9em;
    color: black;
    font-weight: medium;
}

.announce ul>li {
    font-size: 0.9em;
    color: black;
    font-weight: medium;
}

.announce ul>li>a {
    color: black;
}

.gray-card {
    filter: grayscale(1);
    opacity: 0.7;
}

.btn-category {
    position: relative;
}

.btn-category span {
    position: absolute;
    top: 90%;
    opacity: 0;
    font-size: 14px;
    padding-top: 15px;
    left: 50%;
    transform: translateX(-50%);
    transition-duration: 0.3s;
    color: #7d879c;
    font-weight: 500;
}

.btn-category:hover span {
    opacity: 1;
    transition-duration: 0.3s;

}

.min-text-height {
    min-height: 51px;
}

/* Consulta de medios para dispositivos móviles */
@media (max-width: 572px) {

    #search-results,
    #search-status {
        left: 5px !important;
        width: 97% !important;
        top: 117px !important;
    }
}

/* Consulta de medios para dispositivos móviles */
@media (min-width: 573px) and (max-width: 990px) {

    #search-results,
    #search-status {
        left: 0 !important;
        top: 86px !important;
        width: 100% !important;
    }
}

/* Consulta de medios para dispositivos móviles */
@media (min-width: 991px) and (max-width: 1240px) {

    #search-results,
    #search-status {
        left: 0 !important;
        top: 43px !important;
        width: 100% !important;
    }
}

@media (min-width: 991px) {
    #navbarCollapse {
        width: 30vw;
    }
}
/* ===== Sucursales (/branches) — datos nativos visibles (contacto/mapas/WA/horario) ===== */
.branches-page__header h1 {
    font-weight: 700;
    color: #1f2933;
}

.branch-card {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    background: #fff;
}

.branch-card__media {
    position: relative;
    background: #f3f4f6;
}

.branch-card__image-link {
    display: block;
    overflow: hidden;
}

.branch-card__image-link img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
}

.branch-card__overlay-actions {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    display: flex;
    gap: 0.4rem;
    z-index: 2;
}

.branch-card__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: #374151;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.branch-card__icon-btn:hover {
    color: #111827;
    text-decoration: none;
}

.branch-card__icon-btn--wa {
    color: #128c7e;
}

.branch-card__icon-btn--wa:hover {
    color: #075e54;
}

.branch-card__body {
    padding: 0.9rem 1rem 1.1rem;
}

.branch-card__title {
    margin: 0 0 0.75rem;
    font-weight: 700;
    color: #111827;
}

.branch-card__row {
    margin-bottom: 0.65rem;
}

.branch-card__row:last-child {
    margin-bottom: 0;
}

.branch-card__label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 0.15rem;
}

.branch-card__value {
    display: block;
    font-size: 0.92rem;
    line-height: 1.35;
    color: #1f2937;
    word-break: break-word;
}

a.branch-card__value {
    text-decoration: none;
}

a.branch-card__value:hover {
    text-decoration: underline;
}

.branch-card__value--wa {
    color: #128c7e;
    font-weight: 600;
}

.branch-card__value--wa:hover {
    color: #075e54;
}

@media (max-width: 575.98px) {
    .branch-card__value {
        font-size: 0.95rem;
    }
}

/* ---------------------------------------------------------------------------
   Focus visible (teclado): anillo rojo Covepa
   Permite ver el foco al navegar con Tab sin marcar clics de mouse.
--------------------------------------------------------------------------- */
:root {
    --covepa-focus-ring: #E00D0B;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible,
[role="tab"]:focus-visible,
[role="link"]:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible,
.tns-controls button:focus-visible,
.navbar-tool:focus-visible,
.navbar-tool-icon-box:focus-visible,
.btn-scroll-top:focus-visible,
.cz-handheld-toolbar-item:focus-visible {
    outline: 3px solid var(--covepa-focus-ring) !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 1px #ffffff !important;
}

/* Controles del carrusel: el outline suele quedar cortado por overflow */
.tns-controls button:focus-visible {
    outline-offset: 2px !important;
    z-index: 5;
    position: relative;
}

/* Logo header: 109×60 = mitad exacta de 218×120 (misma relación 109:60) */
.navbar-brand-logo,
.navbar-brand-logo--sm {
    display: block;
    width: 109px;
    height: 60px;
    aspect-ratio: 109 / 60;
    object-fit: contain;
}

/* Filtros: scroll nativo + lista vertical (una opción por fila) */
.cz-filter-scroll {
    max-height: 12rem;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.cz-filter-scroll .cz-filter-list {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.5rem;
    width: 100%;
    max-height: none;
    column-count: 1;
    columns: 1;
}

.cz-filter-scroll .cz-filter-item {
    display: flex !important;
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    margin: 0;
    float: none;
}

.cz-filter-scroll .cz-filter-item .custom-control {
    display: block;
    width: 100%;
    margin-right: 0;
}

.cz-filter-scroll .cz-filter-item .custom-control-label {
    white-space: normal;
}

/* Thumbnail ficha producto (tab specs): ratio 1:1, sin distorsión */
.product-specs-thumb {
    display: block;
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center;
}

/* Galería: thumbs y preview mantienen proporción */
.cz-thumblist-item > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    aspect-ratio: 1 / 1;
}

.cz-preview-item > img.cz-image-zoom {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center;
}

/* Ficha producto: títulos dentro de la descripción con scroll (reemplazo GTM) */
.product-details div[style*="overflow-y"] h2 {
    font-size: 1.3rem !important;
}

.product-details div[style*="overflow-y"] h3 {
    font-size: 1.2rem !important;
}

/* Zoom producto (Drift): quita fondo oscuro / línea al hacer zoom (reemplazo GTM) */
.drift-zoom-pane {
    background-color: transparent !important;
}

/* Headings de widgets: estilo en el elemento real (H2/H3), no en un H3/H6 visual */
.widget > h2.widget-title {
    margin-bottom: 1.125rem;
    font-size: 1.0625rem;
    font-weight: 500;
}

h3.widget-product-title {
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Footer: título de medios de pago (H2 con el look del H6 anterior) */
footer h2.text-white {
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1.2;
}

/* Ficha producto: H2 de entrega con el look del accordion H3 */
.accordion h2.accordion-heading {
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 500;
}
