.cart-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}
.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #31ade2;
    color: #fff;
    font-size: 11px;
    padding: 7px 6px 3px;
    border-radius: 999px;
    min-width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px #fff;
}

.qty-form {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 380px;
    flex-wrap: nowrap;
}
.qty-btn {
    min-width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #e6e6e6;
    background-color: #ffffff;
    color: #000;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
}
.qty-btn:hover {
    filter: brightness(0.98);
}
.qty-btn.minus,
.qty-btn.plus {
    background-color: #f6f6f6;
}
.qty-input {
    width: 80px;
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #ced4da;
    text-align: center;
    -moz-appearance: textfield;
}

@media (max-width: 768px) {
    .qty-form {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }
}

.qty-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-page {
        padding: 40px 20px;
        background-color: #f9f9f9;
    }

    .cart-container {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        flex-wrap: wrap;
        gap: 30px;
    }

    .cart-main {
        flex: 3;
        min-width: 300px;
    }

    .cart-sidebar {
        flex: 1;
        min-width: 250px;
        background-color: #fff;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        align-self: flex-start;
    }

    .cart-title {
        font-size: 28px;
        margin-bottom: 20px;
        color: #333;
    }

    .cart-items {
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

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

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

    .cart-item-image {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border-radius: 8px;
        margin-right: 20px;
        margin-left: 0px;
    }

    html[lang="ar"] .cart-item-image {
        margin-left: 20px;
        margin-right: 0px;
    }

    .cart-item-details {
        flex-grow: 1;
    }

    .cart-item-title {
        font-size: 16px;
        font-weight: 600;
        margin: 0 0 10px;
    }

    .cart-quantity-form {
        display: flex;
        align-items: center;
    }

    .cart-quantity-btn {
        width: 30px;
        height: 30px;
        border: 1px solid #ddd;
        background-color: #f5f5f5;
        cursor: pointer;
        font-size: 18px;
    }

    .cart-quantity-input {
        width: 40px;
        height: 30px;
        text-align: center;
        border: 1px solid #ddd;
        border-left: none;
        border-right: none;
        font-size: 14px;
    }

    .cart-item-price-section {
        text-align: right;
    }

    .cart-remove-btn {
        background: none;
        border: none;
        color: #e74c3c;
        cursor: pointer;
        font-size: 12px;
        margin-bottom: 10px;
    }

    .cart-item-price {
        font-size: 18px;
        font-weight: 600;
        color: #333;
    }

    .cart-summary {
        margin-top: 20px;
        background-color: #fff;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .cart-total {
        display: flex;
        justify-content: space-between;
        font-size: 20px;
        font-weight: bold;
        margin-bottom: 20px;
    }

    .cart-checkout-btn {
        display: block;
        width: 100%;
        padding: 15px;
        background-color: #aacd68;
        color: #fff;
        text-align: center;
        text-decoration: none;
        border-radius: 5px;
        font-size: 16px;
        font-weight: 600;
        border: none;
        cursor: pointer;
    }

    .cart-empty {
        text-align: center;
        padding: 50px 20px;
        background-color: #fff;
        border-radius: 8px;
    }

    .cart-empty p {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .cart-shop-now-btn {
        display: inline-block;
        padding: 10px 20px;
        background-color: #aacd68;
        color: #fff;
        text-decoration: none;
        border-radius: 5px;
    }

    .cart-sidebar-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .cart-recommended-item {
        display: flex;
        align-items: center;
        margin-bottom: 15px;
    }

    .cart-recommended-image {
        width: 60px;
        height: 60px;
        object-fit: cover;
        border-radius: 4px;
        margin-right: 15px;
        margin-left: 0px;
    }
    
    .cart-recommended-details a {
        text-decoration: none;
        color: #333;
    }
    
    html[lang="ar"] .cart-recommended-image {
        margin-left: 15px;
        margin-right: 0px;
    }

    .cart-recommended-title {
        font-size: 14px;
        font-weight: 600;
        margin: 0 0 5px;
    }
    

    .cart-recommended-price {
        font-size: 14px;
        color: #555;
    }

    .cart-alert {
        padding: 15px;
        margin-bottom: 20px;
        border-radius: 4px;
    }

    .cart-alert-success {
        color: #155724;
        background-color: #d4edda;
        border-color: #c3e6cb;
    }

    .cart-alert-danger {
        color: #721c24;
        background-color: #f8d7da;
        border-color: #f5c6cb;
    }

    .cart-page {
        padding: 100px 0px;
    }