/* Cart Page Styles */

.cart-section {
    padding: 60px 0;
    min-height: 60vh;
}

.cart-section h1 {
    font-size: 42px;
    margin-bottom: 40px;
}

.empty-cart {
    text-align: center;
    padding: 80px 20px;
}

.empty-cart i {
    font-size: 100px;
    color: #ccc;
    margin-bottom: 20px;
}

.empty-cart h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.empty-cart p {
    color: #666;
    font-size: 18px;
    margin-bottom: 30px;
}

.cart-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.cart-items {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
}

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

.cart-item-details {
    flex: 1;
    padding: 0 20px;
}

.cart-item-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-brand {
    color: #999;
    font-size: 14px;
    margin-bottom: 10px;
}

.cart-item-price {
    font-size: 20px;
    font-weight: 700;
    color: #E91E8C;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border: none;
    background: #f1f1f1;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.quantity-btn:hover {
    background: #e0e0e0;
}

.quantity-value {
    font-size: 18px;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.cart-item-total {
    text-align: right;
}

.cart-item-total-price {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

.remove-btn {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 20px;
    transition: color 0.3s;
}

.remove-btn:hover {
    color: #c0392b;
}

.cart-summary {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 30px;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.cart-summary h2 {
    font-size: 28px;
    margin-bottom: 25px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 16px;
}

.summary-row.total {
    border-top: 2px solid #e0e0e0;
    padding-top: 20px;
    margin-top: 20px;
    font-size: 22px;
    font-weight: 700;
}

.summary-row.total span:last-child {
    color: #E91E8C;
}

.btn-block {
    width: 100%;
    display: block;
    text-align: center;
    margin-top: 15px;
}

@media (max-width: 968px) {
    .cart-grid {
        grid-template-columns: 1fr;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-item-image {
        width: 100%;
        height: 200px;
        margin-bottom: 15px;
    }

    .cart-item-details {
        padding: 0;
        width: 100%;
    }

    .cart-item-actions {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 15px;
    }

    .cart-summary {
        position: static;
    }
}

@media (max-width: 480px) {
    .cart-section h1 {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .cart-item {
        padding: 15px;
    }

    .cart-item-name {
        font-size: 16px;
    }

    .cart-item-price {
        font-size: 18px;
    }

    .cart-item-total-price {
        font-size: 20px;
    }

    .cart-summary {
        padding: 20px;
    }

    .cart-summary h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .summary-row {
        font-size: 14px;
    }

    .summary-row.total {
        font-size: 18px;
    }

    .empty-cart i {
        font-size: 80px;
    }

    .empty-cart h2 {
        font-size: 28px;
    }

    .empty-cart p {
        font-size: 16px;
    }
}
