/* Cart Page Styling - Dark Theme */
.cart-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    min-height: 80vh;
    color: white;
}

.cart-header {
    text-align: center;
    margin-bottom: 40px;
}

.cart-title {
    font-size: 32px;
    color: white;
    margin: 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Cart Table Styling - Dark Theme */
.cart-table-wrapper {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    margin-bottom: 30px;
}

.woocommerce-cart-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.woocommerce-cart-table thead th {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 20px 15px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    border: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.woocommerce-cart-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.woocommerce-cart-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.woocommerce-cart-table tbody tr:last-child {
    border-bottom: none;
}

.woocommerce-cart-table td {
    padding: 20px 15px;
    vertical-align: middle;
    text-align: center;
    color: white;
}

/* Product Info Styling */
.product-info {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: right;
}

.product-info img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #eee;
}

.product-details {
    flex: 1;
}

.product-details a {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
}

.product-details a:hover {
    color: #f7931e;
}

/* Quantity Input Styling */
.quantity {
    display: inline-block;
    position: relative;
}

.quantity input[type="number"] {
    width: 80px;
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    background: white;
    transition: border-color 0.3s ease;
}

.quantity input[type="number"]:focus {
    border-color: var(--primary-color, #667eea);
    outline: none;
}

/* Remove Button Styling */
.product-remove a {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: #ff4757;
    color: white;
    text-decoration: none;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.product-remove a:hover {
    background: #ff3742;
    transform: scale(1.1);
}

/* Cart Actions Styling - Dark Theme */
.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.coupon {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.coupon label {
    font-weight: 600;
    color: white;
    white-space: nowrap;
}

.coupon input[type="text"] {
    padding: 10px 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 14px;
    flex: 1;
    max-width: 200px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.coupon input[type="text"]:focus {
    border-color: #ff6b35;
    outline: none;
    background: rgba(255, 255, 255, 0.15);
}

.coupon input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.coupon button {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.coupon button:hover {
    background: linear-gradient(135deg, #f7931e 0%, #ff6b35 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.update-cart {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.update-cart:hover {
    background: linear-gradient(135deg, #5a6268 0%, #6c757d 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

/* Cart Totals Styling - Dark Theme */
.cart-collaterals {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    padding: 0;
    margin-top: 30px;
    overflow: hidden;
}

.cart-totals-wrapper {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    padding: 30px;
}

.cart-totals-wrapper h2 {
    font-size: 24px;
    color: white;
    margin: 0 0 25px 0;
    text-align: center;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.shop_table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

.shop_table .cart-subtotal,
.shop_table .shipping,
.shop_table .fee,
.shop_table .tax-total,
.shop_table .order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.shop_table .cart-subtotal:hover,
.shop_table .shipping:hover,
.shop_table .fee:hover,
.shop_table .tax-total:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin: 0 -10px;
    padding: 18px 10px;
}

.shop_table .order-total {
    border-bottom: none;
    border-top: 3px solid #ff6b35;
    font-size: 20px;
    font-weight: 700;
    color: #ff6b35;
    margin-top: 15px;
    padding: 20px 0;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 10px;
    margin: 15px -10px 0 -10px;
    padding: 20px 10px;
}

.subtotal-label,
.shipping-label,
.fee-label,
.tax-label,
.total-label {
    font-weight: 600;
    color: white;
    font-size: 16px;
}

.total-label {
    font-size: 20px;
    font-weight: 700;
}

.subtotal-amount,
.shipping-amount,
.fee-amount,
.tax-amount {
    font-weight: 600;
    color: #ecf0f1;
    font-size: 16px;
}

.total-amount {
    font-weight: 700;
    color: #ff6b35;
    font-size: 20px;
}

/* Checkout Button Styling - Dark Theme */
.wc-proceed-to-checkout {
    margin-top: 30px;
    padding: 0 10px 20px 10px;
}

.wc-proceed-to-checkout .checkout-button {
    width: 100%;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    display: block;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wc-proceed-to-checkout .checkout-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 107, 53, 0.4);
    color: white;
    text-decoration: none;
    background: linear-gradient(135deg, #f7931e 0%, #ff6b35 100%);
}

/* Subscription Notice Styling */
.subscription-notice {
    background: linear-gradient(135deg, #e7f3ff 0%, #d1e7ff 100%);
    border: none;
    border-left: 4px solid #2196F3;
    border-radius: 15px;
    padding: 0;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(33, 150, 243, 0.15);
    overflow: hidden;
}

.subscription-notice-content {
    display: flex;
    align-items: center;
    padding: 25px;
    gap: 20px;
}

.subscription-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2196F3 0%, #1976d2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.subscription-text {
    flex: 1;
}

.subscription-text h3 {
    margin: 0 0 8px 0;
    color: #1976d2;
    font-size: 20px;
    font-weight: 700;
}

.subscription-text p {
    margin: 0;
    color: #1976d2;
    font-weight: 500;
    opacity: 0.9;
}

.subscription-action {
    flex-shrink: 0;
}

.subscription-notice .checkout-button {
    background: linear-gradient(135deg, #2196F3 0%, #1976d2 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.subscription-notice .checkout-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
    color: white;
    text-decoration: none;
}

.subscription-notice .checkout-button i {
    font-size: 16px;
}

/* Mobile Responsive Design - Dark Mode */
@media (max-width: 768px) {
    .cart-container {
        padding: 10px;
        background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    }
    
    .cart-title {
        font-size: 24px;
        color: white;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        margin-bottom: 20px;
    }
    
    /* Hide table headers on mobile */
    .woocommerce-cart-table thead {
        display: none;
    }
    
    /* Mobile card layout for cart items */
    .woocommerce-cart-table tbody tr {
        display: block;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 15px;
        margin-bottom: 15px;
        padding: 20px;
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
    
    .woocommerce-cart-table tbody td {
        display: block;
        text-align: right;
        padding: 8px 0;
        border: none;
        color: white;
    }
    
    .woocommerce-cart-table tbody td:before {
        content: attr(data-title) ": ";
        font-weight: 600;
        color: #ff6b35;
        display: inline-block;
        width: 100px;
        font-size: 14px;
    }
    
    /* Mobile product info layout */
    .product-info {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .product-info img {
        width: 80px;
        height: 80px;
        border-radius: 12px;
        border: 2px solid rgba(255, 107, 53, 0.3);
    }
    
    .product-details a {
        font-size: 18px;
        color: #ff6b35;
        margin-bottom: 8px;
    }
    
    /* Mobile cart actions */
    .cart-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 15px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        margin-top: 15px;
    }
    
    .coupon {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .coupon label {
        font-size: 16px;
        color: white;
        margin-bottom: 5px;
    }
    
    .coupon input[type="text"] {
        max-width: none;
        padding: 12px 15px;
        font-size: 16px;
        background: rgba(255, 255, 255, 0.1);
        border: 2px solid rgba(255, 255, 255, 0.2);
        color: white;
    }
    
    .coupon button {
        padding: 12px 20px;
        font-size: 16px;
        background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    }
    
    .update-cart {
        padding: 12px 20px;
        font-size: 16px;
        background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    }
    
    /* Mobile subscription notice */
    .subscription-notice {
        margin: 15px 0;
        border-radius: 12px;
    }
    
    .subscription-notice-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }
    
    .subscription-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .subscription-text h3 {
        font-size: 18px;
        color: #1976d2;
    }
    
    .subscription-text p {
        font-size: 14px;
        color: #1976d2;
    }
    
    .subscription-notice .checkout-button {
        padding: 12px 24px;
        font-size: 14px;
        background: linear-gradient(135deg, #2196F3 0%, #1976d2 100%);
    }
    
    /* Mobile cart totals */
    .cart-collaterals {
        margin-top: 20px;
        border-radius: 12px;
    }
    
    .cart-totals-wrapper {
        padding: 20px;
    }
    
    .cart-totals-wrapper h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .shop_table .cart-subtotal,
    .shop_table .shipping,
    .shop_table .fee,
    .shop_table .tax-total,
    .shop_table .order-total {
        padding: 15px 0;
        font-size: 16px;
    }
    
    .shop_table .order-total {
        font-size: 18px;
        padding: 18px 0;
        margin: 10px -10px 0 -10px;
        padding: 18px 10px;
    }
    
    .wc-proceed-to-checkout {
        margin-top: 20px;
        padding: 0 10px 15px 10px;
    }
    
    .wc-proceed-to-checkout .checkout-button {
        padding: 15px 25px;
        font-size: 16px;
        border-radius: 10px;
    }
}

/* Extra Small Mobile Screens */
@media (max-width: 480px) {
    .cart-container {
        padding: 8px;
    }
    
    .cart-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    /* Smaller mobile cards */
    .woocommerce-cart-table tbody tr {
        padding: 15px;
        margin-bottom: 12px;
        border-radius: 12px;
    }
    
    .woocommerce-cart-table tbody td {
        padding: 6px 0;
    }
    
    .woocommerce-cart-table tbody td:before {
        width: 80px;
        font-size: 12px;
        color: #ff6b35;
    }
    
    /* Smaller product images */
    .product-info img {
        width: 60px;
        height: 60px;
        border-radius: 10px;
    }
    
    .product-details a {
        font-size: 16px;
    }
    
    /* Smaller quantity inputs */
    .quantity input[type="number"] {
        width: 50px;
        font-size: 14px;
        padding: 6px 8px;
    }
    
    /* Mobile cart actions */
    .cart-actions {
        padding: 12px;
        gap: 12px;
    }
    
    .coupon input[type="text"] {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .coupon button,
    .update-cart {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    /* Mobile subscription notice */
    .subscription-notice-content {
        padding: 15px;
        gap: 12px;
    }
    
    .subscription-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .subscription-text h3 {
        font-size: 16px;
    }
    
    .subscription-text p {
        font-size: 13px;
    }
    
    .subscription-notice .checkout-button {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    /* Mobile cart totals */
    .cart-totals-wrapper {
        padding: 15px;
    }
    
    .cart-totals-wrapper h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .shop_table .cart-subtotal,
    .shop_table .shipping,
    .shop_table .fee,
    .shop_table .tax-total,
    .shop_table .order-total {
        padding: 12px 0;
        font-size: 14px;
    }
    
    .shop_table .order-total {
        font-size: 16px;
        padding: 15px 0;
        margin: 8px -8px 0 -8px;
        padding: 15px 8px;
    }
    
    .wc-proceed-to-checkout {
        margin-top: 15px;
        padding: 0 8px 12px 8px;
    }
    
    .wc-proceed-to-checkout .checkout-button {
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 8px;
    }
}

/* Very Small Mobile Screens */
@media (max-width: 360px) {
    .cart-container {
        padding: 5px;
    }
    
    .cart-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .woocommerce-cart-table tbody tr {
        padding: 12px;
        margin-bottom: 10px;
        border-radius: 10px;
    }
    
    .woocommerce-cart-table tbody td:before {
        width: 70px;
        font-size: 11px;
    }
    
    .product-info img {
        width: 50px;
        height: 50px;
    }
    
    .product-details a {
        font-size: 14px;
    }
    
    .quantity input[type="number"] {
        width: 45px;
        font-size: 12px;
        padding: 5px 6px;
    }
    
    .cart-actions {
        padding: 10px;
        gap: 10px;
    }
    
    .coupon input[type="text"] {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .coupon button,
    .update-cart {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .subscription-notice-content {
        padding: 12px;
        gap: 10px;
    }
    
    .subscription-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .subscription-text h3 {
        font-size: 14px;
    }
    
    .subscription-text p {
        font-size: 12px;
    }
    
    .subscription-notice .checkout-button {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .cart-totals-wrapper {
        padding: 12px;
    }
    
    .cart-totals-wrapper h2 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .shop_table .cart-subtotal,
    .shop_table .shipping,
    .shop_table .fee,
    .shop_table .tax-total,
    .shop_table .order-total {
        padding: 10px 0;
        font-size: 13px;
    }
    
    .shop_table .order-total {
        font-size: 15px;
        padding: 12px 0;
        margin: 6px -6px 0 -6px;
        padding: 12px 6px;
    }
    
    .wc-proceed-to-checkout {
        margin-top: 12px;
        padding: 0 6px 10px 6px;
    }
    
    .wc-proceed-to-checkout .checkout-button {
        padding: 10px 16px;
        font-size: 13px;
        border-radius: 6px;
    }
}
