/* Febsan Frame Shop — public site. Mobile first: base styles are for phones, min-width queries add space. */
:root {
  /* Palette: Saffron #F0CB46 · Satin sheen gold #CCA000 · Yale Blue #003566 · Oxford Blue #001D3D · Rich black #000814 */
  --saffron: #f0cb46;
  --gold: #cca000;
  --gold-ink: #7a6000;
  --yale: #003566;
  --navy: #001d3d;
  --black: #000814;
  --on-dark: #e8edf5;
  --on-dark-soft: #aab6ca;
  --bg: #f7f6f1;
  --bg-alt: #eceff4;
  --surface: #ffffff;
  --ink: #000814;
  --ink-soft: #2b3548;
  --muted: #5d6779;
  --line: #d8dde6;
  --accent: #003566;
  --accent-dark: #001d3d;
  --accent-soft: #e4ecf6;
  --ok: #1f7a4a;
  --ok-soft: #e2f3e9;
  --warn: #8a6500;
  --warn-soft: #fdf3d2;
  --error: #b3372b;
  --error-soft: #fbe6e3;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 8, 20, .06), 0 8px 24px rgba(0, 8, 20, .08);
  --focus: rgba(204, 160, 0, .6);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { color: var(--navy); font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 7vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 5vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.mono, .code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
.text-error { color: var(--error); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 50; background: #fff; padding: 8px 12px; border-radius: 8px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; color: var(--gold-ink); margin-bottom: .6em; }
.lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 36em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 46px; padding: 0 20px;
  border-radius: 999px; border: 1.5px solid var(--saffron); background: var(--saffron); color: var(--black); font: 700 1rem/1 var(--sans);
  text-decoration: none; cursor: pointer; transition: background .15s, transform .1s; }
.btn:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .9rem; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-ghost, .btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-ghost:hover, .btn-outline:hover { background: var(--accent-soft); color: var(--accent-dark); }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--navy);
  border-bottom: 1px solid rgba(240, 203, 70, .25); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.1rem; }
.brand-mark { width: 26px; height: 26px; border: 4px solid var(--saffron); outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 2px; flex: none; }
.topnav { display: flex; align-items: center; gap: 6px; }
.topnav a:not(.btn) { display: none; color: var(--on-dark-soft); text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: .95rem; }
.topnav a:not(.btn):hover { background: rgba(255, 255, 255, .08); color: #fff; }

/* Flash messages and notices */
.flashes { padding-top: 16px; }
.flash { padding: 12px 14px; border-radius: 10px; margin-bottom: 12px; background: var(--ok-soft); color: var(--ok); font-weight: 500; }
.flash-error { background: var(--error-soft); color: var(--error); }
.notice { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 18px; margin: 0 0 18px; }
.notice h2 { font-size: 1.25rem; }
.notice p:last-child { margin-bottom: 0; }
.notice-ok { border-left-color: var(--ok); background: #fbfefc; }
.notice-wait { border-left-color: var(--gold); background: #fffcf0; }

/* Frames (CSS mouldings used when there is no photo, and around photos) */
.frame { padding: 10px; border-radius: 3px; box-shadow: 0 10px 24px rgba(0, 8, 20, .28), inset 0 0 0 1px rgba(255, 255, 255, .15); }
.frame--black { background: linear-gradient(135deg, #3a3633, #121110); }
.frame--white { background: linear-gradient(135deg, #ffffff, #e6e2db); box-shadow: 0 10px 24px rgba(42, 36, 32, .14), inset 0 0 0 1px #ddd6cb; }
.frame--natural { background: linear-gradient(135deg, #e0bd8d, #b07f48 60%, #caa06b); }
.frame--walnut { background: linear-gradient(135deg, #7a5033, #3c2414 60%, #5d3b23); }
.frame--gold { background: linear-gradient(135deg, #f3dc94, #b8892c 45%, #f0d68a 70%, #a77a22); }
.frame--silver { background: linear-gradient(135deg, #f1f2f4, #a5a9ae 50%, #dcdfe2); }
.mat { background: #fbf8f2; padding: 10%; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .18); aspect-ratio: 4 / 5; display: flex; }
.mat img { width: 100%; height: 100%; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.art { flex: 1; display: block; }
.art-1 { background: radial-gradient(circle at 70% 30%, #f6d7a7 0 14%, transparent 15%), linear-gradient(180deg, #a9c3cf 0 55%, #7d9a72 55% 70%, #5e7c55 70%); }
.art-2 { background: radial-gradient(circle at 50% 38%, #e9c6a6 0 18%, transparent 19%), radial-gradient(ellipse at 50% 100%, #6c7fa0 0 45%, transparent 46%), #ece3d6; }
.art-3 { background: linear-gradient(135deg, #d98f6b 0 33%, #e9c46a 33% 66%, #2a9d8f 66%); }

/* Hero */
.hero { padding: 32px 0 40px; overflow: hidden; }
.hero-grid { display: grid; gap: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.hero-actions.center { justify-content: center; }
.pay-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pay-chips li { font-size: .8rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft); }
.hero-art { position: relative; height: 300px; max-width: 420px; margin: 0 auto; width: 100%; }
.hero-frame { position: absolute; }
.hero-frame-1 { width: 54%; left: 4%; top: 8%; transform: rotate(-4deg); z-index: 2; }
.hero-frame-2 { width: 40%; right: 4%; top: 0; transform: rotate(3deg); }
.hero-frame-3 { width: 36%; right: 10%; bottom: 0; transform: rotate(-2deg); z-index: 3; }
.hero-frame-3 .mat { aspect-ratio: 1; }

/* Dark sections (Oxford Blue → Rich black) */
.hero { background: radial-gradient(120% 80% at 85% 0%, rgba(0, 53, 102, .9), transparent 60%), linear-gradient(170deg, var(--navy), var(--black)); color: var(--on-dark); }
.hero h1 { color: #fff; }
.hero .eyebrow, .section-cta .eyebrow { color: var(--saffron); }
.hero .lead { color: var(--on-dark-soft); }
.hero .pay-chips li { background: rgba(255, 255, 255, .06); border-color: rgba(240, 203, 70, .35); color: var(--on-dark); }
.hero .btn-ghost, .section-cta .btn-ghost { color: var(--saffron); border-color: var(--saffron); }
.hero .btn-ghost:hover, .section-cta .btn-ghost:hover { background: rgba(240, 203, 70, .12); color: var(--saffron); }

/* Sections */
.section { padding: 48px 0; }
.section-alt { background: var(--bg-alt); }
.section-cta { background: linear-gradient(160deg, var(--yale), var(--navy)); color: var(--on-dark); }
.section-cta h2 { color: #fff; }
.section-cta .muted { color: var(--on-dark-soft); }
.section-cta a:not(.btn) { color: var(--saffron); }
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: relative; }
.steps p { color: var(--ink-soft); margin: 0; }
.step-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--saffron); color: var(--black); font-weight: 700; margin-bottom: 10px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.product-frame { margin: 16px 16px 0; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin: 0; }
.card-body p { margin: 0; }
.card-body .btn { margin-top: auto; align-self: flex-start; }
.sizes summary { cursor: pointer; font-weight: 700; color: var(--yale); }
.sizes ul { list-style: none; padding: 0; margin: 8px 0 0; font-size: .9rem; }
.sizes li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.empty { padding: 24px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.gallery { columns: 2; column-gap: 12px; margin-top: 20px; }
.gallery figure { margin: 0 0 12px; break-inside: avoid; background: var(--surface); border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.gallery figcaption { font-size: .85rem; padding: 8px 10px; color: var(--ink-soft); }
.two-col { display: grid; gap: 24px; }
.info-cards { display: grid; gap: 12px; }
.info { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.info h3 { margin-bottom: .3em; }
.info p { margin: 0; color: var(--ink-soft); }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 16px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details > div { padding: 0 16px 6px; color: var(--ink-soft); }

/* Footer */
.footer { border-top: 3px solid var(--gold); padding: 32px 0 104px; background: var(--black); color: var(--on-dark-soft); font-size: .95rem; }
.footer a { color: var(--saffron); }
.footer .muted { color: #7f8ba0; }
.footer-grid { display: grid; gap: 18px; }
.footer-brand { color: #fff; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; margin-bottom: .2em; }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.copyright { color: #7f8ba0; font-size: .8rem; margin-top: 20px; }
/* Mobile bottom tab bar (like the admin): hidden on wide screens, where the top nav shows every link. */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--navy); border-top: 1px solid rgba(240, 203, 70, .25);
  padding-bottom: env(safe-area-inset-bottom); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px 10px; color: var(--on-dark-soft);
  text-decoration: none; font-size: .68rem; font-weight: 600; text-align: center; line-height: 1.2; }
.bottom-nav a.is-active { color: var(--saffron); }
.bottom-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bottom-nav .tab-cta { color: var(--saffron); }
.bottom-nav .tab-cta .tab-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-top: -22px; border-radius: 50%;
  background: var(--saffron); color: var(--black); border: 3px solid var(--navy); box-shadow: 0 6px 16px rgba(0, 8, 20, .35); }
.bottom-nav .tab-cta.is-active .tab-icon { background: var(--gold); }

/* Forms */
.form { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; }
fieldset { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 16px; margin: 0 0 16px; min-width: 0; }
legend { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; padding: 0 6px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-weight: 600; font-size: .95rem; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); font-size: .85rem; }
.field-small { max-width: 160px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=search], input[type=url], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
  font: 16px/1.4 var(--sans); }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(0, 53, 102, .15); }
.field-error { color: var(--error); font-size: .875rem; margin: 0; font-weight: 500; }
.hint { color: var(--muted); font-size: .85rem; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.choice-row.wrap-row { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin-bottom: 0; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; height: 100%; }
.choice small { color: var(--muted); }
.choice input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.dropzone { position: relative; display: grid; place-items: center; min-height: 96px; border: 2px dashed var(--line); border-radius: 12px; background: #fff; cursor: pointer; text-align: center; padding: 16px; }
.dropzone:hover { border-color: var(--accent); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone-text { color: var(--accent-dark); font-weight: 600; }
.previews { display: flex; flex-wrap: wrap; gap: 8px; }
.previews img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.previews .file-chip { font-size: .85rem; padding: 6px 10px; background: var(--accent-soft); border-radius: 8px; }
.is-hidden { display: none !important; }

/* Tracking page */
.track-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; }
.track-head .eyebrow { width: 100%; margin: 0; }
.track-head h1 { margin: 0; font-size: 2rem; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--ink-soft); white-space: nowrap; }
.badge-new, .badge-pay-pending { background: var(--warn-soft); color: var(--warn); }
.badge-quoted, .badge-partial { background: #e8eefb; color: #2f4f9a; }
.badge-paid, .badge-in_production, .badge-pay-approved { background: var(--ok-soft); color: var(--ok); }
.badge-ready { background: #def3f0; color: #126b60; }
.badge-completed { background: #e6e9ef; color: #2b3548; }
.badge-cancelled, .badge-pay-rejected { background: var(--error-soft); color: var(--error); }
.progress { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; counter-reset: step; }
.progress li { font-size: .7rem; color: var(--muted); text-align: center; }
.progress li::before { content: ""; display: block; height: 6px; border-radius: 3px; background: var(--line); margin-bottom: 6px; }
.progress li.done::before { background: var(--gold); }
.progress li.current::before { background: linear-gradient(90deg, var(--gold) 50%, var(--line) 50%); }
.progress li.current { color: var(--ink); font-weight: 700; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; }
.panel h2 { font-size: 1.3rem; }
.summary, .totals, .acct { margin: 0; }
.summary div, .totals div, .acct div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.summary div:last-child, .totals div:last-child, .acct div:last-child { border-bottom: 0; }
dt { color: var(--muted); }
dd { margin: 0; text-align: right; font-weight: 500; overflow-wrap: anywhere; }
.totals .total dt, .totals .total dd { color: var(--ink); font-weight: 700; font-size: 1.1rem; }
.quote-notes { margin-top: 12px; padding: 12px; background: var(--bg); border-radius: 10px; color: var(--ink-soft); }
.quote-notes p:last-child { margin: 0; }
.methods { display: grid; gap: 12px; margin: 16px 0 8px; }
.method { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; }
.method header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.method h3 { margin: 0; font-family: var(--sans); font-size: 1rem; }
.method-type { font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; color: #fff; background: #555; }
.method-gcash { background: #0b5fd6; }
.method-maya { background: #0d8a5f; }
.method-qrph { background: #b0261c; }
.method-bank { background: #4b4f58; }
.qr { display: block; width: 100%; max-width: 240px; margin: 0 auto 6px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; cursor: zoom-in; font: inherit; color: var(--muted); }
.qr img { width: 100%; height: auto; }
.qr span { display: block; font-size: .75rem; margin-top: 6px; }
.method > .small { display: block; text-align: center; margin-bottom: 8px; }
.copy { margin-left: 6px; font: 600 .75rem var(--sans); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--accent); background: transparent; color: var(--accent); cursor: pointer; }
.copy.is-done { background: var(--ok); border-color: var(--ok); color: #fff; }
.pay .form h3 { margin-top: 8px; }
.pay-list { list-style: none; padding: 0; margin: 0; }
.pay-list li { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.pay-list li:last-child { border: 0; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 14px 6px; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--yale); }
.timeline li:first-child::before { background: var(--saffron); border-color: var(--gold); }
.timeline p { margin: 0; }
.help { margin-top: 8px; }
dialog.zoom { border: 0; border-radius: 16px; padding: 16px; max-width: min(92vw, 480px); }
dialog.zoom::backdrop { background: rgba(0, 8, 20, .75); }
dialog.zoom img { width: 100%; margin-bottom: 12px; }

@media (min-width: 640px) {
  .topnav a:not(.btn) { display: inline-block; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .gallery { columns: 3; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .methods { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .progress li { font-size: .78rem; }
}
@media (min-width: 900px) {
  .hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; }
  .hero-art { height: 420px; max-width: none; }
  .section { padding: 72px 0; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .two-col { grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
  .gallery { columns: 4; }
  .bottom-nav { display: none; }
  .footer { padding-bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ===== Landing page v2: motion and new sections ===== */
.hero { position: relative; }
.hero-grid { position: relative; z-index: 1; }
.hero-glow { position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 760px; max-height: 760px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 203, 70, .16), rgba(0, 53, 102, 0) 65%); pointer-events: none; }
.hero-in { opacity: 0; transform: translateY(18px); animation: rise .8s cubic-bezier(.2, .7, .2, 1) forwards; }
.hero-copy .hero-in:nth-child(2) { animation-delay: .08s; }
.hero-copy .hero-in:nth-child(3) { animation-delay: .18s; }
.hero-copy .hero-in:nth-child(4) { animation-delay: .28s; }
.hero-copy .hero-in:nth-child(5) { animation-delay: .38s; }
.hero-copy .hero-in:nth-child(6) { animation-delay: .48s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--saffron); margin-right: 8px; vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(240, 203, 70, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(240, 203, 70, 0); } 100% { box-shadow: 0 0 0 0 rgba(240, 203, 70, 0); } }
.hero h1 { text-wrap: balance; }
.trust { list-style: none; padding: 0; margin: 4px 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.trust li { display: flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 600; color: var(--on-dark); padding: 8px 10px; border-radius: 10px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(240, 203, 70, .18); }
.trust svg, .visit-list svg, .feature-icon svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--saffron); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pay-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .82rem; color: var(--on-dark-soft); margin: 0; }
.pay-line b { color: var(--on-dark); font-weight: 700; }
.pay-line b + b::before { content: "·"; color: var(--gold); margin-right: 10px; }

.hero-frame .frame { animation: float 7s ease-in-out infinite; will-change: transform; }
.hero-frame-2 .frame { animation-delay: -2.3s; animation-duration: 8s; }
.hero-frame-3 .frame { animation-delay: -4.6s; animation-duration: 6.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero-art { opacity: 0; animation: rise 1s cubic-bezier(.2, .7, .2, 1) .35s forwards; }
.hero-badge { position: absolute; left: 0; bottom: 6%; z-index: 4; display: flex; flex-direction: column; padding: 10px 14px; border-radius: 12px;
  background: var(--saffron); color: var(--black); box-shadow: 0 12px 28px rgba(0, 8, 20, .35); transform: rotate(-3deg); animation: float 6s ease-in-out -1s infinite; }
.hero-badge b { font-family: var(--serif); font-size: 1rem; }
.hero-badge span { font-size: .72rem; font-weight: 600; }
.sparkle { position: absolute; width: 10px; height: 10px; background: var(--saffron); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: twinkle 3s ease-in-out infinite; z-index: 5; }
.s1 { top: 4%; left: 30%; } .s2 { top: 46%; right: 2%; animation-delay: -1s; width: 14px; height: 14px; } .s3 { bottom: 2%; left: 52%; animation-delay: -2s; }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.6) rotate(0); } 50% { opacity: 1; transform: scale(1.1) rotate(45deg); } }

.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after { content: ""; position: absolute; top: 0; left: 0; width: 40%; height: 100%; transform: translateX(-150%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); animation: shine 5s ease-in-out 1.5s infinite; }
@keyframes shine { 0%, 70% { transform: translateX(-150%) skewX(-20deg); } 100% { transform: translateX(350%) skewX(-20deg); } }
.btn span[aria-hidden] { transition: transform .2s; }
.btn:hover span[aria-hidden] { transform: translateX(4px); }

.marquee { overflow: hidden; background: var(--black); border-top: 1px solid rgba(240, 203, 70, .25); border-bottom: 1px solid rgba(240, 203, 70, .25); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee li { padding: 14px 18px; color: var(--on-dark); font-family: var(--serif); font-size: 1.05rem; white-space: nowrap; }
.marquee li::after { content: "✦"; color: var(--gold); margin-left: 36px; font-size: .8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

.section-head { max-width: 640px; margin-bottom: 24px; }
.section-head .muted { margin: 0; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
.feature h3 { font-size: 1.05rem; margin: 10px 0 4px; }
.feature p { margin: 0; font-size: .9rem; color: var(--ink-soft); }
.feature-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--navy); }
.feature-icon svg { width: 22px; height: 22px; }
.steps li { transition: transform .25s, box-shadow .25s; }
.steps li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
#how .center { margin-top: 24px; }
.card { transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0, 8, 20, .14); }
.card .product-frame { transition: transform .4s; }
.card:hover .product-frame { transform: rotate(-1.5deg) scale(1.02); }
.gallery figure { overflow: hidden; }
.gallery img { transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.05); }
.fb-card { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px dashed var(--gold); }
.fb-card h3, .fb-card p { margin: 0; }
.visit { background: linear-gradient(160deg, var(--yale), var(--navy)); color: var(--on-dark); border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow); }
.visit h3 { color: #fff; font-size: 1.3rem; }
.visit-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.visit-list li { display: flex; gap: 10px; align-items: flex-start; }
.visit-list svg { margin-top: 3px; }
.visit a:not(.btn) { color: var(--saffron); }
.visit-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.visit .btn-outline { color: var(--saffron); border-color: var(--saffron); }
.visit .btn-outline:hover { background: rgba(240, 203, 70, .12); }
.info-mini { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 12px; font-size: .88rem; color: var(--on-dark-soft); }
.info-mini p { margin: 0 0 6px; }
.info-mini b { color: var(--on-dark); }

/* Scroll reveal: site.js hides only what starts below the fold, so nothing flashes and no-JS visitors see everything. */
.will-reveal { opacity: 0; transform: translateY(26px); }
.will-reveal.revealed { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--delay, 0s); }

@media (min-width: 640px) {
  .features { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .fb-card { flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (min-width: 900px) {
  .trust { grid-template-columns: repeat(4, auto); justify-content: start; }
  .hero-badge { left: -4%; }
  .steps { position: relative; }
  .steps::before { content: ""; position: absolute; left: 6%; right: 6%; top: 34px; height: 2px; background: linear-gradient(90deg, var(--gold), var(--yale)); opacity: .35; }
  .steps li { position: relative; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-in, .hero-art, .hero h1 { opacity: 1; transform: none; animation: none; }
  .hero-frame .frame, .hero-badge, .sparkle, .hero-glow, .live-dot, .btn-shine::after, .marquee-track { animation: none; }
  .will-reveal { opacity: 1; transform: none; }
}

/* Signage section (dark) */
.section-dark { background: radial-gradient(90% 70% at 10% 0%, rgba(0, 53, 102, .85), transparent 60%), linear-gradient(170deg, var(--navy), var(--black)); color: var(--on-dark); }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: var(--saffron); }
.section-dark .section-head p:not(.eyebrow) { color: var(--on-dark-soft); }
.gallery-signage figure { background: rgba(255, 255, 255, .04); border-color: rgba(240, 203, 70, .25); }
.gallery-signage figcaption { color: var(--on-dark-soft); }
#signage .btn { margin-top: 8px; }
.section-tight { padding: 28px 0; }
.section-tight .fb-card { margin-top: 0; }

/* Performance: let the browser skip rendering sections that are far off-screen, and pause decorative motion
   when the hero is not visible (site.js toggles .is-offscreen). */
#styles, #gallery, #signage, #about, #faq { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.hero.is-offscreen *, .hero.is-offscreen *::after { animation-play-state: paused !important; }

/* Contact page */
.page-hero { background: radial-gradient(90% 80% at 85% 0%, rgba(0, 53, 102, .9), transparent 60%), linear-gradient(170deg, var(--navy), var(--black)); color: var(--on-dark); padding: 36px 0 32px; }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero .eyebrow { color: var(--saffron); }
.page-hero .lead { color: var(--on-dark-soft); margin: 0; }
.contact-section { padding-top: 24px; }
.contact-grid { display: grid; gap: 20px; }
.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; margin-top: 0; }
.topic-row { grid-template-columns: 1fr 1fr; }
.topic-row .choice span { padding: 10px 12px; font-size: .9rem; }
.field-pair { display: grid; gap: 0; }
.contact-sent h2 { font-size: 1.35rem; }
.contact-sent .btn { margin: 4px 6px 0 0; }
@media (min-width: 640px) {
  .field-pair { grid-template-columns: 1fr 1fr; gap: 12px; }
  .topic-row { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 900px) {
  .page-hero { padding: 56px 0 48px; }
  .contact-grid { grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
  .contact-aside { position: sticky; top: 84px; }
}

/* ===== Messenger-style chat (Contact page; the admin chat reuses these) ===== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.is-chat .footer, .is-chat .bottom-nav, .is-chat .flashes { display: none; }
.is-chat main { background: var(--bg-alt); }
.chat { display: flex; flex-direction: column; height: calc(100dvh - 61px); max-width: 760px; margin: 0 auto; background: var(--surface); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.chat-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); flex: none; }
.chat-avatar .brand-mark { width: 18px; height: 18px; border-width: 3px; outline-offset: 1px; }
.chat-avatar.big { width: 72px; height: 72px; }
.chat-avatar.big .brand-mark { width: 30px; height: 30px; border-width: 5px; outline-width: 2px; }
.chat-who { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.chat-who b { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-status { font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.chat-status .dot { width: 8px; height: 8px; border-radius: 50%; background: #b9c0cc; flex: none; }
.chat-status .dot.is-on { background: #31a24c; }
.chat-icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--accent-soft); color: var(--yale); cursor: pointer; flex: none; }
.chat-icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat-head form { margin: 0; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px 12px 6px; display: flex; flex-direction: column; gap: 2px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.chat-intro { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 14px 10px 18px; }
.chat-intro b { font-size: 1.1rem; margin-top: 6px; }
.chat-intro span { font-size: .85rem; color: var(--ink-soft); }
.chat-day { text-align: center; margin: 12px 0 6px; }
.chat-day span { font-size: .72rem; color: var(--muted); font-weight: 600; }
.msg { display: flex; flex-direction: column; max-width: 80%; margin-top: 2px; }
.msg-shop { align-self: flex-start; align-items: flex-start; }
.msg-me { align-self: flex-end; align-items: flex-end; }
.bubble { padding: 8px 13px; border-radius: 18px; font-size: .95rem; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-shop .bubble { background: #e9ecf1; color: var(--ink); }
.msg-me .bubble { background: var(--yale); color: #fff; }
.msg-shop + .msg-shop .bubble { border-top-left-radius: 6px; }
.msg-me + .msg-me .bubble { border-top-right-radius: 6px; }
.msg time { font-size: .66rem; color: var(--muted); margin: 2px 6px 6px; }
.msg.is-pending .bubble { opacity: .6; }
.msg.is-failed { cursor: pointer; }
.msg.is-failed .bubble { background: var(--error-soft); color: var(--error); }
.msg.is-failed time { color: var(--error); font-weight: 600; }
.msg-auto .bubble { background: var(--accent-soft); color: var(--ink-soft); }
.chat-chips { display: flex; gap: 8px; overflow-x: auto; padding: 6px 12px; scrollbar-width: none; }
.chat-chips::-webkit-scrollbar { display: none; }
.chat-chips button { flex: none; border: 1.5px solid var(--yale); background: var(--surface); color: var(--yale); border-radius: 999px; padding: 7px 12px; font: 600 .85rem var(--sans); cursor: pointer; }
.chat-chips button:hover { background: var(--accent-soft); }
.chat-error { margin: 0 12px; padding: 8px 12px; border-radius: 10px; background: var(--error-soft); color: var(--error); font-size: .85rem; }
.chat-input { display: flex; align-items: flex-end; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); margin: 0; }
.chat-input textarea { flex: 1; min-height: 42px; max-height: 120px; padding: 10px 14px; border-radius: 21px; border: 1.5px solid transparent; background: #eef1f5; resize: none; font-size: 16px; line-height: 1.35; }
.chat-input textarea:focus { background: #fff; border-color: var(--yale); box-shadow: none; }
.chat-send { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--saffron); color: var(--black); cursor: pointer; flex: none; }
.chat-send:hover { background: var(--gold); }
.chat-send svg { width: 20px; height: 20px; fill: currentColor; }
.chat-note { margin: 0; padding: 0 14px 8px; font-size: .75rem; color: var(--muted); background: var(--surface); }
@media (min-width: 760px) {
  .chat { height: calc(100dvh - 61px - 32px); margin: 16px auto; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
}

/* ===== Floating chat (button + popup) ===== */
.chat-widget { position: relative; z-index: 60; }
.chat-launcher { position: fixed; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 61; display: flex; align-items: center; gap: 10px;
  height: 56px; min-width: 56px; padding: 0 16px; justify-content: center; border-radius: 28px; background: var(--saffron); color: var(--black);
  text-decoration: none; font-weight: 700; box-shadow: 0 10px 28px rgba(0, 8, 20, .3); transition: transform .2s, background .2s; }
.chat-launcher:hover { background: var(--gold); transform: translateY(-2px); }
.chat-launcher svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.chat-launcher-label { display: none; }
.chat-launcher::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(240, 203, 70, .55); animation: launcher-ping 3s ease-out 2s 3; }
@keyframes launcher-ping { 0% { box-shadow: 0 0 0 0 rgba(240, 203, 70, .55); } 100% { box-shadow: 0 0 0 16px rgba(240, 203, 70, 0); } }
.chat-badge { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--error); color: #fff;
  font-size: .75rem; line-height: 22px; text-align: center; border: 2px solid #fff; }
.chat-panel { display: none; }
.chat-widget.is-open .chat-panel { display: flex; position: fixed; inset: 0; z-index: 62; height: 100dvh; max-width: none; margin: 0; border-radius: 0;
  animation: chat-pop .22s ease-out; }
.chat-widget.is-open .chat-launcher { display: none; }
@keyframes chat-pop { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
html.chat-locked, html.chat-locked body { overflow: hidden; }
.chat-panel .chat-log { background: var(--surface); }
.chat-panel .chat-intro { padding-top: 8px; }
@media (min-width: 900px) {
  .chat-launcher { bottom: 24px; right: 24px; padding: 0 20px 0 16px; }
  .chat-launcher-label { display: inline; }
  .chat-widget.is-open .chat-launcher { display: flex; padding: 0; width: 56px; }
  .chat-widget.is-open .chat-launcher svg, .chat-widget.is-open .chat-launcher-label { display: none; }
  .chat-widget.is-open .chat-launcher::after { content: "×"; font-size: 1.8rem; line-height: 1; }
  .chat-widget.is-open .chat-panel { inset: auto 24px 92px auto; width: 380px; height: min(600px, calc(100dvh - 120px)); border-radius: 18px;
    border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 8, 20, .28); overflow: hidden; }
  html.chat-locked, html.chat-locked body { overflow: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .chat-launcher::before, .chat-widget.is-open .chat-panel { animation: none; }
}

/* Home page frame cards link to the shop */
.card-link { color: var(--ink); text-decoration: none; }
.card-link .card-title { font-family: var(--serif); font-size: 1.1rem; color: var(--navy); }
.card-link .card-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-price { font-weight: 700; color: var(--yale); }
.card-more { margin-top: auto; font-size: .85rem; font-weight: 700; color: var(--gold-ink); }
.see-all { margin-top: 24px; }

/* ===== Frame Styles shop page ===== */
.shop-section { padding-top: 20px; }
.shop-toolbar { display: flex; gap: 8px; position: sticky; top: 60px; z-index: 5; background: var(--bg); padding: 8px 0; }
.shop-search { position: relative; flex: 1; }
.shop-search svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.shop-search input { padding-left: 38px; border-radius: 999px; min-height: 44px; }
.shop-sort select { min-height: 44px; border-radius: 999px; padding: 8px 12px; width: auto; }
.shop-count { margin: 4px 0 12px; }
.shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.p-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; color: var(--ink);
  text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.p-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold); }
.p-media { position: relative; aspect-ratio: 1; background: #f1efe9; display: grid; place-items: center; overflow: hidden; }
.p-media img { width: 100%; height: 100%; object-fit: cover; }
.p-frame { width: 70%; }
.p-tag { position: absolute; left: 8px; top: 8px; background: var(--navy); color: var(--saffron); font-size: .66rem; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; padding: 3px 7px; border-radius: 6px; }
.p-photos { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 8, 20, .7); color: #fff; font-size: .7rem; padding: 2px 7px; border-radius: 10px; }
.p-info { display: flex; flex-direction: column; gap: 3px; padding: 10px 10px 12px; }
.p-name { font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-price { color: var(--yale); font-weight: 800; font-size: 1.02rem; }
.p-meta { color: var(--muted); font-size: .75rem; }
.shop-help { display: flex; flex-direction: column; gap: 6px; margin-top: 28px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px dashed var(--gold); }
.shop-help h2 { font-size: 1.3rem; margin-bottom: .3em; }
.shop-help p { margin: 0; }
@media (min-width: 640px) { .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 900px) {
  .shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .shop-help { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* Product popup (bottom sheet on phones, centered card on computers) */
html.pd-locked, html.pd-locked body { overflow: hidden; }
dialog.pd { padding: 0; border: 0; background: transparent; width: 100%; max-width: 100%; max-height: 100dvh; height: 100dvh; margin: 0; }
dialog.pd::backdrop { background: rgba(0, 8, 20, .6); }
.pd-sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 94dvh; display: flex; flex-direction: column; background: var(--surface);
  border-radius: 18px 18px 0 0; overflow: hidden; animation: sheet-up .25s ease-out; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.pd-close { position: absolute; right: 10px; top: 10px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0, 8, 20, .55);
  color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.pd-sheet > .pd-body, .pd-sheet > .pd-gallery, .pd-sheet > .pd-thumbs { flex: none; }
.pd-sheet { overflow-y: auto; }
.pd-gallery { position: relative; background: #f1efe9; }
.pd-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pd-track::-webkit-scrollbar { display: none; }
.pd-slide { flex: 0 0 100%; aspect-ratio: 1; scroll-snap-align: start; display: grid; place-items: center; }
.pd-slide img { width: 100%; height: 100%; object-fit: contain; }
.pd-frame { width: 62%; }
.pd-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; }
.pd-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.pd-dots span.is-on { background: var(--saffron); }
.pd-thumbs { display: flex; gap: 6px; padding: 8px 12px 0; overflow-x: auto; }
.pd-thumbs:empty { display: none; }
.pd-thumbs button { flex: none; width: 54px; height: 54px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: none; cursor: pointer; }
.pd-thumbs button.is-on { border-color: var(--gold); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-body { padding: 14px 16px 8px; }
.pd-body h2 { font-size: 1.4rem; margin-bottom: .2em; }
.pd-price { font-size: 1.35rem; font-weight: 800; color: var(--yale); margin: 0 0 10px; }
.pd-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 14px; }
.pd-tags li { font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--yale); }
.pd-section { border-top: 1px solid var(--line); padding: 12px 0; }
.pd-section h3 { font-family: var(--sans); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.pd-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-size { display: flex; flex-direction: column; align-items: flex-start; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  cursor: pointer; font: 600 .9rem var(--sans); color: var(--ink); }
.pd-size small { font-weight: 600; color: var(--muted); }
.pd-size.is-on { border-color: var(--yale); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--yale); }
.pd-size.is-on small { color: var(--yale); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty button { width: 42px; height: 42px; border: 0; background: var(--bg); font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.qty input { width: 64px; min-height: 42px; border: 0; border-radius: 0; text-align: center; padding: 0; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
#pd-desc { margin: 0 0 8px; color: var(--ink-soft); white-space: pre-line; }
.pd-specs { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: .9rem; }
.pd-specs li { margin: 4px 0; }
.pd-bar { position: sticky; bottom: 0; display: flex; align-items: center; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--line); }
.pd-total { display: flex; flex-direction: column; margin-right: auto; line-height: 1.2; }
.pd-total span { font-size: .72rem; color: var(--muted); }
.pd-total b { font-size: 1.15rem; color: var(--yale); }
.pd-bar .btn { min-height: 44px; padding: 0 16px; }
@media (min-width: 900px) {
  dialog.pd { display: none; }
  dialog.pd[open] { display: grid; place-items: center; }
  .pd-sheet { position: relative; width: min(920px, 94vw); max-height: 88dvh; border-radius: 18px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr auto; overflow: hidden; }
  .pd-gallery { grid-column: 1; grid-row: 1 / 3; align-self: start; }
  .pd-thumbs { grid-column: 1; grid-row: 3; padding: 8px 12px 12px; }
  .pd-body { grid-column: 2; grid-row: 1 / 3; overflow-y: auto; padding: 22px 22px 8px; }
  .pd-bar { grid-column: 2; grid-row: 3; position: static; }
}
@media (prefers-reduced-motion: reduce) { .pd-sheet { animation: none; } }
.pd-hint { margin: 8px 0 0; font-size: .82rem; color: var(--muted); }

/* Popup action bar: chat icon, Get a quote, Buy now */
.pd-chat-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); color: var(--yale); flex: none; }
.pd-chat-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.pd-bar .btn { padding: 0 14px; font-size: .95rem; }
@media (max-width: 380px) { .pd-bar .btn { padding: 0 10px; font-size: .88rem; } .pd-total b { font-size: 1rem; } }

/* Checkout */
.checkout { padding-top: 16px; }
.checkout h1 { font-size: 1.9rem; }
.checkout-grid { display: grid; gap: 16px; }
.co-item { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.co-thumb { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: #f1efe9; display: grid; place-items: center; flex: none; }
.co-thumb img { width: 100%; height: 100%; object-fit: cover; }
.co-thumb .frame { width: 54px; padding: 4px; }
.co-info { display: flex; flex-direction: column; gap: 2px; }
.co-unit { font-weight: 700; color: var(--yale); }
.checkout-summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.checkout-summary h2 { font-size: 1.25rem; }
.checkout-summary .btn { margin: 6px 0 10px; }
@media (min-width: 900px) {
  .checkout-grid { grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
  .checkout-summary { position: sticky; top: 84px; margin-top: 56px; }
}
.track-input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.2rem !important; letter-spacing: .08em; text-transform: uppercase; text-align: center; }
