/* Medical Cart Styles */
.medical-cart-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Empty Cart Styles */
.empty-cart-container {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.empty-cart-icon {
    margin-bottom: 30px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.empty-cart-title {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.empty-cart-message {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 40px;
    line-height: 1.6;
}

.continue-shopping-btn {
    display: inline-block;
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(74, 144, 226, 0.3);
}

.continue-shopping-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
    color: white;
}

.support-info {
    margin-top: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    font-size: 14px;
    color: #6c757d;
}

.support-info strong {
    color: #4A90E2;
    font-weight: 600;
}

/* Cart Content Styles */
.cart-content-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

.cart-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.cart-count {
    background: #4A90E2;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Cart Table */
.cart-table-wrapper {
    overflow-x: auto;
    padding: 0 30px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

.cart-table th {
    background: #f8f9fa;
    padding: 15px 10px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
    border-bottom: 2px solid #dee2e6;
}

.cart-table td {
    padding: 20px 10px;
    border-bottom: 1px solid #f1f3f4;
    vertical-align: middle;
}

.cart-item:hover {
    background: #f8f9fa;
}

.product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-name a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.4;
}

.product-name a:hover {
    color: #4A90E2;
}

.product-price, .product-subtotal {
    font-weight: 600;
    color: #28a745;
    font-size: 16px;
}

/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 5px;
    width: fit-content;
}

.qty-btn {
    background: #4A90E2;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: #357ABD;
    transform: scale(1.05);
}

.quantity-controls input[type="number"] {
    width: 60px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 16px;
}

.remove-item {
    background: #dc3545;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-item:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* Cart Actions */
.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    flex-wrap: wrap;
    gap: 15px;
}

.update-cart-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.update-cart-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

.coupon-section {
    display: flex;
    gap: 10px;
    align-items: center;
}

.coupon-input {
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    width: 200px;
    transition: border-color 0.3s ease;
}

.coupon-input:focus {
    outline: none;
    border-color: #4A90E2;
}

.apply-coupon-btn {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.apply-coupon-btn:hover {
    background: #138496;
}

/* Cart Totals */
.cart-totals-wrapper {
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.cart-totals {
    max-width: 400px;
    margin-left: auto;
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.cart-totals h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.totals-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f4;
}

.totals-row.total {
    border-bottom: none;
    border-top: 2px solid #dee2e6;
    margin-top: 10px;
    padding-top: 20px;
    font-size: 18px;
    font-weight: 700;
}

.totals-row .label {
    color: #6c757d;
    font-weight: 500;
}

.totals-row .value {
    font-weight: 600;
    color: #28a745;
}

.totals-row.total .value {
    color: #2c3e50;
    font-size: 20px;
}

.checkout-actions {
    margin-top: 25px;
    text-align: center;
}

.checkout-btn {
    display: block;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.3);
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
    color: white;
}

.continue-shopping-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.continue-shopping-link:hover {
    color: #4A90E2;
}

/* Loading States */
.cart-item.updating {
    opacity: 0.6;
    pointer-events: none;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4A90E2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .medical-cart-wrapper {
        padding: 10px;
    }
    
    .empty-cart-container {
        padding: 40px 20px;
    }
    
    .empty-cart-title {
        font-size: 24px;
    }
    
    .cart-header {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .cart-table-wrapper {
        padding: 0 15px;
    }
    
    .cart-table th,
    .cart-table td {
        padding: 10px 5px;
        font-size: 14px;
    }
    
    .product-thumbnail img {
        width: 60px;
        height: 60px;
    }
    
    .cart-actions {
        flex-direction: column;
        padding: 15px;
    }
    
    .coupon-section {
        width: 100%;
        justify-content: center;
    }
    
    .coupon-input {
        width: 150px;
    }
    
    .cart-totals-wrapper {
        padding: 15px;
    }
    
    .cart-totals {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .cart-table {
        font-size: 12px;
    }
    
    .product-thumbnail,
    .product-remove {
        display: none;
    }
    
    .cart-table th:first-child,
    .cart-table td:first-child,
    .cart-table th:last-child,
    .cart-table td:last-child {
        display: none;
    }
    
    .quantity-controls {
        scale: 0.8;
    }
}

/* Animations */
.cart-item {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success/Error Messages */
.woocommerce-message,
.woocommerce-error {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
    font-weight: 500;
}

.woocommerce-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.woocommerce-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
