:root {
  color-scheme: light;
  --ink: #161b1e;
  --muted: #596066;
  --paper: #f1efe8;
  --raised: #fffdf7;
  --soft: #e5e9e2;
  --line: rgba(22, 27, 30, .17);
  --dark: #11171b;
  --blue: #17658f;
  --blue-dark: #104766;
  --yellow: #e9dc62;
  --rust: #c85b38;
  --cream: #f9f1de;
  --shadow: 0 18px 45px rgba(30, 35, 38, .10);
  --max: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #f5f0e6;
    --muted: #aeb7bc;
    --paper: #0f1417;
    --raised: #181f23;
    --soft: #202b2b;
    --line: rgba(245, 240, 230, .15);
    --dark: #090d0f;
    --blue: #4b96bf;
    --blue-dark: #2d7398;
    --yellow: #e7d764;
    --rust: #df704c;
    --cream: #f8efdc;
    --shadow: 0 18px 45px rgba(0, 0, 0, .34);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f5f0e6;
  --muted: #aeb7bc;
  --paper: #0f1417;
  --raised: #181f23;
  --soft: #202b2b;
  --line: rgba(245, 240, 230, .15);
  --dark: #090d0f;
  --blue: #4b96bf;
  --blue-dark: #2d7398;
  --yellow: #e7d764;
  --rust: #df704c;
  --cream: #f8efdc;
  --shadow: 0 18px 45px rgba(0, 0, 0, .34);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 1rem; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.shell { width: min(calc(100% - 2.5rem), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; top: .6rem; left: .6rem; z-index: 100; transform: translateY(-150%); padding: .75rem 1rem; background: var(--yellow); color: #11171b; font-weight: 800; border-radius: .4rem; }
.skip-link:focus { transform: none; }

.topline { background: var(--dark); color: var(--cream); border-bottom: 1px solid rgba(255,255,255,.1); }
.topline .shell { min-height: 2rem; display: flex; align-items: center; justify-content: center; gap: .6rem; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.on-air { width: .5rem; height: .5rem; flex: 0 0 auto; border-radius: 50%; background: var(--rust); box-shadow: 0 0 0 .25rem rgba(200,91,56,.16); }
.site-header { position: sticky; top: 0; z-index: 15; background: color-mix(in srgb, var(--paper) 91%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.nav-wrap { min-height: 4.5rem; display: flex; align-items: center; gap: 1.6rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; min-width: max-content; }
.brand-retro { font-size: 1rem; font-weight: 950; letter-spacing: -.035em; line-height: .9; text-transform: uppercase; }
.brand-retro span { display: block; color: var(--blue); }
.brand-script { margin-top: -.12rem; font-family: "Snell Roundhand", "Brush Script MT", "Segoe Script", cursive; font-size: 2.05rem; font-weight: 700; letter-spacing: -.06em; line-height: .75; transform: rotate(-4deg); }
.brand-tag { padding-left: .7rem; border-left: 1px solid var(--line); color: var(--muted); font-size: .66rem; font-weight: 800; letter-spacing: .1em; line-height: 1.25; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 1.35rem; margin-left: auto; }
.nav > a:not(.cart-link) { padding: .35rem 0; border-bottom: 2px solid transparent; font-size: .84rem; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.nav > a:not(.cart-link):hover { border-color: var(--rust); }
.nav .normal-case { text-transform: none !important; }
.cart-link { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.45rem; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: .4rem; background: var(--dark); color: var(--cream); font-size: .8rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.cart-link svg { width: 1rem; height: 1rem; }
.cart-link span { display: grid; width: 1.25rem; height: 1.25rem; place-items: center; border-radius: 50%; background: var(--rust); color: #fff; font-size: .65rem; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.page-main { padding-block: 2.5rem 4rem; }
.breadcrumb { margin-bottom: 1rem; color: var(--blue); font-size: .85rem; font-weight: 800; }
.breadcrumb a:hover { text-decoration: underline; }
.product-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; color: var(--blue); font-size: .85rem; font-weight: 800; }
.product-nav a:hover { text-decoration: underline; }
.product-detail { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(20rem, .92fr); overflow: hidden; border: 1px solid var(--line); border-radius: .9rem; background: var(--raised); box-shadow: var(--shadow); }
.detail-gallery { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-width: 0; background: #0d1114; }
.detail-image { min-height: 30rem; overflow: hidden; background: #0d1114; }
.detail-image img { width: 100%; height: 100%; object-fit: cover; }
.detail-image img.is-contain { object-fit: contain; padding: 1rem; background: var(--soft); }
.detail-thumbs { display: flex; gap: .65rem; padding: .75rem; border-top: 1px solid rgba(255,255,255,.14); background: var(--dark); }
.detail-thumb { position: relative; width: 5.1rem; height: 4rem; overflow: hidden; padding: 0; border: 2px solid transparent; border-radius: .45rem; background: #111; color: #fff; cursor: pointer; opacity: .7; transition: border-color .2s ease, opacity .2s ease, transform .2s ease; }
.detail-thumb:hover { opacity: 1; transform: translateY(-1px); }
.detail-thumb.is-active { border-color: var(--yellow); opacity: 1; }
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-thumb span { position: absolute; inset: auto 0 0; padding: .3rem .2rem .25rem; background: linear-gradient(transparent, rgba(0,0,0,.88)); font-size: .58rem; font-weight: 850; letter-spacing: .035em; line-height: 1.1; text-transform: uppercase; }
.detail-summary { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 5vw, 4rem); }
.eyebrow { margin: 0 0 .45rem; color: var(--rust); font-size: .78rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.model-number { color: var(--blue); }
h1, h2 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
.detail-summary h1 { margin: 0; font-size: clamp(2.8rem, 6vw, 4.8rem); line-height: .95; }
.detail-price { margin: .8rem 0; color: var(--rust); font-family: Georgia, "Times New Roman", serif; font-size: 2rem; font-weight: 700; }
.detail-description { margin: 0; color: var(--muted); font-size: 1.05rem; }
.detail-features { display: grid; gap: 0; margin: 1.25rem 0 0; padding: .35rem 0 .35rem 1rem; border-left: 4px solid var(--yellow); list-style: none; }
.detail-features li { display: grid; grid-template-columns: .7rem minmax(7.5rem, .8fr) minmax(0, 1.2fr); gap: .55rem; align-items: baseline; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.detail-features li:last-child { border-bottom: 0; }
.detail-features li::before { width: .46rem; height: .46rem; margin-top: .22rem; border-radius: 50%; background: var(--yellow); content: ""; }
.detail-features strong { font-size: .84rem; }
.detail-features span { color: var(--muted); font-size: .84rem; }

.configuration { margin-top: 1.25rem; padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: .9rem; background: var(--raised); box-shadow: var(--shadow); }
.configuration-head { display: grid; gap: .35rem; margin-bottom: 1rem; }
.configuration h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.configuration-head p { max-width: none; margin: 0; color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: .65rem; }
.option-table, .catalog-table, .cart-table { width: 100%; border-collapse: collapse; }
.option-table { min-width: 650px; }
.option-table th, .option-table td, .catalog-table th, .catalog-table td, .cart-table th, .cart-table td { padding: .9rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.option-table tr:last-child td, .catalog-table tr:last-child td, .cart-table tr:last-child td { border-bottom: 0; }
.option-table th, .catalog-table th, .cart-table th { background: var(--soft); color: var(--muted); font-size: .76rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.option-table th:nth-child(2), .option-table td:nth-child(2) { width: 12rem; }
.option-table th:last-child, .option-table td:last-child, .catalog-table th:last-child, .catalog-table td:last-child, .cart-table th:last-child, .cart-table td:last-child { width: 9rem; text-align: right; }
.option-choice { display: flex; align-items: flex-start; gap: .8rem; }
.option-choice input { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; accent-color: var(--blue); }
.option-detail { display: grid; gap: .45rem; min-width: 0; }
.option-detail > label:first-child { font-weight: 750; }
.option-years { margin-left: .2rem; color: var(--muted); font-weight: 450; white-space: nowrap; }
.included { color: var(--blue); font-weight: 850; }
.config-action { display: flex; align-items: center; justify-content: flex-end; gap: 1.25rem; margin-top: 1.2rem; }
.playback-order { display: flex; flex-wrap: wrap; gap: .55rem 1.1rem; margin: 0 auto 0 0; padding: 0; border: 0; }
.playback-order legend { width: 100%; margin-bottom: .1rem; color: var(--muted); font-size: .72rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.playback-order label { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; font-weight: 750; cursor: pointer; }
.playback-order input { width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--blue); }
.total-label { color: var(--muted); font-size: .8rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.total-price { display: block; color: var(--rust); font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; font-weight: 700; text-align: right; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .7rem 1.1rem; border-radius: .4rem; font-size: .8rem; font-weight: 850; letter-spacing: .055em; text-transform: uppercase; cursor: pointer; }
.primary-button { border: 1px solid var(--rust); background: var(--rust); color: #fff; }
.primary-button:hover { background: #a64429; border-color: #a64429; }
.secondary-button { border: 1px solid var(--blue); background: transparent; color: var(--blue); }
.secondary-button:hover { background: var(--blue); color: #fff; }

.page-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.25rem; }
.page-head h1 { margin: 0; font-size: clamp(2.7rem, 6vw, 4.8rem); line-height: .95; }
.page-head p { max-width: 48rem; margin: .65rem 0 0; color: var(--muted); }
.catalog-price { flex: 0 0 auto; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--raised); text-align: right; }
.catalog-price span { display: block; color: var(--muted); font-size: .72rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.catalog-price strong { color: var(--rust); font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; }
.catalog-card, .cart-card { overflow: hidden; border: 1px solid var(--line); border-radius: .9rem; background: var(--raised); box-shadow: var(--shadow); }
.catalog-note { margin: 1rem 0 0; color: var(--muted); font-size: .88rem; }
.catalog-card.is-preview .catalog-table tbody { opacity: .38; filter: grayscale(.72); }
.catalog-card.is-preview .catalog-table tbody tr { pointer-events: none; }
.catalog-table { min-width: 610px; }
.catalog-table td:first-child { width: 11rem; color: var(--muted); white-space: nowrap; }
.catalog-table td:nth-child(2) { font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; font-weight: 700; }

.cart-card { padding: clamp(1.25rem, 3vw, 2rem); }
.cart-product { display: flex; align-items: center; gap: 1rem; }
.cart-product img { width: 6.5rem; height: 5.5rem; padding: .25rem; border-radius: .45rem; background: var(--soft); object-fit: contain; }
.cart-product strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; }
.cart-options { margin: .8rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: .9rem; }
.cart-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; }
.empty-cart { padding: clamp(2rem, 5vw, 4rem); text-align: center; }
.empty-cart h2 { margin: 0 0 .5rem; font-size: 2rem; }
.empty-cart p { margin: 0 0 1.25rem; color: var(--muted); }

.site-footer { padding-block: 2rem; background: var(--dark); color: var(--cream); }
.footer-grid { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.footer-name { margin: 0; font-size: 1rem; font-weight: 900; text-transform: uppercase; }
.footer-script { color: var(--yellow); font-family: "Snell Roundhand", "Brush Script MT", "Segoe Script", cursive; font-size: 2.15rem; line-height: .85; }
.footer-meta { color: #9aa6ab; font-size: .78rem; text-align: right; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem 0; margin-bottom: .35rem; color: var(--cream); font-weight: 750; }
.footer-links a + a::before { display: inline-block; padding: 0 .7rem; color: var(--rust); font-size: .55em; vertical-align: .18em; content: "•"; }
.footer-legal { color: #b9c1c5; font-weight: 650; }

.legal-card { max-width: 58rem; padding: clamp(1.4rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: .9rem; background: var(--raised); box-shadow: var(--shadow); }
.legal-card > :first-child { margin-top: 0; }
.legal-card h2 { margin: 2rem 0 .55rem; font-size: clamp(1.4rem, 3vw, 2rem); }
.legal-card h3 { margin: 1.35rem 0 .4rem; font-size: 1.05rem; }
.legal-card p, .legal-card li { color: var(--muted); }
.legal-card p { margin: .55rem 0; }
.legal-card ul { margin: .55rem 0; padding-left: 1.25rem; }
.legal-card a { color: var(--blue); font-weight: 750; text-decoration: underline; text-underline-offset: .15em; }
.legal-card .policy-callout { margin: 1.25rem 0; padding: 1rem 1.1rem; border-left: 4px solid var(--yellow); background: var(--soft); color: var(--ink); }
.legal-updated { margin-top: .5rem !important; font-size: .85rem; }

@media (max-width: 820px) {
  .brand-tag { display: none; }
  .product-detail { grid-template-columns: 1fr; }
  .detail-image { min-height: 0; aspect-ratio: 1.15; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .catalog-price { text-align: left; }
}

@media (max-width: 680px) {
  .shell { width: min(calc(100% - 1.4rem), var(--max)); }
  .topline { display: none; }
  .nav-wrap { flex-wrap: wrap; gap: .75rem; padding-block: .7rem; }
  .brand { margin-right: auto; }
  .brand-script { font-size: 1.75rem; }
  .nav { order: 3; width: 100%; justify-content: space-between; gap: .65rem; margin: 0; padding-top: .65rem; border-top: 1px solid var(--line); }
  .nav > a:not(.cart-link) { font-size: .74rem; }
  .cart-link { padding-inline: .55rem; }
  .page-main { padding-block: 1.6rem 3rem; }
  .detail-summary { padding: 1.4rem; }
  .detail-summary h1, .page-head h1 { font-size: 2.75rem; }
  .detail-features li { grid-template-columns: .7rem 1fr; gap: .25rem .55rem; }
  .detail-features span { grid-column: 2; }
  .configuration { padding: .85rem; }
  .configuration .table-wrap { overflow: visible; border: 0; }
  .option-table { min-width: 0; }
  .option-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .option-table, .option-table tbody, .option-table tr, .option-table td { display: block; width: 100%; }
  .option-table tr { margin-bottom: .7rem; padding: .75rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--paper); }
  .option-table tr:last-child { margin-bottom: 0; }
  .option-table td, .option-table td:nth-child(2), .option-table td:last-child { display: flex; width: 100%; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .35rem .2rem; border: 0; text-align: right; }
  .option-table td:first-child { justify-content: flex-start; padding-bottom: .65rem; text-align: left; }
  .option-table td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: .72rem; font-weight: 900; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
  .option-choice { align-items: flex-start; font-size: 1rem; line-height: 1.35; }
  .option-choice input { width: 1.45rem; height: 1.45rem; margin-top: .05rem; }
  .config-action, .cart-actions { align-items: stretch; flex-direction: column; }
  .playback-order { width: 100%; margin: 0; padding-bottom: .85rem; border-bottom: 1px solid var(--line); }
  .playback-order input { width: 1.3rem; height: 1.3rem; }
  .total-price { text-align: left; }
  .primary-button, .secondary-button { width: 100%; }
  .cart-product { align-items: flex-start; flex-direction: column; }
  .footer-grid { align-items: flex-start; flex-direction: column; }
  .footer-meta { text-align: left; }
  .footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}
