/**
 * ST Dollar Shop WooCommerce Integration Stylesheet
 *
 * @package ST Dollar Shop
 * @since 1.0.0
 */

.stdollarshop-woocommerce-container {
    padding: 16px 0 40px 0 !important;
    margin-top: 0 !important;
}

/* Shop and Product Grid (Matched with Homepage Grid) */
.woocommerce ul.products,
.woocommerce-page ul.products,
ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important;
    gap: 18px !important;
    margin: 0 0 40px 0 !important;
    padding: 0 !important;
}

@media (max-width: 768px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products,
    ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !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,
.woocommerce-page ul.products li.product a.woocommerce-LoopProduct-link img,
ul.products li.product a img,
.woocommerce-LoopProduct-link img,
.woocommerce-loop-product__link img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    background-color: #ffffff !important;
    padding: 2px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    border-radius: 12px !important;
    transition: transform 0.3s ease !important;
}

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

/* Sale Badge styling */
.woocommerce ul.products li.product span.onsale {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    right: auto !important;
    background-color: #ef4444 !important; /* Premium Red */
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    z-index: 5 !important;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.2) !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;
    text-decoration: none !important;
    opacity: 0.85;
    position: relative !important;
    display: inline-block !important;
}

.woocommerce ul.products li.product .price del::after {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 50% !important;
    height: 1.5px !important;
    background-color: #94a3b8 !important;
    display: block !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: 10px !important;
    }
    
    .woocommerce ul.products li.product,
    .woocommerce-page ul.products li.product {
        border-radius: 14px !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03) !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
        background: #ffffff !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .woocommerce ul.products li.product .product-card-actions {
        display: flex !important;
        flex-direction: column !important;
        padding: 6px 8px 8px 8px !important;
        margin: 0 !important;
        gap: 5px !important;
        background-color: #f8fafc !important;
        border-top: 1px solid #f1f5f9 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .woocommerce ul.products li.product .product-action-btn {
        width: 100% !important;
        flex: none !important;
        padding: 0 6px !important;
        margin: 0 !important;
        font-size: 11.5px !important;
        font-weight: 700 !important;
        justify-content: center !important;
        gap: 4px !important;
        height: 32px !important;
        border-radius: 7px !important;
        box-sizing: border-box !important;
        display: inline-flex !important;
        align-items: center !important;
        white-space: nowrap !important;
    }
    
    .woocommerce ul.products li.product .product-action-btn svg {
        width: 12px !important;
        height: 12px !important;
        flex-shrink: 0 !important;
    }
    
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 12px !important;
        font-weight: 800 !important;
        padding: 0 6px !important;
        margin: 0 0 4px 0 !important;
        text-align: center !important;
        line-height: 1.3 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        min-height: 31px !important;
        max-height: 31px !important;
        color: #1e293b !important;
    }
    
    .woocommerce ul.products li.product .price {
        font-size: 13.5px !important;
        font-weight: 800 !important;
        padding: 0 !important;
        margin: 2px 0 5px 0 !important;
        text-align: center !important;
        color: #f18e29 !important;
        margin-top: auto !important;
        line-height: 1.2 !important;
    }
    
    .woocommerce ul.products li.product a.woocommerce-LoopProduct-link img,
    .woocommerce-page ul.products li.product a.woocommerce-LoopProduct-link img,
    ul.products li.product a img,
    .woocommerce-LoopProduct-link img,
    .woocommerce-loop-product__link img {
        height: 130px !important;
        padding: 8px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        object-fit: contain !important;
        max-height: 100% !important;
    }
    
    .woocommerce ul.products li.product .product-card-category,
    .product-card-category {
        display: none !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 .price del {
    color: #94a3b8 !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    opacity: 0.85;
    margin-left: 8px;
    position: relative !important;
    display: inline-block !important;
}

.woocommerce div.product .price del::after {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 50% !important;
    height: 1.5px !important;
    background-color: #94a3b8 !important;
    display: block !important;
}

.woocommerce div.product .price ins {
    background: transparent !important;
    text-decoration: none !important;
    color: var(--color-secondary) !important;
    font-weight: 700 !important;
}

/* Premium Single Product Short Description Card */
.woocommerce div.product .woocommerce-product-details__short-description,
.woocommerce div.product .woocommerce-product-details__short-description.stdollarshop-short-desc-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border: 1px solid #e2e8f0 !important;
    border-right: 4px solid var(--color-primary, #32bcd6) !important;
    border-radius: 12px !important;
    padding: 18px 22px !important;
    margin-top: 18px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    direction: rtl !important;
    text-align: right !important;
}

.woocommerce div.product .woocommerce-product-details__short-description.stdollarshop-short-desc-card:hover {
    box-shadow: 0 6px 20px rgba(50, 188, 214, 0.08) !important;
    border-right-color: var(--color-secondary, #eab308) !important;
    transform: translateY(-1px) !important;
}

.stdollarshop-short-desc-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    color: #0284c7 !important;
    background: rgba(14, 165, 233, 0.08) !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    margin-bottom: 10px !important;
    border: 1px solid rgba(14, 165, 233, 0.15) !important;
    font-family: 'Cairo', sans-serif !important;
}

.stdollarshop-short-desc-content {
    display: block !important;
    width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

.stdollarshop-short-desc-content,
.stdollarshop-short-desc-content p,
.woocommerce div.product .woocommerce-product-details__short-description p {
    color: #334155 !important;
    font-size: 14.5px !important;
    line-height: 1.85 !important;
    font-weight: 500 !important;
    margin: 0 !important;
    font-family: 'Cairo', sans-serif !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

.stdollarshop-short-desc-content p + p {
    margin-top: 10px !important;
}

.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 Redesign to Premium Segmented Control */
.woocommerce div.product .woocommerce-tabs {
    margin-top: 50px !important;
    padding-top: 35px !important;
    border-top: 1px solid #e2e8f0 !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    display: inline-flex !important;
    background-color: #f1f5f9 !important;
    padding: 6px !important;
    border-radius: 12px !important;
    border: none !important;
    margin: 0 0 30px 0 !important;
    gap: 4px !important;
    list-style: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 8px !important;
    position: relative !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
    display: none !important; /* Hide old woocommerce curves if any */
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: block !important;
    font-family: 'Cairo', sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    padding: 10px 22px !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: none !important;
    background: transparent !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    background-color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--color-primary) !important;
    border: none !important;
    font-weight: 800 !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li:hover a {
    color: var(--color-primary) !important;
}

/* Tab Panel Styles */
.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel {
    padding: 10px 5px !important;
    font-family: 'Cairo', sans-serif !important;
    font-size: 15.5px !important;
    color: #475569 !important;
    line-height: 1.8 !important;
}

.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel h2 {
    font-family: 'Cairo', sans-serif !important;
    font-weight: 800 !important;
    font-size: 20px !important;
    color: #0f172a !important;
    margin-top: 0 !important;
    margin-bottom: 18px !important;
}

/* 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%;
}

/* Clean Modern Cart Table Styles */
.shop_table.cart {
    width: 100% !important;
    border-collapse: collapse !important;
    border: none !important;
    background: transparent !important;
    margin: 0 !important;
}

.shop_table.cart thead {
    display: table-header-group !important;
}

.shop_table.cart thead th {
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    padding: 10px 14px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    text-align: right !important;
}

.shop_table.cart tr.cart_item {
    background-color: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    transition: background 0.2s ease !important;
}

.shop_table.cart tr.cart_item:hover {
    background-color: #f8fafc !important;
}

.shop_table.cart td {
    border: none !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 14px !important;
    background: transparent !important;
    vertical-align: middle !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.shop_table.cart td::before {
    display: none !important;
    content: "" !important;
}

.shop_table.cart td.product-remove a.remove {
    width: 28px !important;
    height: 28px !important;
    background: #fee2e2 !important;
    color: #ef4444 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

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

.shop_table.cart td.product-thumbnail img {
    width: 60px !important;
    height: 60px !important;
    border-radius: 10px !important;
    object-fit: contain !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

.shop_table.cart td.product-name a {
    font-size: 13.5px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    text-decoration: none !important;
}

.shop_table.cart td.product-price {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #475569 !important;
}

.shop_table.cart td.product-subtotal {
    font-size: 14px !important;
    font-weight: 900 !important;
    color: #e53e3e !important;
}

.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);
}

/* ==========================================================================
   Luxury Cart Totals Box (إجمالي سلة المشتريات) - Optimized RTL & Mobile
   ========================================================================== */
.cart_totals {
    background-color: #ffffff !important;
    border-radius: 20px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.04) !important;
    padding: 24px 28px !important;
    width: 100% !important;
    direction: rtl !important;
    position: relative;
    overflow: hidden;
}

.cart_totals::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary) 0%, #0d9488 50%, #f18e29 100%);
}

.cart_totals h2 {
    font-size: 19px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-bottom: 20px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    text-align: right !important;
    direction: rtl !important;
}

.cart_totals h2::before {
    content: '🛒';
    font-size: 18px;
}

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

.cart_totals table.shop_table_responsive tr {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    padding: 14px 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    position: relative;
}

.cart_totals table.shop_table_responsive th {
    font-size: 14.5px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    text-align: right !important;
    direction: rtl !important;
    flex-shrink: 0;
    width: auto !important;
}

.cart_totals table.shop_table_responsive td {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    text-align: left !important;
    direction: rtl !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    width: auto !important;
}

/* Order Total Luxury Highlight Card */
.cart_totals table.shop_table_responsive tr.order-total {
    display: block !important;
    background-color: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 14px !important;
    padding: 18px 16px !important;
    margin-top: 14px !important;
    border-bottom: none !important;
    position: relative !important;
}

.cart_totals table.shop_table_responsive tr.order-total::after {
    content: "" !important;
    display: table !important;
    clear: both !important;
}

.cart_totals table.shop_table_responsive tr.order-total th {
    float: right !important;
    display: block !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    padding: 0 !important;
    line-height: 28px !important;
    height: 28px !important;
    width: auto !important;
}

.cart_totals table.shop_table_responsive tr.order-total td {
    float: left !important;
    display: block !important;
    padding: 0 !important;
    text-align: left !important;
    width: auto !important;
}

.cart_totals table.shop_table_responsive tr.order-total td strong,
.cart_totals table.shop_table_responsive tr.order-total td .amount {
    color: #f18e29 !important; /* Bold Orange Total Price */
    font-size: 22px !important;
    font-weight: 800 !important;
    line-height: 28px !important;
    direction: rtl !important;
}

/* Full-Width Luxury Tax Banner spanning below order total */
.cart_totals td small.includes_tax,
.cart_totals td .includes_tax,
.cart_totals .includes_tax {
    clear: both !important;
    float: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    padding: 8px 12px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #166534 !important;
    margin-top: 14px !important;
    direction: rtl !important;
    text-align: center !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 5px rgba(22, 101, 52, 0.05) !important;
    box-sizing: border-box !important;
}

.cart_totals td small.includes_tax::before,
.cart_totals td .includes_tax::before {
    content: '🏷️';
    font-size: 11px;
}

/* Proceed to Checkout Luxury Button */
.wc-proceed-to-checkout {
    padding: 0 !important;
    margin-top: 20px !important;
}

.wc-proceed-to-checkout a.checkout-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    height: 52px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, var(--color-primary) 0%, #0d9488 100%) !important;
    color: #ffffff !important;
    font-family: 'Cairo', sans-serif !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    box-shadow: 0 10px 25px rgba(50, 188, 214, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.wc-proceed-to-checkout a.checkout-button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 30px rgba(50, 188, 214, 0.45) !important;
    color: #ffffff !important;
}

.wc-proceed-to-checkout a.checkout-button::after {
    content: ' 🔒';
    font-size: 15px;
}

/* Mobile Responsiveness Overrides (@media max-width: 768px) */
@media (max-width: 768px) {
    /* Hide all WooCommerce default responsive pseudo-element duplicate titles */
    .cart_totals table.shop_table_responsive td::before,
    .cart_totals table.shop_table_responsive th::before,
    table.cart.shop_table_responsive td::before,
    table.cart.shop_table_responsive th::before,
    .shop_table_responsive td::before,
    .shop_table_responsive th::before {
        content: "" !important;
        display: none !important;
    }

    /* Mobile Page Layout Container */
    .woocommerce-cart .woocommerce {
        padding: 0 4px !important;
    }

    /* Cart Table Container */
    table.cart.shop_table_responsive {
        border: none !important;
        background: transparent !important;
        margin-bottom: 20px !important;
    }

    /* Individual Product Item Card on Mobile */
    table.cart.shop_table_responsive tr.cart_item {
        display: block !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 16px !important;
        padding: 16px !important;
        margin-bottom: 14px !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
        position: relative !important;
    }

    /* Product Remove Button (X Icon at top left) */
    table.cart.shop_table_responsive tr.cart_item td.product-remove {
        position: absolute !important;
        top: 14px !important;
        left: 14px !important;
        padding: 0 !important;
        width: auto !important;
        border: none !important;
        margin: 0 !important;
    }

    table.cart.shop_table_responsive tr.cart_item td.product-remove a.remove {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 28px !important;
        height: 28px !important;
        border-radius: 50% !important;
        background: #fee2e2 !important;
        color: #ef4444 !important;
        font-size: 16px !important;
        text-decoration: none !important;
        line-height: 1 !important;
        margin: 0 !important;
    }

    /* Product Name Header */
    table.cart.shop_table_responsive tr.cart_item td.product-name {
        display: block !important;
        padding: 0 0 10px 32px !important;
        border-bottom: 1px solid #f1f5f9 !important;
        margin-bottom: 12px !important;
        font-size: 15px !important;
        font-weight: 800 !important;
        color: #0f172a !important;
        text-align: right !important;
        width: 100% !important;
    }

    /* Product Quantity & Unit Price Row */
    table.cart.shop_table_responsive tr.cart_item td.product-price,
    table.cart.shop_table_responsive tr.cart_item td.product-quantity {
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
        border: none !important;
        padding: 4px 0 !important;
        font-size: 13.5px !important;
        width: auto !important;
    }

    /* Product Subtotal (Bottom Highlighted Row) */
    table.cart.shop_table_responsive tr.cart_item td.product-subtotal {
        display: block !important;
        border-top: 1px dashed #cbd5e1 !important;
        margin-top: 10px !important;
        padding-top: 10px !important;
        text-align: right !important;
        font-size: 15px !important;
        font-weight: 800 !important;
        color: #f18e29 !important;
        width: 100% !important;
    }

    /* Coupon Form & Actions Row */
    table.cart.shop_table_responsive td.actions {
        display: block !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 16px !important;
        padding: 16px !important;
        margin-bottom: 20px !important;
    }

    table.cart.shop_table_responsive td.actions .coupon {
        display: flex !important;
        gap: 8px !important;
        margin-bottom: 12px !important;
        width: 100% !important;
    }

    table.cart.shop_table_responsive td.actions .coupon input.input-text {
        flex: 1 !important;
        height: 44px !important;
        border-radius: 10px !important;
        border: 1px solid #cbd5e1 !important;
        padding: 0 12px !important;
        font-size: 13.5px !important;
        width: 60% !important;
    }

    table.cart.shop_table_responsive td.actions .coupon button.button {
        height: 44px !important;
        padding: 0 14px !important;
        border-radius: 10px !important;
        background: #f1f5f9 !important;
        color: #334155 !important;
        font-weight: 700 !important;
        border: 1px solid #cbd5e1 !important;
        font-size: 13px !important;
        white-space: nowrap !important;
    }

    table.cart.shop_table_responsive td.actions button[name="update_cart"] {
        width: 100% !important;
        height: 44px !important;
        border-radius: 10px !important;
        background: #64748b !important;
        color: #ffffff !important;
        font-weight: 700 !important;
        border: none !important;
    }

    /* Cart Totals Box on Mobile */
    .cart_totals {
        padding: 20px 16px !important;
        border-radius: 16px !important;
    }

    .cart_totals h2 {
        font-size: 17px !important;
        margin-bottom: 16px !important;
        padding-bottom: 10px !important;
    }

    .cart_totals table.shop_table_responsive tr {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        padding: 12px 0 !important;
        border-bottom: 1px solid #f1f5f9 !important;
    }

    .cart_totals table.shop_table_responsive th {
        display: block !important;
        width: auto !important;
        font-size: 13.5px !important;
        font-weight: 700 !important;
        color: #475569 !important;
        text-align: right !important;
        padding: 0 !important;
    }

    .cart_totals table.shop_table_responsive td {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        width: auto !important;
        font-size: 14px !important;
        text-align: left !important;
        padding: 0 !important;
    }

    .cart_totals table.shop_table_responsive tr.order-total {
        display: block !important;
        padding: 16px 14px !important;
        margin-top: 12px !important;
        border-radius: 14px !important;
    }

    .cart_totals table.shop_table_responsive tr.order-total th {
        float: right !important;
        display: block !important;
        font-size: 15px !important;
        line-height: 26px !important;
        height: 26px !important;
        width: auto !important;
    }

    .cart_totals table.shop_table_responsive tr.order-total td {
        float: left !important;
        display: block !important;
        text-align: left !important;
        width: auto !important;
    }

    .cart_totals table.shop_table_responsive tr.order-total td strong,
    .cart_totals table.shop_table_responsive tr.order-total td .amount {
        font-size: 20px !important;
        line-height: 26px !important;
    }

    .cart_totals td small.includes_tax,
    .cart_totals td .includes_tax,
    .cart_totals .includes_tax {
        clear: both !important;
        float: none !important;
        width: 100% !important;
        font-size: 11px !important;
        padding: 7px 10px !important;
        margin-top: 12px !important;
    }

    .wc-proceed-to-checkout a.checkout-button {
        height: 48px !important;
        font-size: 15px !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;
}

/* Force billing phone required indicator & hide any optional span */
#billing_phone_field .optional {
    display: none !important;
}

#billing_phone_field label .required,
#billing_phone_field label abbr,
.woocommerce-checkout form .form-row label abbr.required {
    display: inline-block !important;
    color: #e11d48 !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    margin-right: 4px !important;
}

/* Invalid / Error field red border styling when left empty */
.woocommerce-checkout form .form-row.woocommerce-invalid input.input-text,
.woocommerce-checkout form .form-row.woocommerce-invalid-required-field input.input-text,
#billing_phone_field.woocommerce-invalid input.input-text {
    border-color: #e11d48 !important;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.15) !important;
    background-color: #fff5f5 !important;
}

.woocommerce-checkout form .form-row.woocommerce-invalid label,
.woocommerce-checkout form .form-row.woocommerce-invalid-required-field label,
#billing_phone_field.woocommerce-invalid label {
    color: #e11d48 !important;
}

.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;
}

/* Suppress WooCommerce default empty cart paragraph */
p.cart-empty.woocommerce-info,
.woocommerce-cart p.cart-empty,
p.cart-empty {
    display: none !important;
}

/* WooCommerce Alerts styling (Info, Error, Message) */
.woocommerce-notices-wrapper {
    width: 100% !important;
    max-width: 1140px !important;
    margin: 0 auto 20px auto !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
    clear: both !important;
    float: none !important;
}

.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    width: 100% !important;
    max-width: 1140px !important;
    margin: 0 auto 20px auto !important;
    float: none !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 14px 20px !important;
    border-radius: 14px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05) !important;
    direction: rtl !important;
    text-align: right !important;
    border: 1.5px solid transparent !important;
    line-height: 1.5 !important;
}

.woocommerce-message {
    background-color: #f0fdf4 !important;
    border-color: #86efac !important;
    color: #15803d !important;
}

.woocommerce-info {
    background-color: #eef2ff !important;
    border-color: #a5b4fc !important;
    color: #3730a3 !important;
}

.woocommerce-error {
    background-color: #fff1f2 !important;
    border-color: #fca5a5 !important;
    color: #9f1239 !important;
    list-style: none !important;
}

/* Force action buttons box background and border-top on WooCommerce product loops */
.woocommerce ul.products li.product .product-card-actions {
    background-color: #f8fafc !important;
    border-top: 1px solid #f1f5f9 !important;
    padding: 12px 14px 16px 14px !important;
    gap: 10px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !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 {
        display: flex !important;
        flex-direction: column !important;
        padding: 6px 8px 8px 8px !important;
        margin: 0 !important;
        gap: 5px !important;
        background-color: #f8fafc !important;
        border-top: 1px solid #f1f5f9 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .woocommerce ul.products li.product .product-action-btn,
    .product-card .product-action-btn {
        width: 100% !important;
        flex: none !important;
        padding: 0 6px !important;
        margin: 0 !important;
        font-size: 11.5px !important;
        font-weight: 700 !important;
        justify-content: center !important;
        gap: 4px !important;
        height: 32px !important;
        border-radius: 7px !important;
        box-sizing: border-box !important;
        display: inline-flex !important;
        align-items: center !important;
        white-space: nowrap !important;
    }
    
    .woocommerce ul.products li.product .product-action-btn svg,
    .product-card .product-action-btn svg {
        width: 12px !important;
        height: 12px !important;
        flex-shrink: 0 !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;
    }
}

/* Custom Single Product Meta & Tags Styling */
.woocommerce div.product .product_meta {
    display: none !important;
}

.woocommerce div.product .product_meta.product_meta_custom {
    display: flex !important;
}

.product_meta_custom {
    background-color: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.01);
}

.product_meta_custom .meta-item {
    margin-bottom: 0;
}

.product_meta_custom .tags a {
    display: inline-block;
    background-color: #ffffff;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 2px 0 2px 4px;
}

.product_meta_custom .tags a:hover {
    background-color: #32bcd6;
    color: #ffffff;
    border-color: #32bcd6;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(50, 188, 214, 0.15);
}

/* Stack Billing details and Additional info columns into a single column */
#customer_details.col2-set {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    float: none !important;
    width: 100% !important;
}

#customer_details.col2-set .col-1,
#customer_details.col2-set .col-2 {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 24px 0 !important;
    padding: 0 !important;
}

/* ==========================================================================
   Product Variations Dropdown & Cart Buttons Spacing Styling
   ========================================================================== */

/* Modern Premium Dropdown Select Styling */
.woocommerce div.product table.variations select {
    width: 100% !important;
    max-width: 320px !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    background-color: #ffffff !important;
    font-family: 'Cairo', sans-serif !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: left 12px center !important; /* RTL placement for arrow */
    padding-left: 40px !important; /* Extra padding to prevent text overlapping arrow */
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    cursor: pointer !important;
}

.woocommerce div.product table.variations select:hover {
    border-color: #94a3b8 !important;
}

.woocommerce div.product table.variations select:focus {
    border-color: #32bcd6 !important;
    box-shadow: 0 0 0 3px rgba(50, 188, 214, 0.15) !important;
}

/* Variations Table Spacing */
.woocommerce div.product table.variations {
    width: 100% !important;
    margin-bottom: 20px !important;
    border: none !important;
}

.woocommerce div.product table.variations tr {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 12px !important;
    border: none !important;
}

.woocommerce div.product table.variations td {
    padding: 0 !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    vertical-align: middle !important;
}

.woocommerce div.product table.variations td.label {
    font-family: 'Cairo', sans-serif !important;
    font-weight: 700 !important;
    font-size: 15.5px !important;
    color: #0f172a !important;
    padding-left: 15px !important; /* RTL padding to label */
    width: 80px !important;
    flex-shrink: 0 !important;
}

.woocommerce div.product table.variations td.label label {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

/* Fix spacing for variable add-to-cart buttons (Quantity, Add to Cart, Request Quote) */
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart,
.woocommerce div.product form.cart .variations_button {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 15px !important; /* Spacing between spinner and buttons */
    width: 100% !important;
    margin-top: 10px !important;
}

.woocommerce div.product form.cart .woocommerce-variation-add-to-cart .quantity,
.woocommerce div.product form.cart .variations_button .quantity {
    margin: 0 !important;
}

/* Add custom margin in RTL for normal product form too */
.woocommerce div.product form.cart .quantity + .button {
    margin-right: 0 !important;
}

/* Clean spacing between single add to cart and custom quote buttons */
.woocommerce div.product form.cart .button.single_add_to_cart_button + .single-product-quote-btn {
    margin-right: 0 !important;
}

/* ==========================================================================
   WooCommerce Catalog Ordering Dropdown Redesign
   ========================================================================== */
.woocommerce-ordering {
    margin-bottom: 30px !important;
}

.woocommerce-ordering select.orderby {
    font-family: 'Cairo', sans-serif !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 10px 18px 10px 42px !important; /* Padding-left: 42px for the caret icon in RTL */
    cursor: pointer !important;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    display: inline-block !important;
    height: auto !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    
    /* Elegant SVG down-caret icon on the left (RTL friendly) */
    background-image: 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='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: left 14px center !important;
    background-size: 16px !important;
}

/* Hover & Focus state */
.woocommerce-ordering select.orderby:hover {
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
    background-color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03) !important;
}

.woocommerce-ordering select.orderby:focus {
    border-color: #32bcd6 !important;
    color: #0f172a !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(50, 188, 214, 0.15) !important;
}

/* RTL override alignment explicitly */
[dir="rtl"] .woocommerce-ordering select.orderby,
.rtl .woocommerce-ordering select.orderby {
    padding: 10px 18px 10px 42px !important;
    background-position: left 14px center !important;
}

/* ==========================================================================
   Selected Variation Price Badge & Select Dropdown Styling
   ========================================================================== */
.woocommerce div.product .single_variation_wrap .single_variation {
    margin-top: 10px !important;
    margin-bottom: 20px !important;
}

.woocommerce div.product .single_variation_wrap .woocommerce-variation-price {
    display: none !important;
}

.woocommerce div.product form.cart .variations select {
    font-family: 'Cairo', sans-serif !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    color: #334155 !important;
    background-color: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    padding: 10px 18px 10px 40px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    min-width: 220px !important;
}

.woocommerce div.product form.cart .variations select:hover,
.woocommerce div.product form.cart .variations select:focus {
    border-color: #32bcd6 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(50, 188, 214, 0.15) !important;
}

/* ==========================================================================
   Category Description Collapsible Read More Card
   ========================================================================== */
.stdollarshop-cat-description-wrapper {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border: 1px solid #e2e8f0 !important;
    border-right: 4px solid var(--color-primary, #32bcd6) !important;
    border-radius: 14px !important;
    padding: 20px 24px !important;
    margin-top: 15px !important;
    margin-bottom: 30px !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03) !important;
    position: relative !important;
    transition: all 0.3s ease !important;
    text-align: right !important;
    direction: rtl !important;
}

.stdollarshop-cat-description-wrapper:hover {
    box-shadow: 0 6px 20px rgba(50, 188, 214, 0.08) !important;
    border-right-color: var(--color-secondary, #eab308) !important;
}

.stdollarshop-cat-desc-content,
.stdollarshop-cat-desc-content p,
.woocommerce div.term-description p {
    color: #334155 !important;
    font-size: 15px !important;
    line-height: 1.85 !important;
    font-weight: 500 !important;
    margin: 0 !important;
    font-family: 'Cairo', sans-serif !important;
}

.stdollarshop-cat-desc-content p + p {
    margin-top: 10px !important;
}

/* 2-line Clamp state */
.stdollarshop-cat-description-wrapper.stdollarshop-cat-desc-collapsed .stdollarshop-cat-desc-content {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    max-height: 3.7em !important;
}

/* Expanded state */
.stdollarshop-cat-description-wrapper.stdollarshop-cat-desc-expanded .stdollarshop-cat-desc-content {
    display: block !important;
    -webkit-line-clamp: unset !important;
    max-height: none !important;
    overflow: visible !important;
}

/* Read More Button */
.stdollarshop-read-more-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-top: 14px !important;
    background: #ffffff !important;
    color: var(--color-primary, #32bcd6) !important;
    border: 1px solid rgba(50, 188, 214, 0.3) !important;
    padding: 6px 16px !important;
    border-radius: 20px !important;
    font-family: 'Cairo', sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
    transition: all 0.25s ease !important;
}

.stdollarshop-read-more-btn:hover {
    background: var(--color-primary, #32bcd6) !important;
    color: #ffffff !important;
    border-color: var(--color-primary, #32bcd6) !important;
    box-shadow: 0 4px 12px rgba(50, 188, 214, 0.25) !important;
}

.stdollarshop-read-more-btn svg {
    transition: transform 0.3s ease !important;
}

/* ==========================================================================
   Luxury Category Title Banner Header
   ========================================================================== */
.stdollarshop-cat-hero-header {
    margin-top: 15px !important;
    margin-bottom: 20px !important;
    text-align: right !important;
    direction: rtl !important;
    position: relative !important;
}

.stdollarshop-cat-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #0284c7 !important;
    background: rgba(14, 165, 233, 0.08) !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(14, 165, 233, 0.2) !important;
    margin-bottom: 12px !important;
    font-family: 'Cairo', sans-serif !important;
}

.stdollarshop-cat-badge .cat-count-pill {
    background: #ffffff !important;
    color: #334155 !important;
    padding: 2px 10px !important;
    border-radius: 12px !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
}

.stdollarshop-cat-title {
    font-family: 'Cairo', sans-serif !important;
    font-size: 34px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    margin: 0 0 12px 0 !important;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0284c7 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    letter-spacing: -0.5px !important;
}

.stdollarshop-cat-accent-line {
    width: 60px !important;
    height: 4px !important;
    background: linear-gradient(90deg, #32bcd6 0%, #eab308 100%) !important;
    border-radius: 4px !important;
    margin-bottom: 20px !important;
}


