/* שכבת עיצוב אחרונה: כותרת וניווט מודרניים, מגירת סל, התאמה למובייל. נטענת אחרי site.css ו-shop.css */

/* ===== קישורים ===== */
a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
.policy a, .lead a, .story-end a, .muted a, .notice a { font-weight: 500; }

/* ===== כותרת ===== */
.site-header { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid rgba(0, 0, 0, .06); }
.header-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem; min-height: 5rem; }
.brand img { height: 56px; }
.site-nav { justify-self: center; }
.nav-list { display: flex; gap: .25rem; flex-wrap: nowrap; align-items: center; }
.nav-list a {
  position: relative; display: inline-block; padding: .55rem 1rem; border-radius: 999px;
  color: #374151; font-weight: 500; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.nav-list a:hover { background: #f1f4f4; color: var(--brand-dark); text-decoration: none; }
.nav-list a[aria-current="page"] { background: #e6f1f1; color: var(--brand-dark); }
.nav-list .nav-sale { color: var(--sale); font-weight: 700; }
.nav-list .nav-sale:hover, .nav-list .nav-sale[aria-current="page"] { background: #fdecea; color: var(--sale); }

.header-actions { display: flex; align-items: center; gap: .5rem; }
.cart-link, .menu-toggle {
  display: inline-flex; align-items: center; gap: .4rem; margin: 0; padding: .5rem .8rem; border: 1px solid #d6dbdb; border-radius: 999px;
  background: #fff; color: var(--ink); text-decoration: none; cursor: pointer; font: inherit; transition: border-color .2s, background-color .2s;
}
.cart-link:hover, .menu-toggle:hover { border-color: var(--brand); background: #f4fafa; color: var(--brand-dark); text-decoration: none; }
.cart-count { background: var(--brand); color: #fff; font-size: .78rem; font-weight: 600; min-width: 1.35rem; height: 1.35rem; border-radius: 999px; display: inline-grid; place-items: center; padding-inline: .3rem; }
.menu-toggle { display: none; padding: .5rem .65rem; }

/* ===== כפתורים ===== */
.btn { box-shadow: 0 1px 2px rgba(0, 0, 0, .12); transition: background-color .2s, box-shadow .2s, transform .1s; }
.btn:hover { box-shadow: 0 4px 12px rgba(31, 122, 122, .3); text-decoration: none; }
.btn:active { transform: translateY(1px); }

/* ===== מגירת סל (נפתחת משמאל) ===== */
.drawer-overlay { position: fixed; inset: 0; background: rgba(17, 24, 39, .45); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; z-index: 80; }
.drawer-overlay.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 90; width: min(420px, 100vw); display: flex; flex-direction: column;
  background: #fff; box-shadow: 8px 0 30px rgba(0, 0, 0, .2); transform: translateX(-102%); visibility: hidden;
  transition: transform .3s ease, visibility .3s; outline: none;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 1.25rem; font-weight: 500; }
.drawer-close { border: 0; background: #f1f4f4; border-radius: 50%; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.drawer-close:hover { background: #e2e8e8; }
.drawer-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; padding: 0 1.25rem 1.25rem; }
.drawer-note { background: #e8f5ee; border: 1px solid #b7dcc6; color: #14532d; border-radius: 10px; padding: .6rem .9rem; margin: 1rem 0 0; font-size: .95rem; }
.drawer-empty { text-align: center; padding-block: 3rem; }
.drawer-lines { flex: 1; }
.drawer-line { display: grid; grid-template-columns: 72px 1fr auto; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.drawer-thumb { display: block; width: 72px; height: 72px; background: var(--cream); border-radius: 10px; overflow: hidden; }
.drawer-thumb img { width: 100%; height: 100%; object-fit: cover; }
.drawer-name { color: var(--ink); font-weight: 500; text-decoration: none; line-height: 1.35; display: inline-block; }
.drawer-name:hover { text-decoration: underline; }
.drawer-meta { margin: .15rem 0 .3rem; color: var(--muted); font-size: .92rem; }
.drawer-info form { margin: 0; }
.drawer-price { margin: 0; font-weight: 600; }
.drawer-foot { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: auto; }
.drawer-foot .btn-block { margin-top: .6rem; }
.drawer-foot .totals-list { margin: .75rem 0 .25rem; }
body.drawer-locked { overflow: hidden; }

/* ===== התאמה לטלפון ===== */
@media (max-width: 1100px) {
  .header-row { grid-template-columns: 1fr auto; gap: .5rem 1rem; min-height: 4.25rem; }
  .brand img { height: 44px; }
  .menu-toggle { display: inline-flex; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; padding-bottom: .75rem; }
  .nav-list { flex-direction: column; align-items: stretch; gap: .15rem; }
  .nav-list a { display: block; padding: .8rem 1rem; border-radius: 12px; font-size: 1.05rem; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .container { width: min(1180px, 100% - 2rem); }
  .section { padding-block: 2.5rem; }
  .hero { min-height: 520px; }
  .hero-content { padding-block: 2.5rem; }
  .hero-content h1 { font-size: 2.25rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
  .rooms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
  .room-img { width: min(150px, 38vw); }
  .room-name { font-size: 1rem; text-align: center; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 1rem .75rem; }
  .grid-2 { grid-template-columns: 1fr; gap: 1.25rem; }
  .card-title { font-size: .95rem; }
  .card-cat { font-size: .8rem; }
  .price { font-size: .95rem; }
  .section-head { align-items: flex-start; margin-bottom: 1.5rem; }
  .page-head { padding-block: 1.75rem; }
  .add-form { display: grid; grid-template-columns: auto 1fr; }
  .add-form .btn { grid-column: 1 / -1; text-align: center; }
  .cart-line { grid-template-columns: 72px 1fr; }
  .cart-thumb { width: 72px; height: 72px; }
  .cart-total { grid-column: 2; }
  .summary { position: static; padding: 1.1rem; }
  .cookie-banner { inset-inline: 0; bottom: 0; border-radius: 16px 16px 0 0; padding: .9rem 1rem; max-width: none; }
  .cookie-banner p { font-size: .88rem; flex-basis: 100%; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; text-align: center; }
  .whatsapp-fab { width: 3.1rem; height: 3.1rem; left: .9rem; bottom: .9rem; }
  .a11y-toggle { width: 3rem; height: 3rem; right: .9rem; bottom: .9rem; }
  .a11y-panel { right: .9rem; bottom: 4.5rem; }
  .drawer { width: 100vw; }
  .footer-grid { gap: 1.75rem; }
}

/* כפתור השהיית הווידאו רלוונטי רק כשהווידאו נטען (מסך רחב) */
@media (max-width: 899px) { .hero-toggle { display: none; } }

/* סינון בטלפון: שורה אחת שנגללת לצדדים, במקום כמה שורות */
@media (max-width: 600px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .5rem; margin-inline: -1rem; padding-inline: 1rem; scrollbar-width: thin; }
  .chips li { flex: 0 0 auto; }
  .gallery .thumbs { grid-template-columns: repeat(4, 1fr); }
}

/* ===== קולקציות בעיגולים (כמו באתר הקודם) ===== */
.rooms { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem 4rem; }
.room-img {
  width: clamp(140px, 16vw, 192px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--cream); border: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
  outline: 4px solid color-mix(in srgb, var(--room-color, #d9d2c5) 45%, transparent); outline-offset: 6px;
  transition: transform .4s, box-shadow .4s;
}
.room-img img { transition: transform .5s; }
.room-circle:hover .room-img { transform: scale(1.05); box-shadow: 0 14px 30px rgba(0, 0, 0, .22); }
.room-circle:hover .room-img img { transform: scale(1.1); }
.room-name { color: #374151; font-weight: 500; letter-spacing: .02em; }

/* ===== עמוד "המוצרים שלנו" ===== */
.collections-head { background: linear-gradient(180deg, #fdf8f3 0%, #f5efe6 100%); padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); text-align: center; }
.collections-head h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 300; margin-bottom: .25em; }
.head-rule { width: 4rem; height: 2px; background: #b89a7a; margin: .5rem auto 1rem; }
.collections-sub { font-size: 1.15rem; margin-bottom: 3rem; }
.filters-center { margin-top: 2.5rem; margin-bottom: 0; }
.chips-center { justify-content: center; }
.chips a { font-weight: 500; transition: border-color .2s, color .2s, background-color .2s; }
.chips a:hover { color: var(--brand-dark); }
.chip-clear { color: var(--muted) !important; border-color: var(--line) !important; }

.room-section { scroll-margin-top: 5rem; }
.room-hero { position: relative; min-height: clamp(300px, 52vh, 560px); display: grid; align-items: end; background: color-mix(in srgb, var(--room-color) 30%, #fff); overflow: hidden; }
.room-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.room-hero-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.08), rgba(0,0,0,0) 40%, rgba(0,0,0,.62)); }
.room-hero-text { position: relative; color: #fff; padding-block: 2.5rem; }
.room-hero-text h2 { font-size: clamp(2rem, 5vw, 3.75rem); font-weight: 300; margin: .25rem 0 .4rem; }
.room-hero-text p { max-width: 62ch; font-size: 1.1rem; color: rgba(255, 255, 255, .92); margin: 0; }
.room-bar { width: 3rem; height: 4px; border-radius: 4px; background: var(--room-color); }
.room-products { padding-block: clamp(2.5rem, 5vw, 4rem); background: color-mix(in srgb, var(--room-color) 9%, #fff); }
.room-products .card-media { background: #fff; }

/* ===== כרטיס מוצר עם הוספה מהירה לסל ===== */
.card-buy { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.card-buy .price { margin: 0; }
.add-quick { display: block; margin: 0; }
.quick-add {
  width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 0; background: var(--brand); color: #fff; cursor: pointer; flex-shrink: 0;
  display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: background-color .2s, transform .15s;
}
.quick-add:hover { background: var(--brand-dark); transform: scale(1.08); }
.quick-add:disabled { opacity: .6; cursor: progress; }
html.a11y-contrast .room-products, html.a11y-contrast .collections-head { background: #000 !important; }
html.a11y-contrast .quick-add { background: #ffeb3b !important; color: #000 !important; }

@media (max-width: 600px) {
  .rooms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .room-img { width: min(140px, 36vw); }
  .collections-sub { margin-bottom: 2rem; }
  .room-hero { min-height: 280px; }
  .card-buy { gap: .35rem; }
  .quick-add { width: 2.25rem; height: 2.25rem; }
}

/* קריאות הטקסט על תמונת החדר */
.room-hero-shade { background: linear-gradient(to bottom, rgba(0,0,0,.12), rgba(0,0,0,.18) 30%, rgba(0,0,0,.72)); }
.room-hero-text p { text-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
.room-hero-text h2 { text-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
@media (max-width: 600px) {
  .room-hero { min-height: 300px; }
  .room-hero-text { padding-block: 1.5rem; }
  .room-hero-text h2 { font-size: 2rem; }
  .room-hero-text p { font-size: .98rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ===== SALE: אדום בקישור ובעמוד ===== */
:root { --sale-red: #d92d20; }
.nav-list .nav-sale, .nav-list .nav-sale:visited { color: var(--sale-red); font-weight: 700; letter-spacing: .02em; }
.nav-list .nav-sale:hover, .nav-list .nav-sale[aria-current="page"] { background: #fdeceb; color: #b42318; }
.site-footer .footer-sale { color: #ff8a80; font-weight: 700; }
.sale-head { background: #fdeceb; }
.sale-head h1 { color: var(--sale-red); font-weight: 700; letter-spacing: .08em; margin-bottom: .1em; }
.sale-sub { margin: 0; color: #7a271a; }
html.a11y-contrast .sale-head { background: #000 !important; }
html.a11y-contrast .nav-list .nav-sale, html.a11y-contrast .sale-head h1 { color: #ff8a80 !important; }

/* כרטיסים באותו גובה: שורת המחיר והכפתור תמיד בתחתית, גם כשהשם ארוך */
.grid-4 > li { display: flex; }
.grid-4 > li > .card { display: flex; flex-direction: column; width: 100%; }
.grid-4 .card-buy { margin-top: auto; }

/* ===== מארזי לידה ===== */
.birth-head { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.birth-head h1 { font-size: clamp(2.2rem, 5.5vw, 3.5rem); line-height: 1.15; margin-bottom: .3em; }
.birth-head h1 span { display: block; font-weight: 500; color: var(--brand); }
.lead-center { margin-inline: auto; max-width: 62ch; }
.birth-grid { max-width: 920px; margin-inline: auto; margin-bottom: 2.5rem; }
.narrow-wide { max-width: 980px; }

.features { display: grid; gap: 1.5rem; margin: 3rem 0; }
@media (min-width: 760px) { .features { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.features li { background: #fff; border-radius: 16px; padding: 2rem 1.5rem; text-align: center; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.features h3 { font-size: 1.15rem; margin: .75rem 0 .4rem; }
.features p { color: var(--muted); font-size: .97rem; margin: 0; }
.feature-icon { width: 3.5rem; height: 3.5rem; margin-inline: auto; border-radius: 50%; display: grid; place-items: center; background: #e6f1f1; color: var(--brand); }

.cta-box { background: var(--brand); color: #fff; border-radius: 18px; padding: clamp(1.75rem, 5vw, 3rem); text-align: center; }
.cta-box h3 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 300; margin-bottom: .6rem; }
.cta-box p { max-width: 56ch; margin: 0 auto 1.5rem; font-size: 1.05rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-white { background: #fff; color: var(--brand-dark); border-color: #fff; }
.btn-white:hover { background: #f1f4f4; color: var(--brand-dark); border-color: #f1f4f4; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }
.btn-white-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-white-outline:hover { background: #fff; color: var(--brand-dark); border-color: #fff; }
html.a11y-contrast .cta-box { background: #000 !important; border: 2px solid #ffeb3b; }
html.a11y-contrast .features li { background: #000 !important; border: 1px solid #fff; }
html.a11y-contrast .btn-white, html.a11y-contrast .btn-white-outline { background: #ffeb3b !important; color: #000 !important; border-color: #ffeb3b !important; }

/* חיווי טעינה במגירה */
.drawer-loading { display: flex; align-items: center; gap: .75rem; padding: 2rem 0; color: var(--muted); font-size: 1.05rem; }
.spinner { width: 1.4rem; height: 1.4rem; border: 3px solid #d6dbdb; border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
