
/* Zoom button của Flatsome */
.single-product .image-tools.absolute.bottom.left.z-3 {
    position: absolute !important;
    top: 10px !important;
    left: 0 !important;
    right: auto !important;
    bottom: unset !important; /* xóa bottom:0 mặc định */
}

.single-product .image-tools.absolute.bottom.left.z-3 .zoom-button {
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;

    border: 0 !important;
    outline: 0 !important;
    border-radius: 50% !important;

    background: rgba(255, 255, 255, 0.82) !important;
    box-shadow: none !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    color: #111111 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: box-shadow 0.2s ease, transform 0.2s ease !important;
}

/* Xóa border và shadow mặc định */
.single-product .image-tools.absolute.bottom.left.z-3 .zoom-button,
.single-product .image-tools.absolute.bottom.left.z-3 .zoom-button * {
    border: 0 !important;
    box-shadow: none !important;
}

/* Ẩn icon mặc định */
.single-product .image-tools.absolute.bottom.left.z-3 .zoom-button i,
.single-product .image-tools.absolute.bottom.left.z-3 .zoom-button svg {
    display: none !important;
}

/* Icon mới nhỏ hơn */
.single-product .image-tools.absolute.bottom.left.z-3 .zoom-button::before {
    content: "⛶";
    font-size: 14px;
    line-height: 1;
    color: #111111 !important;
    font-weight: 600;
}

/* Hover sáng hơn */
.single-product .image-tools.absolute.bottom.left.z-3 .zoom-button:hover,
.single-product .image-tools.absolute.bottom.left.z-3 .zoom-button:focus {
    background: rgba(255, 255, 255, 0.82) !important;
    color: #111111 !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10) !important;
    transform: none !important;
}

.single-product .image-tools.absolute.bottom.left.z-3 .zoom-button::before,
.single-product .image-tools.absolute.bottom.left.z-3 .zoom-button:hover::before,
.single-product .image-tools.absolute.bottom.left.z-3 .zoom-button:focus::before {
    color: #111111 !important;
    opacity: 1 !important;
    visibility: visible !important;
}


/* Sale badge container */
.single-product .badge-container {
    top: 10px !important;
    left: auto !important;
    right: 10px !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Xóa padding/margin của các thẻ cha */
.single-product .badge-container .callout,
.single-product .badge-container .badge,
.single-product .badge-container .badge-inner {
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
}

/* Chỉ span hiển thị theo đúng nội dung */
.single-product .badge-container .onsale {
    display: inline-block !important;
    font-size: 12px !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 6px 8px !important;
    margin: 0 !important;
    line-height: 1 !important;
}

/* Khi di chuột vào vùng ảnh sản phẩm, con trỏ đổi thành kính lúp */
.single-product .woocommerce-product-gallery__wrapper,
.single-product .woocommerce-product-gallery__image,
.single-product .woocommerce-product-gallery__image a,
.single-product .woocommerce-product-gallery__image img {
    cursor: zoom-in !important;
}

.single-product .woocommerce-product-gallery,
.single-product .product-images {
    width: 100% !important;
    max-width: 100% !important;
}

.single-product .woocommerce-product-gallery .flickity-viewport {
    overflow: hidden !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    max-height: none !important;
}

.single-product .woocommerce-product-gallery__wrapper {
    width: 100% !important;
    height: 100% !important;
    transition: transform 0.38s ease !important;
    will-change: transform;
}

.single-product .woocommerce-product-gallery__wrapper .flickity-slider {
    height: 100% !important;
}

.single-product .woocommerce-product-gallery__image {
    overflow: hidden !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f4f7f8;
}

.single-product .woocommerce-product-gallery__image a {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.single-product .woocommerce-product-gallery__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    margin: auto !important;
}

.single-product .woocommerce-product-gallery > .flex-control-nav.flex-control-thumbs,
.single-product .product-images > .flex-control-nav.flex-control-thumbs {
    display: none !important;
}

.single-product .woocommerce-product-gallery__image img.custom-gallery-slide-image {
    animation: none !important;
    will-change: auto;
}

@keyframes customProductGallerySlide {
    0% {
        opacity: 0;
        transform: translateX(46px);
    }

    35% {
        opacity: 1;
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hover vào ảnh vẫn giữ cursor zoom-in */
.single-product .woocommerce-product-gallery__wrapper:hover,
.single-product .woocommerce-product-gallery__image:hover,
.single-product .woocommerce-product-gallery__image a:hover,
.single-product .woocommerce-product-gallery__image img:hover {
    cursor: zoom-in !important;
}

body.single-product .mfp-bg,
body.single-product .mfp-wrap {
    background: rgba(0, 0, 0, 0.88) !important;
}

body.single-product .mfp-container {
    padding: 56px 24px 120px !important;
}

body.single-product .mfp-content {
    max-width: 760px !important;
}

body.single-product .mfp-figure {
    margin: 0 !important;
}

body.single-product .mfp-figure figure {
    margin: 0 !important;
    display: flex !important;
    justify-content: center !important;
}

body.single-product .mfp-img {
    max-width: min(760px, calc(100vw - 96px)) !important;
    max-height: calc(100vh - 210px) !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    padding: 0 !important;
    margin: 0 auto !important;
    background: #ffffff !important;
}

body.single-product .mfp-bottom-bar {
    margin-top: 12px !important;
}

body.single-product .mfp-counter,
body.single-product .mfp-title {
    display: none !important;
}

body.single-product .mfp-close {
    top: 14px !important;
    right: 24px !important;
    width: 38px !important;
    height: 38px !important;
    color: #ffffff !important;
    opacity: 0.75 !important;
    font-size: 38px !important;
    line-height: 38px !important;
}

body.single-product .mfp-close:hover {
    opacity: 1 !important;
}

body.single-product .mfp-arrow {
    width: 60px !important;
    height: 60px !important;
    margin-top: -30px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.42) !important;
    opacity: 1 !important;
}

body.single-product .mfp-arrow:hover {
    background: rgba(255, 255, 255, 0.62) !important;
}

body.single-product .mfp-arrow::before {
    display: none !important;
}

body.single-product .mfp-arrow::after {
    border-top-width: 10px !important;
    border-bottom-width: 10px !important;
    margin-top: -10px !important;
}

body.single-product .mfp-arrow-left {
    left: 16px !important;
}

body.single-product .mfp-arrow-right {
    right: 16px !important;
}

body.single-product .mfp-gallery .mfp-thumbnails,
body.single-product .mfp-thumbnails {
    position: fixed !important;
    left: 50% !important;
    bottom: 28px !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    width: auto !important;
    max-width: calc(100vw - 48px) !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.single-product .mfp-thumbnails img,
body.single-product .mfp-gallery .mfp-thumbnails img {
    width: 64px !important;
    height: 64px !important;
    object-fit: cover !important;
    background: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.65) !important;
}

body.single-product .mfp-thumbnails .active img,
body.single-product .mfp-gallery .mfp-thumbnails .active img {
    border-color: #ffffff !important;
}

@media (max-width: 768px) {
    body.single-product .mfp-container {
        padding: 54px 16px 104px !important;
    }

    body.single-product .mfp-img {
        max-width: calc(100vw - 32px) !important;
        max-height: calc(100vh - 180px) !important;
    }

    body.single-product .mfp-arrow {
        width: 46px !important;
        height: 46px !important;
    }

    body.single-product .mfp-thumbnails img,
    body.single-product .mfp-gallery .mfp-thumbnails img {
        width: 54px !important;
        height: 54px !important;
    }
}

body.single-product .pswp,
body.single-product .pswp__bg {
    background: #000000 !important;
}

body.single-product .pswp__bg {
    opacity: 0.92 !important;
}

body.single-product .pswp__top-bar {
    background: transparent !important;
}

body.single-product .pswp__counter {
    color: #ffffff !important;
    opacity: 0.9 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

body.single-product .pswp__button {
    opacity: 0.75 !important;
}

body.single-product .pswp__button:hover {
    opacity: 1 !important;
}

body.single-product .pswp__button--arrow--left,
body.single-product .pswp__button--arrow--right {
    width: 54px !important;
    height: 54px !important;
    margin-top: -27px !important;
    border-radius: 50% !important;
    background-color: rgba(255, 255, 255, 0.35) !important;
}

body.single-product .pswp__img {
    background: transparent !important;
    max-width: calc(100vw - 96px) !important;
    max-height: calc(100vh - 190px) !important;
    object-fit: cover !important;
}

body.single-product .pswp__zoom-wrap {
    max-height: calc(100vh - 180px) !important;
}

body.single-product .custom-pswp-thumbnails {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 999999;
    display: flex;
    justify-content: center;
    gap: 8px;
    max-width: calc(100vw - 48px);
    transform: translateX(-50%);
}

body.single-product .custom-pswp-thumbnails button {
    width: 66px;
    height: 66px;
    margin: 0;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    opacity: 0.72;
}

body.single-product .custom-pswp-thumbnails button.is-active {
    border-color: #ffffff;
    opacity: 1;
}

body.single-product .custom-pswp-thumbnails img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #ffffff;
}

@media (max-width: 768px) {
    body.single-product .pswp__img {
        max-width: calc(100vw - 24px) !important;
        max-height: calc(100vh - 160px) !important;
    }

    body.single-product .custom-pswp-thumbnails {
        bottom: 18px;
        gap: 6px;
    }

    body.single-product .custom-pswp-thumbnails button {
        width: 54px;
        height: 54px;
    }
}


/* ==========================================
   CUSTOM PRODUCT VARIATIONS
========================================== */

.custom-hidden-select {
    display: none !important;
}

.single-product .share-icons.share-row {
    display: flex !important;
    align-items: center !important;
    gap: 18px !important;
    margin: 18px 0 0 !important;
}

.single-product .share-icons.share-row::before {
    content: "Share";
    color: #111111;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
}

.single-product .share-icons.share-row .icon {
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: inherit !important;
    line-height: 1 !important;
    transition: transform 0.18s ease !important;
}

.single-product .share-icons.share-row .icon:hover,
.single-product .share-icons.share-row .icon:focus {
    background: transparent !important;
    box-shadow: none !important;
    transform: scale(1.08) !important;
}

.single-product .share-icons.share-row .icon i {
    font-size: 28px !important;
    line-height: 1 !important;
}

.single-product .share-icons.share-row .whatsapp,
.single-product .share-icons.share-row .email,
.single-product .share-icons.share-row .linkedin {
    display: none !important;
}

.single-product .share-icons.share-row .facebook,
.single-product .share-icons.share-row .facebook:hover,
.single-product .share-icons.share-row .facebook:focus,
.single-product .social-icons.share-icons.share-row a.icon.button.facebook,
.single-product .social-icons.share-icons.share-row a.icon.button.facebook:hover,
.single-product .social-icons.share-icons.share-row a.icon.button.facebook:focus,
.single-product .social-icons.share-icons.share-row a.icon.button.facebook i,
.single-product .social-icons.share-icons.share-row a.icon.button.facebook:hover i,
.single-product .social-icons.share-icons.share-row a.icon.button.facebook:focus i,
.single-product .social-icons.share-icons.share-row a.icon.button.facebook i::before {
    color: #1877f2 !important;
}

.single-product .share-icons.share-row .twitter,
.single-product .share-icons.share-row .twitter:hover,
.single-product .share-icons.share-row .twitter:focus,
.single-product .social-icons.share-icons.share-row a.icon.button.twitter,
.single-product .social-icons.share-icons.share-row a.icon.button.twitter:hover,
.single-product .social-icons.share-icons.share-row a.icon.button.twitter:focus,
.single-product .social-icons.share-icons.share-row a.icon.button.twitter i,
.single-product .social-icons.share-icons.share-row a.icon.button.twitter:hover i,
.single-product .social-icons.share-icons.share-row a.icon.button.twitter:focus i,
.single-product .social-icons.share-icons.share-row a.icon.button.twitter i::before {
    color: #1da1f2 !important;
}

.single-product .share-icons.share-row .pinterest,
.single-product .share-icons.share-row .pinterest:hover,
.single-product .share-icons.share-row .pinterest:focus,
.single-product .social-icons.share-icons.share-row a.icon.button.pinterest,
.single-product .social-icons.share-icons.share-row a.icon.button.pinterest:hover,
.single-product .social-icons.share-icons.share-row a.icon.button.pinterest:focus,
.single-product .social-icons.share-icons.share-row a.icon.button.pinterest i,
.single-product .social-icons.share-icons.share-row a.icon.button.pinterest:hover i,
.single-product .social-icons.share-icons.share-row a.icon.button.pinterest:focus i,
.single-product .social-icons.share-icons.share-row a.icon.button.pinterest i::before {
    color: #bd081c !important;
}

.single-product .social-icons.share-icons.share-row a.icon.button:hover,
.single-product .social-icons.share-icons.share-row a.icon.button:focus {
    background-color: transparent !important;
    border-color: transparent !important;
}

.custom-variation-form,
.custom-variation-form * {
    text-transform: none !important;
}

/* ==========================================
   VARIATION ROW
========================================== */

.custom-variation-row {
    margin-bottom: 12px !important;
    padding: 0 !important;
}

.custom-variation-label,
.custom-quantity-label {
    font-size: 14px !important;
    line-height: 1.4;
    font-weight: 400;
    color: #111111;
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
}

.selected-value {
    font-weight: 400;
}

/* ==========================================
   VARIANT BUTTONS
========================================== */

.custom-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
}

.custom-swatch {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: auto !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 12px !important;
    margin: 0 !important;

    border: 1px solid #d4d4d4;
    border-radius: 9px;

    background: #ffffff;
    color: #111111;

    font-size: 14px !important;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;

    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-swatch:hover {
    border-color: #194d3c !important;
}

.custom-swatch.is-selected {
    background: #194d3c !important;
    border-color: #194d3c !important;
    color: #ffffff !important;
}



/* Single product presentation */
.single-product .product-page-title {
    display: none !important;
}

.single-product .product-page-title .page-title-inner {
    min-height: 0 !important;
    height: auto !important;
    padding-top: 10px !important;
    padding-bottom: 0 !important;
}

.single-product .product-container {
    margin-top: 10px !important;
}

.single-product .custom-product-breadcrumb,
.single-product nav.woocommerce-breadcrumb.custom-product-breadcrumb,
.single-product nav.breadcrumbs.custom-product-breadcrumb {
    display: block !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    color: #8f9698 !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
    text-transform: none !important;
}

.single-product .custom-product-breadcrumb a,
.single-product nav.woocommerce-breadcrumb.custom-product-breadcrumb a,
.single-product nav.breadcrumbs.custom-product-breadcrumb a {
    color: #8f9698 !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    text-transform: none !important;
}

.single-product .custom-product-breadcrumb .delimiter,
.single-product nav.woocommerce-breadcrumb.custom-product-breadcrumb .delimiter,
.single-product nav.breadcrumbs.custom-product-breadcrumb .delimiter {
    color: #c6cccc !important;
    margin: 0 10px !important;
}

.single-product .custom-product-breadcrumb .current,
.single-product nav.woocommerce-breadcrumb.custom-product-breadcrumb .current,
.single-product nav.breadcrumbs.custom-product-breadcrumb .current {
    color: #8f9698 !important;
    font-weight: 400 !important;
    text-transform: none !important;
}

.single-product .custom-product-breadcrumb span:last-child,
.single-product nav.woocommerce-breadcrumb.custom-product-breadcrumb span:last-child,
.single-product nav.breadcrumbs.custom-product-breadcrumb span:last-child {
    color: #1f2426 !important;
    font-weight: 500 !important;
    text-transform: none !important;
}

.single-product .product-info {
    color: #10201b;
}

.single-product .product-gallery > .custom-product-breadcrumb {
    display: block !important;
    margin: 0 0 8px;
}

.single-product .product-title,
.single-product .product_title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.15;
    color: #193029;
    margin: 10px 0 12px;
    letter-spacing: 0;
}

/* Rating */
.single-product .custom-product-rating,
.single-product .woocommerce-product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 12px;
    line-height: 1;
}

.single-product .custom-product-rating .star-rating,
.single-product .woocommerce-product-rating .star-rating {
    margin: 0;
    color: #f5b318;
}

.single-product .custom-product-rating .star-rating::before,
.single-product .custom-product-rating .star-rating span::before,
.single-product .woocommerce-product-rating .star-rating::before,
.single-product .woocommerce-product-rating .star-rating span::before {
    color: #f5b318;
}

.single-product .custom-product-rating .woocommerce-review-link,
.single-product .woocommerce-product-rating .woocommerce-review-link {
    color: #10201b;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
}

/* Price */
.single-product .custom-product-price-wrapper,
.single-product .product__price,
.single-product .price-wrapper {
    margin: 0 0 24px;
}

.single-product .custom-product-price,
.single-product .product-page-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    line-height: 1;
}

.single-product .price-span,
.single-product .custom-product-price > .amount,
.single-product .product-page-price > .amount {
    display: inline-flex;
    align-items: center;
    color: #194d3c;
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
}

.single-product .price-span .amount {
    color: inherit;
}

.single-product .price-original {
    display: inline-flex;
    align-items: center;
    color: #8b9290;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    text-decoration: line-through;
}

.single-product .price-original .amount {
    color: inherit;
}

.single-product .price-sale-msg {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 25px;
    padding: 0 16px 0 12px;
    margin-left: 2px;
    background: #194d3c;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.single-product .price-sale-msg::after {
    content: "";
    position: absolute;
    top: 0;
    right: -9px;
    width: 0;
    height: 0;
    border-top: 12.5px solid transparent;
    border-bottom: 12.5px solid transparent;
    border-left: 9px solid #194d3c;
}

/* Variation swatches */
.single-product .custom-variation-form,
.single-product .custom-variation-form * {
    text-transform: none;
    letter-spacing: 0;
}

.single-product .custom-hidden-select {
    display: none;
}

.single-product .custom-variations {
    display: grid;
    gap: 18px;
    margin: 0 0 4px;
}

.single-product .custom-variation-row {
    margin: 0;
}

.single-product .custom-variation-label,
.single-product .custom-quantity-label {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 0 0 12px;
    color: #10201b;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
}

.single-product .custom-variation-label .selected-value {
    color: #10201b;
}

.single-product .custom-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.single-product .custom-swatch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    margin: 0;
    border: 1px solid #cfd5d2;
    border-radius: 9px;
    background: #ffffff;
    color: #10201b;
    box-shadow: none;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.single-product .custom-swatch:hover {
    border-color: #174f3e;
}

.single-product .custom-swatch.is-selected {
    border-color: #194d3c;
    background: #194d3c;
    color: #ffffff;
}

/* Hide duplicate Woo variation price because the main price is updated by JS. */
.single-product .single_variation .woocommerce-variation-price {
    display: none;
}

.single-product .single_variation_wrap,
.single-product .custom-cart-area {
    margin: 0;
    padding: 0;
}

.single-product .woocommerce-variation-add-to-cart,
.single-product form.cart:not(.variations_form) {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    margin-top: 22px;
}

.single-product .woocommerce-variation-add-to-cart::before {
    content: "Quantity";
    position: absolute;
    left: 0;
    top: -21px;
    color: #10201b;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 5px;
}

.single-product .quantity,
.single-product .ux-quantity {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 132px;
    flex: 0 0 132px;
    height: 48px;
    min-width: 132px;
    margin: 0;
    overflow: hidden;
    border: 1px solid #cfd5d2;
    border-radius: 9px;
    background: #ffffff;
}

.single-product .quantity input.qty,
.single-product .quantity input[type="number"] {
    width: 44px;
    max-width: 44px;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #10201b;
    font-size: 18px;
    font-weight: 400;
    text-align: center;
}

.single-product .quantity .button,
.single-product .quantity .ux-quantity__button {
    width: 44px;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #10201b;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
}

.single-product .single_add_to_cart_button,
.single-product .single_add_to_cart_button.button {
    flex: 1 1 auto;
    width: 100%;
    height: 48px;
    min-height: 48px;
    margin: 0;
    padding: 0 24px;
    border: 0;
    border-radius: 9px;
    background: #22c38e !important;
    border-color: #22c38e !important;
    color: #ffffff !important;
    box-shadow: none;
    opacity: 1 !important;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.single-product .single_add_to_cart_button:hover,
.single-product .single_add_to_cart_button:focus,
.single-product .single_add_to_cart_button.button:hover,
.single-product .single_add_to_cart_button.button:focus {
    background: #22c38e !important;
    border-color: #22c38e !important;
    color: #ffffff !important;
    box-shadow: none;
    opacity: 1 !important;
    transform: scale(1.02);
}

.single-product .single_add_to_cart_button.disabled,
.single-product .single_add_to_cart_button.button.disabled,
.single-product .single_add_to_cart_button:disabled,
.single-product .single_add_to_cart_button.button:disabled {
    background: #22c38e !important;
    border-color: #22c38e !important;
    color: #ffffff !important;
    opacity: 1 !important;
}

.single-product .single_add_to_cart_button::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 22px;
    margin-right: 12px;
    background-color: currentColor;
    vertical-align: -4px;
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.4'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='8'%20cy='21'%20r='1'/%3E%3Ccircle%20cx='19'%20cy='21'%20r='1'/%3E%3Cpath%20d='M2.05%202.05h2l2.66%2012.42a2%202%200%200%200%202%201.58h9.78a2%202%200%200%200%201.95-1.57l1.65-7.43H5.12'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.4'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='8'%20cy='21'%20r='1'/%3E%3Ccircle%20cx='19'%20cy='21'%20r='1'/%3E%3Cpath%20d='M2.05%202.05h2l2.66%2012.42a2%202%200%200%200%202%201.58h9.78a2%202%200%200%200%201.95-1.57l1.65-7.43H5.12'/%3E%3C/svg%3E") center / contain no-repeat;
}

.single-product .custom-grouped-style-form {
    display: block !important;
    margin-top: 18px !important;
}

.single-product .custom-grouped-style-row {
    margin: 0 0 34px;
}

.single-product .custom-grouped-style-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.single-product .custom-grouped-style-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 82px;
    padding: 5px;
    margin: 0;
    border: 1px solid #cfd5d2;
    border-radius: 9px;
    background: #fff;
    box-shadow: none;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.single-product .custom-grouped-style-option:hover,
.single-product .custom-grouped-style-option.is-selected {
    border-color: #194d3c;
    box-shadow: inset 0 0 0 1px #194d3c;
}

.single-product .custom-grouped-style-option img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.single-product .custom-grouped-cart-area {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: 22px;
}

.single-product .custom-grouped-cart-area::before {
    content: "Quantity";
    position: absolute;
    left: 0;
    top: -21px;
    color: #10201b;
    font-size: 14px;
    font-weight: 400;
}

@media (max-width: 549px) {
    .single-product .woocommerce-variation-add-to-cart,
    .single-product form.cart:not(.variations_form),
    .single-product .custom-grouped-cart-area {
        flex-wrap: wrap;
    }

    .single-product .quantity,
    .single-product .ux-quantity,
    .single-product .single_add_to_cart_button {
        width: 100%;
        min-width: 100%;
    }

    .single-product .custom-grouped-style-option {
        width: 58px;
        height: 74px;
    }
}
/* Product top layout: gallery + summary only */
.single-product .product-main > .row.content-row {
    max-width: none !important;
    width: auto !important;
    margin-left: 60px !important;
    margin-right: 60px !important;
}

@media (max-width: 849px) {
    .single-product .product-main > .row.content-row {
        margin-left: 15px !important;
        margin-right: 15px !important;
    }
}






.custom-shop-ordering-under-title {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    margin: 15px 0 20px;
    width: 100%;
}

.custom-shop-ordering-under-title .woocommerce-result-count {
    margin: 0;
}

.custom-shop-ordering-under-title .woocommerce-ordering {
    margin: 0;
}

@media (max-width: 849px) {
    .custom-shop-ordering-under-title {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (min-width: 850px) {
    .single-product .product-main > .row.content-row {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: flex-start !important;
    }

    .single-product .product-main > .row.content-row > .product-gallery,
    .single-product .product-main > .row.content-row > .product-info,
    .single-product .product-main > .row.content-row > .summary {
        min-width: 0 !important;
    }
}

@media (max-width: 849px) {
    .single-product .product-main > .row.content-row {
        flex-wrap: wrap !important;
    }

    .single-product .product-main > .row.content-row > .product-gallery,
    .single-product .product-main > .row.content-row > .product-info,
    .single-product .product-main > .row.content-row > .summary {
        flex-basis: 100% !important;
        max-width: 100% !important;
    }
}



.product-small .name a{
    font-family: sans-serif;
    font-size: 18px !important;
}

/* Giá bán */
.product-small .price .custom-sale-price,
.product-small .price .custom-sale-price .woocommerce-Price-amount,
.product-small .price > .woocommerce-Price-amount {
    font-family: sans-serif;
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    color: #111 !important;
}

/* Giá gốc gạch ngang */
.product-small .price del,
.product-small .price del .woocommerce-Price-amount,
.product-small .price .custom-regular-price,
.product-small .price .custom-regular-price .woocommerce-Price-amount {
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #08171280 !important;
    text-decoration: line-through !important;
}

/* Khoảng cách giữa giá sale và giá gốc */
.product-small .price del,
.product-small .price .custom-regular-price {
    display: inline-block !important;
    margin-top: 4px !important;
}

/* Nếu giá gốc nằm cùng dòng với giá sale (simple product) */
.product-small .price .custom-sale-price + del,
.product-small .price .custom-sale-price + .custom-regular-price {
    margin-left: 8px !important;
    margin-top: 0 !important;
}

/* Tổng thể */
.product-small .price {
    line-height: 1.5 !important;
}
.single-product .product-short-description{
    display: none !important;
}

.single-product .xc-buy-now-button {
    display: none !important;
}
