/* Elyashop — עיצוב חם וביתי */
:root {
    --bg: #FBF7F0;
    --card: #FFFFFF;
    --line: #EDE4D6;
    --line-strong: #D9CDB8;
    --sand: #F3E9D8;
    --ink: #24323A;
    --ink-strong: #1F2B31;
    --muted: #5B6A71;
    --muted-2: #4A5A62;
    --green: #2E6B4A;
    --green-dark: #1F4D35;
    --green-soft: #E6F0E9;
    --honey: #E8A33D;
    --radius: 20px;
    --wrap: 1200px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Assistant', system-ui, sans-serif; font-size: 17px; line-height: 1.6; }
h1, h2, h3, .display { font-family: 'Rubik', 'Assistant', sans-serif; color: var(--ink-strong); line-height: 1.2; }
h1 { font-size: clamp(32px, 5vw, 52px); margin: 0 0 16px; }
h2 { font-size: clamp(26px, 3.2vw, 34px); margin: 0 0 20px; }
h3 { font-size: 20px; margin: 0 0 8px; }
p { margin: 0 0 12px; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; top: -60px; right: 12px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; }

/* כפתורים */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 26px; border-radius: 12px; border: 1px solid transparent; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer; transition: background .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #111a1f; color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--sand); color: var(--ink); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.pill { display: inline-block; background: var(--sand); color: #7A5A1E; padding: 4px 14px; border-radius: 20px; font-weight: 700; font-size: 15px; }
.pill-green { background: var(--green-soft); color: var(--green-dark); }

/* פס הודעה וכותרת */
.announce { background: var(--green); color: #fff; text-align: center; padding: 8px 16px; font-size: 15px; font-weight: 600; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header-row { display: flex; align-items: center; gap: 24px; padding: 12px 24px; max-width: var(--wrap); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand span { font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 24px; }
.main-nav { display: flex; gap: 22px; flex: 1; font-weight: 600; }
.main-nav a { color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--green); border-bottom-color: var(--green); }
.header-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--ink); text-decoration: none; }
.icon-btn.solid { background: var(--green); border-color: var(--green); color: #fff; }
.cart-badge { position: absolute; top: -4px; left: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--honey); color: var(--ink); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.cart-badge[data-count="0"] { display: none; }
.menu-btn { display: none; }
@media (max-width: 860px) {
    .menu-btn { display: grid; }
    .main-nav { display: none; position: absolute; top: 100%; right: 0; left: 0; background: #fff; flex-direction: column; gap: 0; padding: 8px 24px 16px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(60,45,20,.08); }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
    .header-row { gap: 12px; }
    .brand { margin-left: auto; }
}

/* גיבור */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding: 56px 0 40px; }
.hero-text { flex: 1 1 440px; min-width: 0; }
.hero-text .lead { font-size: 20px; color: var(--muted-2); max-width: 520px; margin-bottom: 28px; }
.hero-media { flex: 1 1 400px; min-width: 0; position: relative; }
.hero-media .frame { background: var(--sand); border-radius: 28px; padding: 32px; }
.hero-media img { width: 100%; max-width: 440px; margin: 0 auto; aspect-ratio: 1; object-fit: cover; border-radius: 20px; }
.price-tag { position: absolute; bottom: 20px; right: -8px; background: #fff; border-radius: 16px; padding: 12px 18px; box-shadow: 0 8px 24px rgba(60,45,20,.12); text-decoration: none; color: var(--ink); }
.price-tag b { display: block; color: var(--green); font-size: 20px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* רשתות וכרטיסים */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid-tight { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.trust-item { display: flex; gap: 14px; align-items: center; padding: 18px; }
.trust-icon { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--green-soft); display: grid; place-items: center; color: var(--green); }
.trust-item b { display: block; }
.trust-item span { font-size: 15px; color: var(--muted); }
.cat-card { display: block; overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.cat-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(60,45,20,.08); color: var(--ink); }
.cat-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #fff; }
.cat-card div { padding: 14px 18px; }
.cat-card b { font-family: 'Rubik', sans-serif; font-size: 20px; display: block; }
.cat-card span { color: var(--muted); font-size: 15px; }
.product-card { overflow: hidden; display: flex; flex-direction: column; }
.product-card .img-link { display: block; background: #fff; position: relative; }
.product-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-card .badge { position: absolute; top: 12px; right: 12px; background: var(--honey); color: var(--ink); font-weight: 700; font-size: 13px; padding: 2px 10px; border-radius: 12px; }
.product-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-card .name { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; line-height: 1.35; }
.product-card .note { color: var(--muted); font-size: 15px; }
.product-card .foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; }
.product-card .price { font-weight: 700; font-size: 22px; color: var(--ink-strong); }
.product-card .price small { font-size: 14px; font-weight: 400; color: var(--muted); }
.product-card .btn { min-height: 44px; padding: 8px 16px; font-size: 15px; }
.swatches { display: flex; gap: 6px; margin-top: 2px; }
.swatch-dot { width: 16px; height: 16px; border-radius: 50%; border: 1px solid #b9b0a2; }

/* שבת ושלבים */
.band { background: var(--sand); }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split > * { flex: 1 1 380px; min-width: 0; }
.split img { width: 100%; max-width: 340px; margin: 0 auto; border-radius: 24px; aspect-ratio: 1; object-fit: cover; }
.checklist { margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 18px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/14px no-repeat; }
.white-band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step-num { width: 48px; height: 48px; flex: none; border-radius: 24px; background: var(--honey); color: var(--ink); font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 22px; display: grid; place-items: center; }
.step b { font-size: 19px; display: block; }

/* המלצות ושאלות */
.review { margin: 0; padding: 22px; }
.stars { color: #B47A12; letter-spacing: 2px; }
.review blockquote { margin: 10px 0 14px; }
.review figcaption { font-weight: 700; }
.review figcaption span { font-weight: 400; color: var(--muted); }
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { padding: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 700; font-size: 18px; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--green); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 16px; margin: 0; color: var(--muted-2); }

/* תחתית */
.site-footer { background: var(--ink); color: #E9E4DA; margin-top: 0; }
.site-footer a { color: #E9E4DA; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding: 48px 24px 24px; max-width: var(--wrap); margin: 0 auto; font-size: 15px; }
.footer-grid b { color: #fff; display: block; margin-bottom: 8px; font-size: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-bottom { border-top: 1px solid #3A4A52; text-align: center; padding: 16px; font-size: 14px; }

/* חנות */
.page-head { padding: 32px 0 8px; }
.breadcrumb { font-size: 15px; color: var(--muted); margin: 20px 0; }
.breadcrumb a { color: var(--muted); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.filters a { padding: 8px 18px; border-radius: 20px; background: #fff; border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.filters a[aria-current="page"] { background: var(--green); border-color: var(--green); color: #fff; }

/* עמוד מוצר */
.pdp { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.pdp-media { flex: 1 1 440px; min-width: 0; }
.pdp-media .main { padding: 20px; }
.pdp-media .main img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbs button { width: 80px; height: 80px; padding: 4px; border-radius: 14px; background: #fff; border: 2px solid var(--line); cursor: pointer; }
.thumbs button[aria-pressed="true"] { border-color: var(--green); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.pdp-info { flex: 1 1 420px; min-width: 0; }
.pdp-info h1 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 8px; }
.pdp-price { font-family: 'Rubik', sans-serif; font-size: 40px; font-weight: 700; color: var(--green); margin: 8px 0 20px; }
.opt-label { font-weight: 700; margin-bottom: 8px; }
.opt-group { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.opt { min-height: 52px; min-width: 88px; padding: 8px 16px; border-radius: 12px; border: 2px solid var(--green); background: #fff; color: var(--ink); cursor: pointer; line-height: 1.3; text-align: center; }
.opt small { display: block; font-size: 14px; }
.opt[aria-pressed="true"] { background: var(--green); color: #fff; }
.opt[disabled] { border-color: var(--line-strong); color: var(--muted); cursor: not-allowed; text-decoration: line-through; }
.qty { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; }
.qty button { width: 48px; height: 52px; border: none; background: none; font-size: 22px; cursor: pointer; }
.qty output { min-width: 28px; text-align: center; font-weight: 700; font-size: 18px; }
.buy-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.buy-row .btn { flex: 1; min-width: 180px; min-height: 52px; font-size: 18px; }
.assure { padding: 16px 18px; display: grid; gap: 8px; margin-top: 20px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 56px; }
.info-grid section { padding: 24px; }
.specs { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
.stock-out { color: #B42318; font-weight: 700; }

/* קופה */
.checkout { display: flex; flex-wrap: wrap-reverse; gap: 32px; align-items: flex-start; }
.checkout-form { flex: 999 1 520px; min-width: 0; display: grid; gap: 20px; }
.checkout-form section { padding: 24px; }
.checkout-form h2 { font-size: 21px; margin-bottom: 16px; }
.summary { flex: 1 1 340px; min-width: 0; padding: 24px; position: sticky; top: 90px; }
.fields { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field { display: grid; gap: 4px; font-weight: 600; }
.field.full { grid-column: 1 / -1; }
.field input, .field textarea, .input { padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; font-weight: 400; width: 100%; }
.field input:focus, .field textarea:focus, .input:focus { outline: 2px solid var(--green); border-color: var(--green); }
.field small { font-weight: 400; color: var(--muted); }
.choice { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line-strong); border-radius: 12px; padding: 14px 16px; cursor: pointer; background: #fff; }
.choice:has(input:checked) { border: 2px solid var(--green); background: #F4F9F5; }
.choice input { width: 20px; height: 20px; accent-color: var(--green); flex: none; }
.choice span { flex: 1; }
.choice small { display: block; color: var(--muted); font-size: 15px; }
.pay-note { border: 2px dashed var(--line-strong); border-radius: 14px; padding: 20px; color: var(--muted-2); background: var(--bg); }
.line-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.line-item img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: #fff; border: 1px solid var(--line); }
.line-item .li-body { flex: 1; min-width: 0; }
.line-item .li-body b { display: block; line-height: 1.3; }
.line-item .li-body small { color: var(--muted); }
.mini-qty { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; }
.mini-qty button { width: 30px; height: 30px; border: 1px solid var(--line-strong); background: #fff; border-radius: 8px; cursor: pointer; }
.link-btn { background: none; border: none; color: #B42318; cursor: pointer; font-size: 14px; text-decoration: underline; padding: 4px; }
.totals { display: grid; gap: 6px; padding-top: 14px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 22px; margin-top: 6px; }
.coupon-row { display: flex; gap: 8px; margin: 16px 0; }
.coupon-row input { flex: 1; }
.msg-ok { color: var(--green-dark); }
.msg-err { color: #B42318; }
.form-error { color: #B42318; font-weight: 700; min-height: 1.4em; }
.success { text-align: center; padding: 40px 24px; max-width: 640px; margin: 40px auto; }
.success .check { width: 72px; height: 72px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin: 0 auto 16px; }
.empty { text-align: center; padding: 48px 24px; }

/* עמודי מדיניות */
.prose { max-width: 780px; padding: 32px; margin: 0 auto 64px; }
.prose p { white-space: pre-line; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px; z-index: 100; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; display: flex; gap: 12px; align-items: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.toast a { color: var(--honey); font-weight: 700; }
.skeleton { background: linear-gradient(90deg, #f3ece0 25%, #faf5ec 50%, #f3ece0 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); min-height: 360px; }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media (max-width: 600px) {
    .section { padding: 44px 0; }
    .grid-tight { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .trust-item { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; }
    .hero-media .frame { padding: 20px; }
    .grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
    .hero { padding-top: 32px; gap: 28px; }
    .price-tag { right: 8px; }
    .summary { position: static; }
}
