/* Cart Page Styles */
.cart-section {
    padding: 40px 0;
}

.cart-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}

/* Cart Items */
.cart-items {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    overflow: hidden;
}

.cart-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-size: 20px;
    color: var(--text-color);
}

.cart-count-badge {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.cart-item:hover {
    background: var(--cream-bg);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--cream-bg);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--cream-bg) 100%);
}

.cart-item-image-placeholder i {
    font-size: 30px;
    color: var(--primary-color);
    opacity: 0.5;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
}

.cart-item-code {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.cart-item-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    background: var(--cream-bg);
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: var(--primary-light);
}

.quantity-input {
    width: 50px;
    height: 36px;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.remove-item {
    background: none;
    border: none;
    color: var(--danger-color);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.2s;
}

.remove-item:hover {
    opacity: 0.7;
}

.cart-item-total {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
}

/* Empty Cart */
.empty-cart {
    padding: 60px 20px;
    text-align: center;
}

.empty-cart i {
    font-size: 80px;
    color: var(--border-color);
    margin-bottom: 20px;
}

.empty-cart h3 {
    font-size: 20px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.empty-cart p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

/* Cart Summary */
.cart-summary {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    position: sticky;
    top: 100px;
}

.summary-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.summary-header h3 {
    font-size: 18px;
    color: var(--text-color);
}

.summary-body {
    padding: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
}

.summary-row span:first-child {
    color: var(--text-muted);
}

.summary-row span:last-child {
    font-weight: 600;
    color: var(--text-color);
}

.summary-row.total {
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-size: 18px;
}

.summary-row.total span:last-child {
    color: var(--primary-color);
    font-size: 22px;
}

.summary-actions {
    padding: 0 20px 20px;
}

.summary-actions .btn {
    width: 100%;
    margin-bottom: 10px;
}

.summary-note {
    padding: 15px 20px;
    background: var(--primary-light);
    font-size: 12px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-note i {
    color: var(--primary-color);
}

/* Coupon Code */
.coupon-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.coupon-form input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
}

.coupon-form button {
    padding: 12px 20px;
    background: var(--dark-bg);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 992px) {
    .cart-container {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: static;
    }
}

@media (max-width: 576px) {
    .cart-item {
        flex-wrap: wrap;
    }
    
    .cart-item-image {
        width: 80px;
        height: 80px;
    }
    
    .cart-item-actions {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 15px;
    }
}
