/* RTM WATCHES — עברית, RTL. הכותרת נשארת בפריסה משמאל לימין כדי שהשעון יישב בפינה השמאלית. */
:root {
  --bg: #070707;
  --bg-head: #030303;
  --text: #f4f2ed;
  --muted: #a3a3a3;
  --rule: #262626;
  --gold: #d2ac62;
  --ice: #d6ebff;

  --he: 'Heebo', system-ui, sans-serif;
  --lux: 'Bodoni Moda', Georgia, serif;

  --hdr-h: 124px;
  --nav-h: 58px;
  --pad-x: 29px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 520px at 50% -120px, rgba(255,255,255,.07), transparent 70%),
    radial-gradient(900px 600px at 50% 120%, rgba(210,172,98,.05), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--he);
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }

/* ---------- כותרת ---------- */
.hdr {
  direction: ltr;
  position: relative;
  height: var(--hdr-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: linear-gradient(180deg, #000 0%, var(--bg-head) 100%);
  border-bottom: 1px solid var(--rule);
  z-index: 10;
}
.hdr::after { /* פס אור דק שזז לאורך הקו התחתון */
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent) no-repeat;
  background-size: 30% 100%;
  animation: sweep 9s ease-in-out infinite;
}
@keyframes sweep { 0% { background-position: -40% 0; } 60%, 100% { background-position: 140% 0; } }

.hdr-left, .hdr-right { display: flex; align-items: center; height: 100%; min-width: 0; overflow: hidden; }
.hdr-right { justify-content: flex-end; padding-right: 26px; }
.live-dial { flex: none; width: 110px; height: 110px; margin-left: 22px; border-radius: 50%;
  box-shadow: 0 6px 22px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.06), 0 0 28px rgba(255,255,255,.06); }
.live-dial svg { display: block; width: 100%; height: 100%; }
.vrule { width: 1px; height: 70px; background: linear-gradient(180deg, transparent, #4a4a4a, transparent); flex: none; }
.hdr-left .vrule { margin-left: 30px; }
.clock { display: flex; flex-direction: column; padding-left: 26px; white-space: nowrap; direction: rtl; align-items: flex-start; }
.clock-time { font-family: var(--lux); font-weight: 500; font-size: 42px; line-height: 1; letter-spacing: .02em; }
.clock-date { margin-top: 8px; font-size: 15px; font-weight: 400; color: #d3d1cc; letter-spacing: .02em; }

.logo { display: grid; place-items: center; padding: 0 12px; height: 100%; }
.logo-img { height: 116px; width: auto; mix-blend-mode: screen; image-rendering: auto; }
.logo-text { display: flex; flex-direction: column; align-items: center; }
.logo-main {
  font-family: var(--lux); font-weight: 600; font-size: 64px; line-height: .85; letter-spacing: .04em;
  background: linear-gradient(180deg, #ffffff 0%, #c9ccd0 45%, #6e7378 55%, #f2f3f4 80%, #9ea3a8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo-sub { margin-top: 6px; font-family: var(--lux); font-size: 13px; letter-spacing: .5em; margin-right: -.5em; color: #d9d9d9; }

/* פס יתרונות מתחלף */
.perks { position: relative; flex: 1; height: 28px; margin: 0 28px; overflow: hidden; }
.perk {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 15px; font-weight: 500; letter-spacing: .04em; color: #e8e5de; white-space: nowrap;
  opacity: 0; transform: translateY(100%); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1);
}
.perk::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.perk.on { opacity: 1; transform: none; }
.perk.out { opacity: 0; transform: translateY(-100%); }

.icon-btn {
  position: relative; display: grid; place-items: center;
  min-width: 44px; min-height: 44px; color: var(--text);
  transition: opacity .2s, transform .2s;
}
.icon-btn:hover { opacity: .8; transform: translateY(-1px); }
.hdr-right .vrule { margin: 0 18px; height: 52px; }
.badge {
  position: absolute; top: 3px; right: -2px;
  min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 9px; background: var(--text); color: #000;
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}

/* ---------- ניווט קולקציות ---------- */
.cats {
  position: relative; z-index: 10;
  height: var(--nav-h);
  background: var(--bg-head);
  border-bottom: 1px solid var(--rule);
}
.cats-list { height: 100%; display: grid; grid-template-columns: repeat(5, 1fr); }
.cat-item { position: relative; height: 100%; }
.cat-item + .cat-item::before { /* מפריד דק */
  content: ''; position: absolute; right: 0; top: 30%; bottom: 30%; width: 1px; background: #262626;
}
.cat {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 100%;
  font-family: var(--he); font-weight: 500; font-size: 19px; letter-spacing: .01em; white-space: nowrap;
  color: #e9e7e2;
  transition: color .25s, background .35s;
}
.cat::after {
  content: ''; position: absolute; left: 50%; bottom: 0;
  width: 0; height: 2px; background: currentColor;
  transform: translateX(-50%); transition: width .35s ease;
}
.cat:hover { color: #fff; background: rgba(255,255,255,.03); }
.cat:hover::after, .cat[aria-pressed="true"]::after { width: 60%; }
.cat-ico { flex: none; position: relative; z-index: 1; }
.cat span { position: relative; z-index: 1; }

/* קיץ — כל המשבצת: שקיעה זהובה */
.cat--summer {
  color: #fff8ea; font-weight: 600;
  background:
    radial-gradient(120px 90px at 85% 15%, rgba(255,226,150,.55), transparent 70%),
    linear-gradient(115deg, #2a1405 0%, #6b3a0f 38%, #b8762a 72%, #e7b866 100%);
  text-shadow: 0 1px 8px rgba(80,30,0,.6);
}
.cat--summer::before { /* ניצוצות זהב קטנים שעולים לאט, כמו אבק באור שמש */
  content: ''; position: absolute; inset: 0 0 -100% 0;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 20%, rgba(255,236,180,.95), transparent),
    radial-gradient(1.2px 1.2px at 33% 70%, rgba(255,220,150,.85), transparent),
    radial-gradient(2px 2px at 58% 35%, rgba(255,244,200,.9), transparent),
    radial-gradient(1.2px 1.2px at 78% 80%, rgba(255,214,140,.8), transparent),
    radial-gradient(1.6px 1.6px at 92% 45%, rgba(255,238,190,.9), transparent);
  background-size: 100% 50%;
  animation: motes 9s linear infinite;
}
@keyframes motes {
  0% { transform: translate(0, 0); }
  50% { transform: translate(6px, -25%); }
  100% { transform: translate(0, -50%); }
}
.cat--summer > span::after { /* הבהוב חום עדין */
  content: ''; position: absolute; inset: -40px -60px; pointer-events: none; z-index: -1;
  background: radial-gradient(closest-side, rgba(255,215,140,.35), transparent);
  animation: warm 4.5s ease-in-out infinite alternate;
}
@keyframes warm { from { opacity: .35; transform: scale(.9); } to { opacity: .85; transform: scale(1.08); } }
.cat--summer::after { background: #ffe3a3; }
.cat--summer:hover { background:
    radial-gradient(140px 100px at 85% 15%, rgba(255,232,165,.7), transparent 70%),
    linear-gradient(115deg, #321806 0%, #7a4412 38%, #c9842f 72%, #f0c472 100%); }

/* חורף — כל המשבצת: קרח וכפור */
.cat--winter {
  color: #fff; font-weight: 600;
  background:
    radial-gradient(1.4px 1.4px at 12% 28%, #fff, transparent),
    radial-gradient(1px 1px at 30% 70%, rgba(255,255,255,.9), transparent),
    radial-gradient(1.6px 1.6px at 55% 22%, #fff, transparent),
    radial-gradient(1px 1px at 72% 62%, rgba(255,255,255,.85), transparent),
    radial-gradient(1.3px 1.3px at 90% 35%, #fff, transparent),
    radial-gradient(180px 80px at 20% 110%, rgba(200,230,255,.45), transparent 70%),
    linear-gradient(115deg, #08121f 0%, #15314f 40%, #3d6f9a 75%, #a9d1f0 100%);
  text-shadow: 0 1px 8px rgba(0,20,50,.7);
}
.cat--winter::before { /* שלג עדין שיורד */
  content: ''; position: absolute; inset: -100% 0 0 0;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 10%, rgba(255,255,255,.9), transparent),
    radial-gradient(1px 1px at 40% 30%, rgba(255,255,255,.8), transparent),
    radial-gradient(1.5px 1.5px at 70% 15%, rgba(255,255,255,.9), transparent),
    radial-gradient(1px 1px at 85% 45%, rgba(255,255,255,.7), transparent),
    radial-gradient(1.2px 1.2px at 25% 60%, rgba(255,255,255,.8), transparent);
  background-size: 100% 50%;
  animation: snow 7s linear infinite;
}
@keyframes snow { to { transform: translateY(50%); } }
.cat--winter::after { background: #eaf6ff; }
.cat--winter:hover { filter: brightness(1.12); }

/* ---------- גריד מוצרים ---------- */
main { position: relative; padding: 18px var(--pad-x) 56px; }
.grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 14px; }
.card {
  display: flex; flex-direction: column; align-items: center;
  padding-bottom: 8px;
  animation: rise .7s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: calc(var(--i) * 60ms);
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.box { position: relative; width: 80%; aspect-ratio: 1 / 1; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.box.dragging { cursor: grabbing; z-index: 3; }
.box-fallback { width: 100%; height: 100%; object-fit: contain;
  -webkit-mask-image: radial-gradient(ellipse 72% 75% at 50% 48%, #000 78%, transparent 100%);
          mask-image: radial-gradient(ellipse 72% 75% at 50% 48%, #000 78%, transparent 100%); }
.has-3d .box-fallback { visibility: hidden; }

/* תאורה צבעונית מתחת לקופסה */
.box::after {
  content: ''; position: absolute; left: 18%; right: 18%; bottom: 5%;
  height: 14px; border-radius: 50%;
  background: rgba(var(--glow), .9);
  filter: blur(14px); opacity: .45;
  transition: opacity .4s ease, transform .4s ease;
  pointer-events: none; z-index: -1;
}
.card[data-accent="silver"] { --glow: 220, 230, 242; }
.card[data-accent="blue"]   { --glow: 150, 195, 255; }
.card[data-accent="gold"]   { --glow: 255, 196, 106; }
.card[data-accent="rose"]   { --glow: 255, 160, 146; }
.card[data-accent="red"]    { --glow: 255, 90, 74; }
.card.is-hover .box::after, .card:hover .box::after { opacity: 1; transform: scaleX(1.15); }
.card { position: relative; }
.card.is-hover { z-index: 4; }   /* הקופסה המסובבת מעל השכנות */

.info { text-align: center; margin-top: 2px; }
.brand { font-family: var(--lux); font-weight: 600; font-size: 17px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.15; }
.model { margin-top: 3px; font-family: var(--he); font-weight: 400; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #bdbbb6; }
.buy { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 10px; }
.price { font-family: var(--lux); font-weight: 500; font-size: 19px; letter-spacing: .02em; }
.mini-cart {
  position: relative; width: 28px; height: 28px;
  display: grid; place-items: center;
  border: 1px solid #5c5c5c; border-radius: 50%;
  color: #e6e4df;
  transition: border-color .2s, background .2s, color .2s, transform .2s;
}
.mini-cart::before { content: ''; position: absolute; inset: -8px; }
.mini-cart:hover { border-color: var(--text); background: var(--text); color: #000; transform: scale(1.06); }
.mini-cart.added { border-color: var(--gold); background: var(--gold); color: #000; }

.empty-grid { grid-column: 1 / -1; padding: 80px 0; text-align: center; color: var(--muted); font-size: 18px; }

/* ---------- קנבס תלת־ממד (אחד לכל קופסה) ---------- */
.box-cv { position: absolute; inset: -20%; width: 140%; height: 140%; pointer-events: none; }

/* ---------- מגירות ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.65); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s; }
.scrim.on { opacity: 1; }
.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 50;   /* ב־RTL המגירה נפתחת משמאל */
  width: min(420px, 92vw);
  display: flex; flex-direction: column;
  background: #0a0a0a;
  border-right: 1px solid var(--rule);
  transform: translateX(-100%);
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.drawer.on { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 28px 18px 20px; border-bottom: 1px solid var(--rule); }
.drawer-head h2 { margin: 0; font-weight: 600; font-size: 22px; }
.close { font-size: 30px; font-weight: 300; line-height: 1; }

.cart-lines { flex: 1; overflow-y: auto; padding: 8px 28px; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid #1a1a1a; }
.line img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; }
.line-info { text-align: right; }
.line-brand { font-family: var(--lux); font-size: 16px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.line-model { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.line-price { margin-top: 6px; font-family: var(--lux); font-size: 16px; }
.qty { display: inline-flex; align-items: center; margin-top: 8px; border: 1px solid #333; border-radius: 999px; }
.qty button { width: 28px; height: 28px; font-size: 14px; border-radius: 50%; }
.qty button:hover { background: rgba(255,255,255,.08); }
.qty span { min-width: 22px; text-align: center; font-size: 13px; }
.remove { align-self: start; font-size: 13px; color: var(--muted); padding: 4px 0; }
.remove:hover { color: var(--text); }
.cart-empty { flex: 1; margin: 0; padding: 48px 28px; text-align: center; color: var(--muted); font-size: 18px; }
.cart-foot { padding: 20px 28px 28px; border-top: 1px solid var(--rule); }
.subtotal { display: flex; justify-content: space-between; font-size: 20px; font-weight: 600; }
.subtotal span:last-child { font-family: var(--lux); }
.cart-note { margin: 12px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }

.menu-list { padding: 12px 0; }
.menu-list button { width: 100%; text-align: right; padding: 16px 28px; font-size: 20px; font-weight: 500; transition: background .2s, color .2s; }
.menu-list button:hover { background: rgba(255,255,255,.04); }
.menu-list button[aria-current="true"] { color: var(--gold); }

/* ---------- רספונסיבי ---------- */
@media (max-width: 1180px) {
  .cat { font-size: 16px; gap: 8px; }
}
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  :root { --pad-x: 16px; }
  .live-dial { width: 84px; height: 84px; margin-left: 14px; }
  .perks { display: none; }
  .hdr-left .vrule { display: none; }
  .clock { padding-left: 8px; }
  .cats { overflow-x: auto; scrollbar-width: none; }
  .cats::-webkit-scrollbar { display: none; }
  .cats-list { display: flex; width: max-content; min-width: 100%; }
  .cat-item { flex: 1 0 auto; }
  .cat { padding: 0 22px; }
}
@media (max-width: 820px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  :root { --hdr-h: 84px; --nav-h: 50px; }
  .live-dial { width: 64px; height: 64px; margin-left: 10px; }
  .clock { display: none; }
  .logo-img { height: 66px; }
  .logo-main { font-size: 40px; }
  .hdr-right { padding-right: 6px; }
  .hdr-right .vrule { margin: 0 4px; height: 34px; }
  .icon-btn svg { transform: scale(.82); }
  .cat { font-size: 15px; padding: 0 16px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand { font-size: 15px; }
  .model { font-size: 11px; }
  .price { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
