/* ===== CART PAGE STYLES ===== */

.cart-main {
    padding: 40px 0;
    min-height: 60vh;
}

.page-title {
    color: var(--primary-green);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-title i {
    color: var(--secondary-green);
}

.cart-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

@media (max-width: 992px) {
    .cart-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Cart Items */
.cart-items {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-cart i {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-cart h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
}

.empty-cart p {
    margin-bottom: 25px;
    font-size: 16px;
}

/* Cart Item */
.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-img {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #eee;
}

.cart-item-info h4 {
    color: var(--dark-green);
    margin-bottom: 8px;
    font-size: 18px;
}

.cart-item-info p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--primary-green);
    font-weight: bold;
    font-size: 18px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.quantity-btn {
    background: #f8f9fa;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.quantity-btn:hover {
    background: var(--light-green);
}

.quantity-input {
    width: 50px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.remove-btn {
    background: #ff4757;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.remove-btn:hover {
    background: #ff3742;
}

/* Cart Summary */
.cart-summary {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 100px;
    height: fit-content;
}

.cart-summary h3 {
    color: var(--primary-green);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-details {
    margin-bottom: 25px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

.summary-row.total {
    border-bottom: none;
    padding-bottom: 0;
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-green);
}

.delivery-info {
    background: var(--light-green);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.delivery-info h4 {
    color: var(--primary-green);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.delivery-info p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 8px;
}

.btn-checkout {
    background: var(--primary-green);
    color: white;
    width: 100%;
    padding: 18px;
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-checkout:hover {
    background: var(--dark-green);
}

.continue-shopping {
    display: block;
    text-align: center;
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    padding: 10px;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.continue-shopping:hover {
    background: var(--light-green);
}

/* Recommended Products */
.recommended-products {
    margin-top: 50px;
}

.recommended-products h3 {
    color: var(--primary-green);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Cart Actions */
.cart-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-clear {
    background: #ff4757;
    color: white;
}

.btn-update {
    background: var(--secondary-green);
    color: white;
}

/* Empty Cart Message */
.cart-message {
    text-align: center;
    padding: 40px;
    background: var(--light-green);
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.cart-message i {
    font-size: 60px;
    color: var(--secondary-green);
    margin-bottom: 20px;
}

.cart-message h3 {
    color: var(--primary-green);
    margin-bottom: 15px;
}