/**
 * Xoey - Estilos específicos de la ficha de producto
 * CSS custom ≤5% con prefijo xoey-
 */

.xoey-bundle-recommendations .xoey-bundle-card {
    border-radius: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    background-color: #fff;
    border: 1px solid rgba(17, 17, 17, 0.08);
}

.xoey-bundle-recommendations .xoey-bundle-card .xoey-bundle-launch {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 2;
    cursor: pointer;
}

.xoey-bundle-recommendations .xoey-bundle-card .xoey-bundle-launch:focus-visible {
    outline: 3px solid rgba(17, 17, 17, 0.8);
    outline-offset: 4px;
}

.xoey-bundle-recommendations .xoey-bundle-card:hover,
.xoey-bundle-recommendations .xoey-bundle-card:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(23, 43, 77, 0.12);
    border-color: rgba(17, 17, 17, 0.12);
}

.xoey-bundle-recommendations .xoey-bundle-card .card-body {
    padding: 1.125rem;
}

.xoey-bundle-recommendations .xoey-bundle-card-icon {
    transition: transform 0.2s ease;
}

.xoey-bundle-recommendations .xoey-bundle-card:hover .xoey-bundle-card-icon,
.xoey-bundle-recommendations .xoey-bundle-card:focus-within .xoey-bundle-card-icon {
    transform: translateX(4px);
}

.xoey-bundle-recommendations .xoey-bundle-thumb {
    max-width: 96px;
    border-radius: 0.75rem;
    background-color: #f5f5f5;
    overflow: hidden;
}

.xoey-bundle-recommendations .xoey-bundle-thumb img {
    object-fit: cover;
}

.xoey-bundle-recommendations .xoey-bundle-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.55rem;
    font-size: 0.75rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.xoey-bundle-recommendations .xoey-bundle-pack {
    font-size: 0.75rem;
    background: rgba(13, 110, 253, 0.08);
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
}

.xoey-bundle-recommendations .xoey-bundle-price-current {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
    line-height: 1.2;
}

.xoey-bundle-recommendations .xoey-bundle-price-compare {
    font-size: 0.85rem;
    color: rgba(17, 17, 17, 0.55);
    text-decoration: line-through;
    line-height: 1.2;
}

.xoey-bundle-recommendations .xoey-bundle-price-saving {
    font-size: 0.75rem;
    font-weight: 600;
    color: #12a150;
    line-height: 1.2;
}

.xoey-bundle-recommendations .xoey-bundle-card-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    color: rgba(17, 17, 17, 0.75);
}

.xoey-bundle-recommendations .xoey-bundle-card-details .text-body {
    color: #111;
}

.xoey-bundle-recommendations .xoey-bundle-card-cta {
    padding-top: 0.6rem;
    border-top: 1px dashed rgba(17, 17, 17, 0.12);
    color: #111;
}

.xoey-bundle-modal .modal-content {
    border-radius: 1.25rem;
}

.xoey-modal-bottom {
    margin: 1.5rem auto;
    max-width: 700px;
    width: 100%;
}

.xoey-bundle-summary {
    background: linear-gradient(
        135deg,
        rgba(33, 37, 41, 0.04),
        rgba(33, 37, 41, 0.02)
    );
}

.xoey-bundle-variants {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.xoey-bundle-unit {
    border-radius: 0.75rem;
}

.xoey-bundle-unit .btn-outline-secondary.btn-sm.active,
.xoey-bundle-unit .btn-outline-secondary.btn-sm:focus,
.xoey-bundle-unit .btn-outline-secondary.btn-sm:active,
.xoey-bundle-unit .btn-check:checked + .btn-outline-secondary {
    color: #fff;
    background-color: #212529;
    border-color: #212529;
}

.xoey-bundle-total span:last-child {
    color: #212529;
}

.xoey-bundle-mix-thumbs .xoey-bundle-thumb {
    max-width: 64px;
}

.xoey-step-media {
    flex-wrap: wrap;
}

.xoey-step-media .xoey-bundle-thumb {
    max-width: 96px;
}

.xoey-step-media .flex-grow-1 {
    min-width: 180px;
}

.xoey-bundle-step {
    border-radius: 0.75rem;
    overflow: hidden;
}

.xoey-bundle-step .card-header {
    border-radius: 0.75rem 0.75rem 0 0;
    padding-bottom: 0.75rem;
}

.xoey-bundle-step .card-body {
    padding-top: 1.25rem;
}

.xoey-bundle-modal .modal-header {
    border-bottom: none;
    padding-bottom: 0;
}

.xoey-bundle-modal .modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 1rem;
}

.xoey-bundle-modal .modal-body {
    padding: 1.5rem;
}

.xoey-bundle-modal .form-check-label small {
    font-size: 0.75rem;
}

.xoey-bundle-modal .input-group .btn {
    min-width: 2.5rem;
}

.xoey-bundle-extra .form-check-label {
    gap: 0.75rem;
    flex-wrap: wrap;
}

.xoey-bundle-extra .badge,
.xoey-bundle-extra span:last-child {
    flex-shrink: 0;
}

@media (max-width: 575.98px) {
    .xoey-bundle-recommendations .xoey-bundle-card {
        border-radius: 0.625rem;
    }

    .xoey-bundle-recommendations .xoey-bundle-thumb {
        max-width: 80px;
    }

    .xoey-bundle-modal {
        align-items: flex-end;
    }

    .xoey-modal-bottom {
        margin: 0;
        max-width: none;
    }

    .xoey-bundle-modal .modal-content {
        border-radius: 1rem 1rem 0 0;
        min-height: 70vh;
    }

    .xoey-bundle-unit .card-body {
        padding: 1rem;
    }

    .xoey-bundle-mix-thumbs .xoey-bundle-thumb {
        max-width: 56px;
    }

    .xoey-bundle-step .card-body {
        padding: 1rem;
    }

    .xoey-step-media .xoey-bundle-thumb {
        max-width: 84px;
    }

    .xoey-bundle-modal .modal-body {
        padding: 1.25rem 1rem 1rem;
    }
}

/* Sticky ATC temporalmente desactivado */
.tf-sticky-btn-atc {
    display: none !important;
}

@media (max-width: 991.98px) {
    .tf-sticky-btn-atc {
        bottom: 64px;
        padding: 12px 0;
    }

    .tf-sticky-btn-atc .tf-height-observer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .tf-sticky-btn-atc .tf-sticky-atc-product {
        width: 100%;
        justify-content: space-between;
    }

    .tf-sticky-btn-atc .tf-sticky-atc-img {
        width: 56px;
        height: 56px;
    }

    .tf-sticky-btn-atc .tf-sticky-atc-title {
        display: block !important;
        font-size: 1rem;
    }

    .tf-sticky-btn-atc .tf-sticky-atc-infos {
        width: 100%;
    }

    .tf-sticky-btn-atc .tf-sticky-atc-btns {
        width: 100%;
        gap: 12px;
        flex-wrap: wrap;
    }

    .tf-sticky-btn-atc .tf-product-info-quantity {
        flex: 1 1 40%;
    }

    .tf-sticky-btn-atc .tf-product-info-quantity .wg-quantity {
        width: 100%;
        justify-content: space-between;
    }

    .tf-sticky-btn-atc .tf-btn {
        flex: 1 1 55%;
    }

    .tf-main-product ~ .tf-toolbar-bottom,
    .tf-main-product ~ .tf-toolbar-bottom.type-1150,
    .tf-main-product ~ .tf-toolbar-bottom.type-1024 {
        display: flex;
    }
}
