/* Single product page */
/* Single Product */
.page-title:not(.featured-title)+main .product-main {
    padding-top: 40px;
}
.product .badge-container {
    margin-top: 0;
}
.product-info {
    color: #000;
}
.product-title.product_title.entry-title {
    font-size: 1.375rem;
    font-weight: normal;
}
.sku_wrapper .sku {
    font-size: 1.25em;
}
.product-info .price {
    font-size: 1.875rem;
    margin: 1em 0;
}
.product-info .woocommerce-product-attributes {
    display: block;
    margin-bottom: .5em;
}
.product-info .woocommerce-product-attributes * {
    display: inline-block;
}
.product-info .woocommerce-product-attributes tbody,
.product-info .woocommerce-product-attributes tr {
    display: block;
}
.product-info .woocommerce-product-attributes tr+tr {
    border-top: none;
    margin-top: 10px;
}
.product-info .woocommerce-product-attributes th, .product-info .woocommerce-product-attributes td {
    border-bottom: none;
    font-size: 1.125rem;
    letter-spacing: 0;
    padding: 0;
}
.product-info .woocommerce-product-attributes-item__label {
    text-transform: none;
    font-weight: bold;
}
.product-info .woocommerce-product-attributes-item__label:after {
    content: ':';
}
.woocommerce-product-attributes p {
    margin: 0;
}
.product-thumbnails .is-nav-selected a, .product-thumbnails a:hover {
    border-color: #000;
}
.ux-swatch {
    color: #000;
    box-shadow: 0 0 0 1px #000;
}
.variations_form .ux-swatch.selected {
    color: #FFF;
    background-color: #000;
    box-shadow: 0 0 0 2px #000 !important;
}
.product_meta {
    margin-top: 2em;
}
.product_meta>span {
    border-top: none;
    color: #000;
}
/* Reviews: see assets/css/reviews.css */

/* Product video in the gallery: see inc/woocommerce/product-video-gallery.php */
.uni-product-video {
    position: relative;
    width: 100%;
    aspect-ratio: var(--uni-video-ratio, 1 / 1);
    background: #000;
}
.uni-product-video__player {
    position: absolute;
    inset: 0;
}
.uni-product-video__player iframe,
.uni-product-video__player video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: contain;
}
.uni-video-thumb {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: var(--uni-video-ratio, 1 / 1);
    background: #fff;
    color: #111;
    cursor: pointer;
}
.uni-video-thumb__label {
    margin-top: 6px;
    font-size: 1.125rem;
    line-height: 1;
}

/* Vertical gallery (desktop): 80px thumbnail slider, 20px gap to the main slider */
@media (min-width: 850px) {
    .row > .col.vertical-thumbnails {
        flex: 0 0 80px;
        width: 80px;
        max-width: 80px;
        padding-left: 0;
        padding-right: 0;
    }
    .vertical-thumbnails .product-thumbnails.row {
        margin-left: 0;
        margin-right: 0;
    }
    .vertical-thumbnails .product-thumbnails .col {
        /* Flatsome forces width: 95% !important and margin-left: 1px on these cells. */
        flex-basis: 100%;
        width: 100% !important;
        margin-left: 0;
        padding-left: 0;
        padding-right: 0;
    }
    .row > .col:has(> .product-images, > .woocommerce-product-gallery) {
        flex: 1 1 0;
        max-width: none;
        min-width: 0;
        padding-left: 20px;
    }
}

/* Gallery dots: mobile only */
@media (min-width: 850px) {
    .product-gallery-slider .flickity-page-dots {
        display: none;
    }
    .uni-video-bar {
        display: none;
    }
}

/* Gallery (mobile): "Video" bar under the main slider, thumbnails without the video cell */
@media (max-width: 849px) {
    .uni-product-video-thumb {
        display: none !important;
    }
    .uni-video-bar {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        margin: 0;
        padding: 0;
        min-height: 64px;
        border: 0;
        border-radius: 0;
        background: #eee;
        color: #111;
        font-size: 1.25rem;
        line-height: 1;
        text-transform: none;
        letter-spacing: 0;
        cursor: pointer;
    }
    .uni-video-bar.is-active {
        background: #ddd;
    }
    /* 5px between the Video bar and the thumbnails (drop the column's default bottom padding) */
    .row > .col:has(> .uni-video-bar) {
        padding-bottom: 0;
    }
    .vertical-thumbnails {
        margin-top: 5px;
        padding-top: 0;
    }
    /* No border box: the selected state is an inset outline so the gap stays exactly 4px */
    .vertical-thumbnails .product-thumbnails .col a {
        border: 0;
    }
    /* Flatsome lifts the selected thumbnail by 5px, which would touch the Video bar */
    .vertical-thumbnails .product-thumbnails .col.is-nav-selected a img,
    .vertical-thumbnails .product-thumbnails .col a:hover img {
        transform: none;
    }
    .vertical-thumbnails .product-thumbnails .col.is-nav-selected a {
        outline: 1px solid rgba(0, 0, 0, .2);
        outline-offset: -1px;
    }
    /* 4px between thumbnails (2px each side), exactly 7 per row width (the row is 4px wider than the gallery) */
    .vertical-thumbnails .product-thumbnails.row {
        margin-left: -2px;
        margin-right: -2px;
    }
    .vertical-thumbnails .product-thumbnails .col {
        /* +.01px: Flickity only loops when the cells are wider than the row (7 cells would fit exactly) */
        flex-basis: calc(100% / 7 + .01px);
        max-width: calc(100% / 7 + .01px);
        padding-left: 2px !important;
        padding-right: 2px !important;
    }
}

/* Vertical gallery (desktop): the thumbnail column scrolls inside, without a scrollbar */
@media (min-width: 850px) {
    .vertical-thumbnails {
        scrollbar-width: none;
    }
    .vertical-thumbnails::-webkit-scrollbar {
        display: none;
    }
}

/* Zoom button: top right of the main slider (all screens) */
.woocommerce-product-gallery .image-tools.bottom.left {
    top: 0;
    right: 0;
    bottom: auto;
    left: auto;
    padding: 10px;
}

/* Accordion (description + global tabs) under the add to cart block */
.uni-product-accordion {
    margin-top: 20px;
    color: #000;
    font-size: .875rem;
}
.uni-product-accordion .accordion-title {
    text-transform: uppercase;
    font-size: inherit;
    border-top: none;
    border-bottom: 1px solid currentColor;
    padding-top: 15px;
    padding-bottom: 15px;
    padding-left: 0;
}
.uni-product-accordion .accordion-title.active {
    background-color: transparent;
}
/* Icon in front of each accordion title (SVG used as a mask so it follows the text colour) */
.uni-accordion-icon > .accordion-title > span::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 12px;
    vertical-align: -3px;
    background-color: currentColor;
    -webkit-mask: var(--uni-accordion-icon) center / contain no-repeat;
    mask: var(--uni-accordion-icon) center / contain no-repeat;
}
.uni-accordion-icon--dress {
    --uni-accordion-icon: url("../img/accordion-dress.svg");
}
.uni-accordion-icon--exchange {
    --uni-accordion-icon: url("../img/accordion-exchange.svg");
}
.uni-accordion-icon--shipping {
    --uni-accordion-icon: url("../img/accordion-shipping.svg");
}
.uni-product-accordion .accordion .toggle {
    top: 12px;
    left: unset;
    right: 0;
}
.uni-product-accordion .accordion-inner {
    padding-left: 0;
    padding-right: 0;
}
.uni-product-accordion .accordion-inner > *:last-child {
    margin-bottom: 0;
}

/* Add to cart: [quantity] [Bảng size] on the first row, the button full width below */
.wrap-btn-cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px 50px;
    margin-bottom: 1em;
}
.woocommerce-variation-add-to-cart .quantity,
form.cart:not(.variations_form):not(.grouped_form) .quantity {
    margin: 0;
}
/* Quantity: rounded pill  [ -   1   + ] */
.single-product form.cart .quantity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 160px;
    height: 40px;
    padding: 0 6px;
    box-sizing: border-box;
    border: 1px solid #d9d9d9;
    border-radius: 99px;
    background: #fff;
    overflow: hidden;
}
.single-product form.cart .quantity .minus,
.single-product form.cart .quantity .plus {
    flex: 0 0 38px;
    width: 38px;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #000;
    font-size: 1rem;
    font-weight: normal;
    line-height: 1;
    opacity: 1;
    cursor: pointer;
}
.single-product form.cart .quantity .qty {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #000;
    font-size: 1rem;
    text-align: center;
    -moz-appearance: textfield;
    appearance: textfield;
}
.single-product form.cart .quantity .qty::-webkit-outer-spin-button,
.single-product form.cart .quantity .qty::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}
.woocommerce-variation-add-to-cart .single_add_to_cart_button,
form.cart:not(.variations_form):not(.grouped_form) .single_add_to_cart_button {
    flex: 0 0 auto;
    order: 3;
    margin: 0;
    font-weight: normal;
    text-transform: none;
    border-radius: 99px;
    min-width: 280px;
}
.woocommerce-variation-add-to-cart .uni-size-chart,
form.cart .uni-size-chart,
.uni-size-chart {
    flex: 0 0 auto !important; /* Flatsome stretches direct children of the add to cart row */
    width: auto;
    display: inline-block;
    text-decoration: underline;
    text-underline-offset: 4px;
    color: inherit;
    white-space: nowrap;
}

/* SKU under the product title */
.uni-product-sku {
    margin-bottom: .5em;
    font-size: .875em;
    opacity: .7;
}

/* One price: the main price follows the variation, hide WooCommerce's second price block */
.single-product .product-info .woocommerce-variation-price {
    display: none;
}

.uni-product-video__player video {
    cursor: pointer;
}

/* Categories line ("You may also like :"): bold label, light links */
.product_meta .posted_in {
    font-weight: 700;
}
.product_meta .posted_in a {
    font-weight: 400;
    color: #999;
}
.product_meta .posted_in a:hover {
    color: #111;
}



/* Product sections on mobile: centered title, prev / next on the same row at the right ( ‹ | › ) */
.uni-product-section {
    position: relative;
}
/* Titles of the three sections are always centered (desktop and mobile). */
.uni-product-section .product-section-title {
    text-align: center;
    font-weight: normal;
    font-size: 1.375rem;
}
@media (max-width: 549px) {
    .uni-product-section .product-section-title {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 49px;
        margin: 0;
        text-align: center;
    }
}

.product-section {
    border-top: none;
}
.product-viewed {
    background: #f7f7f7;
    padding-top: 30px;
    padding-bottom: 30px;
}
.product-footer {
    padding-bottom: 30px;
}