:root {
  color-scheme: light;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  color: #141d2d;
  background: #f8f8f4;
  --blue: #193dcc;
  --ink: #141d2d;
  --muted: #4d5868;
  --line: #dce1e5;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--blue); text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #5375ff; outline-offset: 3px; }
img { display: block; max-width: 100%; }
.wrap { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
main { min-height: 67vh; }
.site-header { position: sticky; top: 0; z-index: 2; background: #f8f8f4; border-bottom: 1px solid var(--line); }
.header, .foot { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.header { justify-content: space-between; }
.header nav, .header-actions, .actions, .chips { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.header nav a, .foot a { text-decoration: none; color: var(--ink); padding: 8px; }
.header nav a:hover, .foot a:hover { color: var(--blue); }
.brand { display: inline-flex; gap: 9px; align-items: center; color: var(--ink); font-weight: 800; text-decoration: none; white-space: nowrap; }
.brand-mark { height: 26px; width: 26px; background: var(--blue); border-radius: 8px; display: grid; place-items: center; }
.brand-mark::before { content: ""; width: 8px; height: 14px; border: 2px solid white; border-radius: 3px; }
.button { border: 1px solid var(--blue); background: var(--blue); color: white; display: inline-flex; justify-content: center; align-items: center; padding: .78rem 1.05rem; text-decoration: none; font: inherit; font-weight: 650; border-radius: 999px; cursor: pointer; }
.button:hover { background: #112caa; color: white; }
.button.secondary { background: transparent; color: var(--blue); }
.button.secondary:hover { background: #e9edff; }
.languages { position: relative; }
.languages summary { cursor: pointer; padding: 8px; white-space: nowrap; }
.languages ul { position: absolute; inset-inline-end: 0; min-width: 145px; list-style: none; padding: 8px; margin: 5px 0 0; background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 28px #141d2d18; }
.languages a { display: block; padding: 8px; color: var(--ink); text-decoration: none; }
.languages a:hover, .languages a[aria-current] { background: #eef1ff; border-radius: 6px; }
h1 { font-size: clamp(2.3rem, 5.4vw, 5rem); line-height: 1.02; margin: 0 0 .26em; letter-spacing: -.055em; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.4rem, 2.7vw, 2.4rem); margin: 0 0 .5em; letter-spacing: -.035em; }
[dir=rtl] h1, [dir=rtl] h2 { letter-spacing: normal; line-height: 1.23; }
p, li { line-height: 1.6; }
.hero { display: grid; grid-template-columns: 1fr 1.08fr; align-items: stretch; margin-block-start: 24px; min-height: 455px; overflow: hidden; border-radius: 22px; background: #eaeefb; }
.hero-copy { padding: clamp(24px, 4vw, 66px); align-self: center; }
.hero-copy p, .lead { max-width: 64ch; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.2rem); margin-block-end: 26px; }
.hero-image { width: 100%; height: 100%; object-fit: cover; background: #dfd9cb; }
.section { padding-block: 42px; }
.category-grid, .product-grid, .region-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.category, .product-card, .region-grid article, .empty { color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.category, .product-card { position: relative; display: grid; gap: 12px; text-decoration: none; }
.category:hover, .product-card:hover { border-color: var(--blue); color: var(--blue); }
.arrow { position: absolute; inset-inline-end: 22px; top: 20px; color: var(--blue); }
.category-icon { display: grid; place-items: center; width: 52px; height: 52px; background: #edf0fb; color: var(--blue); border-radius: 14px; }
.category-icon::before { content: ""; display: block; width: 13px; height: 23px; border: 2px solid currentColor; border-radius: 4px; }
.category-icon.audio::before { width: 23px; height: 17px; border-radius: 16px 16px 4px 4px; border-bottom: 0; }
.category-icon.power::before { width: 22px; height: 12px; border-radius: 3px; box-shadow: 5px 0 0 -3px currentColor; }
.category-icon.accessories::before { width: 19px; height: 19px; transform: rotate(18deg); }
.market-band { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: clamp(20px, 4vw, 48px); background: #eaeefb; border-radius: 18px; }
.market-band p { margin-bottom: 0; }
.chips { margin-block: 22px; }
.chips a { padding: 8px 14px; text-decoration: none; border-radius: 999px; border: 1px solid var(--line); }
.chips a[aria-current] { background: #eaeefb; border-color: var(--blue); }
.product-card img { width: 100%; height: 170px; object-fit: contain; }
.detail-image { max-height: 380px; object-fit: contain; }
.preserve { white-space: pre-wrap; overflow-wrap: anywhere; }
.form { max-width: 820px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.wide { grid-column: 1 / -1; }
label { display: grid; gap: 6px; }
input, select, textarea { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid #aeb7c2; border-radius: 8px; background: white; color: var(--ink); font: inherit; }
textarea { min-height: 106px; resize: vertical; }
input[type=checkbox] { width: auto; }
.publish { display: flex; align-items: center; }
form .actions, .tablebox { margin-block: 18px; }
.toolbar, .inquiry-filters { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin: 18px 0; }
.tablebox { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { padding: .8rem; text-align: start; border-bottom: 1px solid var(--line); }
.admin-logout { float: inline-end; margin-inline-start: 10px; }
.alert { color: #9b1d24; }
.badge, .status-badge { display: inline-block; padding: 3px 7px; background: #eaeefb; border-radius: 6px; }
dd { overflow-wrap: anywhere; }
footer { border-top: 1px solid var(--line); margin-top: 24px; }
.foot { flex-wrap: wrap; padding-block: 12px; }
.foot strong { margin-inline-end: auto; }
@media (max-width: 790px) {
  .wrap { width: calc(100% - 36px); }
  .header { gap: 8px; flex-wrap: wrap; padding-block: 8px; }
  .header nav { order: 3; width: 100%; gap: 4px; }
  .header-actions { gap: 4px; }
  .header-actions > .button { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-image { max-height: 390px; aspect-ratio: 4/3; }
  .section { padding-block: 28px; }
}
@media (max-width: 520px) {
  .fields { grid-template-columns: 1fr; }
  .foot { gap: 6px; }
}
.card { padding: 22px; background: white; border: 1px solid var(--line); border-radius: 16px; }
.inquiry-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.inquiry-specs { display: grid; grid-template-columns: minmax(100px, 1fr) 2fr; gap: 8px 12px; }
.inquiry-specs dd { margin: 0; white-space: pre-wrap; }
.inquiry-pagination { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.inquiry-status { display: inline-block; padding: 4px 8px; border-radius: 8px; background: #eaeefb; }
.inquiry-status-closed { background: #e5eee7; }
.inquiry-attention { color: #9b1d24; }

/* Consumer electronics catalog */
:root { --ink:#17211f; --muted:#4f625e; --brand:#08594f; --line:#d8e3df; }
body { color:#17211f; background:#fbfcfb; font-family:"Instrument Sans",system-ui,sans-serif; }
.site-header { background:#fbfcfb; border-color:#dde5e2; }
.brand-mark { background:#08594f; box-shadow:none; border-radius:9px; }
.button { background:#08594f; border-color:#08594f; color:white; }
.button:hover { background:#06483f; color:white; }
.button.secondary { background:white; color:#08594f; border-color:#c7d8d1; }
.button.secondary:hover { background:#eaf3ef; color:#06483f; }
.preview-note { text-align:center; padding:.5rem 1rem; background:#e9f2ed; color:#34574e; font-size:.84rem; }
.wrap.hero { margin-block:32px 12px; min-height:0; display:grid; grid-template-columns:minmax(0,.95fr) minmax(0,1.15fr); align-items:center; gap:30px; padding:clamp(18px,4vw,52px); border-radius:32px; background:#e4efe9; }
.hero-copy { padding:0; }
.hero h1 { font-size:clamp(2.35rem,5vw,4.65rem); line-height:1.03; max-width:12ch; margin:0; }
[dir=rtl] .hero h1, [lang=th] .hero h1 { max-width:none; }
.hero-copy p { margin:1.25rem 0 1.75rem; line-height:1.55; max-width:34ch; }
.hero-products { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; align-items:stretch; }
.hero-products a { display:flex; flex-direction:column; justify-content:space-between; overflow:hidden; border-radius:18px; background:white; color:#17211f; text-decoration:none; }
.hero-products a:hover, .product-card:hover { box-shadow:0 9px 24px #14352a1a; }
.hero-products img { width:100%; aspect-ratio:1; object-fit:contain; display:block; }
.hero-products a span { display:flex; align-items:center; justify-content:space-between; gap:.45rem; padding:.9rem; font-weight:650; }
.hero-products b { color:#08594f; }
.section-heading { display:flex; justify-content:space-between; align-items:baseline; gap:12px; }
.category-grid { grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr)); }
.category { min-height:76px; border-color:#d8e3df; background:#f2f7f4; }
.product-card { padding:0; gap:0; overflow:hidden; background:white; border-radius:20px; color:inherit; }
.product-card img { background:#f5f7f5; width:100%; aspect-ratio:1.12; height:auto; object-fit:contain; border-radius:0; }
.product-card-caption { display:grid; grid-template-columns:1fr auto; align-items:center; gap:.2rem .5rem; padding:1rem 1.15rem 1.2rem; }
.product-card-caption small { grid-column:1 / -1; color:#4e625c; }
.market-band { background:#e4efe9; color:#17211f; }
.detail-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(16px,5vw,65px); align-items:start; margin-block-start:22px; }
.detail-layout .detail-image { width:100%; max-height:540px; object-fit:contain; border-radius:18px; background:white; }
.detail-layout h1 { margin-block:.25rem; }
.sku-list { display:flex; gap:.55rem; flex-wrap:wrap; }
.sku-list a { max-width:100%; }
.spec-table { display:grid; grid-template-columns:1fr 1fr; border-block-start:1px solid #d8e3df; }
.spec-table dt,.spec-table dd { padding:.7rem; margin:0; border-block-end:1px solid #d8e3df; }
.button:disabled { opacity:.55; cursor:default; }
@media(max-width:760px) {
  .wrap.hero { grid-template-columns:1fr; margin-block-start:14px; gap:22px; border-radius:21px; }
  .hero h1 { max-width:18ch; }
  .detail-layout { grid-template-columns:1fr; }
}

/* Wholesale catalog */
.product-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.product-card { display:flex; flex-direction:column; }
.product-card > a:first-child { display:block; text-decoration:none; flex:1; }
.product-card img { background:white; border-block-end:1px solid #edf1ed; }
.product-card > .button { margin:0 .85rem .85rem; justify-content:center; text-align:center; }
.product-card .button[hidden], [data-single][hidden], [data-inquiry-basket][hidden] { display:none; }
.trade-links { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-block:16px; }
.trade-links a { border:1px solid #d8e3df; border-radius:12px; background:#f2f7f4; padding:1rem; font-weight:650; text-decoration:none; }
.inquiry-lines { list-style:none; margin:0 0 1.2rem; padding:0; }
.inquiry-lines li { display:grid; grid-template-columns:1fr 7rem auto; gap:.65rem; align-items:center; padding:.65rem 0; border-block-end:1px solid #d8e3df; }
.inquiry-lines input { width:100%; }
@media(max-width:920px){.product-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:640px){.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.trade-links{grid-template-columns:1fr;}.inquiry-lines li{grid-template-columns:1fr 4.5rem auto;}}
