:root {
  --ink: #191a1d;
  --red: #ca1219;
  --amber: #ffb51c;
  --muted: #5a5d64;
  --line: #dedfe2;
  --paper: #f5f5f6;
  color: var(--ink);
  background: white;
  font-family: "Noto Sans Thai", Tahoma, system-ui, sans-serif;
  line-height: 1.55;
}
* { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #a70d14; outline-offset: 3px; }
.hero :focus-visible, .wholesale :focus-visible { outline-color: var(--amber); }
[hidden] { display: none !important; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 5; padding: 12px; background: white; }
.symbols { position: absolute; width: 0; height: 0; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; pointer-events: none; }
.wrap { width: min(1400px, calc(100% - 96px)); margin-inline: auto; }
.utility { background: var(--ink); color: #f1f1f2; font-size: .875rem; }
.utility .wrap { min-height: 35px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.utility a, .header a { text-decoration: none; }
.utility a:hover, .header nav a:hover { text-decoration: underline; text-underline-offset: .3em; }
.header { background: #fff; }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; min-height: 87px; }
.brand { width: min(100%, 265px); }
.brand img, footer img { height: auto; }
.header nav { display: flex; gap: clamp(16px, 3vw, 42px); font-weight: 700; white-space: nowrap; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 9px; }
.language { display: flex; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.language button { color: var(--ink); background: white; border: 0; min-height: 42px; padding: 4px 9px; font-size: .875rem; font-weight: 750; }
.language button[aria-pressed=true] { background: var(--ink); color: white; }
.language button:focus-visible { outline-offset: -3px; }
.cart-toggle { justify-self: end; display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--ink); font-weight: 700; }
.cart-toggle b { border-radius: 3px; padding: 0 6px; background: var(--red); color: white; font-size: .875rem; }
.hero { color: white; background: #101012 url("banner.webp") center right / cover no-repeat; }
.hero-inner { display: flex; min-height: clamp(420px, 38vw, 600px); align-items: center; }
.hero-copy { padding-block: 42px; }
.hero-rule { width: 55px; height: 5px; background: var(--red); margin-bottom: 22px; }
.hero h1 { margin: 0; font-size: clamp(3rem, 5.2vw, 5.9rem); line-height: 1.16; letter-spacing: -.035em; font-weight: 850; }
.hero h1 span { color: var(--amber); }
.hero p { color: #f0f0f1; font-size: clamp(1rem, 1.45vw, 1.2rem); margin: 18px 0 24px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 10px 20px; min-height: 46px; border: 1px solid transparent; border-radius: 4px; font-weight: 750; line-height: 1.3; text-decoration: none; }
.primary { color: #fff; background: var(--red); }
.primary:hover { background: #a90e15; }
.categories { padding-block: 34px 44px; }
h2 { margin: 0; font-size: clamp(1.55rem, 2.6vw, 2.4rem); line-height: 1.3; letter-spacing: -.02em; }
.section-title { margin-bottom: 17px; }
.category-grid, .product-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.category { background: white; color: var(--ink); display: flex; align-items: center; text-align: start; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 5px; }
.category:hover, .category[aria-pressed=true] { border-color: var(--red); }
.category-icon { display: grid; place-items: center; width: 44px; height: 44px; background: #fff0f0; color: #ab1017; border-radius: 4px; flex: none; }
.category b, .category small { display: block; }
.category small { font-size: .875rem; color: var(--muted); }
.catalog { background: var(--paper); padding-block: 42px 54px; }
.catalog-head, .catalog-controls { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.search, .select { min-height: 44px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid #c6c7cc; border-radius: 4px; background: #fff; }
.search { width: min(100%, 370px); }
.search input, .select select { width: 100%; min-width: 0; border: 0; outline: none; background: transparent; color: var(--ink); padding: 8px 0; }
.search:focus-within, .select:focus-within { outline: 3px solid #a70d14; outline-offset: 2px; }
.select { position: relative; padding: 0; }
.select select { appearance: none; cursor: pointer; padding: 8px 35px 8px 12px; }
.select .icon { position: absolute; right: 9px; width: 16px; }
.catalog-controls { margin-top: 20px; }
#results { margin: 0 auto 0 0; color: var(--muted); font-size: .9rem; }
.price-note { margin: 12px 0 18px; color: var(--muted); font-size: .9rem; }
.product { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 5px; display: flex; flex-direction: column; overflow: hidden; }
.product:hover { border-color: #a7a8af; }
.product-photo { width: 100%; padding: 10px; border: 0; border-bottom: 1px solid #efeff0; background: white; }
.product-photo:focus-visible { outline-offset: -4px; }
.product-photo img { width: 100%; height: clamp(128px, 15vw, 210px); object-fit: contain; color: var(--muted); }
.product-info { display: flex; flex-direction: column; height: 100%; padding: 13px; }
.product h3 { margin: 4px 0 10px; font-size: 1rem; line-height: 1.45; overflow-wrap: anywhere; }
.product h3 button { text-align: start; padding: 0; border: 0; background: none; font-weight: 750; color: inherit; }
.product h3 button:hover { text-decoration: underline; }
.sku, .muted { color: var(--muted); margin: 0; font-size: .875rem; overflow-wrap: anywhere; }
.card-buy { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; }
.price { color: #b90d15; font-size: 1.32rem; font-weight: 800; }
.icon-button, .add { display: grid; place-items: center; padding: 0; min-width: 42px; min-height: 42px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: white; }
.add { color: #fff; background: var(--ink); border-color: var(--ink); }
.add:hover { background: var(--red); }
.condition { color: #733e00; margin: 4px 0 0; font-size: .875rem; }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 24px; }
.pagination:empty { display: none; }
.pagination button { min-height: 42px; min-width: 42px; border: 1px solid #c6c7cc; background: white; color: var(--ink); border-radius: 4px; }
.pagination [aria-current=page] { background: var(--ink); color: white; border-color: var(--ink); }
.empty { grid-column: 1/-1; margin: 0; padding: 30px 16px; background: white; }
.wholesale { background: var(--ink); color: white; border-top: 4px solid var(--red); }
.wholesale-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 29px; }
.wholesale p, footer p { margin: 4px 0; }
footer { background: #fff; }
footer img { width: 220px; }
footer a { color: #9f1015; overflow-wrap: anywhere; }
dialog { color: var(--ink); border: 0; padding: 0; max-height: 92dvh; box-shadow: 0 14px 48px #0004; }
dialog::backdrop { background: #101014a8; }
.details { width: min(900px, calc(100% - 28px)); border-radius: 7px; }
.detail-box { display: grid; grid-template-columns: 1fr 1.12fr; gap: 20px; padding: 22px; }
.detail-box img { width: 100%; height: min(48vw, 330px); object-fit: contain; }
.detail-info { align-self: center; }
.detail-box h2 { font-size: 1.35rem; margin: 9px 0; }
.detail-box .icon-button { margin-left: auto; }
.detail-box .price { margin: 8px 0; }
.detail-box .button { margin-top: 13px; }
.cart-drawer { position: fixed; inset: 0 0 0 auto; margin: 0; height: 100dvh; max-height: none; width: min(100%, 465px); max-width: 100%; }
.cart-drawer[open] { display: flex; flex-direction: column; }
.drawer-head { padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.5rem; }
.cart-items { padding: 0 20px; flex: 1; overflow-y: auto; }
.cart-items > p { margin-top: 20px; }
.cart-line { display: grid; grid-template-columns: 54px minmax(0,1fr) auto; gap: 10px; align-items: start; padding: 13px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 54px; height: 54px; object-fit: contain; }
.cart-line h3 { font-size: .95rem; line-height: 1.4; margin: 0; overflow-wrap: anywhere; }
.cart-line label { display: block; font-size: .875rem; margin-top: 6px; }
.cart-line input { width: 62px; border: 1px solid #b8b9be; border-radius: 3px; padding: 5px; }
.cart-line .icon-button { min-width: 38px; min-height: 38px; }
.cart-summary { border-top: 1px solid var(--line); padding: 17px 20px; }
.cart-summary .button { margin-top: 12px; width: 100%; }
.subtotal { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 6px; }
.toast { position: fixed; z-index: 4; bottom: 20px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 24px); background: var(--ink); color: white; border-radius: 4px; padding: 10px 16px; pointer-events: none; }
.toast:empty { padding: 0; }
@media (max-width: 1050px) {
  .wrap { width: calc(100% - 56px); }
  .category { padding: 12px; gap: 8px; }
  .category-icon { width: 38px; height: 38px; }
  .hero { background-image: linear-gradient(90deg,#070709 0%,#070709a1 34%,transparent 66%),url("banner.webp"); }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .utility a { display: none; }
  .utility .wrap { justify-content: center; text-align: center; }
  .header-inner { grid-template-columns: 1fr auto; gap: 0 12px; min-height: 0; padding-top: 9px; }
  .header nav { grid-column: 1/-1; grid-row: 2; justify-content: center; padding: 9px 0; font-size: .9rem; flex-wrap: wrap; }
  .brand { width: min(100%, 225px); }
  .hero { background-position: center, right center; background-image: linear-gradient(90deg,#070709f7 0%,#070709bd 38%,#07070938 100%),url("banner.webp"); }
  .hero-inner { min-height: 390px; }
  .hero h1 { font-size: clamp(2.65rem, 9vw, 3.9rem); }
  .wide-only { display: none; }
  .category-grid, .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .categories { padding-block: 25px 32px; }
  .catalog { padding-top: 30px; }
  .catalog-head { align-items: stretch; flex-direction: column; }
  .search { width: 100%; }
  .catalog-controls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 12px; }
  #results { grid-row: 2; grid-column: 1/-1; }
  .select { font-size: .875rem; }
  .wholesale-inner, .footer-inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 480px) {
  .cart-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .cart-toggle { padding-inline: 7px; gap: 5px; }
  .header-actions { gap: 6px; }
  .language button { padding-inline: 6px; }
  .category b { font-size: .875rem; }
  .category small, .product .sku { font-size: .8rem; }
  .category { padding: 8px; }
  .category-icon { width: 33px; height: 36px; }
  .product h3 { font-size: .9rem; }
  .product-info { padding: 9px; }
  .price { font-size: 1.12rem; }
  .detail-box { grid-template-columns: 1fr; gap: 5px; padding: 12px; }
}
