:root {
  color: #151a23;
  background: #fff;
  font: 16px/1.55 system-ui, -apple-system, sans-serif;
  --ink: #151a23;
  --muted: #535f70;
  --line: #dce1e8;
  --surface: #f2f4f7;
  --payment-surface: #f0f4fb;
  --payment-line: #d8e2f0;
  --accent: #1746ae;
  --accent-dark: #10347f;
}

* { box-sizing: border-box; }
body { margin: 0; }
.container { width: min(76rem, calc(100% - 4rem)); margin-inline: auto; }
.store-header { border-block-end: 1px solid var(--line); }

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  min-height: 4.375rem;
  padding-block: 0.75rem;
}

.brand {
  display: inline-flex;
  gap: 0.625rem;
  align-items: center;
  color: var(--ink);
  font-weight: 760;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 0.25rem;
  background: var(--accent);
  color: #fff;
}

.header-row nav { display: flex; flex-wrap: wrap; gap: 0.375rem 1.5rem; }
.header-row nav a { color: var(--muted); font-size: 0.875rem; text-decoration: none; }
.header-row nav a:hover, .rating-link:hover { color: var(--ink); text-decoration: underline; }

a { color: var(--accent); text-underline-offset: 0.2em; }
:where(a, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[id] { scroll-margin-top: 1.25rem; }

.product-page { padding-block: clamp(1.125rem, 3vw, 2rem) 3.5rem; }
.breadcrumb, .model-code, .seller, .label, .terms-caption { color: var(--muted); font-size: 0.875rem; }
.breadcrumb { margin: 0 0 1rem; }
.breadcrumb span { padding-inline: 0.25rem; color: #6b7788; }

h1, h2, h3 { margin: 0; letter-spacing: -0.035em; }
h1 { font-size: clamp(2rem, 4.1vw, 3.4rem); font-weight: 720; line-height: 1.07; }
h2 { font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.2; font-weight: 710; }
h3 { font-size: 1.0625rem; line-height: 1.35; letter-spacing: -0.02em; }

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(19rem, 1fr);
  align-items: start;
  gap: clamp(1.75rem, 3.5vw, 3rem);
}

.product-story { grid-column: 1; grid-row: 1; }
.product-sidebar { grid-column: 2; grid-row: 1; }
.model-code { margin: 0 0 0.25rem; }
.model-code span { padding-inline: 0.125rem; }
.product-config { margin: 0.45rem 0 0; color: var(--muted); }
.rating-link { display: inline-flex; align-items: baseline; gap: 0.3rem; margin-top: 0.575rem; color: var(--muted); font-size: 0.875rem; text-decoration: none; }
.stars { color: #866000; letter-spacing: 0.08em; }

.product-photo { margin: 0; }
.product-photo img { display: block; width: 100%; height: auto; border-radius: 0.75rem; background: var(--surface); }
.product-photo figcaption { display: flex; align-items: center; gap: 0.45rem; margin-top: 0.75rem; color: var(--muted); font-size: 0.875rem; }
.color-swatch { width: 0.875rem; height: 0.875rem; border: 1px solid #a1a8b1; border-radius: 50%; background: #c6cbd1; }

.product-overview { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.product-overview p { margin: 0.5rem 0 0; color: var(--muted); }
.product-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.875rem 0 0;
  padding: 0.75rem 0.875rem;
  border-radius: 0.625rem;
  background: var(--payment-surface);
}

.product-highlights div + div { padding-inline-start: 0.75rem; border-inline-start: 1px solid var(--payment-line); }
.product-highlights dt { color: var(--muted); font-size: 0.75rem; }
.product-highlights dd { margin: 0.125rem 0 0; font-size: 0.875rem; font-weight: 650; }
.spec-link { display: inline-flex; gap: 0.35rem; margin-top: 0.75rem; font-size: 0.875rem; font-weight: 650; }

.purchase {
  margin-top: 1.125rem;
  padding: clamp(0.875rem, 1.6vw, 1.25rem);
  border: 1px solid var(--payment-line);
  border-radius: 0.875rem;
  background: var(--payment-surface);
}
.purchase-price {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--payment-line);
}

.price { margin: 0; font-size: clamp(2rem, 4.3vw, 2.875rem); font-weight: 730; letter-spacing: -0.045em; line-height: 1.12; }
.seller { margin: 0.125rem 0 0; }
.seller strong { color: var(--ink); }
.label { margin: 0 0 0.25rem; }
.payment-title { margin-block: 0.75rem 0.5rem; font-size: 0.875rem; letter-spacing: 0; color: var(--muted); }

.offer {
  padding: 0.875rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.625rem;
  background: var(--surface);
}

.purchase .payment-option { padding: 0; border: 0; border-radius: 0; background: transparent; }
.purchase .payment-installment { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--payment-line); }
.payment-installment .bank-name { color: var(--ink); font-weight: 650; }
.offer-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 0.25rem 0.75rem; }
.bank-name, .installment-frequency { color: var(--muted); font-size: 0.8125rem; }
.offer-rate { margin: 0.35rem 0 0.625rem; font-size: 1.125rem; font-weight: 710; }
.installment { background: #fff; }
.installment-frequency { margin: 0.125rem 0 0.5rem; }

.button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.button:hover { background: var(--accent-dark); }
.button-outline { border-color: var(--line); background: #fff; color: var(--accent); }
.button-outline:hover { background: var(--surface); }
.purchase .button-outline { border-color: #b8c9e6; }
.purchase .button-outline:hover { background: #e4edf9; }
.purchase-footer { margin-top: 0.75rem; padding-top: 0.625rem; border-top: 1px solid var(--payment-line); }
.fulfillment-link { display: inline-flex; gap: 0.35rem; color: var(--ink); font-size: 0.875rem; font-weight: 650; }
.payment-note { display: flex; flex-wrap: wrap; gap: 0.25rem 0.875rem; margin: 0.35rem 0 0; font-size: 0.8125rem; }

.lower-section { margin-top: clamp(2rem, 5vw, 3.75rem); padding-top: 1.5rem; border-block-start: 1px solid var(--line); }
.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 3rem; margin-top: 1.25rem; }
.spec-grid h3, .document-block h3 { margin-bottom: 0.375rem; }
.spec-list { margin: 0; font-size: 0.875rem; }
.spec-list div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 0.625rem; padding-block: 0.5rem; border-block-end: 1px solid var(--line); }
.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; font-weight: 630; text-align: right; overflow-wrap: break-word; }

.product-services { margin-top: 1.375rem; }
.product-services h2 { font-size: 1.125rem; }
.product-services > p, .fulfillment > p { color: var(--muted); margin: 0.4rem 0 0; }
.product-services > p { font-size: 0.875rem; }
.fulfillment-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem 1.5rem; margin: 0.875rem 0 0; font-size: 0.875rem; }
.fulfillment-list dt { font-weight: 690; }
.fulfillment-list dd { margin: 0; color: var(--muted); }
.reviews-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 1rem; }
.reviews-heading p { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.875rem; }
.reviews-score strong { color: var(--ink); }
.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 1.5rem; margin-top: 1rem; }
.review { border-block-start: 1px solid var(--line); padding-top: 0.875rem; }
.review p { margin: 0.375rem 0 0; color: var(--muted); font-size: 0.875rem; }
.review .review-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.25rem 0.75rem; font-size: 0.8125rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.back-link { display: inline-flex; gap: 0.5rem; align-items: center; min-height: 2.75rem; margin-bottom: 0.875rem; font-weight: 650; }
.terms-page { max-width: 65rem; }
.terms-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 1.25rem 2rem; align-items: start; }
.terms { margin-top: 1rem; }
.terms h2 { font-size: 1.125rem; }
.terms-caption { margin: 0.625rem 0 0; }
.terms-section { margin-top: 1.5rem; padding-top: 1.125rem; border-block-start: 1px solid var(--line); }
.terms-section > p { margin: 0.625rem 0 0; color: var(--muted); }
.terms-list, .apply-steps { display: grid; gap: 0.5rem; margin: 0.75rem 0 0; padding-inline-start: 1.25rem; color: var(--muted); }
.apply-steps li::marker { color: var(--accent); font-weight: 700; }
.schedule { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem 1rem; margin: 0.75rem 0; }
.schedule div { padding-block: 0.375rem; }
.schedule dt { color: var(--muted); font-size: 0.8125rem; }
.schedule dd { margin: 0.15rem 0 0; font-weight: 740; }
.schedule-detail { margin: 0 0 0.75rem; }
.schedule-total { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.25rem 0.75rem; margin: 0; padding-top: 0.625rem; border-top: 1px solid var(--line); }

.order-summary { display: flex; align-items: center; padding: 0.75rem; gap: 0.75rem; border: 1px solid var(--line); border-radius: 0.625rem; }
.order-summary img { display: block; width: min(8rem, 34%); height: auto; border-radius: 0.375rem; }
.order-name { margin: 0; font-weight: 710; }
.order-price { margin: 0.2rem 0 0; }
.terms-section details, .product-services details { margin-top: 0.5rem; border-block-end: 1px solid var(--line); }
:where(.terms-section, .product-services) details p, .terms-section details ul { margin: 0; padding: 0 0.75rem 0.625rem 0; color: var(--muted); font-size: 0.9375rem; }
.terms-section details ul { padding-inline-start: 1.25rem; }
summary { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding-block: 0.55rem; font-weight: 650; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+" / ""; flex: none; color: var(--accent); font-size: 1.125rem; }
details[open] summary::after { content: "−" / ""; }

.document-page { max-width: 53rem; }
.document-block h3 { margin-top: 1rem; }
.document-links { margin: 0.625rem 0 0; padding: 0; list-style: none; }
.document-links a { display: flex; justify-content: space-between; gap: 0.5rem; padding-block: 0.625rem; border-block-end: 1px solid var(--line); font-weight: 650; }
.footer { border-block-start: 1px solid var(--line); padding-block: 1rem; color: var(--muted); font-size: 0.8125rem; }

@media (max-width: 47rem) {
  .container { width: calc(100% - 2rem); }
  .header-row { min-height: 0; }
  .header-row nav { gap: 0.25rem 0.625rem; }
  .header-row nav a { font-size: 0.8125rem; }
  .product-grid, .terms-grid, .spec-grid, .fulfillment-list, .review-grid { grid-template-columns: minmax(0, 1fr); }
  .product-grid { grid-template-areas: "heading" "photo" "purchase" "overview" "services"; gap: 1.125rem; }
  .product-story, .product-sidebar { display: contents; }
  .product-heading { grid-area: heading; }
  .product-photo { grid-area: photo; }
  .purchase { grid-area: purchase; margin-top: 0; }
  .product-overview { grid-area: overview; margin-top: 0; }
  .product-services { grid-area: services; margin-top: 0; }
  .product-photo img { max-height: 27rem; object-fit: contain; }
}

@media (max-width: 25rem) {
  .product-highlights { gap: 0.5rem; padding-inline: 0.625rem; }
  .product-highlights div + div { padding-inline-start: 0.5rem; }
  .schedule { grid-template-columns: minmax(0, 1fr); }
  .schedule div { display: flex; justify-content: space-between; gap: 0.5rem; }
  .schedule dd { margin: 0; }
}

.offer-eligibility { margin: 0 0 0.9rem; color: var(--muted); font-size: 0.93rem; }
.terms .offer-eligibility { margin: 0.55rem 0 0; }
.button:active { filter: brightness(.9); }

@media (prefers-reduced-motion: no-preference) {
  .button { transition: transform 140ms ease-out, filter 140ms ease-out; }
  .button:active { transform: translateY(2px) scale(.98); transition-duration: 55ms; }
  .product-page h1, .offer-rate, .offer-eligibility { animation: offer-in 240ms ease-out backwards; }
  .offer-rate, .offer-eligibility { animation-delay: 65ms; }
}

@keyframes offer-in {
  from { opacity: 0; transform: translateY(5px); clip-path: inset(0 0 65%); }
  to { opacity: 1; transform: translateY(0); clip-path: inset(0); }
}