.product-table {
    width: 100%;
    border-collapse: collapse;
    border: none;
}
.product-table tbody{ border: none; }
.product-table th, .product-table td {
    border: none;
    padding: 10px;
    text-align: center;
    
}
table.product-table tbody>tr:nth-child(odd)>td, table.product-table tbody>tr:nth-child(odd)>th{
    background-color: inherit;
}
.product-table td{ border-top: white thin solid !important ; padding: 20px 12px !important;}

.wrap-product-quantity{ display: flex; align-content: center;}

.quantity-value{
    width: 30px; 
    height: 30px;
    background-color: #484848;
    color: white;
    font-weight: bold;
    line-height: 2rem;
}

/* Beat Elementor Kit `button { color: #fff }` */
.wrap-product-quantity button.quantity-btn,
.product-table button.quantity-btn {
    background-color: #ffffff !important;
    color: #484848 !important;
    border: #ffffff thin solid !important;
    margin: 0;
    cursor: pointer;
    width: 30px !important;
    height: 30px !important;
    text-align: center;
    font-weight: bold;
    padding: 0 !important;
    border-radius: 0;
}

.wrap-product-quantity button.quantity-btn:hover,
.product-table button.quantity-btn:hover {
    background-color: #ffffff !important;
    color: #484848 !important;
}

/* Tablet / desktop: white text on dark archive background */
.product-table td.product-price,
.product-table td.product-price b,
.product-table td.product-price *,
.product-table td.product-subtotal,
.product-table td.product-subtotal b,
.product-table td.product-subtotal *,
.product-table td.product-name,
.product-table td.product-name b,
.product-table td.product-name * {
    color: #ffffff !important;
}

/* Fake daily BIB scarcity countdown */
.cpt-scarcity {
    margin-top: 8px;
    font-size: 0.9em;
    font-weight: 600;
    line-height: 1.4;
    color: #ffcc66 !important;
}

.cpt-scarcity .cpt-scarcity-text,
.cpt-scarcity .cpt-scarcity-sep,
.cpt-scarcity .cpt-scarcity-timer,
.cpt-scarcity .cpt-scarcity-left {
    color: #ffcc66 !important;
}

.cpt-scarcity .cpt-scarcity-left {
    font-weight: 700;
}

.cpt-scarcity .cpt-scarcity-timer {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

/* Loading overlay */
#ajax-loading.blockUI.blockOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: 9999;
}

#ajax-loading.blockUI.blockOverlay::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile styles */
@media (max-width: 768px) {
    .wrap-product-quantity button.quantity-btn,
    .product-table button.quantity-btn {
        border: #484848 thin solid !important;
    }
    
    table.shop_table.product-table {
        width: 100%;
        border-collapse: collapse;
    }
    
    table.shop_table.product-table thead {
        display: none;
    }
    
    table.shop_table.product-table tbody tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #ddd;
        padding: 10px;
        border-radius: 8px;
        background: #f9f9f9;
    }
    
    table.shop_table.product-table tbody tr td {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 8px 10px;
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
    }
    
    table.shop_table.product-table tbody tr td::before {
        content: attr(data-label);
        font-weight: bold;
        flex: 1;
        color: #333;
    }
    
    table.shop_table.product-table tbody tr td.product-name {
        flex-direction: column;
        align-items: flex-start;
    }
    
    table.shop_table.product-table tbody tr td.product-name::before {
        content: none;
    }
    
    table.product-table td {
        padding: 8px 10px !important;
    }
    
    td[data-label] {
        text-align: left !important;
    }
    
    .wrap-product-quantity {
        display: flex;
        align-items: center;
        gap: 6px;
    }
    
    .wrap-product-quantity button {
        padding: 4px 10px;
    }
    
    .wrap-product-quantity .quantity-value {
        min-width: 30px;
        text-align: center;
    }
    
    .product-table td.product-subtotal,
    .product-table td.product-subtotal b,
    .product-table td.product-subtotal *,
    .product-table td.product-price,
    .product-table td.product-price b,
    .product-table td.product-price *,
    .product-table td.product-name,
    .product-table td.product-name b,
    .product-table td.product-name * {
        color: #000000 !important;
        font-weight: bold;
    }

    .cpt-scarcity,
    .cpt-scarcity .cpt-scarcity-text,
    .cpt-scarcity .cpt-scarcity-sep,
    .cpt-scarcity .cpt-scarcity-timer,
    .cpt-scarcity .cpt-scarcity-left {
        color: #c45c00 !important;
        font-weight: 600;
    }

    .product-table td.product-name b {
        font-weight: bold;
    }
}

/* Floating cart styles */
.floating-cart {
    position: fixed;
    bottom: 50vh;
    right: 30px;
    color: white;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    width: 100px;
    z-index: 999;
}

.cart-icon-wrapper {
    position: relative;
    background: #ddd;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

.cart-icon {
    width: 40px;
    height: 40px;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: red;
    color: white;
    font-size: 14px;
    font-weight: bold;
    padding: 5px 8px;
    border-radius: 50%;
}

.cart-text {
    font-size: 14px;
    text-transform: uppercase;
}

/* Ẩn floating cart trên mobile */
@media (max-width: 768px) {
    .floating-cart {
        display: none !important;
    }
}

