/* ==========================================================================
   החקלאי שלי — תוספות לחנות (קופה עם תשלום, דף תודה, דפים משפטיים).
   באותה שפה עיצובית בדיוק: משתמשים רק במשתנים של styles.css.
   ========================================================================== */

/* ניגודיות (נגישות, תקן 5568: יחס 4.5 לפחות לטקסט רגיל על לבן) — דורס צבעים מ-styles.css. 26.11.2026 */
:root {
  --leaf: #3A8530;      /* היה #5EB94B (2.5 על לבן) — עכשיו 4.6 */
  --green: #217A3A;     /* היה #278F44 (4.1) — עכשיו 5.4 */
  --muted: #6B7468;     /* היה #8E978B (3.0) — עכשיו 4.9 */
  --terra-700: #B0561A; /* היה #C2601A (3.8 על terra-50) — עכשיו 4.5 */
}
/* "א׳ אין משלוח" באזורי המשלוח: ב-styles.css צבע קבוע #BDB6A8 (1.9) */
.zone__days li { color: var(--muted); }
/* ריחוף: אחרי ההכהיה --leaf ו---green כמעט זהים (1.17:1), לכן ריחוף בכפתור ירוק = --green-700 */
.btn:not(.btn--white, .btn--wa, .btn--ghost, :disabled):hover,
.add-btn:not(.add-btn--out):hover { background: var(--green-700); }
/* styles.css (שורה 878) צובע גם את הריחוף של btn--ghost בירוק — והטקסט הירוק נעלם. מחזירים רקע בהיר */
.btn--ghost:hover { background: var(--green-50); }
/* קטגוריות (--leaf על מנטה = 4.36) וכפתור "נוסף" (לבן על --green-500 = 3.0) */
.cats button { color: var(--green); }
.btn.is-added { background: var(--green); }

/* מחיר ל-100 גרם (חובה במכירה מרחוק): שורה משלו, ממש מתחת למחיר */
.product__price .u100, .pd__price .u100 { flex-basis: 100%; text-align: inherit; font-size: 12.5px; }
.product__price .u100 { text-align: center; }

/* מוצר שאזל */
.product--out .product__img .art { filter: grayscale(.85); opacity: .55; }
.add-btn--out, .add-btn--out:hover { background: var(--green-50); color: var(--muted); cursor: not-allowed; box-shadow: none; }
.pd__out { padding: 12px 14px; border-radius: var(--r-sm); background: var(--terra-50); color: var(--terra-700); font-weight: 600; }

/* קופה */
.check--terms { align-items: flex-start; line-height: 1.5; }
.check--terms input { margin-top: 2px; }
.check--terms a { color: var(--green); font-weight: 600; }
.check--terms:has([aria-invalid="true"]) { color: var(--terra-700); }
.btn--pay { background: var(--leaf); gap: 10px; }
.btn--pay:hover { background: var(--green-700); }
.btn--pay .i { width: 20px; height: 20px; }
.co__privacy { margin-top: -4px; line-height: 1.5; }
.co__privacy a { font-weight: 600; }
.btn--pay.is-loading { opacity: .8; cursor: progress; }
.btn--pay.is-loading .i { animation: pay-pulse 1s ease-in-out infinite; }
@keyframes pay-pulse { 50% { opacity: .35; } }

/* תחתית עם 4 עמודות */
.footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ביטול עסקה — בולט, בראש התחתית של דף הבית */
.footer__cancel { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 32px; padding: 14px 18px; background: var(--card); border-radius: var(--r); box-shadow: 0 0 0 1px var(--line-2); }
.footer .footer__cancel .btn { flex: none; height: 40px; color: var(--green); }
.footer__cancel p { flex: 1 1 280px; font-size: 14.5px; line-height: 1.6; }
.footer .footer__cancel p a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- דפים פנימיים (תודה, תקנון, פרטיות, ביטול, נגישות) ---------- */
.page-head { background: #fff; border-bottom: 1px solid var(--line); }
.page-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.page-head__back { color: var(--green); font-weight: 600; text-decoration: none; }
.page-head__back:hover { text-decoration: underline; }
.page { padding: 40px 0 64px; }
.page ~ .footer { padding: 18px 0; }
.page ~ .footer .footer__bottom { margin-top: 0; padding-top: 0; border-top: 0; }
.page .wrap { max-width: 860px; }

.thanks { background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow), 0 0 0 1px var(--line); overflow: hidden; }
.thanks .done { padding-bottom: 24px; }
.thanks__body { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.thanks__items { padding: 22px 26px; }
.thanks__side { padding: 22px 26px; background: var(--bg); border-inline-start: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.thanks h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.thanks__list { list-style: none; display: grid; gap: 10px; }
.thanks__list li { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.thanks__list small { display: block; color: var(--muted); font-size: 13px; }
.thanks__list b { white-space: nowrap; }
.thanks__fact { font-size: 14.5px; line-height: 1.5; }
.thanks__fact span { display: block; font-size: 12.5px; color: var(--muted); }
.thanks__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 0 26px 26px; }
.thanks__wait { width: 56px; height: 56px; border-radius: 50%; border: 4px solid var(--green-100); border-top-color: var(--leaf); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 767px) {
  .thanks__body { grid-template-columns: 1fr; }
  .thanks__side { border-inline-start: 0; border-top: 1px solid var(--line); }
}

.legal { background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); padding: 34px clamp(20px, 5vw, 48px); }
.legal h1 { font-family: var(--hand); color: var(--leaf); font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 6px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.legal h2 { font-size: 19px; color: var(--green); font-weight: 800; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 10px; }
.legal ul, .legal ol { padding-inline-start: 22px; display: grid; gap: 6px; margin-top: 6px; }
.legal a { color: var(--green); font-weight: 600; }
.legal .biz { background: var(--bg); border-radius: var(--r); padding: 14px 18px; margin-top: 10px; display: grid; gap: 2px; }
.legal .note { background: var(--terra-50); border-radius: var(--r); padding: 12px 16px; color: var(--terra-700); font-weight: 600; margin-top: 10px; }
.legal form { display: grid; gap: 12px; margin-top: 14px; }
.legal .form-ok { background: var(--green-50); color: var(--green); padding: 14px 18px; border-radius: var(--r); font-weight: 600; }

/* הודעה קופצת — ימי ההזמנה (orderDays). במובייל נשארת חלונית באמצע, לא מגירה מלמטה */
.modal.notice { width: min(440px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; border-radius: var(--r-xl); }
.modal.notice[open] { animation: modal-in .35s var(--ease); }
.notice__in { padding: 30px 26px 26px; text-align: center; display: grid; justify-items: center; gap: 12px; }
.notice__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--green-50); color: var(--leaf); display: grid; place-items: center; }
.notice__icon .i { width: 30px; height: 30px; }
.notice h2 { font-family: var(--hand); font-size: 24px; font-weight: 700; color: var(--green); line-height: 1.3; }
.notice p { color: var(--ink-2); font-size: 16px; line-height: 1.6; margin-top: 6px; }
.notice .btn { margin-top: 8px; min-width: 200px; }
