/* ==========================================================================
   BB Publication — version 4 · "Answer sheet" store
   Colours carried from v3 (navy #0F2D5E, orange #FF7A1A, highlighter #FFC53D).
   New in v4: sentence filter (fill-in-the-blank), "My attempt" plan used on
   every page, ticket-stub book cards, shelf view, smart empty state.
   Type: Bricolage Grotesque (display) · Inter (text). Light theme only.
   ========================================================================== */
:root {
  --white: #FFFFFF; --paper: #FBFCFE; --surface: #F4F6FA; --surface-2: #E9EEF6;
  --ink: #0E1726; --ink-2: #334155; --muted: #5B6B82; --muted-2: #8392A8;
  --line: #E3E8F0; --line-2: #CBD5E1;
  --navy: #0F2D5E; --navy-2: #0A1F42; --navy-3: #163C7A; --navy-soft: #E6EEFB;
  --orange: #FF7A1A; --orange-2: #E8650A; --orange-soft: #FFF0E4; --orange-ink: #9A3D06;
  --yellow: #FFC53D; --yellow-soft: #FFF6DB;
  --green: #15803D; --green-soft: #DCFCE7; --red: #C81E1E; --red-soft: #FEE2E2;
  --r-sm: 8px; --r: 14px; --r-lg: 20px; --r-xl: 28px;
  --sh-sm: 0 1px 2px rgba(14,23,38,.06);
  --sh: 0 10px 30px -14px rgba(15,45,94,.28), 0 2px 6px -2px rgba(14,23,38,.06);
  --sh-lg: 0 30px 60px -24px rgba(15,45,94,.38);
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
  --wrap: 1280px; --gutter: 16px; --header-h: 68px;
  color-scheme: light;
}
@media (min-width: 1024px) { :root { --gutter: 40px; } }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--white); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.no-scroll { overflow: hidden; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -.025em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 1000; font-weight: 700; }
.skip-link:focus { top: 12px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.icon { display: inline-block; font-size: 18px; line-height: 1; flex: none; }
.icon.sm { font-size: 14px; }
.muted { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-2); margin-bottom: 10px; }
.lead { font-size: 1.06rem; line-height: 1.6; color: var(--ink-2); max-width: 60ch; }
.hl { background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%); padding: 0 .06em; }
.sample-note { font-size: .66rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-2); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* ---------- sections ---------- */
.section { padding: clamp(44px, 6vw, 80px) 0; }
.section-tight { padding: clamp(28px, 4vw, 48px) 0; }
.band { background: var(--surface); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: clamp(20px, 3vw, 32px); }
.section-head .lead { margin: 8px 0 0; font-size: 1rem; }
.more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; color: var(--navy); }
.more .icon { transition: transform .2s; }
.more:hover .icon { transform: translateX(4px); }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 700; font-size: .95rem; border: 1.5px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-3); }
.btn-spark { background: var(--orange); color: var(--navy-2); box-shadow: 0 8px 18px -8px rgba(255,122,26,.7); }
.btn-spark:hover { background: #FF8B38; }
.btn-ghost { background: var(--white); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-white { background: #fff; color: var(--navy); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: .88rem; border-radius: 10px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.02rem; border-radius: 14px; }
.btn-block { width: 100%; }
.link-btn { color: var(--navy); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; color: var(--ink); position: relative; transition: background .2s; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn .icon { font-size: 22px; }
.chip { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--white); font-size: .88rem; font-weight: 600; color: var(--ink-2); transition: all .2s; cursor: pointer; }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip .cnt { font-size: .74rem; opacity: .7; font-weight: 700; }
.chip[disabled] { opacity: .4; cursor: not-allowed; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; padding: 3px 8px; border-radius: 6px; font-size: .7rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.tag-navy { background: var(--navy); color: #fff; }
.tag-spark { background: var(--orange); color: var(--navy-2); }
.tag-sky { background: var(--navy-soft); color: var(--navy); }
.tag-green { background: var(--green-soft); color: var(--green); }
.tag-marker { background: var(--yellow); color: #3B2A00; }
.input, .select { width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--white); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.input:focus, .select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(15,45,94,.12); }
.select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230E1726' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--white); overflow: hidden; }
.stepper button { width: 44px; height: 44px; display: grid; place-items: center; color: var(--navy); }
.stepper button:hover { background: var(--surface); }
.stepper output { min-width: 32px; text-align: center; font-weight: 700; }
.rating { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.rating .icon { font-size: 14px; color: #E9A700; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .84rem; color: var(--muted); padding: 18px 0 8px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.crumbs a:hover { color: var(--navy); text-decoration: underline; }

/* ---------- announcement + header ---------- */
.announce { background: var(--navy-2); color: #C7D3E8; font-size: .8rem; font-weight: 600; }
.announce .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.announce-msg { display: flex; align-items: center; gap: 8px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.announce-msg .icon { color: var(--yellow); font-size: 15px; }
.announce-links { display: none; gap: 18px; }
.announce-links a, .announce-links button { display: inline-flex; align-items: center; gap: 5px; color: #E2E8F3; font-weight: 600; font-size: .8rem; }
.announce-links a:hover, .announce-links button:hover { color: #fff; text-decoration: underline; }
@media (min-width: 900px) { .announce-links { display: flex; } }
.header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 8px; min-height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo img { height: 34px; width: auto; }
.logo-sub { display: none; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-left: 1px solid var(--line-2); padding-left: 12px; }
.nav { display: none; gap: 2px; margin-left: 12px; }
.nav a { white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 0 12px; border-radius: 10px; font-weight: 600; font-size: .94rem; color: var(--ink-2); }
.nav a:hover, .nav a[aria-current="page"] { background: var(--surface-2); color: var(--navy); }
.search-trigger { display: none; align-items: center; gap: 10px; flex: 1 1 160px; min-width: 0; max-width: 300px; min-height: 44px; margin-left: auto; padding: 0 12px; border-radius: 12px; background: var(--surface); border: 1.5px solid var(--line); color: var(--muted); font-size: .88rem; text-align: left; }
.search-trigger span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-trigger kbd { font: 600 .72rem var(--sans); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 6px; background: #fff; }
.search-trigger:hover { border-color: var(--navy); }
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.plan-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 999px; background: var(--yellow-soft); border: 1.5px dashed #E0A800; color: #5A4300; font-weight: 700; font-size: .84rem; white-space: nowrap; }
.plan-pill:hover { background: var(--yellow); }
.plan-pill.set { background: var(--yellow); border-style: solid; border-color: var(--yellow); color: #3B2A00; }
.plan-pill .txt { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.cart-count { position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--orange); color: var(--navy-2); font-size: .7rem; font-weight: 800; display: grid; place-items: center; transform: scale(0); transition: transform .25s var(--ease); }
.cart-count.show { transform: scale(1); }
.cart-count.bump { animation: bump .4s var(--ease); }
@keyframes bump { 50% { transform: scale(1.35); } }
@media (max-width: 520px) { .plan-pill .txt { max-width: 92px; } .logo img { height: 28px; } }
@media (min-width: 1180px) { .menu-btn { display: none; } .nav { display: flex; } .search-trigger { display: flex; } .header-actions { margin-left: 8px; } .search-icon { display: none; } }
@media (min-width: 1440px) { .logo-sub { display: inline; } }
@media (max-width: 600px) { .plan-pill { width: 44px; padding: 0; justify-content: center; } .plan-pill .txt { display: none; } .header-row { gap: 2px; } .header-actions { gap: 0; } }

/* drawer */
.drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.drawer.open { visibility: visible; }
.scrim { position: absolute; inset: 0; background: rgba(10,31,66,.45); opacity: 0; transition: opacity .25s; }
.drawer.open .scrim { opacity: 1; }
.drawer .panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(340px, 88vw); background: #fff; padding: 16px; display: flex; flex-direction: column; gap: 6px; transform: translateX(-100%); transition: transform .3s var(--ease); overflow-y: auto; }
.drawer.open .panel { transform: none; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.panel-head img { height: 30px; width: auto; }
.drawer nav a, .drawer nav button { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 10px; border-radius: 10px; font-weight: 600; width: 100%; text-align: left; }
.drawer nav a:hover, .drawer nav button:hover { background: var(--surface); }
.drawer .group-lbl { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 14px 10px 4px; }

/* search overlay */
.overlay { position: fixed; inset: 0; z-index: 95; background: rgba(10,31,66,.5); display: none; padding: 12px; }
.overlay.open { display: block; }
.search-box { width: min(720px, 100%); margin: 6vh auto 0; background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-lg); overflow: hidden; }
.search-box form { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; border-bottom: 1px solid var(--line); }
.search-box form .icon { color: var(--muted); font-size: 20px; }
.search-box input { flex: 1; min-width: 0; min-height: 52px; border: 0; font-size: 1.05rem; }
.search-box input:focus { outline: none; }
.search-results { max-height: 62vh; overflow-y: auto; padding: 8px; }
.sr-group { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 12px 10px 6px; }
.sr-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; }
.sr-item:hover, .sr-item:focus { background: var(--surface); outline: none; }
.sr-item img { width: 40px; height: 52px; object-fit: cover; border-radius: 6px; flex: none; }
.sr-item img.round { width: 40px; height: 40px; border-radius: 50%; }
.sr-item b { display: block; font-size: .92rem; line-height: 1.3; }
.sr-item small { color: var(--muted); font-size: .8rem; }
.sr-item .price { margin-left: auto; font-weight: 800; }
.sr-empty { padding: 18px 10px; color: var(--muted); }

/* modal */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: flex-end; justify-content: center; background: rgba(10,31,66,.5); padding: 0; }
.modal.open { display: flex; }
.modal-card { position: relative; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: #fff; border-radius: 22px 22px 0 0; padding: 26px 20px 20px; box-shadow: var(--sh-lg); }
@media (min-width: 720px) { .modal { align-items: center; padding: 20px; } .modal-card { border-radius: 22px; padding: 30px; } }
.modal-card .close { position: absolute; right: 12px; top: 12px; }
.modal-card h3 { font-size: 1.5rem; margin-bottom: 6px; padding-right: 40px; }
.modal-foot { display: flex; gap: 10px; margin-top: 22px; }
.modal-foot .btn-primary { flex: 1; }
.plan-step { margin-top: 18px; }
.plan-step .lbl { display: block; font-size: .8rem; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.stage-pick { display: grid; gap: 8px; }
.stage-opt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1.5px solid var(--line-2); border-radius: 14px; text-align: left; transition: all .2s; min-height: 56px; width: 100%; }
.stage-opt:hover { border-color: var(--navy); }
.stage-opt[aria-pressed="true"] { border-color: var(--navy); background: var(--navy-soft); }
.stage-opt .ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--navy); flex: none; }
.stage-opt[aria-pressed="true"] .ico { background: var(--navy); color: #fff; }
.stage-opt b { display: block; font-size: .92rem; }
.stage-opt small { color: var(--muted); font-size: .8rem; }
.steps { padding-left: 20px; list-style: decimal; color: var(--ink-2); font-size: .92rem; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 20px; z-index: 120; transform: translate(-50%, calc(100% + 40px)); visibility: hidden; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 16px; background: var(--navy-2); color: #fff; border-radius: 14px; box-shadow: var(--sh-lg); font-size: .9rem; font-weight: 600; transition: transform .35s var(--ease); max-width: calc(100vw - 24px); }
.toast.show { transform: translate(-50%, 0); visibility: visible; }
.toast .icon { color: var(--yellow); }
.toast a { color: var(--yellow); font-weight: 700; white-space: nowrap; }

/* ---------- book card (ticket stub) ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } }
.card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 18px; transition: box-shadow .25s, transform .25s, border-color .25s; }
.card:hover { box-shadow: var(--sh); transform: translateY(-3px); border-color: var(--line-2); }
.card.in-cart { border-color: var(--navy); }
.card-cover { position: relative; display: block; aspect-ratio: 398 / 440; overflow: hidden; border-radius: 17px 17px 0 0; background: var(--surface-2); }
.card-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s var(--ease); }
.card:hover .card-cover img { transform: scale(1.04); }
.card-badge { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; }
.card-fit { position: absolute; right: 10px; top: 10px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; box-shadow: 0 4px 10px -3px rgba(21,128,61,.6); }
.card-body { display: flex; flex-direction: column; gap: 7px; padding: 12px 12px 14px; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .74rem; color: var(--muted); font-weight: 600; }
.card-title { font-family: var(--sans); font-size: .93rem; font-weight: 700; line-height: 1.32; letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a::after { content: ""; position: absolute; inset: 0; border-radius: 18px; z-index: 1; }
.card-fac { display: flex; align-items: center; gap: 7px; font-size: .8rem; color: var(--ink-2); font-weight: 600; min-width: 0; }
.card-fac img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: none; }
.card-fac span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-valid { display: flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 600; color: var(--muted); margin-top: auto; padding-top: 2px; }
.card-valid.ok { color: var(--green); }
.card-valid.no { color: var(--orange-ink); }
.card-stub { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px; border-top: 2px dashed var(--line-2); background: var(--paper); border-radius: 0 0 17px 17px; }
.card-stub::before, .card-stub::after { content: ""; position: absolute; top: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); }
.card-stub::before { left: -9px; clip-path: inset(0 0 0 50%); }
.card-stub::after { right: -9px; clip-path: inset(0 50% 0 0); }
.band .card-stub::before, .band .card-stub::after { background: var(--surface); }
.price { display: flex; flex-direction: column; line-height: 1.15; }
.price b { font-family: var(--display); font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; }
.price s { font-size: .76rem; color: var(--muted); }
.price .off { font-size: .74rem; color: var(--green); font-weight: 700; }
.add-btn { position: relative; z-index: 2; }
@media (max-width: 420px) { .add-btn span { display: none; } .add-btn { width: 44px; padding: 0; } .card-body { padding: 10px; } .card-stub { padding: 10px; } }

/* ---------- home: hero + finder ---------- */
.hero { position: relative; background: linear-gradient(120deg, #0A1F42 0%, #0F2D5E 55%, #163C7A 100%); color: #fff; overflow: hidden; padding: clamp(36px, 6vw, 72px) 0 clamp(40px, 6vw, 72px); }
.hero::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 39px, rgba(255,255,255,.05) 39px 40px); pointer-events: none; }
.hero .wrap { position: relative; display: grid; gap: 32px; align-items: center; }
@media (min-width: 1000px) { .hero .wrap { grid-template-columns: 1.05fr .95fr; gap: 56px; } }
.hero .eyebrow { color: var(--yellow); }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 .hl { color: var(--yellow); background: none; padding: 0; }
.hero .lead { color: #C7D3E8; margin-bottom: 24px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-proof span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: .82rem; font-weight: 600; color: #E2E8F3; }
.hero-proof .icon { color: var(--yellow); font-size: 15px; }
.finder { background: #fff; color: var(--ink); border-radius: var(--r-xl); padding: clamp(18px, 3vw, 28px); box-shadow: 0 40px 80px -30px rgba(0,0,0,.55); }
.finder-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.finder-head h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.finder-head .step-count { font-size: .76rem; font-weight: 700; color: var(--muted); }
.finder .plan-step:first-of-type { margin-top: 12px; }
.finder-go { margin-top: 20px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.finder-go .btn { flex: 1; }
.finder-note { font-size: .8rem; color: var(--muted); margin: 10px 0 0; }

/* level tiles */
.levels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .levels { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.level-tile { display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 1.5px solid var(--line); border-radius: var(--r-lg); background: #fff; transition: all .2s; min-height: 132px; }
.level-tile:hover { border-color: var(--navy); box-shadow: var(--sh); transform: translateY(-2px); }
.level-tile b { font-family: var(--display); font-size: 1.4rem; letter-spacing: -.02em; }
.level-tile small { color: var(--muted); font-size: .84rem; }
.level-tile .go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--navy); font-weight: 700; font-size: .88rem; }

/* stage timeline */
.timeline { display: grid; gap: 14px; counter-reset: st; }
@media (min-width: 900px) { .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stage-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); transition: all .2s; }
.stage-card:hover { border-color: var(--navy); box-shadow: var(--sh); }
.stage-card .when { font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-2); }
.stage-card h3 { font-size: 1.3rem; }
.stage-card p { color: var(--ink-2); font-size: .92rem; margin: 0; }
.stage-card .covers { display: flex; margin-top: 6px; }
.stage-card .covers img { width: 54px; height: 70px; object-fit: cover; border-radius: 6px; border: 2px solid #fff; box-shadow: var(--sh-sm); margin-right: -14px; }
.stage-card .go { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; color: var(--navy); font-weight: 700; font-size: .9rem; }
.stage-card .bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.stage-card .bar i { display: block; height: 100%; background: var(--orange); border-radius: 999px; }

/* tabs */
.tabs { display: flex; gap: 6px; padding: 4px; background: var(--surface-2); border-radius: 999px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { min-height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 700; font-size: .88rem; color: var(--ink-2); white-space: nowrap; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--navy); box-shadow: var(--sh-sm); }

/* faculty */
.fac-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.fac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.fac-card { scroll-snap-align: start; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: all .2s; }
.fac-card:hover { border-color: var(--navy); box-shadow: var(--sh); transform: translateY(-2px); }
.fac-card .ph-wrap { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); }
.fac-card .ph-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.fac-card .count { position: absolute; left: 10px; bottom: 10px; background: rgba(10,31,66,.85); color: #fff; font-size: .74rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.fac-card .b { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.fac-card h3 { font-size: 1.08rem; }
.fac-card .sub { color: var(--orange-ink); font-weight: 600; font-size: .86rem; }
.fac-card .lv { display: flex; gap: 6px; flex-wrap: wrap; }
.fac-card .go { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; color: var(--navy); font-weight: 700; font-size: .9rem; }

/* testimonials */
.quotes { display: grid; gap: 14px; }
@media (min-width: 800px) { .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.quote p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.quote .who { display: flex; align-items: center; gap: 10px; margin-top: auto; font-size: .86rem; }
.quote .air { font-family: var(--display); font-weight: 800; color: var(--navy); background: var(--yellow); border-radius: 8px; padding: 4px 8px; font-size: .86rem; }
.quote .src { font-size: .72rem; color: var(--muted-2); font-weight: 600; }

/* faq */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 18px; font-weight: 700; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .2s; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding: 0 18px 16px; margin: 0; color: var(--ink-2); font-size: .94rem; }

/* footer */
.footer { background: var(--navy-2); color: #B9C6DC; margin-top: 40px; }
.footer .wrap { padding: 48px 0 24px; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer img.logo-f { height: 34px; width: auto; filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer p { font-size: .88rem; line-height: 1.6; }
.footer h4 { color: #fff; font-family: var(--sans); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.footer ul li a { display: inline-flex; min-height: 36px; align-items: center; font-size: .9rem; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .contact a { display: flex; align-items: center; gap: 8px; min-height: 36px; font-size: .88rem; }
.footer .social { display: flex; gap: 8px; margin-top: 12px; }
.footer .social a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 18px; font-size: .8rem; }
.footer-bottom .pay { display: flex; flex-wrap: wrap; gap: 6px; }
.footer-bottom .pay span { border: 1px solid rgba(255,255,255,.18); border-radius: 6px; padding: 2px 8px; }
.proto-note { background: var(--yellow); color: #3B2A00; text-align: center; font-size: .8rem; font-weight: 600; padding: 9px 16px; }
.proto-note a { text-decoration: underline; font-weight: 700; }

/* ---------- products page: sentence filter ---------- */
.plp-head { padding: 4px 0 18px; }
.plp-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 4px 0 4px; }
.sheet-q { position: relative; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-xl); padding: clamp(16px, 2.6vw, 26px) clamp(16px, 2.6vw, 28px); box-shadow: var(--sh-sm); }
.sheet-q::before { content: ""; position: absolute; left: clamp(8px, 1.2vw, 14px); top: 18px; bottom: 18px; width: 2px; background: rgba(255,122,26,.35); border-radius: 2px; }
.sheet-q .q-lbl { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.sentence { font-family: var(--display); font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-weight: 600; line-height: 2.5; letter-spacing: -.015em; color: var(--ink-2); margin: 0; }
.tok { display: inline-flex; flex-direction: column; align-items: flex-start; vertical-align: middle; position: relative; margin: 2px 2px; padding: 4px 30px 4px 12px; min-height: 50px; justify-content: center; border-radius: 12px; border: 1.5px dashed var(--line-2); background: #fff; line-height: 1.15; text-align: left; transition: all .2s; }
.tok:hover { border-color: var(--navy); border-style: solid; }
.tok .k { font-family: var(--sans); font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tok .v { font-family: var(--display); font-weight: 700; color: var(--navy); border-bottom: 2px solid var(--yellow); white-space: nowrap; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }
.tok .icon { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--muted); }
.tok.set { background: var(--navy); border-color: var(--navy); border-style: solid; }
.tok.set .k { color: #9FB3D6; }
.tok.set .v { color: #fff; border-bottom-color: var(--orange); }
.tok.set .icon { color: #fff; }
.tok[aria-expanded="true"] { box-shadow: 0 0 0 4px rgba(15,45,94,.15); }
.sentence .clear-all { font-family: var(--sans); font-size: .9rem; margin-left: 6px; vertical-align: middle; }
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.quick .lbl { font-size: .8rem; font-weight: 700; color: var(--ink-2); margin-right: 2px; }
.quick .sep { width: 1px; height: 26px; background: var(--line-2); margin: 0 6px; }
.toolbar { position: sticky; top: var(--header-h); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 0; margin: 10px 0 14px; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.toolbar .count { font-weight: 700; margin-right: auto; }
.toolbar .count small { color: var(--muted); font-weight: 600; }
.toolbar .select { width: auto; min-height: 44px; font-size: .9rem; font-weight: 600; }
.seg { display: inline-flex; padding: 3px; background: var(--surface-2); border-radius: 12px; }
.seg button { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border-radius: 9px; font-size: .86rem; font-weight: 700; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--navy); box-shadow: var(--sh-sm); }
.plan-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; margin-bottom: 14px; background: var(--yellow-soft); border: 1px solid #F3D27A; border-radius: 12px; font-size: .9rem; color: #4A3700; }
.plan-banner .icon { color: #B88600; }
.value-hint { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; margin-bottom: 16px; border-radius: 12px; background: var(--orange-soft); color: var(--orange-ink); font-size: .9rem; font-weight: 600; }
.value-hint a { text-decoration: underline; }

/* popover / bottom sheet */
.pop-scrim { position: fixed; inset: 0; z-index: 79; background: rgba(10,31,66,.4); display: none; }
.pop { position: absolute; z-index: 80; width: 360px; max-width: calc(100vw - 24px); max-height: min(68vh, 540px); display: none; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sh-lg); }
.pop.open { display: flex; }
.pop-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 10px 8px 18px; }
.pop-head h3 { font-size: 1.05rem; }
.pop-head p { margin: 2px 0 0; font-size: .8rem; color: var(--muted); }
.pop-body { overflow-y: auto; padding: 4px 8px 8px; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 8px 10px; border-radius: 12px; text-align: left; cursor: pointer; }
.opt:hover { background: var(--surface); }
.opt input { width: 18px; height: 18px; accent-color: var(--navy); margin: 0; flex: none; }
.opt img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; }
.opt .t { flex: 1; min-width: 0; }
.opt .t b { display: block; font-size: .93rem; font-weight: 600; }
.opt .t small { display: block; font-size: .78rem; color: var(--muted); line-height: 1.35; }
.opt .n { font-size: .78rem; font-weight: 700; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 2px 8px; }
.opt.zero { opacity: .45; cursor: not-allowed; }
.opt.any b { color: var(--navy); }
.pop-foot { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.pop-foot .btn-primary { flex: 1; }
@media (max-width: 719px) {
  .pop { position: fixed; left: 0 !important; right: 0; top: auto !important; bottom: 0; width: 100%; max-width: none; max-height: 82vh; border-radius: 22px 22px 0 0; }
  .pop-scrim.open { display: block; }
  .pop-head::before { content: ""; position: absolute; left: 50%; top: 6px; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--line-2); }
}

/* shelves */
.shelf { margin-bottom: 30px; }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 3px solid var(--navy); }
.shelf-head h3 { font-size: 1.3rem; }
.shelf-head h3 small { font-family: var(--sans); font-size: .82rem; color: var(--muted); font-weight: 600; margin-left: 8px; letter-spacing: 0; }
.shelf-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 240px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; }
.shelf-row .card { scroll-snap-align: start; }

/* empty */
.empty { text-align: center; padding: 48px 20px; border: 1.5px dashed var(--line-2); border-radius: var(--r-xl); background: var(--paper); }
.empty svg { width: 110px; margin: 0 auto 14px; }
.empty h3 { font-size: 1.4rem; margin-bottom: 6px; }
.empty p { color: var(--muted); margin-bottom: 18px; }
.empty .fixes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* ---------- product detail ---------- */
.pdp { display: grid; gap: 28px; padding: 10px 0 30px; }
@media (min-width: 960px) { .pdp { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 48px; align-items: start; } }
.gallery { position: relative; background: var(--surface); border-radius: var(--r-xl); padding: clamp(18px, 4vw, 40px); }
@media (min-width: 960px) { .gallery { position: sticky; top: calc(var(--header-h) + 16px); } }
.gallery img { width: 100%; max-width: 420px; margin: 0 auto; border-radius: 14px; box-shadow: var(--sh-lg); }
.gallery .fit-stamp { position: absolute; right: 18px; top: 18px; transform: rotate(6deg); padding: 8px 12px; border: 2.5px solid var(--green); border-radius: 10px; color: var(--green); font-weight: 800; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; background: rgba(255,255,255,.9); }
.gallery .fit-stamp.no { border-color: var(--orange-2); color: var(--orange-ink); }
.pdp-info .kick { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .86rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.pdp-info h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 10px; }
.pdp-info .full { color: var(--muted); font-size: .92rem; margin-bottom: 16px; }
.fac-chip { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border: 1px solid var(--line-2); border-radius: 999px; font-weight: 700; font-size: .9rem; min-height: 44px; }
.fac-chip img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.fac-chip:hover { border-color: var(--navy); }
.fac-chip span { color: var(--muted); font-weight: 500; }
.pdp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 14px 0; font-size: .9rem; color: var(--ink-2); }
.applic { margin: 18px 0; }
.applic .lbl { font-size: .82rem; font-weight: 700; margin-bottom: 8px; display: block; }
.applic .chips span { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--line-2); font-weight: 700; font-size: .88rem; }
.applic .chips span.mine { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.applic .msg { margin-top: 10px; font-size: .88rem; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.applic .msg.ok { color: var(--green); }
.applic .msg.no { color: var(--orange-ink); }
.buybox { background: var(--surface); border-radius: var(--r-lg); padding: 18px; margin: 18px 0; }
.buybox .p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.buybox .p b { font-family: var(--display); font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; }
.buybox .p s { color: var(--muted); }
.buybox .p .save { color: var(--green); font-weight: 700; font-size: .92rem; }
.buybox .tax { font-size: .82rem; color: var(--muted); margin: 4px 0 10px; }
.buybox .stock { display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 700; color: var(--green); }
.buybox .stock.pre { color: var(--orange-ink); }
.buy-actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 16px; }
.buy-actions .btn-spark { grid-column: 1 / -1; }
@media (min-width: 560px) { .buy-actions { grid-template-columns: auto 1fr 1fr; } .buy-actions .btn-spark { grid-column: auto; } }
.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.trust div { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--surface); font-size: .82rem; font-weight: 600; }
.trust .icon { color: var(--green); }
.inside { margin-top: 26px; }
.inside h2 { font-size: 1.3rem; margin-bottom: 12px; }
.inside-list { display: grid; gap: 8px; }
.inside-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; font-size: .92rem; }
.inside-list li .n { width: 28px; height: 28px; border-radius: 8px; background: var(--navy-soft); color: var(--navy); display: grid; place-items: center; font-weight: 800; font-size: .8rem; flex: none; }
.combo-calc { margin-top: 18px; padding: 16px; border-radius: var(--r-lg); border: 1.5px solid var(--orange); background: var(--orange-soft); }
.combo-calc h3 { font-size: 1.05rem; margin-bottom: 10px; }
.combo-calc table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.combo-calc td { padding: 6px 0; border-bottom: 1px dashed rgba(180,73,10,.25); }
.combo-calc td:last-child { text-align: right; font-weight: 700; }
.combo-calc tr.total td { border: 0; font-weight: 800; color: var(--green); padding-top: 10px; }
.ptabs { margin-top: 28px; }
.ptab-panel { padding: 18px 2px; }
.ptab-panel ul.ticks li { display: flex; gap: 10px; padding: 7px 0; font-size: .94rem; }
.ptab-panel ul.ticks .icon { color: var(--green); margin-top: 4px; }
.ptab-panel ol.toc { counter-reset: t; }
.ptab-panel ol.toc li { counter-increment: t; display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
.ptab-panel ol.toc li::before { content: counter(t, decimal-leading-zero); font-weight: 800; color: var(--orange-2); font-family: var(--display); }
.spec { width: 100%; border-collapse: collapse; font-size: .92rem; }
.spec th { text-align: left; color: var(--muted); font-weight: 600; padding: 10px 0; width: 40%; border-bottom: 1px solid var(--line); }
.spec td { padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -16px rgba(15,45,94,.3); transform: translateY(110%); transition: transform .3s var(--ease); }
.sticky-buy.show { transform: none; }
.sticky-buy .price b { font-size: 1.25rem; }
.sticky-buy .btn { margin-left: auto; }
@media (min-width: 960px) { .sticky-buy { display: none; } }

/* ---------- faculty page ---------- */
.fac-hero { display: grid; gap: 24px; padding: 10px 0 30px; align-items: center; }
@media (min-width: 860px) { .fac-hero { grid-template-columns: 300px 1fr; gap: 40px; } }
.fac-hero .photo { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 1; background: var(--surface-2); max-width: 300px; }
.fac-hero .photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.fac-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 8px; }
.fac-hero .sub { color: var(--orange-ink); font-weight: 700; margin-bottom: 12px; }
.fac-hero .series { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.fac-stats { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 18px; }
.fac-stats div b { display: block; font-family: var(--display); font-size: 1.6rem; color: var(--navy); line-height: 1; }
.fac-stats div span { font-size: .8rem; color: var(--muted); }

/* ---------- search page ---------- */
.search-hero { padding: 6px 0 20px; }
.search-hero form { display: flex; gap: 8px; max-width: 760px; margin-top: 10px; }
.search-hero .input { min-height: 54px; font-size: 1.02rem; }
.search-hero .btn { min-height: 54px; }
.search-meta { margin-top: 14px; color: var(--ink-2); font-weight: 600; }
.search-fac { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* ---------- cart ---------- */
.cart { display: grid; gap: 24px; padding-bottom: 20px; }
@media (min-width: 960px) { .cart { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } }
.cart-list { display: grid; gap: 12px; }
.line { position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.line img { width: 76px; height: 98px; object-fit: cover; border-radius: 8px; }
.line h3 { font-family: var(--sans); font-size: .96rem; font-weight: 700; line-height: 1.35; padding-right: 36px; }
.line h3 a:hover { text-decoration: underline; }
.line .meta { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.line .fitmsg { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .8rem; font-weight: 700; }
.line .fitmsg.ok { color: var(--green); }
.line .fitmsg.no { color: var(--orange-ink); background: var(--orange-soft); padding: 4px 8px; border-radius: 8px; }
.line .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.line .rm { position: absolute; top: 8px; right: 8px; }
.summary { position: sticky; top: calc(var(--header-h) + 16px); background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-xl); padding: 20px; }
.summary h2 { font-size: 1.3rem; margin-bottom: 14px; }
.sum-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: .94rem; }
.sum-row.save { color: var(--green); font-weight: 700; }
.sum-row.total { border-top: 2px dashed var(--line-2); margin-top: 8px; padding-top: 14px; font-size: 1.1rem; font-weight: 800; }
.ship-meter { margin: 6px 0 14px; padding: 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: .84rem; font-weight: 600; }
.ship-meter .bar { height: 8px; border-radius: 999px; background: var(--surface-2); margin-top: 8px; overflow: hidden; }
.ship-meter .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), var(--yellow)); border-radius: 999px; transition: width .4s var(--ease); }
.ship-meter.done { color: var(--green); }
.coupon { display: flex; gap: 8px; margin: 14px 0 4px; }
.coupon .input { min-height: 44px; text-transform: uppercase; }
.coupon-msg { font-size: .82rem; font-weight: 600; min-height: 1.2em; }
.coupon-msg.ok { color: var(--green); }
.coupon-msg.err { color: var(--red); }
.cart-warn { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--orange-soft); color: var(--orange-ink); font-size: .88rem; font-weight: 600; }

/* ---------- products page: filter bar (Option E, 30 Oct 2026) ---------- */
.fbar-wrap { position: sticky; top: calc(var(--header-h) + 8px); z-index: 25; margin-top: 4px; }
.fbar { display: flex; align-items: stretch; border: 1.5px solid var(--line-2); border-radius: 16px; background: #fff; overflow-x: auto; scrollbar-width: none; box-shadow: var(--sh-sm); }
.fbar::-webkit-scrollbar { display: none; }
.fbar > button.fb { position: relative; display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 58px; padding: 0 18px; font-weight: 700; font-size: .96rem; color: var(--ink); white-space: nowrap; border-right: 1px solid var(--line); }
.fbar > button.fb:hover { background: var(--surface); }
.fbar > button.fb .icon { font-size: 14px; transition: transform .2s; }
.fbar > button.fb[aria-expanded="true"] { background: var(--surface); box-shadow: inset 0 -3px 0 var(--navy); }
.fbar > button.fb[aria-expanded="true"] .icon { transform: rotate(180deg); }
.fbar > button.fb .badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--navy); color: #fff; font-size: .74rem; display: inline-grid; place-items: center; }
.fbar .spacer { flex: 1; }
.fbar .fclear { flex: none; align-self: center; margin: 0 10px; min-height: 42px; padding: 0 16px; border-radius: 10px; background: var(--surface-2); color: var(--muted); font-weight: 700; white-space: nowrap; }
.fbar .fclear:not([disabled]) { color: var(--navy); }
.fbar .fclear:not([disabled]):hover { background: var(--navy-soft); }
.fbar .fclear[disabled] { cursor: default; }
.fpanel { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; background: #fff; border: 1.5px solid var(--line-2); border-radius: 16px; box-shadow: var(--sh-lg); padding: 16px 18px 14px; display: none; max-height: min(60vh, 520px); overflow-y: auto; }
.fpanel.open { display: block; }
.fpanel .ptitle { display: none; }
.fpanel .phelp { margin: 0 0 8px 8px; font-size: .84rem; color: var(--muted); }
.fpanel .grid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2px 24px; }
.fpanel label { display: flex; align-items: center; gap: 12px; min-height: 48px; font-size: .98rem; cursor: pointer; border-radius: 10px; padding: 0 8px; }
.fpanel label:hover { background: var(--surface); }
.fpanel label.zero { opacity: .4; cursor: not-allowed; }
.fpanel input { width: 22px; height: 22px; accent-color: var(--navy); margin: 0; flex: none; }
.fpanel label img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; }
.fpanel label .t small { display: block; font-size: .76rem; color: var(--muted); line-height: 1.3; }
.fpanel label .n { margin-left: auto; font-size: .78rem; font-weight: 700; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 2px 8px; }
.fpanel .pfoot { position: sticky; bottom: -14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 0 2px; border-top: 1px solid var(--line); background: #fff; }
.active-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.active-row:empty { display: none; }
.active-row .chip { background: var(--navy-soft); border-color: transparent; color: var(--navy); }
.active-row .chip small { color: var(--muted); font-weight: 600; }
.toolbar { position: static; }
@media (max-width: 719px) {
  .fpanel { position: fixed; left: 0; right: 0; bottom: 0; top: auto; border-radius: 22px 22px 0 0; max-height: 78vh; padding-top: 8px; padding-bottom: 0; box-shadow: 0 0 0 100vmax rgba(10,31,66,.45); }
  .fpanel .grid2 { grid-template-columns: 1fr; }
  .fpanel .ptitle { display: flex; align-items: center; justify-content: space-between; position: sticky; top: -8px; background: #fff; padding: 8px 0; z-index: 1; }
  .fpanel .ptitle h3 { font-size: 1.1rem; }
  .fpanel .pfoot { bottom: 0; padding-bottom: 14px; }
  .fbar > button.fb { min-height: 52px; padding: 0 14px; font-size: .9rem; }
}
