/* Lebovic Judaica — public catalog. Mobile first. No scripts. */
:root {
  --ink: #1d2433;
  --muted: #6b7280;
  --blue: #1f3a5f;
  --blue-dark: #152a46;
  --gold: #b8893a;
  --cream: #faf7f1;
  --paper: #ffffff;
  --line: #e7e1d6;
  --wa: #25d366;
  --wa-dark: #1ebe5b;
  --radius: 12px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); line-height: 1.5; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: 1.8rem; }
h2 { font-size: 1.4rem; margin-top: 2rem; }
h3 { font-size: 1.05rem; }
.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* header */
.site-header { background: var(--blue); color: #fff; }
/* the brand tag fills the left corner of the bar; name, search and categories stack to its right */
.header-grid { display: flex; align-items: center; gap: 14px; padding: 10px 16px 8px; }
.brand-tag-link { flex: 0 0 auto; display: block; }
.brand-tag { height: 132px; width: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); }
.header-main { flex: 1 1 0; min-width: 0; }
.header-row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding-bottom: 8px; }
.brand { color: #fff; text-decoration: none; font-family: var(--serif); font-size: 1.35rem; }
.search { display: flex; flex: 1 1 200px; min-width: 0; }
.search input { flex: 1; min-width: 0; border: 0; border-radius: 8px 0 0 8px; padding: 10px 12px; font-size: 1rem; }
.search button { border: 0; border-radius: 0 8px 8px 0; padding: 10px 14px; background: var(--gold); color: #fff; font-weight: 600; cursor: pointer; }
.cats { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats a { white-space: nowrap; color: #e8edf5; text-decoration: none; padding: 6px 12px; border-radius: 999px; font-size: .95rem; }
.cats a.on, .cats a:hover { background: rgba(255,255,255,.14); color: #fff; }

/* hero */
.hero { text-align: center; padding: 1.5rem 0 1rem; }
.hero h1 { font-size: 2.2rem; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 .5rem; }
.welcome { max-width: 60ch; margin: .5rem auto 1rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; padding: 12px 22px; font-weight: 700; text-decoration: none; font-size: 1rem; }
.btn svg { flex: 0 0 auto; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }
.btn-big { width: 100%; justify-content: center; padding: 16px 22px; font-size: 1.1rem; }

/* tiles and cards */
.tiles, .cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tile, .card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: transform .12s; }
.tile:hover, .card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(31,58,95,.10); }
.tile-photo, .card-photo { position: relative; aspect-ratio: 1 / 1; background: #f1ede5; display: flex; align-items: center; justify-content: center; }
.tile-photo img, .card-photo img { width: 100%; height: 100%; object-fit: cover; }
.no-photo { color: #cfc5b2; font-size: 3rem; }
.tile-name { padding: 10px 12px; font-family: var(--serif); font-size: 1.05rem; }
.tile-name small { color: var(--muted); font-family: var(--sans); font-size: .85rem; }
.card-body { padding: 10px 12px 12px; }
.card-body h3 { font-family: var(--sans); font-weight: 600; font-size: .98rem; }
.price { color: var(--blue); font-weight: 700; margin: 0; }
.price.big { font-size: 1.5rem; margin: .25rem 0 1rem; }
.badge { position: absolute; top: 10px; left: 10px; background: #b91c1c; color: #fff; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing: .02em; }
.badge.inline { position: static; font-size: .85rem; vertical-align: middle; margin-right: 8px; }

/* product page */
.crumbs { font-size: .9rem; color: var(--muted); margin: 1rem 0; }
.crumbs a { color: var(--muted); }
.product { display: grid; gap: 20px; margin-bottom: 2rem; }
.main-photo { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.main-photo img { width: 100%; height: auto; max-height: 70vh; object-fit: contain; }
.no-photo-box { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 8px; }
.thumbs a { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; aspect-ratio: 1 / 1; background: #fff; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.description { margin-top: 1.25rem; font-size: 1.05rem; }
.description p { margin: 0 0 .9rem; white-space: pre-line; }

/* contact, empty */
.contact p { font-size: 1.05rem; }
.contact .btn-big { max-width: 420px; }
.empty { background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); padding: 1.2rem; color: var(--muted); }

/* footer */
.site-footer { margin-top: 3rem; background: var(--blue-dark); color: #d9dee8; padding: 2rem 0 5rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0 0 .4rem; }
.footer-brand { font-family: var(--serif); font-size: 1.2rem; color: #fff; }
.footer-grid { display: grid; gap: 16px; }

/* floating WhatsApp bubble */
.wa-bubble { position: fixed; right: 16px; bottom: 16px; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); z-index: 10; }
.wa-bubble:hover { background: var(--wa-dark); }

@media (min-width: 640px) {
  .brand-tag { height: 108px; }
  .brand { font-size: 1.5rem; }
  .tiles, .cards { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  h1 { font-size: 2.1rem; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .product { grid-template-columns: 1.1fr 1fr; align-items: start; }
  .btn-big { width: auto; min-width: 320px; }
}
