/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
.my-mfp-video .swiper-container {
    width: 100%;
    max-width: 700px;
    margin: auto;
}
@media screen and (max-width: 549px) {
    .slider-wrapper .product-gallery-slider .flickity-prev-next-button {
        display: unset;
        opacity: 1;
    }
}
.my-mfp-video .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    min-height: 220px;
    width: 100% !important;
    padding: 0 !important;
}

.my-mfp-video .swiper-slide iframe,
.my-mfp-video .swiper-slide video,
.my-mfp-video .swiper-slide img {
    width: 100%;
    max-width: 100%;
    height: 56vw;
    max-height: 70vh;
    object-fit: contain;
    background: #000;
    border-radius: 8px;
}

@media (max-width: 700px) {

    .my-mfp-video .swiper-slide iframe,
    .my-mfp-video .swiper-slide video,
    .my-mfp-video .swiper-slide img {
        height: 48vw;
        max-height: 40vh;
    }
}
.loader {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 4px solid #e94560;
    border-radius: 50%;
    border-top: 4px solid #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    } }
.you-may-also-like-section {
    margin: 48px 0 0 0;
    padding: 0 0 32px 0;
}

#infinite-products {
    background-color: #f9f9f9;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}
.product-card {
    /* margin: 1rem 0; */
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f9f9f9;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    flex: 0 0 calc(25% - 1rem);
        max-width: calc(25% - 1rem);
        box-sizing: border-box;
}

.you-may-also-like-section {
    margin-top: 60px;
    padding: 20px 0;
    background: #fafafa;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.related-products-slider .product-small {
    transition: transform 0.3s ease;
}

.related-products-slider .product-small:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); }

.you-may-price {
    color: #e94560;
    font-weight: bold;
    margin-bottom: 8px;
}

.you-may-cart .button {
    background: #e94560;
    color: #fff;
    border-radius: 6px;
    padding: 8px 18px;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s;
}

.you-may-cart .button:hover {
    background: #d12c48;
}

@media (max-width: 700px) {
    .product-title {
        font-size: 1.2rem;
        font-weight: 600;
    }
    .you-may-slide {
        min-width: 140px;
        max-width: 140px;
        padding: 8px;
    }

    .you-may-img img {
        height: 120px;
    }
}

.product-container h1{
    font-size: 0.9rem;
    font-weight: 600;
    width: auto;
    padding-left: 1rem;
}
.product-container .product-summary-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    padding: 0.5rem 3rem ;
    border-bottom: 1px solid #eee;
}

.sticky-add-to-cart-wrapper *{
    margin: 0;
}

.product-summary-inline>* {
    flex: 0 0 auto;
    white-space: nowrap;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    color: #222;
}

.product-excerpt {
    max-width: 300px;
    font-size: 0.95rem;
    color: #555;
    white-space: normal;
}

.product-sharing {
    margin-left: auto;
    /* đẩy về phía bên phải */
}

@media (max-width: 768px) {
    .product-title {
            font-size: 1rem;
            font-weight: 600;
        }
    .product-summary-inline {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .product-sharing {
        margin-left: 0;
    }
}

.sticky-add-to-cart--active {
    position: unset;
}
.woocommerce-variation-add-to-cart {
    /* position: sticky; */
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s;
}
.sticky-bar-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.sticky-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
}

.sticky-add-to-cart-img {
    width: 56px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
}

.product-title-small {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.sticky-bar-price .price {
    color: #e94560;
    font-weight: bold;
    font-size: 1.1rem;
}

.sticky-bar-center {
    flex: 1;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.sticky-variations-form {
    display: flex;
    gap: 12px;
}

.sticky-variation-select {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    min-width: 100px;
    background: #fafafa;
}

.sticky-bar-right {
    min-width: 140px;
    display: flex;
    justify-content: flex-end;
}

.sticky-bar-add-to-cart {
    background: #e94560;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

body * {
    font-family: Roboto-Light,
        Helvetica,
        Arial,
        sans-serif;
}


.sticky-bar-add-to-cart:hover {
    background: #d12c48;
}

/* Accordion style for product tabs */
.product-accordion-tabs .accordion-tab {
    border-bottom: 1px solid #eee;
}

.product-accordion-tabs {
    padding-right: 20px;
}

.accordion-tab-title {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    text-align: left;
    padding: 18px 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}

.accordion-tab-title[aria-expanded="true"] {
    color: #e94560;
}

.tab-toggle-icon {
    font-size: 1.3em;
    margin-left: 10px;
    transition: transform 0.2s;
}

.accordion-tab-content {
    padding: 0 0 18px 0;
    animation: fadeIn 0.2s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Tăng chiều cao khung slider chính */
.product-gallery-slider.woocommerce-product-gallery__wrapper {
    min-height: 670px;
    /* hoặc chiều cao bạn muốn */
    height: 670px;
}

/* Ảnh lớn trong slider chiếm toàn bộ chiều cao khung */
.product-gallery-slider .woocommerce-product-gallery__image,
.woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image {
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

/* Xóa khoảng trống giữa các ảnh lớn */
.product-gallery-slider .woocommerce-product-gallery__image {
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding: 0 !important;
}


/* Đảm bảo ảnh lớn không bị bo góc hoặc có border */
.product-gallery-slider .woocommerce-product-gallery__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    border: none;
}

.woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image {
    width: 33.33% !important;
    flex: 0 0 33.33%;
    max-width: 33.33%;
    padding: 0;
    box-sizing: border-box;
}

.woocommerce-product-gallery__wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

#infinite-products,.product-container .row ,.product-footer, .sticky-add-to-cart-wrapper, .product-summary-inline{
    display: flex;
    max-width: unset;
    padding: 0 3rem;
}
@media only screen and (max-width: 900px) {
    .product-card {
            flex: 0 0 calc(50% - 1rem);
            max-width: calc(50% - 1rem);
        }
    .product-title {
            font-size: 1.1rem;
            font-weight: 600;
        }
    .sticky-add-to-cart.sticky-bar-flex,
    .sticky-bar-flex {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 10px 8px;
    }

    .product-title-small {
        font-size: 0.9rem;
        font-weight: 500;
        margin-bottom: 2px;
    }

    .sticky-bar-left,
    .sticky-bar-center,
    .sticky-bar-right {
        min-width: 100%;
        width: 100%;
        /* justify-content: flex-start; */
    }

    .sticky-bar-left {
        flex-direction: row;
        gap: 8px;
        margin-bottom: 4px;
    }

    .sticky-add-to-cart-img {
        width: 44px;
        height: 54px;
    }

    .sticky-bar-center {
        justify-content: flex-start;
        gap: 8px;
        margin-bottom: 4px;
    }

    .sticky-variations-form {
        flex-wrap: wrap;
        gap: 4px;
        width: 100%;
        justify-content: center;
    }

    .sticky-bar-right {
        justify-content: flex-start;
        margin-top: 4px;
    }

    .sticky-bar-add-to-cart {
        width: 100%;
        padding: 6px 0;
        font-size: 0.8rem;
    }
}

@media only screen and (max-width: 600px) {
    .product-card {
            flex: 0 0 100%;
            max-width: 100%;
        }
    .product-title {
            font-size: 0.8rem;
            font-weight: 500;
        }
    .sticky-add-to-cart.sticky-bar-flex,
    .sticky-bar-flex {
        padding: 6px 2vw;
        gap: 0;
    }
        .sticky-bar-left,
        .sticky-bar-center,
        .sticky-bar-right {
            min-width: 0;
            width: 100%;
            justify-content: flex-start;
        }

    .product-title-small {
        font-size: 0.7rem;
        font-weight: 400;
        margin-bottom: 2px;
    }

    .sticky-bar-add-to-cart {
        font-size: 0.7rem;
        padding: 8px 0;
    }

    .sticky-bar-right {
        justify-content: flex-start;
        margin-top: 0;
    }

    .sticky-add-to-cart-img {
        width: 36px;
        height: 44px;
    }
}

.title-wrapper .product-title * {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media only screen and (max-width: 600px) {
    .products .product-card {
        flex: 0 0 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }
}

/* Desktop: 4 ảnh lớn */
.product-gallery-slider .woocommerce-product-gallery__image {
    width: 50% !important;
    flex: 0 0 50%;
    max-width: 50%;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

.product-gallery-slider img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 0;
    border: none;
}

/* Tablet: 2 ảnh lớn */
@media (max-width: 1024px) {
    .product-gallery-slider .woocommerce-product-gallery__image {
        width: 50% !important;
        flex: 0 0 50%;
        max-width: 50%;
    }

    .product-gallery-slider img {
        height: 320px;
    }
}

/* Mobile: 1 ảnh lớn */
@media (max-width: 600px) {
    .product-gallery-slider .woocommerce-product-gallery__image {
        width: 100% !important;
        flex: 0 0 100%;
        max-width: 100%;
    }

    .product-gallery-slider img {
        height: 220px;
    }
}

@media only screen and (max-width: 48em) {
    /*************** ADD MOBILE ONLY CSS HERE  ***************/


}