/* ==========================================================================
   מצעים בכפר 2026 — התאמות ווקומרס ו-וורדפרס
   מתרגם את האלמנטים המובנים (רשימות מוצרים, עמוד מוצר, סל, קופה,
   הודעות, עימוד) לשפת העיצוב של האתר.
   ========================================================================== */

/* ---------- רשימת מוצרים (חנות / קטגוריה) ---------- */
.woocommerce ul.products{
  list-style:none;margin:0;padding:0;
  display:grid;gap:clamp(16px,2vw,26px);
  grid-template-columns:repeat(auto-fill,minmax(230px,1fr));
}
.woocommerce ul.products li.pcard{margin:0;padding:0;width:auto;float:none}
@media(max-width:560px){.woocommerce ul.products{grid-template-columns:repeat(2,1fr);gap:12px}}

.pcard-media img{width:100%;height:100%;object-fit:cover}

/* כפתור ההוספה לסל של ווקומרס בתוך הכרטיס */
.pcard-quick .button{
  flex:1;display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  padding:.6rem .8rem;border-radius:var(--r-sm);border:0;cursor:pointer;
  background:var(--plum);color:#fff;font-weight:700;font-size:.84rem;
  font-family:var(--body);text-align:center;transition:background .25s var(--ease);
}
.pcard-quick .button:hover{background:var(--plum-800)}
.pcard-quick .added_to_cart{
  display:inline-flex;align-items:center;justify-content:center;
  padding:.6rem .8rem;border-radius:var(--r-sm);
  background:var(--gold);color:#3a2a05;font-weight:700;font-size:.84rem;
}

/* מחיר בכרטיס */
.pcard-price .price{font-family:var(--display);font-size:1.1rem;font-weight:500;color:var(--plum)}
.pcard-price .price del{font-family:var(--body);font-size:.85rem;color:var(--muted);margin-inline-start:.4rem}
.pcard-price .price ins{text-decoration:none}

/* ---------- מיון ומונה תוצאות ---------- */
.woocommerce-result-count{color:var(--muted);font-size:.9rem;margin-bottom:1rem}
.woocommerce-ordering{float:none;margin-bottom:1.4rem}
.woocommerce-ordering select{
  padding:.55rem .9rem;border:0;border-bottom:1px solid var(--line);
  background:transparent;font:inherit;font-weight:600;cursor:pointer;
}
.woocommerce-ordering select:focus{border-color:var(--plum);outline:none}

/* ---------- עימוד ---------- */
.woocommerce-pagination,.pagination,.nav-links{text-align:center;margin-top:2.4rem}
.woocommerce-pagination ul.page-numbers{border:0;display:inline-flex;gap:.4rem;list-style:none;margin:0;padding:0}
.woocommerce-pagination ul.page-numbers li{border:0;float:none}
.page-numbers .page-numbers{
  display:inline-grid;place-items:center;min-width:42px;height:42px;padding:0 .5rem;
  border:1px solid var(--line);border-radius:50%;font-weight:700;color:var(--ink-2);
  background:#fff;
}
.page-numbers .page-numbers.current{background:var(--plum);border-color:var(--plum);color:#fff}
.page-numbers .page-numbers:hover:not(.current){border-color:var(--plum);color:var(--plum)}

/* ---------- פירורי לחם של ווקומרס ---------- */
.page-head .crumbs{color:var(--muted);font-size:.82rem;margin-bottom:.4rem}
.page-head .crumbs a{color:inherit}
.page-head .crumbs a:hover{color:var(--plum)}
.page-head .term-description{color:var(--muted);max-width:60ch;margin-top:.6rem}

/* ---------- עמוד מוצר בודד ---------- */
.woocommerce div.product{display:grid;grid-template-columns:1.05fr 1fr;gap:clamp(28px,4.5vw,72px);align-items:start}
.woocommerce div.product div.images,
.woocommerce div.product div.summary{width:100%;float:none;margin:0}
@media(max-width:880px){.woocommerce div.product{grid-template-columns:1fr}}

.woocommerce div.product div.images img{border-radius:var(--r-lg)}
.woocommerce div.product div.images .flex-viewport{border-radius:var(--r-lg);box-shadow:0 26px 60px rgba(36,28,34,.13)}
.woocommerce div.product .flex-control-thumbs{display:flex;gap:.6rem;margin-top:.8rem;flex-wrap:wrap}
.woocommerce div.product .flex-control-thumbs li{width:76px;float:none;margin:0}
.woocommerce div.product .flex-control-thumbs img{border-radius:var(--r-sm);opacity:.72;border:1px solid var(--line)}
.woocommerce div.product .flex-control-thumbs img.flex-active,
.woocommerce div.product .flex-control-thumbs img:hover{opacity:1;border-color:var(--plum)}

.woocommerce div.product .product_title{
  font-family:var(--display);font-weight:500;letter-spacing:-.03em;
  font-size:clamp(1.7rem,3.2vw,2.5rem);line-height:1.15;
}
.woocommerce div.product p.price{
  font-family:var(--display);font-size:2rem;color:var(--plum);font-weight:500;
  margin:1rem 0 1.3rem;padding-bottom:1.3rem;border-bottom:1px solid var(--line);
}
.woocommerce div.product p.price del{font-size:1.05rem;color:var(--muted)}
.woocommerce div.product p.price ins{text-decoration:none}
.woocommerce div.product .woocommerce-product-details__short-description{color:var(--ink-2);line-height:1.8}

/* טבלת וריאציות (מידות) */
.woocommerce div.product table.variations{border:0;margin-bottom:1rem}
.woocommerce div.product table.variations td{padding:.4rem 0;border:0;vertical-align:middle}
.woocommerce div.product table.variations label{font-size:.78rem;font-weight:700;letter-spacing:.14em;color:var(--muted)}
.woocommerce div.product table.variations select{
  padding:.6rem 1rem;border:1px solid var(--line);border-radius:var(--r-sm);
  background:#fff;font:inherit;min-width:220px;
}
.woocommerce div.product table.variations select:focus{border-color:var(--plum);outline:none}
.reset_variations{font-size:.8rem;color:var(--muted)}

/* כמות + הוספה לסל */
.woocommerce div.product form.cart{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;margin:1.4rem 0}
.woocommerce div.product form.cart.variations_form{display:block}
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center}
.woocommerce .quantity .qty{
  width:74px;padding:.72rem .4rem;text-align:center;
  border:1px solid var(--line);border-radius:var(--r-pill);background:#fff;font:inherit;
}
.woocommerce div.product form.cart .button,
.woocommerce #respond input#submit{
  flex:1;min-width:180px;
  display:inline-flex;align-items:center;justify-content:center;gap:.55rem;
  padding:.86rem 1.6rem;border:0;border-radius:var(--r-pill);cursor:pointer;
  background:var(--plum);color:#fff;font-weight:700;font-size:.95rem;font-family:var(--body);
  box-shadow:0 8px 22px rgba(106,13,83,.26);
  transition:background .25s var(--ease),transform .25s var(--ease);
}
.woocommerce div.product form.cart .button:hover{background:var(--plum-800);transform:translateY(-2px)}

/* לשוניות מידע (תיאור) */
.woocommerce div.product .woocommerce-tabs{grid-column:1/-1}
.woocommerce div.product .woocommerce-tabs ul.tabs{
  list-style:none;margin:0 0 1.4rem;padding:0 0 .1rem;
  display:flex;gap:1.4rem;border-bottom:1px solid var(--line);
}
.woocommerce div.product .woocommerce-tabs ul.tabs li{
  border:0;background:none;margin:0;padding:0;border-radius:0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a{
  display:block;padding:.6rem 0;font-weight:600;color:var(--muted);
  border-bottom:2px solid transparent;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a{color:var(--plum);border-color:var(--plum)}
.woocommerce-Tabs-panel{color:var(--ink-2);line-height:1.85}
.woocommerce-Tabs-panel h2:first-child{display:none}

/* מוצרים דומים */
.woocommerce div.product .related.products,
.woocommerce div.product .upsells.products{grid-column:1/-1;margin-top:clamp(30px,5vw,60px)}
.related.products > h2,.upsells.products > h2{
  font-family:var(--display);font-weight:500;letter-spacing:-.02em;
  font-size:clamp(1.6rem,3vw,2.2rem);margin-bottom:1.4rem;
}

/* ---------- הודעות מערכת ---------- */
.woocommerce-message,.woocommerce-info,.woocommerce-error{
  border:1px solid var(--line);border-top:3px solid var(--gold);
  background:#fff;border-radius:var(--r-sm);
  padding:1rem 1.2rem;margin-bottom:1.4rem;color:var(--ink-2);
  list-style:none;
}
.woocommerce-error{border-top-color:#b3261e}
.woocommerce-message a.button,.woocommerce-info a.button{
  display:inline-block;margin-inline-start:.8rem;padding:.4rem 1rem;border-radius:var(--r-pill);
  background:var(--plum);color:#fff;font-weight:700;font-size:.84rem;
}

/* ---------- סל וקופה ---------- */
.wc-page table.shop_table{
  width:100%;border:1px solid var(--line);border-radius:var(--r);border-collapse:separate;border-spacing:0;
  background:#fff;overflow:hidden;
}
.wc-page table.shop_table th,.wc-page table.shop_table td{
  padding:.9rem 1rem;border-bottom:1px solid var(--line);text-align:start;
}
.wc-page table.shop_table tr:last-child td{border-bottom:0}
.wc-page table.shop_table img{width:64px;border-radius:var(--r-sm)}
.wc-page .product-name a{font-weight:600}
.wc-page .button,.wc-page button[type=submit]{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  padding:.75rem 1.5rem;border:0;border-radius:var(--r-pill);cursor:pointer;
  background:var(--plum);color:#fff;font-weight:700;font-family:var(--body);font-size:.92rem;
  transition:background .25s var(--ease);
}
.wc-page .button:hover{background:var(--plum-800)}
.wc-page .checkout-button{background:var(--gold);color:#3a2a05;font-size:1rem;width:100%;justify-content:center}
.wc-page .checkout-button:hover{background:var(--gold-700);color:#fff}
.wc-page input.input-text,.wc-page textarea,.wc-page select{
  width:100%;padding:.72rem 1rem;border:1px solid var(--line);border-radius:var(--r-sm);
  background:var(--cream);font:inherit;
}
.wc-page input.input-text:focus,.wc-page textarea:focus{border-color:var(--plum);outline:none;background:#fff}
.wc-page .form-row label{font-size:.86rem;font-weight:700;margin-bottom:.3rem;display:block}
.wc-page .cart_totals,.wc-page #order_review{
  background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);padding:1.4rem;
}
.wc-page .cart_totals h2,.wc-page #order_review_heading{
  font-family:var(--display);font-weight:500;font-size:1.4rem;margin-bottom:1rem;
}

/* ---------- העמוד הראשי לא מקבל page-head כשה-hero קיים ---------- */
.home .page-head{display:none}

/* ---------- prose: תוכן עמודים מוורדפרס ---------- */
.prose img{border-radius:var(--r);height:auto}
.prose h2,.prose h3{font-family:var(--display);font-weight:500;letter-spacing:-.015em}
.prose a{color:var(--plum);font-weight:600}

/* עמודי סל/קופה רחבים יותר מטור קריאה */
.wc-page{max-width:none}

/* תיאור הקטגוריה (ה-SEO טקסט) מעל רשת המוצרים — פעם אחת, מעוצב ורגוע */
.woocommerce-products-header{margin-bottom:clamp(18px,2.6vw,30px)}
.woocommerce-products-header .term-description{
  color:var(--muted);max-width:68ch;font-size:.95rem;line-height:1.8;
  padding-bottom:clamp(16px,2.2vw,26px);border-bottom:1px solid var(--line);
}
.woocommerce-products-header .term-description p{margin:0 0 .5rem}
.woocommerce-products-header .term-description a{color:var(--plum);font-weight:600}

/* ==========================================================================
   תיקוני 1.0.2 — ממצאי הביקורת על האתר החי
   ========================================================================== */

/* ווקומרס כופה height:auto על תמונות ברשימות — התמונה לא מילאה את הכרטיס */
.woocommerce ul.products li.product .pcard-media img{
  width:100% !important;height:100% !important;object-fit:cover;
}

/* מחיר מבצע (ins) קיבל קו תחתון מברירת המחדל */
.woocommerce ins{text-decoration:none !important}

/* שורת המק"ט מציגה "אין מידע" — אין מק"טים בקטלוג, מסתירים */
.product_meta .sku_wrapper{display:none}

/* כפתור הוואטסאפ הצף שלנו מיותר — תוסף Click-to-Chat כבר מציג אחד,
   ובועת הסל הצדדית ישבה עליו. !important כי תוסף אחר גם מגדיר .fab */
a.fab{display:none !important}

/* תגית המבצע בעמוד מוצר — גלולה בסגנון האתר במקום עיגול ברירת המחדל */
.woocommerce span.onsale{
  position:absolute;top:12px;inset-inline-start:12px;z-index:2;
  min-width:0;min-height:0;line-height:1.3;border-radius:var(--r-pill);
  padding:.32rem .8rem;background:var(--plum);color:#fff;
  font-size:.74rem;font-weight:800;font-family:var(--body);
}

/* סל ריק: בלי אייקון שבור של גופן ווקומרס, וכפתור חזרה בסגנון האתר */
.woocommerce-info::before,.woocommerce-message::before,.woocommerce-error::before{display:none}
.woocommerce a.button.wc-backward{
  display:inline-flex;align-items:center;gap:.5rem;
  padding:.75rem 1.5rem;border-radius:var(--r-pill);
  background:var(--plum);color:#fff;font-weight:700;
}
.woocommerce a.button.wc-backward:hover{background:var(--plum-800)}

/* ==========================================================================
   1.1.0 — סרגל סינון בחנות, מועדפים, "החל מ־"
   ========================================================================== */

/* קישורי הסינון בצד — אותו עיצוב כמו הכפתורים באתר הסטטי */
.flist a{
  width:100%;display:flex;justify-content:space-between;align-items:center;gap:.6rem;
  padding:.42rem 0;font-size:.91rem;font-weight:500;color:var(--ink-2);
  position:relative;transition:color .18s;
}
.flist a:hover{color:var(--plum)}
.flist a.on{color:var(--plum);font-weight:700}
.flist a.on .n{color:var(--plum-600)}
.flist a.on::before{
  content:"";position:absolute;inset-inline-start:-11px;top:50%;
  width:4px;height:4px;border-radius:50%;background:var(--gold);transform:translateY(-50%);
}
.flist a .n{font-size:.76rem;color:var(--muted);font-weight:700}
.flist .sub a{padding-inline-start:.9rem;opacity:.86;font-size:.85rem}

/* לב המועדפים גלוי תמיד על הכרטיסים (יש data-fav) */
.pcard-fav{opacity:1;transform:none}
.pcard-fav.on{color:var(--plum)}
.pcard-fav.on svg{fill:currentColor}

/* המיון של ווקומרס בתוך שורת הבר */
.shop-tools .woocommerce-ordering{margin:0;float:none}
.woocommerce-result-count{display:none}

/* צ'יפ הסרה */
.active-chips .chip a{display:inline-grid;place-items:center;opacity:.6}
.active-chips .chip a:hover{opacity:1}

/* "החל מ־" */
.pcard-price .from{font-size:.78rem;color:var(--muted);font-family:var(--body);font-weight:600}

/* בדסקטופ אין כפתור סגירה למגירה */
@media(min-width:901px){#closeFilters{display:none}}
