.woocommerce:where(body:not(.woocommerce-uses-block-theme)) .woocommerce-breadcrumb {
    font-size: 14px;
    color: #000000;
    margin: 1em 2em 0;

    a {
        color: #000 !important;
    }
}

.sf-product-head .sf-product-toolbar {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    gap: var(--sf-space-2, 8px);
}

.sf-product-head .sf-product-share-button.sf-context-action {
    width: 30px;
    height: 30px;
    border-radius: var(--sf-radius-sm, 8px);
    background: transparent;
    color: var(--sf-color-icon-muted, #c4c7e1);
}

.sf-product-head .sf-product-share-button.sf-context-action:hover {
    background: var(--sf-color-surface-hover, #e9e7f1);
    color: var(--sf-color-icon, #3f3c5a);
}

.sf-product-head .sf-product-share-button .sf-context-action__icon {
    width: 28px;
    height: 28px;
}

.sf-product-head .sf-product-share-button:focus-visible {
    outline: none;
    box-shadow: var(--sf-focus-ring, 0 0 0 3px rgb(255 173 105 / 38%));
}

.sf-breadcrumbs {
    margin: 0.75em 2em;

    a {
        font-size: 14px;
        color: #000 !important;
    }
}

.product {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    margin-bottom: 0;
    position: relative;

    .sf-main-product-content {
        display: grid;
        grid-template-rows: min-content;
        gap: 1em;

        .sf-product-subcontent {
            grid-area: img;

            /*gallery was here*/
        }
        
        .sf-product-summary {
            grid-area: text;
            background: #fff;
            padding: 0;
            border-radius: 15px;
            height: auto;
            position: sticky;
            top: 45px;
            display: grid;
            box-shadow: 0px 0px 5px 1px #e1e1e1;

            > *:last-child {
                padding-bottom: 1em;
            }

            > * {
                padding: 0.75em 1.5em 0;
            }

            .sf-product-intro {
                grid-area: toolbar;

                .sf-product-head {
                    display: flex;
                    flex-direction: row;
                    flex-wrap: nowrap;
                    justify-content: space-between;

                    .sf-product-rating {
                        display: inline-flex;
                        flex-direction: row;
                        flex-wrap: nowrap;
                        gap: 0.5em;
                        margin: 0;
                        width: fit-content;
                        align-items: center;
                        line-height: 2;

                        .rating {
                            font-size: 15px;
                        }

                        .woocommerce-review-link {
                            position: relative;
                            padding-left: 8px;
                            color: #888;
                        }

                        .woocommerce-review-link::before {
                            content: "·";
                            color: #868695;
                            width: 4px;
                            height: 20px;
                            position: absolute;
                            left: 0px;
                        }

                        .star-rating::before {
                            top: 0;
                            left: 0;
                            position: absolute;
                            background-image: url(../../images/stark-frame/a1-star-g.svg);
                            content: '';
                            display: block;
                            height: 100%;
                            width: 100%;
                            background-size: contain;
                        }

                        .star-rating {
                            position: relative;
                            height: 20px;
                            width: 7.1em;

                            span::before {
                                background-image: url(../../images/stark-frame/a1-star-o.svg);
                                content: '';
                                background-size: contain;
                                top: 0;
                                position: absolute;
                                left: 0;
                                width: 100%;
                                height: 100%;
                            }

                            span {
                                float: left;
                                top: 0;
                                left: 0px;
                                position: absolute;
                                height: 100%;
                            }
                        }
                    }
                }

                h1 {
                    color: #3f3c5a;
                    font-size: 24px;
                    clear: none;
                    font-weight: 600;
                    padding: 0 0 0.25em !important;
                    margin: 0;
                    border-bottom: 1.5px solid #dad9e1;
                }
            }

            .sf-product-meta {
                grid-area: description;
                display: flex;
                flex-direction: column;
                height: fit-content;
                flex-wrap: nowrap;
                gap: 0.5em;

                .prod-title {
                    margin: 0;
                    font-size: 18px;
                    color: rgb(63, 60, 90);
                    line-height: 1;
                    margin-top: 1em;
                }

                .sf-product-details__short-description, .sf-product-details__details {
                    display: flex;
                    flex-direction: column;
                    flex-wrap: nowrap;
                    gap: 0.5em;
                    margin-bottom: 0;
                    margin-top: 0.75em;
                }

                .sf-product-details__short-description {

                    p {
                        margin-bottom: 0;
                        margin-top: 0;
                    }
                }

                .meta-filter {
                    display: grid !important;
                    justify-content: space-between;
                    padding: 0;
                    color: #1c1c1c;
                    font-weight: 500;
                    white-space: nowrap;
                    grid-auto-rows: min-content;
                    gap: 0.5em;

                    .filter-name {
                        font-weight: 400;
                        color: #aaaaaa;
                    }

                    .meta-space {
                        width: 100%;
                        margin: 4px 0;
                        color: #aaaaaa;
                    }

                    .filter-val {
                        font-weight: normal;
                        white-space: nowrap;
                    }
                }

                .sf-read-more-butt:hover {
                    background: #fff0e2  !important;
                    color: #ffa95d !important;
                }

                .sf-read-more-butt {
                    cursor: pointer;
                    padding: 0 20px;
                    width: fit-content;
                    border-radius: 8px;
                    margin-top: 0.75em;
                    background: #ebeaf2;
                    color: #3f3c5a;
                    font-weight: 600;
                    height: 34px;
                    font-family: 'Poppins';
                    font-size: 13px;
                }
            }

            .variations {
                grid-area: variation;
                display: flex;
                flex-direction: column;
                flex-wrap: nowrap;
                gap: 1em;
                margin-bottom: 0;
                overflow-x: hidden;
                padding-top: 1em;

                .var-container.is-hidden {
                    display: none !important;
                }

                .var-container {
                    display: flex;
                    flex-direction: column;
                    flex-wrap: nowrap;
                    gap: 0.5em;

                    .label {
                        display: flex;
                        flex-direction: row;
                        flex-wrap: nowrap;
                        justify-content: flex-start;
                        white-space: nowrap;
                        gap: 0.5em;
                        padding: 0;

                        label {
                            color: #aaaaaa;
                        }

                        .option-name {
                            color: #1c1c1c;
                        }
                    }

                    .value {
                        position: relative;

                        .sf-att-img {
                            position: relative;
                            left: -1.5em;
                            width: calc(100% + 3em);

                            ul {
                                display: flex;
                                margin: 0;
                                width: fit-content !important;
                                flex-direction: row;
                                list-style-type: none;
                                padding: 0;
                                gap: 0em;
                                flex-wrap: nowrap;
                                margin: 0 1.5em;

                                .unavailable {
                                    opacity: 0.33;
                                }

                                li.active {
                                    img {
                                        box-shadow: 0 0 0 2.5px #ffa95d;
                                    }
                                }

                                li {
                                    background: unset !important;
                                    position: relative;
                                    cursor: pointer;
                                    padding: 0px;
                                    width: unset;
                                    border: unset !important;
                                    border-radius: 6px !important;
                                    transition: all 0.2s ease-in-out;
                                    margin: 3px 6px 3px 3px;

                                    img {
                                        object-fit: cover;
                                        padding: 0;
                                        border-radius: 6px;
                                        display: block;
                                        position: relative;
                                        max-width: unset;
                                        max-height: unset;
                                        width: 80px !important;
                                        aspect-ratio: 3 / 4 !important;
                                        height: unset !important;
                                    }

                                    .option-name {
                                        display: none;
                                    }
                                }

                            }
                        }

                        > div:not(.sf-att-img) {

                            ul {
                                display: flex;
                                flex-wrap: wrap;
                                margin: 0;
                                width: 100%;
                                flex-direction: row;
                                gap: 0.5em;
                                padding: 0;

                                li.active {
                                    color: #eea05b !important;
                                    background: #fff0e2 !important;
                                }

                                li.opt-disable {
                                    display: none !important;
                                }

                                li.non-selected {
                                    opacity: 0.3;
                                    pointer-events: none;
                                }

                                li {
                                    padding: 0 15px;
                                    display: flex;
                                    height: 34px;
                                    align-items: center;
                                    flex-direction: row;
                                    margin: 0;
                                    width: fit-content;
                                    justify-content: center;
                                    position: relative;
                                    cursor: pointer;
                                    overflow: hidden;
                                    border-radius: 8px;
                                    transition: all 0.2s ease-in-out;
                                    background: #ebeaf2;
                                    color: #3f3c5a;
                                    font-weight: 600;
                                    font-family: 'Poppins';
                                    font-size: 13px;
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

.sf-product-summary, .sf-price-summary {

    .sf-price-wrap--from {
        display: flex;
        gap: 0;
        flex-direction: column;

        .sf-price-prefix {
            font-size: 14px;
            line-height: 1;
        }
    }
}

.sf-price-summary {

    .price {
        text-align: left;
        padding: 0 10px;
        font-size: 24px !important;
        font-weight: 700;
        color: #3f3c5a !important;
        font-family: 'DM Sans';
        margin: 0 !important;
    }

    .sf_add_to_cart_buttons {
        display: flex;
        flex-direction: column;
    }
}

.sf_add_to_cart_buttons {
    flex-wrap: nowrap;
    gap: 0.5em;

    > button {
        border-radius: 8px;
        font-family: 'Poppins';
        font-weight: 600;
        height: 36px;
    }

    .single_add_to_cart_button {
        background: #ebeaf2 !important;
        color: #3f3c5a !important;
    }

    .single_buy_now_button {
        background: #3f3c5a !important;
        color: #fff !important;
    }
}

.prod-title {
    margin: 1em 0 0;
    color: rgb(63 60 90);
    font-size: 18px;
    line-height: 1;
}

.sf-product-gallery {
    transition: opacity 0.12s ease;
}

.sf-product-gallery, .sf-post-gallery {
    display: grid;
    position: sticky;
    top: 45px;
    gap: 0.75em;

    .main-product-image-cont, .main-post-image-cont {
        grid-area: main;
        overflow: hidden;
        position: relative;
        display: grid;
        grid-template-columns: 100%;
        grid-template-rows: 100%;

        .main-gallery-wrapper, .sf-post-gallery__wrapper {

            .sf-main-image.has-blur-bg {
                position: relative;
                display: flex;
                justify-content: center;
                align-items: center;
                background-size: cover;
                background-position: center;
                overflow: hidden;
                width: 100%;
                z-index: 9;

                .starkframe-video-wrapper {
                    position: relative;
                    z-index: 99;
                }

                .sf-product-video, .sf-post-video {
                    z-index: 999;
                    height: 100%;
                    padding: 0;
                    display: block;
                    margin: 0 !important;
                    width: 100%;
                    object-fit: contain;
                    backdrop-filter: blur(30px);
                    border-radius: 15px;
                }

                .swiper-zoom-container {

                    img {
                        z-index: 999;
                        height: 100%;
                        padding: 0;
                        display: block;
                        margin: 0 !important;
                        width: 100%;
                        object-fit: contain;
                        backdrop-filter: blur(30px);
                        border-radius: 15px;
                    }
                }
            }
        }
    }

    .sf-product-thumbnails, .sf-post-thumbnails {
        grid-area: thumb;
        position: relative;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
        overflow: hidden;
        height: 100%;
        width: 100%;
        border-radius: 8px;

        .swiper-slide.sf-thumb-active::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            box-shadow: 0 0 0 2.5px #ffa95d inset;
            z-index: 999;
            border-radius: 7px;
        }

        .swiper-slide.sf-thumb-active {
            transform: scale(0.95);
        }

        .swiper-slide {
            transition: transform 0.3s ease;
            cursor: pointer;
            margin-bottom: 8px;
            height: auto;
        
            img {
                height: auto;
                object-fit: cover;
                padding: 0;
                border-radius: 8px;
                display: block;
                position: relative;
                margin: 0px !important;
                width: 100%;
                aspect-ratio: 3 / 4;
            }
        }
    }
}


@container main (min-width: 1401px) {

    .sf-main-product-content {
        grid-template-columns: 40% 35% 25%;
        grid-template-areas:
        'img text price';
        width: calc(100% - 2em);

        .sf-product-summary {
            grid-template-areas:
                "toolbar"
                "variation"
                "description"
                "review";
            grid-template-columns: 100%;
            grid-template-rows: repeat(3, auto) 1fr;
            padding-bottom: 1.5em !important;

            .sf-cart-form, .price {
                display: none  !important;
            }
        }

        .sf-price-summary {
            background: #fff;
            padding: 10px;
            border-radius: 12px;
            height: fit-content;
            position: sticky;
            top: 45px;
            display: flex;
            flex-direction: column;
            flex-wrap: nowrap;
            gap: 1em;
            box-shadow: 0px 0px 5px 1px #e1e1e1;
        }
    }
}

@container main (max-width: 1400px) {

    .sf-price-summary {
        display: none;
    }
}

@container main (min-width: 901px) and (max-width: 1400px) {

    .sf-main-product-content {
        grid-template-columns: 50% 50%;
        grid-template-areas:
        'img text';
        width: calc(100% - 1em);

        .sf-product-summary {
            padding-bottom: 0 !important;
            grid-template-areas:
                "toolbar"
                "variation"
                "description"
                "review";
            grid-template-columns: 100%;
            grid-template-rows: repeat(2, auto) 1fr auto;

            .price {
                text-align: left;
                padding: 0.25em 0 0.35em;
                font-size: 24px !important;
                font-weight: 700;
                color: #3f3c5a !important;
                font-family: 'DM Sans';
                margin: 0 !important;
            }

            .sf_add_to_cart_buttons {
                display: flex;
                flex-direction: row;

                > button {
                    width: 100%;
                    cursor: pointer;
                    border-radius: 8px !important;
                    font-family: 'Poppins';
                    font-weight: 600 !important;
                    height: 36px;
                    box-sizing: border-box;
                }
            }
        }
    }
}

@container main (min-width: 1201px) {

    .sf-product-gallery, .sf-post-gallery {
        grid-template-columns: 15% calc(85% - 0.75em);
        grid-template-areas: 'thumb main';
        overflow: hidden;
        height: 90vh;
        max-height: 1080px;

        .main-product-image-cont, .main-post-image-cont {

            .sf-main-image.has-blur-bg {
                height: 90vh;
                max-height: 1080px;
            }
        }

        .sf-product-thumbnails, .sf-post-thumbnails {

            .swiper-wrapper {
                flex-direction: column;

                .swiper-slide {
                    width: 100%;
                }
            }
        }
    }

    .sf-product-summary {

        .sf-cart-form {
            display: none;
        }
    }
}

@container main (min-width: 901px) and (max-width: 1200px) {

    .sf-product-gallery, .sf-post-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
        grid-template-areas: 'main' 'thumb';
        height: 90vh;
        max-height: 1080px;

        .main-product-image-cont, .main-post-image-cont {

            .sf-main-image.has-blur-bg {
                height: 100%;
                min-height: 320px;

                .swiper-zoom-container {
              
                    img {
                        aspect-ratio: 1 / 1;                       
                    }
                }

                video {
                    aspect-ratio: 1 / 1;
                }
            }
        }

        .sf-product-thumbnails, .sf-post-thumbnails {

            .swiper-slide {
                width: 100px;
            }
        }
    }

    .sf-product-summary {
        height: fit-content !important;
    }
}

@container main (min-width: 901px) {

    .product .variations li:hover {
        color: #ffa95d !important;
        background: #fff0e2 !important;
    }

    .sf-product-summary {
        .sf-product-meta {
            .meta-space {
                border-bottom: 1px dashed #1c1c1c40;
            }
        }
    }
}

@container main (max-width: 900px) {

    .woocommerce:where(body:not(.woocommerce-uses-block-theme)) .woocommerce-breadcrumb {
        display: none;
    }

    .sf-main-product-content {
        grid-template-columns: 100%;
        grid-template-areas:
        'img' 'text';
        margin-bottom: 0 !important;

        .main-product-image-cont, .main-post-image-cont {

            .main-button-next, .main-button-prev {
                display: none !important;
            }

            #main_pag {
                z-index: 1;
            }
        }

        .sf-product-summary {
            width: auto;
            grid-template-areas:
                "toolbar"
                "variation"
                "description"
                "review";
            grid-template-columns: 100%;
            grid-template-rows: repeat(3, auto) 1fr;
            padding: 0 0 1.5em 0 !important;

            h1 {
                font-size: 22px !important;
            }

            .sf-product-meta {

                .meta-space {
                    border-bottom: 1px dotted #1c1c1c40;
                }
            }

            .sf-cart-form, .price {
                display: none  !important;
            }
        }
    }
}

@container main (min-width: 601px) and (max-width: 900px) {
    .sf-product-gallery, .sf-post-gallery {
        grid-template-columns: 15% calc(85% - 0.75em);
        grid-template-areas: 'thumb main';
        overflow: hidden;
        height: 90vh;
        max-height: 1080px;
        padding: 1.5em;
        width: 100%;
        box-sizing: border-box;

        .main-product-image-cont, .main-post-image-cont {

            .sf-main-image.has-blur-bg {
                height: 100%;
                max-height: 1080px;
            }
        }

        .sf-product-thumbnails, .sf-post-thumbnails {

            .swiper-wrapper {
                flex-direction: column;

                .swiper-slide {
                    width: 100%;
                }
            }
        }
    }
}

@container main (min-width: 601px) {

    .main-gallery-wrapper, .sf-post-gallery__wrapper {
        .sf-main-image.has-blur-bg {
            aspect-ratio: unset;
            border-radius: 15px;
        }
    }
    
    .meta-filter {
        grid-template-columns: min-content minmax(0, 1fr) 50%;
    }
}

@container main (max-width: 600px) {

    .sf-product-gallery, .sf-post-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
        grid-template-areas: 'main';
        aspect-ratio: 4 / 5;
                width: 100%;
    
        #main_pag {
            bottom: 0;
        }

        .main-gallery-wrapper, .sf-post-gallery__wrapper {
            
            .sf-main-image.has-blur-bg {
                height: calc(100% - 1.25em);
                min-height: 320px;

                .swiper-zoom-container {

                    img {
                        border-radius: 0 !important;
                        aspect-ratio: 1 / 1;
                    }
                }

                video {
                    border-radius: 0 !important;
                    aspect-ratio: 1 / 1;
                }
            }
        }

        .sf-product-thumbnails, .sf-post-thumbnails {
            display: none !important;

            .swiper-slide {
                width: 100px;
            }
        }
    }

    .meta-filter {
        grid-template-columns: min-content minmax(0, 1fr) min-content;
    }
}

@media screen and (min-width: 901px) {

    .sf-footer-buy-buttons {
        display: none;
    }
}

@media screen and (max-width: 900px) {

    .sf-footer-buy-buttons {
        position: fixed;
        bottom: 60px;
        left: 0px;
        right: 0px;
        width: 100%;
        background: rgb(255 255 255);
        z-index: 9;
        box-shadow: 0 -1px 6px 2px #7a7a7a29;

        .price {
            text-align: right;
            padding: 0.5em 1em 0;
            font-weight: 700;
            font-family: "DM Sans";
            font-size: 14px !important;
            color: rgb(63, 60, 90) !important;
            margin: 0px !important;

            .sf-price-wrap--from {
                display: flex;
                gap: 0.35em;
                flex-direction: row;
                flex-wrap: nowrap;
                justify-content: flex-end;

                .sf-price-prefix {
                    font-size: 12px;
                    align-self: end;
                }

                .sf-price {
                    display: inline-flex;
                    gap: 0.25em;
                    justify-content: flex-end;
                }
            }
        }

        .sf-cart-form {

            .sf_add_to_cart_buttons {
                display: flex;
                flex-direction: row;
                padding: 0.5em 0.5em 3px;

                > button {
                    width: 100%;
                    border-radius: 8px !important;
                    font-family: 'Poppins';
                    font-weight: 600 !important;
                    height: 36px;
                    box-sizing: border-box;
                    font-size: 14px;
                }
            }
        }
    }
}
