/* Miklahon QA fixes – theme & UI. Each block names the finding it fixes. */

/* A-01 / B-08 – review stars: filled gold stars, not hollow boxes */
.elementor-star-rating{display:inline-flex;gap:2px;font-size:16px;line-height:1;color:#f5a623}
.elementor-star-rating i{font-style:normal}
.elementor-star-rating i:after{color:#e3e3e3}
.elementor-star-rating i:before{color:#f5a623}

/* A-09 – review carousel arrows visible (44px, white circle, dark chevron); dots keep a fixed size */
.elementor-widget-reviews .elementor-swiper-button{width:44px;height:44px;border-radius:50%;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.18);display:flex;align-items:center;justify-content:center;color:#222;z-index:3}
.elementor-widget-reviews .elementor-swiper-button svg{width:16px;height:16px;fill:#222!important}
.elementor-widget-reviews .elementor-swiper-button-prev{inset-inline-start:-4px}
.elementor-widget-reviews .elementor-swiper-button-next{inset-inline-end:-4px}
.elementor-widget-reviews .swiper-pagination-bullet,
.elementor-widget-reviews .swiper-pagination-bullet-active,
.elementor-widget-reviews .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{width:8px!important;height:8px!important;transform:none!important;margin:0 4px!important;transition:background-color .2s}
.elementor-widget-reviews .swiper-pagination-bullet:focus{outline:none}
.elementor-widget-reviews .swiper-pagination-bullet-active{background:#111!important}
.elementor-widget-reviews .swiper-pagination{overflow:visible!important;width:100%!important;left:0!important;transform:none!important}

/* A-02 / A-03 – no forced English caps in the mobile menu back row and search groups */
.wd-drilldown-back,.wd-drilldown-back a,.wd-nav-mobile .wd-drilldown-back,
.wd-search-results .wd-search-title,.autocomplete-suggestion.suggestion-divider,.wd-dropdown-results .suggestion-divider{text-transform:none!important;letter-spacing:0!important}

/* A-07 – price never splits; product cards in carousels share one height */
.product-grid-item .price,.wd-product .price{white-space:nowrap}
.product-grid-item .price .mq-from{font-weight:400;font-size:.9em}
.wd-carousel .wd-carousel-item{height:auto!important;display:flex}
.wd-carousel .wd-carousel-item>.product-grid-item,.wd-carousel .wd-carousel-item>.wd-product{width:100%;height:100%}

/* A-08 – footer logo keeps its aspect ratio */
.elementor-element-3300046 img{height:auto!important;max-width:100%;object-fit:contain}

/* A-12 – header search dropdown opens under the nav row, not on top of it */
@media (min-width:1025px){
 .whb-header .wd-header-search .wd-search-dropdown{top:calc(100% + 56px)!important;box-shadow:0 10px 30px rgba(0,0,0,.12)}
}

/* A-15 – Instagram block: side gutter, arrows as small white circles on both sides */
@media (max-width:767px){
 .elementor-element-bd9fe1c .elementor-widget-container .eapps-instagram-feed{padding:0 15px;box-sizing:border-box}
}
.eapps-instagram-feed-posts-slider-nav{width:36px!important;height:36px!important;border-radius:50%!important;background:#fff!important;box-shadow:0 2px 8px rgba(0,0,0,.2)!important;opacity:1!important}
.eapps-instagram-feed-posts-slider-nav svg,.eapps-instagram-feed-posts-slider-nav *{fill:#222!important;color:#222!important}
.eapps-instagram-feed-posts-slider-nav{transform:translateY(-50%)!important}
.eapps-instagram-feed-posts-slider-prev{left:8px!important;right:auto!important}
.eapps-instagram-feed-posts-slider-next{right:8px!important;left:auto!important}

/* A-16 – smaller gaps between homepage sections */
.elementor-element-37acf250{margin-top:60px!important;margin-bottom:30px!important}
.elementor-element-bd9fe1c{padding-top:50px!important;padding-bottom:50px!important}
@media (max-width:767px){
 .elementor-element-f7b0f7b{padding-bottom:0!important}
 .elementor-element-37acf250{margin-top:32px!important;margin-bottom:16px!important}
 .elementor-element-bd9fe1c{padding-top:32px!important;padding-bottom:32px!important}
}

/* B-01 – the desktop gallery is fixed-position and bled through the mobile page; hide it below desktop */
@media (max-width:1024px){
 .single-product .elementor-element-342084b{display:none!important}
 /* the gallery section is set to "sticky: top" on mobile too, so it was pinned behind the page; keep it in normal flow */
 .single-product .elementor-element-dbd6a69.elementor-sticky--active,.single-product .elementor-element-dbd6a69.elementor-sticky{position:relative!important;top:auto!important;z-index:auto!important}
 .single-product .elementor-element-dbd6a69.elementor-sticky__spacer{display:none!important}
}

/* B-02 – mobile filter pills: no horizontal scroller (it clipped the dropdowns); 2x2 grid, panels open full width */
@media (max-width:768px){
 .mkl-fbar{display:grid!important;grid-template-columns:1fr 1fr;overflow:visible!important;gap:8px!important;padding:0 2px!important}
 .mkl-dd{position:relative}
 .mkl-dd>button{width:100%;min-height:44px}
 .mkl-pan{min-width:0!important;width:max(100%,170px);max-height:60vh;overflow:auto;z-index:1000}
 .mkl-dd:nth-child(even) .mkl-pan{right:auto!important;left:0}
 .mkl-pan a{min-height:44px}
}

/* B-05 – size/colour swatches: title sits close to its options and away from the price */
.single-product form.variations_form{margin-top:18px}
.single-product .variations_form .variations th.label,.single-product .variations_form .variations .label{padding-bottom:4px!important;margin-bottom:0!important}
.single-product .variations_form .variations td,.single-product .variations_form .variations tr{padding-top:0!important}
.single-product .variations_form .variations tr+tr th.label,.single-product .variations_form .variations tr+tr .label{padding-top:14px!important}
.single-product .variations_form .variations .variable-items-wrapper{margin-top:4px!important}

/* B-06 – sticky bar uses the same label as the main button (text set in qa.js) and never covers content at the top */
.wd-sticky-btn:not(.wd-sticky-btn-shown){pointer-events:none}
.mq-need-choice{outline:2px solid #c0392b;outline-offset:4px;border-radius:6px}
.mq-choice-msg{color:#c0392b;font-size:14px;margin:6px 0 0}

/* B-12 – "התמונה להמחשה בלבד" disclaimer readable on any photo */
.single-product .elementor-element-c34d8d4 .elementor-heading-title,
.single-product .elementor-element-990d884 .elementor-heading-title{display:inline-block;background:rgba(255,255,255,.88);color:#222!important;padding:3px 8px;border-radius:999px;font-size:12px}

/* B-24 – tap targets on mobile PDP; back-to-top clear of the accordions; WhatsApp help button visible */
@media (max-width:1024px){
 .single-product .quantity input.minus,.single-product .quantity input.plus{min-width:44px!important;height:44px!important}
 .single-product .quantity input.qty{height:44px!important;font-size:16px!important}
 .single-product .scrollToTop{display:none!important} /* it sat on the accordion toggles; the sticky bar already gives a way back */
 .single-product .elementor-element-830eedd,.single-product .elementor-element-830eedd .elementor-widget-container,.single-product .elementor-element-830eedd a{display:block!important;width:100%!important;visibility:visible!important}
}

/* ===== Round 2 ===== */

/* A-10 – review dots: same 8px look, but a 44px-tall / 32px-wide tap area each */
.elementor-widget-reviews .swiper-pagination-bullet,
.elementor-widget-reviews .swiper-pagination-bullet-active{position:relative;margin:0 12px!important}
.elementor-widget-reviews .swiper-pagination-bullet::after{content:"";position:absolute;top:-18px;bottom:-18px;left:-12px;right:-12px}

/* A-13 – header live search: "show all results" link always visible at the bottom of the list */
.wd-search-results .wd-scroll-content{max-height:min(450px,65vh)!important}
.wd-search-results .wd-all-results{position:sticky;bottom:0;z-index:2;display:block;background:#fff;border-top:1px solid #e6e6e6;box-shadow:0 -6px 12px rgba(255,255,255,.9);text-align:center;font-weight:600;padding:14px 10px!important;text-transform:none!important;letter-spacing:0!important}
.wd-search-results .wd-all-results:hover{background:#f6f6f6}

/* B-14 – product titles get two lines with "…" instead of a hard one-line cut */
.wd-product .wd-entities-title,.product-grid-item .wd-entities-title{height:auto!important;max-height:none!important;white-space:normal!important;display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden!important;text-overflow:ellipsis}
.wd-product .wd-entities-title a,.product-grid-item .wd-entities-title a{white-space:normal!important}

/* C-34 – contact form: visible labels, 16px fields (no iPhone zoom), inline Hebrew errors */
.elementor-element-e427a27 .elementor-field-label.elementor-screen-only{position:static!important;width:auto!important;height:auto!important;clip:auto!important;clip-path:none!important;margin:0 0 6px!important;overflow:visible!important;white-space:normal!important;font-size:14px;font-weight:600;color:#222;display:block}
.elementor-form .elementor-field,.elementor-form .elementor-field-textual{font-size:16px!important}
.elementor-form .elementor-field::placeholder{color:#6b7280;opacity:1}
.elementor-form .mq-ferr{display:block;width:100%;color:#b42318;font-size:13px;margin-top:4px;line-height:1.4}
.elementor-form .elementor-field[aria-invalid="true"]{border-color:#b42318!important}
