/* התאמות נגישות (ת"י 5568 / WCAG 2.0 AA) */

/* גודל טקסט — כל המידות באתר יחסיות ל-rem */
html[data-a11y-size="115"]{font-size:115%}
html[data-a11y-size="130"]{font-size:130%}
html[data-a11y-size="150"]{font-size:150%}
html[data-a11y-size="175"]{font-size:175%}
html[data-a11y-size="200"]{font-size:200%}

/* ניגודיות גבוהה */
html.a11y-contrast{
  --navy:#000; --blue:#000; --blue-2:#000; --cyan:#000; --cyan-ink:#000; --cyan-soft:#000;
  --bg:#000; --card:#000; --ink:#fff; --muted:#fff; --line:#fff; --gold:#FFEB3B; --gold-2:#FFEB3B;
  --red:#FF8A80; --ok:#69F0AE; --bad:#FF8A80; --shadow:none;
}
html.a11y-contrast body,html.a11y-contrast .topbar,html.a11y-contrast .hero,html.a11y-contrast .notice,html.a11y-contrast .catbar,
html.a11y-contrast .footer,html.a11y-contrast .prod,html.a11y-contrast .sheet__box,html.a11y-contrast .drawer,html.a11y-contrast .drawer__head,
html.a11y-contrast .empty,html.a11y-contrast .checkout__sum,html.a11y-contrast .a11y-panel,html.a11y-contrast .card,html.a11y-contrast .search,
html.a11y-contrast .branch,html.a11y-contrast .cartpill,html.a11y-contrast .choice label{background:#000!important;color:#fff!important;border-color:#fff!important}
html.a11y-contrast .prod,html.a11y-contrast .card,html.a11y-contrast .empty,html.a11y-contrast .branch{border:2px solid #fff}
html.a11y-contrast a,html.a11y-contrast .prod__name,html.a11y-contrast .section__h,html.a11y-contrast h1,html.a11y-contrast h2,html.a11y-contrast h3{color:#FFEB3B!important}
html.a11y-contrast .sign{-webkit-text-stroke:0;text-shadow:none}
html.a11y-contrast .add,html.a11y-contrast .btn,html.a11y-contrast .step,html.a11y-contrast .pill,html.a11y-contrast .cartpill__count,html.a11y-contrast .eta,html.a11y-contrast .hero__facts li,html.a11y-contrast .cat__ic{
  background:#000!important;color:#FFEB3B!important;border:2px solid #FFEB3B!important;box-shadow:none!important}
html.a11y-contrast .step button{color:#FFEB3B}
html.a11y-contrast input,html.a11y-contrast select,html.a11y-contrast textarea{background:#000!important;color:#fff!important;border:2px solid #fff!important}
html.a11y-contrast .prod__img,html.a11y-contrast .line__img{background:#fff!important}
html.a11y-contrast .badge-new{background:#FFEB3B;color:#000;box-shadow:none}
html.a11y-contrast .out,html.a11y-contrast .err{color:#FF8A80!important}
html.a11y-contrast .meter i{background:#FFEB3B}
html.a11y-contrast .sheet__scrim{background:rgba(0,0,0,.85)}
html.a11y-contrast :focus-visible{outline:3px solid #FFEB3B!important}

/* הדגשת קישורים */
html.a11y-links a{text-decoration:underline!important;text-underline-offset:3px;text-decoration-thickness:2px!important}
html.a11y-links a:not(.btn):not(.brand){background:rgba(255,216,0,.35);color:inherit}

/* גופן קריא */
html.a11y-font body,html.a11y-font .sign,html.a11y-font button,html.a11y-font input,html.a11y-font select,html.a11y-font textarea{font-family:Arial,"Segoe UI",sans-serif!important;letter-spacing:0!important}
html.a11y-font .sign{-webkit-text-stroke:0;text-shadow:none}

/* ריווח טקסט (WCAG 1.4.12) */
html.a11y-spacing body{line-height:1.9!important;letter-spacing:.06em!important;word-spacing:.16em!important}
html.a11y-spacing p{margin-bottom:1.6em}

/* עצירת אנימציות */
html.a11y-motion *,html.a11y-motion *::before,html.a11y-motion *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}

/* סמן גדול */
html.a11y-cursor,html.a11y-cursor *{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l16 10-7 1.5L16 21l-3 1.2-3-7.6L4 20z' fill='%23000' stroke='%23fff' stroke-width='1.4'/%3E%3C/svg%3E") 4 2,auto!important}

/* כפתור ותפריט הנגישות */
.a11y-fab{position:fixed;bottom:calc(16px + env(safe-area-inset-bottom,0px));left:max(16px,env(safe-area-inset-left,0px));z-index:70;width:56px;height:56px;border-radius:50%;border:3px solid #fff;background:#0B3C9C;color:#fff;display:grid;place-items:center;box-shadow:0 4px 14px rgba(0,0,0,.3);cursor:pointer}
.a11y-fab:hover{background:#082C74}
.a11y-fab:focus-visible{outline:3px solid #FFD800;outline-offset:3px}
.a11y-panel{position:fixed;bottom:calc(82px + env(safe-area-inset-bottom,0px));left:max(16px,env(safe-area-inset-left,0px));z-index:71;width:min(320px,calc(100vw - 32px));max-height:calc(100vh - 120px);overflow:auto;background:#fff;color:#14213D;border:2px solid #0B3C9C;border-radius:16px;box-shadow:0 12px 40px rgba(0,0,0,.3);padding:14px}
.a11y-panel__head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.a11y-panel__head h2{margin:0;font-size:1.15rem;color:#0B3C9C}
.a11y-size{display:flex;align-items:center;gap:8px;margin-bottom:10px;font-weight:700}
.a11y-size span{flex:1}
.a11y-size button{width:44px;height:44px;border-radius:10px;border:2px solid #0B3C9C;background:#fff;color:#0B3C9C;font-weight:900;font-size:1rem;cursor:pointer}
.a11y-size output{min-width:3.2em;text-align:center;font-weight:800}
.a11y-opts{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.a11y-opts button{min-height:48px;border-radius:10px;border:2px solid #C5D0EA;background:#F4F7FF;color:#14213D;font-weight:700;font-size:.9rem;cursor:pointer;padding:6px}
.a11y-opts button[aria-pressed="true"]{background:#0B3C9C;border-color:#0B3C9C;color:#fff}
.a11y-opts button[aria-pressed="true"]::before{content:"✓ "}
.a11y-panel__foot{display:flex;justify-content:space-between;align-items:center;margin-top:12px;font-weight:700}
.a11y-panel__foot a{color:#0B3C9C}
.a11y-panel .x{background:#EEF2FB;color:#0B3C9C}
@media print{.a11y-fab,.a11y-panel{display:none!important}}
