/* דוליטל – עיצוב משותף לעמוד המועדון (club.html) ולפאנל הניהול (admin.html). אותם צבעים וגופנים כמו באתר. */
@font-face { font-family: "Frank Ruhl Libre"; src: url("fonts/FrankRuhlLibre.woff") format("woff"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Assistant"; src: url("fonts/Assistant.woff") format("woff"); font-weight: 200 800; font-display: swap; }
:root {
  --paper: #FFFAF4; --linen: #F7EDE1; --hunter: #6B3A1B; --hunter-2: #552C13; --brass: #D6A473; --brass-ink: #87552A;
  --oxblood: #A0441A; --ink: #2B1D14; --muted: #6A5A4D; --rule: #ECDDCB; --sage-lite: #F4E6D4; --ok: #2F6B45; --warn: #8A5A12;
  --serif: "Frank Ruhl Libre", "Times New Roman", serif; --sans: "Assistant", "Arial Hebrew", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 2px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 16px; top: -80px; z-index: 99; background: var(--hunter); color: var(--paper); padding: 10px 16px; }
.skip:focus { top: 12px; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: clamp(16px, 3vw, 40px); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid var(--hunter); cursor: pointer; transition: background-color .15s, color .15s; background: transparent; color: var(--hunter); }
.btn:hover { background: var(--linen); }
.btn-solid { background: var(--hunter); color: var(--paper); }
.btn-solid:hover { background: var(--hunter-2); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 15px; }
.btn-wa { background: #1E6B45; border-color: #1E6B45; color: #fff; }
.btn-wa:hover { background: #185a3a; }
.btn-danger { color: var(--oxblood); border-color: var(--oxblood); }
.btn-danger:hover { background: #F6E9E9; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; cursor: pointer; font-weight: 600; color: var(--hunter); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 4px; }
.link:hover { text-decoration-color: var(--hunter); }

.fld { display: grid; gap: 4px; margin-bottom: 14px; min-width: 0; }
.fld > label, .fld legend, .lbl { font-size: 15px; font-weight: 600; }
.fld input:not([type=radio]):not([type=checkbox]), .fld textarea, .fld select { width: 100%; min-height: 46px; padding: 9px 12px; border: 1px solid #CDB79E; background: #fff; font-size: 16px; border-radius: 0; }
.fld textarea { min-height: 80px; resize: vertical; }
.fld input:focus, .fld textarea:focus, .fld select:focus { border-color: var(--hunter); outline: none; box-shadow: inset 0 0 0 1px var(--hunter); }
.fld input[aria-invalid="true"] { border-color: var(--oxblood); box-shadow: inset 0 0 0 1px var(--oxblood); }
.fld small, .hint { font-size: 14px; color: var(--muted); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.seg label { flex: 1 1 0; min-width: max-content; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid #CDB79E; background: #fff; cursor: pointer; font-size: 15px; font-weight: 600; }
.seg input { accent-color: var(--hunter); margin: 0; }
.seg label:has(input:checked) { background: var(--hunter); border-color: var(--hunter); color: var(--paper); }
.seg.sizes label { flex-direction: column; gap: 0; padding: 6px 8px; line-height: 1.2; text-align: center; }
.seg.sizes label input { position: absolute; opacity: 0; }
.seg.sizes small { font-size: 12.5px; font-weight: 400; opacity: .85; }
.seg label { position: relative; }
.seg label:has(input:focus-visible) { outline: 2px solid var(--oxblood); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--hunter); flex: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.err { color: var(--oxblood); font-weight: 600; font-size: 15px; }
.err:empty { display: none; }
.note { background: var(--linen); border-inline-start: 3px solid var(--brass); padding: 12px 16px; font-size: 15px; }

/* header */
.top { background: var(--paper); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 40; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 50px; }
.brand span { display: grid; line-height: 1.15; }
.brand b { font-family: var(--serif); font-weight: 500; font-size: 22px; }
.brand small { font-size: 14px; color: var(--muted); }
.top-act { display: flex; align-items: center; gap: 4px; }
.act { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; background: none; border: 0; cursor: pointer; text-decoration: none; font-size: 15px; font-weight: 600; color: var(--hunter); }
.act:hover { background: var(--linen); }
.count { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--oxblood); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; line-height: 1; }

.toast { position: fixed; z-index: 80; bottom: 24px; left: 50%; translate: -50% 8px; width: max-content; max-width: 90vw; text-align: center; background: var(--hunter); color: var(--paper); padding: 11px 20px; font-size: 15px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, translate .2s; }
.toast.on { opacity: 1; translate: -50% 0; }

/* product cards (same look as the store) */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 24px 18px; }
.card { display: flex; flex-direction: column; min-width: 0; }
.card-img { position: relative; aspect-ratio: 1; background: var(--linen); display: grid; place-items: center; overflow: hidden; margin-bottom: 12px; }
.card-img img.pimg { width: 100%; height: 100%; object-fit: cover; }
.card-img .mark { width: 34%; opacity: .16; }
.card .cat { font-size: 13px; color: var(--brass-ink); font-weight: 600; }
.card h3 { font-family: var(--sans); font-size: 16px; font-weight: 600; line-height: 1.35; margin-top: 2px; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 4px; }
.card .size { font-size: 14px; color: var(--muted); }
.why { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.why span { font-size: 12.5px; font-weight: 600; color: var(--hunter); background: var(--sage-lite); padding: 1px 8px; }
.card-f { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-family: var(--serif); font-size: 20px; color: var(--oxblood); }
.price.ask { font-family: var(--sans); font-size: 14px; color: var(--muted); }
.add { min-height: 40px; padding: 0 14px; border: 1px solid var(--hunter); background: var(--hunter); color: var(--paper); font-size: 15px; font-weight: 600; cursor: pointer; }
.add:hover { background: var(--hunter-2); }

.foot { margin-top: 72px; background: var(--hunter); color: #F3E6D6; font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px; }
.foot a { color: inherit; }
.foot :focus-visible { outline: 3px solid #F6D9B5; outline-offset: 3px; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .row2 { grid-template-columns: 1fr; }
  .brand img { width: 42px; }
  .brand b { font-size: 20px; }
  .brand small { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .card-f { flex-direction: column; align-items: stretch; }
  .add { width: 100%; }
}
