/* ROXPRO — המודעה: 10% על ההזמנה הראשונה, ומטבעות בכל קנייה (inc/rox-page-popup.php, assets/js/popup.js). סשן 67, 14.11.26.
   אושר: לוח 7 (s62-coins/coins-popup-7.png), הראל "מאשר". בחירות של קלוד, רק במשתנים ובצורות של האתר:
   - הכרטיס = הודעת העוגיות (cookies.css): לבן, פינות 22, אותו צל, אותו מקום. בטלפון מעל הסרגל התחתון, במחשב בפינה.
   - ה-10% על קופון שחור מבריק: חריץ חצי עגול בכל צד, וקו מנוקב שמפריד בדל ריק מימין. אור עובר עליו פעם אחת כשהכרטיס עולה.
   - זהב רק למטבעות (אדום שמור לקנייה). "מטבעות" בזהב כהה, שעובר ניגוד על לבן (4.8).
   - התנאים: לפחות 30% מגובה הספרות של ה-10% (נמדד 32%), בצבע שבולט, לא נטויים. השורה הראשונה כהה: איך מקבלים את ההנחה.
   ⚠️ רדיוס החריצים בפיקסלים, לכל גודל של קופון: ב-em בתוך משתנה (--r) הוא חושב בכרום ובאייפון לפי האות של ההורה ויצא 4 במקום 12. */

.nc{--g:#9A6800;position:fixed;left:12px;right:12px;bottom:calc(var(--nav-h) + env(safe-area-inset-bottom) + var(--cartbar) + 8px);z-index:52;
  color:var(--ink);text-align:start;line-height:1.45;transition:opacity .2s ease,transform .2s ease}
.nc *{box-sizing:border-box}
.nc svg{flex:none;display:block}
.nc .num{font-variant-numeric:tabular-nums}
.nc .gold{color:var(--g)}
/* עולה כמו הודעת העוגיות, ונסגרת בירידה קצרה. עם "פחות תנועה": בלי תנועה */
.nc.nc-in{animation:ncIn .55s var(--spring) .25s backwards}   /* backwards: בסוף הכניסה היא לא מחזיקה את הכרטיס, והסגירה דוהה */
@keyframes ncIn{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:none}}
.nc.out{opacity:0;transform:translateY(16px)}
/* מאחורי חלון או מסך מלא, ובזמן שהודעת העוגיות פתוחה: לא רואים אותה (וגם המקלדת לא מגיעה אליה) */
html.locked .nc,html.cc-open .nc{visibility:hidden}
/* כשיש כבר מוצר בסל (טלפון): המודעה במקום פס הסל, והוא חוזר כשהיא נסגרת. אף פעם לא שני פסים צפים יחד */
html.nc-swap .nc{bottom:calc(var(--nav-h) + env(safe-area-inset-bottom) + 8px)}
/* מחוץ למסך גם בשביל המקלדת וקורא המסך (rox.js סוגר אותו רק כשהוא יורד בעצמו); נעלם אחרי שירד, וחוזר מיד */
html.nc-swap #cartbar{transform:translateY(calc(100% + 90px))!important;visibility:hidden;transition:transform .5s var(--spring),opacity .25s,visibility 0s .5s}
/* עמוד מוצר (כשנפתחה מהקישור בתחתית): מעל הפס הצף של "הוספה לסל", כמו הודעת העוגיות */
body:has(.pd-fbar) .nc{bottom:calc(var(--nav-h) + env(safe-area-inset-bottom) + 80px)}
/* כשהיא פתוחה: סוף העמוד וההודעות הקופצות נשארים מעליה */
html.nc-open .ft{padding-bottom:calc(var(--nav-h) + env(safe-area-inset-bottom) + var(--ncbar) + 22px)}
html.nc-open:not(.locked) .toast{bottom:calc(var(--nav-h) + env(safe-area-inset-bottom) + var(--ncbar) + 12px)}
@media (max-width:1023px){ html.nc-open{scroll-padding-bottom:calc(var(--nav-h) + var(--ncbar, 0px) + 16px + env(safe-area-inset-bottom))} }

/* ---- הכרטיס ---- */
.nc-card{position:relative;padding:14px 16px;border-radius:22px;background:#fff;box-shadow:0 0 0 1px var(--line),0 18px 40px -14px rgba(0,0,0,.32)}
.nc-x{position:absolute;top:14px;inset-inline-end:11px;width:44px;height:44px;display:grid;place-items:center;border-radius:50%;color:var(--ink)}
.nc-x span{width:34px;height:34px;border-radius:50%;background:var(--tile);display:grid;place-items:center;transition:background-color .2s}
.nc-k{font-size:14px;font-weight:600;letter-spacing:.01em;color:var(--ink);line-height:1.35;padding-inline-end:46px;outline:0}
.nc-h{display:flex;align-items:center;gap:12px;min-height:44px;margin-top:5px;padding-inline-end:44px}
.nc-ht{font-size:18px;font-weight:600;letter-spacing:-.02em;line-height:1.2}

/* ---- הקופון עם ה-10% ---- */
.nc-pc{--r:12px;position:relative;display:inline-flex;align-items:stretch;flex:none;overflow:hidden;border-radius:.2em;
  font-size:40px;font-weight:900;letter-spacing:-.045em;line-height:1;color:#fff;
  background:linear-gradient(115deg,rgba(255,255,255,0) 30%,rgba(255,255,255,.16) 33%,rgba(255,255,255,0) 38%),linear-gradient(180deg,#3e4046 0%,#16171a 47%,#060607 52%,#101012 100%);
  -webkit-mask:radial-gradient(circle at 0 50%,#0000 var(--r),#000 calc(var(--r) + .5px)) left/51% 100% no-repeat,radial-gradient(circle at 100% 50%,#0000 var(--r),#000 calc(var(--r) + .5px)) right/51% 100% no-repeat;
          mask:radial-gradient(circle at 0 50%,#0000 var(--r),#000 calc(var(--r) + .5px)) left/51% 100% no-repeat,radial-gradient(circle at 100% 50%,#0000 var(--r),#000 calc(var(--r) + .5px)) right/51% 100% no-repeat}
.nc-pc .dd{position:relative;z-index:1;display:inline-flex;align-items:flex-start;padding-block:.15em;padding-inline:.36em .18em}
.nc-pc .pct{font-size:.56em;line-height:1;margin-top:.06em;margin-inline-start:.03em;letter-spacing:0}
.nc-pc .stub{flex:none;width:.62em;background:radial-gradient(circle,rgba(255,255,255,.5) 0 .045em,#0000 .055em) 0 50%/.1em .16em repeat-y}
/* האור: עובר פעם אחת על הקופון, כמו השתקפות על צבע אחרי פוליש */
.nc-pc::after{content:"";position:absolute;inset:0;background:linear-gradient(105deg,rgba(255,255,255,0) 38%,rgba(255,255,255,.55) 50%,rgba(255,255,255,0) 62%);
  background-size:300% 100%;background-repeat:no-repeat;background-position:115% 0;pointer-events:none}
.nc.nc-in .nc-pc::after{animation:ncShine 1.05s cubic-bezier(.45,.05,.25,1) .6s 1 both}
@keyframes ncShine{from{background-position:115% 0}to{background-position:-15% 0}}
@media (prefers-reduced-motion:reduce){ .nc{transition:none} .nc.nc-in,.nc.nc-in .nc-pc::after{animation:none} }

/* ---- המוצר שהלקוח ראה: לחיץ וחוזר אליו (בעמוד המוצר עצמו: בלי חץ) ---- */
.nc-pt{display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:12px;align-items:center;margin-top:12px;padding:8px;padding-inline-end:12px;border-radius:16px;background:var(--tile);color:var(--ink);text-decoration:none}
.nc-th{width:52px;height:52px;border-radius:12px;background:#fff;display:grid;place-items:center;overflow:hidden}
.nc-th img{width:46px;height:46px;object-fit:contain;max-width:none}
.nc-mt{display:block;min-width:0}
.nc-ml{display:block;font-size:13px;color:var(--ink-2);line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nc-mp{display:flex;align-items:baseline;gap:8px;margin-top:1px;white-space:nowrap;line-height:1.25}
.nc-now{display:inline-flex;align-items:baseline;gap:3px}
.nc-now b{font-size:19px;font-weight:900;letter-spacing:-.01em}
.nc-now .cur{font-size:14px;font-weight:500}
.nc-was{font-size:14px;color:var(--ink-2);text-decoration:line-through;text-decoration-thickness:1.5px}
.nc-chev{color:var(--ink-2)}
.nc-here{grid-template-columns:52px minmax(0,1fr)}
.nc-ptw:empty{display:none}

/* ---- המטבעות ---- */
.nc-coin{display:grid;grid-template-columns:52px minmax(0,1fr);gap:12px;align-items:center;margin-top:10px;padding-inline:8px}
.nc-ci{justify-self:center;width:40px;height:40px;border-radius:50%;background:#FBF0D2;color:#B07B00;display:grid;place-items:center}
.nc-gi{color:#B07B00}
.nc-coin b{display:block;font-size:14.5px;font-weight:600;line-height:1.3}
.nc-coin small{display:block;margin-top:1px;font-size:13.5px;color:var(--ink-2);line-height:1.35}
.nc-gen .nc-coin{grid-template-columns:40px minmax(0,1fr);padding-inline:0;margin-top:12px}

/* ---- התנאים ---- */
.nc-f{margin-top:12px;font-size:14.5px;line-height:1.4;color:var(--ink-2);font-style:normal}
.nc-f .how,.nc3-f .how{display:block;color:var(--ink)}   /* איך מקבלים את ההנחה: שורה ראשונה משלה, כהה */
.nc-f a,.nc3-f a{color:var(--ink);font-weight:500;text-decoration:underline;text-underline-offset:3px}

/* ---- הפס (טלפון, אחרי שממשיכים לגלול): בגובה ובצורה של פס הסל ---- */
.nc3{display:none;padding-block:9px 11px;padding-inline:14px 11px;border-radius:18px;background:#fff;box-shadow:0 0 0 1px var(--line),0 16px 34px -14px rgba(0,0,0,.34)}
.nc.is-bar .nc-card{display:none}
.nc.is-bar .nc3{display:block;animation:ncBar .18s ease both}
@keyframes ncBar{from{opacity:0}}
@media (prefers-reduced-motion:reduce){ .nc.is-bar .nc3{animation:none} }
.nc3-row{display:flex;align-items:center;gap:12px}
.nc3 .nc-pc{font-size:30px;--r:9px}
.nc3-t{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
.nc3-t b{font-size:15.5px;font-weight:600;white-space:nowrap}
.nc3-t>span{display:flex;align-items:center;gap:6px;margin-top:3px;font-size:13.5px;color:var(--ink-2);white-space:nowrap}
.nc3-t>span>span{display:inline}
.nc3 .nc-x{position:static;flex:none}
.nc3-f{margin-top:7px;padding-inline-end:10px;font-size:12.5px;line-height:1.4;color:var(--ink-2);font-style:normal}

/* ---- הפס בטלפון של 375 עד 389 (אייפון SE): הקופון קצת יותר קטן, כדי שהכותרת תיכנס בשורה אחת ---- */
@media (min-width:375px) and (max-width:389px){
  .nc3 .nc-pc{font-size:28px;--r:8px}
  .nc3-row{gap:10px}
}

/* ---- טלפון צר (עד 374, כמו ב-rox.css) ---- */
@media (max-width:374px){
  .nc-card{padding-inline:14px}
  .nc-x{inset-inline-end:9px}
  .nc-pc{font-size:34px;--r:10px}
  .nc-h{gap:10px}
  .nc-ht{font-size:16.5px}
  .nc-pt{grid-template-columns:44px minmax(0,1fr) auto;gap:10px;padding-inline-end:10px}
  .nc-th{width:44px;height:44px}
  .nc-th img{width:39px;height:39px}
  .nc-coin{grid-template-columns:44px minmax(0,1fr);gap:10px}
  .nc-f{font-size:13.5px}
  .nc3{padding-inline:11px 4px}   /* הסגירה נשארת 44; העיגול שרואים עדיין 9 מהקצה */
  .nc3 .nc-pc{font-size:24px;--r:7px}
  .nc3-row{gap:6px}
  .nc3-t b{font-size:13.5px}
  .nc3-t>span{font-size:13px}
}

/* ---- טאבלט (600 עד 1023, אייפד לאורך): ברוחב של המחשב ובאותה פינה, מעל הסרגל התחתון (הראל 16.11.26: "כן, להצר").
   לכל רוחב המסך (744) הכרטיס נראה ריק באמצע והסתיר שורה שלמה של מוצרים. גם הפס שאחרי גלילה, כדי שלא יקפוץ ברוחב ---- */
@media (min-width:600px) and (max-width:1023px){
  .nc{left:auto;right:auto;inset-inline-start:16px;width:420px}
}

/* ---- במחשב: בפינה, כמו הודעת העוגיות ---- */
@media (min-width:1024px){
  /* מתחת לראש העמוד (47) ולתפריטים שנפתחים ממנו (50), שיורדים לפעמים עד תחתית המסך; מעל התוכן */
  .nc{left:auto;right:auto;inset-inline-start:24px;bottom:24px;width:400px;z-index:46}
  body:has(.pd-fbar) .nc{bottom:24px}
  .nc-card{padding:18px 20px}
  .nc-x{top:18px;inset-inline-end:15px}
  .nc-x:hover span{background:var(--tile-2)}
  .nc3{padding-block:11px 13px;padding-inline:18px 15px}
  html.nc-open .ft{padding-bottom:calc(40px + var(--ncbar))}
  html.nc-open:not(.locked) .toast{bottom:calc(28px + var(--ncbar))}
  html.nc-open{scroll-padding-bottom:calc(var(--ncbar) + 16px)}
}
