/* ===== Variations Attribute Label — không tràn dòng ===== */
.variations td.label,
.variations th.label,
.variations .label label {
    white-space: nowrap !important;
    vertical-align: middle !important;
    padding-right: 12px !important;
}

/* Hide the variation price displayed below the attribute dropdowns */
.woocommerce-variation-price {
    display: none !important;
}

/* ===== Hide Quantity Input ===== */
.product .quantity {
    display: none !important;
}

/* ===== Add to Cart & Buy Now Buttons Container ===== */
.product form.cart {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
}
.product .single_add_to_cart_button,
.product .button.buy-now,
.product form.cart .button {
    flex: 1 1 0 !important;
    background-color: #fff !important;
    color: #000 !important;
    border: 1px solid #000 !important;
    border-radius: 6px !important;
    text-transform: none !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    letter-spacing: 0.5px !important;
    padding: 8px 16px !important;
    text-align: center !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
}
.product .single_add_to_cart_button:hover,
.product .button.buy-now:hover,
.product form.cart .button:hover {
    background-color: #000 !important;
    color: #fff !important;
}

/* ===== "Chi tiết sản phẩm" & "Xem đánh giá" Buttons ===== */
.mk-product-extra-buttons {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-top: 14px;
}
.mk-product-extra-buttons .mk-btn-outline {
    flex: 1 1 0;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background-color: #fff !important;
    color: #000 !important;
    border: 1px solid #000 !important;
    border-radius: 6px !important;
    text-transform: none !important;
    font-weight: 400 !important;
    font-size: 12px !important;
    padding: 6px 12px !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease !important;
}
.mk-product-extra-buttons .mk-btn-outline:hover {
    background-color: #f5f5f5 !important;
}
.mk-product-extra-buttons .mk-btn-outline span {
    font-size: 14px;
    font-weight: 300;
}

/* ===== Off-Canvas Panel for "Chi tiết sản phẩm" ===== */
#mk-details-offcanvas {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 800px;
    height: 100vh;
    background: #fff;
    z-index: 999999;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding: 0;
}
#mk-details-offcanvas.is-open {
    right: 0;
}
.mk-offcanvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
}
.mk-offcanvas-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.mk-offcanvas-close {
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    color: #000;
    font-weight: 300;
}
.mk-offcanvas-content {
    padding: 24px;
    font-size: 14px;
    line-height: 1.7;
    color: #333;
}
.mk-offcanvas-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 999998;
}
.mk-offcanvas-overlay.is-open {
    display: block;
}

