/*
  Bento r14 (Phase C-3a): Our story, Visit the showroom, 404 and the empty cart.
  From preview v7.4 story.html and visit.html inline styles, scoped to ".bento .bx" like shell.css.
*/

/* ---- Our story ---- */
.bento .bx .st-open { padding-top: clamp(24px, 5vw, 64px); }
.bento .bx .st-open h1 { margin: 0; max-width: 13em; font-size: clamp(40px, 6vw, 84px); line-height: 1.02; }
.bento .bx .st-lead { margin-top: clamp(36px, 5vw, 64px); }
.bento .bx .st-lead figure { margin: 0; border-radius: 18px; overflow: hidden; background: var(--stage); aspect-ratio: 16 / 8; }
.bento .bx .st-lead img, .bento .bx .st-side img, .bento .bx .mat img, .bento .bx .hands img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; max-width: none; }

.bento .bx .st-p { font-family: var(--serif); font-weight: 300; font-size: clamp(20px, 1.7vw, 24px); line-height: 1.55; color: var(--ink-soft); margin: 0; max-width: 34em; }
.bento .bx .st-p.first { color: var(--ink); }
.bento .bx .st-one { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 64px); }
.bento .bx .st-one .st-p { grid-column: 2; }
.bento .bx .st-two { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.bento .bx .st-side { margin: 0; border-radius: 18px; overflow: hidden; background: var(--stage); aspect-ratio: 4 / 3; }

.bento .bx .mats { margin-top: clamp(64px, 8vw, 112px); }
.bento .bx .mats h2 { font-size: clamp(28px, 2.6vw, 38px); margin: 0 0 22px; }
.bento .bx .mat-row { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); gap: 20px 18px; justify-content: start; }
.bento .bx .mat { margin: 0; }
.bento .bx .mat > div { border-radius: 12px; overflow: hidden; aspect-ratio: 1 / 1; }
.bento .bx .mat figcaption { font-size: 14px; margin-top: 8px; color: var(--ink); }

.bento .bx .st-three { margin-top: clamp(64px, 8vw, 112px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: end; }
.bento .bx .hands { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 14px; align-items: stretch; }
.bento .bx .hands figure { margin: 0; border-radius: 18px; overflow: hidden; background: var(--stage); }
.bento .bx .hands figure:first-child { aspect-ratio: 3 / 2; }
.bento .bx .hands figure:last-child { aspect-ratio: auto; }

.bento .bx .st-cta { text-align: center; border-top: 1px solid var(--line); margin-top: clamp(64px, 8vw, 112px); padding-top: clamp(56px, 7vw, 88px); }
.bento .bx .st-cta h2 { margin: 0 0 12px; }
.bento .bx .st-cta p { margin: 0 auto 28px; color: var(--ink-soft); max-width: 32em; }
.bento .bx .st-cta .btns, .bento .bx .bento-404 .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 900px) {
	.bento .bx .st-one, .bento .bx .st-two, .bento .bx .st-three { grid-template-columns: 1fr; }
	.bento .bx .st-lead figure { aspect-ratio: 4 / 5; }
	.bento .bx .st-one .st-p { grid-column: 1; }
	.bento .bx .mat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
	.bento .bx .mat figcaption { font-size: 13px; margin-top: 6px; }
	.bento .bx .st-three .hands { order: 2; }
}

/* ---- Visit the showroom ---- */
.bento .bx .vs-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; padding: clamp(24px, 4vw, 48px) 0 24px; }
.bento .bx .vs-head h1 { margin: 0; }
.bento .bx .vs-head p { margin: 0; color: var(--ink-soft); max-width: 30em; }

.bento .bx .mapwrap { position: relative; isolation: isolate; border-radius: 18px; overflow: hidden; height: min(78vh, 720px); min-height: 520px; background: #e9e6dd; }
.bento .bx #map { position: absolute; inset: 0; }
.bento .bx .leaflet-container { font-family: var(--sans); background: #e9e6dd; }
.bento .bx .leaflet-control-attribution { font-size: 12px; background: rgba(250,248,243,.8) !important; }
.bento .bx .leaflet-control-zoom { border: 0 !important; box-shadow: 0 8px 24px -14px rgba(27,27,24,.5) !important; border-radius: 12px !important; overflow: hidden; }
.bento .bx .leaflet-control-zoom a { width: 38px !important; height: 38px !important; line-height: 38px !important; color: var(--ink) !important; }
.bento .bx .vcard {
	position: absolute; z-index: 500; left: 20px; top: 20px; bottom: 20px; width: min(400px, calc(100% - 40px));
	background: rgba(250,248,243,.86); -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px);
	border: 1px solid rgba(255,255,255,.6); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; overflow-y: auto;
	box-shadow: 0 20px 50px -30px rgba(27,27,24,.5);
}
.bento .bx .vcard a[href^="tel:"] { display: inline-block; padding: 12px 0; margin: -12px 0; } /* r17: 20 px -> 44 px hit area */
.bento .bx .vcard .vtitle { font-size: 18px; font-family: var(--sans); font-weight: 500; margin: 0 0 10px; letter-spacing: 0; line-height: 1.3; }
.bento .bx .vcard .addr { font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.08; margin: 0 0 18px; }
.bento .bx .vcard dl { margin: 0; display: grid; gap: 0; }
.bento .bx .vcard dl div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid rgba(27,27,24,.1); font-size: 15px; }
.bento .bx .vcard dt { color: var(--muted); font-weight: 400; }
.bento .bx .vcard dd { margin: 0; }
.bento .bx .vcard dd a { text-decoration: none; }
.bento .bx .vcard dd a:hover { text-decoration: underline; }
.bento .bx .vcard .btns { display: grid; gap: 10px; margin-top: auto; padding-top: 22px; }

/* Custom Bento pin. */
.bento .bx .bento-pin { position: relative; }
.bento .bx .bento-pin .dot { position: absolute; left: 50%; bottom: 0; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--forest); border: 3px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,.25); }
.bento .bx .bento-pin .dot::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 2px solid var(--green); animation: bento-ring 2.4s ease-out infinite; }
.bento .bx .bento-pin .flag { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--forest); color: #fff; padding: 8px 12px 8px 10px; border-radius: 12px; white-space: nowrap; display: flex; align-items: center; gap: 8px; font-size: 13px; box-shadow: 0 10px 20px -10px rgba(0,0,0,.45); }
.bento .bx .bento-pin .flag b { font-family: var(--serif); font-weight: 400; font-size: 15px; }
.bento .bx .bento-pin .flag::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: var(--forest); }
@keyframes bento-ring { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bento .bx .bento-pin .dot::after { animation: none; opacity: 0; } }

.bento .bx .vs-photo { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(28px, 4vw, 64px); align-items: end; margin: 0 0 clamp(40px, 5vw, 64px); }
.bento .bx .vs-photo figure { margin: 0; border-radius: 18px; overflow: hidden; background: var(--stage); aspect-ratio: 16 / 9; }
.bento .bx .vs-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; max-width: none; }
.bento .bx .vs-photo h2 { font-size: clamp(28px, 2.6vw, 38px); margin: 0 0 12px; }
.bento .bx .vs-photo p { margin: 0; color: var(--ink-soft); }

@media (max-width: 900px) {
	.bento .bx .mapwrap { height: auto; min-height: 0; overflow: visible; background: none; }
	.bento .bx #map { position: relative; height: 420px; border-radius: 18px; overflow: hidden; }
	.bento .bx .vcard { position: static; width: auto; margin-top: 12px; background: var(--paper-deep); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
	.bento .bx .vs-photo { grid-template-columns: 1fr; }
}

/* ---- 404 ---- */
.bento .bx .bento-404 { text-align: center; padding-top: clamp(64px, 10vw, 140px); padding-bottom: clamp(64px, 10vw, 140px); }
.bento .bx .bento-404 h1 { margin: 0 0 28px; }

/* ---- Cart page (r15): preview cart.html. The empty state is the preview's line, drawn by cart.js. ---- */
.bento .bx .cart { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding: clamp(36px, 6vw, 72px) 0 110px; }
.bento .bx .cart h1 { margin: 0 0 8px; }
.bento .bx .cart-lines { border-top: 1px solid var(--ink); margin-top: 26px; min-height: 60px; }
/* While the lines load: reserve their height (one line is 177 px on desktop, 263 px on a phone). */
.bento .bx .cart-lines[aria-busy="true"] { min-height: calc(var(--n, 1) * 177px); }
@media (max-width: 900px) { .bento .bx .cart-lines[aria-busy="true"] { min-height: calc(var(--n, 1) * 263px); } }
.bento .bx .cart-lines .line-item { grid-template-columns: 132px 1fr auto; gap: 22px; padding: 22px 0; }
.bento .bx .cart-lines .line-item img { width: 132px; height: 132px; }
.bento .bx .cart-lines .line-item b { font-family: var(--serif); font-weight: 300; font-size: 26px; line-height: 1.1; margin-bottom: 4px; }
.bento .bx .cart-lines .line-item b a { text-decoration: none; color: inherit; display: inline-block; padding: 10px 0; margin: -10px 0; } /* r17: 26 px -> 46 px hit area */
.bento .bx .summary { background: var(--paper-deep); padding: 28px; position: sticky; top: 96px; }
.bento .bx .summary h2 { margin: 0 0 18px; font-size: 30px; }
.bento .bx .summary .totals-row { padding: 6px 0; }
.bento .bx .summary .totals-row.save { color: #1b741f; } /* r17: --green is 4.48:1 on the tinted summary panel; this is 5.0:1 */
.bento .bx .summary .big { border-top: 1px solid #d6cfbf; padding-top: 14px; margin-top: 10px; }
.bento .bx .checkout-btn { margin-top: 20px; min-height: 60px; font-size: 17px; letter-spacing: .01em; }
.bento .bx .summary ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; font-size: 14px; color: var(--ink-soft); }
.bento .bx .continue { display: inline-block; margin-top: 22px; }
@media (max-width: 900px) {
	.bento .bx .cart { grid-template-columns: 1fr; }
	.bento .bx .summary { position: static; }
	.bento .bx .cart-lines .line-item { grid-template-columns: 96px 1fr; }
	.bento .bx .cart-lines .line-item img { width: 96px; height: 96px; }
	.bento .bx .cart-lines .line-item > div:last-child { grid-column: 2; text-align: left !important; }
	.bento .bx .continue { padding: 10px 8px; margin: 12px -8px -10px; }
}

/* ---- Chair finder (r15): preview finder.html ---- */
.bento .bx .fd { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); padding: clamp(40px, 7vw, 96px) 0 110px; align-items: start; }
.bento .bx .fd-side h1 { margin: 0 0 16px; }
.bento .bx .fd-side p { color: var(--ink-soft); margin: 0 0 24px; }
.bento .bx .dots { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin: 0 0 22px; }
.bento .bx .dots i { width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--ink); transition: background .4s var(--ease), transform .4s var(--ease); }
.bento .bx .dots i.on { background: var(--ink); }
.bento .bx .dots i.now { transform: scale(1.3); box-shadow: 0 0 0 4px rgba(30,125,34,.15); border-color: var(--green); }
.bento .bx .dots span { margin-left: 6px; font-variant-numeric: tabular-nums; }
.bento .bx .chip { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 16px; font-size: 14px; background: #e3eee2; color: var(--forest); padding: 4px 12px; border-radius: 20px; }
.bento .bx .q-in h2 { animation: bento-q-in .5s var(--ease) both; }
.bento .bx .q-in .opts button { animation: bento-q-in .55s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes bento-q-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.bento .bx .bento-finder { overflow-x: clip; }
.bento .bx .q h2, .bento .bx .result-head { outline: none; }
.bento .bx .step-count { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.bento .bx .q h2 { margin: 0 0 26px; font-size: clamp(32px, 3.6vw, 48px); }
.bento .bx .opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px; }
.bento .bx .opts button { text-align: left; border: 0; color: var(--ink); background: var(--paper-deep); padding: 22px 20px; min-height: 120px; cursor: pointer; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; border-radius: 14px; transition: background .2s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease); }
.bento .bx .opts button:hover { background: var(--stage-soft); transform: translateY(-4px); box-shadow: 0 20px 30px -24px rgba(27,27,24,.5); }
.bento .bx .opts button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.bento .bx .opts button[aria-pressed="true"] span { color: #d8d4c8; }
.bento .bx .opts.chosen button:not([aria-pressed="true"]) { opacity: .4; }
.bento .bx .opts.chosen button[aria-pressed="true"] { transform: scale(1.03); }
.bento .bx .opts b { font-family: var(--serif); font-weight: 300; font-size: 26px; line-height: 1.1; }
.bento .bx .opts span { font-size: 14px; color: var(--ink-soft); }
.bento .bx .opts.photo { grid-template-columns: repeat(2, 1fr); gap: 12px; }
.bento .bx .opts.photo button { padding: 0 0 18px; overflow: hidden; justify-content: flex-start; gap: 0; }
.bento .bx .opts.photo picture { display: block; flex: none; background: var(--paper); line-height: 0; margin: 0 0 14px; }
.bento .bx .opts.photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: center; margin: 0; }
.bento .bx .opts.photo b, .bento .bx .opts.photo span { padding: 0 18px; }
.bento .bx .nav-row { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; }
.bento .bx .nav-row button { text-decoration: underline; text-underline-offset: 4px; cursor: pointer; padding: 12px 0; color: var(--ink-soft); }
.bento .bx .result-head { margin: 0 0 8px; }
.bento .bx .answers { font-size: 14px; color: var(--muted); margin: 0; }
.bento .bx .answers .link { cursor: pointer; text-decoration: underline; }
.bento .bx .picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 28px; }
.bento .bx .pick { background: var(--paper-deep); display: flex; flex-direction: column; }
.bento .bx .pick .ph { background: var(--stage); display: block; }
.bento .bx .pick img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 50% 60%; }
.bento .bx .pick-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.bento .bx .pick-body h3 { font-size: 30px; margin: 0 0 4px; }
.bento .bx .pick-body ul { list-style: none; margin: 16px 0 20px; padding: 0; display: grid; gap: 8px; font-size: 15px; color: var(--ink-soft); }
.bento .bx .pick-body li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.bento .bx .pick-body li svg { margin-top: 5px; color: var(--green); }
.bento .bx .pick-body .btn { margin-top: auto; }
.bento .bx .best { font-size: 13px; color: #1b741f; font-weight: 500; margin: 0 0 8px; } /* r17: contrast on --paper-2 */
@media (prefers-reduced-motion: reduce) { .bento .bx .q-in h2, .bento .bx .q-in .opts button { animation: none; } }
@media (max-width: 900px) {
	.bento .bx .fd { grid-template-columns: 1fr; gap: 24px; }
	.bento .bx .picks { grid-template-columns: 1fr; }
	.bento .bx .opts { grid-template-columns: 1fr; }
	.bento .bx .opts button { min-height: 0; }
}

/* ---- r18: Privacy, Terms (plain text pages) and Delivery and payment ---- */
.bento .bx .bento-text { padding-bottom: clamp(40px, 6vw, 88px); }
.bento .bx .bento-text .vs-head h1 { max-width: 14em; }
.bento .bx .tx-body { max-width: 40em; font-size: 17px; line-height: 1.65; color: var(--ink-soft); }
.bento .bx .tx-body > :first-child { margin-top: 0; }
.bento .bx .tx-body h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; letter-spacing: 0; color: var(--ink); margin: 40px 0 10px; }
.bento .bx .tx-body p, .bento .bx .tx-body ul, .bento .bx .tx-body ol { margin: 0 0 14px; }
.bento .bx .tx-body ul, .bento .bx .tx-body ol { padding-left: 1.2em; }
.bento .bx .tx-body li { margin: 0 0 6px; }
.bento .bx .tx-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.bento .bx .tx-contact { margin: 6px 0 0; display: grid; }
.bento .bx .tx-contact div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid rgba(27,27,24,.1); font-size: 15px; }
.bento .bx .tx-contact dt { color: var(--muted); }
.bento .bx .tx-contact dd { margin: 0; color: var(--ink); }
.bento .bx .dl-rows { max-width: 56em; }
.bento .bx .dl-row { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); gap: 8px 40px; padding: 26px 0; border-top: 1px solid rgba(27,27,24,.12); }
.bento .bx .dl-row:last-child { border-bottom: 1px solid rgba(27,27,24,.12); }
.bento .bx .dl-row h2 { margin: 0; font-size: clamp(22px, 2vw, 28px); line-height: 1.15; }
.bento .bx .dl-row p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-soft); max-width: 36em; }
.bento .bx .dl-cta { margin-top: 28px; }
@media (max-width: 900px) {
	.bento .bx .dl-row { grid-template-columns: 1fr; padding: 20px 0; }
	.bento .bx .tx-contact div { grid-template-columns: 100px 1fr; }
	.bento .bx .tx-contact a[href^="tel:"], .bento .bx .tx-contact a[href^="http"] { display: inline-block; padding: 12px 0; margin: -12px 0; }
}
