/* ═══════════════════════════════════════════════════════════════
   site.css - Shared styles for Sherman Art Works
   Sprint 17 - extracted from all 11 HTML pages
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. TOKENS ───────────────────────────────────────────────── */
:root {
  --bg:      #faf7f2;
  --dark:    #202020;
  --gold:      #d4b572;
  --gold-text: #7d5a00;
  --brown:   #6a5530;
  --border:  #ede5d8;
  --green:   #25d366;
  --ff-body: 'Varela Round', Arial, sans-serif;
  --ff-disp: 'Varela Round', sans-serif;
  --ff-ital: 'Varela Round', sans-serif;
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-lg:   1.125rem;
  --fs-xl:   1.5rem;
  --fs-2xl:  2.25rem;
  --fs-3xl:  3rem;
  --ff-body-he: 'Varela Round', 'Arial Hebrew', sans-serif;
  --ff-disp-he: 'Varela Round', sans-serif;
  --footer-text: #a89678;
}

/* ── 2. RESET ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html   { scroll-behavior: smooth; }
body   { font-family: var(--ff-body); background: var(--bg); color: var(--dark); line-height: 1.6; }
img    { max-width: 100%; display: block; }
a      { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── 3. TOP BAR ──────────────────────────────────────────────── */
.top-bar {
  background: var(--dark);
  color: #d4c5aa;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  padding: 0.45rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.top-bar-group { display: flex; align-items: center; gap: 0.5rem; }
.top-divider   { color: rgba(212,181,114,0.35); }

.toggle-btn {
  background: none;
  border: 1px solid rgba(212,181,114,0.3);
  color: #d4c5aa;
  padding: 0.2rem 0.65rem;
  border-radius: 2px;
  font-size: 0.72rem;
  font-family: var(--ff-body);
  letter-spacing: 0.04em;
  transition: all 0.2s;
}
.toggle-btn.active             { background: var(--gold); color: var(--dark); border-color: var(--gold); font-weight: 500; }
.toggle-btn:hover:not(.active) { border-color: var(--gold); color: var(--gold); }

#rateNote {
  font-size: 0.68rem;
  color: rgba(212,197,170,0.7);
  margin-left: 0.6rem;
}

/* ── 4. NAVIGATION ───────────────────────────────────────────── */
.nav-wrap {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo      { display: flex; align-items: center; gap: 0.75rem; }
.logo-mark {
  height: 42px; width: auto;
  border-radius: 3px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}
.logo-text    { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name    { font-family: var(--ff-disp); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.08em; color: var(--dark); }
.logo-sub     { font-family: var(--ff-ital); font-style: italic; font-size: 0.7rem; color: var(--brown); letter-spacing: 0.03em; }
.nav-links    { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a  { font-family: var(--ff-disp); font-size: 0.68rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--dark); transition: color 0.2s; }
.nav-links a:hover       { color: var(--gold-text); }
.nav-links a.nav-active  { color: var(--gold-text); border-bottom: 1px solid var(--gold); padding-bottom: 2px; }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 0.4rem; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; background: var(--bg); border-top: 1px solid var(--border); padding: 1rem 2rem 1.5rem; }
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; display: flex; flex-direction: column; gap: 0; }
.mobile-nav a {
  font-family: var(--ff-disp); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--dark); display: flex; align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  min-height: 44px;
}
.mobile-nav a:hover { color: var(--gold-text); }

/* ── 5. SHIPPING BANNER ──────────────────────────────────────── */
.shipping-banner {
  background: var(--dark);
  color: var(--gold);
  text-align: center;
  padding: 0.9rem 2rem;
  font-family: var(--ff-disp);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
}

/* ── 6. PAGE HERO (non-homepage pages) ──────────────────────── */
.page-hero { background: var(--dark); padding: 4.5rem 2rem 4rem; text-align: center; }
.page-hero-inner { max-width: 760px; margin: 0 auto; }
.breadcrumb {
  font-family: var(--ff-disp); font-size: 0.6rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--footer-text); margin-bottom: 1rem;
}
.breadcrumb a       { color: var(--footer-text); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep     { color: rgba(212,181,114,0.4); margin: 0 0.5rem; }
.page-headline  {
  font-family: var(--ff-disp);
  font-size: clamp(1.55rem, 5.5vw, 3rem);
  font-weight: 600; line-height: 1.1;
  color: #faf7f2; margin-bottom: 1.25rem;
}
.page-subtitle {
  font-family: var(--ff-ital); font-style: italic;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--footer-text); margin-bottom: 0.5rem;
}
.page-body {
  font-size: 0.95rem; line-height: 1.85;
  color: var(--footer-text); font-weight: 300;
  max-width: 560px; margin: 0 auto;
}

/* ── 7. PRODUCTS SECTION ─────────────────────────────────────── */
.products-section { max-width: 1280px; margin: 0 auto; padding: 4rem 2rem 2rem; }
.products-section:last-of-type { padding-bottom: 4rem; }
.section-sub-header { text-align: center; margin-bottom: 2.5rem; }
.section-sub-tag   { font-family: var(--ff-disp); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 0.5rem; }
.section-sub-title { font-family: var(--ff-disp); font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 600; color: var(--dark); margin-bottom: 0.5rem; }
.section-sub-sub   { font-family: var(--ff-ital); font-style: italic; font-size: 0.98rem; color: var(--brown); max-width: 540px; margin: 0 auto; }

/* ── 8. PRODUCT GRID & CARD ──────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  cursor: pointer;
  position: relative;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(32,32,32,0.1);
  border-color: var(--gold);
}
.product-card-img-wrap {
  width: 100%; aspect-ratio: 4 / 3;
  background: #f5f0e8;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.product-card-img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 0.6rem;
  transition: transform 0.4s;
}
.product-card:hover .product-card-img { transform: scale(1.03); }

.photo-count-badge {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  background: rgba(32,32,32,0.78); color: var(--gold);
  font-family: var(--ff-disp); font-size: 0.6rem; font-weight: 500;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.65rem; border-radius: 12px;
  backdrop-filter: blur(4px);
}
[dir="rtl"] .photo-count-badge { right: auto; left: 0.75rem; }

.product-card-body {
  padding: 1.25rem 1.35rem 1.4rem;
  display: flex; flex-direction: column; gap: 0.75rem; flex: 1;
}
.product-card-name {
  font-family: var(--ff-disp); font-size: 1.05rem;
  letter-spacing: 0.04em; font-weight: 600;
  color: var(--dark); line-height: 1.3;
}
.product-card-desc {
  font-family: var(--ff-ital); font-style: italic;
  font-size: 0.88rem; color: var(--brown);
  line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-meta {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 0.75rem; margin-top: auto; padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.product-card-price {
  font-family: var(--ff-disp); font-size: 1.05rem; font-weight: 600;
  color: var(--dark);
}
.product-card-price-alt { font-size: 0.74rem; color: var(--brown); font-weight: 400; margin-left: 0.3rem; }
[dir="rtl"] .product-card-price-alt { margin-left: 0; margin-right: 0.3rem; }
.product-card-measurements { font-size: 0.78rem; color: var(--brown); white-space: nowrap; }

.product-card-actions { display: flex; gap: 0.4rem; }
.product-card-actions > * {
  flex: 1; padding: 0.6rem 0.5rem; min-height: 40px;
  font-family: var(--ff-disp); font-size: 0.6rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: 2px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 0.3rem;
  transition: all 0.2s;
}
.btn-details { background: transparent; color: var(--dark); border: 1px solid var(--dark); }
.btn-details:hover { background: var(--dark); color: var(--bg); }
.btn-order  { background: var(--green); color: #111; border: 1px solid var(--green); text-decoration: none; }
.btn-order:hover { background: #1da851; border-color: #1da851; }

/* ── 9. CARD CAROUSEL ────────────────────────────────────────── */
.card-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px;
  background: rgba(32,32,32,0.65); color: var(--gold);
  border-radius: 50%; border: none;
  font-size: 1.4rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s, background 0.2s;
  z-index: 2; cursor: pointer;
}
.product-card-img-wrap:hover .card-nav { opacity: 1; }
@media (hover: none) { .card-nav { opacity: 1; } }
.card-nav:hover { background: rgba(32,32,32,0.9); }
.card-prev { left: 0.45rem; }
.card-next { right: 0.45rem; }
[dir="rtl"] .card-prev { left: auto; right: 0.45rem; }
[dir="rtl"] .card-next { right: auto; left: 0.45rem; }
.card-dots {
  position: absolute; bottom: 0.55rem;
  left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px; z-index: 2;
}
.card-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: background 0.2s;
}
.card-dot.active { background: var(--gold); }

/* ── 10. PRODUCT MODAL ───────────────────────────────────────── */
.product-modal {
  position: fixed; inset: 0;
  background: rgba(20,14,5,0.92);
  display: none; align-items: center; justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
}
.product-modal.open { display: flex; }
.modal-inner {
  background: #fff; border-radius: 6px;
  max-width: 1100px; width: 100%; max-height: 92vh;
  display: grid; grid-template-columns: 1.15fr 1fr;
  overflow: hidden;
  position: relative;
  animation: modalIn 0.25s ease-out;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }

.modal-gallery {
  background: #f5f0e8;
  padding: 1.5rem 1.5rem 1.25rem;
  display: flex; flex-direction: column; gap: 1rem;
  overflow: hidden;
}
.modal-main-wrap {
  flex: 1; position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 300px;
}
.modal-main-img {
  max-width: 100%; max-height: 60vh;
  object-fit: contain;
  transition: opacity 0.2s;
}
.modal-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px;
  background: rgba(32,32,32,0.75); color: var(--gold);
  border-radius: 50%;
  font-size: 1rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.modal-nav:hover { background: rgba(32,32,32,0.95); }
.modal-nav.prev { left: 0.5rem; }
.modal-nav.next { right: 0.5rem; }
.modal-thumbs {
  display: flex; gap: 0.4rem;
  overflow-x: auto; padding-bottom: 0.25rem;
  justify-content: center;
}
.modal-thumb {
  width: 56px; height: 56px; flex-shrink: 0;
  object-fit: cover; border-radius: 3px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.55;
  transition: opacity 0.2s, border-color 0.2s;
}
.modal-thumb:hover  { opacity: 0.85; }
.modal-thumb.active { opacity: 1; border-color: var(--gold); }

.modal-info {
  padding: 2rem 1.75rem;
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.modal-name {
  font-family: var(--ff-disp);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 600; color: var(--dark);
  line-height: 1.25; margin-bottom: 0.3rem;
}
.modal-name-alt {
  font-family: var(--ff-ital); font-style: italic;
  font-size: 0.95rem; color: var(--brown); margin-bottom: 1.25rem;
}
.modal-desc {
  font-size: 0.93rem; color: var(--brown);
  line-height: 1.75; margin-bottom: 1.5rem;
  white-space: pre-wrap;
}
.modal-specs {
  display: flex; flex-direction: column; gap: 0.6rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.modal-spec-row {
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: 0.88rem;
}
.modal-spec-label { color: var(--brown); }
.modal-spec-value { color: var(--dark); font-weight: 600; text-align: right; }
[dir="rtl"] .modal-spec-value { text-align: left; }
.modal-spec-price { font-family: var(--ff-disp); font-size: 1.15rem; }
.modal-cta-stack  { display: flex; flex-direction: column; gap: 0.55rem; margin-top: auto; }
.modal-cta {
  font-family: var(--ff-disp); font-size: 0.7rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 0.85rem 1.5rem; border-radius: 2px; min-height: 44px;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  transition: all 0.2s; text-decoration: none;
}
.modal-cta.primary   { background: var(--green); color: #fff; border: 2px solid var(--green); }
.modal-cta.primary:hover   { background: #1da851; border-color: #1da851; }
.modal-cta.secondary { background: transparent; color: var(--dark); border: 2px solid var(--border); }
.modal-cta.secondary:hover { border-color: var(--dark); }

.modal-close {
  position: absolute; top: 0.75rem; right: 0.75rem;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.95); color: var(--dark);
  border-radius: 50%;
  font-size: 1.3rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.modal-close:hover { background: #fff; }
[dir="rtl"] .modal-close { right: auto; left: 0.75rem; }

/* ── 11. SHARED BAND & BUTTON ────────────────────────────────── */
.custom-band { background: var(--dark); padding: 4rem 2rem; text-align: center; color: #d4c5aa; }
.custom-band-inner   { max-width: 720px; margin: 0 auto; }
.custom-band-eyebrow { font-family: var(--ff-disp); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.custom-band-title   { font-family: var(--ff-disp); font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 600; color: var(--bg); margin-bottom: 1rem; }
.custom-band-body    { font-size: 0.95rem; color: var(--footer-text); font-weight: 300; line-height: 1.85; margin-bottom: 2rem; }

.btn-gold {
  font-family: var(--ff-disp); font-size: 0.7rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  background: var(--gold); color: var(--dark);
  padding: 0.85rem 2rem;
  border: 2px solid var(--gold); border-radius: 2px;
  transition: all 0.25s; min-height: 44px;
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.btn-gold:hover { background: transparent; color: var(--gold-text); }

/* ── 12. FOOTER ──────────────────────────────────────────────── */
footer { background: var(--dark); color: #d4c5aa; padding: 3.5rem 2rem 2rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem; padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1.5rem;
}
footer .logo-name { color: var(--gold); }
footer .logo-sub  { color: var(--footer-text); }
.footer-tagline   { font-size: 0.85rem; color: var(--footer-text); font-weight: 300; line-height: 1.65; margin-top: 0.75rem; }
.footer-email     { font-size: 0.8rem; color: var(--gold); margin-top: 0.5rem; white-space: nowrap; }
.footer-email a:hover { text-decoration: underline; }
.footer-col-title { font-family: var(--ff-disp); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer-links     { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-links a   { font-size: 0.84rem; color: var(--footer-text); transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.74rem; color: var(--footer-text);
}
.footer-badge { display: flex; align-items: center; gap: 0.4rem; }

/* ── 13. FLOATING WHATSAPP ───────────────────────────────────── */
.floating-wa {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  width: 56px; height: 56px;
  background: var(--green); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  z-index: 998;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.floating-wa:hover {
  background: #1da851;
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
[dir="rtl"] .floating-wa { right: auto; left: 1.5rem; }

/* ── 14. SHOP DROPDOWN ───────────────────────────────────────── */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  font-family: var(--ff-disp); font-size: 0.68rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--dark);
  background: none; border: none; padding: 0.5rem 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.35rem;
  transition: color 0.2s; min-height: 44px;
}
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle[aria-expanded="true"] { color: var(--gold-text); }
.nav-dropdown-caret { width: 10px; height: 10px; transition: transform 0.2s; flex-shrink: 0; }
.nav-dropdown-toggle[aria-expanded="true"] .nav-dropdown-caret { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 0.4rem); left: 0;
  background: var(--bg); border: 1px solid var(--border); border-radius: 4px;
  padding: 0.4rem 0; min-width: 250px;
  box-shadow: 0 8px 24px rgba(32,32,32,0.1);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 200;
}
.nav-dropdown-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  padding: 0.7rem 1.25rem;
  font-family: var(--ff-disp); font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--dark); min-height: 44px;
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown-menu a:hover { background: #f5f0e8; color: var(--gold-text); }
.nav-dropdown-badge {
  font-family: var(--ff-disp); font-size: 0.5rem; letter-spacing: 0.12em;
  color: var(--brown); border: 1px solid var(--border);
  padding: 0.12rem 0.45rem; border-radius: 2px; white-space: nowrap;
}
.nav-dropdown-divider { height: 1px; background: var(--border); margin: 0.4rem 0; }
.nav-dropdown-all     { color: var(--gold-text) !important; font-weight: 500; }
[dir="rtl"] .nav-dropdown-menu { left: auto; right: 0; }

/* Mobile shop accordion */
.mobile-shop { display: flex; flex-direction: column; border-bottom: 1px solid var(--border); }
.mobile-shop-toggle {
  font-family: var(--ff-disp); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--dark); background: none; border: none;
  padding: 0.85rem 0; min-height: 44px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; width: 100%;
}
.mobile-shop-toggle svg { width: 14px; height: 14px; transition: transform 0.2s; flex-shrink: 0; }
.mobile-shop-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.mobile-shop-toggle[aria-expanded="true"] { color: var(--gold-text); }
.mobile-shop-menu { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.mobile-shop-menu.open { max-height: 600px; }
.mobile-shop-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  padding: 0.7rem 1.25rem;
  font-family: var(--ff-disp); font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brown); min-height: 44px;
}
.mobile-shop-menu a:hover { color: var(--gold); }
.mobile-shop-menu a + a   { border-top: 1px solid var(--border); }
.mobile-shop-all          { color: var(--gold) !important; font-weight: 500; }

/* ── 15. RTL OVERRIDES ───────────────────────────────────────── */
[dir="rtl"] .top-bar          { flex-direction: row-reverse; }
[dir="rtl"] .top-bar-group    { flex-direction: row-reverse; }
[dir="rtl"] #rateNote         { margin-left: 0; margin-right: 0.6rem; }
[dir="rtl"] nav               { flex-direction: row-reverse; }
[dir="rtl"] .nav-links        { flex-direction: row-reverse; }
[dir="rtl"] .page-hero        { direction: rtl; }
[dir="rtl"] .products-section { direction: rtl; }
[dir="rtl"] .modal-info       { direction: rtl; }
[dir="rtl"] .custom-band      { direction: rtl; }
[dir="rtl"] .footer-top       { direction: rtl; }
[dir="rtl"] .footer-bottom    { flex-direction: row-reverse; }
[dir="rtl"] .mobile-nav ul    { direction: rtl; }

/* ── 16. RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 800px) {
  .modal-inner        { grid-template-columns: 1fr; max-height: 96vh; }
  .modal-gallery      { padding: 1.25rem 1.25rem 0.75rem; }
  .modal-main-wrap    { min-height: 220px; }
  .modal-main-img     { max-height: 40vh; }
  .modal-info         { padding: 1.5rem 1.25rem; }
}
@media (max-width: 768px) {
  .top-bar                  { padding: 0.4rem 1rem; }
  #rateNote                 { display: none; }
  [data-t="topbar_right"]   { display: none; }
  .hamburger                { display: flex; }
  .nav-links                { display: none; }
  nav                       { padding: 0.75rem 1rem; }
  .products-section         { padding: 2.5rem 1rem 1rem; }
  .custom-band              { padding: 3rem 1rem; }
  .footer-top               { grid-template-columns: 1fr 1fr; }
  .footer-bottom            { flex-direction: column; gap: 0.5rem; text-align: center; }
}
@media (max-width: 600px) {
  .floating-wa { bottom: 1rem; right: 1rem; width: 52px; height: 52px; }
  [dir="rtl"] .floating-wa { right: auto; left: 1rem; }
}
@media (max-width: 480px) {
  .footer-top  { grid-template-columns: 1fr; gap: 2rem; }
  .page-hero   { padding: 3rem 1rem 2.5rem; }
}

/* ── 17. HEBREW TYPOGRAPHY ───────────────────────────────────── */
[lang="he"] body { font-family: var(--ff-body-he); }
[lang="he"] .hero-headline,
[lang="he"] .section-title,
[lang="he"] .story-title,
[lang="he"] .contact-title,
[lang="he"] .corporate-title,
[lang="he"] .cat-card-title,
[lang="he"] .product-name,
[lang="he"] .logo-name,
[lang="he"] .nav-links a,
[lang="he"] .mobile-nav a,
[lang="he"] .btn-primary,
[lang="he"] .btn-outline,
[lang="he"] .btn-gold,
[lang="he"] .btn-wa,
[lang="he"] .btn-cart,
[lang="he"] .form-submit,
[lang="he"] .cta-link,
[lang="he"] .section-tag,
[lang="he"] .story-tag,
[lang="he"] .contact-tag,
[lang="he"] .corporate-tag,
[lang="he"] .footer-col-title,
[lang="he"] .page-headline,
[lang="he"] .page-eyebrow,
[lang="he"] .about-tag,
[lang="he"] .about-title,
[lang="he"] h1, [lang="he"] h2, [lang="he"] h3, [lang="he"] h4 {
  font-family: var(--ff-disp-he);
  letter-spacing: 0.02em;
}

/* ── 18. COOKIE CONSENT BANNER ───────────────────────────────── */
.consent-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100;
  display: flex; align-items: center; justify-content: center;
  gap: 1.25rem; flex-wrap: wrap;
  background: var(--dark); color: #f5f0e8;
  padding: 0.9rem 1.25rem;
  font-size: 0.85rem; line-height: 1.55;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.18);
}
.consent-text { margin: 0; max-width: 620px; color: #f5f0e8; }
.consent-text a { color: var(--gold); text-underline-offset: 2px; }
.consent-text a:hover { color: #f5f0e8; }
.consent-actions { display: flex; gap: 0.6rem; flex-shrink: 0; }
.consent-btn {
  font-family: inherit; font-size: 0.8rem; letter-spacing: 0.04em;
  padding: 0.55rem 1.3rem; min-height: 44px; cursor: pointer;
  border-radius: 2px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.consent-accept { background: var(--gold); border: 1px solid var(--gold); color: var(--dark); font-weight: 600; }
.consent-accept:hover { background: #c4a45e; border-color: #c4a45e; }
.consent-decline { background: transparent; border: 1px solid var(--footer-text); color: var(--footer-text); }
.consent-decline:hover { border-color: #f5f0e8; color: #f5f0e8; }
@media (max-width: 560px) {
  .consent-banner { flex-direction: column; align-items: stretch; text-align: center; gap: 0.75rem; }
  .consent-actions { justify-content: center; }
}

/* ── 19. ACCESSIBILITY ───────────────────────────────────────── */

/* Skip link */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.6rem 1.2rem;
  background: var(--dark);
  color: #fff;
  font-size: 0.85rem;
  font-family: var(--ff-body);
  border-radius: 0 0 4px 4px;
  text-decoration: none;
  transition: top 0.15s;
}
.skip-to-content:focus { top: 0; }

/* Underline inline links in prose content (WCAG 1.4.1) */
main p a { text-decoration: underline; text-underline-offset: 2px; }

/* Screen-reader only (visually hidden but accessible) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Keyboard focus indicator for all interactive elements */
:focus-visible {
  outline: 3px solid var(--gold-text);
  outline-offset: 3px;
}
/* Remove outline for mouse users, keep for keyboard */
:focus:not(:focus-visible) { outline: none; }

/* Ensure buttons in modal gallery are styled correctly */
button.modal-thumb {
  padding: 0;
  background: none;
  border: 2px solid transparent;
  border-radius: 3px;
  width: 60px; height: 60px;
  flex-shrink: 0;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s, border-color 0.2s;
  overflow: hidden;
  display: block;
}
button.modal-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
button.modal-thumb:hover  { opacity: 0.85; }
button.modal-thumb.active { opacity: 1; border-color: var(--gold); }
button.modal-thumb:focus-visible { outline: 3px solid var(--gold-text); outline-offset: 2px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Inline gold-text overrides for page-specific tag classes (light-bg contexts).
   !important is required because per-page <style> blocks follow this stylesheet
   in source order and would otherwise win. */
.section-tag, .about-tag, .story-tag, .cta-tag,
.contact-tag, .form-lede-tag, .story-sig {
  color: var(--gold-text) !important;
}
/* Tags on dark backgrounds — keep light gold */
.corporate-tag, .gen-tag { color: var(--gold) !important; }
.btn-link:hover { color: var(--gold-text) !important; }
.other-cat-link:hover { color: var(--gold-text) !important; }
