/* Cart Page Styles */
.cart-section {
    padding-top: 100px;
    padding-bottom: 40px;
    min-height: calc(100vh - 140px);
}

.page-title {
    font-size: 36px;
    margin-bottom: 30px;
    margin-top: 0;
    color: var(--dark-color);
}

.cart-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--light-color);
    border-radius: 10px;
}

.cart-empty p {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.cart-item {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.cart-item-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-image .image-placeholder {
    min-height: 120px;
    border-radius: 8px;
}

.cart-item-image .image-placeholder i {
    font-size: 32px;
}

.cart-item-image .image-placeholder span {
    font-size: 12px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.cart-item-category {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.cart-item-price {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    padding: 5px;
}

.quantity-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition);
}

.quantity-btn:hover {
    background: var(--light-color);
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: none;
    font-size: 16px;
    font-weight: 600;
}

.remove-item {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.remove-item:hover {
    background: #c82333;
}

.cart-summary {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.cart-summary h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.summary-row.total {
    border-bottom: none;
    border-top: 2px solid var(--primary-color);
    margin-top: 10px;
    padding-top: 15px;
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
}

.btn-block {
    width: 100%;
    margin-top: 20px;
}

.cart-link {
    position: relative;
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-count {
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.cart-icon {
    font-size: 24px;
}

@media (max-width: 768px) {
    .cart-container {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
    }
    
    .cart-item-image {
        width: 100%;
        height: 200px;
    }
    
    .cart-summary {
        position: static;
    }
}

