:root {
  color-scheme: light;
  --navy: #101e36;
  --ink: #17263e;
  --muted: #4b596e;
  --paper: #f8f6f1;
  --line: #d9dfe6;
  --blue: #214776;
  --orange: #ffb56e;
  --accent: #974112;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.7 system-ui, -apple-system, "Microsoft JhengHei", sans-serif; overflow-wrap: anywhere; }
a { color: inherit; text-underline-offset: .2em; }
img { max-width: 100%; height: auto; vertical-align: middle; }
button, input, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline: 3px solid #b34e19; outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 30; background: white; padding: 12px; }
.topbar { background: var(--navy); color: #edf3fa; padding: 8px 0; font-size: 15px; }
.topbar .wrap, .header-inner, .nav, .actions, .section-heading, .contact-band .wrap, .footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.site-header { background: white; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 86px; padding-block: 10px; }
.logo { display: flex; gap: 12px; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo img { width: 55px; height: 55px; object-fit: contain; }
.logo strong { display: block; font-size: 24px; line-height: 1.3; }
.logo small { display: block; font-size: 14px; letter-spacing: .05em; color: var(--muted); }
.nav { flex-wrap: wrap; font-weight: 700; }
.nav a, .btn { text-decoration: none; }
.nav a { padding: 8px 0; }
.btn, .nav .btn, .sticky-contact a, .pagination button, .result-line button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 9px 17px; border: 1px solid transparent; border-radius: 8px; font-weight: 750; background: var(--blue); color: white; text-align: center; }
.btn.alt { background: white; border-color: var(--line); color: var(--navy); }
.actions { justify-content: flex-start; flex-wrap: wrap; margin: 20px 0 8px; gap: 10px; }
.hero { color: white; background: linear-gradient(125deg,#101e36,#1c395d); padding: clamp(30px,6vw,78px) 0; }
.hero-grid, .product-top, .delivery { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(20px,4vw,56px); align-items: center; }
.eyebrow { font-size: 15px; letter-spacing: .09em; color: var(--accent); font-weight: 800; }
.hero .eyebrow { color: var(--orange); }
h1, h2, h3 { line-height: 1.3; }
h1 { font-size: clamp(32px,4.3vw,58px); margin: .22em 0 .42em; }
h2 { font-size: clamp(26px,3vw,36px); margin: .3em 0 .55em; }
h3 { font-size: 22px; }
.hero p { max-width: 52ch; color: #e2ebf6; font-size: 20px; }
.hero .btn, .hero-search button { background: var(--orange); color: var(--navy); }
.hero .btn.alt { background: transparent; border-color: #9fb0c5; color: white; }
.hero-search { margin-top: 24px; }
.hero-search label { display: block; font-weight: 750; margin-bottom: 6px; }
.hero-search div { display: flex; gap: 8px; }
.hero-search input { flex: 1; min-width: 0; }
.hero-search input, .filterbar input, .filterbar select { width: 100%; min-height: 50px; border-radius: 8px; padding: 9px 12px; background: white; color: var(--ink); border: 1px solid #9cabc0; }
.hero-photos, .stats, .categories, .products, .service-grid, .gallery { display: grid; gap: 16px; }
.hero-photos { grid-template-columns: repeat(2,minmax(0,1fr)); }
.hero-photos div { min-width: 0; background: white; border-radius: 12px; padding: 8px; color: var(--navy); }
.hero-photos img { width: 100%; aspect-ratio: 1.5; object-fit: contain; }
.hero-photos span { display: block; text-align: center; padding: 4px; font-size: 16px; font-weight: 700; }
.stats { grid-template-columns: repeat(3,minmax(0,1fr)); padding: 24px 0; border-bottom: 1px solid var(--line); }
.stats div { background: #fce6cf; padding: 14px; border-radius: 10px; }
.stats strong { display: block; font-size: 25px; }
section.section { padding: clamp(28px,5vw,62px) 0; }
.section-heading { margin-bottom: 18px; flex-wrap: wrap; }
.section-heading p, .page-head p { color: var(--muted); margin: 0; }
.categories, .products { grid-template-columns: repeat(4,minmax(0,1fr)); }
.category-card, .product-card { display: flex; background: white; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; min-width: 0; }
.category-card { align-items: center; justify-content: space-between; gap: 8px; padding: 15px; font-size: 19px; font-weight: 750; }
.category-card small { font-size: 16px; color: var(--muted); font-weight: 500; }
.category-card b { color: var(--accent); }
.category-card:hover, .product-card:hover { border-color: var(--blue); }
.product-card { flex-direction: column; overflow: hidden; }
.product-card .image { aspect-ratio: 1.15; padding: 10px; }
.product-card img { width: 100%; height: 100%; object-fit: contain; }
.product-card .body { padding: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; flex: 1; }
.product-card h3 { font-size: 21px; margin: 6px 0; }
.tag, .model, .more, .crumb, .note, .site-footer { font-size: 16px; }
.tag, .model, .note, .crumb { color: var(--muted); }
.product-card .model { margin: 0 0 6px; }
.more { margin-top: auto; color: var(--accent); font-weight: 750; }
.tinted { background: #eaf0f8; }
.service-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.step { font-size: 32px; font-weight: 800; color: var(--accent); }
.delivery { align-items: start; }
.delivery-list, .detail, .main-product-img, .filterbar, .empty { background: white; border: 1px solid var(--line); border-radius: 12px; padding: clamp(14px,3vw,30px); min-width: 0; }
.delivery-list h3 { margin: 0; }
.contact-band { background: var(--navy); color: white; padding: 35px 0; }
.contact-band .btn { background: var(--orange); color: var(--navy); }
.site-footer { padding: 30px 0 100px; }
.footer-grid { align-items: start; flex-wrap: wrap; }
.site-footer strong { font-size: 20px; }
.crumb { margin: 20px 0; }
.page-head { border-left: 6px solid var(--orange); padding: 10px 0 10px 16px; margin-bottom: 22px; }
.page-head h1, .product-info h1 { font-size: clamp(32px,4vw,48px); }
.filterbar { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 14px; }
.filterbar label { display: block; font-weight: 750; margin-bottom: 4px; }
.result-line, .pagination { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.result-line { justify-content: space-between; }
.pagination { justify-content: center; margin-bottom: 30px; }
.pagination button:disabled { opacity: .5; cursor: default; }
.product-top { align-items: start; margin-bottom: 26px; }
.main-product-img { display: grid; place-items: center; }
.main-product-img img { width: 100%; max-height: 510px; object-fit: contain; }
.product-info dl { display: grid; grid-template-columns: auto minmax(0,1fr); column-gap: 14px; }
.product-info dt, .product-info dd { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line); }
.detail { font-size: 19px; }
.detail p, .detail li, .detail td, .detail th, .detail span, .detail font { font-size: inherit !important; line-height: 1.75 !important; }
.detail img { display: block; height: auto !important; max-width: 100% !important; margin: 18px auto; }
.detail table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.detail th, .detail td { border: 1px solid var(--line); padding: 8px; }
.gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
.gallery img { width: 100%; max-height: 650px; object-fit: contain; background: white; }
.sticky-contact { position: fixed; z-index: 10; right: 16px; bottom: max(12px,env(safe-area-inset-bottom)); display: flex; gap: 8px; }
.sticky-contact a { text-decoration: none; box-shadow: 0 2px 12px #101e3650; }
.sticky-contact a:first-child { background: var(--orange); color: var(--navy); }
@media (max-width: 960px) {
  .categories, .products { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 24px); }
  .header-inner, .contact-band .wrap { align-items: flex-start; flex-direction: column; gap: 8px; }
  .nav { width: 100%; gap: 6px 14px; justify-content: flex-start; font-size: 17px; }
  .nav a { min-height: 44px; }
  .hero-grid, .product-top, .delivery, .service-grid, .filterbar { grid-template-columns: minmax(0,1fr); }
  .categories, .products { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .product-card h3 { font-size: 20px; }
  .stats { gap: 6px; }
  .stats div { padding: 8px; font-size: 16px; }
  .stats strong { font-size: 20px; }
  .sticky-contact { left: 10px; right: 10px; }
  .sticky-contact a { flex: 1; }
}
@media (max-width: 370px) {
  .categories { grid-template-columns: minmax(0,1fr); }
  .product-card .body { padding: 8px; }
  .hero-search .btn { padding-inline: 8px; }
}
