:root {
  color-scheme: light;
  --navy: #071b35;
  --navy-2: #0b2f59;
  --teal: #12877d;
  --teal-dark: #0d6b63;
  --mint: #70dfcf;
  --ink: #10243c;
  --muted: #607087;
  --line: #dce5ee;
  --paper: #ffffff;
  --soft: #f3f7fa;
  --shadow: 0 18px 55px rgba(7, 27, 53, 0.12);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--soft); line-height: 1.7; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 16px; border-radius: 8px; color: white; background: var(--teal-dark); }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(7, 27, 53, 0.96); border-bottom: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(14px); }
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 166px; height: auto; max-height: 54px; object-fit: contain; object-position: left center; }
.header-inner nav { display: flex; align-items: center; gap: 24px; color: #d9e8f7; font-size: 15px; font-weight: 650; }
.header-inner nav a:hover { color: white; }
.header-inner .nav-cta { padding: 10px 18px; border-radius: 10px; color: white; background: var(--teal); }

main { min-height: 70vh; }
.breadcrumbs { display: flex; align-items: center; gap: 9px; padding: 26px 0 18px; color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; }
.breadcrumbs a { color: var(--teal-dark); }
.breadcrumbs span[aria-current] { overflow: hidden; text-overflow: ellipsis; }

.product-hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: 48px; padding: 36px; border: 1px solid rgba(19, 61, 96, .1); border-radius: 26px; background: var(--paper); box-shadow: var(--shadow); }
.product-media { min-width: 0; }
.main-image { display: grid; place-items: center; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 20px; background: linear-gradient(145deg, #eef3f7, #fff); }
.main-image img { width: 100%; height: 100%; object-fit: contain; }
.gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); border-radius: 10px; background: white; }
.gallery img:nth-child(n+6) { display: none; }

.product-summary { align-self: center; min-width: 0; }
.eyebrow, .section-kicker { margin: 0 0 8px; color: var(--teal-dark); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; color: var(--navy); font-size: clamp(30px, 3.2vw, 48px); line-height: 1.18; letter-spacing: -.03em; }
.lead { margin: 18px 0 0; color: var(--muted); font-size: 16px; }
.price-card { margin: 22px 0; padding: 18px 20px; border: 1px solid #cfe9e5; border-radius: 16px; background: #eefaf8; }
.price-card > span { display: block; color: var(--muted); font-size: 13px; }
.price-card strong { display: block; margin: 2px 0 4px; color: var(--teal-dark); font-size: 34px; line-height: 1.25; }
.price-card strong small { margin-right: 3px; font-size: 20px; }
.price-card strong em { font-size: 15px; font-style: normal; }
.price-card p { margin: 0; color: #587069; font-size: 12px; line-height: 1.55; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--line); }
.fact { padding: 12px 14px; background: white; }
.fact dt { color: var(--muted); font-size: 12px; }
.fact dd { margin: 1px 0 0; color: var(--navy); font-size: 14px; font-weight: 750; }
.actions { display: flex; gap: 12px; margin-top: 24px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 10px 24px; border: 1px solid var(--navy); border-radius: 12px; font-weight: 750; }
.button.primary { color: white; border-color: var(--teal); background: var(--teal); }
.button.primary:hover { border-color: var(--teal-dark); background: var(--teal-dark); }
.button.secondary { color: var(--navy); background: white; }
.action-status { min-height: 1.5em; margin: 7px 0 0; color: var(--teal-dark); font-size: 13px; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); gap: 24px; margin-top: 28px; }
.content-card { padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: white; }
.content-card h2, .related h2 { margin: 0 0 16px; color: var(--navy); font-size: 26px; line-height: 1.3; }
.content-card h3 { margin: 24px 0 8px; color: var(--navy-2); font-size: 16px; }
.product-copy > p:not(.section-kicker) { margin: 0; color: #33485f; white-space: pre-line; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tag-list li { padding: 5px 10px; border: 1px solid #d5e5e2; border-radius: 999px; color: #385b56; background: #f3fbfa; font-size: 13px; }
.muted { color: var(--muted); }

.related { margin: 52px 0 0; }
.related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.related-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: white; transition: transform .18s ease, box-shadow .18s ease; }
.related-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(7, 27, 53, .1); }
.related-card img { width: 100%; aspect-ratio: 1.25 / 1; object-fit: contain; background: #f7f9fb; }
.related-card span { display: block; padding: 13px 14px 16px; color: var(--navy); font-size: 14px; font-weight: 700; line-height: 1.45; }
.previous-next { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 30px 0 56px; }
.previous-next a { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.previous-next a:last-child { text-align: right; }
.previous-next small { display: block; color: var(--teal-dark); }
.previous-next span { display: block; margin-top: 2px; color: var(--navy); font-weight: 700; }

.directory-intro { padding: 40px 0 28px; text-align: center; }
.directory-intro h1 { margin: 0; }
.directory-intro > p:last-child { max-width: 780px; margin: 14px auto 0; color: var(--muted); }
.directory-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0 0 56px; }
.directory-card { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: white; box-shadow: 0 9px 26px rgba(7, 27, 53, .06); }
.directory-card > a { display: block; height: 100%; }
.directory-card img { width: 100%; aspect-ratio: 1.24 / 1; object-fit: contain; background: #f7f9fb; transition: transform .2s ease; }
.directory-card a:hover img { transform: scale(1.025); }
.directory-card div { padding: 14px 15px 17px; }
.directory-card span { color: var(--teal-dark); font-size: 11px; font-weight: 750; }
.directory-card h2 { margin: 6px 0 10px; color: var(--navy); font-size: 15px; line-height: 1.45; }
.directory-card p { margin: 0; color: #a36521; font-size: 14px; font-weight: 750; }

footer { color: #c9d8e9; background: var(--navy); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 4px 28px; padding: 28px 0; }
.footer-inner strong { grid-row: span 2; align-self: center; color: white; font-size: 18px; }
.footer-inner p { margin: 0; text-align: right; font-size: 13px; }
.footer-inner a { color: var(--mint); }

@media (max-width: 860px) {
  .shell { width: min(100% - 28px, 700px); }
  .header-inner { min-height: 68px; }
  .brand img { width: 132px; }
  .header-inner nav > a:not(.nav-cta) { display: none; }
  .header-inner .nav-cta { padding: 8px 13px; font-size: 13px; }
  .product-hero { grid-template-columns: 1fr; gap: 26px; padding: 20px; border-radius: 20px; }
  h1 { font-size: clamp(28px, 8vw, 40px); }
  .content-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-inner strong { grid-row: auto; }
  .footer-inner p { text-align: left; }
}

@media (max-width: 520px) {
  .shell { width: min(100% - 22px, 480px); }
  .breadcrumbs { padding-top: 16px; }
  .product-hero { padding: 14px; }
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gallery img:nth-child(5) { display: none; }
  .facts { grid-template-columns: 1fr; }
  .actions { display: grid; grid-template-columns: 1fr; }
  .content-card { padding: 22px 18px; }
  .related-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .directory-grid { gap: 10px; }
  .directory-card div { padding: 10px; }
  .directory-card h2 { font-size: 13px; }
  .related-card span { padding: 10px; font-size: 12px; }
  .previous-next { grid-template-columns: 1fr; }
  .previous-next a:last-child { text-align: left; }
}

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