﻿.table > thead > tr > td.active,
.table > tbody > tr > td.active,
.table > tfoot > tr > td.active,
.table > thead > tr > th.active,
.table > tbody > tr > th.active,
.table > tfoot > tr > th.active,
.table > thead > tr.active > td,
.table > tbody > tr.active > td,
.table > tfoot > tr.active > td,
.table > thead > tr.active > th,
.table > tbody > tr.active > th,
.table > tfoot > tr.active > th {
    background-color: #808080;
}

.wpfloat {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 150px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
}

    .wpfloat:focus {
        background-color: #25d366;
        color: #FFF;
    }

.wpfloatico {
    margin-top: 16px;
}

@media screen and (max-width: 991px) {
    .wpfloat {
        position: fixed;
        width: 50px;
        height: 50px;
        bottom: 3%;
        right: 3%;
        background-color: #25d366;
        color: #FFF;
        border-radius: 50px;
        text-align: center;
        font-size: 30px;
        box-shadow: 2px 2px 3px #999;
        z-index: 100;
    }

    .wpfloatico {
        margin-top: 10px;
    }
}

.back-to-top.is-visible {
    opacity: 1;
    bottom: 65px;
    pointer-events: all;
}

.modalog {
    width: 500px;
}


/*Notificaciones*/

.CtrlNotify {
    min-width: 550px;
    z-index: 999999;
}

.CtrlAreaNotify {
    position: fixed;
    top: 3%;
    left: 50%;
    margin-left: -225px;
    z-index: 999999;
}


@media only screen and (max-width : 540px) {
    .CtrlNotify {
        min-width: 300px;
        max-width: 350px;
        margin-left: 5%;
    }

    .CtrlAreaNotify {
        position: fixed;
        top: 10%;
        left: 50%;
        margin-left: -190px;
        z-index: 999999;
    }
}

/*Prompt*/

.prompt {
    background-image: url('../images/launcher-icon-4x.png');
    background-position-x: 1rem;
    background-position-y: 1.5rem;
    background-repeat: no-repeat;
    background-size: auto 40%;
    background-color: #ffffff;
    box-shadow: 0 20px 40px 0 rgba(91, 107, 174, 0.15);
    padding: 1.5rem 1rem 0.5rem 5rem;
    position: fixed;
    transition: all 0.5s ease-in-out;
    width: 100vw;
    z-index: 9;
}

    .prompt.show {
        transition-delay: 3s;
        bottom: 0;
        opacity: 1;
    }

    .prompt.hide {
        bottom: -100%;
        opacity: 0;
    }

body:not(.home-page) .hdr-wrap .header-banners {
    display: block;
}

.btn-decor--sm {
    font-size: 10px;
    cursor: pointer;
}

/* Centra el contenedor de Google */
.g_id_signin {
    display: flex;
    justify-content: center;
}

    .g_id_signin iframe {
        margin: 0 auto !important;
    }

/* =============================================
   DropAutoComplete - Autocomplete Dropdown
   ============================================= */

/* Variables por defecto (tema claro) */
:root {
    --dac-bg: #ffffff;
    --dac-bg-alt: #f5f5f5;
    --dac-border: #ddd;
    --dac-text: #333;
    --dac-text-secondary: #666;
    --dac-text-muted: #999;
    --dac-hover-bg: rgba(176, 120, 28, 0.1);
    --dac-active-bg: rgba(176, 120, 28, 0.18);
    --dac-accent: #B0781C;
    --dac-shadow: rgba(0, 0, 0, 0.15);
    --dac-scrollbar-thumb: #ccc;
    --dac-scrollbar-track: #f5f5f5;
    --dac-kbd-bg: #eee;
    --dac-kbd-border: #ccc;
    --dac-kbd-text: #555;
}

/* Tema oscuro */
body.dac-dark {
    --dac-bg: #1e1e1e;
    --dac-bg-alt: #292929;
    --dac-border: #2d2d2d;
    --dac-text: #fff;
    --dac-text-secondary: #ccc;
    --dac-text-muted: #656565;
    --dac-hover-bg: rgba(176, 120, 28, 0.15);
    --dac-active-bg: rgba(176, 120, 28, 0.25);
    --dac-accent: #B0781C;
    --dac-shadow: rgba(0, 0, 0, 0.4);
    --dac-scrollbar-thumb: #464646;
    --dac-scrollbar-track: #1e1e1e;
    --dac-kbd-bg: #1e1e1e;
    --dac-kbd-border: #464646;
    --dac-kbd-text: #ccc;
}

/* Wrapper principal */
.dac-wrapper {
    position: relative;
    width: 100%;
}

/* Input con icono de busqueda */
.dac-input-wrap {
    position: relative;
}

    .dac-input-wrap .form-control {
        padding-right: 40px;
    }

    .dac-input-wrap .dac-search-icon {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--dac-text-muted);
        font-size: 14px;
        pointer-events: none;
        transition: color 0.2s ease;
    }

    .dac-input-wrap .form-control:focus ~ .dac-search-icon {
        color: var(--dac-accent);
    }

    .dac-input-wrap .dac-clear-btn {
        position: absolute;
        right: 36px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--dac-text-muted);
        font-size: 12px;
        cursor: pointer;
        padding: 4px 6px;
        border: none;
        background: none;
        transition: color 0.2s ease;
        display: none;
        z-index: 2;
    }

        .dac-input-wrap .dac-clear-btn:hover {
            color: #e53d60;
        }

    .dac-input-wrap.has-value .dac-clear-btn {
        display: block;
    }

/* Panel dropdown - sin linea amarilla superior */
.dac-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    min-width: 280px;
    max-height: 360px;
    z-index: 1050;
    background-color: var(--dac-bg);
    border: 1px solid var(--dac-border);
    border-radius: 0;
    box-shadow: 0 8px 24px var(--dac-shadow);
    overflow: hidden;
    display: none;
    animation: dacSlideDown 0.2s ease-out;
}

    .dac-dropdown.dac-visible {
        display: block;
    }

@keyframes dacSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroller interno */
.dac-scroller {
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--dac-scrollbar-thumb) var(--dac-scrollbar-track);
}

    .dac-scroller::-webkit-scrollbar {
        width: 6px;
    }

    .dac-scroller::-webkit-scrollbar-track {
        background: var(--dac-scrollbar-track);
    }

    .dac-scroller::-webkit-scrollbar-thumb {
        background-color: var(--dac-scrollbar-thumb);
        border-radius: 3px;
    }

        .dac-scroller::-webkit-scrollbar-thumb:hover {
            background-color: var(--dac-accent);
        }

/* Tabla dentro del dropdown */
.dac-dropdown table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

    .dac-dropdown table thead th {
        position: sticky;
        top: 0;
        z-index: 2;
        background-color: var(--dac-bg-alt);
        color: var(--dac-accent);
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding: 10px 14px;
        border-bottom: 1px solid var(--dac-border);
        font-family: "Montserrat", sans-serif;
        white-space: nowrap;
    }

    .dac-dropdown table tbody tr {
        cursor: pointer;
        transition: background-color 0.15s ease;
        border-bottom: 1px solid var(--dac-border);
    }

        .dac-dropdown table tbody tr:last-child {
            border-bottom: none;
        }

        .dac-dropdown table tbody tr td {
            padding: 10px 14px;
            font-size: 13px;
            line-height: 1.4;
            color: var(--dac-text-secondary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 200px;
            vertical-align: middle;
        }

        .dac-dropdown table tbody tr:hover,
        .dac-dropdown table tbody tr.active {
            background-color: var(--dac-hover-bg);
        }

            .dac-dropdown table tbody tr:hover td,
            .dac-dropdown table tbody tr.active td {
                color: var(--dac-text);
            }

        .dac-dropdown table tbody tr.active {
            background-color: var(--dac-active-bg);
        }

            .dac-dropdown table tbody tr.active td:first-child {
                border-left: 3px solid var(--dac-accent);
                padding-left: 11px;
            }

/* Estado sin resultados */
.dac-no-results {
    padding: 24px 14px;
    text-align: center;
    color: var(--dac-text-muted);
    font-size: 13px;
}

    .dac-no-results i {
        display: block;
        font-size: 28px;
        margin-bottom: 8px;
        color: var(--dac-scrollbar-thumb);
    }

/* Loader inline */
.dac-loading {
    padding: 20px 14px;
    text-align: center;
}

    .dac-loading .dac-spinner {
        display: inline-block;
        width: 20px;
        height: 20px;
        border: 2px solid rgba(176, 120, 28, 0.3);
        border-top-color: var(--dac-accent);
        border-radius: 50%;
        animation: dacSpin 0.6s linear infinite;
    }

@keyframes dacSpin {
    to {
        transform: rotate(360deg);
    }
}

.dac-loading-text {
    display: inline-block;
    margin-left: 10px;
    color: var(--dac-text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

/* Footer del dropdown */
.dac-footer {
    padding: 8px 14px;
    border-top: 1px solid var(--dac-border);
    background-color: var(--dac-bg-alt);
    font-size: 11px;
    color: var(--dac-text-muted);
    text-align: center;
    font-family: "Montserrat", sans-serif;
}

    .dac-footer kbd {
        display: inline-block;
        padding: 1px 6px;
        font-size: 10px;
        background-color: var(--dac-kbd-bg);
        border: 1px solid var(--dac-kbd-border);
        border-radius: 3px;
        color: var(--dac-kbd-text);
        margin: 0 2px;
        font-family: inherit;
    }

/* Mobile header - oculto en desktop */
.dac-dropdown .dac-mobile-header {
    display: none;
}

/* =============================================
   Responsive - Tablet
   ============================================= */
@media screen and (max-width: 991px) {
    .dac-dropdown {
        min-width: 100%;
        max-height: 300px;
    }

    .dac-scroller {
        max-height: 260px;
    }

    .dac-dropdown table tbody tr td {
        font-size: 12px;
        padding: 9px 10px;
        max-width: 150px;
    }

    .dac-dropdown table thead th {
        font-size: 10px;
        padding: 8px 10px;
    }

    .dac-footer {
        display: none;
    }
}

/* =============================================
   Responsive - Mobile
   SIN overlay. El dropdown se posiciona fixed
   en la parte inferior. Se cierra con click
   fuera, borrar texto, o boton X del header.
   ============================================= */
@media screen and (max-width: 767px) {

    .dac-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 50vh;
        border-radius: 0;
        border: none;
        border-top: 1px solid var(--dac-border);
        box-shadow: 0 -4px 16px var(--dac-shadow);
        animation: dacSlideUp 0.25s ease-out;
        z-index: 9999;
    }

    @keyframes dacSlideUp {
        from {
            opacity: 0;
            transform: translateY(100%);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .dac-dropdown .dac-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 16px;
        background-color: var(--dac-bg-alt);
        border-bottom: 1px solid var(--dac-border);
    }

        .dac-dropdown .dac-mobile-header .dac-mobile-title {
            font-size: 12px;
            font-weight: 600;
            color: var(--dac-text);
            text-transform: uppercase;
            font-family: "Montserrat", sans-serif;
            letter-spacing: 0.5px;
        }

        .dac-dropdown .dac-mobile-header .dac-mobile-close {
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: none;
            border: 1px solid var(--dac-border);
            border-radius: 0;
            color: var(--dac-text);
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

            .dac-dropdown .dac-mobile-header .dac-mobile-close:hover,
            .dac-dropdown .dac-mobile-header .dac-mobile-close:active {
                border-color: var(--dac-accent);
                color: var(--dac-accent);
            }

    .dac-scroller {
        max-height: calc(50vh - 80px);
        -webkit-overflow-scrolling: touch;
    }

    .dac-dropdown table thead {
        display: none;
    }

    .dac-dropdown table tbody tr {
        display: flex;
        flex-wrap: wrap;
        padding: 12px 16px;
        border-bottom: 1px solid var(--dac-border);
    }

        .dac-dropdown table tbody tr td {
            display: block;
            padding: 2px 0;
            border: none;
            max-width: 100%;
            white-space: normal;
            word-break: break-word;
        }

            .dac-dropdown table tbody tr td:first-child {
                flex: 0 0 100%;
                font-size: 14px;
                font-weight: 600;
                color: var(--dac-text);
            }

            .dac-dropdown table tbody tr td:not(:first-child) {
                flex: 1 1 auto;
                font-size: 12px;
                color: var(--dac-text-muted);
                padding-right: 10px;
            }

        .dac-dropdown table tbody tr.active td:first-child {
            border-left: none;
            padding-left: 0;
            color: var(--dac-accent);
        }

        .dac-dropdown table tbody tr:hover,
        .dac-dropdown table tbody tr.active {
            background-color: var(--dac-hover-bg);
        }
}

@media screen and (max-width: 479px) {
    .dac-dropdown {
        max-height: 55vh;
    }

    .dac-scroller {
        max-height: calc(55vh - 80px);
    }

    .dac-dropdown table tbody tr td:first-child {
        font-size: 13px;
    }

    .dac-dropdown table tbody tr td:not(:first-child) {
        font-size: 11px;
    }
}

.form-group:not(:only-child),
.form-flex:not(:only-child) {
    margin-bottom: 1px;
}


/* === Descuentos por tipo de pago === */
.pago-descuentos-info {
    border-top: 1px dashed #dee2e6;
    border-bottom: 1px dashed #dee2e6;
    padding-top: 10px;
    padding-bottom: 10px;
}

.pago-descuentos-title {
    font-size: 0.82rem;
    color: #6c757d;
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.pago-descuento-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 5px 8px;
    background: #f8fff8;
    border: 1px solid #d4edda;
    margin-bottom: 5px;
    font-size: 0.88rem;
}

.pago-descuento-metodo {
    flex: 1 1 auto;
    color: #343a40;
    font-weight: 500;
}

.pago-descuento-badge {
    background: #28a745;
    color: #fff;
    border-radius: 12px;
    padding: 1px 9px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.pago-descuento-total {
    color: #155724;
    white-space: nowrap;
    font-size: 0.85rem;
}

/* === Notificación de Artículo Agregado al Carrito === */
.cart-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 380px;
    max-width: calc(100vw - 40px);
    background: #fff;
    border: 1px solid #e2e2e2;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 999999;
    animation: slideInRight 0.3s ease-out;
    overflow: hidden;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cart-notification.hiding {
    animation: slideOutRight 0.3s ease-in forwards;
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.cart-notification-header {
    background: #15c979;
    color: #fff;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .cart-notification-header i {
        font-size: 16px;
        margin-right: 8px;
    }

.cart-notification-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    transition: opacity 0.2s ease;
}

    .cart-notification-close:hover {
        opacity: 0.7;
    }

.cart-notification-body {
    padding: 15px;
}

.cart-notification-product {
    display: flex;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f7f7f7;
    margin-bottom: 15px;
}

.cart-notification-img {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    border: 1px solid #e2e2e2;
    overflow: hidden;
}

    .cart-notification-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.cart-notification-info {
    flex: 1;
    min-width: 0;
}

.cart-notification-clave {
    font-size: 11px;
    color: #656565;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.cart-notification-name {
    font-size: 13px;
    line-height: 1.3;
    color: #000;
    font-weight: 600;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cart-notification-quantity {
    font-size: 12px;
    color: #656565;
    margin-bottom: 4px;
}

.cart-notification-price {
    font-size: 14px;
    color: #000;
    font-weight: 700;
    font-family: "Montserrat", sans-serif;
}

.cart-notification-totals {
    background: #f7f7f7;
    padding: 12px 15px;
    margin: 0 -15px 15px;
    border-top: 1px solid #e2e2e2;
    border-bottom: 1px solid #e2e2e2;
}

.cart-notification-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #656565;
}

    .cart-notification-total-row + .cart-notification-total-row {
        margin-top: 8px;
    }

    .cart-notification-total-row.is-grand {
        font-size: 16px;
        color: #000;
        font-weight: 700;
        font-family: "Montserrat", sans-serif;
        padding-top: 8px;
        margin-top: 8px;
        border-top: 1px solid #e2e2e2;
    }

.cart-notification-actions {
    display: flex;
    gap: 10px;
}

    .cart-notification-actions .btn {
        flex: 1;
        padding: 12px 10px;
        font-size: 11px;
        text-align: center;
    }

/* === Responsive Mobile === */
@media screen and (max-width: 767px) {
    .cart-notification {
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        animation: slideInUp 0.3s ease-out;
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
    }

    @keyframes slideInUp {
        from {
            opacity: 0;
            transform: translateY(100%);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .cart-notification.hiding {
        animation: slideOutDown 0.3s ease-in forwards;
    }

    @keyframes slideOutDown {
        from {
            opacity: 1;
            transform: translateY(0);
        }

        to {
            opacity: 0;
            transform: translateY(100%);
        }
    }

    .cart-notification-header {
        padding: 6px 12px;
        font-size: 13px;
    }

    .cart-notification-body {
        padding: 8px 12px;
    }

    .cart-notification-product {
        gap: 10px;
        padding-bottom: 6px;
        margin-bottom: 6px;
    }

    .cart-notification-img {
        flex: 0 0 60px;
        width: 60px;
        height: 60px;
    }

    .cart-notification-clave {
        font-size: 11px;
        margin-bottom: 1px;
    }

    .cart-notification-name {
        font-size: 12px;
        margin-bottom: 2px;
        -webkit-line-clamp: 1;
    }

    .cart-notification-quantity {
        font-size: 11px;
        margin-bottom: 1px;
    }

    .cart-notification-price {
        font-size: 13px;
    }

    .cart-notification-totals {
        padding: 5px 12px;
        margin: 0 -12px 6px;
    }

    .cart-notification-total-row {
        font-size: 13px;
    }

        .cart-notification-total-row + .cart-notification-total-row {
            margin-top: 3px;
        }

        .cart-notification-total-row.is-grand {
            font-size: 14px;
            padding-top: 4px;
            margin-top: 4px;
        }

    .cart-notification-actions {
        gap: 8px;
    }

        .cart-notification-actions .btn {
            padding: 8px 8px;
            font-size: 11px;
        }
}

@media screen and (max-width: 479px) {
    .cart-notification-header {
        padding: 5px 10px;
        font-size: 12px;
    }

    .cart-notification-body {
        padding: 6px 10px;
    }

    .cart-notification-product {
        gap: 8px;
        padding-bottom: 5px;
        margin-bottom: 5px;
    }

    .cart-notification-img {
        flex: 0 0 52px;
        width: 52px;
        height: 52px;
    }

    .cart-notification-clave {
        margin-bottom: 1px;
    }

    .cart-notification-name {
        font-size: 12px;
        margin-bottom: 1px;
    }

    .cart-notification-quantity {
        margin-bottom: 1px;
    }

    .cart-notification-totals {
        padding: 4px 10px;
        margin: 0 -10px 5px;
    }

    .cart-notification-total-row + .cart-notification-total-row {
        margin-top: 2px;
    }

    .cart-notification-total-row.is-grand {
        padding-top: 3px;
        margin-top: 3px;
    }

    .cart-notification-actions .btn {
        padding: 7px 6px;
    }
}

/* === Quick View - Pantalla completa en móvil === */
@media screen and (max-width: 767px) {

    .fancybox-quickview .fancybox-bg {
        opacity: 0 !important;
    }

    .fancybox-quickview .fancybox-inner {
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
    }

    .fancybox-quickview .fancybox-stage {
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
    }

    .fancybox-quickview .fancybox-slide {
        padding: 0 !important;
    }

    .fancybox-quickview .fancybox-slide--html {
        padding: 0 !important;
    }

    .fancybox-quickview .fancybox-content {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        animation: dacSlideUp 0.3s ease-out;
    }

    /* Botón cerrar: solo reposicionar, sin romper el estilo nativo de fancybox */
    .fancybox-quickview .fancybox-close-small {
        position: fixed !important;
        padding: 0px 0px !important;
        z-index: 999999 !important;
    }
}

/* === Quick View === */

/* Liberar overflow en toda la cadena de ancestros para que sticky funcione */
.fancybox-quickview .fancybox-content .modal-content,
.fancybox-quickview .fancybox-content .modal-body,
.fancybox-quickview .fancybox-content .prd-block,
.fancybox-quickview .fancybox-content .prd-block_info,
.fancybox-quickview .fancybox-content .prd-block_info-row {
    overflow: visible !important;
}

/* Barra superior sticky */
.fancybox-quickview .fancybox-content .modal-header {
    position: sticky;
    top: 0;
    z-index: 12;
    height: 38px;
    min-height: 0 !important;
    padding: 4px 8px 4px 10px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

/* Bloque sticky de título + acciones */
.fancybox-quickview .fancybox-content .qv-sticky-top {
    position: sticky;
    top: 39px;
    background: #fff;
    z-index: 10;
    padding: 4px 0 2px;
    box-shadow: none;
    transition: box-shadow 0.2s ease;
}

    .fancybox-quickview .fancybox-content .qv-sticky-top.is-stuck {
        box-shadow: 0 4px 6px -2px rgba(0, 0, 0, 0.13);
    }

/* Botón cerrar en el header */
.fancybox-quickview .fancybox-content .qv-close-btn {
    position: static !important;
    top: auto !important;
    right: auto !important;
    flex-shrink: 0;
    opacity: 0.8;
}

    .fancybox-quickview .fancybox-content .qv-close-btn:hover {
        opacity: 1;
    }

/* Mobile ≤767px: pantalla completa */
@media screen and (max-width: 767px) {
    .fancybox-quickview .fancybox-bg {
        opacity: 0 !important;
    }

    .fancybox-quickview .fancybox-inner,
    .fancybox-quickview .fancybox-stage {
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
    }

    .fancybox-quickview .fancybox-slide,
    .fancybox-quickview .fancybox-slide--html {
        padding: 0 !important;
    }

    .fancybox-quickview .fancybox-content {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        animation: dacSlideUp 0.3s ease-out;
    }

    .fancybox-quickview .fancybox-close-small {
        position: fixed !important;
        padding: 0 !important;
        z-index: 999999 !important;
    }

    .fancybox-quickview .fancybox-content .modal-header {
        padding-right: 44px !important;
    }

    .fancybox-quickview .fancybox-content .qv-sticky-top {
        top: 39px;
    }

    .fancybox-quickview .fancybox-content .qv-close-btn {
        display: none;
    }
}

/* === Carrito - controles de cantidad === */

.cart-table-prd-qty {
    min-width: 130px;
    width: 130px;
}

    .cart-table-prd-qty .prd-block_qty {
        display: -ms-flexbox;
        display: flex;
        -ms-flex-direction: column;
        flex-direction: column;
        -ms-flex-align: start;
        align-items: flex-start;
        gap: 4px;
    }

    .cart-table-prd-qty .qty-changer-cart fieldset {
        display: -ms-flexbox;
        display: flex;
        -ms-flex-align: center;
        align-items: center;
        border: 0;
        margin: 0;
        padding: 0;
    }

.cart-table-prd-price {
    min-width: 90px;
}

    .cart-table-prd-price span {
        display: block;
        font-size: 11px;
        text-transform: uppercase;
        margin-bottom: 2px;
    }

/* === qty-input-cart: oculta flechas nativas y ajusta al mismo alto que los botones === */

/* Flechas webkit (Chrome, Safari, Edge) */
.qty-input-cart::-webkit-outer-spin-button,
.qty-input-cart::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    appearance: none !important;
    margin: 0 !important;
    display: none !important;
}

/* Flechas Firefox */
.qty-input-cart[type="number"] {
    -moz-appearance: textfield !important;
}

/* Dimensiones y estilo — sin definir colores */
.qty-input-cart {
    width: 50px !important; /* ancho suficiente para 5 dígitos */
    height: 27px !important;
    line-height: 27px !important;
    box-sizing: border-box !important;
    padding: 0 2px !important;
    text-align: center !important;
    font-size: 12px !important;
    font-weight: bold !important;
    cursor: text !important;
    border-width: 1px !important;
    border-style: solid !important;
    border-radius: 0 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

    .qty-input-cart:focus {
        outline: none !important;
    }