/* Otzar LaTalmid — the store look (Nov 30 2026).
   Structure like ArtScroll / Eichler's (top strip, logo + search, category bar, banner, category tiles,
   shelves), dressed warm and homey in the colours of their own books: paper cream, burgundy leather,
   gold, and the mustard of the children's books (badges only).
   Plain CSS on purpose: no :has, no nesting, no flex `gap`, no `inset` — older tablets read it too. */

:root {
	--paper: #fbf6ec;
	--paper-2: #f4ecdd;
	--card: #fffdf8;
	--tile: #f6efe2;
	--ink: #2b211c;
	--ink-2: #574840;
	--muted: #8a7868;
	--line: #e8ddc9;
	--burgundy: #6b1e2b;
	--burgundy-2: #521621;
	--burgundy-soft: #f3e3e0;
	--gold: #b8893b;
	--gold-soft: #e9d6aa;
	--mustard: #eab63e;
	--display: "Fraunces", "Frank Ruhl Libre", Georgia, serif;
	--hebrew: "Frank Ruhl Libre", "Fraunces", Georgia, serif;
	--sans: "Assistant", "Segoe UI", Helvetica, Arial, sans-serif;
	--radius: 18px;
	--shadow: 0 10px 30px rgba(74, 40, 22, 0.10);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink-2);
	background-color: var(--paper);
	/* a faint paper grain, so the cream never looks flat */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .3 0 0 0 0 .16 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; border: 0; }
a { color: var(--burgundy); }
h1, h2, h3 {
	font-family: var(--display);
	font-variation-settings: "SOFT" 100;
	color: var(--ink);
	font-weight: 600;
	line-height: 1.18;
	margin: 0;
}
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 22px; }
.hebrew, [lang="he"], [lang="yi"] { font-family: var(--hebrew); }
.para { margin-top: 1rem; font-size: 1.06rem; line-height: 1.75; }
.para:first-child { margin-top: 0; }
[data-empty] { display: none !important; }
.email-plain { overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
	display: inline-block;
	font-family: var(--sans);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.2;
	letter-spacing: 0.01em;
	padding: 0.8rem 1.6rem;
	border-radius: 999px;
	border: 2px solid var(--burgundy);
	background: var(--burgundy);
	color: #fff8ec;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn:hover { background: var(--burgundy-2); border-color: var(--burgundy-2); color: #fff8ec; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--burgundy); }
.btn-ghost:hover { background: var(--burgundy); color: #fff8ec; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-gold:hover { background: #9e742f; border-color: #9e742f; }
.btn-sm { font-size: 0.88rem; padding: 0.45rem 1rem; border-width: 1.5px; }
.btn[disabled] { opacity: 0.6; cursor: default; }
.btn + .btn { margin-left: 0.7rem; }

/* ── Top strip ───────────────────────────────────────────────────────── */
.topstrip { background: var(--burgundy-2); color: #f6e9d2; font-size: 0.9rem; }
.topstrip .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-top: 0.45rem; padding-bottom: 0.45rem; }
.topstrip a { color: #f6e9d2; text-decoration: none; }
.topstrip a:hover { color: var(--gold-soft); text-decoration: underline; }
.ts-contact a { white-space: nowrap; }
.ts-contact .dot { margin: 0 0.55rem; opacity: 0.55; }
.ts-note a { text-decoration: underline; text-decoration-color: rgba(233, 214, 170, 0.6); text-underline-offset: 3px; }
.ts-ico { display: inline-block; vertical-align: -2px; margin-right: 0.35rem; opacity: 0.85; }

/* ── Header: logo · search · order ───────────────────────────────────── */
.site-head { background: var(--card); border-bottom: 1px solid var(--line); }
.head-in { display: flex; align-items: center; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.logo { display: block; flex: 0 0 auto; margin-right: 2rem; line-height: 0; }
.logo img { height: 58px; width: auto; }
.search { flex: 1 1 auto; max-width: 600px; display: flex; position: relative; margin-right: 1.5rem; }
.search input {
	flex: 1 1 auto;
	min-width: 0;
	font: inherit;
	font-size: 1rem;
	color: var(--ink);
	background: var(--paper);
	border: 1.5px solid var(--line);
	border-right: 0;
	border-radius: 999px 0 0 999px;
	padding: 0.7rem 1.1rem;
	-webkit-appearance: none;
}
.search input:focus { outline: none; border-color: var(--gold); background: #fff; }
.search button {
	flex: 0 0 auto;
	width: 54px;
	border: 0;
	border-radius: 0 999px 999px 0;
	background: var(--burgundy);
	color: #fff8ec;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.search button:hover { background: var(--burgundy-2); }
.head-cta { flex: 0 0 auto; margin-left: auto; }

/* ── Category bar ────────────────────────────────────────────────────── */
.catbar {
	background: var(--burgundy);
	border-bottom: 3px solid var(--gold-soft);
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	z-index: 40;
	box-shadow: 0 4px 14px rgba(60, 20, 20, 0.12);
}
.catbar .wrap { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; scrollbar-width: none; }
.catbar .wrap::-webkit-scrollbar { display: none; }
.catbar a, #cat-links a {
	display: inline-block;
	flex: 0 0 auto;
	color: #fbeedd;
	text-decoration: none;
	font-weight: 600;
	font-size: 1.02rem;
	padding: 0.85rem 1.05rem;
	border-bottom: 3px solid transparent;
	margin-bottom: -3px;
	transition: background 0.2s, border-color 0.2s;
}
#cat-links { display: inline-flex; flex: 0 0 auto; }
.catbar a:hover { background: var(--burgundy-2); }
.catbar a.on { border-bottom-color: var(--mustard); background: rgba(0, 0, 0, 0.12); }
.catbar .cb-right { margin-left: auto; }

/* ── "Coming Soon" ribbon (admin switch) ─────────────────────────────── */
.announce {
	background: #f9e6b4;
	background-image: linear-gradient(90deg, #f7e0a6, #fbefcf 50%, #f7e0a6);
	border-bottom: 1px solid #ecd08a;
	text-align: center;
	padding: 0.85rem 22px;
}
.announce-text { display: inline; font-family: var(--display); font-weight: 700; font-size: 1.45rem; color: var(--burgundy); }
.announce-sub { display: inline; margin-left: 0.6rem; font-size: 1.05rem; color: var(--ink-2); }
.announce-sub:empty { display: none; }
.announce .gem { display: inline-block; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); margin: 0 0.9rem; vertical-align: 4px; }

/* ── Banner slider ───────────────────────────────────────────────────── */
.hero { padding: 26px 0 6px; }
.slider { position: relative; display: grid; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.slide {
	grid-area: 1 / 1;
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	align-items: center;
	grid-column-gap: 24px;
	padding: 44px 64px;
	min-height: 430px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.9s ease, visibility 0.9s;
	position: relative;
	background: linear-gradient(120deg, #f6e6cc, #fcf5ea 70%);
}
.slide.is-on { opacity: 1; visibility: visible; z-index: 1; }
.slide.s2 { background: linear-gradient(120deg, #faeab9, #fdf7e6 70%); }
.slide.s3 { background: linear-gradient(120deg, #f4dfd9, #fcf3ef 70%); }
.slide::before { /* soft dotted pattern on the right, like a printed endpaper (painted under the books) */
	content: "";
	position: absolute;
	top: 0; right: 0; bottom: 0;
	width: 52%;
	background-image: radial-gradient(rgba(107, 30, 43, 0.09) 1.2px, transparent 1.6px);
	background-size: 18px 18px;
	pointer-events: none;
}
.slide-text { text-align: center; position: relative; }
.kicker { display: block; font-family: var(--sans); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.06em; color: var(--gold); }
.slide-title { margin-top: 0.7rem; font-size: 2.7rem; line-height: 1.15; }
.slide-lead { margin: 1rem auto 0; max-width: 32rem; font-size: 1.15rem; color: var(--ink-2); }
.slide-btns { margin-top: 1.7rem; }
/* No z-index / transform on the way down to the books: the covers' white photo background must blend into the banner. */
.slide-art { position: relative; }
.slider-arrow {
	position: absolute;
	top: 50%;
	z-index: 5;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	border-radius: 50%;
	border: 1px solid var(--line);
	background: rgba(255, 253, 248, 0.92);
	color: var(--burgundy);
	font-size: 1.6rem;
	line-height: 40px;
	text-align: center;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(74, 40, 22, 0.12);
}
.slider-arrow:hover { background: #fff; color: var(--burgundy-2); }
.slider-arrow.prev { left: 14px; }
.slider-arrow.next { right: 14px; }
.dots { text-align: center; margin-top: 14px; }
.dots button {
	width: 11px; height: 11px;
	margin: 0 5px;
	padding: 0;
	border-radius: 50%;
	border: 1.5px solid var(--burgundy);
	background: transparent;
	cursor: pointer;
}
.dots button.on { background: var(--burgundy); }

/* books standing on the banner */
.stand { display: flex; align-items: flex-end; justify-content: center; height: 330px; }
.stand-book { flex: 0 0 auto; width: 30%; max-width: 200px; margin: 0 1.2%; cursor: pointer; position: relative; mix-blend-mode: multiply; }
.stand-book img { display: block; width: 100%; height: auto; max-height: 300px; object-fit: contain; }
.stand.n3 .b2 { width: 37%; max-width: 240px; z-index: 2; }
.stand.n3 .b2 img { max-height: 330px; }
.stand.n4 .stand-book { width: 23%; }
.stand-book.b1 { -webkit-animation: float 6s ease-in-out infinite; animation: float 6s ease-in-out infinite; }
.stand-book.b2 { -webkit-animation: float 6s ease-in-out 1.2s infinite; animation: float 6s ease-in-out 1.2s infinite; }
.stand-book.b3 { -webkit-animation: float 6s ease-in-out 2.4s infinite; animation: float 6s ease-in-out 2.4s infinite; }
.stand-book.b4 { -webkit-animation: float 6s ease-in-out 3.6s infinite; animation: float 6s ease-in-out 3.6s infinite; }
@-webkit-keyframes float { 0%, 100% { -webkit-transform: translateY(0); } 50% { -webkit-transform: translateY(-7px); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ── Sections ────────────────────────────────────────────────────────── */
.section { padding: 58px 0 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.sec-head h2 { font-size: 2rem; }
.sec-head h2::after, .page-head h1::after, .center-head h2::after {
	content: "";
	display: block;
	width: 74px;
	height: 10px;
	margin-top: 10px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='74' height='10' viewBox='0 0 74 10'%3E%3Cpath d='M1 6c6-5 12-5 18 0s12 5 18 0 12-5 18 0 12 5 18 0' fill='none' stroke='%23b8893b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat;
}
.center-head { text-align: center; margin-bottom: 28px; }
.center-head h2 { font-size: 2rem; }
.center-head h2::after { margin-left: auto; margin-right: auto; }
.more { font-weight: 700; color: var(--burgundy); text-decoration: none; white-space: nowrap; padding-bottom: 6px; }
.more:hover { text-decoration: underline; }

/* category tiles (Eichler's "Books / Seforim") */
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); grid-gap: 22px; }
.cat-tile {
	display: block;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform 0.25s, box-shadow 0.25s;
}
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-covers { display: flex; align-items: flex-end; justify-content: center; height: 210px; padding: 22px 16px 14px; background: #f6e6cc; }
.cat-tile:nth-child(3n+2) .cat-covers { background: #faeab9; }
.cat-tile:nth-child(3n+3) .cat-covers { background: #f4dfd9; }
.cat-cover { flex: 0 1 31%; margin: 0 1%; }
.cat-cover img { display: block; width: 100%; height: auto; max-height: 172px; object-fit: contain; mix-blend-mode: multiply; }
.cat-body { display: block; padding: 16px 20px 18px; }
.cat-name { display: block; font-family: var(--display); font-variation-settings: "SOFT" 100; font-weight: 600; font-size: 1.4rem; color: var(--ink); line-height: 1.2; }
.cat-count { display: block; color: var(--muted); font-size: 0.95rem; margin-top: 2px; }
.cat-more { display: inline-block; margin-top: 8px; color: var(--burgundy); font-weight: 700; }

/* Cover photos come with a near-white (not pure white) studio background: lift it to white so `multiply` lets it vanish. */
.book-img img, .stand-book img, .cat-cover img, .open-photo { -webkit-filter: brightness(1.07) contrast(1.03); filter: brightness(1.07) contrast(1.03); }

/* books (ArtScroll product tiles) */
.shelf, .book-grid { display: grid; grid-gap: 22px; }
.shelf { grid-template-columns: repeat(4, 1fr); }
.book-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.book {
	display: flex;
	flex-direction: column;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	text-align: center;
	transition: box-shadow 0.25s, transform 0.25s;
}
.book:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.book-img { position: relative; height: 250px; padding: 18px; background: var(--tile); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.book-img img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; transition: transform 0.35s; }
.book:hover .book-img img { transform: scale(1.04); }
.badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--mustard);
	color: var(--ink);
	font-weight: 700;
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.2rem 0.65rem;
	border-radius: 999px;
}
.peek {
	position: absolute;
	left: 50%;
	bottom: 12px;
	transform: translate(-50%, 6px);
	background: rgba(43, 33, 28, 0.82);
	color: #fbeedd;
	font-size: 0.8rem;
	font-weight: 600;
	padding: 0.3rem 0.85rem;
	border-radius: 999px;
	opacity: 0;
	transition: opacity 0.25s, transform 0.25s;
	pointer-events: none;
	white-space: nowrap;
}
.book-img:hover .peek, .book-img:focus .peek { opacity: 1; transform: translate(-50%, 0); }
.book-body { flex: 1 1 auto; display: flex; flex-direction: column; padding: 14px 16px 16px; }
.book-he { font-family: var(--hebrew); font-weight: 700; font-size: 1.45rem; line-height: 1.25; text-align: center; }
.book-en { font-weight: 700; color: var(--ink-2); font-size: 0.98rem; margin-top: 2px; }
.book-sub { color: var(--muted); font-size: 0.92rem; margin-top: 2px; line-height: 1.4; }
.book-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; }
.price { font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--burgundy); }
.price.ask { font-family: var(--sans); font-weight: 600; font-size: 0.9rem; color: var(--muted); }
.book.is-hidden { display: none; }

/* homey "about us" band */
.story-band { margin-top: 64px; background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 56px 0; }
.story { display: grid; grid-template-columns: 0.95fr 1.05fr; grid-column-gap: 56px; align-items: center; }
.polaroid { background: #fff; padding: 12px 12px 40px; box-shadow: 0 14px 34px rgba(74, 40, 22, 0.16); transform: rotate(-1.6deg); border-radius: 4px; position: relative; }
.polaroid img { display: block; width: 100%; height: auto; border-radius: 2px; }
.polaroid::before { /* a bit of tape */
	content: "";
	position: absolute;
	top: -12px;
	left: 50%;
	width: 110px;
	height: 26px;
	margin-left: -55px;
	background: rgba(233, 214, 170, 0.75);
	transform: rotate(2deg);
}
.story h2 { font-size: 2rem; margin-top: 0.5rem; }
.story-body { margin-top: 1rem; }
.story .more { display: inline-block; margin-top: 1.1rem; }

/* reassurance strip */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 18px; }
.trust-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 22px 84px; position: relative; }
.trust-ico { position: absolute; left: 20px; top: 22px; width: 48px; height: 48px; border-radius: 50%; background: var(--burgundy-soft); color: var(--burgundy); display: flex; align-items: center; justify-content: center; }
.trust-item h3 { font-size: 1.15rem; }
.trust-item p { font-size: 0.97rem; color: var(--muted); margin-top: 3px; line-height: 1.5; }

/* ── Inner pages ─────────────────────────────────────────────────────── */
.page-head {
	background: var(--paper-2);
	background-image: radial-gradient(rgba(107, 30, 43, 0.07) 1.2px, transparent 1.6px);
	background-size: 18px 18px;
	border-bottom: 1px solid var(--line);
	padding: 34px 0 34px;
}
.crumbs { font-size: 0.92rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--burgundy); text-decoration: underline; }
.page-head h1 { font-size: 2.5rem; margin-top: 0.4rem; }
.page-head .lead { margin-top: 0.9rem; max-width: 46rem; font-size: 1.12rem; }

.toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 28px 0 22px; }
.chips { display: flex; flex-wrap: wrap; }
.chip {
	font: inherit;
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--ink-2);
	background: var(--card);
	border: 1.5px solid var(--line);
	border-radius: 999px;
	padding: 0.4rem 1rem;
	margin: 0 0.5rem 0.5rem 0;
	cursor: pointer;
}
.chip:hover { border-color: var(--gold); }
.chip.on { background: var(--burgundy); border-color: var(--burgundy); color: #fff8ec; }
.chip-n { display: inline-block; min-width: 1.5em; font-size: 0.8rem; padding: 0 0.4em; border-radius: 999px; background: rgba(0, 0, 0, 0.08); margin-left: 0.2rem; }
.found { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.5rem; }
.no-results { display: none; text-align: center; padding: 40px 10px; color: var(--muted); font-size: 1.1rem; }
.no-results.show { display: block; }

.panel-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 32px; }
.panel-card h2 { font-size: 1.6rem; }
.order-help { margin-top: 56px; display: grid; grid-template-columns: 1.3fr 0.7fr; grid-column-gap: 30px; align-items: center; }
.order-help p { margin-top: 0.6rem; }
.order-help .side { text-align: center; }
.order-help .side .note { margin-top: 0.8rem; font-size: 0.93rem; color: var(--muted); }

.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; grid-column-gap: 56px; align-items: center; padding-top: 48px; }
.about-grid h2 { font-size: 2rem; margin-bottom: 0.4rem; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 18px; margin-top: 8px; }
.value { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; text-align: center; }
.value-ico { width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 50%; background: var(--burgundy-soft); color: var(--burgundy); display: flex; align-items: center; justify-content: center; }
.value h3 { font-size: 1.3rem; }
.value p { margin-top: 0.4rem; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; grid-gap: 24px; padding-top: 44px; align-items: start; }
.contact-grid p { margin-top: 0.7rem; }
.contact-line { display: flex; align-items: center; margin-top: 1rem; font-size: 1.08rem; }
.contact-line .trust-ico { position: static; flex: 0 0 auto; margin-right: 14px; width: 44px; height: 44px; }
.contact-line a { color: var(--ink); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.contact-line a:hover { color: var(--burgundy); text-decoration: underline; }
.contact-note { margin-top: 1.2rem; padding: 12px 16px; border-radius: 12px; background: #fbefcf; color: var(--ink-2); font-size: 0.97rem; }

.simple { text-align: center; padding: 70px 22px 40px; }
.simple img { height: 90px; width: auto; }
.simple h1 { font-size: 2.4rem; margin-top: 1.2rem; }
.simple p { max-width: 34rem; margin: 0.9rem auto 0; font-size: 1.1rem; }
.simple .btn { margin-top: 1.6rem; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-foot { margin-top: 72px; background: #3a1d1b; color: #e9d9c2; font-size: 0.97rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; grid-gap: 34px; padding-top: 52px; padding-bottom: 40px; }
.foot-logo { height: 54px; width: auto; display: block; }
.foot-tag { margin-top: 0.9rem; font-family: var(--display); font-style: italic; font-size: 1.12rem; color: #f3e6cc; }
.foot-about { margin-top: 0.6rem; color: #cdb9a0; line-height: 1.6; }
.site-foot h3 { font-family: var(--sans); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 0.9rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 0.5rem; }
.site-foot a { color: #e9d9c2; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-contact span, .foot-contact a { display: block; margin-bottom: 0.45rem; }
.foot-contact .btn { display: inline-block; margin-top: 0.6rem; color: #fff8ec; text-decoration: none; }
.foot-bottom { border-top: 1px solid rgba(233, 217, 194, 0.15); text-align: center; padding: 18px 22px; font-size: 0.85rem; color: #b49e85; }

/* ── Quick view + order / message forms ──────────────────────────────── */
.sefer-lightbox {
	position: fixed;
	top: 0; right: 0; bottom: 0; left: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	background: rgba(43, 25, 20, 0.72);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.28s ease;
}
.sefer-lightbox.open { opacity: 1; pointer-events: auto; }
.sefer-lightbox .panel {
	position: relative;
	background: var(--card);
	border-radius: 22px;
	max-width: 58rem;
	width: 100%;
	max-height: calc(100vh - 2.5rem);
	overflow-y: auto;
	padding: 2rem;
	transform: translateY(14px);
	transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
	box-shadow: 0 30px 80px rgba(20, 10, 5, 0.35);
}
.sefer-lightbox.open .panel { transform: translateY(0); }
.lb-close {
	position: absolute;
	top: 0.9rem;
	right: 0.9rem;
	z-index: 3;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	border: 1px solid var(--line);
	background: var(--paper);
	color: var(--ink);
	font-size: 1.05rem;
	line-height: 1;
	cursor: pointer;
}
.lb-close:hover { color: var(--burgundy); border-color: var(--gold); }
body.lightbox-open { overflow: hidden; }

.qv-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; grid-column-gap: 32px; align-items: center; }
.lb-stage { position: relative; background: var(--tile); border-radius: 16px; padding: 18px; text-align: center; }
.open-photo { display: block; margin: 0 auto; max-width: 100%; max-height: 60vh; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.lb-nav {
	position: absolute;
	top: 50%;
	margin-top: -21px;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid var(--line);
	background: rgba(255, 253, 248, 0.94);
	color: var(--burgundy);
	font-size: 1.6rem;
	line-height: 38px;
	cursor: pointer;
}
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lb-dots { text-align: center; margin-top: 12px; }
.lb-dot { width: 10px; height: 10px; margin: 0 4px; padding: 0; border-radius: 50%; border: 1.5px solid var(--burgundy); background: transparent; cursor: pointer; }
.lb-dot.active { background: var(--burgundy); }
.qv-info { text-align: center; }
.lb-cat { display: inline-block; font-size: 0.85rem; font-weight: 700; color: var(--gold); letter-spacing: 0.05em; }
.lb-cat:empty { display: none; }
.lb-title { font-family: var(--hebrew); font-size: 2.2rem; font-weight: 700; margin-top: 0.3rem; }
.lb-sub { font-weight: 700; color: var(--ink-2); margin-top: 0.2rem; }
.lb-sub:empty { display: none; }
.lb-desc { color: var(--ink-2); line-height: 1.7; margin-top: 0.9rem; white-space: pre-line; }
.lb-desc:empty { display: none; }
.lb-price { font-family: var(--display); font-size: 2rem; font-weight: 700; color: var(--burgundy); margin-top: 1rem; }
.lb-price.ask { font-family: var(--sans); font-size: 1rem; color: var(--muted); }
.lb-order { margin-top: 1.1rem; }
.lb-help { margin-top: 0.9rem; font-size: 0.93rem; color: var(--muted); }

.order-modal .panel { max-width: 31rem; }
.of-heading { font-size: 1.8rem; text-align: center; }
.of-sefer { text-align: center; color: var(--burgundy); margin-top: 0.4rem; font-weight: 600; }
.order-form { margin-top: 1rem; }
.order-form label { display: block; margin-top: 0.85rem; font-weight: 700; font-size: 0.92rem; color: var(--ink-2); }
.order-form input:not([type=hidden]):not(.hp-field), .order-form textarea {
	display: block;
	width: 100%;
	margin-top: 0.3rem;
	border: 1.5px solid var(--line);
	border-radius: 12px;
	background: var(--paper);
	color: var(--ink);
	font: inherit;
	font-weight: 400;
	padding: 0.6rem 0.8rem;
}
.order-form input:focus, .order-form textarea:focus { outline: none; border-color: var(--gold); background: #fff; }
.order-form .of-submit { display: block; width: 100%; margin-top: 1.3rem; }
.order-form .of-note { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 0.7rem; }
.order-form .hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.order-form .of-error { color: #8c2f2f; font-size: 0.95rem; margin-top: 0.9rem; text-align: center; }
.order-form .of-error:empty { display: none; }
.order-modal .of-done { display: none; text-align: center; padding: 1rem 0 0.5rem; }
.order-modal.sent .of-done { display: block; }
.order-modal.sent .order-form, .order-modal.sent .of-sefer { display: none; }
.of-done-mark { font-size: 2.4rem; line-height: 1; color: var(--gold); }
.of-done-text { margin: 1rem auto 1.5rem; max-width: 24rem; font-size: 1.1rem; line-height: 1.6; }

/* ── A gentle rise on first view ─────────────────────────────────────── */
.rise { -webkit-animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
.rise-2 { -webkit-animation-delay: 0.1s; animation-delay: 0.1s; }
.rise-3 { -webkit-animation-delay: 0.2s; animation-delay: 0.2s; }
@-webkit-keyframes rise { from { opacity: 0; -webkit-transform: translateY(14px); } to { opacity: 1; -webkit-transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
	.rise, .stand-book { -webkit-animation: none !important; animation: none !important; }
	.slide { transition: none; }
}

/* ── The admin editing the page (?edit=1): every slide visible, one under the other ── */
body.editing .slider { display: block; }
body.editing .slide { opacity: 1; visibility: visible; margin-bottom: 12px; }
body.editing .slider-arrow, body.editing .dots { display: none; }
body.editing .stand-book { -webkit-animation: none; animation: none; }

/* ── Tablets & phones ────────────────────────────────────────────────── */
@media (max-width: 1000px) {
	.slide { padding: 36px 40px; }
	.slide-title { font-size: 2.2rem; }
	.shelf { grid-template-columns: repeat(3, 1fr); }
	.foot-grid { grid-template-columns: 1fr 1fr; }
	.trust { grid-template-columns: 1fr; }
	.order-help { grid-template-columns: 1fr; }
	.order-help .side { margin-top: 1.2rem; }
}
@media (max-width: 760px) {
	body { font-size: 16px; }
	.wrap { padding: 0 16px; }
	.topstrip .wrap { justify-content: center; text-align: center; }
	.ts-note { display: none; }
	.head-in { flex-wrap: wrap; padding-top: 0.7rem; padding-bottom: 0.7rem; }
	.logo { margin-right: 0; }
	.logo img { height: 44px; }
	.head-cta { margin-left: auto; }
	.search { order: 3; flex: 1 1 100%; max-width: none; margin: 0.7rem 0 0; }
	.catbar a, #cat-links a { padding: 0.7rem 0.8rem; font-size: 0.97rem; }
	.announce-text { font-size: 1.2rem; }
	.announce-sub { display: block; margin: 0.1rem 0 0; font-size: 0.95rem; }
	.announce .gem { display: none; }
	.hero { padding-top: 14px; }
	.slider { border-radius: 18px; }
	.slide { grid-template-columns: 1fr; padding: 28px 20px 20px; min-height: 0; }
	.slide::before { width: 100%; top: auto; height: 46%; }
	.slide-title { font-size: 1.75rem; }
	.slide-lead { font-size: 1.02rem; }
	.slide-art { margin-top: 16px; }
	.stand { height: 210px; }
	.stand-book img { max-height: 190px; }
	.stand.n3 .b2 img { max-height: 210px; }
	.slider-arrow { display: none; }
	.btn + .btn { margin-left: 0.4rem; }
	.slide-btns .btn { padding: 0.7rem 1.2rem; }
	.section { padding-top: 42px; }
	.sec-head h2, .center-head h2 { font-size: 1.6rem; }
	.shelf { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; padding-bottom: 8px; margin: 0 -16px; }
	.shelf .book { flex: 0 0 64%; margin-right: 14px; scroll-snap-align: center; }
	.shelf .book:first-child { margin-left: 16px; }
	.shelf::after { content: ""; flex: 0 0 2px; }
	.cat-covers { height: 180px; }
	.cat-cover img { max-height: 150px; }
	.book-grid { grid-template-columns: 1fr 1fr; grid-gap: 12px; }
	.book-img { height: 190px; padding: 12px; }
	.book-he { font-size: 1.2rem; }
	.book-body { padding: 10px 10px 12px; }
	.book-foot { flex-direction: column; }
	.book-foot .btn { margin-top: 8px; width: 100%; }
	.story-band { padding: 40px 0; margin-top: 48px; }
	.story { grid-template-columns: 1fr; }
	.story .polaroid { margin: 0 12px 28px; }
	.page-head h1 { font-size: 1.9rem; }
	.about-grid, .contact-grid { grid-template-columns: 1fr; }
	.about-grid .polaroid { margin-top: 30px; }
	.values { grid-template-columns: 1fr; }
	.foot-grid { grid-template-columns: 1fr; grid-gap: 26px; padding-top: 40px; }
	.qv-grid { grid-template-columns: 1fr; }
	.qv-info { margin-top: 1rem; }
	.sefer-lightbox .panel { padding: 1.4rem 1rem 1.2rem; }
	.lb-title { font-size: 1.7rem; }
}
