/**
 * RehabCare WooCommerce Integration Stylesheet
 *
 * @package RehabCare
 * @since 1.0.0
 */

.rehabcare-woocommerce-container {
    padding: 80px 0;
    margin-top: 85px;
}

/* Shop and Product Grid (3 Columns CSS Grid) */
.woocommerce ul.products,
.woocommerce-page ul.products,
ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    margin: 0 0 40px 0 !important;
    padding: 0 !important;
}

/* Clear default WooCommerce float clearing since we use Grid */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
    display: none !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
ul.products li.product {
    background: #ffffff !important;
    border-radius: 16px !important;
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    text-align: center !important; /* Centered content like home page */
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important; /* Take full width of grid cell */
    float: none !important; /* Disable WooCommerce floats */
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(50, 188, 214, 0.2) !important;
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-decoration: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link img {
    width: 100% !important;
    height: 230px !important; /* Fixed height for consistent grids */
    object-fit: cover !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 16px 16px 0 0 !important;
    transition: transform 0.5s ease !important;
}

.woocommerce ul.products li.product:hover a.woocommerce-LoopProduct-link img {
    transform: scale(1.06) !important;
}

/* Sale Badge styling */
.woocommerce ul.products li.product span.onsale {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    left: auto !important;
    background-color: #ef4444 !important; /* Premium Red */
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    z-index: 2 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
    min-height: auto !important;
    min-width: auto !important;
    line-height: 1 !important;
    margin: 0 !important;
}

/* Title and Price adjustments */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 16px !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    padding: 10px 24px 5px 24px !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    text-align: center !important; /* Centered like homepage */
    width: 100% !important;
}

.woocommerce ul.products li.product .price {
    font-size: 16px !important;
    color: #F18E29 !important; /* Orange price color */
    font-weight: 800 !important;
    margin: 5px 24px 15px 24px !important;
    text-align: center !important; /* Centered like homepage */
    display: block !important;
    width: 100% !important;
}

.woocommerce ul.products li.product .price del {
    color: #94a3b8 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    margin-left: 6px !important;
}

.woocommerce ul.products li.product .price ins {
    background: transparent !important;
    text-decoration: none !important;
    color: #F18E29 !important;
    font-weight: 800 !important;
}

/* Responsive Columns Overrides */
@media (max-width: 991px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products,
    ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

@media (max-width: 576px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products,
    ul.products {
        grid-template-columns: repeat(2, 1fr) !important; /* 2 Columns on mobile! */
        gap: 12px !important;
    }
    
    .woocommerce ul.products li.product .product-card-actions {
        padding: 8px 10px !important;
        gap: 6px !important;
    }
    
    .woocommerce ul.products li.product .product-action-btn {
        padding: 8px 4px !important;
        font-size: 10.5px !important;
        gap: 4px !important;
        border-radius: 6px !important;
    }
    
    .woocommerce ul.products li.product .product-action-btn svg {
        width: 11px !important;
        height: 11px !important;
    }
    
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 13px !important;
        padding: 8px 10px 4px 10px !important;
    }
    
    .woocommerce ul.products li.product .price {
        font-size: 13px !important;
        margin: 4px 10px 10px 10px !important;
    }
    
    .woocommerce ul.products li.product a.woocommerce-LoopProduct-link img {
        height: 140px !important; /* Shorter image height on mobile */
    }
    
    .woocommerce ul.products li.product .product-card-category {
        font-size: 10px !important;
        margin: 8px 10px 2px 10px !important;
    }
}

/* Single Product Details */
.woocommerce div.product {
    margin-top: 30px;
}

.woocommerce div.product div.images img {
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
}

.woocommerce div.product .product_title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
}

.woocommerce div.product .price {
    color: var(--color-secondary);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.woocommerce div.product .woocommerce-product-details__short-description {
    color: #64748B;
    line-height: 1.8;
    margin-bottom: 30px;
}

.woocommerce div.product form.cart .button {
    background-color: var(--color-primary);
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.woocommerce div.product form.cart .button:hover {
    background-color: var(--color-secondary);
}

.woocommerce div.product .quantity input {
    border-radius: 8px;
    padding: 8px;
    border: 1px solid #e2e8f0;
}

/* Tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs {
    border-bottom: 2px solid #e2e8f0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: none;
    border: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
}

/* Cart & Checkout page */
/* Cart Page Wrapper */
.woocommerce-cart .woocommerce {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    margin-top: 20px;
}

.woocommerce-cart-form {
    flex: 1 1 65%;
    min-width: 320px;
}

.woocommerce-cart .cart-collaterals {
    flex: 1 1 30%;
    min-width: 300px;
    width: 100%;
}

/* Shop Cart Table to Modern Cards */
.shop_table.cart {
    border-collapse: separate !important;
    border-spacing: 0 16px !important;
    border: none !important;
    background: transparent !important;
    width: 100% !important;
}

.shop_table.cart thead {
    display: none !important; /* Hide old tabular header */
}

.shop_table.cart tr.cart_item {
    background-color: #ffffff;
    border: 1px solid #f1f5f9 !important;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    padding: 20px;
    margin-bottom: 16px;
    position: relative;
    flex-wrap: wrap;
    gap: 20px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.shop_table.cart tr.cart_item:hover {
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.04);
    border-color: rgba(50, 188, 214, 0.2) !important;
}

/* Cart Item cell columns */
.shop_table.cart td {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
}

.shop_table.cart td.product-remove {
    order: 6;
    margin-right: auto; /* push to left in RTL */
}

.shop_table.cart td.product-remove a.remove {
    font-size: 26px !important;
    color: #94a3b8 !important;
    background: transparent !important;
    border-radius: 50% !important;
    width: 36px;
    height: 36px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.shop_table.cart td.product-remove a.remove:hover {
    background-color: #fef2f2 !important;
    color: #ef4444 !important;
}

.shop_table.cart td.product-thumbnail {
    width: 85px;
    height: 85px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
}

.shop_table.cart td.product-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.shop_table.cart td.product-name {
    flex: 2;
    min-width: 180px;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.5;
}

.shop_table.cart td.product-name a {
    color: inherit;
    transition: color 0.2s ease;
}

.shop_table.cart td.product-name a:hover {
    color: var(--color-primary);
}

.shop_table.cart td.product-price,
.shop_table.cart td.product-subtotal {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    min-width: 100px;
}

.shop_table.cart td.product-price::before {
    content: "السعر الفردي:";
    font-size: 11px;
    color: #94a3b8;
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

.shop_table.cart td.product-subtotal::before {
    content: "الإجمالي الفرعي:";
    font-size: 11px;
    color: #94a3b8;
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

.shop_table.cart td.product-quantity {
    display: inline-flex;
    align-items: center;
    min-width: 110px;
}

.shop_table.cart td.product-quantity::before {
    content: "الكمية:";
    font-size: 11px;
    color: #94a3b8;
    display: block;
    margin-left: 8px; /* RTL spacing */
    font-weight: 600;
}

.shop_table.cart .quantity input.qty {
    width: 54px !important;
    height: 38px !important;
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    text-align: center !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    background: #ffffff !important;
    color: #1e293b !important;
}

/* Coupon & Cart Actions */
.shop_table.cart td.actions {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    width: 100% !important;
    padding: 20px 0 !important;
    background: transparent !important;
    border: none !important;
}

.shop_table.cart .coupon {
    display: flex !important;
    gap: 10px;
    align-items: center;
}

.shop_table.cart .coupon input#coupon_code {
    height: 44px !important;
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    padding: 0 16px !important;
    font-family: 'Cairo', sans-serif !important;
    font-size: 13px !important;
    min-width: 160px;
    outline: none;
    transition: border-color 0.2s ease;
}

.shop_table.cart .coupon input#coupon_code:focus {
    border-color: var(--color-primary);
}

.shop_table.cart .coupon button.button,
.shop_table.cart button[name="update_cart"] {
    height: 44px !important;
    border-radius: 8px !important;
    font-family: 'Cairo', sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 0 20px !important;
    cursor: pointer !important;
    border: none !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.shop_table.cart .coupon button.button {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
}

.shop_table.cart .coupon button.button:hover {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
}

.shop_table.cart button[name="update_cart"] {
    background-color: #11323a !important;
    color: #ffffff !important;
}

.shop_table.cart button[name="update_cart"]:hover {
    background-color: var(--color-primary) !important;
    box-shadow: 0 6px 16px rgba(50, 188, 214, 0.2);
}

/* Cart Totals Box */
.cart_totals {
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    padding: 24px !important;
    width: 100% !important;
}

.cart_totals h2 {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-bottom: 20px !important;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.cart_totals table.shop_table_responsive {
    width: 100% !important;
    border: none !important;
    margin-bottom: 20px !important;
}

.cart_totals table.shop_table_responsive tr {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f8fafc;
}

.cart_totals table.shop_table_responsive tr.order-total {
    border-bottom: none;
    padding-top: 16px;
}

.cart_totals table.shop_table_responsive th {
    font-weight: 600;
    color: #64748b;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.cart_totals table.shop_table_responsive td {
    font-weight: 700;
    color: #0f172a;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    text-align: left !important;
}

.cart_totals table.shop_table_responsive tr.order-total td {
    color: var(--color-secondary) !important;
    font-size: 18px;
}

.wc-proceed-to-checkout a.checkout-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 48px;
    border-radius: 10px !important;
    background-color: var(--color-primary) !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(50, 188, 214, 0.25) !important;
    transition: all 0.3s ease !important;
}

.wc-proceed-to-checkout a.checkout-button:hover {
    background-color: #02a8d4 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(50, 188, 214, 0.35) !important;
}

/* ==========================================
   Checkout Page Redesign
   ========================================== */
.woocommerce-checkout form.checkout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    margin-top: 20px;
}

#customer_details {
    flex: 1 1 60%;
    min-width: 320px;
}

#order_review_heading {
    display: none; /* Hide double heading */
}

#order_review {
    flex: 1 1 35%;
    min-width: 300px;
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    padding: 24px !important;
}

/* Billing & Shipping Card Wrappers */
.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-additional-fields {
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    padding: 24px;
    margin-bottom: 24px;
}

.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3 {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-bottom: 20px !important;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

/* Form inputs & rows styling */
.woocommerce-checkout form .form-row {
    margin-bottom: 16px !important;
}

.woocommerce-checkout form .form-row label {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 6px;
    display: block;
}

.woocommerce-checkout form .form-row input.input-text,
.woocommerce-checkout form .form-row select,
.woocommerce-checkout form .form-row textarea {
    width: 100% !important;
    height: 46px !important;
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    padding: 0 16px !important;
    background-color: #ffffff !important;
    color: #1e293b !important;
    font-family: 'Cairo', sans-serif !important;
    font-size: 13.5px !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    outline: none !important;
}

.woocommerce-checkout form .form-row textarea {
    height: 100px !important;
    padding: 12px 16px !important;
}

.woocommerce-checkout form .form-row input.input-text:focus,
.woocommerce-checkout form .form-row select:focus,
.woocommerce-checkout form .form-row textarea:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(50, 188, 214, 0.15) !important;
}

/* Order Review Table */
table.woocommerce-checkout-review-order-table {
    width: 100% !important;
    border: none !important;
    margin-bottom: 20px !important;
}

table.woocommerce-checkout-review-order-table tr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f8fafc;
}

table.woocommerce-checkout-review-order-table tr.cart_item td.product-name {
    font-weight: 600;
    color: #334155;
    font-size: 13.5px;
    text-align: right !important;
    border: none !important;
    padding: 0 !important;
}

table.woocommerce-checkout-review-order-table tr.cart_item td.product-total {
    font-weight: 700;
    color: #0f172a;
    text-align: left !important;
    border: none !important;
    padding: 0 !important;
}

table.woocommerce-checkout-review-order-table tr.cart-subtotal th,
table.woocommerce-checkout-review-order-table tr.order-total th {
    font-weight: 600;
    color: #64748b;
    border: none !important;
    padding: 0 !important;
}

table.woocommerce-checkout-review-order-table tr.cart-subtotal td,
table.woocommerce-checkout-review-order-table tr.order-total td {
    text-align: left !important;
    font-weight: 700;
    color: #0f172a;
    border: none !important;
    padding: 0 !important;
}

table.woocommerce-checkout-review-order-table tr.order-total td {
    color: var(--color-secondary) !important;
    font-size: 18px;
}

/* Payment details box */
.woocommerce-checkout-payment {
    background: #f8fafc !important;
    border-radius: 10px;
    padding: 16px !important;
    border: 1px solid #e2e8f0;
}

.woocommerce-checkout-payment ul.payment_methods {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 16px 0 !important;
}

.woocommerce-checkout-payment ul.payment_methods li {
    margin-bottom: 10px !important;
    font-size: 13.5px;
    font-weight: 700;
    color: #334155;
}

.woocommerce-checkout-payment ul.payment_methods li input {
    margin-left: 8px !important;
}

.woocommerce-checkout-payment .payment_box {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    padding: 10px 14px !important;
    border-radius: 6px !important;
    font-size: 12.5px !important;
    color: #64748b !important;
    margin-top: 6px !important;
    line-height: 1.6 !important;
}

/* Place order button */
.woocommerce-checkout #place_order {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    height: 48px !important;
    border-radius: 10px !important;
    background-color: var(--color-secondary) !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 14px rgba(241, 142, 41, 0.25) !important;
    transition: all 0.3s ease !important;
    border: none !important;
    cursor: pointer !important;
    margin-top: 15px;
}

.woocommerce-checkout #place_order:hover {
    background-color: #d67a1c !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(241, 142, 41, 0.35) !important;
}

/* WooCommerce Alerts styling */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    border-top: 3px solid var(--color-primary) !important;
    background-color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03) !important;
    border-radius: 10px !important;
    padding: 16px 20px !important;
    font-size: 13.5px !important;
    color: #334155 !important;
    list-style: none !important;
    margin-bottom: 24px !important;
    border-right: none !important;
    border-left: none !important;
    border-bottom: none !important;
}

.woocommerce-error {
    border-top-color: #ef4444 !important;
}

.woocommerce-info {
    border-top-color: var(--color-secondary) !important;
}

/* Force action buttons box background and border-top on WooCommerce product loops */
.woocommerce ul.products li.product .product-card-actions {
    background-color: #fafafa !important;
    border-top: 1px solid #f1f5f9 !important;
    padding: 16px 20px !important;
    gap: 12px !important;
    display: flex !important;
    flex-direction: row !important;
    margin-top: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Single Product Page Add to Cart and Quote Button Alignment */
.woocommerce div.product form.cart {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 30px 0 !important;
}

.woocommerce div.product form.cart .quantity {
    margin: 0 !important;
    display: inline-block !important;
}

.woocommerce div.product form.cart .button.single_add_to_cart_button {
    background-color: #32bcd6 !important; /* Teal color like homepage cart button */
    font-family: 'Cairo', sans-serif !important;
    font-weight: 800 !important;
    height: 44px !important;
    padding: 0 28px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.25s ease !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(50, 188, 214, 0.15) !important;
}

.woocommerce div.product form.cart .button.single_add_to_cart_button:hover {
    background-color: #279cb2 !important;
    box-shadow: 0 6px 16px rgba(50, 188, 214, 0.25) !important;
}

/* Quote button on single product page */
.woocommerce div.product form.cart .single-product-quote-btn {
    background-color: #F18E29 !important; /* Brand Orange */
    color: #ffffff !important;
    font-family: 'Cairo', sans-serif !important;
    font-weight: 800 !important;
    height: 44px !important;
    padding: 0 28px !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.25s ease !important;
    margin: 0 !important; /* Reset margin */
    box-shadow: 0 4px 12px rgba(241, 142, 41, 0.15) !important;
}

.woocommerce div.product form.cart .single-product-quote-btn:hover {
    background-color: #df7f1e !important;
    box-shadow: 0 6px 16px rgba(241, 142, 41, 0.25) !important;
}

/* Mobile Optimizations for Buttons (No Text Wrapping & Large Tap Targets) */
@media (max-width: 576px) {
    /* 1. WooCommerce & Homepage grid card buttons stacked vertically */
    .woocommerce ul.products li.product .product-card-actions,
    .product-card .product-card-actions {
        flex-direction: column !important; /* Stack vertically on mobile grid card */
        padding: 10px 12px !important;
        gap: 8px !important;
    }
    
    .woocommerce ul.products li.product .product-action-btn,
    .product-card .product-action-btn {
        width: 100% !important; /* Take full width of the card */
        flex: none !important;
        padding: 8px 10px !important;
        font-size: 11.5px !important;
        justify-content: center !important;
        gap: 6px !important;
        height: 36px !important;
        box-sizing: border-box !important;
        display: inline-flex !important;
        align-items: center !important;
    }
    
    .woocommerce ul.products li.product .product-action-btn svg,
    .product-card .product-action-btn svg {
        width: 13px !important;
        height: 13px !important;
    }
    
    /* 2. Single Product details page buttons alignment */
    .woocommerce div.product form.cart {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important; /* Wrap to row 2 */
        gap: 10px !important;
    }
    
    .woocommerce div.product form.cart .quantity {
        flex: 0 0 60px !important; /* Fixed width spinner on Row 1 */
        margin: 0 !important;
    }
    
    .woocommerce div.product form.cart .button.single_add_to_cart_button {
        flex: 1 !important; /* Spans Row 1 next to quantity */
        justify-content: center !important;
        height: 44px !important;
        font-size: 14px !important;
        padding: 0 !important;
    }
    
    .woocommerce div.product form.cart .single-product-quote-btn {
        flex: 0 0 100% !important; /* Spans full width on Row 2 */
        width: 100% !important;
        justify-content: center !important;
        height: 44px !important;
        font-size: 14px !important;
        margin: 5px 0 0 0 !important; /* Margin top */
        padding: 0 !important;
    }
}
