/* Glass v2 - 2.14.0. סגנון אפל: זכוכית רק על מה שמרחף (כותרת, סרגל תחתון, כפתורים צפים),
   תוכן מוצק ונקי, טיפוגרפיה גדולה, בלי אפקטים מיותרים. נטען אחרון, אחרי glass/overrides/polish.
   כל הכללים תחת body.sa-g2 - הסרת המחלקה מבטלת את השכבה כולה. */

body.sa-g2{
  --g2-ink:#1d1d1f; --g2-mut:#6e6e73; --g2-line:rgba(17,38,27,.08);
  --g2-card:#fff; --g2-radius:22px;
  --g2-shadow:0 1px 2px rgba(17,38,27,.04),0 8px 24px rgba(17,38,27,.07);
  --g2-shadow-hover:0 2px 4px rgba(17,38,27,.05),0 14px 34px rgba(17,38,27,.11);
  --g2-glass:rgba(255,255,255,.84); --g2-blur:saturate(180%) blur(24px);
  --cta:#1F6B45; --cta-deep:#14412c; --cta-tint:#E3F1E8;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}

/* ---------- בלי אנימציות נכנסות, בלי הטיה ובלי ברק: התוכן מוצג מיד ---------- */
body.sa-g2 [data-reveal]{opacity:1!important;transform:none!important;transition:none!important}
body.sa-g2 .tilt{transform:none!important}
body.sa-g2 .pcard__glare,body.sa-g2 #bg-canvas,body.sa-g2 .welcome__aurora{display:none!important}
body.sa-g2 .pcard--beam::before,body.sa-g2 .pcard--beam::after{display:none!important;content:none!important}

/* ---------- כותרת עליונה: זכוכית ---------- */
body.sa-g2 #hdr.site-header{
  background:var(--g2-glass)!important;
  -webkit-backdrop-filter:var(--g2-blur); backdrop-filter:var(--g2-blur);
  border-bottom:1px solid var(--g2-line); box-shadow:none!important;
}
body.sa-g2 #hdr .catbar{background:transparent!important;border-top:1px solid var(--g2-line)}
body.sa-g2 .sa-header-search .dgwt-wcas-search-input{
  border-radius:999px!important; border:1px solid transparent!important; background:#f2f2f4!important;
  min-height:44px; box-shadow:none!important;
}
body.sa-g2 .sa-header-search .dgwt-wcas-search-input:focus{background:#fff!important;border-color:var(--cta)!important;box-shadow:0 0 0 4px rgba(31,107,69,.14)!important}

/* ---------- טיפוגרפיה ---------- */
body.sa-g2 .section-head h2,body.sa-g2 .woocommerce-products-header__title,body.sa-g2 h1.page-title,body.sa-g2 .product_title{
  font-weight:900!important; letter-spacing:-.015em; color:var(--g2-ink);
}
body.sa-g2 .section-head h2{font-size:clamp(26px,3.2vw,38px)!important}

/* ---------- כפתורים ---------- */
body.sa-g2 .btn,body.sa-g2 .woocommerce a.button,body.sa-g2 .woocommerce button.button,body.sa-g2 .woocommerce input.button,
body.sa-g2 .checkout-button,body.sa-g2 #place_order{border-radius:999px!important}
body.sa-g2 .woocommerce button.button.alt,body.sa-g2 .woocommerce a.button.alt,body.sa-g2 .checkout-button,body.sa-g2 #place_order,
body.sa-g2 .single_add_to_cart_button,body.sa-g2 .woocommerce-form-login__submit,body.sa-g2 .woocommerce-form-register__submit{
  background:var(--cta)!important; border-color:var(--cta)!important; color:#fff!important;
  min-height:50px; font-weight:800!important; box-shadow:0 6px 16px rgba(31,107,69,.22)!important;
}
body.sa-g2 .woocommerce button.button.alt:hover,body.sa-g2 .checkout-button:hover,body.sa-g2 #place_order:hover,
body.sa-g2 .single_add_to_cart_button:hover{background:var(--cta-deep)!important;border-color:var(--cta-deep)!important}

/* ---------- כרטיס מוצר (דף הבית) ---------- */
body.sa-g2 .pcard{
  background:var(--g2-card)!important; border:1px solid var(--g2-line)!important; border-radius:var(--g2-radius)!important;
  box-shadow:var(--g2-shadow)!important; transition:box-shadow .2s ease,transform .2s ease!important; overflow:hidden;
}
body.sa-g2 .pcard:hover{box-shadow:var(--g2-shadow-hover)!important;transform:translateY(-2px)!important}
body.sa-g2 .pcard__img{background:#fff!important;border-radius:16px;margin:8px 8px 0}
body.sa-g2 .pcard__photo{object-fit:contain!important}
body.sa-g2 .pcard__name{font-weight:700;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body.sa-g2 .pcard__price{font-weight:800}
body.sa-g2 .pcard__cat{color:var(--g2-mut)}

/* ---------- כרטיס מוצר (חנות וקטגוריות) ---------- */
body.sa-g2 ul.products li.product{
  background:var(--g2-card)!important; border:1px solid var(--g2-line)!important; border-radius:var(--g2-radius)!important;
  box-shadow:var(--g2-shadow)!important; padding:10px 10px 14px!important; transition:box-shadow .2s ease,transform .2s ease;
}
body.sa-g2 ul.products li.product:hover{box-shadow:var(--g2-shadow-hover)!important;transform:translateY(-2px)}
body.sa-g2 ul.products li.product a img{border-radius:16px;background:#fff;object-fit:contain;aspect-ratio:1/1}
body.sa-g2 ul.products li.product .woocommerce-loop-product__title{font-weight:700!important;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body.sa-g2 ul.products li.product .price{font-weight:800!important;color:var(--g2-ink)!important}

/* כפתור הוספה לסל: ירוק, עגול, ברור */
body.sa-g2 .pcard__addbtn{background:var(--cta)!important;color:#fff!important;border-radius:999px!important;border:0!important;font-weight:800!important}
body.sa-g2 .pcard__addbtn:hover{background:var(--cta-deep)!important}
body.sa-g2 .pcard__addbtn--view{background:#f2f2f4!important;color:var(--g2-ink)!important}
body.sa-g2 .sa-qty{border-radius:999px!important;background:#f2f2f4!important;border:0!important}

/* ---------- מחלקות ותתי-קטגוריות בעמוד קטגוריה ---------- */
body.sa-g2 .sa-dept-widget{border-radius:var(--g2-radius)!important;border:1px solid var(--g2-line)!important;box-shadow:var(--g2-shadow)!important;background:#fff!important}
body.sa-g2 .sa-dept-ic img{border-radius:50%;object-fit:cover}

@media (max-width:767px){
  /* 2.14.1: בלי min-width:0 שורת הצ'יפים (nowrap) מתחה את כל עמודת התוכן ל-1824px,
     וחצי מהמוצרים בעמוד קטגוריה ישבו מחוץ למסך (נמדד: 12 מתוך 24). */
  body.sa-g2 aside.sa-shop-sidebar,body.sa-g2 main.sa-shop,body.sa-g2 .sa-shop-sidebar .sa-dept-widget,
  body.sa-g2 .sa-dept-widget:not(.sa-filter) .sa-dept-list{min-width:0!important;max-width:100%!important}
  body.sa-g2 .sa-dept-widget:not(.sa-filter){width:100%!important;box-sizing:border-box}
  /* תתי-קטגוריות כשורת צ'יפים עם תמונה, במקום רשימה מקופלת */
  body.sa-g2 .sa-dept-widget:not(.sa-filter){padding:10px!important;background:transparent!important;border:0!important;box-shadow:none!important}
  body.sa-g2 .sa-dept-widget:not(.sa-filter) .sa-dept-title{display:none!important}
  body.sa-g2 .sa-dept-widget:not(.sa-filter) .sa-dept-list{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0!important;padding:2px 2px 6px!important;max-height:none!important}
  body.sa-g2 .sa-dept-widget:not(.sa-filter) .sa-dept-list::-webkit-scrollbar{display:none}
  body.sa-g2 .sa-dept-widget:not(.sa-filter) .sa-dept-list li{flex:0 0 auto!important;width:auto!important;max-width:none!important;margin:0!important;border:0!important}
  body.sa-g2 .sa-dept-widget:not(.sa-filter) .sa-dept-list a{display:flex!important;align-items:center;gap:8px;height:44px;padding:0 14px 0 6px!important;border-radius:22px!important;background:#fff!important;border:1px solid var(--g2-line)!important;white-space:nowrap}
  body.sa-g2 .sa-dept-widget:not(.sa-filter) .is-active a,body.sa-g2 .sa-dept-widget:not(.sa-filter) li.sa-dept-all.is-active a{background:var(--cta)!important;color:#fff!important;border-color:var(--cta)!important}
  body.sa-g2 .sa-dept-widget:not(.sa-filter) .sa-dept-ic{width:32px!important;height:32px!important;flex:0 0 32px}
  /* הסינון מקופל לכפתור אחד עד שפותחים אותו */
  body.sa-g2 .sa-filter{padding:0!important;overflow:hidden}
  body.sa-g2 .sa-filter .sa-dept-title{margin:0!important;padding:12px 16px!important;cursor:pointer;display:flex!important;align-items:center;gap:8px;color:var(--g2-ink)!important;font-size:16px!important;font-weight:800!important;background:#fff!important}  body.sa-g2 .sa-filter .sa-dept-title::after{content:'';width:9px;height:9px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);transition:transform .2s}
  body.sa-g2 .sa-filter.is-open .sa-dept-title::after{transform:rotate(135deg)}
  body.sa-g2 .sa-filter:not(.is-open) .sa-filter-form{display:none!important}
  body.sa-g2 .sa-filter.is-open .sa-filter-form{padding:0 16px 16px}
}

/* ---------- עמוד מוצר ---------- */
body.sa-g2 div.product .woocommerce-product-gallery{background:#fff;border-radius:var(--g2-radius);border:1px solid var(--g2-line);box-shadow:var(--g2-shadow);overflow:hidden}
body.sa-g2 div.product .summary .price{font-size:28px!important;font-weight:900!important;color:var(--g2-ink)!important}
body.sa-g2 .sa-promises{list-style:none;margin:18px 0 0;padding:0;display:grid;gap:8px}
body.sa-g2 .sa-promises li{display:flex;align-items:center;gap:10px;padding:11px 14px;border-radius:14px;background:var(--emerald-tint,#E8F1EC);color:var(--emerald-900,#11261B);font-size:14px;font-weight:600;line-height:1.35}
body.sa-g2 .sa-promises svg{width:20px;height:20px;flex:0 0 20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.sa-g2 .woocommerce-tabs ul.tabs li{border-radius:999px!important}

/* ---------- סל, קופה וחשבון: משטחים לבנים ומעוגלים, שדות גדולים ---------- */
body.sa-g2 .woocommerce-cart-form,body.sa-g2 .cart_totals,body.sa-g2 #order_review,body.sa-g2 .woocommerce-checkout #customer_details,
body.sa-g2 .woocommerce-MyAccount-content,body.sa-g2 .woocommerce-MyAccount-navigation,body.sa-g2 .woocommerce-form-login,body.sa-g2 .woocommerce-form-register{
  background:#fff!important; border:1px solid var(--g2-line)!important; border-radius:var(--g2-radius)!important; box-shadow:var(--g2-shadow)!important;
}
body.sa-g2 .cart_totals,body.sa-g2 #order_review,body.sa-g2 .woocommerce-MyAccount-content,body.sa-g2 .woocommerce-checkout #customer_details{padding:20px!important}
body.sa-g2 .woocommerce form .input-text,body.sa-g2 .woocommerce form select,body.sa-g2 .woocommerce form textarea,
body.sa-g2 .select2-container .select2-selection--single{border-radius:14px!important;min-height:48px;border:1px solid rgba(17,38,27,.16)!important;background:#fff!important;box-shadow:none!important}
body.sa-g2 .woocommerce form .input-text:focus,body.sa-g2 .woocommerce form select:focus,body.sa-g2 .woocommerce form textarea:focus{border-color:var(--cta)!important;box-shadow:0 0 0 4px rgba(31,107,69,.14)!important;outline:0}
body.sa-g2 .woocommerce-MyAccount-navigation{padding:10px!important}
body.sa-g2 .woocommerce-MyAccount-navigation ul{list-style:none;margin:0;padding:0;display:grid;gap:4px}
body.sa-g2 .woocommerce-MyAccount-navigation li a{display:block;padding:12px 16px;border-radius:14px;color:var(--g2-ink);font-weight:600;text-decoration:none}
body.sa-g2 .woocommerce-MyAccount-navigation li.is-active a,body.sa-g2 .woocommerce-MyAccount-navigation li a:hover{background:var(--cta-tint);color:var(--cta-deep)}
@media (min-width:992px){
  body.sa-g2 .cart-collaterals .cart_totals,body.sa-g2 #order_review{position:sticky;top:150px}
}

/* ---------- הזמנה חוזרת (inc/reorder.php) ---------- */
body.sa-g2 .sa-reorder-card{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:18px 20px;margin:0 0 20px;border-radius:var(--g2-radius);background:linear-gradient(135deg,#14412c,#1F6B45);color:#fff}
body.sa-g2 .sa-reorder-card h3{margin:0 0 4px;font-size:19px;font-weight:800;color:#fff}
body.sa-g2 .sa-reorder-card p{margin:0;opacity:.9;font-size:14px}
body.sa-g2 .sa-reorder-card .button{background:#fff!important;color:#14412c!important;border:0!important;font-weight:800!important;min-height:46px;padding:0 22px!important;display:inline-flex;align-items:center}
body.sa-g2 .woocommerce-orders-table .sa-order-again{background:var(--cta)!important;color:#fff!important}

/* ---------- סרגל תחתון בנייד (זכוכית) ---------- */
.sa-tabbar{display:none}
@media (max-width:767px){
  body.sa-g2{padding-bottom:calc(80px + env(safe-area-inset-bottom))}
  body.sa-g2 .sa-tabbar{
    position:fixed; left:10px; right:10px; bottom:calc(10px + env(safe-area-inset-bottom)); z-index:1100;
    height:62px; display:flex; justify-content:space-around; align-items:center; border-radius:31px;
    background:rgba(255,255,255,.74); -webkit-backdrop-filter:var(--g2-blur); backdrop-filter:var(--g2-blur);
    border:1px solid rgba(255,255,255,.7); box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 8px 28px rgba(17,38,27,.18);
  }
  body.sa-g2 .sa-tabbar a,body.sa-g2 .sa-tabbar button{
    flex:1; display:flex; flex-direction:column; align-items:center; gap:3px; padding:6px 0; position:relative;
    font:600 11px/1.1 Heebo,system-ui,sans-serif; color:#5b6360; background:none; border:0; text-decoration:none; cursor:pointer;
  }
  body.sa-g2 .sa-tabbar svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  body.sa-g2 .sa-tabbar [aria-current="page"]{color:var(--cta-deep)}
  body.sa-g2 .sa-tabbar .sa-fab-count{position:absolute;top:0;left:calc(50% - 24px);min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#ff3b30;color:#fff;font:700 11px/18px Heebo,sans-serif;display:none;justify-content:center}
  body.sa-g2 .sa-tabbar .sa-fab-count.show{display:flex}
  body.sa-g2 #saCartFab{display:none!important}
  body.sa-g2 .sa-wa-fab{bottom:calc(84px + env(safe-area-inset-bottom))!important;width:50px!important;height:50px!important}
  body.sa-g2 .sa-wa-fab svg{width:26px;height:26px}
  /* כפתור הנגישות (enable) עולה מעל הסרגל התחתון */
  body.sa-g2 #enable-toolbar-trigger{translate:0 -78px}
}
@media (prefers-reduced-transparency:reduce){
  body.sa-g2 #hdr.site-header,body.sa-g2 .sa-tabbar{background:#fff!important;-webkit-backdrop-filter:none;backdrop-filter:none}
}
@media (prefers-reduced-motion:reduce){
  body.sa-g2 .pcard,body.sa-g2 ul.products li.product{transition:none!important}
  body.sa-g2 .pcard:hover,body.sa-g2 ul.products li.product:hover{transform:none!important}
}
@media print{.sa-tabbar{display:none!important}}

/* 2.14.1 נגישות (PageSpeed בעמוד קטגוריה: 88): טקסט משני כהה יותר (ניגודיות 4.9:1 במקום 3.2:1),
   וקישורים בתוך טקסט ופירורי לחם מסומנים בקו תחתון ולא רק בצבע. */
body.sa-g2{--ink-3:#69716a}
body.sa-g2 .woocommerce-breadcrumb a,body.sa-g2 .term-description a,body.sa-g2 .entry-content p a,body.sa-g2 .woocommerce-product-details__short-description a{text-decoration:underline;text-underline-offset:3px}
