body .product .box .viewmore {
    position: absolute;
    top: -150px;
    left: 0;
    width: 100%;
    text-align: center;
    opacity: 0;
    transition: all .3s;
}
body .product:hover .box .viewmore {
    opacity: 1;
}


body.woocommerce-shop .site-main .wrapper {
    width: 100%;
    max-width: var(--main-max-width);
    margin: 0 auto;
}
body.woocommerce div.product div.images {
    width: 49%;
    position: relative;
}
body.woocommerce div.product div.summary {
    width: 44%;
}
body.woocommerce div.product div.summary .product_meta > span {
    display: block;
}
body span.onsale,
body .products li.product .onsale {
    display: none;
}
body.woocommerce span.onsale,
body.woocommerce ul.products li.product .onsale {
    font-size: 10px;
    font-weight: 500;
    line-height: 1.3;
    padding: 5px;
    display: none;
    align-items: center;
    justify-content: center;
    left: 10px;
    top: 10px;
}

/* Lightbox Trigger Button (top-right magnifying glass) */
.woocommerce-product-gallery .woocommerce-product-gallery__trigger {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    width: 38px;
    height: 38px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    text-indent: -9999px;
    overflow: hidden;
    transition: all .25s ease;
    border: 1px solid #e7e7e7;
    cursor: pointer;
}
.woocommerce-product-gallery .woocommerce-product-gallery__trigger:hover {
    background: var(--primary-btn-color, #2fb344);
    border-color: var(--primary-btn-color, #2fb344);
    transform: scale(1.08);
}
.woocommerce-product-gallery .woocommerce-product-gallery__trigger::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231e293b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3Cline x1='11' y1='8' x2='11' y2='14'%3E%3C/line%3E%3Cline x1='8' y1='11' x2='14' y2='11'%3E%3C/line%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}
.woocommerce-product-gallery .woocommerce-product-gallery__trigger:hover::before {
    filter: brightness(0) invert(1);
}

/* Flexslider Direction Nav (Prev/Next on main image) */
.woocommerce-product-gallery .flex-direction-nav {
    margin: 0;
    padding: 0;
    list-style: none;
}
.woocommerce-product-gallery .flex-direction-nav li {
    margin: 0;
    padding: 0;
    list-style: none;
}
.woocommerce-product-gallery .flex-direction-nav a {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9;
    width: 42px;
    height: 42px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    text-indent: -9999px;
    overflow: hidden;
    cursor: pointer;
    transition: all .25s ease;
    border: 1px solid #e7e7e7;
    opacity: 0.9;
}
.woocommerce-product-gallery .flex-direction-nav a:hover {
    opacity: 1;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    transform: translateY(-50%) scale(1.08);
}
.woocommerce-product-gallery .flex-direction-nav a.flex-prev {
    left: 15px;
}
.woocommerce-product-gallery .flex-direction-nav a.flex-next {
    right: 15px;
}
.woocommerce-product-gallery .flex-direction-nav a.flex-prev::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231e293b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}
.woocommerce-product-gallery .flex-direction-nav a.flex-next::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231e293b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}
.woocommerce-product-gallery .flex-direction-nav a.flex-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Flex Viewport: 1:1 Square */
body.woocommerce div.product .flex-viewport {
    border: 1px solid #e7e7e7;
    border-radius: 20px;
    width: 100%;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden;
    position: relative;
    background-color: #fff;
}

/* Thumbnail Carousel Wrapper with Arrows */
.cloudair-thumbs-nav-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 16px;
    width: 100%;
    gap: 8px;
}

.cloudair-thumbs-track {
    flex: 1;
    overflow: hidden;
    position: relative;
}

body.woocommerce div.product div.images ol.flex-control-thumbs {
    margin-top: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    list-style: none;
    padding: 2px 0;
    scroll-behavior: smooth;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}
body.woocommerce div.product div.images ol.flex-control-thumbs::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

body.woocommerce div.product div.images ol.flex-control-thumbs li {
    border: 1.5px solid #e7e7e7;
    border-radius: 10px;
    width: 76px;
    height: 76px;
    max-width: 76px;
    max-height: 76px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    flex: 0 0 76px;
    cursor: pointer;
    transition: all .2s ease;
    background-color: #fff;
}
body.woocommerce div.product div.images ol.flex-control-thumbs li:hover {
    border-color: var(--primary-btn-color, #2fb344);
    transform: translateY(-2px);
}
body.woocommerce div.product div.images ol.flex-control-thumbs li img.flex-active,
body.woocommerce div.product div.images ol.flex-control-thumbs li.flex-active {
    border-color: var(--primary-btn-color, #2fb344) !important;
    box-shadow: 0 0 0 1px var(--primary-btn-color, #2fb344);
}
body.woocommerce div.product div.images ol.flex-control-thumbs li img {
    width: 100%;
    height: 100%;
    max-height: none;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

/* Thumbnail Arrow Buttons */
.cloudair-thumb-arrow {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    color: #334155;
    transition: all .2s ease;
    z-index: 2;
}
.cloudair-thumb-arrow:hover:not(:disabled) {
    background: var(--primary-btn-color, #2fb344);
    border-color: var(--primary-btn-color, #2fb344);
    color: #fff;
    transform: scale(1.08);
}
.cloudair-thumb-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.cloudair-thumb-arrow.is-hidden {
    display: none !important;
}
.cloudair-thumb-arrow svg {
    width: 16px;
    height: 16px;
    pointer-events: none;
}

/* ==========================================================================
   Thegioididong-Style Lightbox Modal (Reference Image #2)
   ========================================================================== */
body.cloudair-lightbox-open {
    overflow: hidden !important;
}

.cloudair-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}

.cloudair-lightbox-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.cloudair-lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.cloudair-lightbox-dialog {
    position: relative;
    z-index: 2;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4);
    width: 92vw;
    max-width: 920px;
    max-height: 92vh;
    padding: 24px 28px 24px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transform: scale(0.95);
    transition: transform .25s ease;
}

.cloudair-lightbox-modal.is-open .cloudair-lightbox-dialog {
    transform: scale(1);
}

/* Close Button (Top right X) */
.cloudair-lightbox-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    transition: all .2s ease;
    z-index: 10;
    padding: 0;
}
.cloudair-lightbox-close:hover {
    background: #f1f5f9;
    color: #0f172a;
    transform: scale(1.1);
}

/* Stage & Main View */
.cloudair-lightbox-stage {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cloudair-lightbox-main-view {
    position: relative;
    width: 100%;
    height: min(520px, 58vh);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
}

.cloudair-lightbox-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cloudair-lightbox-content img.cloudair-lightbox-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    user-select: none;
}

.cloudair-lightbox-content .cloudair-lightbox-video-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}
.cloudair-lightbox-content .cloudair-lightbox-video-wrap iframe,
.cloudair-lightbox-content .cloudair-lightbox-video-wrap video {
    width: 100%;
    height: 100%;
    border: none;
}

/* Counter Badge (bottom-right: 1/7) */
.cloudair-lightbox-counter {
    position: absolute;
    bottom: 12px;
    right: 14px;
    background: rgba(15, 23, 42, 0.65);
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 12px;
    line-height: 1.4;
    user-select: none;
    z-index: 5;
}

/* Prev / Next navigation buttons on stage */
.cloudair-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #1e293b;
    z-index: 10;
    transition: all .2s ease;
    padding: 0;
}
.cloudair-lightbox-nav:hover {
    background: #ffffff;
    color: var(--primary-btn-color, #2fb344);
    border-color: var(--primary-btn-color, #2fb344);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    transform: translateY(-50%) scale(1.08);
}
.cloudair-lightbox-prev {
    left: 8px;
}
.cloudair-lightbox-next {
    right: 8px;
}

/* Thumbs Strip at bottom of modal */
.cloudair-lightbox-thumbs-container {
    width: 100%;
    margin-top: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    display: flex;
    justify-content: center;
}
.cloudair-lightbox-thumbs-track {
    display: flex;
    gap: 8px;
    padding: 2px 4px;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.cloudair-lightbox-thumbs-track::-webkit-scrollbar {
    display: none;
}

.cloudair-lightbox-thumb {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    overflow: hidden;
    cursor: pointer;
    padding: 2px;
    box-sizing: border-box;
    background: #ffffff;
    transition: all .2s ease;
}
.cloudair-lightbox-thumb:hover {
    border-color: #94a3b8;
}
.cloudair-lightbox-thumb.is-active {
    border-color: var(--primary-btn-color, #2fb344) !important;
    box-shadow: 0 0 0 1px var(--primary-btn-color, #2fb344);
}
.cloudair-lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 7px;
    display: block;
}

@media (max-width: 640px) {
    .cloudair-lightbox-dialog {
        padding: 18px 14px 16px;
        width: 95vw;
        border-radius: 16px;
    }
    .cloudair-lightbox-main-view {
        height: min(380px, 50vh);
    }
    .cloudair-lightbox-nav {
        width: 36px;
        height: 36px;
    }
    .cloudair-lightbox-prev {
        left: 2px;
    }
    .cloudair-lightbox-next {
        right: 2px;
    }
    .cloudair-lightbox-thumb {
        width: 46px;
        height: 46px;
        flex: 0 0 46px;
    }
}

body.woocommerce div.product .cloudair-product-gallery-video {
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    background: #000;
    overflow: hidden;
}

body.woocommerce div.product .cloudair-product-gallery-video__iframe,
body.woocommerce div.product .cloudair-product-gallery-video__player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    border: 0;
    object-fit: contain;
    background: #000;
}

body.woocommerce div.product .cloudair-product-gallery-video-slide + .woocommerce-product-gallery__image .wp-post-image {
    width: 100%;
}

body.woocommerce div.product div.images ol.flex-control-thumbs li img[src*="icon-videoplay"] {
    object-fit: contain;
    padding: 18px;
    background: #f5f5f5;
}

body.woocommerce div.product form.cart .reset_variations {
    display: none!important;
}

body .woocommerce-tabs.wc-tabs-wrapper {
    box-shadow: 0 20px 30px 0 #0000000d;
    margin-bottom: 50px;
}
body.woocommerce div.product .woocommerce-tabs ul.tabs {
    padding: 0;
    margin-bottom: 40px;
}
body.woocommerce div.product .woocommerce-tabs ul.tabs li {
    border: unset;
    background-color: transparent;
    padding: 0;
    z-index: 2;
}
body.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    background-color: transparent;
}
body.woocommerce div.product .woocommerce-tabs ul.tabs li:not(:last-child) {
    margin-right: 10px;
}
/* body.woocommerce div.product .woocommerce-tabs ul.tabs::before,
body.woocommerce div.product .woocommerce-tabs ul.tabs::after, */
body.woocommerce div.product .woocommerce-tabs ul.tabs li::after,
body.woocommerce div.product .woocommerce-tabs ul.tabs li.active::after {
    content: unset;
}
body.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    background-color: transparent;
    color: #1c1c1c;
    padding: 12px 30px 10px;
    text-transform: capitalize;
    border: 2px solid transparent;
}
body.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover,
body.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    border-bottom-color: var(--main-color-theme);
}
body.woocommerce div.product .woocommerce-tabs ul.tabs li::before {
    position: absolute;
    content: "";
    left: 0;
    top: -1px;
    width: 0;
    height: 3px;
    background-color: var(--main-color-theme);
    z-index: 1;
}
.body.woocommerce div.product .woocommerce-tabs ul.tabs li:hover::before,
body.woocommerce div.product .woocommerce-tabs ul.tabs li.active::before {
    content: unset;
}
body.woocommerce div.product .woocommerce-tabs .panel {
    padding: 30px 40px;
    background-color: #fff;
    color: #333;
    font-size: 16px;
    line-height: 1.8em;
    font-weight: 400;
    margin-bottom: 0;
    border-radius: 10px;
    box-shadow: 0px 0px 5px 0px rgb(0 0 0 / 15%);
}
body.woocommerce div.product .woocommerce-tabs .panel > * {
    margin-bottom: 15px;
}

body.woocommerce .woocommerce-ordering select {
    height: 35px;
    border-radius: 3px;
    border: 1px solid #ccc;
    padding-left: 7px;
    padding-right: 7px;
}

/* Archive modern layout (sidebar + products) */
body.woocommerce-shop .woocommerce,
body.woocommerce-tax-product_cat .woocommerce,
body.woocommerce-tax-product_tag .woocommerce {
    width: 100%;
}

.cloudair-woo-archive {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    width: 100%;
    max-width: var(--main-max-width);
    margin: 0 auto;
    padding: 0 15px;
}

.cloudair-woo-archive__sidebar .cloudair-woo-archive__sidebar__title {
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    margin-bottom: 24px;
}

.cloudair-woo-filter {
    border-radius: 16px;
}

.cloudair-woo-filter__title {
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    color: #111;
}

.cloudair-woo-filter__cats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.cloudair-woo-filter__cat a {
    font-size: 15px;
    font-weight: 300;
    line-height: 20px;
    display: block;
    padding: 3px 0;
    color: #111;
    text-decoration: none;
    transition: all .15s ease;
}

.cloudair-woo-filter__cat a:hover,
.cloudair-woo-filter__cat.is-active a {
    color: var(--primary-heading-color);
}
.cloudair-woo-filter__cat.is-active a {
    font-weight: 600;
}

.cloudair-woo-archive__header {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 16px;
}

.cloudair-woo-archive__view {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.cloudair-woo-viewbtn {
    height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #e1e1e1;
    background: #fff;
    color: #111;
    cursor: pointer;
    transition: all .15s ease;
}

.cloudair-woo-viewbtn:hover {
    border-color: #cfcfcf;
}

.cloudair-woo-viewbtn.is-active {
    border-color: var(--main-color-theme);
    box-shadow: 0 0 0 3px rgba(52,152,219,.12);
    color: var(--main-color-theme);
}

.cloudair-woo-archive__main ul.products {
    margin-top: 0;
}

body.woocommerce ul.products.columns-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
body.woocommerce ul.products.columns-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

body.woocommerce ul.products li.product:nth-child(3n) {
    margin-right: 0;
}

/* List view */
body.woocommerce ul.products.is-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

body.woocommerce ul.products.is-list li.product {
    width: 100%;
    margin-right: 0;
}

.cloudair-woo-loadmore {
    padding: 20px 0 30px;
    text-align: center;
}

.cloudair-woo-loadmore[hidden] {
    display: none !important;
}

.cloudair-woo-archive .cloudair-woo-loadmore .cloudair-woo-loadmore__btn.button {
    min-width: 180px;
    height: 44px;
    padding: 0 24px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    line-height: 44px;
    background-color: var(--primary-btn-color);
    color: #fff;
}

.cloudair-woo-archive .cloudair-woo-loadmore .cloudair-woo-loadmore__btn.button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.cloudair-woo-loadmore__status {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-top: 10px;
}

@media (max-width: 1024px) {
    .cloudair-woo-archive {
        grid-template-columns: 1fr;
        padding: 0;
    }
    .cloudair-woo-archive__sidebar {
        position: static;
    }
    body.woocommerce ul.products li.product {
        width: calc((100% - 1.25rem) / 2);
        margin-right: 1.25rem;
    }
    body.woocommerce ul.products li.product:nth-child(2n) {
        margin-right: 0;
    }
}

@media (max-width: 600px) {
    body.woocommerce ul.products li.product {
        width: 100%;
        margin-right: 0;
    }
}
body.search ul.products {
    display: inline-block;
}
body.search ul.products li.product {
    float: left;
    margin: 0 3.8% 2.992em 0;
    padding: 0;
    position: relative;
    width: 22.05%;
    margin-left: 0;
}
body.search ul.products li.product:nth-child(4n) {
    margin: 0 0 2.992em 0;
}
body .products li.product a {
    color: #000;
}
body.woocommerce span.onsale,
body.woocommerce ul.products li.product .onsale {
    display: block;
    position: absolute;
    top: 15px;
    right: unset;
    background-color: var(--primary-heading-color);
    min-height: unset;
    padding: 5px 7px;
    border-radius: 6px;
}
body .products li.product .custom-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 20px;
    background-color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}
body .products li.product .custom-thumb span.product-search-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    z-index: 2;
    background-color: #fff;
    border-radius: 50%;
    opacity: 0;
    transition: all .3s ease-in-out;
}
body .products li.product:hover .custom-thumb span.product-search-icon {
    opacity: 1;
}
body .products li.product .custom-thumb span.product-search-icon svg {
    width: 20px;
    height: 20px;
}
body .products li.product .product-title-wrapper {
    margin-top: 24px;
}
body .products li.product .product-title-wrapper .woocommerce-loop-product__title {
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    white-space: normal;
    overflow: hidden;
    height: 40px;
    padding: 0;
    margin-bottom: 7px;
}
body .products li.product .product-title-wrapper .price {
    margin-bottom: 0;
    color: var(--primary-heading-color);
    display: flex;
    align-items: self-start;
    flex-direction: row;
    gap: 7px;
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
}
body .products li.product .product-title-wrapper .price del,
body .products li.product .product-title-wrapper .price del span.amount {
    font-weight: 500;
}
body .products li.product .product-title-wrapper .price ins {
    text-decoration: none;
}
body .products li.product .product-title-wrapper .price span.amount {
    font-weight: 700;
}

body .products li.product .product-loop-rating,
body.woocommerce ul.products li.product .product-loop-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

body .products li.product .product-loop-rating .star-rating,
body.woocommerce ul.products li.product .product-loop-rating .star-rating {
    margin: 0;
    float: none;
}
body .products li.product .product-loop-rating .custom-rating {
    color: #e3c011;
    font-size: 13px;
    line-height: 1;
    font-weight: 400;
}
body .products li.product .product-loop-rating .custom-rating .rating-number {
    color: #333;
}

body .products li.product .product-loop-rating__count,
body.woocommerce ul.products li.product .product-loop-rating__count {
    font-size: 13px;
    line-height: 1.3;
    color: #777;
}

body.woocommerce .star-rating span::before {
    content: '';
}

body .products::before,
body.woocommerce ul.products::before,
body .products::after,
body.woocommerce ul.products::after {
    content: unset;
}
body .products,
body.woocommerce ul.products {
    padding-top: 25px;
}
body .products li.product,
body.woocommerce ul.products li.product {
    float: unset;
    width: 100%!important;
}
body .products li.product .custom-thumb img,
body.woocommerce ul.products li.product .custom-thumb img,
body .products li.product a img,
body.woocommerce ul.products li.product a img {
    margin-bottom: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transform: scale(1);
    transition: all .5s ease-in-out;
}
body .products li.product.product:hover a img,
body.woocommerce ul.products li.product:hover a img {
    transform: scale(1.1);
}
body .products li.product .box,
body.woocommerce ul.products li.product .box {
    padding: 20px 15px;
    background-color: #fff;
}
body .products li.product .box .woocommerce-loop-product__title,
body.woocommerce ul.products li.product .box .woocommerce-loop-product__title {
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
    text-transform: uppercase;
    -webkit-line-clamp: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    white-space: normal;
    overflow: hidden;
    height: 24px;
    margin-bottom: 10px;
}
body .products li.product .box .exp,
body.woocommerce ul.products li.product .box .exp {
    height: 100%;
    max-height: 24px;
}
body .products li.product .box .exp .price,
body.woocommerce ul.products li.product .box .exp .price {
    color: #000;
    font-size: 16px;
    line-height: 20px;
}
body .products li.product .box .exp .price ins,
body.woocommerce ul.products li.product .box .exp .price ins,
body .products li.product .box .exp .price > .amount,
body.woocommerce ul.products li.product .box .exp .price > .amount {
    font-weight: 600;
    color: var(--main-color-theme);
}
body.search ul.products li.product .box .exp .text-contact,
body.woocommerce ul.products li.product .box .exp .text-contact {
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    color: #de0b0b;
}
body .products li.product .box .viewmore a:not(.woocommerce-LoopProduct-link),
body.woocommerce ul.products li.product .box .viewmore a:not(.woocommerce-LoopProduct-link) {
    color: var(--main-color-theme);
    border: 1px solid var(--main-color-theme);
    position: relative;
    display: inline-block;
    width: auto;
    height: auto;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    padding: 12px 20px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgb(0 0 0 / 10%);
    z-index: 1;
    margin-top: 1em;
}
body .products li.product:hover .box .viewmore a:not(.woocommerce-LoopProduct-link),
body.woocommerce ul.products li.product:hover .box .viewmore a:not(.woocommerce-LoopProduct-link) {
    color: #fff;
}
body .products li.product .box .viewmore a.added_to_cart,
body.woocommerce ul.products li.product .box .viewmore a.added_to_cart {
    display: none;
}
body .products li.product .box .viewmore a:not(.woocommerce-LoopProduct-link)::before,
body.woocommerce ul.products li.product .box .viewmore a:not(.woocommerce-LoopProduct-link)::before {
    width: 145%;
    height: 350%;
    position: absolute;
    content: '';
    top: -20px;
    left: -160%;
    transform: rotateZ(-20deg);
    transition: all .3s ease-in-out;
    z-index: -1;
    background-color: var(--main-color-theme);
}
body .products li.product:hover .box .viewmore a:not(.woocommerce-LoopProduct-link)::before,
body.woocommerce ul.products li.product:hover .box .viewmore a:not(.woocommerce-LoopProduct-link)::before {
    left: -30%;
}
body.woocommerce .single-product .product_category {
    margin-bottom: 15px;
}
body.woocommerce .single-product .product_category a {
    color: var(--primary-heading-color);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-transform: uppercase;
}
body.woocommerce .single-product .product_title {
    margin-bottom: 10px;
    font-size: 36px;
    line-height: 40px;
    font-weight: 700;
    color: #222;
    text-transform: capitalize;
}
body.woocommerce .single-product .summary .price {
    font-size: 20px;
    line-height: 1.3;
    font-weight: 600;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 15px;
    color: #000;
}
body.woocommerce .single-product .summary .price ins {
    font-size: 30px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--main-color-theme);
}
body.woocommerce .single-product .summary .woocommerce-product-details__short-description {
    margin-top: 16px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 24px;
    font-weight: 400;
}
body.woocommerce .single-product .product.has-default-attributes .summary .woocommerce-product-details__short-description {
    display: none;
}
body.woocommerce div.product div.images.woocommerce-product-gallery {
    overflow: hidden;
    margin-bottom: 0;
}
body.woocommerce .single-product form.cart .quantity .qty {
    height: 54px;
    width: 100%;
    max-width: 100px;
    background-color: #f7f7f7;
    border: unset;
}
body.woocommerce .single-product form.cart .button {
    height: 56px;
    border: 1px solid #d8d8d8;
    background-color: var(--main-color-theme);
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    width: 100%;
    max-width: 225px;
    z-index: 1;
}
body.woocommerce .single-product form.cart .button::before {
    position: absolute;
    content: '';
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    transform: scale(0,0);
    z-index: -1;
    transition: all .5s ease;
}
body.woocommerce .single-product form.cart .button:hover::before {
    transform: scale(1,1);
    background-color: #252531;
}
body.woocommerce .single-product .related > h2,
body.woocommerce div.product .product_meta a {
    color: var(--main-color-theme);
}
body.woocommerce .single-product .related > h2 {
    font-size: 36px;
    line-height: 48px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 30px;
    color: #000;
    text-transform: uppercase;
}
body.woocommerce div.product form.cart .variations select {
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    text-transform: uppercase;
    outline: none;
    border: 1px solid #d8d8d8;
    background: url(../img/select_arrow.svg) no-repeat right center;
    background-image: url(../img/select_arrow.svg),none;
    background-size: 34px 12px;
    appearance: none;
    cursor: pointer;
    padding: 10px 30px 10px 12px;
    width: 100%;
    height: 48px;
    display: flex;
}
body.woocommerce div.product form.cart table.variations tbody tr {
    display: grid;
}

body.woocommerce .single-product form.variations_form {
    margin-bottom: 20px;
}

body.woocommerce .single-product form.variations_form .variations {
    width: 100%;
    margin-bottom: 0;
}

body.woocommerce .single-product form.variations_form .variations .label label {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
}

body.woocommerce .single-product form.variations_form .single_variation_wrap {
    margin-top: 0;
}

body.woocommerce .single-product form.variations_form .single_variation .woocommerce-variation-price {
    display: none;
}

body.woocommerce .single-product .summary .price.price--variation-selected {
    color: var(--main-color-theme);
}

body.woocommerce-cart table.cart td.actions .coupon .input-text {
    height: 40px;
    width: 100%;
    max-width: 150px;
}
body.woocommerce-cart table.cart td.actions .coupon .button {
    height: 40px;
    background-color: #009cd1;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 5px 20px;
    border-radius: 0;
    float: left;
}
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
body.woocommerce #payment #place_order,
body.woocommerce-page #payment #place_order {
    background-color: #009cd1;
    border-radius: 0;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
}
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background-color: #009cd1;
    opacity: .7;
}

body.woocommerce-checkout form.woocommerce-checkout input.input-text,
body.woocommerce-checkout form.woocommerce-checkout textarea,
body.woocommerce-checkout form.woocommerce-checkout .form-row .select2-selection {
    height: 40px;
    padding-left: 10px;
    padding-right: 10px;
}
body.woocommerce-checkout form.woocommerce-checkout textarea {
    height: 100px;
}
body.woocommerce-checkout form.woocommerce-checkout .form-row .select2-selection {
    display: flex;
    align-items: center;
}
@media only screen and (max-width: 767px) {
    body.woocommerce div.product div.summary {
        margin-top: 20px;
    }
    body.woocommerce .single-product .product_category {
            margin-bottom: 10px;
    }
    body.woocommerce .single-product .product_category a {
        font-size: 13px;
        font-weight: 500;
        line-height: 18px;
    }
    body.woocommerce .single-product .product_title {
    font-size: 24px;
    line-height: 30px;
    font-weight: 600;
    }
    .cloudair-woo-filter__cat a {
            font-size: 12px;
    }
    body.woocommerce ul.products.columns-3 {
            grid-template-columns: repeat(2, 1fr);
    }
    .cloudair-woo-archive__sidebar .cloudair-woo-archive__sidebar__title {
        font-size: 20px;
                margin-bottom: 10px;
    }
    body .products li.product .box .woocommerce-loop-product__title,
    body.woocommerce ul.products li.product .box .woocommerce-loop-product__title {
        font-size: 16px;
        margin-bottom: 7.5px;
        padding-top: 0;
        padding-bottom: 0;
    }
    body .products li.product .box .exp .price,
    body.woocommerce ul.products li.product .box .exp .price {
        font-size: 13px;
    }
    body .products li.product .box .exp,
    body.woocommerce ul.products li.product .box .exp {
        height: 45px;
    }
    body.woocommerce div.product div.images,
    body.woocommerce div.product div.summary {
        width: 100%;
    }
    body.woocommerce ul.products li.product .box .exp .price {
        font-size: 13px;
    }
    body.woocommerce ul.products li.product .box .viewmore a:not(.woocommerce-LoopProduct-link) {
        padding: 7px 10px;
    }
    body.woocommerce .single-product .summary .price {
        flex-direction: column-reverse;
        align-items: flex-start;
    }
    body.woocommerce-cart table.cart td.actions .coupon .input-text {
        max-width: unset;
        margin-bottom: 5px;
    }
    body .woocommerce-tabs.wc-tabs-wrapper {
        padding: 0;
    }
    body.woocommerce div.product .woocommerce-tabs .panel {
        padding: 10px;
    }
    body.woocommerce-shop .site-main .wrapper {
            padding: 40px 10px;
    }
}
@media only screen and (max-width: 480px) {
    body.woocommerce ul.products li.product .box .viewmore a:not(.woocommerce-LoopProduct-link) {
        font-size: 10px;
    }
    body.woocommerce ul.products li.product .box .exp {
        height: 30px;
    }
    
    body .products li.product .custom-thumb img,
    body.woocommerce ul.products li.product .custom-thumb img,
    body .products li.product a img,
    body.woocommerce ul.products li.product a img {
        height: 100%;
        aspect-ratio: 1 / 1;
    }
    body.woocommerce .woocommerce-result-count,
    body.woocommerce .woocommerce-ordering {
        float: unset;
    }
    body.woocommerce .woocommerce-ordering select {
        width: 100%;
    }
    .site-main .content .woocommerce .woocommerce-result-count {
        grid-column: 1;
        grid-row: 1;
    }
    .site-main .content .woocommerce .woocommerce-ordering {
        grid-column: 1;
        grid-row: 2;
    }
    .site-main .content .woocommerce .contain-product {
        grid-column: 1;
        grid-row: 3;
    }
    .site-main .content .woocommerce .woocommerce-pagination {
        grid-column: 1;
        grid-row: 4;
    }
}
@media only screen and (max-width: 400px) {
    body.woocommerce ul.products li.product .box .woocommerce-loop-product__title {
        font-size: 15px;
    }
    body.woocommerce ul.products li.product .box .exp {
        height: 50px;
    }
}


/* single-product */
body.single-product .site-main .single-product {
    overflow: hidden;
}
body.single-product .site-main .wrapper {
    padding-bottom: 0;
}
.woocommerce-page div.product .woocommerce-tabs {
    margin-top: 60px;
    margin-bottom: 0;
    padding: 60px 0;
    display: block;
}
.woocommerce-page div.product .woocommerce-tabs .woocommerce-tabs-overlay {
    position: absolute;
    left: -200vw;
    right: 0;
    top: 0;
    bottom: 0;
    width: 300vw;
    background-color: #f8fafc;
}
.woocommerce div.product div.images .woocommerce-product-gallery__image {
    border: 1px solid #e7e7e7;
    border-radius: 20px;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: none !important;
    overflow: hidden;
    background-color: #fff;
}
body.woocommerce div.product .flex-viewport .woocommerce-product-gallery__image {
    border: none;
    border-radius: 0;
    height: 100% !important;
}
.woocommerce div.product div.images .woocommerce-product-gallery__image a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}
.woocommerce div.product div.images .woocommerce-product-gallery__image,
.woocommerce div.product div.images .woocommerce-product-gallery__image img {
    width: 100%;
    height: 100% !important;
    max-height: none !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   Single Product Reviews Section
   ========================================================================== */

.tomate-product-reviews {
    margin-top: 10px;
}

.reviews-header-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1.5px solid #f1f5f9;
}

.reviews-header-title .woocommerce-Reviews-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
    line-height: 1.3;
}

.reviews-header-title .reviews-product-name {
    font-size: 13px;
    color: #64748b;
    display: block;
    line-height: 1.4;
}

.reviews-summary-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f8fafc;
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.reviews-summary-card .score-number {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
}

.reviews-summary-card .score-number span {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 400;
}

.reviews-summary-card .score-stars {
    margin: 4px 0 2px 0;
}

.reviews-summary-card .score-count {
    font-size: 12px;
    color: #64748b;
}

/* Star Rating Display (General & in Reviews) */
.woocommerce .star-rating,
.woocommerce-page div.product .star-rating,
.woocommerce #reviews .star-rating {
    position: relative;
    display: inline-block;
    width: 85px;
    height: 16px;
    font-size: 14px;
    line-height: 16px;
    letter-spacing: 3px;
    font-family: "Font Awesome 5 Pro" !important;
    overflow: hidden;
}

.woocommerce .star-rating::before,
.woocommerce-page div.product .star-rating::before,
.woocommerce #reviews .star-rating::before {
    content: "\f005\f005\f005\f005\f005" !important;
    font-family: "Font Awesome 5 Pro" !important;
    font-weight: 400 !important;
    color: #d1d5db !important;
    position: absolute;
    top: 0;
    left: 0;
    letter-spacing: 3px;
    line-height: 16px;
}

.woocommerce .star-rating span,
.woocommerce-page div.product .star-rating span,
.woocommerce #reviews .star-rating span {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    overflow: hidden;
    font-size: 0;
}

.woocommerce .star-rating span::before,
.woocommerce-page div.product .star-rating span::before,
.woocommerce #reviews .star-rating span::before {
    content: "\f005\f005\f005\f005\f005" !important;
    font-family: "Font Awesome 5 Pro" !important;
    font-weight: 900 !important;
    color: #f59e0b !important;
    position: absolute;
    top: 0;
    left: 0;
    font-size: 14px;
    line-height: 16px;
    letter-spacing: 3px;
    white-space: nowrap;
}

/* Empty Reviews State */
.woocommerce-noreviews-box {
    text-align: center;
    padding: 36px 20px;
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: 14px;
    margin-bottom: 24px;
}

.woocommerce-noreviews-box .noreviews-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 12px;
}

.woocommerce-noreviews-box .noreviews-text {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.woocommerce-noreviews-box .noreviews-subtext {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 0;
}

/* Reviews List */
.woocommerce #reviews ol.commentlist {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
}

.woocommerce #reviews ol.commentlist li.review {
    padding: 20px;
    margin-bottom: 16px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.woocommerce #reviews ol.commentlist li.review:hover {
    border-color: #e2e8f0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.woocommerce #reviews ol.commentlist li.review .comment_container {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.woocommerce #reviews ol.commentlist li.review img.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    flex-shrink: 0;
    padding: 0;
    background: #f8fafc;
}

.woocommerce #reviews ol.commentlist li.review .comment-text {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: none;
}

.woocommerce #reviews ol.commentlist li.review .comment-text .meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.4;
    color: #64748b;
}

.woocommerce #reviews ol.commentlist li.review .comment-text .meta .woocommerce-review__author {
    color: #0f172a;
    font-size: 15px;
    font-weight: 600;
}

.woocommerce #reviews ol.commentlist li.review .comment-text .meta .woocommerce-review__dash {
    display: none;
}

.woocommerce #reviews ol.commentlist li.review .comment-text .meta time {
    font-size: 12px;
    color: #94a3b8;
}

.woocommerce #reviews ol.commentlist li.review .comment-text .meta em.woocommerce-review__awaiting-approval {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    font-size: 12px;
    font-style: normal;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid #fde68a;
    margin-bottom: 4px;
    width: 100%;
}

.woocommerce #reviews ol.commentlist li.review .comment-text .star-rating {
    float: right;
    margin-top: 2px;
}

.woocommerce #reviews ol.commentlist li.review .comment-text .description {
    font-size: 14px;
    line-height: 1.7;
    color: #334155;
    margin-top: 6px;
}

.woocommerce #reviews ol.commentlist li.review .comment-text .description p:last-child {
    margin-bottom: 0;
}

/* Review Form Section */
#review_form_wrapper {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 26px 30px;
    margin-top: 20px;
}

@media only screen and (max-width: 767px) {
    #review_form_wrapper {
        padding: 20px 16px;
    }
}

#review_form #respond .comment-reply-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    display: block;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

#review_form #respond .form-group,
#review_form #respond p.comment-form-comment,
#review_form #respond p.comment-form-author,
#review_form #respond p.comment-form-email {
    margin-bottom: 16px;
}

#review_form #respond label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    line-height: 1.4;
}

#review_form #respond label .required {
    color: #ef4444;
    font-weight: bold;
}

/* Rating Stars Picker in Form */
.comment-form-rating {
    margin-bottom: 20px;
}

.rating-stars-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.woocommerce-page div.product .woocommerce-tabs p.stars,
.woocommerce #review_form p.stars {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0;
    line-height: 1;
}

.woocommerce-page div.product .woocommerce-tabs p.stars span,
.woocommerce #review_form p.stars span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.woocommerce-page div.product .woocommerce-tabs p.stars a,
.woocommerce #review_form p.stars a {
    position: relative;
    display: inline-block;
    width: 28px;
    height: 28px;
    text-indent: -9999px;
    text-decoration: none !important;
    transition: transform 0.2s ease;
}

.woocommerce-page div.product .woocommerce-tabs p.stars a:hover,
.woocommerce #review_form p.stars a:hover {
    transform: scale(1.2);
}

.woocommerce-page div.product .woocommerce-tabs p.stars a::before,
.woocommerce #review_form p.stars a::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 28px;
    height: 28px;
    line-height: 28px;
    font-size: 24px;
    text-align: center;
    text-indent: 0;
    font-family: "Font Awesome 5 Pro" !important;
    content: "\f005";
    font-weight: 400; /* Outline star */
    color: #cbd5e1;
    transition: color 0.15s ease, font-weight 0.15s ease;
}

/* Hover highlights stars up to hovered */
.woocommerce-page div.product .woocommerce-tabs p.stars:hover a::before,
.woocommerce #review_form p.stars:hover a::before {
    content: "\f005";
    font-weight: 900;
    color: #f59e0b;
}

.woocommerce-page div.product .woocommerce-tabs p.stars a:hover ~ a::before,
.woocommerce #review_form p.stars a:hover ~ a::before {
    content: "\f005";
    font-weight: 400;
    color: #cbd5e1;
}

/* Selected state */
.woocommerce-page div.product .woocommerce-tabs p.stars.selected a.active::before,
.woocommerce #review_form p.stars.selected a.active::before {
    content: "\f005";
    font-weight: 900;
    color: #f59e0b;
}

.woocommerce-page div.product .woocommerce-tabs p.stars.selected a.active ~ a::before,
.woocommerce #review_form p.stars.selected a.active ~ a::before {
    content: "\f005";
    font-weight: 400;
    color: #cbd5e1;
}

.woocommerce-page div.product .woocommerce-tabs p.stars.selected:not(:hover) a:not(.active)::before,
.woocommerce #review_form p.stars.selected:not(:hover) a:not(.active)::before {
    content: "\f005";
    font-weight: 900;
    color: #f59e0b;
}

.woocommerce-page div.product .woocommerce-tabs p.stars.selected:not(:hover) a.active ~ a::before,
.woocommerce #review_form p.stars.selected:not(:hover) a.active ~ a::before {
    content: "\f005";
    font-weight: 400;
    color: #cbd5e1;
}

.rating-text-hint {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #d97706;
    background: #fffbeb;
    padding: 3px 12px;
    border-radius: 12px;
    border: 1px solid #fde68a;
    transition: opacity 0.2s ease;
}

/* Form Inputs & Textarea */
#review_form #respond textarea,
#review_form #respond input[type="text"],
#review_form #respond input[type="email"] {
    width: 100%;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    background-color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    color: #0f172a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

#review_form #respond input[type="text"],
#review_form #respond input[type="email"] {
    height: 46px;
    padding: 0 16px;
}

#review_form #respond textarea {
    padding: 14px 16px;
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

#review_form #respond textarea:focus,
#review_form #respond input[type="text"]:focus,
#review_form #respond input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-btn-color, #279102);
    box-shadow: 0 0 0 3.5px rgba(39, 145, 2, 0.15);
    background-color: #ffffff;
}

#review_form #respond textarea::placeholder,
#review_form #respond input::placeholder {
    color: #94a3b8;
    font-size: 13.5px;
}

/* Form Submit Button */
.woocommerce #review_form #respond .form-submit {
    margin-top: 20px;
    margin-bottom: 0;
    text-align: right;
}

.woocommerce #review_form #respond .form-submit input#submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 180px;
    padding: 12px 36px;
    background-color: var(--primary-btn-color, #279102);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    line-height: 22px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(39, 145, 2, 0.25);
    transition: all 0.25s ease;
    font-family: inherit;
    text-transform: none;
}

.woocommerce #review_form #respond .form-submit input#submit:hover {
    background-color: var(--primary-btn-color, #279102);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 145, 2, 0.35);
}

@media only screen and (max-width: 600px) {
    .woocommerce #review_form #respond .form-submit {
        text-align: center;
    }
    .woocommerce #review_form #respond .form-submit input#submit {
        width: 100%;
    }
}
@media only screen and (max-width: 767px) {
    .woocommerce-page div.product .woocommerce-tabs {
                margin-top: 40px;
        padding: 20px 0 40px;
    }
    body.woocommerce div.product .woocommerce-tabs .panel {
                font-size: 14px;
    }
}

/* Product Description Read More / Collapse */
.product-description-collapse-wrapper {
    position: relative;
    width: 100%;
}

body.woocommerce div.product .woocommerce-tabs .panel > .product-description-collapse-wrapper {
    margin-bottom: 0;
}

.product-description-collapse-inner {
    position: relative;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

/* Hide fade and button when content is short */
.product-description-collapse-wrapper:not(.can-collapse) .product-description-fade,
.product-description-collapse-wrapper:not(.can-collapse) .product-description-action {
    display: none !important;
}

/* Collapsed state */
.product-description-collapse-wrapper.can-collapse.is-collapsed {
    padding-bottom: 30px;
}

.product-description-collapse-wrapper.can-collapse.is-collapsed .product-description-collapse-inner {
    max-height: 500px;
    overflow: hidden;
}

.product-description-collapse-wrapper.can-collapse.is-collapsed .product-description-fade {
    position: absolute;
    bottom: 25px;
    left: 0;
    right: 0;
    height: 180px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.75) 45%, rgba(255, 255, 255, 0.96) 80%, #ffffff 100%);
    pointer-events: none;
    z-index: 2;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.product-description-collapse-wrapper.can-collapse.is-collapsed .product-description-action {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 4;
    margin-top: 0;
}

/* Expanded state */
.product-description-collapse-wrapper.can-collapse.is-expanded {
    padding-bottom: 0;
}

.product-description-collapse-wrapper.can-collapse.is-expanded .product-description-collapse-inner {
    overflow: visible;
}

.product-description-collapse-wrapper.can-collapse.is-expanded .product-description-fade {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.product-description-collapse-wrapper.can-collapse.is-expanded .product-description-action {
    position: relative;
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px dashed #e5e7eb;
    z-index: 4;
}

/* Toggle button styling */
.btn-product-description-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 28px;
    background-color: #ffffff;
    color: var(--primary-btn-color, #279102);
    border: 1.5px solid var(--primary-btn-color, #279102);
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    line-height: 20px;
    cursor: pointer;
    outline: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease;
    text-decoration: none;
    font-family: inherit;
}

.btn-product-description-toggle:hover {
    background-color: var(--primary-btn-color, #279102);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(39, 145, 2, 0.28);
    transform: translateY(-2px);
}

.btn-product-description-toggle .toggle-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.product-description-collapse-wrapper.is-expanded .btn-product-description-toggle .toggle-icon {
    transform: rotate(180deg);
}

@media only screen and (max-width: 767px) {
    .product-description-collapse-wrapper.can-collapse.is-collapsed .product-description-collapse-inner {
        max-height: 420px;
    }
    .product-description-collapse-wrapper.can-collapse.is-collapsed .product-description-fade {
        height: 140px;
    }
    .btn-product-description-toggle {
        padding: 8px 22px;
        font-size: 14px;
    }
}