/* "🧺 הכל ב־10 ₪" — the giant basket (basket10.js): the drawn basket and its hand, the big card,
   "הצד שלי", the home page's button and the /basket page. */

/* ---- the drawn basket ------------------------------------------------------------------------ */
.b10 { position: relative; display: block; line-height: 0; }
.b10-svg { width: 100%; height: auto; overflow: hidden; }
.b10.mini .b10-svg { overflow: visible; }
.b10-sh { font: 800 .62em Rubik, sans-serif; margin-inline-start: 2px; }
.b10-tag { transform-origin: 322px 168px; animation: b10swing 3.2s ease-in-out infinite; }
@keyframes b10swing { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(5deg); } }
.b10-i { transform-box: fill-box; transform-origin: 50% 100%; }
.b10-i1 { animation: b10breathe 4.2s ease-in-out infinite; }
.b10-i3 { animation: b10breathe 3.6s ease-in-out .8s infinite; }
.b10-i2 { animation: b10breathe 5s ease-in-out .4s infinite; }
@keyframes b10breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
/* the hand waits above, out of sight */
.b10-hand { transform: translateY(-330px); transition: transform .55s cubic-bezier(.3, .6, .3, 1); }
.b10-pkg { opacity: 0; transition: opacity .15s; }
.b10.reach .b10-hand, .b10.rummage .b10-hand { transform: translateY(30px); }
.b10.rummage .b10-arm { animation: b10dig .42s ease-in-out infinite; }
@keyframes b10dig { 0% { transform: translate(-26px, 0) rotate(-6deg); } 50% { transform: translate(22px, 14px) rotate(7deg); } 100% { transform: translate(-26px, 0) rotate(-6deg); } }
.b10-arm { transform-box: view-box; transform-origin: 252px -100px; }
.b10.rummage .b10-i1 { animation: b10jump .38s ease-in-out infinite; }
.b10.rummage .b10-i2 { animation: b10jump .46s ease-in-out .1s infinite; }
.b10.rummage .b10-i3 { animation: b10jump .41s ease-in-out .2s infinite; }
.b10.rummage .b10-i4 { animation: b10jump .35s ease-in-out .05s infinite; }
.b10.rummage .b10-i5 { animation: b10jump .5s ease-in-out .15s infinite; }
.b10.rummage .b10-i6 { animation: b10jump .44s ease-in-out .25s infinite; }
@keyframes b10jump { 0%, 100% { transform: translateY(0) rotate(0); } 40% { transform: translateY(-22px) rotate(-8deg); } 70% { transform: translateY(-6px) rotate(6deg); } }
.b10.rummage .b10-svg { animation: b10shake .3s linear infinite; }
@keyframes b10shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-1.4deg); } 75% { transform: rotate(1.4deg); } }
.b10.lift .b10-hand { transform: translateY(-150px); transition-duration: .5s; }
.b10.lift .b10-pkg { opacity: 1; }
.b10.lift .b10-arm { animation: none; transform: none; }
.b10.lift .b10-pkg rect { animation: b10glow .5s ease-in-out infinite alternate; }
@keyframes b10glow { from { filter: drop-shadow(0 0 0 #ffd36b); } to { filter: drop-shadow(0 0 14px #ffd36b); } }
/* the package flying to the middle of the screen, then opening into the card */
.b10-fly { position: fixed; z-index: 1101; width: 90px; height: 72px; left: 0; top: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent 44%, #b8336a 44% 56%, transparent 56%), linear-gradient(0deg, transparent 44%, #b8336a 44% 56%, transparent 56%), #fff4dc;
  border: 3px solid #d8b26a; border-radius: 10px; box-shadow: 0 0 30px #ffd36b; transition: transform .55s cubic-bezier(.2, .8, .3, 1.2); }

/* ---- the big card -------------------------------------------------------------------------- */
.b10-back { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(circle at 50% 38%, rgba(120, 30, 70, .82), rgba(18, 6, 14, .9) 70%); opacity: 0; transition: opacity .22s; overflow-y: auto; }
.b10-back.souk { background: radial-gradient(circle at 50% 38%, rgba(60, 24, 10, .55), rgba(10, 4, 2, .78) 72%); }
.b10-back.in { opacity: 1; }
.b10-back.out { opacity: 0; }
.b10-card { position: relative; width: min(880px, 100%); max-height: calc(100dvh - 32px); overflow: auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  background: linear-gradient(180deg, #fffaf0, #fbefd8); color: #2b1608; border-radius: 22px;
  box-shadow: 0 0 0 3px #e0b450, 0 0 0 7px rgba(224, 180, 80, .25), 0 30px 80px rgba(0, 0, 0, .55);
  transform: scale(.4) rotate(-6deg); transition: transform .5s cubic-bezier(.2, 1.3, .4, 1); }
.b10-back.in .b10-card { transform: none; }
.b10-back.out .b10-card { transform: scale(.85); transition-duration: .2s; }
.b10-rays { position: absolute; inset: -40%; z-index: 0; pointer-events: none; opacity: .32;
  background: repeating-conic-gradient(from 0deg, rgba(255, 211, 107, .9) 0 7deg, transparent 7deg 18deg); animation: b10spin 28s linear infinite; mask: radial-gradient(circle, #000 20%, transparent 60%); }
@keyframes b10spin { to { transform: rotate(360deg); } }
.b10-card > :not(.b10-rays) { position: relative; z-index: 1; }
.b10-x { position: absolute !important; top: 10px; left: 10px; z-index: 3 !important; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(43, 22, 8, .78); color: #fff; font-size: 20px; cursor: pointer; }
.b10-fig { margin: 0; position: relative; padding: 18px; display: grid; place-items: center; min-height: 300px; }
.b10-fig > img { width: 100%; max-height: min(62vh, 520px); object-fit: contain; border-radius: 14px; background: #fff; box-shadow: 0 10px 30px rgba(60, 20, 0, .25); cursor: pointer; }
.b10-ptag { position: absolute; top: 4px; right: 4px; display: grid; justify-items: center; padding: 10px 16px 12px; min-width: 96px;
  background: #c0263f; color: #fff; border-radius: 10px 10px 18px 18px; box-shadow: 0 6px 18px rgba(120, 10, 30, .45), inset 0 0 0 3px rgba(255, 255, 255, .35);
  transform-origin: 50% -10px; animation: b10tag 2.6s ease-in-out infinite; }
.b10-ptag::before { content: ''; position: absolute; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: #fff4dc; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .4); }
@keyframes b10tag { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
.b10-pl { font: 600 14px/1 Rubik, sans-serif; margin-top: 14px; }
.b10-ptag b { font: 400 40px/1 'Secular One', Rubik, sans-serif; letter-spacing: -.5px; }
.b10-was { font: 600 14px/1.2 Rubik, sans-serif; opacity: .92; }
.b10-one { position: absolute; bottom: 26px; left: 26px; background: #2b1608; color: #ffe08a; padding: 6px 12px; border-radius: 999px; font: 700 14px Rubik, sans-serif; box-shadow: 0 0 0 2px #e0b450; }
.b10-dots { position: absolute; bottom: 26px; right: 50%; transform: translateX(50%); display: flex; gap: 6px; }
.b10-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .7); box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); }
.b10-dots i.on { background: #c0263f; }
.b10-next { position: absolute !important; left: 24px; top: 50%; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); font-size: 26px; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.b10-body { padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 10px; }
.b10-title { margin: 0; font: 400 clamp(22px, 3.2vw, 30px)/1.15 'Secular One', Rubik, sans-serif; color: #5e1636; }
.b10-desc { margin: 0; color: #5b4636; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.b10-shop { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; background: #fff; border-radius: 12px; padding: 8px 10px; box-shadow: 0 0 0 1px #ecd9b4; }
.b10-shop img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.b10-shop small { display: block; color: #7a6a5a; font-size: 12px; }
.b10-shop b { font-size: 16px; }
.b10-sl { font-size: 26px; }
.b10-ship { margin: 0; font-size: 14px; color: #4b3a2a; }
.b10-save { display: block; padding: 9px 12px; border-radius: 12px; background: #fff4c8; color: #6a4300; text-decoration: none; font: 600 14px/1.35 Rubik, sans-serif; box-shadow: 0 0 0 1px #f0d27a; }
.b10-acts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-top: 4px; }
.b10-acts > * { gap: 6px; min-height: 50px; border-radius: 12px; border: 0; cursor: pointer; font: 700 16px Rubik, sans-serif; display: flex; align-items: center; justify-content: center; text-decoration: none; padding: 6px 10px; }
.b10-cart { background: #b8336a; color: #fff; }
.b10-cart.on { background: #1f7a4d; }
.b10-aside { background: #fff; color: #5e1636; box-shadow: inset 0 0 0 2px #b8336a; }
.b10-aside.on { background: #fde6ef; }
.b10-again { grid-column: 1 / -1; order: -1; min-height: 58px !important; font-size: 19px !important; color: #3a1d00;
  background: linear-gradient(180deg, #fff1b8, #f2c14e 55%, #d99a2b); box-shadow: 0 0 0 2px #9b1544, 0 6px 16px rgba(155, 21, 68, .25); animation: b10call 1.6s ease-in-out infinite; }
@keyframes b10call { 0%, 100% { box-shadow: 0 0 0 2px #9b1544, 0 6px 16px rgba(155, 21, 68, .25); } 50% { box-shadow: 0 0 0 2px #9b1544, 0 0 26px rgba(242, 193, 78, .9); } }
.b10-shopbtn { background: #2b1608; color: #fff4d6; grid-column: 1 / -1; min-height: 44px !important; }
.b10-more { align-self: center; color: #7a2350; font-weight: 600; font-size: 14px; }
.b10-count { margin: 0; text-align: center; color: #7a6a5a; font-size: 13px; }
.b10-big { font-size: 72px; text-align: center; padding-top: 26px; grid-column: 1 / -1; }
.b10-card > .b10-title, .b10-card > .b10-sub, .b10-card > .b10-acts { grid-column: 1 / -1; text-align: center; padding: 0 24px; }
.b10-card > .b10-acts { padding-bottom: 24px; }
.b10-card > .b10-sub { color: #5b4636; }
.b10-conf { position: fixed; left: 50%; top: 45%; width: 10px; height: 14px; border-radius: 2px; z-index: 1102; pointer-events: none; animation: b10conf 1.3s cubic-bezier(.15, .7, .4, 1) forwards; }
@keyframes b10conf { from { transform: translate(-50%, -50%) rotate(0); opacity: 1; } to { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y) + 160px)) rotate(var(--r)); opacity: 0; } }
@media (max-width: 700px) {
  .b10-card { grid-template-columns: minmax(0, 1fr); border-radius: 18px; }
  .b10-fig { min-height: 0; padding: 12px 12px 0; }
  .b10-fig > img { max-height: 38vh; }
  .b10-ptag { min-width: 80px; padding: 8px 12px 10px; }
  .b10-ptag b { font-size: 32px; }
  .b10-body { padding: 14px 14px 14px; gap: 8px; }
  .b10-acts > * { font-size: 15px; min-height: 48px; }
}

/* ---- "הצד שלי" ------------------------------------------------------------------------------ */
.b10-pile { margin: 22px auto 0; max-width: 900px; background: var(--card, #fff); border-radius: 18px; padding: 14px 16px; box-shadow: 0 0 0 1px var(--line, #ead6c6); }
.b10-ph { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.b10-ph h2 { margin: 0; font-size: 20px; }
.b10-pnote { margin: 4px 0 10px; color: var(--muted, #6b5b4b); font-size: 13px; }
.b10-plist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.b10-plist li { position: relative; }
.b10-plist a { display: grid; gap: 4px; text-decoration: none; color: inherit; background: var(--bg, #fff); border-radius: 12px; padding: 6px; box-shadow: 0 0 0 1px var(--line, #ead6c6); }
.b10-plist img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; transform: rotate(-2deg); }
.b10-plist li:nth-child(even) img { transform: rotate(2deg); }
.b10-pt { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b10-plist b { color: #c0263f; }
.b10-plist li.gone { opacity: .55; }
.b10-prm { position: absolute; top: -6px; left: -6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: #2b1608; color: #fff; cursor: pointer; }

/* ---- the home page's button (Site.headStack row) ---------------------------------------------- */
.hstack > .b10-fab { background: radial-gradient(circle at 50% 30%, #ffe9b8, #f0b860 60%, #c9782c); color: #5e1636; text-decoration: none; box-shadow: 0 0 0 2px #c0263f, 0 6px 16px rgba(0, 0, 0, .32); }
.hstack > .b10-fab > .b10 { width: 52px; height: 46px; flex: none; }
.hstack > .b10-fab .b10-svg { width: 52px; height: 46px; }
@media (max-width: 760px) { .hstack > .b10-fab > .b10, .hstack > .b10-fab .b10-svg { width: 44px; height: 40px; } }

/* ---- the /basket page -------------------------------------------------------------------------- */
.bp { padding-bottom: 30px; }
.bp-hero { text-align: center; margin: 10px auto 0; max-width: 760px; }
.bp-hero h1 { margin: 6px 0 2px; font: 400 clamp(30px, 6vw, 52px)/1.05 'Secular One', Rubik, sans-serif; color: #c0263f; text-shadow: 0 3px 0 #ffe08a; }
.bp-hero p { margin: 4px auto 0; color: var(--muted, #6b5b4b); max-width: 560px; }
.bp-stage { position: relative; max-width: 560px; margin: -40px auto 0; }
.bp-stage::before { content: ''; position: absolute; inset: 8% 4% 4%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 211, 107, .55), rgba(255, 211, 107, 0) 65%); animation: b10pulse 2.4s ease-in-out infinite; }
@keyframes b10pulse { 0%, 100% { transform: scale(.94); opacity: .7; } 50% { transform: scale(1.04); opacity: 1; } }
.bp-btn { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 30px; }
.bp-btn:focus-visible { outline: 4px solid var(--focus, #b8336a); outline-offset: 4px; }
.bp-btn:hover .b10-svg { transform: scale(1.02); }
.bp-btn .b10-svg { transition: transform .2s; }
.bp-call { position: relative; display: block; margin: 0 auto; width: fit-content; padding: 12px 26px; border-radius: 999px; font: 700 20px Rubik, sans-serif;
  background: linear-gradient(180deg, #fff1b8, #f2c14e 55%, #d99a2b); color: #3a1d00; box-shadow: 0 0 0 2px #9b1544, 0 6px 16px rgba(155, 21, 68, .25); animation: b10call 1.6s ease-in-out infinite; }
.bp-count { text-align: center; margin: 10px 0 0; color: var(--muted, #6b5b4b); font-size: 14px; min-height: 1.4em; }
.bp-how { max-width: 900px; margin: 26px auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; padding: 0; list-style: none; }
.bp-how li { background: var(--card, #fff); border-radius: 14px; padding: 12px 14px; box-shadow: 0 0 0 1px var(--line, #ead6c6); font-size: 14px; }
.bp-how b { display: block; font-size: 16px; margin-bottom: 2px; }

/* still: nothing moves */
@media (prefers-reduced-motion: reduce) {
  .b10 *, .b10-back *, .bp-call, .bp-stage::before { animation: none !important; transition: none !important; }
}
html.a11y-still :is(.b10 *, .b10-back *, .bp-call), html.a11y-still .bp-stage::before { animation: none !important; transition: none !important; }
