/* 
 * Uniderma Cart Final Fix - Live Site Optimization
 */

/* 1. FORCE HIDE HEADERS (Very specific to override Flatsome) */
.woocommerce-cart .uc-cards-table thead,
.woocommerce-cart .col .shop_table thead {
    display: none !important;
}

.woocommerce-cart .uc-cards-table,
.woocommerce-cart .col .shop_table.uc-cards-table {
    border: none !important;
    background-color: transparent !important;
}

/* 2. CARD STRUCTURE */
.woocommerce-cart .uc-cards-table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    border: none !important;
}

.woocommerce-cart .uc-cart-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 20px !important;
    border: 1px solid #eef0f2 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03) !important;
    position: relative !important;
    width: 100% !important;
    margin-bottom: 0 !important;
}

.woocommerce-cart .uc-cart-card td {
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

/* 3. IMAGE */
.uc-card-image {
    width: 80px !important;
    flex-shrink: 0 !important;
    margin-right: 20px !important;
}

.uc-card-image img {
    border-radius: 8px !important;
    width: 80px !important;
    height: auto !important;
}

/* 4. DETAILS */
.uc-card-details {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.uc-card-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 5px !important;
}

.uc-card-brand {
    font-size: 11px !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
}

.uc-card-name {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    line-height: 1.4 !important;
    margin-bottom: 10px !important;
}

.uc-badge-green {
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #10b981 !important;
    background: #ecfdf5 !important;
    padding: 3px 10px !important;
    border-radius: 5px !important;
    margin-right: 5px !important;
}

/* 5. PRICE & QUANTITY */
.uc-card-price-quantity {
    width: 150px !important;
    text-align: right !important;
    margin-left: 20px !important;
}

.uc-price-and-qty {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 12px !important;
}

/* Fixed Double Price / Visibility */
.uc-item-price {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

.uc-item-price del {
    font-size: 13px !important;
    color: #94a3b8 !important;
    margin-right: 8px !important;
    font-weight: 400 !important;
    display: inline-block !important;
}

.uc-item-price ins {
    text-decoration: none !important;
    color: #ef4444 !important;
    display: inline-block !important;
}

/* 6. COMPACT QUANTITY */
.uc-stock-label {
    font-size: 11px !important;
    color: #64748b !important;
    margin-bottom: 5px !important;
    font-weight: 600 !important;
    text-align: right !important;
}

.uc-quantity-wrapper .quantity {
    display: flex !important;
    align-items: center !important;
}


.uc-quantity-wrapper input.qty {
    width: 45px !important;
    height: 35px !important;
    border: 1px solid #e2e8f0 !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

.uc-quantity-wrapper .minus,
.uc-quantity-wrapper .plus {
    width: 35px !important;
    height: 36px !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}


.uc-quantity-wrapper .minus:hover,
.uc-quantity-wrapper .plus:hover {
    background: #1a4f8a !important;
    color: #ffffff !important;
}

/* 7. REMOVE BUTTON (Minimalist) */
.uc-card-remove-top a.remove {
    font-size: 16px !important;
    color: #cbd5e1 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
    padding: 0 !important;
}

.uc-card-remove-top a.remove i {
    font-style: normal !important;
}

.uc-card-remove-top a.remove:hover {
    color: #ef4444 !important;
}

/* 8. SIDEBAR PREMIUM */
.uc-sidebar-card {
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 25px !important;
    border: 1px solid #eef0f2 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
}

.uc-sidebar-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 20px !important;
    border-bottom: 2px solid #f8fafc !important;
    padding-bottom: 10px !important;
}

.cart_totals .checkout-button {
    background: #1a4f8a !important;
    border-radius: 10px !important;
    padding: 15px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    margin-top: 20px !important;
    box-shadow: 0 4px 10px rgba(26,79,138,0.2) !important;
}

/* 9. NOTICES REFINEMENT */
.uc-notices-wrapper {
    margin-bottom: 25px;
}

.uc-notices-wrapper .woocommerce-error, 
.uc-notices-wrapper .woocommerce-message, 
.uc-notices-wrapper .woocommerce-info {
    border: none !important;
    border-radius: 12px !important;
    padding: 15px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04) !important;
    margin-bottom: 15px !important;
    display: block !important;
}

.uc-notices-wrapper .woocommerce-error {
    background: #fef2f2 !important;
    color: #991b1b !important;
    border-left: 4px solid #ef4444 !important;
}

.uc-notices-wrapper .woocommerce-message {
    background: #f0fdf4 !important;
    color: #166534 !important;
    border-left: 4px solid #22c55e !important;
}

.uc-notices-wrapper .woocommerce-error li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.uc-notices-wrapper .woocommerce-error::before,
.uc-notices-wrapper .woocommerce-message::before {
    display: none !important;
}

/* 10. OVERLAY */
.uc-cart-loading-overlay {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(5px) !important;
}


/* 10. CLEAN HIDE FOR BOTTOM BUTTONS */
.uc-cart-actions-row,
.cart-actions-footer,
.col.large-7 .button.checkout-button + .button {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .uc-cart-card {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .uc-card-price-quantity {
        width: 100% !important;
        margin-left: 0 !important;
        margin-top: 15px !important;
    }
    .uc-price-and-qty {
        flex-direction: row !important;
        justify-content: space-between !important;
        width: 100% !important;
    }
}
