/* AZ Judaica storefront styles. Navy + gold, mobile first. */
:root {
  --navy: #14284b;
  --navy-deep: #0d1c37;
  --navy-soft: #24406f;
  --gold: #c9a24a;
  --gold-deep: #a9832f;
  --gold-soft: #f4ead2;
  --ink: #1b2233;
  --muted: #667085;
  --line: #e6e1d6;
  --paper: #fbf9f4;
  --white: #fff;
  --danger: #b42318;
  --ok: #157f3b;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 40, 75, .08);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--white); font-size: 15px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--navy); line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
p { margin: 0 0 1em; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 10px; top: 10px; background: #fff; padding: 8px; z-index: 100; }
.inline { display: inline; }
.small { font-size: .85rem; }
.r { text-align: right; }
[hidden] { display: none !important; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px;
  border: 1px solid transparent; font-weight: 600; font-size: .95rem; letter-spacing: .01em; transition: all .15s; white-space: nowrap; }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: #d8b45f; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-soft); }
.btn-navy:disabled { background: #9aa6bb; cursor: not-allowed; }
.btn-outline-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-ghost:hover { border-color: var(--navy); }
.btn-small { padding: 8px 14px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-grow { flex: 1; }
.link-gold { color: var(--gold-deep); font-weight: 600; }
.link-gold:hover { text-decoration: underline; }

/* Utility bar */
.utility { background: var(--navy-deep); color: #cfd7e6; font-size: .8rem; }
.utility-inner { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.utility a, .utility button { color: #fff; background: none; border: 0; padding: 0; }
.utility .gold { color: var(--gold); font-weight: 600; }
.utility-left, .utility-right { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.utility .dot { opacity: .5; }
@media (max-width: 760px) {
  .utility-left span:not(.dot) { display: none; }
  .utility-left .dot { display: none; }
  .utility-inner { justify-content: center; }
  .utility-left { display: none; }
}

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: #fff; box-shadow: 0 1px 0 var(--line); }
.header-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding-top: 16px; padding-bottom: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); }
.logo-mark { width: 44px; height: 44px; color: var(--gold-deep); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text strong { font-family: var(--serif); font-size: 1.45rem; letter-spacing: .14em; font-weight: 700; }
.logo-text small { font-size: .62rem; letter-spacing: .38em; text-transform: uppercase; color: var(--gold-deep); margin-top: 5px; font-weight: 600; }
.logo-light { color: #fff; }
.logo-light .logo-mark, .logo-light small { color: var(--gold); }
.search { position: relative; max-width: 560px; width: 100%; justify-self: center; }
.search input { width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 999px; padding: 0 52px 0 20px; font: inherit; background: var(--paper); }
.search input:focus { outline: 2px solid var(--gold); outline-offset: 1px; background: #fff; }
.search button { position: absolute; right: 5px; top: 5px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; display: grid; place-items: center; }
.search button svg { width: 18px; height: 18px; }
.header-icons { display: flex; gap: 6px; }
.icon-btn { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 10px; color: var(--navy); background: none; border: 0; border-radius: 10px; }
.icon-btn:hover { background: var(--paper); }
.icon-label { font-size: .7rem; font-weight: 600; color: var(--muted); }
.badge { position: absolute; top: 0; right: 4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--gold); color: var(--navy-deep); font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.menu-toggle { display: none; }

/* Main nav + mega menu */
.main-nav { background: var(--navy); }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: stretch; }
.nav-item { position: static; }
.nav-link { display: block; padding: 14px 16px; color: #fff; font-weight: 600; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.nav-link:hover, .nav-item:hover .nav-link { color: var(--gold); }
.nav-row { display: flex; align-items: stretch; }
.subnav-toggle { display: inline-flex; align-items: center; background: none; border: 0; color: var(--gold); padding: 0 10px 0 0; margin-left: -10px; }
.subnav-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .16s; }
.subnav-open .subnav-toggle svg { transform: rotate(180deg); }
.has-mega.subnav-open .mega { opacity: 1; visibility: visible; transform: none; }
.nav-aside { margin-left: auto; }
.nav-aside .nav-link { text-transform: none; letter-spacing: 0; font-weight: 500; color: #cfd7e6; }
.soon { font-style: normal; font-size: .62rem; background: rgba(201,162,74,.2); color: var(--gold); padding: 2px 6px; border-radius: 6px; margin-left: 4px; letter-spacing: .06em; vertical-align: 2px; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: var(--shadow); border-top: 3px solid var(--gold);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .16s; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega-inner { max-width: 1240px; margin: 0 auto; padding: 28px 20px; display: flex; gap: 48px; }
.mega h4 { font-family: var(--serif); font-size: 1.3rem; color: var(--navy); margin: 0 0 10px; }
.mega ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 40px; }
.mega li a { display: block; padding: 6px 0; color: var(--ink); }
.mega li a:hover { color: var(--gold-deep); }
.mega .all { color: var(--gold-deep); font-weight: 600; }
.mega-note { max-width: 320px; color: var(--muted); border-left: 1px solid var(--line); padding-left: 32px; }
.drawer-head, .drawer-foot, .nav-scrim { display: none; }

@media (max-width: 960px) {
  .header-inner { grid-template-columns: auto 1fr auto; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .menu-toggle { display: inline-flex; padding: 8px; }
  .logo { justify-self: start; }
  .logo-mark { width: 36px; height: 36px; }
  .logo-text strong { font-size: 1.15rem; }
  .search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .search input { height: 42px; }
  .search button { width: 32px; height: 32px; }
  .icon-label { display: none; }
  .hide-sm { display: none; }
  .icon-btn { padding: 8px; }
  .main-nav { position: fixed; top: 0; bottom: 0; left: 0; width: min(86vw, 360px); z-index: 60; transform: translateX(-100%);
    transition: transform .22s ease; overflow-y: auto; background: #fff; }
  .main-nav .wrap { padding: 0; }
  .nav-open .main-nav { transform: none; box-shadow: var(--shadow); }
  .nav-open { overflow: hidden; }
  .nav-scrim { position: fixed; inset: 0; background: rgba(13,28,55,.45); z-index: 55; }
  .nav-open .nav-scrim { display: block; }
  .drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 14px 20px; background: var(--navy); color: #fff;
    font-family: var(--serif); font-size: 1.4rem; }
  .drawer-head .icon-btn { color: #fff; }
  .drawer-head .icon-btn:hover { background: rgba(255,255,255,.1); }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-link { color: var(--navy); padding: 16px 20px; border-bottom: 1px solid var(--line); }
  .nav-row .nav-link { flex: 1; }
  .subnav-toggle { margin: 0; padding: 0 18px; color: var(--navy); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .subnav-toggle svg { width: 18px; height: 18px; }
  .subnav-open .subnav-toggle { color: var(--gold-deep); }
  .nav-aside { margin-left: 0; }
  .nav-aside .nav-link { color: var(--muted); }
  .mega { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: 0; background: var(--paper);
    display: none; border-bottom: 1px solid var(--line); }
  .subnav-open > .mega { display: block; }
  .mega-inner { padding: 6px 20px 12px 32px; display: block; }
  .mega h4, .mega-note { display: none; }
  .mega ul { columns: 1; }
  .drawer-foot { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
  .drawer-foot a:not(.btn) { color: var(--navy); font-weight: 600; }
}

/* Subcategory tiles on a main category page */
.subcat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 48px; }
.subcat-tile { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .2s, transform .2s, border-color .2s; }
.subcat-tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--gold); }
.subcat-media { position: relative; display: block; aspect-ratio: 1 / 1; background: #fff; }
.subcat-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8%; transition: transform .4s; }
.subcat-tile:hover .subcat-media img { transform: scale(1.04); }
.subcat-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 40%, var(--navy-soft), var(--navy-deep)); }
.subcat-ph svg { width: 34%; height: 34%; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linejoin: round; opacity: .9; }
.subcat-body { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px 16px; border-top: 3px solid var(--gold); background: var(--navy); color: #fff; }
.subcat-body strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.15; }
.subcat-count { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.subcat-more { margin: 8px 0 18px; }
@media (max-width: 1080px) { .subcat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  .subcat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 32px; }
  .subcat-body { padding: 10px 12px 12px; }
  .subcat-body strong { font-size: 1.12rem; }
  .subcat-count { font-size: .7rem; }
}

/* Messages */
.messages { margin-top: 16px; display: grid; gap: 8px; }
.msg { padding: 12px 16px; border-radius: 10px; background: #eef2f8; color: var(--navy); border-left: 4px solid var(--navy); }
.msg-success { background: #edf7f0; color: #14532d; border-color: var(--ok); }
.msg-error { background: #fdf0ef; color: #7a1d14; border-color: var(--danger); }
.msg-warning { background: #fdf6e7; color: #7a5310; border-color: var(--gold); }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% 20%, #24406f 0%, var(--navy) 45%, var(--navy-deep) 100%); color: #fff; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.eyebrow { display: inline-block; font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 14px; }
.eyebrow.dark { color: var(--gold-deep); }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.4vw, 3.8rem); }
.hero p { color: #d5dcea; font-size: 1.05rem; max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: #c3cde0; font-size: .88rem; }
.hero-points li::before { content: "✦"; color: var(--gold); margin-right: 8px; }
.hero-art { position: relative; }
.hero-art img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 22px; box-shadow: 0 30px 60px rgba(0,0,0,.35); border: 1px solid rgba(201,162,74,.4); }
.hero-chip { position: absolute; left: -18px; bottom: 24px; background: #fff; color: var(--navy); padding: 12px 18px; border-radius: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.hero-chip span { font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold-deep); font-weight: 700; }
.hero-chip strong { font-family: var(--serif); font-size: 1.2rem; }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 44px; gap: 28px; }
  .hero-chip { left: 12px; bottom: 12px; }
}

.trust { background: var(--paper); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.trust-grid div { display: flex; flex-direction: column; text-align: center; }
.trust-grid strong { color: var(--navy); font-size: .92rem; }
.trust-grid span { color: var(--muted); font-size: .8rem; }
@media (max-width: 760px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--paper); }
.section-head { margin-bottom: 26px; }
.section-head p { color: var(--muted); margin: 0; }
.section-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.section-head.row > a { white-space: nowrap; }
@media (max-width: 600px) { .section { padding: 40px 0; } }

/* Category tiles */
.tiles { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 210px; gap: 16px; }
.tile { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy); }
.tile:first-child { grid-row: span 2; }
.tile img, .tile .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tile:hover img { transform: scale(1.04); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,28,55,0) 35%, rgba(13,28,55,.82)); }
.tile-label { position: absolute; left: 20px; bottom: 18px; right: 20px; z-index: 1; color: #fff; display: flex; flex-direction: column; }
.tile-label strong { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; }
.tile-label span { font-size: .82rem; color: #e7d9b5; }
.tile-soon img { filter: saturate(.4) brightness(.8); }
@media (max-width: 860px) {
  .tiles { grid-template-columns: 1fr 1fr; grid-template-rows: 240px; grid-auto-rows: 160px; gap: 12px; }
  .tile:first-child { grid-column: span 2; grid-row: span 1; }
  .tile-label strong { font-size: 1.35rem; }
}

/* Product grid & cards */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1080px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-media { position: relative; aspect-ratio: 1; background: var(--paper); display: block; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.ph { width: 100%; height: 100%; background: repeating-linear-gradient(45deg, #f1ece0, #f1ece0 10px, #f7f3ea 10px, #f7f3ea 20px); }
.tag { position: absolute; top: 10px; left: 10px; background: var(--navy); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; }
.tag-gold { background: var(--gold); color: var(--navy-deep); }
.tag-oos { left: auto; right: 10px; background: #fff; color: var(--navy); border: 1px solid var(--navy); }
.card-oos .card-media img { opacity: .55; filter: grayscale(.35); }
/* Tile close-up: a round zoom of one tile, flush with the photo's right edge, in its bottom-right corner and
   hanging 10% of the photo's height below it. The photo is square and as wide as the card, so percentage margins
   (which follow the width) place it: 35% wide, pulled up 25% => 10% overhang, kept in flow so the text below
   starts under the circle and nothing is covered. Only products with a close-up render it. */
.card-zoom { position: relative; z-index: 1; display: block; width: 35%; aspect-ratio: 1; margin: -25% 0 0 auto; border: 4px solid #C9A44C; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 3px 10px rgba(16, 24, 40, .18); }
.card-zoom img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-oos .card-zoom img { opacity: .55; filter: grayscale(.35); }
.buybox .tag { position: static; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-cat { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.card-title { font-size: 1.25rem; margin: 0; }
.card-title a:hover { color: var(--gold-deep); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: auto; padding-top: 6px; }
.price-now { font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.price-was { color: var(--muted); font-size: .85rem; }
.price-label { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.card .price-label:first-child { color: var(--gold-deep); width: 100%; }
.card .price-label.plain { color: var(--muted); }
@media (max-width: 760px) {
  .card-zoom { border-width: 3px; }
  .card-body { padding: 10px 12px 12px; }
  .card-title { font-size: 1.08rem; }
  .price-now { font-size: .98rem; }
}

/* Band */
.band { background: var(--navy); color: #fff; border-radius: 22px; padding: 44px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  background-image: linear-gradient(120deg, rgba(201,162,74,.18), transparent 50%); }
.band h2 { color: #fff; }
.band p { color: #cfd7e6; max-width: 560px; margin: 0; }
.band-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
@media (max-width: 600px) { .band { padding: 28px 22px; } }

/* Page head, crumbs, listing */
.page-head { background: var(--paper); border-bottom: 1px solid var(--line); padding: 30px 0 26px; margin-bottom: 26px; }
.page-head h1 { margin-bottom: 4px; }
.lede { color: var(--muted); max-width: 720px; }
.crumbs { font-size: .8rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a:hover { color: var(--gold-deep); }
.crumbs-pad { padding: 18px 0 6px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; font-size: .85rem; }
.chip:hover { border-color: var(--navy); }
.listing { display: grid; grid-template-columns: 230px 1fr; gap: 32px; padding-bottom: 60px; }
.listing-main { min-width: 0; }
.listing > .listing-main:only-child { grid-column: 1 / -1; }
/* Listing filters: desktop sidebar; phone bottom sheet (see the max-width: 860px block) */
.filters-backdrop, .filters-close, .filter-open { display: none; }
.filters-panel { position: sticky; top: 150px; }
.filters-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 6px 0 10px; border-bottom: 2px solid var(--gold); }
.filters-head h2 { font-family: inherit; font-size: .95rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 0; }
.filters-clear { color: var(--gold-deep); font-size: .82rem; font-weight: 600; }
.filters fieldset { border: 0; border-bottom: 1px solid var(--line); padding: 14px 0; margin: 0; min-width: 0; }
.filters legend { font-weight: 700; color: var(--navy); padding: 0; margin-bottom: 8px; float: left; width: 100%; }
.filters legend + * { clear: both; }
.check { display: flex; gap: 10px; align-items: center; padding: 5px 0; font-size: .92rem; cursor: pointer; }
.check input { accent-color: var(--navy); width: 18px; height: 18px; flex: none; margin: 0; }
.check-label { flex: 1; }
.check-count { color: var(--muted); font-size: .78rem; min-width: 26px; text-align: center; background: var(--paper); border-radius: 999px; padding: 1px 7px; }
.check input:checked ~ .check-label { color: var(--navy); font-weight: 600; }
.check input:checked ~ .check-count { background: var(--gold-soft); color: var(--navy); }
.check.is-empty { opacity: .45; }
.price-inputs { display: flex; align-items: center; gap: 8px; }
.price-inputs label { flex: 1; display: flex; flex-direction: column; gap: 3px; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.price-inputs input { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; font: inherit; font-size: 1rem; color: var(--navy); background: #fff; }
.price-inputs input:focus { outline: 2px solid var(--gold); outline-offset: 0; }
.price-inputs .dash { padding-top: 16px; color: var(--muted); }
.fg-hint { color: var(--muted); font-size: .78rem; margin: 8px 0 10px; }
.filters-foot { display: flex; gap: 10px; padding-top: 16px; }
.filters-foot .btn { flex: 1; padding: 11px 14px; }
.filters-foot .btn-ghost { display: none; }
.filter-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 10px; background: var(--gold); color: var(--navy-deep); font-size: .72rem; font-weight: 700; padding: 0 5px; }
.result-count { margin-right: auto; }
.active-filters { align-items: center; }
.chip-on { background: var(--navy); color: #fff; border-color: var(--navy); display: inline-flex; gap: 8px; align-items: center; }
.chip-on span { color: var(--gold); font-size: 1.05rem; line-height: 1; }
.chip-on:hover { background: var(--navy-soft); }
.chip-clear { font-size: .85rem; margin-left: 4px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; color: var(--muted); font-size: .88rem; gap: 12px; }
.sort select { margin-left: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font: inherit; background: #fff; }
.pagination { display: flex; gap: 18px; justify-content: center; align-items: center; margin: 32px 0; color: var(--muted); }
.pagination a { color: var(--navy); font-weight: 600; }
.empty-state { text-align: center; padding: 56px 20px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--paper); margin-bottom: 48px; }
.empty-state p { color: var(--muted); }
@media (max-width: 860px) {
  .listing { grid-template-columns: 1fr; gap: 12px; }
  .filter-open { display: inline-flex; padding: 9px 16px; }
  .toolbar { flex-wrap: wrap; }
  .filters { position: fixed; inset: 0; z-index: 90; visibility: hidden; pointer-events: none; }
  .filters:target, .filters-open .filters { visibility: visible; pointer-events: auto; }
  .filters-backdrop { display: block; position: absolute; inset: 0; background: rgba(13, 28, 55, .55); opacity: 0; transition: opacity .2s; }
  .filters:target .filters-backdrop, .filters-open .filters-backdrop { opacity: 1; }
  .filters-panel { position: absolute; left: 0; right: 0; bottom: 0; top: auto; max-height: 88vh; max-height: 88dvh; display: flex; flex-direction: column;
    background: #fff; border-radius: 18px 18px 0 0; box-shadow: 0 -10px 40px rgba(13, 28, 55, .25); transform: translateY(100%); transition: transform .25s ease; }
  .filters:target .filters-panel, .filters-open .filters-panel { transform: none; }
  .filters-head { background: var(--navy); color: #fff; padding: 16px 18px; border-radius: 18px 18px 0 0; border-bottom: 3px solid var(--gold); align-items: center; }
  .filters-head h2 { color: #fff; font-family: var(--serif); font-size: 1.45rem; letter-spacing: 0; text-transform: none; font-weight: 600; margin-right: auto; }
  .filters-clear { color: var(--gold); }
  .filters-close { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; font-size: 1.7rem; line-height: 1; background: rgba(255, 255, 255, .1); }
  .filters-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 18px; flex: 1; }
  .filters fieldset { padding: 16px 0; }
  .check { padding: 8px 0; font-size: 1rem; }
  .check input { width: 20px; height: 20px; }
  .filters-foot { padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
  .filters-foot .btn-ghost { display: inline-flex; }
  body.filters-open { overflow: hidden; }
}
.search-page { margin: 0 auto 30px; justify-self: auto; }

/* Product page */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; padding: 10px 0 30px; }
.gallery-main { aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.gallery-main { position: relative; }
/* Product page: the close-up sits inside the photo frame, tucked into its bottom-right corner (David, Oct 20: overhanging the bordered frame looked off). */
.gallery-main .pdp-zoom { position: absolute; right: 4%; bottom: 4%; z-index: 1; display: block; width: 32%; height: auto; aspect-ratio: 1; object-fit: cover; border: 6px solid #C9A44C; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(16, 24, 40, .2); }
.thumb { flex: 0 0 76px; height: 76px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: var(--paper); }
.thumb.active { border-color: var(--gold); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.buybox h1 { font-size: clamp(2rem, 4vw, 2.7rem); margin-bottom: 6px; }
.price-lg { padding: 14px 0 6px; gap: 6px 12px; border-top: 1px solid var(--line); margin-top: 12px; }
.price-lg .price-now { font-size: 1.8rem; font-family: var(--serif); }
.price-lg .price-was { font-size: 1.05rem; }
.msrp { color: var(--muted); font-size: .85rem; margin: 0; }
.note { color: var(--muted); font-size: .85rem; margin: 6px 0 0; }
.note a { color: var(--gold-deep); font-weight: 600; }
.buy-form { margin-top: 20px; }
.opt-group { border: 0; padding: 0; margin: 0 0 18px; }
.opt-group legend { font-weight: 600; color: var(--navy); margin-bottom: 8px; font-size: .9rem; }
.opt-group legend span { color: var(--muted); font-weight: 500; }
.opt-values { display: flex; flex-wrap: wrap; gap: 8px; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: inline-block; padding: 9px 16px; border: 1px solid var(--line); border-radius: 10px; font-size: .9rem; cursor: pointer; transition: all .12s; background: #fff; }
.opt:hover span { border-color: var(--navy); }
.opt input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
.opt input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.opt.unavailable span { color: #a0a7b4; border-style: dashed; }
.opt.oos span { color: #9aa1ae; background: #f3f4f7; border-color: #dfe2e8; border-style: dashed; text-decoration: none; }
.opt.oos:hover span { border-color: #b9bfca; }
.opt.oos input:checked + span { background: #e8ebf1; color: #6b7385; border: 1px solid var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.opt-oos { font-size: .78em; font-weight: 500; color: inherit; }
.opt-oos[hidden] { display: none; }
.variant-meta { display: flex; justify-content: space-between; gap: 12px; font-size: .85rem; color: var(--muted); padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.stock { color: var(--ok); font-weight: 600; }
.stock.out { color: var(--danger); }
.qty-row { display: flex; gap: 12px; align-items: stretch; margin-top: 6px; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 44px; border: 0; background: #fff; font-size: 1.2rem; color: var(--navy); }
.qty button:hover { background: var(--paper); }
.qty input { width: 56px; border: 0; text-align: center; font: inherit; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-aside { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.wish { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; color: var(--navy); font-weight: 600; }
.wish svg { width: 20px; height: 20px; }
.wish.on svg { fill: var(--gold); stroke: var(--gold-deep); }
.perks { list-style: none; padding: 14px 16px; margin: 0; background: var(--paper); border-radius: 12px; font-size: .88rem; color: var(--ink); display: grid; gap: 6px; }
.perks li::before { content: "✓"; color: var(--gold-deep); font-weight: 700; margin-right: 8px; }
.details { margin-top: 22px; border-top: 1px solid var(--line); }
.details details { border-bottom: 1px solid var(--line); }
.details summary { padding: 16px 0; font-weight: 600; color: var(--navy); cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.details summary::after { content: "+"; font-size: 1.2rem; color: var(--gold-deep); }
.details details[open] summary::after { content: "–"; }
.prose { color: #3d4557; padding-bottom: 14px; }
.sku-table-wrap { overflow-x: auto; padding-bottom: 14px; }
.sku-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.sku-table th, .sku-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.sku-table th { color: var(--muted); font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.sku-table .r { text-align: right; }
@media (max-width: 860px) {
  .pdp { grid-template-columns: 1fr; gap: 22px; }
  .gallery { margin: 0 -20px; }
  .gallery-main { border-radius: 0; border-left: 0; border-right: 0; }
  .thumbs { padding: 0 20px; }
}

/* Forms (account, checkout) */
.narrow { max-width: 480px; margin: 40px auto 60px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.panel h1 { font-size: 2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-grid .field { margin-bottom: 0; }
.field label { font-weight: 600; font-size: .85rem; color: var(--navy); }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #d9d3c5; border-radius: 10px; padding: 12px 14px; font: inherit; background: #fff; font-size: 16px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.field .help { font-size: .78rem; color: var(--muted); }
.errorlist { list-style: none; padding: 0; margin: 0; color: var(--danger); font-size: .82rem; }
.form-foot { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; align-items: stretch; text-align: center; color: var(--muted); font-size: .9rem; }
.form-foot a { color: var(--gold-deep); font-weight: 600; }
.benefits { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 6px; color: var(--muted); font-size: .9rem; }
.benefits li::before { content: "✦ "; color: var(--gold); }
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .panel { padding: 22px 18px; border-radius: 14px; }
  .narrow { margin: 20px auto 40px; }
}

/* Cart & checkout */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; padding-bottom: 60px; }
.cart-lines { border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 92px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-line img, .cart-line .ph { width: 92px; height: 92px; object-fit: cover; border-radius: 12px; }
.cart-line h3 { font-size: 1.2rem; margin: 0; }
.cart-line .meta { font-size: .82rem; color: var(--muted); }
.cart-line .problem { color: var(--danger); font-size: .82rem; font-weight: 600; }
.cart-line .line-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-line .qty input { width: 48px; }
.cart-line .qty button { width: 36px; }
.remove { background: none; border: 0; color: var(--muted); font-size: .8rem; text-decoration: underline; padding: 0; }
.summary { position: sticky; top: 150px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.summary h2 { font-size: 1.5rem; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: .92rem; }
.sum-row.savings { color: var(--ok); }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-weight: 700; font-size: 1.1rem; color: var(--navy); }
.summary .btn { width: 100%; margin-top: 16px; }
.summary .note { text-align: center; }
.mini-lines { display: grid; gap: 10px; margin-bottom: 12px; }
.mini-line { display: flex; justify-content: space-between; gap: 10px; font-size: .85rem; }
.mini-line span:first-child { color: var(--ink); }
.pay-options { display: grid; gap: 10px; }
.pay-option { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; background: #fff; }
.pay-option:has(input:checked) { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.pay-option input { margin-top: 3px; accent-color: var(--navy); width: 18px; height: 18px; }
.pay-option strong { display: block; color: var(--navy); }
.pay-option small { color: var(--muted); }
.checkout-section { margin-bottom: 28px; }
.checkout-section h2 { font-size: 1.4rem; }
.stub-banner { background: #fff8e6; border: 1px dashed var(--gold); color: #7a5310; padding: 12px 16px; border-radius: 12px; font-size: .88rem; margin-bottom: 16px; }
@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .cart-line { grid-template-columns: 72px 1fr; }
  .cart-line img, .cart-line .ph { width: 72px; height: 72px; }
  .cart-line .line-right { grid-column: 2; align-items: flex-start; text-align: left; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
}

/* Account */
.account { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding-top: 30px; padding-bottom: 60px; }
.account-nav { display: flex; flex-direction: column; gap: 2px; }
.account-nav a { padding: 10px 14px; border-radius: 10px; color: var(--ink); font-weight: 500; }
.account-nav a.active, .account-nav a:hover { background: var(--paper); color: var(--navy); font-weight: 600; }
.account-main { min-width: 0; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0 28px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.stat span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.stat strong { font-size: 1.25rem; color: var(--navy); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; background: var(--paper); color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; padding: 10px 14px; }
.table td { padding: 12px 14px; border-top: 1px solid var(--line); }
.table td a { color: var(--navy); font-weight: 600; }
.table .r { text-align: right; }
.pill { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #e8eef8; color: var(--navy); white-space: nowrap; }
.pill-paid, .pill-shipped { background: #e6f4ea; color: #14532d; }
.pill-unpaid, .pill-awaiting_payment { background: #fdf3dc; color: #7a5310; }
.pill-overdue, .pill-cancelled { background: #fde8e6; color: #7a1d14; }
.terms-card { background: var(--navy); color: #fff; border-radius: 16px; padding: 20px 22px; margin-bottom: 24px; }
.terms-card h3 { color: #fff; font-size: 1.3rem; }
.terms-card ul { margin: 0; padding-left: 18px; color: #d5dcea; }
.terms-card strong { color: var(--gold); }
@media (max-width: 860px) {
  .account { grid-template-columns: 1fr; gap: 16px; padding-top: 16px; }
  .account-nav { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 6px; }
  .account-nav a { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: .88rem; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat-row .stat:nth-child(3):last-child { grid-column: span 2; }
  .table-mobile thead { display: none; }
  .table-mobile tr { display: grid; grid-template-columns: 1fr auto; padding: 12px 14px; border-top: 1px solid var(--line); gap: 2px 10px; }
  .table-mobile td { border: 0; padding: 0; }
  .table-mobile td.r { text-align: right; }
  .table-mobile td.hide-m { display: none; }
}

/* Invoice / receipt documents */
.doc { max-width: 820px; margin: 30px auto 60px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 36px; box-shadow: var(--shadow); }
.doc-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-bottom: 2px solid var(--gold); padding-bottom: 18px; margin-bottom: 22px; }
.doc-head h1 { font-size: 2.2rem; margin: 0; }
.doc-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 22px; font-size: .9rem; }
.doc-meta span { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.doc-total { display: flex; justify-content: flex-end; }
.doc-total table { min-width: 280px; }
.doc-total td { padding: 6px 0; }
.doc-total .grand td { font-weight: 700; font-size: 1.15rem; color: var(--navy); border-top: 1px solid var(--line); padding-top: 12px; }
.po-line { margin: 0 auto 1em; }
.po-line strong { color: var(--navy); font-size: 1.05rem; }
.pay-box { margin-top: 26px; padding: 20px; background: var(--paper); border-radius: 14px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
@media (max-width: 600px) { .doc { padding: 22px 16px; margin: 12px auto 40px; border-radius: 14px; } .doc-total table { min-width: 0; width: 100%; } }

/* Footer */
.site-footer { background: var(--navy-deep); color: #b9c3d6; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-top: 52px; padding-bottom: 36px; }
.footer-brand p { margin-top: 14px; max-width: 300px; font-size: .9rem; }
.site-footer h4 { color: #fff; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin: 6px 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .9rem; }
.site-footer a:hover { color: var(--gold); }
.footer-base { border-top: 1px solid rgba(255,255,255,.08); padding-top: 18px; padding-bottom: 26px; font-size: .8rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.home .site-footer { margin-top: 0; }

.sub { display: block; color: var(--muted); font-size: .82rem; }
.show-m { display: none; }
@media (max-width: 860px) { .show-m { display: block; } .table-mobile th.hide-m { display: none; } }

/* --- Tallit bags: round color swatches, linked design swatches, attributes --- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.swatch { display: block; width: 38px; height: 38px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(20, 40, 75, .18); }
/* Filters: round swatches in the real color, a ring when picked, name under each. */
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 10px 4px; padding-top: 2px; }
.swatch-check { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; text-align: center; min-width: 0; }
.swatch-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch-check .swatch { transition: box-shadow .12s, transform .12s; }
.swatch-check:hover .swatch { transform: scale(1.06); }
.swatch-check input:checked + .swatch { box-shadow: inset 0 0 0 1px rgba(20, 40, 75, .18), 0 0 0 3px #fff, 0 0 0 5px var(--navy); }
.swatch-check input:focus-visible + .swatch, .swatch-check input:focus-visible + .swatch-chip { outline: 2px solid var(--gold); outline-offset: 5px; }
.swatch-name { font-size: .7rem; line-height: 1.2; color: var(--muted); max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: break-word; hyphens: auto; }
.swatch-check input:checked ~ .swatch-name { color: var(--navy); font-weight: 700; }
.swatch-check.is-empty { opacity: .35; }
.swatch-text { grid-column: span 2; justify-content: center; }
.swatch-chip { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; font-size: .8rem; }
.swatch-check input:checked + .swatch-chip { background: var(--navy); color: #fff; border-color: var(--navy); }
/* Long groups (e.g. Design) scroll inside the group instead of stretching the sidebar. */
.fg-long legend small { color: var(--muted); font-weight: 500; }
.fg-long .fg-options { max-height: 264px; overflow-y: auto; padding-right: 6px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }

/* Sketch tiles (Design filter): line drawing + "(324)" beside it, 3 per row on phones, scrolls when long. */
.fg-sketches legend small { color: var(--muted); font-weight: 500; }
.sketch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-height: 420px; overflow-y: auto; padding: 3px 4px 3px 1px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.sketch-tile { position: relative; display: block; cursor: pointer; min-width: 0; }
.sketch-tile input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sketch-box { display: flex; align-items: center; justify-content: center; gap: 3px; height: 72px; padding: 5px 4px; border: 1px solid var(--line); border-radius: 8px; background: #fff; transition: border-color .12s, background .12s, box-shadow .12s; }
.sketch-box img { width: 58px; height: 58px; flex: none; object-fit: contain; }
.sketch-label { font-size: .8rem; font-weight: 700; line-height: 1.15; color: var(--navy); text-align: center; min-width: 0; overflow-wrap: break-word; }
.has-sketch .sketch-label { text-align: left; }
.sketch-label small { display: block; font-size: .64rem; font-weight: 600; color: var(--muted); line-height: 1.15; margin-bottom: 1px; }
@media (hover: hover) { .sketch-tile:hover .sketch-box { border-color: var(--gold); } }
.sketch-tile input:checked + .sketch-box { border: 2px solid var(--gold); padding: 4px 3px; background: #fffaf0; box-shadow: inset 0 0 0 1px var(--navy); }
.sketch-tile input:checked + .sketch-box::after { content: "\2713"; position: absolute; top: -5px; right: -5px; width: 18px; height: 18px; border-radius: 50%; background: var(--navy); color: var(--gold); font-size: .7rem; font-weight: 700; line-height: 18px; text-align: center; }
.sketch-tile input:focus-visible + .sketch-box { outline: 2px solid var(--gold); outline-offset: 2px; }
.sketch-tile.is-empty { opacity: .35; }
@media (min-width: 861px) {
  .listing:has(.fg-sketches) { grid-template-columns: 300px 1fr; }
  .sketch-box { height: 60px; gap: 2px; padding: 4px 3px; }
  .sketch-tile input:checked + .sketch-box { padding: 3px 2px; }
  .sketch-box img { width: 44px; height: 44px; }
  .sketch-label { font-size: .74rem; }
}

.linked-sketch { width: 34px; height: 34px; object-fit: contain; vertical-align: middle; margin: -6px 6px -4px 0; }

/* Product page: color picker as round swatches */
.opt-swatch { position: relative; display: inline-flex; padding: 4px; border-radius: 50%; cursor: pointer; }
.opt-swatch .swatch { width: 38px; height: 38px; transition: box-shadow .12s; }
.opt-swatch:hover .swatch { box-shadow: inset 0 0 0 1px rgba(20, 40, 75, .18), 0 0 0 2px #fff, 0 0 0 3px #b9bfca; }
.opt-swatch input:checked + .swatch { box-shadow: inset 0 0 0 1px rgba(20, 40, 75, .18), 0 0 0 3px #fff, 0 0 0 5px var(--navy); }
.opt-swatch input:focus-visible + .swatch { outline: 2px solid var(--gold); outline-offset: 6px; }
.opt-swatch.oos .swatch, .opt-swatch.unavailable .swatch { opacity: .45; }
.opt-swatch.oos::after, .opt-swatch.unavailable::after { content: ""; position: absolute; left: 50%; top: 6px; bottom: 6px; width: 2px; background: #9aa1ae; transform: rotate(45deg); pointer-events: none; }

/* "Other versions of Design 324": photo swatches that swap the product in place */
.linked { margin: 18px 0 20px; }
.linked-title { font-weight: 600; color: var(--navy); font-size: .9rem; margin: 0 0 10px; }
.linked-title span { color: var(--muted); font-weight: 500; }
.linked-row { display: flex; flex-wrap: wrap; gap: 10px; }
.linked-item { display: block; width: 64px; height: 64px; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--line); transition: box-shadow .12s, transform .12s; flex: none; }
.linked-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.linked-item .ph { display: block; width: 100%; height: 100%; background: var(--paper); }
.linked-item:hover { transform: translateY(-1px); box-shadow: 0 0 0 2px var(--gold-soft); }
.linked-item.current { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--navy); border-color: var(--navy); }
.linked-item:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
[data-product-root].swapping .pdp { opacity: .55; transition: opacity .15s; }
@media (max-width: 420px) {
  .linked-item { width: 58px; height: 58px; border-radius: 14px; }
  .linked-row { gap: 8px; }
}

/* Attributes under the description: Design, Style, Material (several joined: "Leather, Fur") */
.attr-list { margin: 14px 0 0; display: grid; gap: 6px; font-size: .9rem; }
.attr-list div { display: flex; gap: 10px; }
.attr-list dt { color: var(--muted); min-width: 84px; }
.attr-list dd { margin: 0; color: var(--ink); font-weight: 500; }
.opt.opt-swatch span.swatch { padding: 0; border: 0; border-radius: 50%; display: block; }

/* ---- Personalization (tallit bags) ---- */
.pz-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.pz { margin: 4px 0 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.pz.on { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.pz-toggle { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; }
.pz-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.pz-check { flex: 0 0 22px; height: 22px; border-radius: 6px; border: 2px solid var(--navy); display: grid; place-items: center; transition: background .12s; }
.pz-toggle input:checked + .pz-check { background: var(--navy); }
.pz-toggle input:checked + .pz-check::after { content: ""; width: 6px; height: 11px; border: solid var(--gold); border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.pz-toggle input:focus-visible + .pz-check { outline: 2px solid var(--gold); outline-offset: 2px; }
.pz-toggle-text { display: flex; flex-direction: column; line-height: 1.25; }
.pz-toggle-text strong { color: var(--navy); }
.pz-toggle-text small { color: var(--muted); font-size: .8rem; margin-top: 2px; }
.pz-body { padding: 0 16px 16px; border-top: 1px solid var(--line); }
.pz-body[hidden] { display: none; }
.pz-preview { margin: 14px -16px 14px; background: var(--navy-deep); line-height: 0; overflow: hidden; }
/* The canvas's own pixel width must never widen the page (its width attribute follows its CSS width). */
.pz-preview canvas { width: 100%; max-width: 100%; display: block; }
.pdp > * { min-width: 0; }
.pz-group { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.pz-group legend, .pz-label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 8px; font-size: .9rem; }
.pz-group legend span, .pz-sub { color: var(--muted); font-weight: 500; }
.pz-input-row { display: flex; gap: 8px; }
.pz-text { flex: 1; min-width: 0; font-size: 1.1rem; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink, #1b2333); }
.pz-text:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.pz-kbd-btn { flex: 0 0 auto; padding: 0 12px; border-radius: 10px; border: 1px solid var(--navy); background: #fff; color: var(--navy); font-weight: 600; font-size: .95rem; }
.pz-kbd-btn[aria-expanded="true"] { background: var(--navy); color: #fff; }
.pz-kbd-btn[hidden] { display: none; }
.pz-kbd { margin-top: 8px; padding: 8px; border-radius: 12px; background: var(--navy); }
.pz-kbd[hidden] { display: none; }
.pz-kbd-keys { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.pz-kbd button { height: 42px; border: 0; border-radius: 8px; background: #fff; color: var(--navy-deep); font-size: 1.2rem; font-weight: 600; touch-action: manipulation; }
.pz-kbd button:active { background: var(--gold-soft); }
.pz-kbd-row { display: grid; grid-template-columns: 1fr 64px 72px; gap: 5px; margin-top: 5px; }
.pz-kbd .pz-kbd-wide { font-size: .9rem; color: var(--muted); }
.pz-kbd .pz-kbd-done { background: var(--gold); font-size: .9rem; }
.pz-hint { display: flex; gap: 10px; margin: 6px 0 0; font-size: .8rem; color: var(--muted); min-height: 1.2em; }
.pz-error { color: var(--danger, #b42318); font-weight: 600; }
.pz-fonts { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.pz-font { position: relative; cursor: pointer; }
.pz-font[hidden] { display: none; }
.pz-font input { position: absolute; opacity: 0; pointer-events: none; }
.pz-font span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; transition: all .12s; }
.pz-font b { font-weight: 400; font-size: 1.45rem; line-height: 1.3; color: var(--navy-deep); white-space: nowrap; overflow: hidden; max-width: 100%; }
.pz-font small { font-size: .72rem; color: var(--muted); }
.pz-font:hover span { border-color: var(--navy); }
.pz-font input:checked + span { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: var(--gold-soft); }
.pz-font input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.opt .swatch-blind, .swatch-blind { background: repeating-linear-gradient(45deg, #3a3330 0 4px, #4a423e 4px 8px); }
.pz .opt:not(.opt-swatch) span { padding: 8px 13px; }
.pz-row3 { display: flex; flex-wrap: wrap; column-gap: 18px; }
.pz .opt[hidden] { display: none; }
.pz-charge { margin-top: 4px; padding: 10px 12px; border-radius: 10px; background: var(--paper); font-size: .9rem; color: var(--navy); }
.pz-charge strong { color: var(--navy-deep); }
.pz-each { color: var(--muted); }
.pz-line { margin-top: 6px; padding: 8px 10px; border-left: 3px solid var(--gold); background: var(--paper); border-radius: 0 8px 8px 0; font-size: .82rem; color: var(--muted); line-height: 1.5; }
.pz-line .pz-line-text { display: block; font-size: 1rem; font-weight: 700; color: var(--navy); }
@media (max-width: 560px) {
  .pz-fonts { grid-template-columns: repeat(2, 1fr); }
  .pz-kbd button { height: 40px; font-size: 1.1rem; }
}
@media (min-width: 861px) {
  /* keep the photo (and its personalization preview) in view while choosing options */
  .pdp .gallery { position: sticky; top: 150px; align-self: start; }
}

/* Sketch filter popup ("enlarge" beside the Design heading): every tile, bigger. Centred dialog on desktop, */
/* full screen with a sticky header and footer on phones. Markup: catalog/_filters.html; behaviour: store.js. */
.fg-sketches legend { display: flex; align-items: center; gap: 6px; }
.fg-sketches legend small { margin-right: auto; }
.sketch-expand { display: inline-grid; place-items: center; width: 30px; height: 30px; margin: -4px -2px -4px 0; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--gold-deep); cursor: pointer; transition: border-color .12s, color .12s, background .12s; }
.sketch-expand[hidden] { display: none; }
.sketch-expand:hover, .sketch-expand:focus-visible { border-color: var(--gold); color: var(--navy); background: var(--gold-soft); }
.sketch-expand:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
/* Tile labels never break inside a code: "(1085)" / "(V4040)" stay on one line (a size smaller when long); */
/* only the prefix above them ("Velvet Style") may wrap between words. */
.sketch-tile .sketch-label { white-space: nowrap; overflow-wrap: normal; word-break: keep-all; }
.sketch-tile .sketch-label small { white-space: normal; }
.sketch-tile.is-long .sketch-label { font-size: .68rem; letter-spacing: -.01em; }
.sketch-tile.is-long .sketch-box { gap: 2px; }
@media (min-width: 861px) { .sketch-tile.is-long .sketch-box img { width: 40px; height: 40px; } }
.sketch-modal { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 24px; }
.sketch-modal[hidden] { display: none; }
.sm-backdrop { position: absolute; inset: 0; background: rgba(13, 28, 55, .6); }
.sm-dialog { position: relative; display: flex; flex-direction: column; width: min(900px, 100%); max-height: min(88vh, 900px); max-height: min(88dvh, 900px); background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(13, 28, 55, .35); overflow: hidden; }
.sm-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px 14px 22px; background: var(--navy); color: #fff; border-bottom: 3px solid var(--gold); flex: none; }
.sm-head h2 { margin: 0 auto 0 0; color: #fff; font-family: var(--serif); font-size: 1.45rem; font-weight: 600; }
.sm-head h2 small { font-family: var(--sans); font-size: .9rem; color: var(--gold); font-weight: 500; }
.sm-close { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.sm-close:hover, .sm-close:focus-visible { background: rgba(255, 255, 255, .22); }
.sm-close:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sm-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 18px 20px; }
.sm-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.sm-tile { position: relative; display: block; cursor: pointer; min-width: 0; }
.sm-tile input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sm-box { height: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 6px 7px; border: 1px solid var(--line); border-radius: 10px; background: #fff; transition: border-color .12s, background .12s, box-shadow .12s; }
.sm-box img { width: 100%; max-width: 120px; aspect-ratio: 1; height: auto; object-fit: contain; }
.sm-noimg { display: grid; place-items: center; width: 100%; aspect-ratio: 1; max-width: 120px; color: var(--navy); font-weight: 700; font-size: .9rem; text-align: center; background: var(--paper); border-radius: 6px; }
.sm-label { max-width: 100%; font-size: .82rem; font-weight: 700; color: var(--navy); line-height: 1.2; text-align: center; overflow-wrap: normal; word-break: keep-all; }
.sm-count { font-size: .7rem; color: var(--muted); line-height: 1; }
@media (hover: hover) { .sm-tile:hover .sm-box { border-color: var(--gold); } }
.sm-tile input:checked + .sm-box { border: 2px solid var(--gold); padding: 7px 5px 6px; background: #fffaf0; box-shadow: inset 0 0 0 1px var(--navy); }
.sm-tile input:checked + .sm-box::after { content: "\2713"; position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: var(--gold); font-size: .8rem; font-weight: 700; line-height: 22px; text-align: center; }
.sm-tile input:focus-visible + .sm-box { outline: 2px solid var(--gold); outline-offset: 2px; }
.sm-tile.is-empty { opacity: .35; }
.sm-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--line); background: #fff; flex: none; }
.sm-foot .btn { min-width: 130px; padding: 11px 18px; }
body.sketch-modal-open { overflow: hidden; }
@media (max-width: 860px) { .sm-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .sketch-modal { padding: 0; }
  .sm-dialog { width: 100%; height: 100%; max-height: none; border-radius: 0; }
  .sm-head { padding: 12px 14px 12px 18px; padding-top: calc(12px + env(safe-area-inset-top)); }
  .sm-body { padding: 14px 14px; }
  .sm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .sm-foot { padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); }
  .sm-foot .btn { flex: 1; min-width: 0; }
}

/* Sketch popup sections (values gathered under headers, e.g. Design themes): header with a gold count and
   "See all"; a collapsed section shows its first two rows (6 / 5 / 3 tiles a row by width). */
.sm-section + .sm-section { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.sm-sec-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; }
.sm-sec-head h3 { margin: 0 auto 0 0; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--navy); }
.sm-sec-count { margin-left: 4px; font-family: var(--sans); font-size: .85rem; font-weight: 600; color: var(--gold-deep); }
.sm-more { padding: 4px 2px; border: 0; background: none; color: var(--navy); font-size: .88rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.sm-more:hover, .sm-more:focus-visible { color: var(--gold-deep); text-decoration: underline; }
.sm-section.is-collapsed .sm-tile:nth-child(n+13) { display: none; }
@media (max-width: 860px) {
  .sm-section.is-collapsed .sm-tile:nth-child(n+11) { display: none; }
}
@media (max-width: 640px) {
  .sm-section.is-collapsed .sm-tile:nth-child(n+7) { display: none; }
  .sm-section + .sm-section { margin-top: 18px; padding-top: 14px; }
}
