/* מסתיר את חצי הגלילה הדיפולטיביים של הדפדפן (Chrome, Safari, Edge, Opera) */
input.qty::-webkit-outer-spin-button,
input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* מסתיר את החצים ב-Firefox */
input.qty {
    -moz-appearance: textfield;
}

/* עיצוב המעטפת (Wrapper) שמחזיקה את הכפתורים והאינפוט */
.custom-qty-wrapper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e1e1e1; /* גבול עדין למסגרת */
    border-radius: 4px;
    overflow: hidden;
    background-color: #fff;
}

/* עיצוב כפתורי הפלוס והמינוס */
.custom-qty-wrapper .qty-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px; /* רוחב הכפתור */
    height: 40px; /* גובה הכפתור - התאמה לגובה האינפוט */
    background-color: #f9f9f9;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #333;
    transition: background-color 0.2s ease, color 0.2s ease;
    padding: 0;
    line-height: 1;
}

/* אפקט Hover לכפתורים */
.custom-qty-wrapper .qty-btn:hover {
    background-color: #ececec;
    color: #000;
}

/* וידוא שהאינפוט עצמו נראה טוב בתוך המעטפת */
.custom-qty-wrapper input.qty {
    width: 50px;
    height: 40px;
    text-align: center;
    border: none !important; /* מבטל את הגבול המקורי של ווקומרס */
    background: transparent !important;
    padding: 0;
    margin: 0;
    font-size: 16px;
    color: #333;
    box-shadow: none !important; /* הסרת צללים אם קיימים */
}

/* התאמה ל-Elementor ו-JetWooBuilder */
/* לעיתים בוני עמודים נותנים הגדרות חזקות, זה עוזר לדרוס אותן בתוך הראפר שלנו */
.elementor-add-to-cart .quantity .qty,
.jet-woo-builder .quantity .qty {
    min-height: 40px;
}