/* Estilos para modales de bundles */

/* Tamaño personalizado para modal bundle mixto */
#bundle_mixed.popup-quickview .bundle-mixed-modal-size {
    max-width: 700px;
}

@media (max-width: 767.98px) {
    #bundle_mixed.popup-quickview .bundle-mixed-modal-size {
        max-width: 100%;
        margin: 0.5rem;
    }
}

/* ============================================
   ESTILOS PARA BUNDLE CARDS
   ============================================ */

.bundle-card {
    position: relative;
}

.bundle-img {
    position: relative;
    display: block;
    overflow: hidden;
}

.bundle-img > a {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: auto;
    text-decoration: none;
}

.bundle-card .list-product-btn {
    z-index: 2;
    pointer-events: auto;
}

.bundle-card .bundle-img > a {
    z-index: 1;
}

/* Asegurar que el grid tenga altura y las imágenes se muestren */
.bundle-img .bundle-images-grid {
    height: 100%;
    min-height: 200px;
}

.bundle-img .bundle-image-item {
    min-height: 50%;
}

.bundle-images-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
    /* Mantener aspect-ratio 1:1 pero respetar el ancho del contenedor */
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1;
    /* Asegurar que respete el contenedor padre */
    box-sizing: border-box;
    /* Asegurar que no se desborde */
    overflow: hidden;
}

.bundle-image-item {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* Asegurar que bundle cards tengan el mismo tamaño que product cards */
.bundle-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    /* Asegurar que no se expanda más allá del contenedor grid */
    min-width: 0;
}

.bundle-card .card-product-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    /* Asegurar que respete el tamaño del grid */
    min-width: 0;
}

.bundle-card .bundle-img {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    /* Asegurar que respete el tamaño del wrapper */
    min-width: 0;
}

.bundle-card .bundle-img > a {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.bundle-more-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Badge de cantidad - ahora inline con badge de tipo, no sobre la imagen */
.bundle-quantity-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    white-space: nowrap;
}

.bundle-type-badge .badge {
    font-size: 0.75rem;
    padding: 4px 8px;
}

/* Color personalizado para badge Pack */
.bundle-pack-badge {
    background-color: #aa5e85 !important;
    border-color: #aa5e85;
}

.bundle-items-preview {
    margin-top: 8px;
}

.bundle-items-preview ul {
    margin-top: 4px;
}

.bundle-items-preview li {
    font-size: 0.85rem;
    line-height: 1.6;
}

.bundle-items-count {
    font-size: 0.85rem;
}

.bundle-savings-text {
    font-size: 0.9rem;
}

/* Ajustes responsive mobile-first */
@media (max-width: 768px) {
    .bundle-images-grid {
        gap: 1px;
        /* Asegurar que respete el tamaño del contenedor en mobile */
        width: 100%;
        max-width: 100%;
        /* Mantener aspect-ratio pero asegurar que respete el contenedor */
        aspect-ratio: 1;
        min-width: 0;
        min-height: 0;
    }

    .bundle-quantity-badge {
        padding: 3px 8px;
        font-size: 0.75rem;
    }

    /* Asegurar que todos los bundle cards tengan el mismo tamaño en mobile */
    .bundle-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .bundle-card .card-product-wrapper {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .bundle-card .bundle-img {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .bundle-card .bundle-img > a {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    /* Asegurar que las imágenes dentro del grid respeten el tamaño */
    .bundle-card .bundle-images-grid {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .bundle-card .bundle-image-item {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
}

/* ============================================
   ESTILOS PARA MODALES DE BUNDLES
   ============================================ */

/* Modal Bundle Mixto - Header con título */
#bundle_mixed.popup-quickview .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 15px;
    border-bottom: 1px solid #e9ecef;
}

#bundle_mixed.popup-quickview .header .bundle-header-title {
    flex: 1;
    padding-right: 40px;
}

#bundle_mixed.popup-quickview .header .bundle-header-title h4 {
    font-size: 1.25rem;
    color: #212529;
}

#bundle_mixed.popup-quickview .header .icon-close-popup {
    position: relative;
    top: auto;
    right: auto;
    flex-shrink: 0;
}

/* Modal Bundle Mixto - Scroll en desktop */
#bundle_mixed.popup-quickview .wrap {
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Modal Bundle Mixto - Imágenes reducidas en desktop */
#bundle_mixed.popup-quickview
    .bundle-product-section
    .tf-product-media-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#bundle_mixed.popup-quickview
    .bundle-product-section
    .tf-product-media-wrap
    img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Modal Bundle Múltiple - Layout desktop */
#bundle_multiple.popup-quickview .wrap {
    display: flex;
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
}

#bundle_multiple.popup-quickview .bundle-product-header {
    display: flex;
    width: 100%;
}

/* Footer flotante del modal bundle múltiple */
#bundle_multiple.popup-quickview .tf-product-info-list {
    display: flex;
    flex-direction: column;
    padding-bottom: 0 !important;
}

#bundle_multiple.popup-quickview .bundle-variations-list,
#bundle_multiple.popup-quickview .bundle-summary {
    flex-shrink: 0;
}

#bundle_multiple.popup-quickview .bundle-footer {
    position: sticky;
    bottom: 0;
    background: #fff;
    z-index: 10;
    margin-top: auto;
    padding-top: 15px;
    padding-bottom: 15px;
    border-top: 1px solid #dee2e6;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

/* Footer flotante del modal bundle mixto */
#bundle_mixed.popup-quickview .wrap {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: calc(100vh - 120px); /* Altura máxima menos header y padding */
    overflow-y: auto;
}

#bundle_mixed.popup-quickview .bundle-product-section,
#bundle_mixed.popup-quickview .bundle-summary {
    flex-shrink: 0;
}

#bundle_mixed.popup-quickview .bundle-footer {
    position: sticky;
    bottom: 0;
    background: #fff;
    z-index: 10;
    margin-top: auto;
    padding: 20px;
    padding-top: 15px;
    padding-bottom: 15px;
    border-top: 1px solid #dee2e6;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

/* Estilos para precio en footer del modal mixto */
#bundle_mixed.popup-quickview .bundle-footer .price {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    color: #212529;
}

#bundle_mixed.popup-quickview .bundle-footer .bundle-total-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Armonizar botones en footer */
#bundle_multiple.popup-quickview .bundle-actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px;
    width: 100%;
}

#bundle_multiple.popup-quickview .bundle-actions .tf-btn {
    padding: 12px 20px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

#bundle_multiple.popup-quickview .bundle-actions .tf-btn .icon {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

/* Estilos para botones del modal mixto */
#bundle_mixed.popup-quickview .bundle-actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px;
    width: 100%;
}

#bundle_mixed.popup-quickview .bundle-actions .tf-btn {
    padding: 12px 20px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

#bundle_mixed.popup-quickview .bundle-actions .tf-btn .icon {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

/* En mobile, botones más compactos */
@media (max-width: 767.98px) {
    #bundle_multiple.popup-quickview .bundle-actions {
        gap: 6px !important;
    }

    #bundle_multiple.popup-quickview .bundle-actions .tf-btn {
        padding: 10px 8px;
        font-size: 13px;
    }

    #bundle_multiple.popup-quickview .bundle-actions .tf-btn .icon {
        font-size: 16px;
    }

    #bundle_mixed.popup-quickview .bundle-actions {
        gap: 6px !important;
    }

    #bundle_mixed.popup-quickview .bundle-actions .tf-btn {
        padding: 10px 8px;
        font-size: 13px;
    }

    #bundle_mixed.popup-quickview .bundle-actions .tf-btn .icon {
        font-size: 16px;
    }
}

#bundle_mixed.popup-quickview .bundle-total-info {
    flex: 1;
}

#bundle_mixed.popup-quickview .bundle-total-products {
    flex-shrink: 0;
    min-width: fit-content;
}

/* Precio de comparación y ahorro para modal mixto */
#bundle_mixed.popup-quickview .bundle-compare-price {
    font-size: 14px;
    opacity: 0.7;
    display: inline-block;
}

#bundle_mixed.popup-quickview .bundle-compare-price.d-none {
    display: none !important;
}

#bundle_mixed.popup-quickview .bundle-savings {
    font-size: 13px;
    font-weight: 500;
    display: block;
}

#bundle_mixed.popup-quickview .bundle-savings.d-none {
    display: none !important;
}

#bundle_mixed.popup-quickview .bundle-savings-percent {
    font-weight: 600;
    font-size: 14px;
}

/* Contador de unidades en footer para modal mixto */
#bundle_mixed.popup-quickview .bundle-units-counter {
    font-size: 18px;
    line-height: 1.2;
    color: #212529;
}

#bundle_mixed.popup-quickview .bundle-total-products .fw-6 {
    font-size: 18px;
    line-height: 1.2;
}

#bundle_mixed.popup-quickview .bundle-total-products > div:last-child {
    font-size: 12px;
    line-height: 1.2;
}

/* Estilos para el wrapper del select y botón agregar */
#bundle_mixed.popup-quickview .bundle-variant-select-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

#bundle_mixed.popup-quickview .bundle-variant-select-wrapper .bundle-variant-select {
    flex: 1;
    min-width: 0;
}

#bundle_mixed.popup-quickview .bundle-add-variant-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
    min-width: 120px;
    height: fit-content;
}

#bundle_mixed.popup-quickview .bundle-add-variant-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#bundle_mixed.popup-quickview .bundle-add-variant-btn.selected {
    background-color: #28a745;
    opacity: 0.8;
    cursor: not-allowed;
}

#bundle_mixed.popup-quickview .bundle-add-variant-btn.selected:hover {
    transform: none;
    box-shadow: none;
}

#bundle_mixed.popup-quickview .bundle-add-variant-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#bundle_mixed.popup-quickview .bundle-add-variant-btn .icon {
    font-size: 18px;
    line-height: 1;
}

/* Asegurar que el select tenga el mismo alto que el botón */
#bundle_mixed.popup-quickview .bundle-variant-select-wrapper .form-select {
    height: auto;
    min-height: 46px;
    display: flex;
    align-items: center;
}

/* Estilos para el resumen de packs agregados */
#bundle_mixed.popup-quickview .bundle-summary-items {
    display: none;
}

#bundle_mixed.popup-quickview .bundle-summary-items:not(:empty) {
    display: block;
}

#bundle_mixed.popup-quickview .bundle-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

#bundle_mixed.popup-quickview .bundle-summary-item-content {
    flex: 1;
    min-width: 0;
}

#bundle_mixed.popup-quickview .bundle-summary-item-content .bundle-summary-item-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: #212529;
}

#bundle_mixed.popup-quickview .bundle-summary-item-content .bundle-summary-item-variants {
    font-size: 0.875rem;
    color: #6c757d;
}

#bundle_mixed.popup-quickview .bundle-summary-item-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

#bundle_mixed.popup-quickview .bundle-summary-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 8px;
}

#bundle_mixed.popup-quickview .bundle-summary-item-quantity-label {
    font-size: 0.875rem;
    color: #6c757d;
    white-space: nowrap;
}

#bundle_mixed.popup-quickview .bundle-summary-item-quantity .wg-quantity {
    display: flex;
    align-items: center;
    gap: 4px;
}

#bundle_mixed.popup-quickview .bundle-summary-item-quantity .wg-quantity .btn-quantity {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dee2e6;
    background-color: white;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s ease;
}

#bundle_mixed.popup-quickview .bundle-summary-item-quantity .wg-quantity .btn-quantity:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
}

#bundle_mixed.popup-quickview .bundle-summary-item-quantity .wg-quantity .quantity-value {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

#bundle_mixed.popup-quickview .bundle-summary-item-delete-btn {
    padding: 6px 10px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: background-color 0.2s ease;
}

#bundle_mixed.popup-quickview .bundle-summary-item-delete-btn:hover {
    background-color: #c82333;
}

#bundle_mixed.popup-quickview .bundle-summary-item-delete-btn .icon {
    font-size: 14px;
    line-height: 1;
}

#bundle_mixed.popup-quickview .bundle-summary-empty {
    display: block;
    padding: 20px;
    text-align: center;
    color: #6c757d;
}

#bundle_mixed.popup-quickview .bundle-summary-items:not(:empty) ~ .bundle-summary-empty {
    display: none;
}

#bundle_mixed.popup-quickview .bundle-summary-total {
    display: none;
}

#bundle_mixed.popup-quickview .bundle-summary-items:not(:empty) ~ .bundle-summary-total {
    display: flex !important;
}

#bundle_multiple.popup-quickview .bundle-total-products {
    flex-shrink: 0;
    min-width: fit-content;
}

#bundle_multiple.popup-quickview .bundle-total-products .fw-6 {
    font-size: 18px;
    line-height: 1.2;
}

#bundle_multiple.popup-quickview .bundle-total-products > div:last-child {
    font-size: 12px;
    line-height: 1.2;
}

/* Estilos para información del pack */
#bundle_multiple.popup-quickview .bundle-pack-info {
    margin-bottom: 20px;
}

/* Unidades por pack al lado del título */
#bundle_multiple.popup-quickview .bundle-pack-units {
    white-space: nowrap;
}

/* Ajustar espaciado de variaciones */
#bundle_multiple.popup-quickview .bundle-variation-item {
    transition: all 0.2s ease;
}

#bundle_multiple.popup-quickview .bundle-variation-item:last-child {
    border-bottom: none !important;
}

#bundle_multiple.popup-quickview .bundle-variation-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Contador de unidades en footer */
#bundle_multiple.popup-quickview .bundle-units-counter {
    font-size: 18px;
    line-height: 1.2;
    color: #212529;
}

/* Precio de comparación y ahorro */
#bundle_multiple.popup-quickview .bundle-compare-price {
    font-size: 14px;
    opacity: 0.7;
}

#bundle_multiple.popup-quickview .bundle-savings {
    font-size: 13px;
    font-weight: 500;
}

#bundle_multiple.popup-quickview .bundle-savings-percent {
    font-weight: 600;
    font-size: 14px;
}

/* Botón deshabilitado */
#bundle_multiple.popup-quickview .bundle-actions .tf-btn.disabled,
#bundle_multiple.popup-quickview .bundle-actions .tf-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

#bundle_mixed.popup-quickview .bundle-actions .tf-btn.disabled,
#bundle_mixed.popup-quickview .bundle-actions .tf-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Botones de cantidad deshabilitados */
#bundle_multiple.popup-quickview .wg-quantity .btn-quantity.disabled,
#bundle_multiple.popup-quickview .wg-quantity .btn-quantity:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    color: #6c757d;
}

/* Contenedor de cantidad - igual que en product.php */
#bundle_multiple.popup-quickview .wg-quantity {
    width: 127px;
    display: flex;
    justify-content: space-between;
    background-color: rgb(242, 242, 242);
    border-radius: 3px;
    overflow: hidden;
}

/* Spans de cantidad (reemplazan inputs) - igual estilo que quantity-product */
#bundle_multiple.popup-quickview .wg-quantity .quantity-value {
    width: 51px;
    height: 46px;
    padding: 0;
    background-color: transparent;
    border: 0;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    line-height: 26px;
    color: var(--main);
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    cursor: default;
}

/* Botones de cantidad - igual estilo que en product.php */
#bundle_multiple.popup-quickview .wg-quantity .btn-quantity {
    width: 38px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--main);
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    background-color: transparent;
    border: 0;
}

#bundle_multiple.popup-quickview .wg-quantity .btn-quantity:hover {
    color: var(--primary);
}

/* Estado cuando se alcanza el máximo */
#bundle_multiple.popup-quickview .quantity-value.bundle-input-max-reached {
    background-color: #fff3cd;
    color: #856404;
}

/* Variación cuando se alcanza el límite */
#bundle_multiple.popup-quickview .bundle-variation-limit-reached {
    background-color: #fff3cd;
    border-left: 3px solid #ffc107;
    padding-left: calc(0.5rem - 3px);
}

#bundle_multiple.popup-quickview
    .bundle-variation-limit-reached
    .variation-info {
    color: #856404;
}

#bundle_multiple.popup-quickview
    .bundle-variation-limit-reached
    .variation-info
    .fw-6 {
    color: #856404;
}

/* En mobile, nombre del producto debajo de la foto */
@media (max-width: 767.98px) {
    /* Modal Bundle Mixto - Header Mobile */
    #bundle_mixed.popup-quickview .header {
        padding: 15px 15px 12px;
    }

    #bundle_mixed.popup-quickview .header .bundle-header-title {
        padding-right: 35px;
    }

    #bundle_mixed.popup-quickview .header .bundle-header-title h4 {
        font-size: 1.1rem;
    }

    /* Modal Bundle Mixto - Select y botón agregar en mobile */
    #bundle_mixed.popup-quickview .bundle-variant-select-wrapper {
        flex-direction: row;
        align-items: flex-end;
        gap: 8px;
    }

    #bundle_mixed.popup-quickview .bundle-variant-select-wrapper .bundle-variant-select {
        flex: 1;
        min-width: 0;
    }

    #bundle_mixed.popup-quickview .bundle-variant-select-wrapper .bundle-variant-select .form-label {
        font-size: 0.875rem;
        margin-bottom: 6px;
    }

    #bundle_mixed.popup-quickview .bundle-add-variant-btn {
        width: 46px;
        height: 46px;
        min-width: 46px;
        padding: 0;
        font-size: 0;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 4px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        position: relative;
    }

    /* Mostrar el símbolo de texto en mobile */
    #bundle_mixed.popup-quickview .bundle-add-variant-btn .bundle-add-icon-text {
        font-size: 28px !important;
        font-weight: 600;
        line-height: 1;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        color: #ffffff !important;
        width: auto;
        height: auto;
        margin: 0;
    }

    #bundle_mixed.popup-quickview .bundle-add-variant-btn:hover {
        transform: scale(1.05);
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    }

    #bundle_mixed.popup-quickview .bundle-add-variant-btn:active {
        transform: scale(0.98);
    }

    /* Modal Bundle Mixto - Resumen en mobile */
    #bundle_mixed.popup-quickview .bundle-summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    #bundle_mixed.popup-quickview .bundle-summary-item-actions {
        width: 100%;
        justify-content: space-between;
    }

    #bundle_mixed.popup-quickview .bundle-summary-item-delete-btn {
        flex: 1;
    }

    /* Modal Bundle Mixto - Mobile */
    #bundle_mixed.popup-quickview .bundle-product-section {
        flex-direction: column !important;
    }

    #bundle_mixed.popup-quickview
        .bundle-product-section
        .tf-product-media-wrap {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 50vh !important;
        min-height: 200px;
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        background-color: #f8f9fa;
    }

    #bundle_mixed.popup-quickview
        .bundle-product-section
        .tf-product-media-wrap
        .swiper {
        width: 100%;
        height: 100%;
    }

    #bundle_mixed.popup-quickview
        .bundle-product-section
        .tf-product-media-wrap
        .swiper-wrapper {
        height: 100%;
    }

    #bundle_mixed.popup-quickview
        .bundle-product-section
        .tf-product-media-wrap
        .swiper-slide {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
    }

    #bundle_mixed.popup-quickview
        .bundle-product-section
        .tf-product-media-wrap
        img {
        width: auto;
        max-width: 100%;
        height: auto;
        max-height: 50vh;
        object-fit: contain;
        object-position: center;
    }

    #bundle_mixed.popup-quickview
        .bundle-product-section
        .tf-product-info-wrap {
        width: 100% !important;
        max-width: 100% !important;
    }

    #bundle_mixed.popup-quickview
        .bundle-product-section
        .tf-product-info-list {
        padding: 15px !important;
    }

    /* Modal Bundle Múltiple - Mobile */
    #bundle_multiple.popup-quickview .wrap {
        flex-direction: column !important;
    }

    #bundle_multiple.popup-quickview .bundle-product-header {
        flex-direction: column !important;
    }

    #bundle_multiple.popup-quickview
        .bundle-product-header
        .tf-product-media-wrap {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 15px;
        max-height: 50vh;
        min-height: 200px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        background-color: #f8f9fa;
    }

    #bundle_multiple.popup-quickview
        .bundle-product-header
        .tf-product-media-wrap
        .swiper {
        width: 100%;
        height: 100%;
    }

    #bundle_multiple.popup-quickview
        .bundle-product-header
        .tf-product-media-wrap
        .swiper-wrapper {
        height: 100%;
    }

    #bundle_multiple.popup-quickview
        .bundle-product-header
        .tf-product-media-wrap
        .swiper-slide {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
    }

    #bundle_multiple.popup-quickview
        .bundle-product-header
        .tf-product-media-wrap
        img {
        width: auto;
        max-width: 100%;
        height: auto;
        max-height: 50vh;
        object-fit: contain;
        object-position: center;
    }

    #bundle_multiple.popup-quickview
        .bundle-product-header
        .tf-product-info-wrap {
        width: 100% !important;
        max-width: 100% !important;
    }

    #bundle_multiple.popup-quickview
        .bundle-product-header
        .tf-product-info-list {
        padding: 15px !important;
    }

    /* Ajustes mobile para información del pack */
    #bundle_multiple.popup-quickview .tf-product-info-title {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    #bundle_multiple.popup-quickview .bundle-pack-units {
        margin-top: 8px;
        font-size: 14px;
    }

    #bundle_multiple.popup-quickview .bundle-pack-info {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    /* Botones en mobile uno al lado del otro */
    #bundle_multiple.popup-quickview .bundle-actions {
        flex-direction: row !important;
        width: 100%;
    }

    #bundle_multiple.popup-quickview .bundle-actions .tf-btn {
        width: auto !important;
        flex: 1;
        min-width: 0;
    }

    #bundle_mixed.popup-quickview .bundle-actions {
        flex-direction: row !important;
        width: 100%;
    }

    #bundle_mixed.popup-quickview .bundle-actions .tf-btn {
        width: auto !important;
        flex: 1;
        min-width: 0;
    }
}
