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

.xtool-product-thumbnail {
    position: relative;
    overflow: hidden;
}

.xtool-product-thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.12);
    z-index: 1;
    pointer-events: none;
    transition: background .2s ease-in-out;
}

.xtool-product-thumbnail:hover::after {
    background: rgba(0, 0, 0, 0.15);
}

.xtool-product-thumbnail .xtool-product-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.xtool-product-thumbnail .xtool-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity .28s ease-in-out;
}

.xtool-product-thumbnail>* {
    position: relative;
    z-index: 2;
}

.xtool-product-image {
    transition: opacity .28s ease-in-out, transform .28s ease-in-out;
}

.xtool-product-thumbnail:hover .xtool-product-image {
    opacity: 0;
    transform: scale(1.03);
}

.xtool-product-thumbnail:hover .xtool-bg-video {
    opacity: 1;
}

.xtool-product-thumbnail:hover::after {
    background: rgba(0, 0, 0, 0.22);
}

.xtool-product-title {
    transition: color .2s ease-in-out;
    color: inherit;
}

.xtool-product-thumbnail:hover .xtool-product-title {
    color: #ffffff;
}

.xtool-product-thumbnail:hover .xtool-product-price * {
    color: #ffffff;
}

.padding-0 {
    padding: 0px;
}

.custom-tabs-wrapper {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
}

.custom-tabs-wrapper::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari */
}

.custom-tabs {
    position: relative;
    display: inline-flex;
    background: #f5f5f5;
    border-radius: 50px;
    padding: 5px;
    list-style: none;
    margin: 0 0px 35px 0px;
}

.custom-tabs li {
    margin: 0 !important;
}

.video-wrapper {
    position: sticky;
    top: 20px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #000;
    height: 480px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ux-accordion-item {
    background: #ecedf0;
    border-radius: 30px;
    margin-bottom: 15px;
    overflow: hidden;
    padding: 15px;
}

.accordion-collapse {
    padding: 15px;
}

.accordion-collapse.show {
    display: block !important;
}

.ux-accordion-header a {
    display: flex;
    column-gap: 14px;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
}

.ux-accordion-header a span {
    color: #000;
}

.ux-accordion-header {
    margin: 0px;
}

.xtools-content-slide.swiper-slide-active>div {
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.custom-image {
    position: sticky;
    top: 20px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    background: #000;
    height: 480px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-image img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 5 / 4;
    object-fit: cover;
}

/* Gallery */
.xtool-product-gallery {
    position: sticky;
    top: 20px;
}

.woocommerce p.stars a {
    font-size: 0;
}

.woocommerce p.stars a::after {
    font-size: 16px;
}

.woocommerce-product-gallery__wrapper {
    border: 1px solid #ececec;
    border-radius: 8px;
    overflow: hidden;
}

.stars a+a:after {
    margin-left: 15px;
}


.stars a {
    color: transparent !important;
    display: inline-block;
    font-family: fl-icons;
    font-size: 16px;
    margin-left: 0px;
    overflow: hidden;
    margin-right: 5px;
}

.product-thumbnails a {
    border-radius: 8px;
}

.gallery-item {
    margin-bottom: 15px;
    border-radius: 18px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item-large {
    height: 300px;
}

.gallery-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.gallery-item-small {
    height: 200px;
    margin-bottom: 0;
}

.gallery-item {
    margin-bottom: 15px;
    border-radius: 18px;
    overflow: hidden;
}

/* Category Tabs with Sliding Background */
.product-category-tabs-wrapper {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

/* Type 1: Default Carousel */
.product-carousel-type-1 {
    position: relative;
}

.xtools-product-banner {
    display: flex;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 20px;
    overflow: hidden;
    color: #fff;
}

.xtools-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.xtools-btn {
    padding: 8px 17px;
    border-radius: 30px;
    font-weight: 400;
    font-size: 12px;
}

.xtools-btn-primary {
    background: #0066ff;
    border: none;
    color: #fff;
}

.xtools-btn-outline {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
}

.xtools-product-info {
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 35px;
    column-gap: 15px;
}

.product-image img {
    max-width: 100%;
    aspect-ratio: 16/9;
    height: auto;
}

.product-card-content {
    flex: 1;
    flex-direction: column;
    justify-content: center;
}

.product-tagline {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.product-features li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

div#countdown {
    display: flex;
    flex-wrap: wrap;
}

.xtools-product-actions .xtools-product-action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.product-actions .btn {
    padding: 8px 17px;
    border-radius: 30px;
    font-weight: 400;
    font-size: 14px;
}

h3.product-name {
    font-size: 24px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    color: #fff;
    overflow: hidden;
}

ul.product-list-features {
    display: flex;
    list-style: none;
    column-gap: 16px;
    font-size: 12px;
    margin: 0;
    padding: 0;
}

.product-actions .btn-primary {
    background: #0066ff;
    border: none;
    color: #fff;
}

.product-actions .btn-outline {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.carousel-navigation {
    display: flex;
    gap: 10px;
}

.carousel-navigation button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.carousel-navigation button:hover {
    background: #000;
    color: #fff;
}

/* Type 2: Single Product */
.product-carousel-type-2 .single-product-slide {
    padding: 40px;
}

.product-image-large img {
    width: 100%;
    height: auto;
    border-radius: 24px;
}

.product-details {
    padding-left: 40px;
}

.product-details .product-name {
    font-size: 2.5rem;
    color: #000;
    margin-bottom: 20px;
}

.product-price {
    font-size: 1.5rem;
    color: #0066ff;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Type 3: Card Carousel */
.product-carousel-type-3 .product-card-item {
    padding: 15px;
}

.product-carousel-type-3 .card {
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    transition: all 0.3s;
}

.product-carousel-type-3 .card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.card-img-wrapper {
    padding: 20px;
    text-align: center;
    background: #f8f8f8;
}

.card-img-wrapper img {
    max-width: 100%;
    height: auto;
}

.card-title a {
    color: #000;
    text-decoration: none;
    font-weight: 600;
}

.card-title a:hover {
    color: #0066ff;
}

.tab-content>.tab-pane {
    display: none;
}

.tab-content>.tab-pane.active {
    display: block;
}

/* Category Tabs with Sliding Background */
.product-category-tabs-wrapper {
    display: flex;
}

li.nav-item {
    position: relative;
    z-index: 0;
}


.tab-slider {
    position: absolute;
    background: #000;
    border-radius: 999px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    height: calc(100% - 10px);
    top: 5px;
}

.product-category-tabs .nav-item {
    position: relative;
    z-index: 0;
    margin: 0;
}

li.nav-item.active {
    z-index: 1;
}

.custom-tabs .nav-link {
    border: none;
    color: #666;
    padding: 10px 5px;
    font-weight: 500;
    background: transparent;
    transition: all 0.3s;
    border-radius: 50px;
    position: relative;
    z-index: 2;
    cursor: pointer;
    font-size: 12px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    width: 128px;
    height: 100%;
    /* Fixed width */
    box-sizing: border-box;
}

.custom-tabs .nav-item.active .nav-link * {
    color: #f2f2f2;
}

.custom-tabs .nav-link .tab-title {
    font-weight: 600;
    position: relative;
    z-index: 2;
    width: 100%;
    display: block;
    white-space: normal;
    /* Allow title wrap if needed, though usually short */
}

.custom-tabs .nav-link .tab-description {
    font-size: 10px;
    font-weight: 400;
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    white-space: normal;
    /* Allow text wrap */
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 0;
    /* Remove margin as we calculate exact width */
    pointer-events: none;
    width: 128px;
    /* Same width as tab */
    padding: 0 10px;
    text-align: left;
    line-height: 1.3;
    display: flex;
    align-items: center;
    height: 100%;
}

.custom-tabs .nav-item.active .tab-description {
    opacity: 1;
}

/* Fix for last item to ensure description aligns properly if needed, 
   but user asked for it to be on the right. 
   We rely on JS to expand the slider. */

.custom-tabs .nav-link:hover {
    color: #333;
}

.custom-tabs .nav-link.active {
    color: #fff;
}

/* Product List */
.product-list-content {
    padding-right: 10px;
}

.product-list {
    display: grid;
    gap: 15px;
    padding: 15px;
    border-radius: 999px;
}

.product-list .product-excerpt {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
}

.product-list .product-price {
    font-size: 0.85rem;
    font-weight: 600;
    color: #f1494e;
    margin-bottom: 10px;
}

.product-list .product-price del {
    color: #666;
    font-weight: 400;
}

.product-list .product-name {
    font-size: 16px;
}

.product-list-content::-webkit-scrollbar {
    width: 6px;
}

.product-list-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 24px;
}

.product-list-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 24px;
}

.product-list-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.product-list-item {
    display: flex;
}

.product-list-item .product-thumbnail {
    width: 60px;
}

.product-list-item .product-content {
    flex: 1;
}

.product-list-item .product-thumbnail img {
    width: 60px;
    height: 40px;
    object-fit: cover;
}

.product-list .product-list-item:not(:last-child) {
    border-bottom: 1px solid #e9e9e9;
}

.product-list-item .product-name a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    font-weight: 400;
    color: #000;
}


.product-name a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s;
}

.product-name a:hover {
    color: #007aff;
}

.product-excerpt {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.6;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #007aff;
    margin-bottom: 10px;
}

.product-thumbnail {
    border-radius: 8px;
    overflow: hidden;
}

.product-thumbnail img {
    width: 100%;
    height: auto;
    transition: transform 0.3s;
}

.product-thumbnail:hover img {
    transform: scale(1.05);
}

/* Fade transition for tab content */
.tab-pane {
    transition: opacity 0.3s ease-in-out;
}

.tab-pane.fade {
    opacity: 0;
}

.tab-pane.fade.show {
    opacity: 1;
}


@media (max-width: 768px) {
.product-container .product-main {
    padding-bottom: 0;
}
	.product-bottom-action .hide-for-off-canvas {
    display: none;
}
    .xtool-product-thumbnail {
        padding: 15px !important;
    }

    .custom-tabs {
        margin-bottom: 15px;
    }

    .custom-tabs-wrapper {
        justify-content: flex-start !important;
    }

    .product-list-item .row {
        flex-direction: column-reverse;
    }

    .product-list-item .col-8,
    .product-list-item .col-4 {
        max-width: 100%;
        flex: 0 0 100%;
    }

    .product-thumbnail {
        margin-bottom: 15px;
    }

    .product-content {
        padding-right: 0;
    }
}

.accordion-tabs-wrapper,
.product-list-tabs-wrapper {
    margin-bottom: 35px;
}

/* Search Drawer */
.search-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    z-index: 9999;
    overflow: hidden;
    transition: height 0.4s ease;
}

.search-drawer.active {
    height: 100vh;
}

.search-drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.search-drawer.active .search-drawer-overlay {
    opacity: 1;
}

.search-drawer-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    transform: translateY(-100%);
    transition: transform 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.search-drawer.active .search-drawer-content {
    transform: translateY(0);
}

.search-drawer-inner {
    padding: 60px 0;
    position: relative;
}

.close-search-drawer {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.close-search-drawer:hover {
    background: #333;
    color: #fff;
    transform: rotate(90deg);
}

.close-search-drawer i {
    font-size: 20px;
}

.search-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.search-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: #000;
}

.search-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.search-field {
    flex: 1;
    height: 60px;
    padding: 0 25px;
    border: 2px solid #eee;
    border-radius: 50px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s;
}

.search-field:focus {
    border-color: var(--primary-color, #28bd44);
    box-shadow: 0 0 0 4px rgba(40, 189, 68, 0.1);
}

.search-submit {
    height: 60px;
    padding: 0 40px;
    background: var(--primary-color, #28bd44);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.search-submit:hover {
    background: #00a000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 189, 68, 0.3);
}

.search-submit i {
    font-size: 18px;
}

/* Popular Keywords */
.popular-keywords {
    text-align: center;
}

.keywords-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    display: block;
}

.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.keyword-tag {
    padding: 8px 20px;
    background: #f5f5f5;
    color: #333;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

.keyword-tag:hover {
    background: var(--primary-color, #28bd44);
    color: #fff;
    transform: translateY(-2px);
}

/* Prevent body scroll when drawer is open */
body.search-drawer-open {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .header-right-actions {
        gap: 10px;
    }

    .header-action-item .action-icon {
        width: 35px;
        height: 35px;
    }

    .header-action-item .action-icon i {
        font-size: 16px;
    }

    .mini-cart-dropdown {
        width: 300px;
    }

    .search-title {
        font-size: 24px;
    }

    .search-input-group {
        flex-direction: column;
    }

    .search-field,
    .search-submit {
        height: 50px;
    }

    .search-submit {
        justify-content: center;
    }
}

.xtool-product-thumbnail {
    background: #f8f9fd;
    padding: 30px;
    border-radius: 19px;
    height: 100%;
    border: 1px solid #e9edfb;
}

a.xtool-product-link-text i {
    font-size: 8px;
    margin-top: 1px;
}

a.xtool-product-link-text {
    color: #3498db;
    font-weight: 500;
    font-size: 90%;
    display: flex;
    align-items: center;
    column-gap: 7px;
}

a.xtool-product-link-button {
    background: #00c868;
    color: #fff;
    padding: 8px 16px;
    border-radius: 35px;
    font-size: 85%;
    font-weight: 500;
}

.xtool-product-title {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-clamp: 1;
}

.badge-inner.secondary.on-sale {
    color: #ffffff;
    background: red;
    border-radius: 0px;
    padding: 1px 15px;
    font-size: 17px;
    height: auto !important;
    min-height: unset;
}

a.xtool-product-compare-button {
    background: #ebebeb;
    color: #333;
    padding: 8px 16px;
    border-radius: 35px;
    font-size: 85%;
    font-weight: 500;
}

.xtool-product-actions {
    margin-top: 35px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

ul.xtool-product-cats-list {
    list-style: none;
}

ul.xtool-product-cats-list a {
    background: #fffcfc;
    color: #333;
    font-size: 70%;
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid #e9edfb;
}

ul.xtool-product-cats-list li {
    display: inline-block;
    margin-right: 5px;
}

.xtool-product-image {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
    aspect-ratio: 1;
}

a.woocommerce-loop-product__link {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    line-clamp: 1;
}

/* Tabs Style - Black bg, white text */
.xtools-slider-tabs-wrapper {
    margin-bottom: 30px;
}

.xtools-slider-tabs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.xtools-slider-tabs .tab-item {
    background: #000;
    color: #fff;
    padding: 8px 20px;
    border-radius: 99px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
    opacity: 0.6;
}

.xtools-slider-tabs .tab-item.active,
.xtools-slider-tabs .tab-item:hover {
    opacity: 1;
    background: #000;
    /* Keep black or change? User said black bg white text. Assuming active is also black but fully opaque */
}

/* Swiper Styles */
.xtools-content-swiper {
    width: 100%;
    overflow: visible;
    /* To see neighbors if container is constrained? Swiper handles this. */
}

.xtools-content-slide {
    width: 90%;
    /* Mobile default */
    transition: transform 0.3s, opacity 0.3s;
    opacity: 0.5;
    /* Fade out side slides */
    transform: scale(0.9);
}

.xtools-content-slide.swiper-slide-active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.slide-inner {
    position: relative;
    width: 100%;
    height: 540px;
    /* Fixed height or aspect ratio */
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    /* Darken bg for text */
}

.slide-content {
    z-index: 1;
    color: #fff;
    position: absolute;
    bottom: 0;
    text-align: left;
    width: 100%;
    padding: 40px;
    padding-bottom: 60px;
}

.slide-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, black, transparent);
    bottom: 0;
    left: 0;
    content: "";
    z-index: 0;
}

.slide-content h3 {
    color: #fff;
    font-size: 1.75rem;
    margin-bottom: 10px;
}

.slide-content .slide-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: .95rem;
}

@media md {
    .xtools-content-slide {
        width: 70%;
    }
}

@media (min-width: 1024px) {
.section-body.section-video {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 20px;justify-content: space-between;
}
    .xtools-content-slide {
        width: 50%;
        /* The magic number for showing 1/2 of sides */
    }
		.section-body.section-video .wp-video {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 48%;
    -moz-box-flex: 0;
    -ms-flex: 0 0 48%;
    flex: 0 0 48%;
    max-width: 48%;
}
}
@media (min-width: 1400px) {

	.section-body.section-video .wp-video {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 32%;
    -moz-box-flex: 0;
    -ms-flex: 0 0 32%;
    flex: 0 0 32%;
    max-width: 32%;
}
}
/* Nav wrapper: đây là vị trí gốc trong DOM */
  #nav-wrapper {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    border-top: 2px solid #d32f2f;margin-bottom: 20px;
  }

  @keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
  }
.sticky-nav {
    position: fixed;
    top: 71px;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    border-bottom: 2px solid #e0e0e0;
    border-top: 2px solid #d32f2f;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    animation: slideDown 0.25s ease;
}
  nav#main-nav {
    display: flex;
    flex-wrap: wrap;justify-content: center;
  }

  nav#main-nav a {
    display: inline-block;
    padding: 12px 14px;
    font-size: 13.5px;
    color: #1a6fc4;
    text-decoration: none;
    border-right: 1px solid #e0e0e0;
    transition: background .2s, color .2s;
    white-space: nowrap;
  }

  nav#main-nav a:first-child { border-left: 1px solid #e0e0e0; }
  nav#main-nav a:hover,
  nav#main-nav a.active {
    background: #1a6fc4;
    color: #fff;
  }

div.product .video-backgrounds .video-bg video {
    width: 100%;
}
.content-wrapper .section-title b {
    opacity: 0;
}
div.product .video-backgrounds {
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

div.product .video-banner-wrapper {
    margin-bottom: 30px;
}
.alla-block .title-block {
    color: #fff;
    cursor: pointer;
    background: linear-gradient(180deg, #03B2FF 0%, #00577E 100%);
    padding: 8px 12px;
    text-transform: uppercase;
    position: relative;text-align: center;
    letter-spacing: 1px;
}
.alla-block {margin-bottom:30px;}
.alla-block .title-block:after {
    content: "";
    display: inline-block;
    width: 31px;
    height: 31px;
    background: url(assets/images/close.svg) no-repeat;
    background-size: cover;
    position: absolute;
    right: 15px;
    top: 5px;
}
.alla-block .title-block.closed:after {
    background-image: url(assets/images/open.svg);
}
.widget-list-item {
    margin-bottom: 20px;
}
.widget-list-item .content {
    padding-left: 15px;
}
.section-body ul {
    padding-left: 18px;
}
.related.related-products-wrapper.product-section h3.product-section-title.product-section-title-related {
    display: none;
} 
.woocommerce-product-rating .woocommerce-review-link {
    font-size: 14px;
    color: #fff;
    display: inline-block;
    text-align: center;
    border-radius: 30px;
    background: #717171;
    padding: 2px 15px;
}
.section-body .content-product {
    text-align: justify;
}
.section-body table td:first-child {
    padding-left: 10px;
}
.section-body iframe[src*="youtube.com"], 
.section-body iframe[src*="youtu.be"] {
  width: 100%;            /* Chiều rộng chiếm hết khung chứa */
  height: auto;           /* Cho phép chiều cao tự thay đổi */
  aspect-ratio: 16 / 9;   /* Ép tỷ lệ 16:9 */
  border: none;           /* Xóa viền mặc định */
}

.section-body .wp-video .wp-video-shortcode {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9;
}

.section-body .wp-video {
    margin-bottom: 35px;
}
.entry-summary.product-summary button.single_add_to_cart_button.button.alt {
    background-color: var(--primary-color);
}
.entry-summary.product-summary button.ux-buy-now-button.button.primary.ml-half {
    background-color: #383838;
}
.price-wrapper p.availability,.single_variation_wrap .woocommerce-variation-price {
    display: none;
}
.accordion .toggle {
    left: auto;
    right: 0;
}
.section-body .box.box-normal.box-text-bottom.box-blog-post {
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 22px rgb(0 0 0 / 8%);
}
.box.item-access {
    border-radius: 8px;
}
.section-body .box.item-access.box-default .box-image {
    width: 100%;
    order: 2;
}

.section-body .box.has-hover.item-access.box-default {
    display: flex;
    flex-flow: row wrap;
}
.video-playback {
    display: block;
    width: 100%;
}

.video-playback video {
    width: 100%;
    border-radius: 18px;
}
button.uxce-arrow svg {
    min-width: 16px;
}
.combo-variant-item {
    border: 2px solid rgb(221, 221, 221);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    text-align: center;
    width: 145px;
}
.combo-variant-item .variant-price {
    margin: 0;
    color: #e74c3c;
    font-size: 14px;
    font-weight: bold;
}
.single-product-images .woo-product-video {80%: 16px;flex-basis: 20%;max-width: 20%;}
.single-product-images {
    display: flex;
    justify-content: space-between;
}

.single-product-images .product-thumbnails.thumbnails.slider {
    flex-basis: 80%;
    max-width: 80%;
}
.wpv-thumbnail {
    position: relative;
    width: 106px;
    background-size: cover;
    background-position: center;
    background-color: #111;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
    height: 58px;
    border: 1px solid #a1a1a1;
}
.wpv-thumbnail:hover,
.wpv-thumbnail:focus { transform: scale(1.01); box-shadow: 0 6px 24px rgba(0,0,0,.3); outline: none; }

.wpv-play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 72px; height: 72px;
    transition: transform .2s ease;
}
.wpv-thumbnail:hover .wpv-play-btn { transform: translate(-50%,-50%) scale(1.12); }
.wpv-play-btn svg { width: 100%; height: 100%; }

.wpv-label {
    position: absolute;
    bottom: 12px; left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,.65);
    color: #fff;
    font-size: 13px;
    padding: 4px 14px;
    border-radius: 20px;
    white-space: nowrap;
    pointer-events: none;
}

/* ---- Overlay ---- */
.wpv-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: wpvFadeIn .25s ease;
}
.wpv-overlay.wpv-active { display: flex; }

@keyframes wpvFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.wpv-modal {
    position: relative;
    width: 90vw;
    max-width: 900px;
    animation: wpvSlideUp .28s ease;
}
@keyframes wpvSlideUp {
    from { transform: translateY(24px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.wpv-close {
    position: absolute;
    top: -44px; right: 0;
    background: none; border: none;
    cursor: pointer; padding: 4px;
    line-height: 1;
}
.wpv-close svg { width: 28px; height: 28px; display: block; }

.wpv-player-wrap {
    position: relative;
    padding-top: 56.25%;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
}
.wpv-iframe,
.wpv-local-video {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    border: none;
}
/*-------------------------------------------- Hotline -----------------------------------------*/
.widget--action--fixed {
	position: fixed;
	bottom: 25px;
	right: 5px;
	width: 50px;
	z-index: 1;
}
.widget--action--fixed>a.widget--action--item {
	width: 44px;
	height: 44px;
	line-height: 44px;
	display: inline-block;
	border: none;
	font-size: 18px;
	color: #fff;
	text-align: center;
	position: relative;
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 2px 5px 0 rgba(0,0,0,.11);
	background-size: auto;
	background-repeat: no-repeat;
	background-position: center;
	float: left;
	margin-bottom: 10px;
}
a.widget--action--item.click--hotline {
	background-image: url(assets/images/widget_icon_click_to_call.svg);
	background-color: #509600;
}
a.widget--action--item.click--zalo {
	background-image: url(assets/images/widget_icon_zalo.svg);
	background-color: #0068ff;
}
a.widget--action--item.click--messenger {
	background-image: url(assets/images/widget_icon_messenger.svg);
	background-color: #0084ff;
}
.widget--action--fixed>a.widget--action--item:hover {
	box-shadow: 0 0 15px rgb(0 0 0 / 30%);
}
.widget--action--fixed>a.widget--action--item span {
    position: absolute;
    height: 44px;
    line-height: 44px;
    border-radius: 22px;
    padding: 0px 20px 0 50px;
    right: 113%;
    z-index: -1;
    font-size: 15px;
}
.widget--action--fixed>a.widget--action--item:hover span {
    right: auto;
    left: 0;
}

a.widget--action--item.click--hotline span {
    background-color: #509600;
}
a.widget--action--item.click--zalo span{
    background-color: #0068ff;
}
a.widget--action--item.click--messenger span{
	background-color: #0084ff;
}
/*------------------------------------------------ End Hotline-------------------------------*/