/* Cart Page Styles */
.cart-section {
    padding: 12rem 2rem 6rem;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    min-height: 100vh;
}

.cart-section .container {
    max-width: 140rem;
    margin: 0 auto;
}

.cart-section .title {
    text-align: center;
    margin-bottom: 5rem;
}

.cart-section .title h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--black-color);
    margin-bottom: 1rem;
}

.cart-section .title p {
    font-size: 1.6rem;
    color: var(--default-color);
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr 38rem;
    gap: 3rem;
    align-items: start;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cart-item {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: 12rem 1fr auto;
    gap: 2.5rem;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.cart-item:hover {
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.item-image {
    width: 12rem;
    height: 12rem;
    border-radius: 1.2rem;
    overflow: hidden;
    background: var(--grey-color);
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    flex: 1;
}

.item-details h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--black-color);
    margin-bottom: 0.8rem;
}

.item-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.item-meta span {
    font-size: 1.3rem;
    color: var(--default-color);
    background: var(--grey-color);
    padding: 0.5rem 1.2rem;
    border-radius: 0.6rem;
}

.item-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.item-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-end;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--grey-color);
    border-radius: 1rem;
    padding: 0.5rem;
}

.qty-btn {
    width: 3.5rem;
    height: 3.5rem;
    border: none;
    background: white;
    border-radius: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--black-color);
}

.qty-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.qty-btn i {
    font-size: 1.8rem;
}

.qty-input {
    width: 5rem;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--black-color);
}

.qty-input:focus {
    outline: none;
}

.item-subtotal {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--black-color);
}

.remove-btn {
    background: transparent;
    border: 1px solid #fee2e2;
    color: #ef4444;
    padding: 0.8rem 1.5rem;
    border-radius: 0.8rem;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remove-btn:hover {
    background: #fee2e2;
    border-color: #ef4444;
}

.cart-summary {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 12rem;
}

.cart-summary h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--black-color);
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--grey-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    font-size: 1.4rem;
    color: var(--default-color);
    border-bottom: 1px solid var(--grey-color);
}

.summary-row:last-of-type {
    border-bottom: none;
}

.summary-row.total {
    padding: 1.5rem 0 2rem;
    margin-top: 0.5rem;
    border-top: 2px solid var(--grey-color);
    font-size: 1.7rem;
}

.summary-row.total span {
    color: var(--black-color);
}

.checkout-btn,
.btn-secondary {
    display: inline-block;
    width: 100% !important;
    text-align: center;
    text-decoration: none;
    margin-top: 1.5rem;
    padding: 1.4rem 2rem !important;
    font-size: 1.5rem !important;
    font-weight: 600;
    border-radius: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.checkout-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    border: 2px solid var(--grey-color);
    background: white;
    color: var(--black-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    background: var(--grey-color);
}

.empty-cart {
    text-align: center;
    padding: 8rem 2rem;
    background: white;
    border-radius: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.empty-cart i {
    font-size: 10rem;
    color: var(--grey-color);
    margin-bottom: 3rem;
}

.empty-cart h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--black-color);
}

.empty-cart p {
    font-size: 1.6rem;
    color: var(--default-color);
    margin-bottom: 3rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .cart-content {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-section {
        padding: 10rem 1.5rem 4rem;
    }
    
    .cart-section .title h1 {
        font-size: 2.8rem;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
    
    .item-image {
        width: 100%;
        height: 20rem;
    }
    
    .item-actions {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .quantity-control {
        order: 1;
    }
    
    .item-subtotal {
        order: 2;
        font-size: 2rem;
    }
    
    .remove-btn {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }
    
    .cart-summary {
        padding: 2rem;
    }
    
    .cart-summary h2 {
        font-size: 1.8rem;
    }
    
    .checkout-btn,
    .btn-secondary {
        padding: 1.3rem 1.5rem !important;
        font-size: 1.4rem !important;
    }
}
