/* ============================================================
   God Shema Israel — Premium E-commerce Theme
   Mobile-first | Bootstrap 5.3 companion stylesheet
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --mw-gold: #D4AF37;
  --mw-gold-dark: #b8962e;
  --mw-gold-light: #f0dca0;
  --mw-blue: #6CC4E6;
  --mw-blue-dark: #2f93bd;
  --mw-blue-deep: #14506b;
  /* Fresh palette — legacy "brown" tokens now carry deep-blue tones
     so every existing reference shifts from brown to fresh blue */
  --mw-brown: #1a6a88;
  --mw-brown-dark: #11506a;
  --mw-white: #FFFFFF;
  --mw-dark: #243640;
  --mw-cream: #eaf6fb;
  --mw-border: #d9e9f0;
  --mw-shadow-sm: 0 2px 10px rgba(20, 80, 107, .07);
  --mw-shadow-md: 0 8px 30px rgba(20, 80, 107, .12);
  --mw-shadow-lg: 0 18px 50px rgba(20, 80, 107, .18);
  --mw-radius: 14px;
  --mw-font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --mw-font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mw-transition: all .3s cubic-bezier(.25, .8, .35, 1);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: var(--mw-font-body);
  color: var(--mw-dark);
  background-color: var(--mw-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  /* room for floating mobile nav */
  padding-bottom: 96px;
}

@media (min-width: 992px) {
  body { padding-bottom: 0; }
}

h1, h2, h3, h4, h5, .display-font {
  font-family: var(--mw-font-display);
  font-weight: 700;
  color: var(--mw-dark);
}

a { color: var(--mw-brown); text-decoration: none; transition: var(--mw-transition); }
a:hover { color: var(--mw-gold-dark); }

img { max-width: 100%; }

::selection { background: var(--mw-gold); color: #fff; }

/* Focus visibility for keyboard users */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--mw-blue);
  outline-offset: 2px;
}

/* ---------- Utility ---------- */
.text-gold { color: var(--mw-gold) !important; }
.text-brown { color: var(--mw-brown) !important; }
.bg-cream { background-color: var(--mw-cream) !important; }
.bg-brown { background-color: var(--mw-brown) !important; }

.section-padding { padding: 64px 0; }
@media (min-width: 992px) { .section-padding { padding: 96px 0; } }

.section-heading { margin-bottom: 48px; }
.section-heading .eyebrow {
  display: inline-block;
  font-family: var(--mw-font-body);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mw-gold-dark);
  margin-bottom: 10px;
}
.section-heading h2 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  margin-bottom: 12px;
}
.section-heading .divider {
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, var(--mw-gold), var(--mw-gold-light));
  border-radius: 3px;
  margin: 0 auto 14px;
}
.section-heading.text-start .divider { margin-left: 0; }
.section-heading p.lead-sub {
  color: #6f6a60;
  max-width: 640px;
  margin: 0 auto;
  font-size: 1rem;
}

/* ---------- Buttons ---------- */
.btn-gold {
  --bs-btn-bg: var(--mw-gold);
  --bs-btn-border-color: var(--mw-gold);
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--mw-gold-dark);
  --bs-btn-hover-border-color: var(--mw-gold-dark);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--mw-gold-dark);
  --bs-btn-active-color: #fff;
  font-weight: 600;
  letter-spacing: .04em;
  border-radius: 50rem;
  padding: .65rem 1.6rem;
  box-shadow: 0 6px 18px rgba(212, 175, 55, .35);
  transition: var(--mw-transition);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(212, 175, 55, .45); }

.btn-outline-gold {
  --bs-btn-color: var(--mw-gold-dark);
  --bs-btn-border-color: var(--mw-gold);
  --bs-btn-hover-bg: var(--mw-gold);
  --bs-btn-hover-border-color: var(--mw-gold);
  --bs-btn-hover-color: #fff;
  font-weight: 600;
  border-radius: 50rem;
  padding: .65rem 1.6rem;
  transition: var(--mw-transition);
}

.btn-brown {
  --bs-btn-bg: var(--mw-brown);
  --bs-btn-border-color: var(--mw-brown);
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--mw-brown-dark);
  --bs-btn-hover-border-color: var(--mw-brown-dark);
  --bs-btn-hover-color: #fff;
  font-weight: 600;
  border-radius: 50rem;
  padding: .65rem 1.6rem;
  transition: var(--mw-transition);
}
.btn-brown:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(20, 80, 107, .35); }

/* Secondary CTA on dark/blue sections — crisp white outline (was Bootstrap default) */
.btn-outline-light {
  --bs-btn-color: #fff;
  --bs-btn-bg: transparent;
  --bs-btn-border-color: rgba(255, 255, 255, .75);
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-border-color: #fff;
  --bs-btn-hover-color: var(--mw-blue-deep);
  --bs-btn-active-bg: #fff;
  --bs-btn-active-border-color: #fff;
  --bs-btn-active-color: var(--mw-blue-deep);
  font-weight: 600;
  border-width: 1.5px;
  padding: .65rem 1.6rem;
  box-shadow: none;
  transition: var(--mw-transition);
}
.btn-outline-light:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }

/* ============================================================
   Header
   ============================================================ */
.top-bar {
  background: linear-gradient(90deg, var(--mw-blue-dark), var(--mw-blue-deep));
  color: #eaf6fb;
  font-size: .78rem;
  letter-spacing: .06em;
  padding: 7px 0;
}
.top-bar a { color: var(--mw-gold-light); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--mw-border);
  transition: box-shadow .3s ease, padding .3s ease;
}
.site-header.is-scrolled { box-shadow: var(--mw-shadow-md); }

.site-header .navbar-brand { gap: .85rem !important; padding-left: .25rem; }
.site-header .navbar-brand img { height: 44px; width: auto; image-rendering: -webkit-optimize-contrast; transition: var(--mw-transition); }
@media (min-width: 992px) { .site-header .navbar-brand img { height: 50px; } }

.site-header .brand-name {
  font-family: var(--mw-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--mw-brown);
  line-height: 1.05;
}
.site-header .brand-name small {
  display: block;
  margin-top: .42rem;
  font-family: var(--mw-font-body);
  font-size: .6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mw-gold-dark);
  font-weight: 600;
  white-space: nowrap;
}

.site-header .nav-link {
  font-weight: 500;
  font-size: .92rem;
  color: var(--mw-dark);
  letter-spacing: .03em;
  padding: .55rem .85rem !important;
  position: relative;
}
.site-header .nav-link::after {
  content: "";
  position: absolute;
  left: .85rem;
  right: .85rem;
  bottom: 2px;
  height: 2px;
  background: var(--mw-gold);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.site-header .nav-link:hover::after,
.site-header .nav-link.active::after { transform: scaleX(1); }
.site-header .nav-link.active { color: var(--mw-gold-dark); }

.header-icons .icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--mw-border);
  background: #fff;
  color: var(--mw-dark);
  font-size: 1rem;
  transition: var(--mw-transition);
}
.header-icons .icon-btn:hover {
  background: var(--mw-gold);
  border-color: var(--mw-gold);
  color: #fff;
  transform: translateY(-2px);
}
.header-icons .badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--mw-brown);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1060;
  background: rgba(51, 51, 51, .55);
  backdrop-filter: blur(6px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 14vh 18px 0;
}
.search-overlay.open { display: flex; animation: fadeIn .25s ease; }
.search-overlay .search-box {
  background: #fff;
  border-radius: var(--mw-radius);
  box-shadow: var(--mw-shadow-lg);
  width: 100%;
  max-width: 620px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-overlay input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 1.05rem;
  padding: 10px 4px;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  isolation: isolate;
  color: var(--mw-dark);
  padding: 56px 0;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 88% 8%, rgba(108, 196, 230, .28), transparent 60%),
    linear-gradient(165deg, #eaf6fb 0%, #ffffff 55%);
}
@media (min-width: 992px) { .hero { padding: 104px 0; } }

.hero h1 {
  color: var(--mw-blue-deep);
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1.12;
}
.hero h1 .accent { color: var(--mw-gold-dark); font-style: italic; }
.hero .hero-sub {
  color: #50626c;
  max-width: 540px;
  font-size: clamp(.96rem, 2vw, 1.12rem);
}
.hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--mw-blue);
  color: var(--mw-blue-dark);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  border-radius: 50rem;
  padding: 7px 18px;
  box-shadow: var(--mw-shadow-sm);
}
.hero .trust-row { color: #5b6c76; font-size: .85rem; }
.hero .trust-row i { color: var(--mw-gold-dark); }

/* Hero product visual (right side) */
.hero-visual {
  position: relative;
  border-radius: calc(var(--mw-radius) + 8px);
  overflow: hidden;
  box-shadow: var(--mw-shadow-lg);
  aspect-ratio: 1 / 1;
  max-width: 400px;
  margin-left: auto;
  border: 6px solid #fff;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, transparent 60%, rgba(20, 80, 107, .18));
}
/* Soft decorative blob behind the photo */
.hero-art {
  position: absolute;
  z-index: -1;
  width: 78%;
  aspect-ratio: 1;
  right: -6%;
  top: -8%;
  background: radial-gradient(circle at 35% 35%, var(--mw-blue), transparent 70%);
  filter: blur(8px);
  opacity: .5;
}
@media (max-width: 991.98px) {
  .hero-visual { aspect-ratio: 16 / 10; max-width: 520px; margin: 8px auto 0; }
  .hero-art { display: none; }
}

/* ============================================================
   Cards & Collections
   ============================================================ */
.collection-card {
  position: relative;
  display: block;
  border-radius: var(--mw-radius);
  overflow: hidden;
  box-shadow: var(--mw-shadow-sm);
  aspect-ratio: 4 / 5;
}
.collection-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2, .7, .3, 1);
}
.collection-card:hover img { transform: scale(1.07); }
.collection-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(10, 52, 70, .85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  color: #fff;
}
.collection-card .overlay h3 { color: #fff; font-size: 1.25rem; margin-bottom: 4px; }
.collection-card .overlay span { color: var(--mw-gold-light); font-size: .82rem; letter-spacing: .08em; }
.collection-card .overlay .cta {
  margin-top: 10px;
  font-size: .82rem;
  font-weight: 600;
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: var(--mw-transition);
}
.collection-card:hover .overlay .cta { opacity: 1; transform: translateY(0); }

/* Category pills */
.category-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 26px 14px;
  background: #fff;
  border: 1px solid var(--mw-border);
  border-radius: var(--mw-radius);
  text-align: center;
  color: var(--mw-dark);
  transition: var(--mw-transition);
  height: 100%;
}
.category-tile .icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--mw-blue-dark);
  background: linear-gradient(135deg, #e4f5fc, #cfeaf6);
  border: 1px solid var(--mw-blue);
  transition: var(--mw-transition);
}
.category-tile:hover {
  transform: translateY(-6px);
  border-color: var(--mw-gold);
  box-shadow: var(--mw-shadow-md);
  color: var(--mw-dark);
}
.category-tile:hover .icon-wrap {
  background: var(--mw-gold);
  color: #fff;
  border-color: var(--mw-gold);
}
.category-tile h3 { font-size: 1rem; margin: 0; font-family: var(--mw-font-body); font-weight: 600; }
.category-tile small { color: #8d8678; }

/* ---------- Product Card ---------- */
.product-card {
  background: #fff;
  border: 1px solid var(--mw-border);
  border-radius: var(--mw-radius);
  overflow: hidden;
  transition: var(--mw-transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--mw-shadow-lg);
  border-color: rgba(212, 175, 55, .55);
}
.product-card .product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--mw-cream);
}
.product-card .product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2, .7, .3, 1);
}
.product-card:hover .product-media img { transform: scale(1.08); }

.product-card .badge-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--mw-gold);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 50rem;
  padding: 5px 12px;
}
.product-card .badge-tag.sale { background: var(--mw-blue-dark); }

.product-card .card-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-card .card-actions button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .94);
  color: var(--mw-dark);
  font-size: .88rem;
  box-shadow: var(--mw-shadow-sm);
  opacity: 0;
  transform: translateX(12px);
  transition: var(--mw-transition);
}
.product-card .card-actions button:nth-child(2) { transition-delay: .06s; }
.product-card:hover .card-actions button,
.product-card:focus-within .card-actions button { opacity: 1; transform: translateX(0); }
.product-card .card-actions button:hover { background: var(--mw-gold); color: #fff; }
.product-card .card-actions button.wishlisted { color: #c0392b; }

.product-card .quick-add {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  border: none;
  border-radius: 50rem;
  background: rgba(51, 51, 51, .92);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .05em;
  padding: 10px;
  opacity: 0;
  transform: translateY(12px);
  transition: var(--mw-transition);
  backdrop-filter: blur(4px);
}
.product-card:hover .quick-add,
.product-card:focus-within .quick-add { opacity: 1; transform: translateY(0); }
.product-card .quick-add:hover { background: var(--mw-gold); }

.product-card .product-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card .product-cat { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mw-gold-dark); font-weight: 600; }
.product-card .product-title { font-size: .98rem; font-weight: 600; font-family: var(--mw-font-body); margin: 0; }
.product-card .product-title a { color: var(--mw-dark); }
.product-card .product-title a:hover { color: var(--mw-gold-dark); }
.product-card .rating { color: var(--mw-gold); font-size: .78rem; }
.product-card .rating .count { color: #9a937f; margin-left: 4px; }
.product-card .price { margin-top: auto; font-weight: 700; font-size: 1.06rem; color: var(--mw-brown); }
.product-card .price del { color: #b3aa96; font-weight: 400; font-size: .88rem; margin-left: 8px; }

/* Touch devices: always show actions */
@media (hover: none) {
  .product-card .card-actions button,
  .product-card .quick-add { opacity: 1; transform: none; }
}

/* ============================================================
   Why Choose Us / Feature blocks
   ============================================================ */
.feature-box {
  text-align: center;
  padding: 30px 22px;
  background: #fff;
  border-radius: var(--mw-radius);
  border: 1px solid var(--mw-border);
  height: 100%;
  transition: var(--mw-transition);
}
.feature-box:hover { transform: translateY(-6px); box-shadow: var(--mw-shadow-md); border-color: var(--mw-gold-light); }
.feature-box .fi {
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  background: linear-gradient(135deg, var(--mw-gold), var(--mw-blue));
  box-shadow: 0 8px 20px rgba(20, 80, 107, .3);
}
.feature-box h3 { font-size: 1.08rem; margin-bottom: 8px; }
.feature-box p { color: #6f6a60; font-size: .9rem; margin: 0; }

/* Why-choose feature strip (horizontal, no card) */
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(20,80,107,.07);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 6px 22px rgba(20,80,107,.05);
  transition: var(--mw-transition, .25s);
}
.feature-item:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(20,80,107,.10); }
.feature-item .fi {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  color: var(--mw-gold-dark, #b8962e);
  background: #faf6ec;
}
.feature-item h3 { font-size: 1rem; margin-bottom: 4px; }
.feature-item p { color: #6f6a60; font-size: .86rem; margin: 0; }

/* ============================================================
   Homepage — Story & Electronic Mezuzah teasers
   ============================================================ */
.about-teaser .at-img { border-radius: 18px; overflow: hidden; box-shadow: 0 18px 50px rgba(20, 80, 107, .14); }
.about-teaser .at-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; display: block; }

/* ============================================================
   Homepage — Testimonials (spotlight cards)
   ============================================================ */
.tst-wrap { background: linear-gradient(180deg, #f7fbfd 0%, #eef7fb 100%); }
.tst-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1.4rem; }
@media (max-width: 991px) { .tst-grid { grid-template-columns: 1fr 1fr; } .tst-card.feature { grid-column: 1 / -1; } }
@media (max-width: 639px) { .tst-grid { grid-template-columns: 1fr; } }
.tst-card {
  position: relative; background: #fff; border: 1px solid rgba(20, 80, 107, .07);
  border-radius: 18px; padding: 2rem 1.8rem 1.8rem; box-shadow: 0 8px 30px rgba(20, 80, 107, .06);
  display: flex; flex-direction: column;
}
.tst-card::before {
  content: ""; position: absolute; left: 1.8rem; top: 0; height: 4px; width: 46px;
  background: linear-gradient(90deg, var(--mw-gold), var(--mw-gold-light)); border-radius: 0 0 4px 4px;
}
.tst-card .q { font-family: var(--mw-font-display); font-size: 3.4rem; line-height: .7; color: var(--mw-gold); opacity: .28; margin-bottom: .4rem; }
.tst-card .stars { color: var(--mw-gold); font-size: .82rem; letter-spacing: 2px; margin-bottom: .7rem; }
.tst-card blockquote { font-family: var(--mw-font-display); color: var(--mw-dark); font-size: 1.05rem; line-height: 1.6; margin: 0 0 1.3rem; }
.tst-card.feature blockquote { font-size: 1.32rem; }
.tst-card .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.tst-card .who .av {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--mw-gold); color: #fff; font-weight: 700; font-size: .9rem; flex: 0 0 auto;
}
.tst-card .who b { color: var(--mw-dark); font-size: .95rem; display: block; line-height: 1.2; }
.tst-card .who span { color: #8a8578; font-size: .82rem; }
.tst-card .who .verified { color: var(--mw-gold-dark); font-size: .72rem; }

/* ============================================================
   Testimonials
   ============================================================ */
.testimonial-card {
  background: #fff;
  border-radius: var(--mw-radius);
  border: 1px solid var(--mw-border);
  padding: 28px;
  height: 100%;
  position: relative;
  transition: var(--mw-transition);
}
.testimonial-card:hover { box-shadow: var(--mw-shadow-md); transform: translateY(-4px); }
.testimonial-card .quote-mark {
  font-family: var(--mw-font-display);
  font-size: 3.4rem;
  line-height: 1;
  color: var(--mw-gold-light);
  position: absolute;
  top: 14px;
  right: 22px;
}
.testimonial-card .stars { color: var(--mw-gold); font-size: .82rem; margin-bottom: 12px; }
.testimonial-card p { color: #5d574b; font-size: .94rem; }
.testimonial-card .author { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.testimonial-card .author .avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mw-blue), var(--mw-blue-dark));
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.testimonial-card .author strong { display: block; font-size: .92rem; }
.testimonial-card .author span { font-size: .78rem; color: #9a937f; }

/* ============================================================
   Education / Story sections
   ============================================================ */
.edu-panel {
  background:
    linear-gradient(110deg, rgba(10, 52, 70, .92), rgba(20, 80, 107, .8)),
    url("../assets/mezuzah-picture-and-videos/17B3CD21-3E30-4769-8561-74863DA617DE.jpeg") center / cover no-repeat;
  border-radius: calc(var(--mw-radius) + 6px);
  color: #eaf6fb;
  padding: 48px 28px;
  overflow: hidden;
}
@media (min-width: 992px) { .edu-panel { padding: 72px 64px; } }
.edu-panel h2 { color: #fff; }
.edu-panel .hebrew {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--mw-gold-light);
  direction: rtl;
}
.edu-panel ul li { margin-bottom: 10px; }
.edu-panel ul li i { color: var(--mw-gold); margin-right: 10px; }

/* ---------- Newsletter ---------- */
.newsletter {
  background: linear-gradient(120deg, var(--mw-blue-dark) 0%, var(--mw-brown) 55%, var(--mw-blue-deep) 100%);
  color: #eaf6fb;
  border-radius: 0;
}
.newsletter h2 { color: #fff; }
.newsletter .form-control {
  border-radius: 50rem;
  padding: .8rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .12);
  color: #fff;
}
.newsletter .form-control::placeholder { color: #bfe3f0; }
.newsletter .form-control:focus {
  background: rgba(255, 255, 255, .2);
  border-color: var(--mw-gold);
  box-shadow: 0 0 0 .25rem rgba(212, 175, 55, .25);
  color: #fff;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: #0e2f3d;
  color: #bcd3dd;
  font-size: .92rem;
}
.site-footer .footer-main { padding: 64px 0 40px; }
.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  font-family: var(--mw-font-body);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}
.site-footer h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 2px;
  background: var(--mw-gold);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: #bcd3dd; }
.site-footer a:hover { color: var(--mw-gold-light); padding-left: 4px; }
.site-footer .social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, .4);
  color: var(--mw-gold-light);
  margin-right: 8px;
  transition: var(--mw-transition);
}
.site-footer .social a:hover { background: var(--mw-gold); color: #fff; padding-left: 0; transform: translateY(-3px); }
.site-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 18px 0;
  font-size: .8rem;
  color: #8aa6b2;
}
.site-footer .footer-logo img { height: 56px; }

/* ============================================================
   Floating Mobile Bottom Navigation (glassmorphism)
   ============================================================ */
.mobile-nav {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 1040;
  width: calc(100% - 28px);
  max-width: 430px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 8px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 26px;
  box-shadow: 0 12px 36px rgba(51, 51, 51, .22);
}
@media (min-width: 992px) { .mobile-nav { display: none; } }

.mobile-nav a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 1;
  color: #6b6354;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .03em;
  padding: 4px 0;
  border-radius: 16px;
}
.mobile-nav a i { font-size: 1.18rem; transition: var(--mw-transition); }
.mobile-nav a.active { color: var(--mw-brown); }
.mobile-nav a.active i { color: var(--mw-gold-dark); transform: translateY(-2px); }
.mobile-nav a.active::before {
  content: "";
  position: absolute;
  top: -10px;
  width: 26px;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: var(--mw-gold);
}
.mobile-nav .nav-cart { position: relative; }
.mobile-nav .nav-cart .badge-count {
  position: absolute;
  top: -2px;
  right: calc(50% - 18px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--mw-brown);
  color: #fff;
  font-size: .58rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   Page Hero (inner pages)
   ============================================================ */
.page-hero {
  background:
    linear-gradient(110deg, rgba(10, 52, 70, .85), rgba(20, 80, 107, .6)),
    url("../assets/mezuzah-picture-and-videos/7E1AE9D4-46C5-4FE6-95F6-AE23967EE317.jpeg") center / cover no-repeat;
  color: #fff;
  padding: 72px 0;
  text-align: center;
}
@media (min-width: 992px) { .page-hero { padding: 104px 0; } }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 5vw, 3rem); }
.page-hero .breadcrumb { justify-content: center; margin: 0; --bs-breadcrumb-divider-color: var(--mw-gold-light); }
.page-hero .breadcrumb a { color: var(--mw-gold-light); }
.page-hero .breadcrumb-item.active { color: #e8dfca; }

/* ============================================================
   Product Detail Page
   ============================================================ */
.gallery-main {
  border-radius: var(--mw-radius);
  overflow: hidden;
  border: 1px solid var(--mw-border);
  background: var(--mw-cream);
  aspect-ratio: 1 / 1;
}
.gallery-main img, .gallery-main video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.gallery-thumbs .thumb {
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: var(--mw-cream);
  padding: 0;
  position: relative;
  transition: var(--mw-transition);
}
.gallery-thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs .thumb.active, .gallery-thumbs .thumb:hover { border-color: var(--mw-gold); }
.gallery-thumbs .thumb .play-ico {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(10, 52, 70, .45);
  font-size: 1.1rem;
}

.product-detail .price-lg { font-size: 1.9rem; font-weight: 700; color: var(--mw-brown); }
.product-detail .price-lg del { font-size: 1.1rem; color: #b3aa96; font-weight: 400; }
.product-detail .stock { color: #2e8b57; font-weight: 600; font-size: .9rem; }

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--mw-border);
  border-radius: 50rem;
  overflow: hidden;
}
.qty-control button {
  border: none;
  background: var(--mw-cream);
  width: 42px;
  height: 44px;
  font-size: 1rem;
  color: var(--mw-brown);
  transition: var(--mw-transition);
}
.qty-control button:hover { background: var(--mw-gold); color: #fff; }
.qty-control input {
  width: 54px;
  height: 44px;
  border: none;
  text-align: center;
  font-weight: 600;
  -moz-appearance: textfield;
}
.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.trust-strip {
  border: 1px dashed var(--mw-gold);
  border-radius: var(--mw-radius);
  background: #eef9fd;
  padding: 16px;
  font-size: .85rem;
}
.trust-strip i { color: var(--mw-gold-dark); width: 22px; }

.option-swatch input { display: none; }
.option-swatch label {
  border: 1px solid var(--mw-border);
  border-radius: 50rem;
  padding: 8px 18px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--mw-transition);
}
.option-swatch input:checked + label {
  background: var(--mw-brown);
  border-color: var(--mw-brown);
  color: #fff;
}

/* Review bars */
.review-summary .bar { height: 8px; border-radius: 4px; background: #eee6d4; overflow: hidden; }
.review-summary .bar span { display: block; height: 100%; background: var(--mw-gold); border-radius: 4px; }
.review-item { border-bottom: 1px solid var(--mw-border); padding: 22px 0; }
.review-item:last-child { border-bottom: none; }
.review-item .avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mw-gold), var(--mw-brown));
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ============================================================
   Cart Page
   ============================================================ */
.cart-item {
  background: #fff;
  border: 1px solid var(--mw-border);
  border-radius: var(--mw-radius);
  padding: 16px;
  transition: var(--mw-transition);
}
.cart-item:hover { box-shadow: var(--mw-shadow-sm); }
.cart-item .thumb {
  width: 90px;
  height: 90px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--mw-cream);
}
.cart-item .remove-btn {
  border: none;
  background: none;
  color: #b3aa96;
  font-size: .95rem;
  transition: var(--mw-transition);
}
.cart-item .remove-btn:hover { color: #c0392b; transform: scale(1.15); }

.order-summary {
  background: var(--mw-cream);
  border: 1px solid var(--mw-border);
  border-radius: var(--mw-radius);
  padding: 26px;
  position: sticky;
  top: 110px;
}
.order-summary .line { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: .94rem; }
.order-summary .total { font-size: 1.2rem; font-weight: 700; color: var(--mw-brown); border-top: 1px solid var(--mw-border); padding-top: 14px; }

/* ============================================================
   Auth (Register / Login)
   ============================================================ */
.auth-wrap { min-height: 70vh; }
.auth-card {
  background: #fff;
  border: 1px solid var(--mw-border);
  border-radius: calc(var(--mw-radius) + 4px);
  box-shadow: var(--mw-shadow-md);
  overflow: hidden;
}
.auth-card .auth-side {
  background:
    linear-gradient(160deg, rgba(10, 52, 70, .9), rgba(47, 147, 189, .72)),
    url("../assets/mezuzah-picture-and-videos/93E8E9C2-E410-438E-AEBB-A7AF5AD95FCE.jpeg") center / cover no-repeat;
  color: #eaf6fb;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-card .auth-side h2 { color: #fff; }
.auth-card .form-control {
  border-radius: 10px;
  padding: .75rem 1rem;
  border-color: var(--mw-border);
}
.auth-card .form-control:focus {
  border-color: var(--mw-gold);
  box-shadow: 0 0 0 .25rem rgba(212, 175, 55, .18);
}
.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border-radius: 50rem;
  padding: .7rem 1rem;
  font-weight: 600;
  font-size: .92rem;
  border: 1px solid var(--mw-border);
  background: #fff;
  color: var(--mw-dark);
  transition: var(--mw-transition);
}
.btn-social:hover { transform: translateY(-2px); box-shadow: var(--mw-shadow-sm); border-color: #cfc6b2; }
.btn-social.google i { color: #DB4437; }
.btn-social.facebook i { color: #1877F2; }
.divider-text {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #9a937f;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.divider-text::before, .divider-text::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--mw-border);
}

/* ============================================================
   Types of Mezuzah page
   ============================================================ */
.type-block { scroll-margin-top: 120px; }
.type-block .type-img {
  border-radius: var(--mw-radius);
  overflow: hidden;
  box-shadow: var(--mw-shadow-md);
  aspect-ratio: 4 / 3;
}
.type-block .type-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.type-block .type-img:hover img { transform: scale(1.05); }
.type-block .type-num {
  font-family: var(--mw-font-display);
  font-size: 3.2rem;
  color: var(--mw-gold-light);
  line-height: 1;
}

.types-toc {
  position: sticky;
  top: 96px;
  z-index: 1020;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--mw-border);
  overflow-x: auto;
  white-space: nowrap;
  padding: 10px 0;
}
.types-toc a {
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--mw-dark);
  border: 1px solid var(--mw-border);
  border-radius: 50rem;
  padding: 7px 16px;
  margin-right: 8px;
}
.types-toc a:hover, .types-toc a.active {
  background: var(--mw-gold);
  border-color: var(--mw-gold);
  color: #fff;
}

/* Accordion (FAQ) */
.faq .accordion-item {
  border: 1px solid var(--mw-border);
  border-radius: var(--mw-radius) !important;
  overflow: hidden;
  margin-bottom: 14px;
}
.faq .accordion-button {
  font-weight: 600;
  color: var(--mw-dark);
  background: #fff;
  font-size: .98rem;
  padding: 1.1rem 1.3rem;
}
.faq .accordion-button:not(.collapsed) {
  background: #eef9fd;
  color: var(--mw-brown);
  box-shadow: none;
}
.faq .accordion-button:focus { box-shadow: 0 0 0 .25rem rgba(212, 175, 55, .18); }
.faq .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23D4AF37'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.faq .accordion-body { color: #6f6a60; font-size: .94rem; }

/* ============================================================
   Shop page (product listing + filters)
   ============================================================ */
.shop-sidebar .filter-group {
  background: #fff;
  border: 1px solid var(--mw-border);
  border-radius: var(--mw-radius);
  padding: 20px;
  margin-bottom: 18px;
}
.shop-sidebar .filter-group h3 {
  font-family: var(--mw-font-body);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mw-brown);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--mw-border);
}
.shop-sidebar .form-check { margin-bottom: 8px; }
.shop-sidebar .form-check-input:checked {
  background-color: var(--mw-gold);
  border-color: var(--mw-gold);
}
.shop-sidebar .form-check-input:focus {
  border-color: var(--mw-gold);
  box-shadow: 0 0 0 .25rem rgba(212, 175, 55, .18);
}
.shop-sidebar .form-check-label { font-size: .92rem; }
.shop-sidebar .f-count { color: #9a937f; font-size: .8rem; }

.price-chip {
  border: 1px solid var(--mw-border);
  background: var(--mw-cream);
  border-radius: 50rem;
  font-size: .78rem;
  font-weight: 600;
  padding: 5px 13px;
  color: var(--mw-dark);
  transition: var(--mw-transition);
}
.price-chip:hover {
  background: var(--mw-gold);
  border-color: var(--mw-gold);
  color: #fff;
}

.shop-toolbar {
  background: var(--mw-cream);
  border: 1px solid var(--mw-border);
  border-radius: var(--mw-radius);
  padding: 12px 16px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--mw-gold);
  background: #eef9fd;
  color: var(--mw-brown);
  border-radius: 50rem;
  font-size: .78rem;
  font-weight: 600;
  padding: 5px 13px;
  text-transform: capitalize;
  transition: var(--mw-transition);
}
.filter-pill:hover { background: var(--mw-gold); color: #fff; }
.filter-pill i { font-size: .68rem; }

/* Desktop: unified sticky filter card */
@media (min-width: 992px) {
  .shop-sidebar {
    background: #fff;
    border: 1px solid var(--mw-border);
    border-radius: var(--mw-radius);
    box-shadow: var(--mw-shadow-sm);
    padding: 6px 20px 20px;
    position: sticky;
    top: 110px;
  }
  .shop-sidebar .filter-group {
    border: none;
    border-bottom: 1px solid var(--mw-border);
    border-radius: 0;
    padding: 18px 0;
    margin-bottom: 0;
  }
  .shop-sidebar .filter-group h3 { border-bottom: none; padding-bottom: 0; margin-bottom: 12px; }
  .shop-sidebar #clearFilters { margin-top: 20px; }
}

/* Mobile: branded filter drawer */
@media (max-width: 991.98px) {
  #shopFilters.offcanvas-lg {
    width: min(86vw, 330px);
    border: none;
    border-radius: 0 22px 22px 0;
    overflow: hidden;
    box-shadow: var(--mw-shadow-lg);
  }
  [dir="rtl"] #shopFilters.offcanvas-lg { border-radius: 22px 0 0 22px; }
  #shopFilters .offcanvas-header {
    background: linear-gradient(120deg, var(--mw-brown), var(--mw-brown-dark));
    border-bottom: none;
    padding: 16px 20px;
  }
  #shopFilters .offcanvas-title { color: #fff; }
  #shopFilters .offcanvas-title i { color: var(--mw-gold-light) !important; }
  #shopFilters .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }
  #shopFilters .offcanvas-body { background: var(--mw-cream); padding: 16px; }
  #shopFilters .filter-group { box-shadow: var(--mw-shadow-sm); margin-bottom: 14px; }
  #shopFilters #clearFilters { background: #fff; }
}

/* Centered footer on phones */
@media (max-width: 767.98px) {
  .site-footer { text-align: center; }
  .site-footer h4::after { left: 50%; right: auto; transform: translateX(-50%); }
  [dir="rtl"] .site-footer h4::after { left: 50%; right: auto; transform: translateX(-50%); }
  .site-footer a:hover { padding-left: 0; padding-right: 0; }
  .site-footer .social a { margin: 0 4px; }
  .site-footer .footer-logo { margin: 0 auto; }
  .site-footer .footer-bottom .container { justify-content: center; }
}

/* ============================================================
   About page
   ============================================================ */
.value-card {
  border-left: 3px solid var(--mw-gold);
  background: #fff;
  border-radius: 0 var(--mw-radius) var(--mw-radius) 0;
  padding: 24px;
  box-shadow: var(--mw-shadow-sm);
  height: 100%;
  transition: var(--mw-transition);
}
.value-card:hover { transform: translateX(4px); box-shadow: var(--mw-shadow-md); }
.value-card i { font-size: 1.5rem; color: var(--mw-gold-dark); margin-bottom: 12px; }

.gallery-grid img {
  border-radius: var(--mw-radius);
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: var(--mw-transition);
  cursor: pointer;
}
.gallery-grid img:hover { transform: scale(1.03); box-shadow: var(--mw-shadow-md); }

.video-frame {
  border-radius: var(--mw-radius);
  overflow: hidden;
  box-shadow: var(--mw-shadow-lg);
  background: #000;
}
.video-frame video { width: 100%; display: block; max-height: 520px; object-fit: cover; }

.stat-box { text-align: center; }
.stat-box .num {
  font-family: var(--mw-font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--mw-gold);
}
.stat-box .label { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: #bcd3dd; }

/* Timeline */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--mw-gold), var(--mw-brown));
}
.timeline .t-item { position: relative; padding-bottom: 30px; }
.timeline .t-item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--mw-gold);
}
.timeline .t-item .year { font-weight: 700; color: var(--mw-gold-dark); font-size: .88rem; letter-spacing: .1em; }

/* ============================================================
   Contact page
   ============================================================ */
.contact-info-card {
  background: #fff;
  border: 1px solid rgba(20,80,107,.07);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  height: 100%;
  transition: var(--mw-transition, .25s);
  box-shadow: 0 6px 22px rgba(20,80,107,.05);
}
.contact-info-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(20,80,107,.10); }
.contact-info-card .ci {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #faf6ec;
  color: var(--mw-gold-dark, #b8962e);
  font-size: 1.25rem;
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 108px;
  z-index: 1035;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--mw-gold);
  color: #fff;
  font-size: 1rem;
  box-shadow: var(--mw-shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--mw-transition);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--mw-brown); }
@media (min-width: 992px) { .back-to-top { bottom: 28px; } }

/* Toast */
.mw-toast {
  position: fixed;
  left: 50%;
  bottom: 110px;
  transform: translate(-50%, 20px);
  z-index: 1080;
  background: rgba(51, 51, 51, .94);
  color: #fff;
  font-size: .88rem;
  font-weight: 500;
  border-radius: 50rem;
  padding: 12px 26px;
  box-shadow: var(--mw-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: var(--mw-transition);
  white-space: nowrap;
}
.mw-toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mw-toast i { color: var(--mw-gold); margin-right: 8px; }
@media (min-width: 992px) { .mw-toast { bottom: 40px; } }

/* Quick view modal */
.quickview-modal .modal-content { border-radius: var(--mw-radius); border: none; overflow: hidden; }
.quickview-modal .qv-img { background: var(--mw-cream); min-height: 320px; }
.quickview-modal .qv-img img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   Language switcher + RTL (Hebrew) support
   ============================================================ */
.lang-menu {
  border: 1px solid var(--mw-border);
  border-radius: 12px;
  box-shadow: var(--mw-shadow-md);
  min-width: 150px;
  padding: 6px;
}
.lang-menu .dropdown-item {
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
  padding: 8px 14px;
}
.lang-menu .dropdown-item:hover { background: var(--mw-cream); color: var(--mw-brown); }
.lang-menu .dropdown-item.active {
  background: var(--mw-gold);
  color: #fff;
}

[dir="rtl"] body,
[dir="rtl"] {
  font-family: var(--mw-font-body), "Arial Hebrew", "Noto Sans Hebrew", sans-serif;
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5 {
  font-family: "Playfair Display", "David Libre", Georgia, serif;
}
[dir="rtl"] .site-header .nav-link::after { transform-origin: right; }
[dir="rtl"] .site-footer h4::after { left: auto; right: 0; }
[dir="rtl"] .site-footer a:hover { padding-left: 0; padding-right: 4px; }
[dir="rtl"] .site-footer .social a { margin-right: 0; margin-left: 8px; }
[dir="rtl"] .value-card {
  border-left: none;
  border-right: 3px solid var(--mw-gold);
  border-radius: var(--mw-radius) 0 0 var(--mw-radius);
}
[dir="rtl"] .value-card:hover { transform: translateX(-4px); }
[dir="rtl"] .timeline { padding-left: 0; padding-right: 28px; }
[dir="rtl"] .timeline::before { left: auto; right: 8px; }
[dir="rtl"] .timeline .t-item::before { left: auto; right: -26px; }
[dir="rtl"] .types-toc a { margin-right: 0; margin-left: 8px; }
[dir="rtl"] .product-card .card-actions { right: auto; left: 12px; }
[dir="rtl"] .product-card .card-actions button { transform: translateX(-12px); }
[dir="rtl"] .product-card:hover .card-actions button,
[dir="rtl"] .product-card:focus-within .card-actions button { transform: translateX(0); }
[dir="rtl"] .product-card .badge-tag { left: auto; right: 12px; }
[dir="rtl"] .testimonial-card .quote-mark { right: auto; left: 22px; }
[dir="rtl"] .back-to-top { right: auto; left: 18px; }
[dir="rtl"] .skip-link { left: auto; right: 12px; }
[dir="rtl"] .hero-art { right: auto; left: -6%; }
[dir="rtl"] .edu-panel .hebrew { direction: rtl; }

/* ============================================================
   Mobile refinements
   ============================================================ */
@media (max-width: 991.98px) {
  .site-header .navbar-brand img { height: 44px; }
  .header-icons { gap: .4rem !important; }
  .header-icons .icon-btn { width: 38px; height: 38px; font-size: .9rem; }
}

@media (max-width: 575.98px) {
  /* Header: keep it on one tidy line */
  .top-bar { font-size: .68rem; }
  .site-header .navbar-brand { gap: .4rem !important; }
  .site-header .navbar-brand img { height: 40px; }
  .site-header .brand-name { font-size: 1.02rem; }
  .site-header .brand-name small { display: none; } /* tagline hidden on phones */
  .header-icons [data-search-toggle] { display: none; } /* search lives in bottom nav */
  .header-icons .icon-btn { width: 36px; height: 36px; font-size: .85rem; }
  .header-icons .badge-count { min-width: 16px; height: 16px; font-size: .58rem; }

  /* Rhythm: tighter sections on phones */
  .section-padding { padding: 48px 0; }
  .section-heading { margin-bottom: 32px; }
  .section-heading h2 { font-size: 1.55rem; }
  .section-heading p.lead-sub { font-size: .9rem; }
  .page-hero { padding: 44px 0; }
  .page-hero h1 { font-size: 1.7rem; }

  /* Hero */
  .hero { padding: 64px 0; }
  .hero .hero-badge {
    font-size: .6rem;
    letter-spacing: .12em;
    padding: 6px 14px;
    white-space: normal;
    text-align: center;
    line-height: 1.6;
  }
  /* Large buttons: trim down so long labels don't dominate the screen */
  .btn-lg { padding: .55rem 1.15rem; font-size: .9rem; }
  .hero .btn-lg { padding: .6rem 1.3rem; font-size: .92rem; }
  .hero .trust-row { font-size: .76rem; gap: .5rem 1.1rem !important; }

  /* Cards */
  .product-card .product-body { padding: 12px 12px 16px; gap: 4px; }
  .product-card .product-cat { font-size: .64rem; }
  .product-card .product-title { font-size: .85rem; }
  .product-card .rating { font-size: .7rem; }
  .product-card .price { font-size: .95rem; }
  .product-card .price del { font-size: .78rem; margin-left: 5px; }
  .product-card .quick-add { font-size: .72rem; padding: 8px; left: 8px; right: 8px; bottom: 8px; }
  .product-card .card-actions button { width: 32px; height: 32px; font-size: .76rem; }
  .product-card .badge-tag { font-size: .58rem; padding: 4px 9px; top: 8px; left: 8px; }
  .category-tile { padding: 18px 10px; gap: 8px; }
  .category-tile .icon-wrap { width: 52px; height: 52px; font-size: 1.2rem; }
  .category-tile h3 { font-size: .88rem; }
  .feature-box { padding: 22px 14px; }
  .feature-box .fi { width: 56px; height: 56px; font-size: 1.25rem; margin-bottom: 14px; }
  .feature-box h3 { font-size: .95rem; }
  .feature-box p { font-size: .82rem; }
  .testimonial-card { padding: 20px; }
  .edu-panel { padding: 36px 22px; }

  /* Shop */
  .shop-toolbar { padding: 10px 12px; }
  .shop-toolbar .form-select { min-width: 130px !important; font-size: .8rem; }

  /* Cart / product detail */
  .order-summary { position: static; padding: 20px; }
  .cart-item .thumb { width: 72px; height: 72px; }
  .product-detail .price-lg { font-size: 1.5rem; }
  .gallery-thumbs .thumb { flex-basis: 64px; width: 64px; height: 64px; }

  /* Footer */
  .site-footer .footer-main { padding: 44px 0 24px; }
  .site-footer .footer-logo img { height: 46px; }

  /* Toast above the floating nav, never wider than screen */
  .mw-toast { white-space: normal; max-width: 86vw; text-align: center; }
}

/* Very narrow devices */
@media (max-width: 374.98px) {
  .site-header .brand-name { display: none; }
  .hero .trust-row span:last-child { display: none; }
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 2000;
  background: var(--mw-brown);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ============================================================
   ABOUT PAGE — long-form storytelling components + infographics
   ============================================================ */
.about-lede { font-size: 1.18rem; line-height: 1.85; color: #4a4a4a; }
.about-lede em { color: var(--mw-brown, #6b4f2a); font-style: italic; }
.scripture-quote {
  border-left: 4px solid var(--mw-gold, #D4AF37);
  background: #faf7ef;
  padding: 1.25rem 1.5rem;
  border-radius: 0 14px 14px 0;
  margin: 1.5rem 0;
}
.scripture-quote p { font-size: 1.15rem; font-style: italic; color: #3a3a3a; margin: 0 0 .4rem; }
.scripture-quote cite { font-weight: 700; color: var(--mw-gold-dark, #b8962e); font-style: normal; font-size: .95rem; }

/* --- Mezuzah history timeline infographic --- */
.mz-timeline { position: relative; max-width: 940px; margin: 2.5rem auto 0; }
.mz-timeline::before {
  content: ""; position: absolute; left: 50%; top: 6px; bottom: 6px; width: 3px;
  background: linear-gradient(180deg, var(--mw-gold, #D4AF37), #e7d9b5);
  transform: translateX(-50%); border-radius: 3px;
}
.mz-tl-item { position: relative; width: 50%; padding: 1rem 2.75rem 1.75rem; box-sizing: border-box; }
.mz-tl-item:nth-child(odd)  { left: 0;    text-align: right; }
.mz-tl-item:nth-child(even) { left: 50%;  text-align: left; }
.mz-tl-dot {
  position: absolute; top: 1rem; width: 46px; height: 46px; border-radius: 50%;
  background: #fff; border: 2px solid var(--mw-gold, #D4AF37); display: grid; place-items: center;
  color: var(--mw-gold-dark, #b8962e); font-size: 1.05rem; box-shadow: 0 6px 18px rgba(184,146,58,.20); z-index: 1;
}
.mz-tl-item:nth-child(odd)  .mz-tl-dot { right: -23px; }
.mz-tl-item:nth-child(even) .mz-tl-dot { left: -23px; }
.mz-tl-era  { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mw-gold-dark, #b8962e); font-weight: 700; }
.mz-tl-date { font-family: var(--mw-font-heading, 'Playfair Display', serif); font-size: 1.5rem; color: var(--mw-dark, #1d3a4a); line-height: 1.1; margin: .1rem 0 .35rem; }
.mz-tl-item h4 { font-size: 1.02rem; margin: 0 0 .3rem; color: #23303a; }
.mz-tl-item p  { font-size: .9rem; color: #6b6b6b; margin: 0; line-height: 1.5; }
@media (max-width: 768px) {
  .mz-timeline::before { left: 23px; }
  .mz-tl-item { width: 100%; left: 0 !important; text-align: left !important; padding: .5rem 0 1.5rem 4rem; }
  .mz-tl-item .mz-tl-dot { left: 0 !important; right: auto !important; top: .3rem; }
}

/* --- Feature cards (Electronic Mezuzah "what it does") --- */
.mz-feature {
  background: #fff; border: 1px solid rgba(20,80,107,.07); border-radius: 16px;
  padding: 1.5rem; height: 100%; transition: var(--mw-transition, .25s);
  box-shadow: 0 6px 22px rgba(20,80,107,.05);
}
.mz-feature:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(20,80,107,.10); }
.mz-feature .mz-fi {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: #faf6ec; color: var(--mw-gold-dark, #b8962e); font-size: 1.25rem; margin-bottom: .9rem;
}
.mz-feature h4 { font-size: 1.02rem; margin: 0 0 .35rem; }
.mz-feature p { font-size: .9rem; color: #6b6b6b; margin: 0; }

/* --- Emphasis / pull statements --- */
.mz-pull { font-family: var(--mw-font-heading, serif); font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.4; color: var(--mw-dark, #1d3a4a); }
.mz-pull .g { color: var(--mw-gold-dark, #b8962e); }
