/*
 * Astra Child – Yefet. Styles for the replacements of Elementor Pro widgets.
 * Values come from the old Pro widget settings (Elementor kit colors: logo #911728, bordeaux #46000B,
 * text grey #484848, text #7A7A7A). Per-element rules use the original Elementor element ids, kept by the DB patch.
 */

:root {
	--yefet-logo: #911728;
	--yefet-bordeaux: #46000B;
	--yefet-grey: #484848;
	--yefet-text: #7A7A7A;
	--yefet-navy: #1C244B;
	--yefet-blue-grey: #324A6D;
	--yefet-footer-bg: #F7F3F5;
}

@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/poppins-latin-300.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/poppins-latin-500.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/poppins-latin-600.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ========== Menus: [yefet_nav] ========== */
.yefet-nav__list,
.yefet-nav__list .sub-menu { list-style: none; margin: 0; padding: 0; }
.yefet-nav__list li { margin: 0; line-height: 1.5; }
.yefet-nav a { text-decoration: none; transition: color .2s, background-color .2s; }

.yefet-nav--horizontal .yefet-nav__list { display: flex; flex-wrap: wrap; align-items: center; }
.yefet-nav--horizontal .yefet-nav__list > li { display: flex; position: relative; }
.yefet-nav--horizontal .yefet-nav__list .sub-menu { display: none; }

.yefet-nav--vertical .yefet-nav__list { display: flex; flex-direction: column; }
.yefet-nav--vertical .yefet-nav__list a { display: block; }

/* Header top links (was 6989/2265678): justified, divider between items */
.elementor-element-2265678 .yefet-nav__list { justify-content: space-between; }
.elementor-element-2265678 .yefet-nav__list > li { flex-grow: 1; justify-content: center; }
.elementor-element-2265678 .yefet-nav__list > li:not(:last-child)::after { content: ""; align-self: center; height: 10px; border-left: 2px solid var(--yefet-logo); }
.elementor-element-2265678 .yefet-nav__list a { display: flex; flex-grow: 1; justify-content: center; padding: 0; color: var(--yefet-logo); font-size: 16px; font-weight: 400; line-height: 1.5em; letter-spacing: -0.8px; }
.elementor-element-2265678 .yefet-nav__list a:hover,
.elementor-element-2265678 .yefet-nav__list a:focus,
.elementor-element-2265678 .yefet-nav__list .current-menu-item > a { color: var(--yefet-text); }
@media (max-width: 1024px) { .elementor-element-2265678 .yefet-nav__list a { font-size: 14px; } }
@media (max-width: 767px) { .elementor-element-2265678 .yefet-nav__list a { font-size: 20px; padding: 4px 0; } }

/* Footer menus (was 4625/4227f46b, 480c549, 7719b6d): vertical, centered */
.yefet-footer .yefet-nav--vertical .yefet-nav__list { align-items: center; }
.yefet-footer .yefet-nav--vertical a,
.elementor-location-footer .yefet-nav--vertical a { padding: 0; color: var(--yefet-grey); font-size: 16px; font-weight: 400; line-height: 1.5em; letter-spacing: -0.8px; text-align: center; }
.yefet-footer .yefet-nav--vertical a:hover,
.yefet-footer .yefet-nav--vertical a:focus { color: var(--yefet-logo); }
@media (max-width: 1024px) { .yefet-footer .yefet-nav--vertical a { font-size: 14px; } }
@media (max-width: 767px) { .yefet-footer .yefet-nav--vertical a { padding: 4px 0; } }
.yefet-footer .yefet-nav--vertical .yefet-nav__list .current-menu-item > a { color: var(--yefet-logo); }

/* Mega-menu category lists (ElementsKit mega-menu contents): vertical, background on hover */
.elementskit-megamenu-panel .yefet-nav--vertical a { padding: 9px 20px; color: #2B161B; font-size: 16px; line-height: 16px; }
.elementskit-megamenu-panel .yefet-nav--vertical a:hover,
.elementskit-megamenu-panel .yefet-nav--vertical a:focus { background-color: var(--yefet-text); color: #fff; }

/* Mobile hamburger menu (was 6989/80605b2, layout "dropdown", stretched to full width) */
.yefet-nav--dropdown { position: relative; }
.yefet-nav__toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 8px; border: 0; border-radius: 8px; background: #fff; color: var(--yefet-bordeaux); cursor: pointer; }
.yefet-nav__toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.yefet-nav__toggle:hover,
.yefet-nav__toggle:focus,
.yefet-nav__toggle:active { background: #fff; color: var(--yefet-bordeaux); }
.yefet-nav__toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.yefet-nav__icon-close,
.yefet-nav--dropdown.is-open .yefet-nav__icon-open { display: none; }
.yefet-nav--dropdown.is-open .yefet-nav__icon-close { display: block; }
.yefet-nav__panel { position: absolute; z-index: 9998; background: #fff; box-shadow: 0 8px 16px rgba(0, 0, 0, .12); max-height: calc(100vh - 140px); overflow-y: auto; }
.yefet-nav__panel[hidden] { display: none; }
.yefet-nav__panel .yefet-nav__list li { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--yefet-text); }
.yefet-nav__panel .yefet-nav__list li:last-child { border-bottom: 0; }
.yefet-nav__panel .yefet-nav__list a { display: block; padding: 10px 20px 10px 6px; color: #33373d; font-size: 16px; line-height: 20px; }
.yefet-nav__panel .yefet-nav__list a:hover,
.yefet-nav__panel .yefet-nav__list a:focus,
.yefet-nav__panel .current-menu-item > a,
.yefet-nav__panel li.is-open > a { background-color: var(--yefet-logo); color: #fff; }
.yefet-nav__panel li.is-open { background-color: var(--yefet-logo); }
.yefet-nav__panel li.is-open > .yefet-nav__sub-toggle { color: #fff; }
.yefet-nav__panel li.is-open > .sub-menu { background: #fff; }
.yefet-nav__panel .sub-menu { flex-basis: 100%; border-top: 1px solid var(--yefet-text); }
.yefet-nav__panel .sub-menu a { padding-right: 40px; }
.yefet-nav__panel .sub-menu .sub-menu a { padding-right: 60px; }
.yefet-nav__sub-toggle { display: flex; align-items: center; justify-content: center; width: 28px; height: 40px; padding: 0; border: 0; background: transparent; color: #33373d; cursor: pointer; }
.yefet-nav__sub-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; transition: transform .2s; }
.yefet-nav__sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.yefet-nav__sub-toggle:focus-visible { outline: 2px solid var(--yefet-logo); outline-offset: -4px; }

/* ========== Menu cart: [yefet_menu_cart] (was 6989/f279206) ========== */
.yefet-cart { display: flex; justify-content: flex-end; }
.yefet-cart__toggle { display: inline-flex; align-items: center; gap: 6px; padding: 16px 28px; color: #fff; font-size: 14px; line-height: 1; text-decoration: none; }
.yefet-cart__toggle:hover,
.yefet-cart__toggle:focus { color: #fff; }
.yefet-cart__inner { display: inline-flex; align-items: center; gap: 6px; }
.yefet-cart__subtotal { direction: ltr; unicode-bidi: isolate; }
.yefet-cart__icon { position: relative; display: inline-flex; color: #fff; }
.yefet-cart__icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.yefet-cart__count { position: absolute; top: -9px; right: -9px; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 100%; background: #d9534f; color: #fff; font-size: 10px; line-height: 16px; text-align: center; }
.yefet-cart__toggle:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
@media (max-width: 767px) { .elementor-element-f279206 { width: auto; } }

.yefet-cart-panel { position: fixed; inset: 0; z-index: 99999; }
.yefet-cart-panel[hidden] { display: none; }
.yefet-cart-panel__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .25); opacity: 0; transition: opacity .3s; }
.yefet-cart-panel__main { position: absolute; top: 0; bottom: 0; left: 0; width: 350px; max-width: 100%; overflow-y: auto; padding: 20px 30px; background: #fff; box-shadow: 0 0 20px rgba(0, 0, 0, .2); transform: translateX(-100%); transition: transform .3s; }
.yefet-cart-panel.is-open .yefet-cart-panel__overlay { opacity: 1; }
.yefet-cart-panel.is-open .yefet-cart-panel__main { transform: none; }
.yefet-cart-panel .yefet-cart-panel__close { display: block; margin: 0 auto 10px 0; width: 32px; height: 32px; padding: 4px; border: 0; border-radius: 0; background: transparent; color: #33373d; cursor: pointer; }
.yefet-cart-panel .yefet-cart-panel__close:hover,
.yefet-cart-panel .yefet-cart-panel__close:focus { background: transparent; color: var(--yefet-logo); }
.yefet-cart-panel__close svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; }
.yefet-cart-panel .woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; }
.yefet-cart-panel .woocommerce-mini-cart-item { position: relative; display: block; padding: 20px 0 20px 30px; border-bottom: 1px solid #d5d8dc; }
.yefet-cart-panel .woocommerce-mini-cart-item img { float: right; width: 70px; height: auto; margin-left: 12px; }
.yefet-cart-panel .woocommerce-mini-cart-item a.remove { position: absolute; left: 0; top: 20px; }
.yefet-cart-panel .woocommerce-mini-cart__total { display: flex; justify-content: space-between; padding: 20px 0; margin: 0; border-bottom: 1px solid #d5d8dc; }
.yefet-cart-panel .woocommerce-mini-cart__buttons { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.yefet-cart-panel .woocommerce-mini-cart__buttons .button { display: block; text-align: center; border-radius: 0; }
.yefet-cart-panel .woocommerce-mini-cart__empty-message { text-align: center; padding: 20px 0; margin: 0; }
/* Astra adds its own empty-cart block (message + "continue shopping"); keep only that one. */
.yefet-cart-panel .widget_shopping_cart_content > .woocommerce-mini-cart__empty-message { display: none; }
html.yefet-cart-open { overflow: hidden; }

/* ========== Sticky header bar (was Pro sticky on 6989/3be4aa18) ========== */
/* z-index above the Essential Addons wrapper links (9999) of the home page tiles, which otherwise catch
   clicks/hover meant for the stuck menu (also the case on live with Pro's z-index 99); below the side cart (99999). */
.yefet-sticky.yefet-is-stuck { position: fixed !important; z-index: 10000; margin-top: 0 !important; }

/* ========== Former Pro "Custom CSS" ========== */
/* 6989/87e99bf FiboSearch: its Pro custom CSS ("display:none" until the header's Essential Addons JS showed
   #fibo-search after 500ms) is intentionally not carried over: without Pro that JS does not run, and the
   box should simply be visible. */

/* ========== Product grids: [products] (was Pro "Products" widget) ========== */
.yefet-products ul.products { display: grid; grid-template-columns: repeat(var(--yefet-cols, 4), minmax(0, 1fr)); gap: 24px 20px; margin: 0; }
.yefet-products ul.products::before,
.yefet-products ul.products::after { display: none; }
.yefet-products ul.products li.product { width: auto; margin: 0; float: none; }
.yefet-products .columns-3 { --yefet-cols: 3; }
.yefet-products .columns-5 { --yefet-cols: 5; }
.yefet-products--no-cart .add_to_cart_button,
.yefet-products--no-cart .added_to_cart { display: none !important; }

/* Mega-menu grids: 3 columns, 700px wide */
.elementskit-megamenu-panel .yefet-was-woocommerce-products,
.elementor-widget-shortcode.yefet-was-woocommerce-products.elementor-widget__width-initial { max-width: 100%; }
.elementskit-megamenu-panel .yefet-products ul.products { column-gap: 19px; row-gap: 47px; }
.elementskit-megamenu-panel .yefet-products img { margin-bottom: 16px; }
.elementskit-megamenu-panel .yefet-products .woocommerce-loop-product__title { font-size: 15px; font-weight: 600; margin-bottom: 5px; }
.elementskit-megamenu-panel .yefet-products .price { font-size: 14px; font-weight: 600; }

/* Home "מוצרים נוספים" (was 4388/fce0236): 5 columns, 100px gap */
.elementor-element-fce0236 .yefet-products ul.products { column-gap: 100px; row-gap: 24px; }
@media (max-width: 1024px) { .elementor-element-fce0236 .yefet-products ul.products { --yefet-cols: 3; column-gap: 40px; } }
@media (max-width: 767px) { .elementor-element-fce0236 .yefet-products ul.products, .elementskit-megamenu-panel .yefet-products ul.products { --yefet-cols: 2; column-gap: 20px; } }

/* ========== Single product (was Pro template "עמ' מוצר" 4778) ========== */
.yefet-product-layout #primary { margin: 0; }
.yefet-product-layout .site-content > .ast-container { max-width: none; padding: 0 4%; }
.yefet-product-layout div.product { display: grid; grid-template-columns: 1fr 1fr; align-items: start; padding-top: 4.6%; }
.yefet-product-layout div.product > .woocommerce-product-gallery { grid-column: 2; grid-row: 1; width: 100% !important; float: none !important; margin: 0 !important; }
.yefet-product-layout div.product > .onsale { grid-column: 2; grid-row: 1; z-index: 2; }
.yefet-product-layout div.product > .summary { grid-column: 1; grid-row: 1; width: auto !important; float: none !important; margin: 0 !important; padding: 0 10% 0 10%; display: flex; flex-direction: column; gap: 20px; }
.yefet-product-layout div.product > :not(.summary):not(.woocommerce-product-gallery):not(.onsale) { grid-column: 1 / -1; }
.yefet-product-layout .summary .woocommerce-breadcrumb { margin: 62px 0 15px; font-size: .92em; color: #777; }
.yefet-product-layout .summary .woocommerce-breadcrumb a { color: #777; }
.yefet-product-sku { margin: 0 0 50px; color: var(--yefet-navy); font-family: Poppins, sans-serif; font-size: 22px; font-weight: 300; line-height: 1.5; }
.yefet-product-content { max-width: 507px; margin: 8% 0; color: var(--yefet-blue-grey); font-family: Poppins, sans-serif; font-size: 16px; font-weight: 300; line-height: 1.5; }
.yefet-product-content p:last-child { margin-bottom: 0; }
body.yefet-product-layout div.product .summary .price,
body.yefet-product-layout div.product .summary .price .amount { margin: 0 0 20px; color: var(--yefet-navy); font-family: Poppins, Heebo, sans-serif; font-size: 30px; font-weight: 600; line-height: 1.1; }
body.yefet-product-layout div.product .summary .price .amount { margin: 0; }
body.yefet-product-layout div.product .summary .price del,
body.yefet-product-layout div.product .summary .price del .amount { color: var(--yefet-blue-grey); font-size: inherit; }
body.yefet-product-layout div.product .summary .price ins,
body.yefet-product-layout div.product .summary .price ins .amount { color: var(--yefet-blue-grey); font-size: 36px; text-decoration: none; }
body.yefet-product-layout div.product .summary .price ins { margin-right: 10px; }
.yefet-product-layout .summary form.cart { display: flex; flex-wrap: wrap; gap: 0; align-items: center; margin: 0; }
.yefet-product-layout .summary form.cart:not(.variations_form) .single_add_to_cart_button { margin-right: 38px; }
.yefet-product-layout .summary form.cart .quantity { margin: 0 0 0 16px; }
.yefet-product-layout .summary form.variations_form { display: block; }
.yefet-product-layout .summary form.cart .quantity .qty { width: 58px; height: 38px; border: 1px solid var(--yefet-bordeaux); border-radius: 0; color: var(--yefet-bordeaux); background: #fff; }
.yefet-product-layout .summary .single_add_to_cart_button { min-width: 262px; padding: 10px 20px !important; border: 1px solid var(--yefet-bordeaux) !important; border-radius: 30px !important; background: var(--yefet-bordeaux) !important; color: #fff !important; font-family: Poppins, Heebo, sans-serif; font-size: 16px; font-weight: 500; line-height: 16px; }
.yefet-product-layout .summary .single_add_to_cart_button:hover { opacity: .9; }
body.yefet-product-layout .related.products { padding: 60px 0 120px; }
body.yefet-product-layout .related.products > h2 { margin: 0 0 29px; text-align: center; color: #2B161B; font-size: 42px; font-weight: 700; line-height: 1.3; }
body.yefet-product-layout .related.products > h2::after { content: ""; display: block; width: 80px; margin: 29px auto 40px; border-top: 4px solid var(--yefet-logo); }
body.yefet-product-layout .related.products ul.products { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px 10px; }
body.yefet-product-layout .related.products ul.products::before,
body.yefet-product-layout .related.products ul.products::after { display: none; }
body.yefet-product-layout .related.products ul.products li.product { width: auto; margin: 0; float: none; }
body.yefet-product-layout .related.products ul.products li.product .woocommerce-loop-product__title { color: var(--yefet-navy); font-family: Poppins, Heebo, sans-serif; font-size: 20px; font-weight: 600; line-height: 24px; }
body.yefet-product-layout .related.products ul.products li.product .price { color: var(--yefet-navy); font-family: Poppins, Heebo, sans-serif; font-size: 16px; font-weight: 300; }
@media (max-width: 1024px) {
	.yefet-product-layout div.product { grid-template-columns: 1fr; padding-top: 12%; }
	.yefet-product-layout div.product > .woocommerce-product-gallery,
	.yefet-product-layout div.product > .summary,
	.yefet-product-layout div.product > .onsale { grid-column: 1; grid-row: auto; }
	.yefet-product-layout div.product > .summary { order: -1; padding: 0 5% 40px; }
	.yefet-product-sku { font-size: 14px; margin-bottom: 0; }
	.yefet-product-content { margin: 0; font-size: 14px; }
	body.yefet-product-layout div.product .summary .price,
	body.yefet-product-layout div.product .summary .price .amount { font-size: 25px; }
	body.yefet-product-layout .related.products ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	body.yefet-product-layout .related.products > h2 { font-size: 32px; }
}
@media (max-width: 767px) {
	.yefet-product-layout .site-content > .ast-container { padding: 0 6%; }
	.yefet-product-layout div.product > .summary { padding: 0 0 40px; text-align: center; align-items: center; }
	.yefet-product-content { padding: 0 5%; }
	body.yefet-product-layout div.product .summary .price,
	body.yefet-product-layout div.product .summary .price .amount { font-size: 20px; }
	.yefet-product-layout .summary form.cart { justify-content: center; }
	.yefet-product-layout .summary .single_add_to_cart_button { min-width: 0; padding: 10px 50px !important; white-space: nowrap; }
	body.yefet-product-layout .related.products ul.products { grid-template-columns: 1fr; gap: 40px; }
	body.yefet-product-layout .related.products > h2 { font-size: 24px; }
}
