/* A shared product panel with native WooCommerce gallery, forms and tabs. */
.diiho-product-extra {
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: purchase-step;
}

.diiho-product-extra li {
    padding: 10px 12px;
    border: 1px solid #e6ebf1;
    border-radius: 7px;
    color: #52617a;
    font-size: 13px;
}

.diiho-product-extra--banks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    text-align: center;
}

.diiho-product-extra--steps {
    display: grid;
    gap: 10px;
}

.diiho-product-extra--steps li {
    display: flex;
    align-items: stretch;
    gap: 5px;
    padding: 0;
    border: 0;
    border-radius: 0;
}

.diiho-product-extra--steps li::before {
    counter-increment: purchase-step;
    content: counter(purchase-step);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    padding-right: 8px;
    border-radius: 7px 0 0 7px;
    background: var(--diiho-accent);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 50%, 100% 100%, 0 100%);
}

.diiho-product-step-text {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    min-height: 46px;
    margin-left: -8px;
    padding: 12px 16px 12px 20px;
    border-radius: 0 7px 7px 0;
    background: color-mix(in srgb, var(--diiho-accent) 8%, white);
    color: #344969;
    line-height: 1.6;
    overflow-wrap: anywhere;
    clip-path: polygon(8px 0, 100% 0, 100% 100%, 8px 100%, 0 50%);
}

.woocommerce.single-product .diiho-store .woocommerce-breadcrumb {
    color: #ededed;
}

.woocommerce.single-product .diiho-store .woocommerce-breadcrumb a {
    color: #aaa;
}

html[data-theme=light] .woocommerce.single-product .diiho-store .woocommerce-breadcrumb,
body.diiho-light-mode.single-product .diiho-store .woocommerce-breadcrumb {
    color: #102039;
}

html[data-theme=light] .woocommerce.single-product .diiho-store .woocommerce-breadcrumb a,
body.diiho-light-mode.single-product .diiho-store .woocommerce-breadcrumb a {
    color: #65748c;
}

.woocommerce.single-product .diiho-store .woocommerce-breadcrumb a:hover {
    color: var(--diiho-accent);
}

.woocommerce.single-product .diiho-store .diiho-product-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr);
    gap: 36px 20px;
    padding: var(--shop-box-padding);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px #233c5808;
    margin-bottom: 32px;
}

.woocommerce.single-product .diiho-store .diiho-product-panel>* {
    min-width: 0;
}

.woocommerce.single-product .diiho-store div.product .summary {
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.woocommerce.single-product #content .diiho-store div.product div.summary {
    float: none;
    width: 100%;
    max-width: none;
    clear: none;
}

.woocommerce.single-product .diiho-store div.product .summary .diiho-shop-category {
    display: inline-block;
    position: static;
    max-width: 100%;
    margin-bottom: 8px;
    padding: 0;
    background: none;
    color: var(--diiho-accent);
    border-radius: 0;
    font-size: 12px;
    font-weight: 400;
}

.woocommerce.single-product .diiho-store div.product .product_title {
    font-size: 30px;
    line-height: 1.3;
    margin-bottom: 12px;
}

.woocommerce.single-product .diiho-store div.product .woocommerce-product-rating {
    margin-bottom: 12px;
    font-size: 13px;
}

.woocommerce.single-product .diiho-store .star-rating {
    color: #ffb000;
}

.woocommerce.single-product .diiho-store .star-rating::before {
    color: #c5cbd3;
}

.woocommerce.single-product .diiho-store div.product .summary .woocommerce-review-link {
    color: #65748c;
}

.woocommerce.single-product .diiho-store div.product .summary :is(p.price, span.price) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
    color: var(--diiho-accent);
    font-size: 28px;
    font-weight: 700;
}

.woocommerce.single-product .diiho-store div.product .summary .price ins {
    order: -1;
    text-decoration: none;
}

.woocommerce.single-product .diiho-store div.product .summary .price del {
    color: #8794a7;
    font-size: 16px;
}

.woocommerce.single-product .diiho-store .woocommerce-product-details__short-description {
    color: #52617a;
    line-height: 1.7;
    margin-bottom: 18px;
}

.woocommerce.single-product .diiho-store div.product .woocommerce-product-gallery {
    float: none;
    width: 100%;
    margin: 0;
    align-self: stretch;
    border-radius: 0;
}

.woocommerce.single-product .diiho-store div.product div.images.woocommerce-product-gallery {
    width: 100% !important;
    max-width: none;
}

.woocommerce.single-product .diiho-store .woocommerce-product-gallery--with-images {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 20px;
}

.woocommerce.single-product .diiho-store .woocommerce-product-gallery--with-images> :is(.flex-viewport, .woocommerce-product-gallery__wrapper) {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    justify-self: stretch;
    border-radius: 7px;
    overflow: hidden;
}

/* Override FlexSlider's inline height so differently sized photos fill one frame. */
.woocommerce.single-product .diiho-store .woocommerce-product-gallery--with-images> :is(.flex-viewport, .woocommerce-product-gallery__wrapper) {
    aspect-ratio: auto;
    height: auto !important;
    min-height: 420px;
    align-self: stretch;
    contain: size;
}

.woocommerce.single-product .diiho-store .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__wrapper,
.woocommerce.single-product .diiho-store .woocommerce-product-gallery .woocommerce-product-gallery__image {
    height: 100%;
}

.woocommerce.single-product .diiho-store .woocommerce-product-gallery .woocommerce-product-gallery__image>a {
    display: block;
    width: 100%;
    height: 100%;
}

.woocommerce.single-product .diiho-store .woocommerce-product-gallery .woocommerce-product-gallery__image>a>img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.woocommerce.single-product .diiho-store div.product .woocommerce-product-gallery .flex-control-thumbs {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.woocommerce.single-product .diiho-store div.product .woocommerce-product-gallery .flex-control-thumbs li {
    float: none;
    width: 100%;
    margin: 0;
}

.woocommerce.single-product .diiho-store div.product .woocommerce-product-gallery .flex-control-thumbs img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 6px;
    opacity: .75;
}

.woocommerce.single-product .diiho-store div.product .woocommerce-product-gallery .flex-control-thumbs img.flex-active {
    border-color: var(--diiho-accent);
    opacity: 1;
}

.woocommerce.single-product .diiho-store div.product .woocommerce-product-gallery__trigger {
    top: 12px;
    right: 12px;
}

.woocommerce.single-product .diiho-store div.product form.cart {
    margin: 20px 0 16px;
}

.woocommerce.single-product .diiho-store div.product form.cart:not(.variations_form):not(.grouped_form),
.woocommerce.single-product .diiho-store .woocommerce-variation-add-to-cart {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 0;
}

.woocommerce.single-product .diiho-store div.product form.cart::before,
.woocommerce.single-product .diiho-store div.product form.cart::after,
.woocommerce.single-product .diiho-store .woocommerce-variation-add-to-cart::before,
.woocommerce.single-product .diiho-store .woocommerce-variation-add-to-cart::after {
    display: none;
}

.woocommerce.single-product .diiho-store div.product form.cart :is(.single_add_to_cart_button, .diiho-shop-favorite) {
    flex: 0 1 auto;
    min-width: 48px;
    margin: 0;
}

.woocommerce.single-product .diiho-store div.product form.cart .quantity {
    display: inline-flex;
    align-items: center;
    float: none;
    margin: 0;
    height: 48px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    overflow: hidden;
}

.woocommerce.single-product .diiho-store div.product form.cart .quantity:has(input[type=hidden]) {
    display: none;
}

.woocommerce.single-product .diiho-store .quantity .qty {
    width: 44px;
    min-height: 46px;
    padding: 0;
    border: 0;
    background: #fff;
    color: #102039;
    appearance: textfield;
    text-align: center;
}

.woocommerce.single-product .diiho-store .quantity .qty::-webkit-inner-spin-button,
.woocommerce.single-product .diiho-store .quantity .qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.woocommerce.single-product .diiho-store .diiho-product-step {
    width: 32px;
    height: 46px;
    margin: 0;
    padding: 0;
    border: 0;
    background: #fff;
    color: #102039;
    font-size: 21px;
}

.woocommerce.single-product .diiho-store div.product .single_add_to_cart_button {
    float: none;
    min-width: 112px;
    height: 48px;
    padding: 0 20px;
    font-size: 0;
}

.woocommerce.single-product .diiho-store div.product .single_add_to_cart_button::before {
    content: '\f07a';
    font: 900 22px 'Font Awesome 6 Pro';
}

.woocommerce.single-product .diiho-store .summary .diiho-shop-favorite {
    position: static;
    width: 48px;
    height: 48px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    color: #65748c;
    background: #fff;
    text-shadow: none;
}

.woocommerce.single-product .diiho-store .summary .diiho-shop-favorite[aria-pressed=true] {
    color: #e85d75;
}

.woocommerce div.product form.cart table.variations,
.woocommerce div.product form.cart .variations,
.woocommerce.single-product .diiho-store div.product form.cart .variations,
table.variations {
    display: block !important;
    width: 100% !important;
    border: 0 !important;
    margin-bottom: 16px !important;
}

.woocommerce div.product form.cart table.variations tbody,
.woocommerce div.product form.cart table.variations tr,
.woocommerce div.product form.cart .variations tbody,
.woocommerce div.product form.cart .variations tr,
table.variations tbody,
table.variations tr {
    display: block !important;
    width: 100% !important;
    border: 0 !important;
    clear: both !important;
}

.woocommerce div.product form.cart table.variations tr,
.woocommerce div.product form.cart .variations tr,
table.variations tr {
    margin-bottom: 16px !important;
}

.woocommerce div.product form.cart table.variations th,
.woocommerce div.product form.cart table.variations th.label,
.woocommerce div.product form.cart .variations th,
.woocommerce div.product form.cart .variations th.label,
.woocommerce.single-product .diiho-store div.product form.cart .variations th.label,
table.variations th,
table.variations th.label {
    display: block !important;
    width: 100% !important;
    padding: 0 0 8px 0 !important;
    text-align: left !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    color: #1e293b !important;
    background: none !important;
    border: 0 !important;
}

.woocommerce div.product form.cart table.variations th label,
.woocommerce div.product form.cart table.variations th.label label,
.woocommerce div.product form.cart .variations th label,
.woocommerce div.product form.cart .variations th.label label,
table.variations th label,
table.variations th.label label {
    display: inline-block !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    margin: 0 !important;
    color: inherit !important;
}

.woocommerce div.product form.cart table.variations td,
.woocommerce div.product form.cart table.variations td.value,
.woocommerce div.product form.cart .variations td,
.woocommerce div.product form.cart .variations td.value,
.woocommerce.single-product .diiho-store div.product form.cart .variations td.value,
table.variations td,
table.variations td.value {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    background: none !important;
    border: 0 !important;
}

html[data-theme='dark'] table.variations th,
html[data-theme='dark'] table.variations th.label,
html[data-theme='dark'] table.variations th label,
body.diiho-dark-mode table.variations th,
body.diiho-dark-mode table.variations th.label,
body.diiho-dark-mode table.variations th label {
    color: #f1f5f9 !important;
}

/* ==========================================================================
   Default Variation Select Dropdowns (Modern, Sleek & Full-Width)
   Applied ONLY when variation buttons are OFF (direct child of td.value)
   ========================================================================== */
.woocommerce.single-product .diiho-store div.product form.cart .variations td.value > select,
.woocommerce div.product form.cart .variations td.value > select,
.woocommerce div.product form.cart table.variations td.value > select,
table.variations td.value > select {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 42px 0 14px !important;
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 42px !important;
    color: #1e293b !important;
    background-color: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    cursor: pointer !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px 16px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}

.woocommerce.single-product .diiho-store div.product form.cart .variations td.value > select:hover,
.woocommerce div.product form.cart .variations td.value > select:hover,
.woocommerce div.product form.cart table.variations td.value > select:hover,
table.variations td.value > select:hover {
    border-color: #94a3b8 !important;
}

.woocommerce.single-product .diiho-store div.product form.cart .variations td.value > select:focus,
.woocommerce div.product form.cart .variations td.value > select:focus,
.woocommerce div.product form.cart table.variations td.value > select:focus,
table.variations td.value > select:focus {
    outline: none !important;
    border-color: var(--diiho-accent, #00845c) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--diiho-accent, #00845c) 16%, transparent) !important;
}

.woocommerce.single-product .diiho-store div.product form.cart .variations td.value > select option,
table.variations td.value > select option {
    background-color: #ffffff;
    color: #1e293b;
    padding: 8px 12px;
}

/* Dark mode for variation select dropdown */
html[data-theme='dark'] .woocommerce.single-product .diiho-store div.product form.cart .variations td.value > select,
html[data-theme='dark'] .woocommerce div.product form.cart .variations td.value > select,
html[data-theme='dark'] .woocommerce div.product form.cart table.variations td.value > select,
html[data-theme='dark'] table.variations td.value > select,
body.diiho-dark-mode .woocommerce.single-product .diiho-store div.product form.cart .variations td.value > select,
body.diiho-dark-mode .woocommerce div.product form.cart .variations td.value > select,
body.diiho-dark-mode .woocommerce div.product form.cart table.variations td.value > select,
body.diiho-dark-mode table.variations td.value > select {
    background-color: #1e293b !important;
    color: #f1f5f9 !important;
    border-color: #475569 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
}

html[data-theme='dark'] .woocommerce div.product form.cart .variations td.value > select:hover,
html[data-theme='dark'] table.variations td.value > select:hover,
body.diiho-dark-mode .woocommerce div.product form.cart .variations td.value > select:hover,
body.diiho-dark-mode table.variations td.value > select:hover {
    border-color: #64748b !important;
}

html[data-theme='dark'] .woocommerce div.product form.cart .variations td.value > select:focus,
html[data-theme='dark'] table.variations td.value > select:focus,
body.diiho-dark-mode .woocommerce div.product form.cart .variations td.value > select:focus,
body.diiho-dark-mode table.variations td.value > select:focus {
    border-color: var(--diiho-accent, #00845c) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--diiho-accent, #00845c) 25%, transparent) !important;
}

html[data-theme='dark'] .woocommerce.single-product .diiho-store div.product form.cart .variations td.value > select option,
html[data-theme='dark'] table.variations td.value > select option,
body.diiho-dark-mode table.variations td.value > select option {
    background-color: #1e293b;
    color: #f1f5f9;
}

.woocommerce.single-product .diiho-store .product_meta {
    font-size: 13px;
    color: #52617a;
}

.woocommerce.single-product .diiho-store .product_meta>span {
    display: block;
    margin-bottom: 4px;
}

.woocommerce.single-product .diiho-store div.product .summary .product_meta a {
    color: var(--diiho-accent);
}

.woocommerce.single-product .diiho-store div.product .woocommerce-tabs {
    grid-column: 1 / -1;
    padding: 0;
    margin: 0;
    background: transparent;
    border-radius: 0;
}

.woocommerce.single-product .diiho-store div.product .woocommerce-tabs ul.tabs {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 24px;
    padding: 0;
    border: 0;
}

/* Đường 1px chạy full chiều ngang, xuyên giữa các tab */
.woocommerce.single-product .diiho-store div.product .woocommerce-tabs ul.tabs::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    bottom: auto;
    width: 100%;
    height: 1px;
    border: 0;
    background: #ccc;
    transform: translateY(-50%);
    z-index: 0;
}

/* Tab */
.woocommerce.single-product .diiho-store div.product .woocommerce-tabs ul.tabs li {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
    border: 1px solid #ccc;
    border-radius: 999px;
    background: #fff;
}

/* Xóa style mặc định WooCommerce */
.woocommerce.single-product .diiho-store div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce.single-product .diiho-store div.product .woocommerce-tabs ul.tabs li::after {
    display: none;
}

/* Chữ trong tab */
.woocommerce.single-product .diiho-store div.product .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 5px 10px;
    color: #777;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
}

/* Hover */
.woocommerce.single-product .diiho-store div.product .woocommerce-tabs ul.tabs li:hover {
    border-color: var(--diiho-accent);
}

.woocommerce.single-product .diiho-store div.product .woocommerce-tabs ul.tabs li:hover a {
    color: var(--diiho-accent);
}

/* Tab đang active */
.woocommerce.single-product .diiho-store div.product .woocommerce-tabs ul.tabs li.active {
    border-color: var(--diiho-accent);
    background: var(--diiho-accent);
}

.woocommerce.single-product .diiho-store div.product .woocommerce-tabs ul.tabs li.active a {
    color: #fff;
}

.woocommerce.single-product .diiho-store .woocommerce-tabs .panel {
    color: #52617a;
    line-height: 1.7;
}

.woocommerce.single-product .diiho-store #reviews .woocommerce-noreviews {
    display: none;
}

.woocommerce.single-product .diiho-store #reviews #comments ol.commentlist {
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce.single-product .diiho-store #reviews #comments ol.commentlist li .comment-text {
    margin: 0 0 0 50px;
    background: #f0f2f5;
    border: 0;
    border-radius: 10px;
    padding: 1em 1em 0;
}

.woocommerce.single-product .diiho-store #review_form #respond p {
    margin: 0;
}

.woocommerce.single-product .diiho-store #review_form #respond .stars {
    margin-top: 15px;
    line-height: 0;
}

.woocommerce.single-product .diiho-store #review_form #commentform {
    gap: 0 10px;
}

.woocommerce.single-product .diiho-store #review_form p.comment-form-comment label {
    border-bottom: 1px dashed #ccc;
    display: block;
    padding-bottom: 7px;
    margin-bottom: 7px;
}

.woocommerce.single-product .diiho-store #review_form #respond #commentform p.form-submit {
    margin: 0 10px 10px 0;
}

.woocommerce.single-product .diiho-store #review_form #comment-form-rating-label,
.woocommerce.single-product .diiho-store #review_form .comment-form-rating p.stars a {
    color: #ffb000;
    background: transparent;
}

.woocommerce.single-product .diiho-store #review_form .comment-form-rating p.stars a:hover,
.woocommerce.single-product .diiho-store #review_form .comment-form-rating p.stars a:focus-visible {
    color: #333;
    background: transparent;
}

.woocommerce.single-product .diiho-store #reviews #comments ol.commentlist li img.avatar {
    float: left;
    position: absolute;
    top: 0;
    left: 0;
    padding: 3px;
    width: 42px;
    height: auto;
    border: 0;
    background: none;
    border-radius: 100%;
    margin: 0;
    box-shadow: none;
}

.woocommerce.single-product .diiho-store #reviews #comments h2 {
    font-size: 16px;
    margin-bottom: 15px;
}

.woocommerce.single-product .diiho-store #reviews .description {
    text-transform: none;
    margin-left: 8px;
    font-size: 15px;
}

.woocommerce.single-product .diiho-store #reviews .comment-form-rating>label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.diiho-product-description {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.diiho-product-description>* {
    min-width: 0;
}

.diiho-product-specifications {
    border-left: 1px solid #e6ebf1;
    padding-left: 30px;
}

.woocommerce.single-product .diiho-store table.shop_attributes {
    border: 0;
    margin: 0;
    font-size: 13px;
}

.woocommerce.single-product .diiho-store table.shop_attributes :is(th, td) {
    padding: 8px 10px;
    border: 0;
    border-bottom: 1px solid #e6ebf1;
    background: none;
    font-style: normal;
    text-align: left;
}

.woocommerce.single-product .diiho-store table.shop_attributes td p {
    padding: 0;
}

@media (max-width: 1000px) {
    .woocommerce.single-product .diiho-store .diiho-product-panel {
        gap: 26px 20px;
    }

    .woocommerce.single-product .diiho-store .woocommerce-product-gallery--with-images {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 12px;
    }

    .woocommerce.single-product .diiho-store div.product .product_title {
        font-size: 25px;
    }
}

@media (max-width: 768px) {
    .woocommerce.single-product .diiho-store .woocommerce-product-gallery--with-images> :is(.flex-viewport, .woocommerce-product-gallery__wrapper) {
        aspect-ratio: 1 / 1;
        min-height: 0;
    }

    .woocommerce.single-product .diiho-store .diiho-product-panel {
        grid-template-columns: minmax(0, 1fr);
        padding: 20px;
        gap: 26px;
    }

    .diiho-product-description {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .diiho-product-specifications {
        border-left: 0;
        padding-left: 0;
    }
}

section.related.products h2 {
    margin-bottom: 30px;
}

.woocommerce #review_form #respond {
    margin-top: -10px;
}

/* Gallery chỉ có 1 ảnh */
.woocommerce.single-product .diiho-store .woocommerce-product-gallery--with-images:not( :has(.woocommerce-product-gallery__image:nth-child(2))) {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

/* Đưa ảnh về cột đầu */
.woocommerce.single-product .diiho-store .woocommerce-product-gallery--with-images:not( :has(.woocommerce-product-gallery__image:nth-child(2))) .woocommerce-product-gallery__wrapper {
    grid-column: 1;
    width: 100%;
}

a.woocommerce-review-link {
    display: none;
}

/* Progressive enhancement: description stays readable without JavaScript. */
.diiho-description-collapse {
    position: relative;
}

.diiho-description-collapse.is-collapsed {
    max-height: 320px;
    overflow: hidden;
}

.diiho-description-collapse.is-collapsed::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 80px;
    background: linear-gradient(transparent, #fff);
    pointer-events: none;
}

.woocommerce.single-product .diiho-store .diiho-description-toggle {
    display: block;
    margin: 18px auto 0;
    padding: 10px 24px;
    border: 1px solid var(--diiho-accent);
    border-radius: 7px;
    background: #fff;
    color: var(--diiho-accent);
    cursor: pointer;
}

.woocommerce.single-product .diiho-store .diiho-description-toggle[hidden] {
    display: none;
}

.woocommerce.single-product .diiho-store .diiho-description-toggle:hover {
    background: color-mix(in srgb, var(--diiho-accent) 10%, white);
}

.woocommerce.single-product .diiho-store .diiho-description-toggle:focus-visible {
    outline: 2px solid var(--diiho-accent);
    outline-offset: 3px;
}

.diiho-product-share {
    grid-column: 1 / -1;
    clear: both;
}

#open-share .td-share {
    display: flex;
    align-items: center;
    gap: 12px;
}

#open-share .td-share>div {
    flex: 1;
}

#open-share .td-share button.close {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    order: 1;
    flex: 0 0 28px;
    float: none;
    width: 28px;
    min-width: 0;
    height: 28px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--td-share-close-color, #fff);
    box-shadow: none;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
}

#open-share .td-share button.close:hover,
#open-share .td-share button.close:focus {
    background: transparent;
    color: var(--td-share-close-hover-color, #ccc);
    box-shadow: none;
}

.diiho-product-share #openshare:focus-visible {
    outline: 2px solid var(--diiho-accent, #006df5);
    outline-offset: 4px;
}

.woocommerce #reviews #comments ol.commentlist ul.children {
    margin: 20px 0 0 50px;
    padding-left: 10px;
    border-left: 1px dashed #d5d5d5;
}

.woocommerce.single-product .diiho-store #reviews .diiho-review-reply-to {
    margin: 0 0 4px 8px;
    color: var(--diiho-accent);
    font-size: 14px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

html:not([data-theme=light]) body:not(.diiho-light-mode).single-product .diiho-store section.related.products>h2 {
    color: #fff;
}

.woocommerce .diiho-store nav.woocommerce-pagination {
    padding-top: 10px;
    margin-bottom: 30px;
}

p.comment-form-cookies-consent {
    margin-top: 20px !important;
}

@media (max-width: 700px) {
    .diiho-commerce .diiho-store :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) a.button {
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }
}

/* Zero Price Contact */
.diiho-price-contact {
    color: var(--diiho-accent, #ff2d55);
    font-weight: 700;
}

span.diiho-price-contact.price {
    margin: 0px !important;
}

/* ==========================================================================
   Variation Button Swatches
   ========================================================================== */
.diiho-variation-wrapper {
    position: relative;
    margin: 4px 0 10px;
}

/* An tuyet doi dropdown select mac dinh khi giao dien nut swatches duoc su dung */
.woocommerce.single-product .diiho-store div.product form.cart .variations .diiho-variation-wrapper select,
.woocommerce div.product form.cart .variations .diiho-variation-wrapper select,
.woocommerce div.product form.cart table.variations .diiho-variation-wrapper select,
table.variations .diiho-variation-wrapper select,
.diiho-variation-wrapper select,
.diiho-variation-wrapper > select {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
}

.diiho-variation-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.diiho-var-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    min-width: 44px;
    padding: 6px 14px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.2;
    color: #374151;
    background: #ffffff;
    border: 1.5px solid #d1d5db;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    user-select: none;
    box-sizing: border-box;
}

.diiho-var-btn:hover:not(:disabled):not(.is-disabled) {
    border-color: var(--diiho-accent, #00845c);
    color: var(--diiho-accent, #00845c);
    background: color-mix(in srgb, var(--diiho-accent, #00845c) 4%, white);
}

.diiho-var-btn.is-active {
    border-color: var(--diiho-accent, #00845c);
    color: var(--diiho-accent, #00845c);
    background: color-mix(in srgb, var(--diiho-accent, #00845c) 8%, white);
    box-shadow: 0 0 0 1px var(--diiho-accent, #00845c);
}

/* Badge hinh tron co dau x o goc tren nut dang chon */
.diiho-var-btn.is-active::after {
    content: '\00d7';
    position: absolute;
    top: -6px;
    right: -6px;
    width: 17px;
    height: 17px;
    background: #ef4444;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 15px;
    text-align: center;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.diiho-var-btn.is-active:hover::after {
    transform: scale(1.15);
    background: #dc2626;
}

/* An hoan toan link chu Clear/Xoa lua chon mac dinh (nguoi dung chon option dau hoac badge x tren nut) */
.woocommerce div.product form.variations_form .reset_variations,
.woocommerce .diiho-store a.reset_variations,
.diiho-commerce .reset_variations,
table.variations .reset_variations,
.reset_variations {
    display: none !important;
}

.diiho-var-btn:disabled,
.diiho-var-btn.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
    border-style: dashed;
    background: #f9fafb;
    color: #9ca3af;
}

/* Dark mode */
html[data-theme='dark'] .diiho-var-btn,
body.diiho-dark-mode .diiho-var-btn {
    background: #1e293b;
    color: #e2e8f0;
    border-color: #475569;
}

html[data-theme='dark'] .diiho-var-btn:hover:not(:disabled):not(.is-disabled),
body.diiho-dark-mode .diiho-var-btn:hover:not(:disabled):not(.is-disabled) {
    border-color: var(--diiho-accent, #00845c);
    color: var(--diiho-accent, #00845c);
    background: color-mix(in srgb, var(--diiho-accent, #00845c) 15%, #1e293b);
}

html[data-theme='dark'] .diiho-var-btn.is-active,
body.diiho-dark-mode .diiho-var-btn.is-active {
    border-color: var(--diiho-accent, #00845c);
    color: var(--diiho-accent, #00845c);
    background: color-mix(in srgb, var(--diiho-accent, #00845c) 20%, #1e293b);
}

html[data-theme='dark'] .diiho-var-btn.is-active::after,
body.diiho-dark-mode .diiho-var-btn.is-active::after {
    border-color: #1e293b;
}

html[data-theme='dark'] .diiho-var-btn:disabled,
html[data-theme='dark'] .diiho-var-btn.is-disabled,
body.diiho-dark-mode .diiho-var-btn:disabled,
body.diiho-dark-mode .diiho-var-btn.is-disabled {
    background: #0f172a;
    color: #64748b;
    border-color: #334155;
}