/*
================================================

Space Vanta Theme 1.0

Module:
Bundle Preview Product Presentation

File:
public/bundle-template/bundle-hero/preview/product.css

Version:
2.0

Responsibility:
Bundle Option Object
Included Item Object
Spatial Product Presentation

================================================
*/


/* =================================================
   1. Bundle Option Object
================================================= */

.sv-bundle-preview-option {

    position: relative;

    width: 100%;

    min-width: 0;

    padding:
        18px 18px 20px;

    overflow: hidden;

    border:
        1px solid rgba(117, 106, 94, 0.18);

    border-radius:
        18px 7px 18px 7px;

    background:
        linear-gradient(145deg,
            #fbf9f5 0%,
            #eee8de 54%,
            #ddd5ca 100%);

    box-shadow:
        0 12px 26px rgba(55, 47, 39, 0.09),

        0 3px 8px rgba(55, 47, 39, 0.06),

        inset 0 1px 0 rgba(255, 255, 255, 0.86),

        inset 0 0 0 1px rgba(255, 255, 255, 0.24);

}


/* =================================================
   2. Option Reflection
================================================= */

.sv-bundle-preview-option::after {

    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    border-radius:
        inherit;

    background:
        linear-gradient(128deg,
            rgba(255, 255, 255, 0.22),
            transparent 27%,
            transparent 72%,
            rgba(78, 65, 53, 0.055));

}


/* =================================================
   3. Option Main
================================================= */

.sv-bundle-preview-option__main {

    position: relative;

    z-index: 1;

    display: flex;

    flex-direction: column;

    gap: 14px;

}


/* =================================================
   4. Option Media
================================================= */

.sv-bundle-preview-option__media {

    position: relative;

    width: 100%;

    aspect-ratio:
        1 / 0.72;

    overflow: hidden;

    border:
        1px solid rgba(117, 106, 94, 0.20);

    border-radius:
        15px 6px 15px 6px;

    background:
        linear-gradient(145deg,
            #f8f6f1,
            #d8d1c7);

    box-shadow:
        0 7px 16px rgba(55, 47, 39, 0.08),

        inset 0 1px 0 rgba(255, 255, 255, 0.86);

}


/* =================================================
   5. Option Image
================================================= */

.sv-bundle-preview-option__image {

    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    object-position: center;

    border-radius:
        15px 6px 15px 6px;

    transform:
        scale(1);

    transition:
        transform 500ms cubic-bezier(0.22, 1, 0.36, 1);

}


/* =================================================
   6. Option Content
================================================= */

.sv-bundle-preview-option__content {

    position: relative;

    z-index: 2;

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 14px;

}


/* =================================================
   7. Option Title
================================================= */

.sv-bundle-preview-option__title {

    width: 100%;

    font-family:
        var(--sv-font-ui,
            var(--sv-font-brand));

    font-size: 15px;

    font-weight: 600;

    line-height: 1.28;

    letter-spacing:
        -0.01em;

    color:
        #24221f;

}


/* =================================================
   8. Included Area
================================================= */

.sv-bundle-preview-option__included {

    position: relative;

    z-index: 2;

    margin-top: 22px;

    padding-top: 18px;

    border-top:
        1px solid rgba(117, 106, 94, 0.18);

}


/* =================================================
   9. Included Heading
================================================= */

.sv-bundle-preview-option__included-heading {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 8px;

    font-family:
        var(--sv-font-ui,
            var(--sv-font-brand));

    font-size: 9px;

    font-weight: 600;

    line-height: 1;

    letter-spacing: 0.17em;

    text-transform: uppercase;

    color:
        #6b5848;

}


/* =================================================
   10. Included Heading Line
================================================= */

.sv-bundle-preview-option__included-heading::after {

    content: "";

    flex: 1;

    height: 1px;

    background:
        linear-gradient(90deg,
            rgba(117, 106, 94, 0.22),
            transparent);

}


/* =================================================
   11. Included Items
================================================= */

.sv-bundle-preview-option__included-items {

    display: flex;

    flex-direction: column;

}


/* =================================================
   12. Included Item
================================================= */

.sv-bundle-preview-option__included-item {

    display: grid;

    grid-template-columns:
        52px minmax(0, 1fr);

    gap: 12px;

    align-items: center;

    min-width: 0;

    padding:
        9px 0;

    border-bottom:
        1px solid rgba(117, 106, 94, 0.13);

}


/* =================================================
   13. Last Included Item
================================================= */

.sv-bundle-preview-option__included-item:last-child {

    border-bottom:
        0;

}


/* =================================================
   14. Included Media
================================================= */

.sv-bundle-preview-option__included-media {

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 52px;

    height: 52px;

    min-width: 52px;

    min-height: 52px;

    overflow: hidden;

    border:
        1px solid rgba(117, 106, 94, 0.18);

    border-radius:
        12px 5px 12px 5px;

    background:
        linear-gradient(145deg,
            #faf8f3,
            #d8d1c7);

    box-shadow:
        0 4px 10px rgba(55, 47, 39, 0.07),

        inset 0 1px 0 rgba(255, 255, 255, 0.78);

}


/* =================================================
   15. Included Product Image Container
================================================= */

/*
 * The SHOPLINE product-card/image component
 * may introduce its own wrapper.
 *
 * Normalize that wrapper inside the
 * Bundle Preview frame without changing
 * the global Product Card system.
 */

.sv-bundle-preview-option__included-media>* {

    display: block;

    width: 100%;

    height: 100%;

    min-width: 0;

    min-height: 0;

}


/* =================================================
   16. Included Product Image
================================================= */

.sv-bundle-preview-option__included-image {

    display: block;

    width: 100%;

    height: 100%;

    max-width: none;

    max-height: none;

    object-fit: contain;

    object-position: center;

}


/* =================================================
   17. Prevent Product Card Image Wrapper
   From Creating Unexpected Spacing
================================================= */

.sv-bundle-preview-option__included-media [class*="image"] {

    min-width: 0;

    min-height: 0;

}


/* =================================================
   18. Mobile Included Media
================================================= */

@media (max-width: 768px) {

    .sv-bundle-preview-option__included-media {

        width: 48px;

        height: 48px;

        min-width: 48px;

        min-height: 48px;

    }

}


/* =================================================
   16. Included Content
================================================= */

.sv-bundle-preview-option__included-content {

    min-width: 0;

}


/* =================================================
   17. Product Title Normalization
================================================= */

.sv-bundle-preview-option__included-content .sv-product-card__title,
.sv-bundle-preview-option__included-content .sv-product-card-title {

    margin: 0;

    font-family:
        var(--sv-font-ui,
            var(--sv-font-brand));

    font-size: 12px;

    font-weight: 500;

    line-height: 1.35;

    color:
        #24221f;

}


/* =================================================
   18. Hover
================================================= */

@media (hover: hover) and (pointer: fine) {

    .sv-bundle-preview-option:hover {

        box-shadow:
            0 17px 32px rgba(55, 47, 39, 0.12),

            0 5px 12px rgba(55, 47, 39, 0.07),

            inset 0 1px 0 rgba(255, 255, 255, 0.88);

        transform:
            translateY(-2px);

    }


    .sv-bundle-preview-option:hover .sv-bundle-preview-option__image {

        transform:
            scale(1.012);

    }


    .sv-bundle-preview-option__included-item:hover {

        transform:
            translateX(2px);

    }

}


/* =================================================
   19. Transition
================================================= */

.sv-bundle-preview-option,
.sv-bundle-preview-option__included-item {

    transition:
        transform 280ms cubic-bezier(0.22, 1, 0.36, 1),

        box-shadow 320ms cubic-bezier(0.22, 1, 0.36, 1);

}


/* =================================================
   20. Mobile
================================================= */

@media (max-width: 768px) {

    .sv-bundle-preview-option {

        padding:
            15px 15px 18px;

        border-radius:
            15px 6px 15px 6px;

    }


    .sv-bundle-preview-option__media {

        border-radius:
            13px 5px 13px 5px;

    }


    .sv-bundle-preview-option__image {

        border-radius:
            13px 5px 13px 5px;

    }


    .sv-bundle-preview-option__title {

        font-size: 14px;

    }


    .sv-bundle-preview-option__included {

        margin-top: 18px;

        padding-top: 15px;

    }


    .sv-bundle-preview-option__included-item {

        grid-template-columns:
            48px minmax(0, 1fr);

        gap: 10px;

        padding:
            8px 0;

    }


    .sv-bundle-preview-option__included-media {

        width: 48px;
        height: 48px;

    }

}


/* =================================================
   21. Reduced Motion
================================================= */

@media (prefers-reduced-motion: reduce) {

    .sv-bundle-preview-option,
    .sv-bundle-preview-option__image,
    .sv-bundle-preview-option__included-item {

        transition: none;

    }

}