@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+Thai:wght@300;400;500;600;700&display=swap");

:root {
  --color-primary: #0058a3;
  --color-primary-hover: #004f93;
  --color-yellow: #ffdb00;
  --color-ink: #111111;
  --color-muted: #484848;
  --color-canvas: #ffffff;
  --color-surface: #f5f5f5;
  --color-surface-dark: #111111;
  --color-border: #dfdfdf;
  --color-on-primary: #ffffff;
  --color-link: #0058a3;
  --font: "Noto Sans Thai", "Noto Sans", system-ui, sans-serif;
  --radius: 4px;
  --radius-card: 8px;
  --radius-pill: 40px;
  --space-1: 16px;
  --space-2: 20px;
  --space-3: 24px;
  --space-4: 36px;
  --space-5: 48px;
  --max: 1200px;
}

/* Knowledge hub */
.knowledge-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 24px;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(0, 43, 80, .96), rgba(0, 88, 163, .84)),
    radial-gradient(circle at 85% 20%, rgba(78, 190, 255, .7), transparent 34%);
}
.knowledge-hero::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -150px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255, 255, 255, .04), 0 0 0 140px rgba(255, 255, 255, .03);
}
.knowledge-hero .wrap { position: relative; z-index: 1; }
.knowledge-hero h1 {
  max-width: 720px;
  margin: 8px 0 16px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.08;
}
.knowledge-hero p:last-child {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 18px;
}
.knowledge-section { padding-top: 72px; padding-bottom: 96px; }
.knowledge-section .section-head h2 { font-size: clamp(30px, 4vw, 42px); }
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 370px));
  justify-content: center;
  gap: 28px;
}
.article-card {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
}
.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 42px rgba(16, 49, 76, .12);
}
.article-card-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #edf3f7;
}
.article-card-image img {
  width: 100%;
  height: 100%;
  padding: 8px;
  object-fit: contain;
  transition: transform .45s ease;
}
.article-card:hover .article-card-image img { transform: scale(1.04); }
.article-card-body { padding: 24px; }
.article-card-meta {
  margin: 0 0 10px;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 700;
}
.article-card h2 {
  margin: 0 0 12px;
  font-size: 21px;
}
.article-card h2 a { color: var(--color-ink); }
.article-card-body > p:not(.article-card-meta) {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 20px;
  color: var(--color-muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.article-read-link { font-weight: 700; }
.article-empty {
  grid-column: 1 / -1;
  padding: 64px 24px;
  text-align: center;
  border: 1px dashed var(--color-border);
  border-radius: 14px;
}

.article-loading,
.article-not-found {
  min-height: 420px;
  padding: 120px 24px;
  text-align: center;
}
.article-detail-head {
  max-width: 820px;
  padding-top: 48px;
  padding-bottom: 34px;
  text-align: center;
}
.article-breadcrumb {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
  color: #7a8792;
  font-size: 14px;
}
.article-detail-head h1 {
  margin: 10px auto 22px;
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.14;
}
.article-byline {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: #6b7883;
  font-size: 14px;
}
.article-cover.wrap {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: min(820px, calc(100% - 40px));
  padding: 0;
  border-radius: 18px;
  background: #f2f6f8;
}
.article-cover img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
}
.article-reading-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
  padding-top: 44px;
  padding-bottom: 86px;
}
.article-prose {
  color: #253441;
  font-size: 18px;
  line-height: 1.9;
}
.article-prose p { margin: 0 0 28px; }
.article-prose ul { margin: 0 0 30px; padding-left: 26px; }
.article-prose li { margin-bottom: 12px; padding-left: 5px; }
.article-prose a { text-decoration: underline; overflow-wrap: anywhere; }
.related-articles { padding-top: 70px; padding-bottom: 96px; background: #f4f7f9; }

/* Knowledge admin */
.form-card.article-editor-form { max-width: 920px; }
.article-content-input { min-height: 420px; line-height: 1.8; resize: vertical; }
.editor-help {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: -4px 0 10px;
  color: #6a7782;
  font-size: 13px;
}
.editor-help code {
  padding: 1px 5px;
  border-radius: 4px;
  background: #edf2f6;
}
.article-image-uploader .image-upload-preview { min-height: 280px; }
.article-image-uploader .image-upload-preview.has-image img { aspect-ratio: 16 / 9; }
.check.publish-check {
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #f8fafb;
}
.publish-check span { display: grid; gap: 2px; }
.publish-check small { color: #6a7782; font-weight: 400; }
.article-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.article-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.article-status.is-published { color: #127143; background: #e9f8f0; }
.article-status.is-draft { color: #68747f; background: #eef1f3; }
.thumb.article-admin-thumb { width: 78px; height: 50px; object-fit: cover; border-radius: 6px; }
.article-thumb-empty { display: grid; place-items: center; background: #edf1f4; color: #8c98a1; }

@media (max-width: 900px) {
  .article-reading-layout { grid-template-columns: 1fr; padding-inline: 28px; }
}

@media (max-width: 600px) {
  .knowledge-hero { padding: 68px 20px; }
  .knowledge-hero h1 { font-size: 42px; }
  .knowledge-section { padding-top: 48px; }
  .article-grid { grid-template-columns: minmax(0, 370px); }
  .article-detail-head { padding: 38px 20px 30px; }
  .article-detail-head h1 { font-size: 34px; }
  .article-cover.wrap {
    width: calc(100% - 32px);
    margin-inline: auto;
    border-radius: 10px;
  }
  .article-reading-layout { padding: 38px 22px 64px; }
  .article-prose { font-size: 17px; line-height: 1.8; }
  .article-image-uploader .image-upload-preview { min-height: 200px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  background: var(--color-canvas);
  color: var(--color-ink);
}
img { max-width: 100%; display: block; }
a { color: var(--color-link); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}
h2, .heading {
  font-size: 25px;
  font-weight: 700;
  line-height: 1.28;
  margin: 0;
}
p { margin: 0; }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
}
.skip:focus {
  left: 8px;
  z-index: 40;
  background: var(--color-yellow);
  color: var(--color-ink);
  padding: 12px 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--color-canvas);
  border-bottom: 1px solid var(--color-border);
}
.header-bar { position: relative; }
.header-inner, .nav, .wrap, .section-head, .toolbar,
.cat-grid, .product-grid, .product-layout, .cart-table, .form-grid, .pager, .empty, .status, .footer-wrap, .hej {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 12px 0;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  place-items: center;
  flex-shrink: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-ink);
  position: relative;
  transition: transform 0.15s ease, top 0.15s ease, opacity 0.15s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.header-bar.is-open .nav-toggle span { background: transparent; }
.header-bar.is-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.header-bar.is-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }
.logo {
  background: var(--color-yellow);
  color: var(--color-ink);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.12em;
  padding: 8px 12px;
  border-radius: var(--radius);
  line-height: 1;
  flex-shrink: 0;
}
.search {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
  max-width: 720px;
}
.search input {
  width: 100%;
  height: 48px;
  min-height: 48px;
  margin: 0;
  border: 0;
  background: var(--color-surface);
  border-radius: var(--radius-pill);
  padding: 0 52px 0 20px;
}
.search button {
  position: absolute;
  right: 4px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--color-ink);
}
.nav-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--color-ink);
  flex-shrink: 0;
}
.bag-link { position: relative; }
.bag-count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 4px;
}
.bag-count[hidden] { display: none; }
.nav {
  display: flex;
  gap: 28px;
  padding: 0 0 12px;
}
.nav a {
  color: var(--color-ink);
  font-size: 14px;
  font-weight: 700;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

.hej {
  padding: 36px 0 20px;
}
.hej p {
  margin-top: 8px;
  color: var(--color-muted);
  font-size: 16px;
}

.stories { padding-bottom: 36px; }
.story {
  position: relative;
  display: block;
  color: #fff;
  border-radius: var(--radius-card);
  overflow: hidden;
}
.story img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}
.story-xl img { height: 560px; }
.story-copy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.55);
}
.story-copy strong {
  display: block;
  font-size: 25px;
  font-weight: 700;
  margin-bottom: 4px;
}
.story-copy span {
  font-size: 16px;
  color: #fff;
}
.story-pair {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.story-pair .story img { height: 280px; }

.section { padding: 36px 0 48px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin: 0 auto 24px;
}
.muted { color: var(--color-muted); }

.btn-primary, .btn-dark, .btn-light, .btn-sm {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 0;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-size: 14px;
}
.btn-primary:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.btn-dark {
  background: var(--color-ink);
  color: #fff;
  border-radius: var(--radius-card);
  padding: 8px 14px;
  font-size: 14px;
}
.btn-light {
  background: #fff;
  color: var(--color-ink);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
}
.btn-sm {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 13px;
  border-radius: var(--radius-card);
  background: var(--color-surface);
  color: var(--color-ink);
}
.btn-sm.btn-danger {
  background: #fef2f2;
  color: #b42318;
}
.btn-block { width: 100%; }

.cat-grid, .product-grid {
  display: grid;
  gap: 20px;
}
.cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card, .admin-card, .summary, .login-box {
  background: var(--color-canvas);
  color: var(--color-ink);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
}
.product-card, .cat-card {
  background: transparent;
  border: 0;
  padding: 0;
}
.cat-card img, .product-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: var(--color-surface);
  border-radius: var(--radius);
}
.product-card img { height: 240px; }
.cat-body, .product-body { padding-top: 12px; display: grid; gap: 4px; }
.product-card .heading, .cat-card .heading {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}
.product-card a, .cat-card a { color: inherit; }
.price {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-ink);
  margin-top: 4px;
}
.price s {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-muted);
  margin-left: 8px;
}

.band {
  background: var(--color-primary);
  color: #fff;
  padding: 48px 0;
  text-align: center;
}
.band .wrap { display: grid; gap: 12px; justify-items: center; max-width: 720px; }
.band a { color: #fff; }
.band .btn-light { color: var(--color-ink); }

.toolbar {
  margin: 0 auto 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: var(--color-canvas);
  color: var(--color-ink);
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
}
.chip.is-on {
  background: var(--color-ink);
  color: #fff;
  border-color: var(--color-ink);
}
select.sort,
.top select {
  min-height: 40px;
  background: var(--color-surface);
  color: var(--color-ink);
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0 16px;
  width: auto;
  margin: 0;
}

.product-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}
.product-photo {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  overflow: hidden;
  min-height: 420px;
  display: grid;
  place-items: center;
  padding: 32px;
}
.product-photo img {
  width: 100%;
  height: 480px;
  object-fit: contain;
}
.specs { display: grid; gap: 8px; margin: 24px 0 32px; }
.specs div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 8px;
}
.qty { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.qty button, .qty input {
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  background: var(--color-canvas);
  color: var(--color-ink);
  border-radius: var(--radius);
  cursor: pointer;
}

.form-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}
input:not([type]),
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="search"],
select,
textarea {
  width: 100%;
  min-height: 48px;
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-canvas);
  color: var(--color-ink);
}
textarea { min-height: 100px; resize: vertical; }
.qty input {
  width: 72px;
  min-width: 72px;
  max-width: 72px;
  min-height: 44px;
  height: 44px;
  margin-bottom: 0;
  padding: 0;
  text-align: center;
}
.search input[type="search"] {
  margin-bottom: 0;
  border: 0;
  padding: 0 52px 0 20px;
  height: 48px;
  min-height: 48px;
  background: var(--color-surface);
  border-radius: var(--radius-pill);
}
.help { margin-top: 8px; }
.summary { padding: 24px; display: grid; gap: 8px; }
.form-card { max-width: 720px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.login-box .logo { display: inline-block; margin-bottom: 12px; }
.login-lead { margin-bottom: 24px; }
.product-title { margin: 12px 0 16px; }
.product-copy { margin-top: 20px; }
.related-head { margin-top: 36px; }
.order-title { margin: 12px 0 20px; }
.mt-sm { margin-top: 12px; }
.mt-lg { margin-top: 24px; }
.empty-copy { margin: 12px 0 24px; }
.stack > * + * { margin-top: 20px; }
table.display,
table.display th,
table.display td {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.43;
}
table.display { width: 100%; }
table.display th {
  font-size: 12px;
  font-weight: 700;
}
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.site-footer {
  background: var(--color-surface);
  color: var(--color-ink);
  padding: 40px 0 24px;
  margin-top: 24px;
}
.footer-join {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-card);
  padding: 28px 32px;
  margin-bottom: 36px;
}
.footer-join p { margin-top: 6px; color: #d6e8f5; }
.footer-join .btn-primary {
  background: var(--color-yellow);
  color: var(--color-ink);
  flex-shrink: 0;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: 24px;
}
.footer-cols strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}
.footer-cols a {
  display: block;
  min-height: auto;
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-muted);
}
.footer-legal {
  font-size: 12px;
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
}

.cart-table {
  min-width: 0;
  display: grid;
  gap: 24px;
  overflow-x: hidden;
}
.cart-table .dt-container,
.cart-table .dataTables_wrapper {
  min-width: 0;
  max-width: 100%;
}
.cart-table table.dataTable {
  width: 100% !important;
}
.cart-table .summary { max-width: 360px; justify-self: end; width: 100%; }
.summary div { display: flex; justify-content: space-between; gap: 16px; }
.pager {
  margin: 32px auto 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pager a, .pager span {
  min-height: 40px;
  min-width: 40px;
  padding: 0 12px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ink);
}
.pager a[aria-current="page"] {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: #fff;
}
.pager .is-disabled {
  opacity: 0.35;
  pointer-events: none;
}
.pager-arrow {
  font-size: 22px;
  line-height: 1;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: var(--color-ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius);
  z-index: 40;
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.check { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-bottom: 16px; }
.check input { width: auto; min-height: 20px; margin: 0; }
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.error { color: #c41e3a; margin: 0 0 16px; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.stat-value {
  font-size: 32px;
  font-weight: 700;
}
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.admin-card { padding: 20px; overflow-x: auto; }
.thumb { width: 48px; height: 48px; object-fit: cover; border-radius: var(--radius); background: var(--color-surface); }

.shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
  background: var(--color-surface);
  font-size: 14px;
}
.shell h1 { font-size: 22px; }
.shell h2 { font-size: 16px; margin-bottom: 12px; }
.shell .stat-value { font-size: 24px; }
.shell .btn-primary {
  font-size: 14px;
  padding: 8px 16px;
  min-height: 40px;
  border-radius: var(--radius-card);
}
.side {
  background: var(--color-surface-dark);
  color: #fff;
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.side-top { display: contents; }
.admin-toggle { display: none; }
.side .nav-toggle span,
.side .nav-toggle span::before,
.side .nav-toggle span::after { background: #fff; }
.brand {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--color-yellow);
  color: var(--color-ink);
  padding: 8px 12px;
  border-radius: var(--radius);
  display: inline-block;
}
.brand small { display: block; font-size: 11px; font-weight: 400; letter-spacing: 0; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a, .side-nav button {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--radius);
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
}
.side-nav a.is-active { background: var(--color-primary); }
.main { padding: 32px 24px; }
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--color-surface);
}
.login-box { width: min(400px, calc(100% - 32px)); padding: 32px 24px; }
.login-box h1 { font-size: 22px; }

table.dataTable { width: 100% !important; color: var(--color-ink); border-collapse: collapse; font-size: 14px; }
table.dataTable thead th,
table.dataTable tbody td {
  background: var(--color-canvas);
  color: var(--color-ink);
  border-bottom: 1px solid var(--color-border);
  padding: 12px 10px;
  vertical-align: middle;
  font-size: 14px;
  font-weight: 400;
}
table.dataTable thead th,
table.dataTable thead th button,
.dt-column-title,
table.dataTable thead .dt-column-title {
  font-size: 12px !important;
  font-weight: 700;
}
table.dataTable td.dt-empty,
table.dataTable .dt-empty,
.dt-empty,
.dataTables_empty {
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  text-align: center;
  color: var(--color-muted);
  padding: 40px 16px !important;
}
.dt-container.is-empty .dt-paging,
.dt-container.is-empty .dt-info,
.dataTables_wrapper.is-empty .dataTables_paginate,
.dataTables_wrapper.is-empty .dataTables_info {
  display: none !important;
}
table.dataTable tbody tr:hover td { background: var(--color-surface); }
.dt-container,
.dataTables_wrapper { color: var(--color-muted); }
.dt-container .dt-layout-row,
.dataTables_wrapper .dt-layout-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}
.dt-container .dt-search input,
.dataTables_wrapper .dataTables_filter input,
.dt-container .dt-length select,
.dataTables_wrapper .dataTables_length select {
  width: min(100%, 240px);
  min-height: 40px;
  margin: 0;
  background: var(--color-surface);
  color: var(--color-ink);
  border: 0;
  border-radius: var(--radius-pill);
  padding: 8px 16px;
}
.dt-container .dt-search label,
.dataTables_wrapper .dataTables_filter label {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin: 0;
  font-size: 0;
}
.dt-paging,
.dataTables_paginate {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.dt-paging .dt-paging-button,
.dataTables_wrapper .dataTables_paginate .paginate_button {
  min-width: 36px;
  min-height: 36px;
  margin: 0 !important;
  padding: 0 10px !important;
  border-radius: var(--radius-card) !important;
  border: 1px solid var(--color-border) !important;
  background: var(--color-canvas) !important;
  color: var(--color-ink) !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
}
.dt-paging .dt-paging-button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: var(--color-ink) !important;
  border-color: var(--color-ink) !important;
  color: #fff !important;
}
.dt-paging .dt-paging-button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
  opacity: 0.35;
}
.dt-info, .dataTables_info { font-size: 13px; padding: 0 !important; }
.dt-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: flex-end;
}

@media (max-width: 1068px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .story-pair { grid-template-columns: 1fr 1fr; }
  .story-xl img { height: 420px; }
}
@media (max-width: 834px) {
  h1 { font-size: 26px; }
  h2, .heading { font-size: 20px; }
  .header-inner { min-height: 64px; }
  .nav-toggle { display: grid; }
  .nav {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px 0 16px;
    background: var(--color-canvas);
    border-top: 1px solid var(--color-border);
  }
  .nav a {
    min-height: 48px;
    border-bottom: 1px solid var(--color-border);
    font-size: 16px;
  }
  .header-bar.is-open .nav { display: flex; }
  .product-layout, .form-grid, .form-row { grid-template-columns: 1fr; }
  .cat-grid, .product-grid, .story-pair { grid-template-columns: 1fr 1fr; }
  .story img, .story-xl img { height: 240px; }
  .product-photo { min-height: 0; padding: 20px; }
  .product-photo img { height: 240px; }
  .shell { grid-template-columns: 1fr; }
  .side {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: auto;
    padding: 0;
    overflow: visible;
  }
  .side-top {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 56px;
    padding: 0 12px;
  }
  .admin-toggle { display: grid; }
  .brand {
    height: 36px;
    min-height: 36px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    letter-spacing: 0.08em;
    flex-shrink: 0;
  }
  .brand small { display: none; }
  .side-nav {
    display: none;
    flex-direction: column;
    gap: 0;
    height: auto;
    padding: 8px 12px 16px;
    border-top: 1px solid #333;
  }
  .side.is-open .side-nav { display: flex; }
  .side.is-open .admin-toggle span { background: transparent; }
  .side.is-open .admin-toggle span::before { top: 0; transform: rotate(45deg); }
  .side.is-open .admin-toggle span::after { top: 0; transform: rotate(-45deg); }
  .side-nav a, .side-nav button {
    width: 100%;
    height: 48px;
    min-height: 48px;
    padding: 0 12px;
    font-size: 16px;
  }
  .dt-container .dt-search,
  .dt-container .dt-search label,
  .dt-container .dt-layout-end {
    width: 100%;
    justify-content: stretch;
  }
  .dt-container .dt-search input {
    width: 100%;
    max-width: none;
  }
  .main { padding: 20px 16px; }
  .stat-grid, .dash-grid, .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-join { flex-direction: column; align-items: flex-start; }
  .cart-table .summary { max-width: none; justify-self: stretch; }
  .top { align-items: flex-start; }
}
@media (max-width: 640px) {
  h1 { font-size: 24px; }
  .cat-grid, .product-grid, .story-pair, .footer-cols, .stat-grid, .dash-grid { grid-template-columns: 1fr; }
  .search { max-width: none; }
  .hej { padding: 24px 0 16px; }
}

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

/* Modern storefront */
:root {
  --color-primary: #0066cc;
  --color-primary-hover: #0057b0;
  --color-yellow: #8edcff;
  --color-ink: #161b22;
  --color-muted: #66717f;
  --color-canvas: #ffffff;
  --color-surface: #f3f6f8;
  --color-surface-dark: #07111f;
  --color-border: #dfe5ea;
  --color-link: #0066cc;
  --font: "Noto Sans Thai", "Inter", system-ui, sans-serif;
  --radius: 10px;
  --radius-card: 18px;
  --radius-pill: 999px;
  --max: 1280px;
}

body {
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  background: #fff;
  overflow-x: hidden;
}

h1, h2, .heading {
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.08;
}

h2, .heading {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 600;
  line-height: 1.15;
}

.announcement {
  height: 32px;
  padding: 0 max(20px, calc((100vw - var(--max)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--color-surface-dark);
  color: #c9d3de;
  font-size: 11px;
  letter-spacing: .02em;
}

.announcement a {
  color: #fff;
  font-weight: 600;
}

.site-header {
  background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid rgba(10, 30, 50, .08);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 74px;
  gap: 14px;
  padding: 10px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  background: transparent;
  color: var(--color-ink);
  border-radius: 0;
  letter-spacing: 0;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  font-family: "Inter", sans-serif;
  font-size: 19px;
  font-weight: 700;
}

.logo-type {
  display: grid;
  font-family: "Inter", sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .16em;
}

.logo-type small {
  margin-top: 5px;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: .13em;
  color: var(--color-muted);
}

.search {
  margin-inline: auto;
  max-width: 570px;
}

.search input,
.search input[type="search"] {
  height: 46px;
  min-height: 46px;
  background: #f2f5f7;
  border: 1px solid transparent;
  font-size: 14px;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.search input:focus {
  background: #fff;
  border-color: rgba(0, 102, 204, .35);
  box-shadow: 0 0 0 4px rgba(0, 102, 204, .08);
  outline: 0;
}

.nav-icon {
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.nav-icon:hover {
  color: var(--color-primary);
  border-color: #b9cad8;
  background: var(--color-surface);
}

.account-link.is-signed-in {
  border-color: #b7d8f4;
  background: #e9f4fe;
  color: #086abf;
}

.account-link.is-signed-in > span {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.bag-count {
  top: -4px;
  right: -3px;
  border: 2px solid #fff;
}

.nav {
  gap: 32px;
  padding-bottom: 10px;
}

.nav a {
  min-height: 28px;
  color: #303943;
  font-size: 13px;
  font-weight: 500;
  transition: color .2s ease;
}

.nav a:hover { color: var(--color-primary); }
.nav a[aria-current="page"] {
  color: var(--color-primary);
  text-decoration: none;
}

.home-hero {
  position: relative;
  min-height: min(760px, calc(100vh - 106px));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #07111f;
  color: #fff;
}

.home-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  opacity: .68;
  transform: scale(1.01);
}

.home-hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(3, 14, 28, .48);
}

.home-hero-content {
  position: relative;
  z-index: 1;
  padding-block: 110px 130px;
}

.eyebrow {
  margin-bottom: 20px;
  color: #a9dfff;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .18em;
}

.eyebrow.dark { color: var(--color-primary); }

.home-hero h1 {
  max-width: 760px;
  color: #fff;
  font-size: clamp(50px, 7.2vw, 92px);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.055em;
}

.hero-lead {
  max-width: 630px;
  margin-top: 28px;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 300;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.btn-hero {
  min-height: 52px;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 500;
}

.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  backdrop-filter: blur(8px);
  transition: background .2s ease, border-color .2s ease;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .8);
}

.hero-scroll {
  position: absolute;
  right: max(20px, calc((100vw - var(--max)) / 2));
  bottom: 32px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, .74);
  font-size: 12px;
}

.hero-scroll span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
}

.value-strip {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-block: 26px;
}

.value-grid > div {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 34px;
  border-right: 1px solid var(--color-border);
}

.value-grid > div:first-child { padding-left: 0; }
.value-grid > div:last-child { padding-right: 0; border-right: 0; }

.value-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eaf5ff;
  color: var(--color-primary);
  font-size: 15px;
  font-weight: 700;
}

.value-grid p { display: grid; }
.value-grid strong { font-size: 14px; font-weight: 600; }
.value-grid small { color: var(--color-muted); font-size: 12px; }

.home-section {
  padding-block: 100px;
}

.categories-section { background: #fff; }
.featured-section { background: var(--color-surface); }

.home-heading,
.home .section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 42px;
}

.home-heading h2,
.home .section-head h2 {
  font-size: clamp(34px, 4vw, 52px);
}

.home-heading .eyebrow,
.home .section-head .eyebrow {
  margin-bottom: 10px;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-ink);
  font-size: 14px;
  font-weight: 600;
}

.arrow-link span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #cdd5dc;
  border-radius: 50%;
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}

.arrow-link:hover span {
  color: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateX(3px);
}

.story-pair {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 0;
}

.story {
  height: 520px;
  border-radius: var(--radius-card);
  background: var(--color-surface-dark);
}

.story::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 17, 31, .32);
  transition: background .35s ease;
}

.story:hover::after { background: rgba(5, 17, 31, .18); }

.story-pair .story img,
.story img {
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}

.story:hover img { transform: scale(1.035); }

.story-copy {
  z-index: 1;
  left: 28px;
  right: 28px;
  bottom: 28px;
  text-shadow: none;
}

.story-copy strong {
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -.03em;
}

.story-copy span {
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
}

.product-grid {
  gap: 18px;
}

.product-card {
  min-width: 0;
}

.product-card > a { display: block; }

.product-media {
  position: relative;
  height: 330px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: #fff;
}

.product-card img,
.cat-card img {
  width: 100%;
  height: 100%;
  padding: 26px;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}

.product-card:hover img { transform: scale(1.045); }

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}

.product-view {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 17px;
  border-radius: var(--radius-pill);
  background: rgba(7, 17, 31, .9);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
}

.product-card:hover .product-view {
  opacity: 1;
  transform: translateY(0);
}

.product-body {
  gap: 5px;
  padding: 18px 4px 0;
}

.product-category {
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.product-card .heading {
  min-height: 46px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -.02em;
}

.price {
  font-family: "Inter", "Noto Sans Thai", sans-serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.025em;
}

.consult-banner {
  min-height: 620px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--color-surface-dark);
  color: #fff;
}

.consult-copy {
  align-self: center;
  max-width: 640px;
  padding: 90px max(50px, calc((100vw - var(--max)) / 2));
  padding-right: 7vw;
}

.consult-copy h2 {
  color: #fff;
  font-size: clamp(40px, 5vw, 66px);
  line-height: 1.08;
}

.consult-copy > p:not(.eyebrow) {
  max-width: 560px;
  margin: 28px 0 34px;
  color: #b8c3ce;
  font-size: 17px;
}

.consult-image { min-height: 620px; overflow: hidden; }
.consult-image img { width: 100%; height: 100%; object-fit: cover; }

.home { display: flex; flex-direction: column; }
.reviews-section {
  order: 110;
  overflow: hidden;
  background: #f6f9fb;
}
.reviews-heading {
  max-width: 900px;
  margin-bottom: 42px;
}
.reviews-heading h2 {
  max-width: 760px;
  margin-top: 8px;
  color: var(--color-primary);
  font-size: clamp(34px, 5vw, 58px);
}
.reviews-heading::after {
  content: "";
  display: block;
  width: min(100%, 590px);
  margin-top: 22px;
}
.reviews-carousel {
  position: relative;
  width: 100%;
}
.reviews-viewport {
  width: min(920px, 100%);
  margin-inline: auto;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(26, 59, 86, .1);
}
.reviews-track {
  display: flex;
  transition: transform .45s cubic-bezier(.22, .61, .36, 1);
  touch-action: pan-y;
}
.review-slide {
  min-width: 100%;
  padding: 16px;
}
.review-image {
  overflow: hidden;
  border-radius: 12px;
  background: #f7f9fa;
}
.review-image img {
  display: block;
  width: 100%;
  height: auto;
}
.reviews-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 1px solid #d8e0e6;
  border-radius: 50%;
  background: #fff;
  color: #667684;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
  transform: translateY(-50%);
}
.reviews-prev { left: 0; }
.reviews-next { right: 0; }
.reviews-arrow:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-50%) scale(1.06);
}
.reviews-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 26px;
}
.reviews-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #aeb9c1;
  cursor: pointer;
}
.reviews-dots button[aria-current="true"] {
  width: 26px;
  border-radius: 8px;
  background: var(--color-primary);
}
.faq-section { order: 100; background: #fff; }
.faq-layout {
  display: grid;
  grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr);
  gap: clamp(50px, 8vw, 110px);
  align-items: start;
}
.faq-intro { position: sticky; top: 150px; }
.faq-intro .eyebrow { margin-bottom: 12px; }
.faq-intro h2 { font-size: clamp(38px, 4.5vw, 58px); }
.faq-intro > p:not(.eyebrow) { max-width: 460px; margin-top: 22px; color: var(--color-muted); font-size: 15px; line-height: 1.8; }
.faq-intro .arrow-link { margin-top: 28px; }
.faq-list { border-top: 1px solid #dfe5e9; }
.faq-list details { border-bottom: 1px solid #dfe5e9; }
.faq-list summary {
  min-height: 82px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 30px;
  gap: 12px;
  align-items: center;
  color: #24313e;
  font-size: 16px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary > span { color: #8c99a5; font-family: "Inter", sans-serif; font-size: 10px; font-weight: 500; }
.faq-list summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #ccd5dc;
  border-radius: 50%;
  color: #647383;
  font-family: "Inter", sans-serif;
  font-size: 17px;
  font-weight: 400;
  transition: transform .2s ease, color .2s ease, border-color .2s ease;
}
.faq-list details[open] summary { color: var(--color-primary); }
.faq-list details[open] summary::after { content: "−"; border-color: var(--color-primary); color: var(--color-primary); transform: rotate(180deg); }
.faq-answer { padding: 0 42px 28px 50px; color: #63717e; font-size: 14px; line-height: 1.8; }
.faq-answer ul { display: grid; gap: 7px; margin: 0; padding-left: 18px; }
.faq-knowledge-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.4;
}
.faq-knowledge-link span {
  transition: transform .2s ease;
}
.faq-knowledge-link:hover span {
  transform: translateX(4px);
}
.review-image-uploader .image-upload-preview { min-height: 300px; }
.thumb.review-admin-thumb { width: 80px; height: 58px; object-fit: cover; }

.btn-primary {
  background: var(--color-primary);
  font-weight: 500;
  box-shadow: none;
  transition: background .2s ease, transform .2s ease;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}

.btn-light {
  gap: 12px;
  font-weight: 500;
}

body:not([data-page="home"]):not([data-page^="admin"]) > main.section {
  min-height: 55vh;
  padding-block: 72px 90px;
}

body:not([data-page="home"]) .section-head {
  align-items: end;
  margin-bottom: 34px;
}

body:not([data-page="home"]) .section-head h1 {
  font-size: clamp(38px, 5vw, 60px);
}

.toolbar {
  margin-bottom: 34px;
  padding-block: 18px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.chip {
  border-color: transparent;
  background: var(--color-surface);
  font-size: 13px;
  font-weight: 500;
}

.chip:hover {
  color: var(--color-primary);
  background: #eaf5ff;
}

.chip.is-on {
  background: var(--color-surface-dark);
  border-color: var(--color-surface-dark);
}

select.sort, .top select {
  border: 1px solid var(--color-border);
  background: #fff;
  font-size: 13px;
}

.product-layout {
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  gap: clamp(40px, 6vw, 90px);
}

.product-photo {
  min-height: 600px;
  padding: 52px;
  border-radius: 24px;
  background: var(--color-surface);
}

.product-photo img {
  height: 540px;
  filter: drop-shadow(3px 7px 24px rgba(0, 0, 0, .12));
}

.product-title {
  margin: 16px 0 20px;
  font-size: clamp(38px, 4vw, 58px);
}

.product-copy {
  color: var(--color-muted);
  font-size: 17px;
  line-height: 1.75;
}

.specs {
  margin: 32px 0;
  border-top: 1px solid var(--color-border);
}

.specs div {
  padding: 13px 0;
  border-bottom-color: var(--color-border);
  font-size: 14px;
}

.specs div span:last-child { font-weight: 600; text-align: right; }

.qty button, .qty input {
  border-color: var(--color-border);
  border-radius: var(--radius);
}

.summary {
  border: 0;
  border-radius: var(--radius-card);
  background: var(--color-surface);
  padding: 28px;
}

.form-grid { gap: clamp(32px, 6vw, 80px); }

input:not([type]),
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="search"],
select,
textarea {
  border-color: var(--color-border);
  border-radius: var(--radius);
  background: #fff;
}

input:focus, select:focus, textarea:focus {
  border-color: rgba(0, 102, 204, .5);
  box-shadow: 0 0 0 4px rgba(0, 102, 204, .08);
  outline: none;
}

.site-footer {
  margin-top: 0;
  padding: 72px 0 28px;
  background: #eef2f5;
}

.footer-join {
  margin-bottom: 68px;
  padding: 46px 52px;
  border-radius: 24px;
  background: var(--color-surface-dark);
}

.footer-join .eyebrow { margin-bottom: 10px; }

.footer-join strong {
  display: block;
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -.035em;
}

.footer-join p { color: #aebbc8; }
.footer-join .btn-light { flex-shrink: 0; padding: 13px 22px; }

.footer-cols {
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 52px;
  padding-bottom: 52px;
}

.footer-logo { margin-bottom: 20px; }
.footer-brand-copy {
  max-width: 280px;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.8;
}

.footer-cols strong {
  margin-bottom: 14px;
  font-size: 13px;
}

.footer-cols a {
  line-height: 2.15;
  font-size: 13px;
}

.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.toast {
  padding: 13px 20px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-dark);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
}

@media (max-width: 1068px) {
  .home-hero { min-height: 650px; }
  .product-media { height: 290px; }
  .story { height: 430px; }
  .consult-banner { min-height: 540px; }
  .consult-image { min-height: 540px; }
  .footer-cols { gap: 30px; }
}

@media (max-width: 834px) {
  .announcement { justify-content: center; }
  .announcement > span { display: none; }
  .header-inner { min-height: 68px; }
  .logo-type { font-size: 17px; }
  .contact-link { display: none; }
  .nav {
    padding: 10px 20px 18px;
    background: rgba(255, 255, 255, .98);
  }
  .nav a {
    border-bottom-color: var(--color-border);
    font-size: 15px;
  }
  .home-hero {
    min-height: 680px;
    align-items: end;
  }
  .home-hero > img { object-position: 60% center; }
  .home-hero-content { padding-block: 120px 110px; }
  .value-grid { grid-template-columns: 1fr; padding-block: 10px; }
  .value-grid > div,
  .value-grid > div:first-child,
  .value-grid > div:last-child {
    padding: 15px 0;
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }
  .value-grid > div:last-child { border-bottom: 0; }
  .home-section { padding-block: 72px; }
  .story { height: 460px; }
  .story-pair { grid-template-columns: 1fr 1fr; }
  .story-pair .story:last-child { grid-column: 1 / -1; height: 380px; }
  .consult-banner { grid-template-columns: 1fr; }
  .consult-copy { max-width: none; padding: 76px 32px; }
  .consult-image { min-height: 420px; }
  .reviews-arrow { width: 38px; height: 38px; font-size: 26px; }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-intro { position: static; }
  .product-layout { grid-template-columns: 1fr; }
  .product-photo { min-height: 460px; }
  .product-photo img { height: 410px; }
  .footer-cols { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-cols > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .announcement { height: 28px; }
  .header-inner, .nav, .wrap, .section-head, .toolbar,
  .cat-grid, .product-grid, .product-layout, .cart-table, .form-grid, .pager, .empty, .status, .footer-wrap, .hej {
    width: min(var(--max), calc(100% - 32px));
  }
  .header-inner { gap: 8px; }
  .logo-mark { width: 34px; height: 34px; font-size: 17px; }
  .logo-type { display: none; }
  .nav-icon { width: 40px; height: 40px; }
  .search input,
  .search input[type="search"] {
    height: 42px;
    min-height: 42px;
    padding-left: 16px;
    font-size: 12px;
  }
  .home-hero { min-height: 620px; }
  .home-hero h1 { font-size: clamp(46px, 15vw, 68px); }
  .hero-lead { font-size: 16px; }
  .hero-actions { display: grid; }
  .btn-hero { width: 100%; }
  .hero-scroll { display: none; }
  .home-heading,
  .home .section-head {
    align-items: flex-start;
    margin-bottom: 30px;
  }
  .home-heading .arrow-link,
  .home .section-head .arrow-link {
    font-size: 0;
  }
  .story-pair { grid-template-columns: 1fr; }
  .story,
  .story-pair .story:last-child {
    grid-column: auto;
    height: 390px;
  }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-media { height: 210px; border-radius: 13px; }
  .product-card img { padding: 16px; }
  .product-view { display: none; }
  .product-body { padding: 12px 2px 0; }
  .product-card .heading { min-height: 42px; font-size: 14px; }
  .product-category { font-size: 9px; }
  .price { font-size: 16px; }
  .price s { display: block; margin-left: 0; }
  .consult-copy { padding: 64px 20px; }
  .consult-image { min-height: 330px; }
  .reviews-heading { margin-bottom: 28px; }
  .reviews-heading h2 { font-size: 34px; }
  .reviews-arrow {
    top: 38%;
    background: rgba(255, 255, 255, .92);
  }
  .reviews-prev { left: 8px; }
  .reviews-next { right: 8px; }
  .review-slide { padding: 8px; }
  .faq-list summary { min-height: 72px; font-size: 14px; }
  .faq-answer { padding: 0 8px 24px 50px; font-size: 13px; }
  body:not([data-page="home"]):not([data-page^="admin"]) > main.section {
    padding-block: 48px 70px;
  }
  .toolbar { align-items: stretch; }
  .chips {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .chip { flex: 0 0 auto; }
  .product-photo { min-height: 350px; padding: 24px; border-radius: 18px; }
  .product-photo img { height: 320px; }
  .footer-join {
    align-items: stretch;
    padding: 34px 26px;
  }
  .footer-join .btn-light { width: 100%; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 34px 24px; }
  .footer-cols > div:first-child { grid-column: 1 / -1; }
  .footer-legal { flex-direction: column; }
}

/* Modern admin console */
.shell {
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
  background: #f5f7fa;
  color: #18212d;
  font-size: 14px;
}

.shell .side {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 26px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  background: #081321;
  color: #fff;
}

.shell .side-top {
  display: block;
  padding: 0 8px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.shell .brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0;
  background: transparent;
  color: #fff;
  font-size: 15px;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.shell .brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #1685f8;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 17px;
  font-weight: 700;
}

.shell .brand > span:last-child {
  display: grid;
}

.shell .brand small {
  display: block;
  margin-top: 5px;
  color: #68809a;
  font-family: "Inter", sans-serif;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .18em;
}

.shell .side-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  padding-top: 24px;
}

.side-label {
  margin: 0 12px 9px;
  color: #526980;
  font-family: "Inter", "Noto Sans Thai", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.side-label-secondary { margin-top: 24px; }

.shell .side-nav a {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 13px;
  border-radius: 10px;
  color: #94a6b8;
  font-size: 13px;
  font-weight: 500;
  transition: color .18s ease, background .18s ease;
}

.shell .side-nav a:hover {
  background: rgba(255, 255, 255, .055);
  color: #fff;
}

.shell .side-nav a.is-active {
  background: #126fd1;
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 91, 190, .24);
}

.shell .side-nav svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: currentColor;
}

.external-arrow {
  margin-left: auto;
  color: #60778e;
  font-size: 14px;
}

.side-account {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 14px 8px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.account-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #18304a;
  color: #9ed6ff;
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 700;
}

.side-account > span:nth-child(2) {
  min-width: 0;
  display: grid;
  line-height: 1.25;
}

.side-account strong {
  color: #e5edf5;
  font-size: 11px;
  font-weight: 600;
}

.side-account small {
  max-width: 125px;
  overflow: hidden;
  color: #60758a;
  font-family: "Inter", sans-serif;
  font-size: 9px;
  text-overflow: ellipsis;
}

.side-account button {
  width: 34px;
  height: 34px;
  margin-left: auto;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #60758a;
  cursor: pointer;
}

.side-account button:hover { background: rgba(255, 255, 255, .06); color: #ff8d8d; }
.side-account svg { width: 18px; height: 18px; fill: currentColor; }

.shell .main {
  min-width: 0;
  max-width: 1600px;
  width: 100%;
  margin-inline: auto;
  padding: 42px clamp(28px, 4vw, 64px) 70px;
}

.shell .top {
  min-height: 62px;
  margin-bottom: 30px;
  align-items: center;
}

.shell .top h1 {
  color: #172231;
  font-size: clamp(27px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.035em;
}

.shell .top .muted {
  margin-top: 7px;
  color: #7b8998;
  font-size: 13px;
}

.shell #order-current-status { margin-top: 8px; }

.shell .top .btn-primary {
  min-height: 43px;
  padding: 0 19px;
  border-radius: 10px;
}

.shell .top .btn-primary::before {
  content: "+";
  margin-right: 8px;
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 400;
}

.shell .top .btn-sm {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid #dfe5ec;
  background: #fff;
}

.shell .admin-card {
  padding: 24px;
  overflow: hidden;
  border: 1px solid #e6ebf0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(18, 37, 59, .035);
}

.shell .admin-card h2 {
  margin-bottom: 20px;
  color: #273442;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.015em;
}

.shell .stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.shell .stat-card {
  min-height: 148px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
}

.stat-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 600;
}

.stat-blue { background: #e8f3ff; color: #0876e8; }
.stat-violet { background: #f1edff; color: #7652d6; }
.stat-orange { background: #fff1e7; color: #e9792f; }
.stat-green { background: #e7f8ef; color: #1e9b5a; }

.stat-card .muted {
  margin-bottom: 6px;
  color: #7b8998;
  font-size: 11px;
  font-weight: 500;
}

.shell .stat-value {
  color: #172231;
  font-family: "Inter", "Noto Sans Thai", sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.04em;
}

.shell .stat-value.revenue { font-size: clamp(20px, 2vw, 27px); }

.stat-card small {
  display: block;
  margin-top: 7px;
  color: #a0abb7;
  font-size: 10px;
}

.shell .dash-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, .8fr);
  gap: 18px;
}

.shell table.dataTable {
  margin: 0 !important;
  color: #334151;
}

.shell table.dataTable thead th,
.shell table.dataTable thead th button,
.shell .dt-column-title,
.shell table.dataTable thead .dt-column-title {
  color: #8a97a5;
  font-size: 10px !important;
  font-weight: 600;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.shell table.dataTable thead th,
.shell table.dataTable tbody td {
  padding: 14px 12px;
  border-bottom: 1px solid #edf0f3;
  background: #fff;
}

.shell table.dataTable tbody tr:last-child td { border-bottom: 0; }
.shell table.dataTable tbody tr:hover td { background: #f8fafc; }
.shell table.dataTable a { color: #176fc5; font-weight: 500; }

.shell .thumb {
  width: 48px;
  height: 48px;
  padding: 4px;
  border: 1px solid #edf0f3;
  border-radius: 10px;
  background: #f7f9fb;
  object-fit: contain;
}

.shell .dt-container .dt-layout-row {
  margin-bottom: 18px;
}

.shell .dt-container .dt-search input,
.shell .dataTables_wrapper .dataTables_filter input,
.shell .dt-container .dt-length select,
.shell .dataTables_wrapper .dataTables_length select {
  min-height: 40px;
  border: 1px solid #e1e7ed;
  border-radius: 9px;
  background: #f8fafc;
  font-size: 12px;
}

.shell .dt-container .dt-search input:focus {
  border-color: #88bce9;
  background: #fff;
}

.shell .dt-container .dt-length label,
.shell .dataTables_wrapper .dataTables_length label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #7b8998;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.shell .dt-container .dt-length select,
.shell .dataTables_wrapper .dataTables_length select {
  width: auto;
  min-width: 112px;
  min-height: 40px;
  margin: 0;
  padding: 0 34px 0 13px;
  border: 1px solid #e1e7ed;
  border-radius: 9px;
  appearance: none;
  background-color: #f8fafc;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%237b8998' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  color: #354353;
  font-size: 11px;
  cursor: pointer;
}

.shell .dt-container .dt-length select:focus,
.shell .dataTables_wrapper .dataTables_length select:focus {
  border-color: #88bce9;
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(23, 119, 207, .08);
}

.shell .dt-paging .dt-paging-button,
.shell .dataTables_wrapper .dataTables_paginate .paginate_button {
  min-width: 38px;
  min-height: 38px;
  border-color: #e1e7ed !important;
  border-radius: 8px !important;
  color: #445363 !important;
  font-size: 12px;
  font-weight: 600;
}

.shell .dt-paging .dt-paging-button.current,
.shell .dt-paging .dt-paging-button.current:hover,
.shell .dt-paging .dt-paging-button.current:active,
.shell .dataTables_wrapper .dataTables_paginate .paginate_button.current {
  border-color: #126fd1 !important;
  background: #126fd1 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.shell .dt-paging .dt-paging-button.current *,
.shell .dataTables_wrapper .dataTables_paginate .paginate_button.current * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.shell .btn-sm {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #e0e6ec;
  border-radius: 8px;
  background: #fff;
  font-size: 11px;
  font-weight: 500;
}

.shell .btn-sm:hover { border-color: #b8d1e8; color: #126fc9; }
.shell .btn-sm.btn-danger { border-color: #fee1e1; background: #fff7f7; color: #c94242; }

.shell .form-card {
  max-width: 880px;
  padding: clamp(26px, 4vw, 42px);
}

.shell .form-card label,
.shell #status-form label {
  margin-bottom: 7px;
  color: #3c4957;
  font-size: 11px;
  font-weight: 600;
}

.shell input:not([type]),
.shell input[type="text"],
.shell input[type="email"],
.shell input[type="tel"],
.shell input[type="password"],
.shell input[type="number"],
.shell input[type="url"],
.shell input[type="search"],
.shell select,
.shell textarea {
  min-height: 44px;
  margin-bottom: 19px;
  padding: 10px 13px;
  border: 1px solid #dfe6ed;
  border-radius: 9px;
  background: #fbfcfd;
  font-size: 13px;
}

.shell textarea { min-height: 125px; }

.shell input:focus,
.shell select:focus,
.shell textarea:focus {
  border-color: #77b4e9;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(23, 119, 207, .08);
}

.shell input[readonly] {
  background: #eef2f5;
  color: #71808f;
  cursor: not-allowed;
}

.shell .check {
  width: fit-content;
  min-height: 36px;
  margin-bottom: 8px;
  color: #4a5867;
  font-size: 12px;
}

.shell .check input {
  width: 17px;
  height: 17px;
  min-height: 17px;
  accent-color: #126fd1;
}

.shell .form-card > .btn-primary {
  min-width: 120px;
  min-height: 43px;
  margin-top: 15px;
  border-radius: 9px;
}

.shell .image-uploader {
  display: block;
  margin: 0 0 22px;
  cursor: pointer;
}

.shell .image-uploader input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
}

.image-upload-preview {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 24px;
  overflow: hidden;
  border: 1.5px dashed #b9c7d3;
  border-radius: 12px;
  background: #f8fafc;
  color: #536475;
  text-align: center;
  transition: border-color .2s ease, background .2s ease;
}

.image-uploader:hover .image-upload-preview {
  border-color: #2683d6;
  background: #f2f8fe;
}

.image-upload-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e5f2fe;
  color: #1672c4;
  font-size: 20px;
}

.image-upload-preview strong { font-size: 12px; font-weight: 600; }
.image-upload-preview small { color: #91a0ad; font-size: 9px; }

.image-upload-preview.has-image {
  min-height: 230px;
  grid-template-columns: minmax(0, 1fr);
  padding: 12px;
  border-style: solid;
}

.image-upload-preview.has-image img {
  width: 100%;
  height: 180px;
  border-radius: 9px;
  background: #fff;
  object-fit: contain;
}

.image-preview-copy { display: grid; }
.image-preview-copy strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.shell .totals {
  margin-top: 24px;
  padding: 18px;
  border-radius: 10px;
  background: #f5f8fb;
  color: #667584;
  font-size: 12px;
  line-height: 1.8;
  text-align: right;
}

.shell .totals strong {
  color: #172231;
  font-size: 17px;
}

.shell #customer p {
  margin-bottom: 18px;
  color: #657382;
  font-size: 13px;
  line-height: 1.75;
}

.shell #status-form {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid #e9edf1;
}

.shell #status-form .btn-primary {
  width: 100%;
  min-height: 42px;
  border-radius: 9px;
}

.shell #status-form .btn-primary:disabled {
  opacity: .65;
  cursor: wait;
  transform: none;
}

.login-page {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #071321;
}

.login-page::before,
.login-page::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(92, 169, 238, .13);
  border-radius: 50%;
}

.login-page::before {
  width: 620px;
  height: 620px;
  top: -350px;
  right: -120px;
}

.login-page::after {
  width: 420px;
  height: 420px;
  bottom: -260px;
  left: -100px;
}

.login-page .login-box {
  position: relative;
  z-index: 1;
  width: min(430px, calc(100% - 32px));
  padding: 42px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 20px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .28);
}

.login-page .login-box .logo {
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #152131;
}

.login-page .login-box .logo::before {
  content: "A";
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #126fd1;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 18px;
}

.login-page .login-lead {
  margin-bottom: 28px;
  color: #263341;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.03em;
}

.login-page label {
  margin-bottom: 7px;
  color: #44515f;
  font-size: 11px;
  font-weight: 600;
}

.login-page input {
  min-height: 47px;
  margin-bottom: 18px;
  border-radius: 9px;
  background: #f7f9fb;
  font-size: 13px;
}

.login-page .btn-primary {
  min-height: 47px;
  margin-top: 4px;
  border-radius: 9px;
}

.login-page .mt-lg {
  font-size: 10px;
  text-align: center;
}

.swal2-popup.aqua-alert {
  width: min(430px, calc(100% - 32px));
  padding: 34px;
  border-radius: 18px;
  font-family: var(--font);
}

.aqua-alert .swal2-title {
  padding-top: 8px;
  color: #172231;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.03em;
}

.aqua-alert .swal2-html-container {
  margin-top: 10px;
  color: #6e7c8a;
  font-size: 13px;
  line-height: 1.6;
}

.aqua-alert .swal2-actions { gap: 8px; }

.aqua-alert .swal2-styled {
  min-height: 42px;
  margin: 0;
  padding: 0 18px;
  border-radius: 9px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  box-shadow: none !important;
}

.swal2-container .swal2-popup.swal2-toast {
  border-radius: 12px;
  font-family: var(--font);
  font-size: 13px;
  box-shadow: 0 12px 36px rgba(11, 30, 51, .16);
}

@media (max-width: 1180px) {
  .shell .stat-grid { grid-template-columns: 1fr 1fr; }
  .shell .dash-grid { grid-template-columns: 1fr; }
}

@media (max-width: 834px) {
  .shell { grid-template-columns: 1fr; }
  .shell .side {
    position: sticky;
    top: 0;
    z-index: 50;
    height: auto;
    min-height: 62px;
    padding: 0;
    overflow: visible;
  }
  .shell .side-top {
    height: 62px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    border-bottom: 0;
  }
  .shell .admin-toggle { display: grid; }
  .shell .brand {
    height: auto;
    min-height: 0;
    padding: 0;
  }
  .shell .brand-mark { width: 32px; height: 32px; }
  .shell .brand small { display: block; }
  .shell .side-nav {
    display: none;
    max-height: calc(100vh - 62px);
    padding: 14px 16px 20px;
    overflow-y: auto;
    border-top: 1px solid rgba(255, 255, 255, .08);
  }
  .shell .side.is-open .side-nav { display: flex; }
  .side-account { display: none; }
  .shell .main { padding: 30px 20px 60px; }
}

@media (max-width: 640px) {
  .shell .stat-grid { grid-template-columns: 1fr; }
  .shell .stat-card { min-height: 126px; }
  .shell .admin-card { padding: 18px; border-radius: 13px; }
  .shell .top { margin-bottom: 22px; }
  .shell .top h1 { font-size: 27px; }
  .shell .form-row { grid-template-columns: 1fr; gap: 0; }
  .shell .dt-container .dt-layout-row:first-child {
    align-items: stretch;
  }
  .shell .dt-container .dt-layout-row:first-child > div {
    width: 100%;
  }
  .shell .dt-container .dt-length label {
    justify-content: space-between;
  }
  .login-page .login-box { padding: 32px 24px; }
}

/* Step checkout */
.checkout-page {
  background: #f5f7f9;
}

.checkout-heading,
.checkout-steps,
.checkout-layout {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.checkout-heading {
  margin-bottom: 42px;
  text-align: center;
}

.checkout-heading .eyebrow { margin-bottom: 10px; }
.checkout-heading h1 { font-size: clamp(38px, 5vw, 58px); }
.checkout-heading .muted { margin-top: 12px; }

.checkout-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 32px;
  padding: 0;
  list-style: none;
}

.checkout-steps li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8b97a3;
}

.checkout-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 20px;
  left: 56px;
  height: 1px;
  background: #d8dfe5;
}

.checkout-steps li > span {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #d6dde4;
  border-radius: 50%;
  background: #f5f7f9;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
}

.checkout-steps li div {
  position: relative;
  z-index: 1;
  min-width: 130px;
  padding-right: 12px;
  display: grid;
  background: #f5f7f9;
}

.checkout-steps strong { color: #6e7b88; font-size: 12px; font-weight: 600; }
.checkout-steps small { font-size: 10px; }
.checkout-steps .is-active > span { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }
.checkout-steps .is-active strong { color: var(--color-primary); }
.checkout-steps .is-done > span { border-color: #72b79a; background: #e7f7f0; color: transparent; }
.checkout-steps .is-done > span::after { content: "✓"; position: absolute; color: #27865f; }
.checkout-steps .is-done::after { background: #72b79a; }

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.checkout-card,
.checkout-summary {
  border: 1px solid #e2e8ed;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 5px 24px rgba(22, 43, 63, .04);
}

.checkout-card { padding: clamp(28px, 5vw, 52px); }
.checkout-panel[hidden] { display: none; }
.checkout-panel.is-active { animation: checkout-in .28s ease both; }

@keyframes checkout-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.checkout-panel-head {
  margin-bottom: 32px;
  padding-bottom: 26px;
  border-bottom: 1px solid #e8edf1;
}

.step-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--color-primary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}

.checkout-panel-head h2 {
  font-size: clamp(25px, 3vw, 32px);
  font-weight: 600;
}

.checkout-panel-head p {
  margin-top: 10px;
  color: var(--color-muted);
  font-size: 13px;
}

.checkout-fields label {
  color: #3c4957;
  font-size: 12px;
  font-weight: 600;
}

.checkout-fields .optional {
  color: #9aa5af;
  font-weight: 400;
}

.checkout-fields input,
.checkout-fields textarea {
  min-height: 48px;
  margin-bottom: 20px;
  border-radius: 10px;
  background: #fbfcfd;
  font-size: 13px;
}

.checkout-fields textarea { min-height: 105px; }

.checkout-next {
  width: 100%;
  min-height: 50px;
  gap: 12px;
  margin-top: 10px;
  border-radius: 10px;
  font-size: 14px;
}

.checkout-next:disabled { opacity: .65; cursor: wait; transform: none; }
.checkout-error { min-height: 22px; margin: 4px 0 8px; color: #c63e3e; font-size: 12px; }

.checkout-summary {
  position: sticky;
  top: 138px;
  padding: 26px;
}

.summary-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid #e7ebef;
}

.summary-heading h2 { font-size: 17px; }
.summary-heading span {
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: #edf5fc;
  color: var(--color-primary);
  font-size: 10px;
  font-weight: 600;
}

.summary-products {
  max-height: 300px;
  overflow-y: auto;
  padding: 8px 0;
}

.summary-product {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 12px 0;
}

.summary-product:not(:last-child) { border-bottom: 1px solid #eef1f4; }
.summary-product img { width: 46px; height: 46px; padding: 3px; border-radius: 8px; background: #f4f6f8; object-fit: contain; }
.summary-product p { min-width: 0; display: grid; }
.summary-product p strong { overflow: hidden; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.summary-product p small { color: #8c98a4; font-size: 9px; }
.summary-product > span { font-family: "Inter", sans-serif; font-size: 10px; font-weight: 600; }

.summary-totals {
  display: grid;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid #e7ebef;
}

.summary-totals > div { display: flex; justify-content: space-between; gap: 16px; color: #71808e; font-size: 12px; }
.summary-totals strong { color: #344252; font-weight: 600; }
.summary-grand-total { margin-top: 5px; padding-top: 16px; border-top: 1px solid #e7ebef; align-items: center; }
.summary-grand-total span { color: #283746; font-weight: 600; }
.summary-grand-total strong { color: var(--color-primary); font-family: "Inter", sans-serif; font-size: 21px; }

.summary-secure {
  margin-top: 20px;
  padding: 12px;
  border-radius: 9px;
  background: #f1f8f5;
  color: #54806e;
  font-size: 9px;
  text-align: center;
}

.summary-secure span { margin-right: 4px; color: #27865f; }

.payment-card {
  display: grid;
  justify-items: center;
  padding: 30px;
  border: 1px solid #e1e7ec;
  border-radius: 16px;
  background: #f8fafb;
}

.qr-frame {
  width: min(260px, 100%);
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 22px;
  border: 1px dashed #cbd5de;
  border-radius: 14px;
  background: #fff;
  text-align: center;
}

.qr-frame > img { width: 100%; max-height: 230px; object-fit: contain; }
.qr-frame > strong { font-family: "Inter", sans-serif; font-size: 12px; letter-spacing: .08em; }
.qr-frame > small { color: #94a0ab; font-size: 9px; }

.qr-placeholder-icon {
  width: 88px;
  height: 88px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
  border: 5px solid #142131;
}

.qr-placeholder-icon i { display: block; background: #142131; }
.qr-placeholder-icon i:last-child { background: transparent; border: 4px solid #142131; }

.payment-detail {
  display: grid;
  justify-items: center;
  margin-top: 22px;
}

.payment-detail span { color: #758391; font-size: 11px; }
.payment-detail strong { color: #172534; font-family: "Inter", "Noto Sans Thai", sans-serif; font-size: 30px; letter-spacing: -.04em; }
.payment-detail small { margin-top: 4px; color: #8c98a4; font-family: "Inter", sans-serif; font-size: 10px; }

.payment-note {
  display: flex;
  gap: 11px;
  margin: 18px 0;
  padding: 14px;
  border-radius: 10px;
  background: #edf6fe;
  color: #52738f;
}

.payment-note > span {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #82b6df;
  border-radius: 50%;
  font-family: serif;
  font-size: 11px;
}

.payment-note p { font-size: 10px; line-height: 1.6; }

.slip-dropzone {
  min-height: 250px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  margin: 0;
  padding: 30px;
  border: 1.5px dashed #b8c7d3;
  border-radius: 15px;
  background: #f9fbfc;
  color: #536271;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}

.slip-dropzone:hover,
.slip-dropzone.is-dragging { border-color: var(--color-primary); background: #f1f8ff; }
.slip-dropzone input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.slip-dropzone strong { font-size: 13px; font-weight: 600; }
.slip-dropzone small { color: #98a3ae; font-size: 10px; }

.upload-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e7f3ff;
  color: var(--color-primary);
  font-size: 22px;
}

.slip-preview {
  position: relative;
  min-height: 74px;
  margin-top: 14px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 32px;
  gap: 13px;
  align-items: center;
  padding: 10px;
  border: 1px solid #dfe6ec;
  border-radius: 11px;
}

.slip-preview[hidden] { display: none; }
.slip-preview img, .pdf-preview { width: 56px; height: 56px; border-radius: 7px; object-fit: cover; }
.pdf-preview { display: grid; place-items: center; background: #fff0f0; color: #c73d3d; font-family: "Inter", sans-serif; font-size: 11px; font-weight: 700; }
.slip-preview p { min-width: 0; display: grid; }
.slip-preview p strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.slip-preview p small { color: #8b98a4; font-size: 9px; }
.slip-preview button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: #f2f4f6; color: #687582; cursor: pointer; }

.order-status {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: #edf1f4;
  color: #607080;
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}

.status-awaiting_payment { background: #fff4dc; color: #a16809; }
.status-payment_review { background: #e7f2ff; color: #176fc5; }
.status-paid, .status-completed { background: #e6f7ed; color: #287d50; }
.status-packed, .status-shipped { background: #f0ebff; color: #6d52b7; }
.status-cancelled { background: #ffebeb; color: #b84242; }

.admin-payment {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  padding: 18px;
  border: 1px solid #e1e8ee;
  border-radius: 12px;
  background: #f8fafb;
}

.admin-payment-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-payment-head > div { min-width: 0; display: grid; }
.admin-payment-label { color: #7a8896; font-size: 9px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.admin-payment-head strong { overflow: hidden; margin-top: 3px; color: #344250; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.admin-payment > small { color: #8e9aa6; font-size: 9px; }
.admin-payment.is-empty p { margin: 0 !important; color: #8e9aa6 !important; font-size: 11px !important; }

.admin-shipping-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 18px 0;
  padding: 13px;
  border: 1px solid #dce5ec;
  border-radius: 11px;
  background: #f7fafc;
}

.admin-shipping-card img { width: 74px; height: 42px; border-radius: 7px; object-fit: contain; }
.admin-shipping-card > div { min-width: 0; display: grid; }
.admin-shipping-card span { color: #84929f; font-size: 8px; }
.admin-shipping-card strong { color: #344351; font-size: 10px; }
.admin-shipping-card code { overflow: hidden; color: #176fc5; font-family: "Inter", sans-serif; font-size: 10px; text-overflow: ellipsis; }
.admin-shipping-card a { padding: 6px 9px; border-radius: var(--radius-pill); background: #e6f2fc; color: #116ab6; font-size: 8px; font-weight: 600; }
.admin-shipping-fields { margin: 5px 0 14px; padding: 16px; border-radius: 10px; background: #f3f7fa; }
.admin-shipping-fields[hidden] { display: none; }
.shell .admin-shipping-fields input,
.shell .admin-shipping-fields select { background: #fff; }

.carrier-picker {
  position: relative;
  margin-bottom: 18px;
}

.shell .carrier-picker > select {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.carrier-picker-trigger {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 13px;
  border: 1px solid #dfe6ed;
  border-radius: 9px;
  background: #fff;
  color: #354453;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.carrier-picker-trigger > span {
  display: flex;
  align-items: center;
  gap: 11px;
}

.carrier-picker-trigger img {
  width: 72px;
  height: 36px;
  border-radius: 6px;
  object-fit: contain;
}

.carrier-picker-trigger strong { font-size: 11px; font-weight: 600; }
.carrier-picker-trigger b { color: #82909d; font-size: 16px; font-weight: 400; transition: transform .2s ease; }
.carrier-picker.is-open .carrier-picker-trigger { border-color: #71ace0; box-shadow: 0 0 0 4px rgba(23, 119, 207, .08); }
.carrier-picker.is-open .carrier-picker-trigger b { transform: rotate(180deg); }

.carrier-picker-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 20;
  padding: 6px;
  border: 1px solid #dfe6ed;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(14, 37, 59, .15);
}

.carrier-picker-menu[hidden] { display: none; }
.carrier-picker-menu button {
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 24px;
  gap: 12px;
  align-items: center;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #354453;
  font: inherit;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}
.carrier-picker-menu button:hover { background: #f2f7fb; }
.carrier-picker-menu button.is-selected { background: #eaf4fd; color: #096cbc; font-weight: 600; }
.carrier-picker-menu img { width: 76px; height: 38px; border-radius: 6px; object-fit: contain; }
.carrier-picker-menu i { visibility: hidden; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #dff3e8; color: #237d50; font-size: 9px; font-style: normal; }
.carrier-picker-menu button.is-selected i { visibility: visible; }

.slip-image-link {
  display: block;
  overflow: hidden;
  border-radius: 9px;
  background: #edf1f4;
}

.slip-image-link img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
}

.slip-file-link {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 9px;
  background: #fff;
  color: #176fc5;
  font-size: 10px;
  font-weight: 600;
}

.slip-file-link span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #fff0f0;
  color: #c73d3d;
  font-family: "Inter", sans-serif;
  font-size: 9px;
}

.status {
  text-align: center;
}

.order-success-mark {
  width: 66px;
  height: 66px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e5f6ed;
  color: #25855a;
  font-size: 28px;
}

.order-status-copy {
  color: #25855a;
  font-size: 12px;
  font-weight: 600;
}

.status .order-title { margin-top: 8px; }
.status > p:not(.order-status-copy, .mt-lg) { max-width: 650px; margin-inline: auto; color: var(--color-muted); }
.status .summary { max-width: 620px; margin-inline: auto; text-align: left; }
.status .order-actions { display: flex; justify-content: center; gap: 10px; }
.status .order-actions .btn-sm { min-height: 40px; padding-inline: 18px; border: 1px solid var(--color-border); }

@media (max-width: 900px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; grid-row: 1; }
}

@media (max-width: 640px) {
  .checkout-heading,
  .checkout-steps,
  .checkout-layout { width: calc(100% - 32px); }
  .checkout-heading { margin-bottom: 30px; }
  .checkout-steps li { justify-content: center; }
  .checkout-steps li div { display: none; }
  .checkout-steps li:not(:last-child)::after { right: -30%; left: 60%; }
  .checkout-card { padding: 24px 18px; border-radius: 15px; }
  .checkout-summary { padding: 20px; border-radius: 15px; }
  .checkout-panel-head { margin-bottom: 24px; }
  .payment-card { padding: 20px 14px; }
  .qr-frame { min-height: 230px; }
  .slip-dropzone { min-height: 210px; }
}

/* Add-to-cart drawer */
body.drawer-open { overflow: hidden; }

.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  background: rgba(5, 13, 22, 0);
  pointer-events: none;
  transition: background .25s ease;
}

.cart-drawer-overlay.is-open {
  background: rgba(5, 13, 22, .54);
  pointer-events: auto;
}

.cart-drawer {
  width: min(500px, 100%);
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #fff;
  color: var(--color-ink);
  box-shadow: -18px 0 48px rgba(0, 0, 0, .14);
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.2, .7, .2, 1);
}

.cart-drawer-overlay.is-open .cart-drawer { transform: translateX(0); }

.cart-drawer-head {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 28px;
  border-bottom: 1px solid #e3e7ea;
}

.cart-added-message {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-added-message > span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 2px solid #35a353;
  border-radius: 50%;
  color: #258c42;
  font-size: 12px;
  font-weight: 700;
}

.cart-added-message strong { color: #46515d; font-size: 14px; font-weight: 500; }

.cart-drawer-close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #18212b;
  font-size: 29px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.cart-drawer-close:hover { background: #f2f4f6; }

.cart-drawer-scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.cart-added-product {
  min-height: 148px;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 24px 32px;
  border-bottom: 1px solid #e3e7ea;
}

.cart-added-product img {
  width: 128px;
  height: 94px;
  padding: 8px;
  border-radius: 10px;
  background: #f4f6f7;
  object-fit: contain;
}

.cart-added-product > div { display: grid; }
.cart-added-product p { font-size: 14px; font-weight: 600; line-height: 1.4; }
.cart-added-product small { margin-top: 4px; color: #697684; font-size: 11px; }
.cart-added-product strong { margin-top: 8px; font-family: "Inter", "Noto Sans Thai", sans-serif; font-size: 22px; }

.cart-benefit {
  min-height: 110px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  margin: 18px 32px;
  padding: 18px 20px;
  border: 1px solid #b8c0c7;
  border-radius: 12px;
  background: #f4f6f6;
}

.benefit-bag {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
}

.benefit-bag svg { width: 38px; height: 38px; }
.cart-benefit p { display: grid; }
.cart-benefit strong { font-size: 12px; font-weight: 600; }
.cart-benefit small { color: #5d6873; font-size: 10px; line-height: 1.45; }
.cart-benefit a { padding: 7px 12px; border-radius: var(--radius-pill); background: #10161c; color: #fff; font-size: 9px; font-weight: 600; }

.drawer-recommendations { padding: 4px 32px 34px; }
.drawer-recommendations h2 { margin: 10px 0 22px; font-size: 25px; }
.drawer-product-list { display: grid; gap: 24px; }

.drawer-product {
  position: relative;
  min-height: 220px;
}

.drawer-product > a {
  display: grid;
  grid-template-columns: 1fr;
  color: var(--color-ink);
}

.drawer-product img {
  width: 100%;
  height: 170px;
  padding: 16px;
  border-radius: 12px;
  background: #f4f6f7;
  object-fit: contain;
}

.drawer-product > a > div { display: grid; padding-top: 11px; padding-right: 52px; }
.drawer-product p { font-size: 12px; font-weight: 600; }
.drawer-product strong { margin-top: 4px; font-family: "Inter", "Noto Sans Thai", sans-serif; font-size: 18px; }
.drawer-product strong s { color: #8c96a0; font-size: 10px; }

.drawer-product > button {
  position: absolute;
  right: 8px;
  bottom: 9px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
}

.drawer-product > button svg { width: 20px; height: 20px; }
.drawer-product > button > span { position: absolute; top: 2px; right: 5px; font-size: 13px; font-weight: 600; }
.drawer-product > button.is-added { background: #288855; }
.drawer-product > button.is-added > span { position: static; font-size: 16px; }

.cart-drawer-actions {
  min-height: 98px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid #dce2e7;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}

.drawer-continue,
.drawer-go-cart {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #151b21;
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.drawer-continue { background: #fff; color: #151b21; }
.drawer-go-cart { flex-direction: column; border-color: #11161b; background: #11161b; color: #fff; line-height: 1.25; }
.drawer-go-cart span { color: #a9b4be; font-family: "Inter", sans-serif; font-size: 9px; font-weight: 500; }

@media (max-width: 540px) {
  .cart-drawer { width: 100%; }
  .cart-drawer-head { min-height: 70px; padding: 14px 20px; }
  .cart-added-product { grid-template-columns: 100px minmax(0, 1fr); gap: 18px; padding: 20px; }
  .cart-added-product img { width: 100px; height: 84px; }
  .cart-benefit { margin: 16px 20px; padding: 15px; }
  .cart-benefit a { display: none; }
  .drawer-recommendations { padding-inline: 20px; }
  .cart-drawer-actions { min-height: 90px; padding: 16px 14px; }
  .drawer-continue, .drawer-go-cart { min-height: 52px; }
}

/* Customer authentication */
.customer-auth-page {
  min-height: 720px;
  display: grid;
  place-items: center;
  padding: 70px 20px;
  background: #f2f5f7;
}

.customer-auth-card {
  width: min(1040px, 100%);
  min-height: 610px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid #e1e7ec;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 55px rgba(15, 35, 55, .08);
}

.customer-auth-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 6vw, 72px);
  background: #071321;
  color: #fff;
}

.customer-auth-intro h1 {
  color: #fff;
  font-size: clamp(42px, 5vw, 62px);
  line-height: 1.02;
}

.customer-auth-intro > p:not(.eyebrow) {
  margin-top: 24px;
  color: #aebdcc;
  font-size: 15px;
}

.customer-auth-intro ul {
  display: grid;
  gap: 14px;
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
  color: #d4dfe8;
  font-size: 12px;
}

.customer-auth-intro li { display: flex; align-items: center; gap: 10px; }
.customer-auth-intro li span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(44, 153, 100, .18);
  color: #70d5a4;
  font-size: 10px;
}

.customer-auth-form {
  align-self: center;
  padding: clamp(38px, 6vw, 70px);
}

.auth-kicker {
  color: var(--color-primary);
  font-family: "Inter", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
}

.customer-auth-form h2 {
  margin-top: 10px;
  font-size: clamp(30px, 4vw, 42px);
}

.customer-auth-form > p:not(.auth-error, .auth-switch) {
  margin-top: 9px;
  color: var(--color-muted);
  font-size: 12px;
}

.auth-fields { margin-top: 30px; }
.auth-fields label { color: #3c4957; font-size: 11px; font-weight: 600; }
.auth-fields input:not([type="checkbox"]) {
  min-height: 48px;
  margin-bottom: 17px;
  border-radius: 10px;
  background: #f9fbfc;
  font-size: 13px;
}
.auth-fields > small { display: block; margin: -9px 0 16px; color: #8c98a4; font-size: 9px; }

.auth-fields .auth-remember {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 1px 0 0;
  color: #687684;
  font-size: 11px;
  font-weight: 400;
}

.auth-remember input { width: 16px; height: 16px; accent-color: var(--color-primary); }
.auth-error { min-height: 22px; margin-top: 12px; color: #c63e3e; font-size: 11px; }
.auth-submit { width: 100%; min-height: 49px; border-radius: 10px; }
.auth-submit:disabled { opacity: .65; cursor: wait; }
.auth-switch { margin-top: 22px; color: #71808e; font-size: 11px; text-align: center; }
.auth-switch a { font-weight: 600; }

@media (max-width: 800px) {
  .customer-auth-card { grid-template-columns: 1fr; }
  .customer-auth-intro { min-height: 280px; padding: 42px 32px; }
  .customer-auth-intro h1 { font-size: 42px; }
  .customer-auth-intro ul { display: none; }
  .customer-auth-form { padding: 42px 30px; }
}

/* Customer account and order tracking */
.account-page {
  min-height: 70vh;
  padding: 72px 20px 100px;
  background: #f4f7f9;
}

.account-heading,
.account-layout,
.account-order-detail {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.account-heading { margin-bottom: 42px; }
.account-heading .eyebrow { margin-bottom: 8px; }
.account-heading h1 { font-size: clamp(40px, 5vw, 58px); }
.account-heading > .muted { margin-top: 10px; }

.account-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.account-sidebar,
.account-content,
.account-order-progress,
.account-detail-card {
  border: 1px solid #e0e7ec;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(19, 41, 61, .035);
}

.account-sidebar { overflow: hidden; }
.account-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px;
  border-bottom: 1px solid #e8edf1;
}
.account-user > span {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8f4ff;
  color: #0b6fc8;
  font-family: "Inter", sans-serif;
  font-weight: 700;
}
.account-user > div { min-width: 0; display: grid; }
.account-user strong, .account-user small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-user strong { font-size: 12px; }
.account-user small { color: #8794a0; font-size: 9px; }
.account-sidebar nav { display: grid; padding: 10px; }
.account-sidebar nav a,
.account-sidebar nav button {
  min-height: 43px;
  display: flex;
  align-items: center;
  padding: 0 13px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #566473;
  font: inherit;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}
.account-sidebar nav a.is-active { background: #eaf4fd; color: #086cbe; font-weight: 600; }
.account-sidebar nav button { color: #b14a4a; }

.account-content { padding: 28px; }
.account-section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid #e6ebef; }
.account-section-head h2 { font-size: 22px; }
.account-section-head p { margin-top: 4px; color: #84919e; font-size: 10px; }
.account-section-head > a { padding: 9px 14px; border-radius: var(--radius-pill); background: #edf5fc; color: #086cbe; font-size: 10px; font-weight: 600; }
.account-orders { display: grid; }

.account-order-card {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 4px;
  border-bottom: 1px solid #e8edf1;
  color: #253342;
}
.account-order-card:last-child { border-bottom: 0; }
.account-order-card:hover .account-order-arrow { transform: translateX(3px); color: var(--color-primary); }
.account-order-main, .account-order-meta { display: flex; align-items: center; gap: 13px; }
.account-order-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: #f1f4f6; color: #647484; }
.account-order-main > div { display: grid; }
.account-order-main strong { font-family: "Inter", sans-serif; font-size: 12px; }
.account-order-main small { margin-top: 3px; color: #8a97a3; font-size: 9px; }
.account-order-meta > strong { min-width: 80px; font-family: "Inter", sans-serif; font-size: 13px; text-align: right; }
.account-order-arrow { color: #8c98a4; transition: transform .2s ease, color .2s ease; }

.customer-order-status {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: var(--radius-pill);
  background: #edf1f4;
  color: #657584;
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}
.customer-order-status.status-awaiting_payment { background: #fff3d9; color: #94600a; }
.customer-order-status.status-payment_review { background: #e4f1ff; color: #1269b6; }
.customer-order-status.status-paid,
.customer-order-status.status-completed { background: #e4f6ec; color: #297b50; }
.customer-order-status.status-packed,
.customer-order-status.status-shipped { background: #efebff; color: #684eb1; }
.customer-order-status.status-cancelled { background: #ffebeb; color: #b34040; }

.account-empty { min-height: 350px; display: grid; place-items: center; align-content: center; text-align: center; }
.account-empty > span { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: #edf3f7; color: #8293a2; font-size: 22px; }
.account-empty h3 { margin-top: 16px; font-size: 20px; }
.account-empty p { margin: 6px 0 20px; color: #82909c; font-size: 11px; }

.account-order-heading > a { color: #6f7e8c; font-size: 11px; }
#account-order-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-top: 24px; }
#account-order-title p { color: #84919d; font-size: 10px; }
#account-order-title h1 { margin-top: 4px; font-family: "Inter", sans-serif; font-size: clamp(30px, 4vw, 44px); }
#account-order-title small { color: #84919d; font-size: 10px; }

.account-order-detail { display: grid; gap: 22px; }
.account-order-progress { padding: 28px; }
.account-order-progress h2, .account-detail-card h2 { margin-bottom: 22px; font-size: 17px; }
.order-timeline { display: grid; grid-template-columns: repeat(6, 1fr); margin: 0; padding: 0; list-style: none; }
.order-timeline li { position: relative; display: grid; justify-items: center; gap: 8px; color: #9aa5af; text-align: center; }
.order-timeline li:not(:last-child)::after { content: ""; position: absolute; top: 15px; left: calc(50% + 18px); width: calc(100% - 36px); height: 2px; background: #e1e7eb; }
.order-timeline li > span { position: relative; z-index: 1; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #dbe2e7; border-radius: 50%; background: #fff; font-family: "Inter", sans-serif; font-size: 10px; }
.order-timeline li strong { font-size: 9px; font-weight: 500; }
.order-timeline li.is-done > span { border-color: #5eb58a; background: #e4f6ed; color: #277c51; }
.order-timeline li.is-done::after { background: #5eb58a; }
.order-timeline li.is-current > span { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }
.order-timeline li.is-current strong { color: var(--color-primary); font-weight: 600; }
.order-cancelled { padding: 18px; border-radius: 10px; background: #ffeded; color: #a63e3e; font-size: 12px; text-align: center; }

.account-order-columns { display: grid; grid-template-columns: 1.25fr .75fr; gap: 22px; align-items: start; }
.account-detail-card { padding: 26px; }
.account-detail-stack { display: grid; gap: 22px; }
.account-item-list { display: grid; }
.account-item-list > div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid #e9edf1; }
.account-item-list p { display: grid; }
.account-item-list p strong { font-size: 12px; }
.account-item-list p small { color: #87939f; font-size: 9px; }
.account-item-list > div > span { font-family: "Inter", sans-serif; font-size: 11px; font-weight: 600; }
.account-order-totals { display: grid; gap: 9px; margin-top: 18px; padding-top: 17px; border-top: 1px solid #dfe5ea; }
.account-order-totals > div { display: flex; justify-content: space-between; color: #71808d; font-size: 11px; }
.account-order-totals > div:last-child { margin-top: 5px; color: #243341; font-weight: 600; }
.account-order-totals > div:last-child strong { color: var(--color-primary); font-size: 17px; }
.account-detail-card > p { color: #667582; font-size: 11px; line-height: 1.8; }
.account-detail-card > p strong { color: #2e3b48; }
.account-note { margin-top: 14px; padding: 11px; border-radius: 8px; background: #f4f6f8; }
.no-slip { padding: 18px; border-radius: 9px; background: #f5f7f9; text-align: center; }

.customer-slip-preview { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; border: 1px solid #e1e7ec; border-radius: 10px; color: #344352; }
.customer-slip-preview img, .customer-slip-preview > span { width: 70px; height: 60px; border-radius: 7px; object-fit: cover; }
.customer-slip-preview > span { display: grid; place-items: center; background: #ffeded; color: #b13f3f; font-family: "Inter", sans-serif; font-size: 10px; font-weight: 700; }
.customer-slip-preview > div { min-width: 0; display: grid; }
.customer-slip-preview strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.customer-slip-preview small { color: #8b97a3; font-size: 8px; }
.customer-slip-form { margin-top: 18px; padding-top: 18px; border-top: 1px solid #e5eaee; }
.customer-slip-form label { font-size: 10px; }
.customer-slip-form input { min-height: 44px; padding: 9px; font-size: 10px; }
.customer-slip-form p { min-height: 18px; color: #bd4141; font-size: 9px; }
.customer-slip-form button { width: 100%; border-radius: 9px; }

.customer-tracking-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto auto;
  gap: 20px;
  align-items: center;
  padding: 22px;
  border: 1px solid #dce5eb;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(19, 41, 61, .035);
}

.customer-tracking-card > img { width: 150px; height: 58px; border-radius: 10px; object-fit: contain; }
.customer-tracking-card > div { display: grid; }
.customer-tracking-card > div > span { color: #84929e; font-size: 9px; }
.customer-tracking-card > div > strong { color: #2c3b49; font-size: 14px; }
.customer-tracking-card p { margin-top: 4px; color: #667583; font-size: 10px; }
.customer-tracking-card code { color: #096cbe; font-family: "Inter", sans-serif; font-size: 12px; font-weight: 600; }
.customer-tracking-card > button {
  min-height: 39px;
  padding: 0 13px;
  border: 1px solid #d9e2e9;
  border-radius: 9px;
  background: #fff;
  color: #526272;
  font: inherit;
  font-size: 9px;
  font-weight: 600;
  cursor: pointer;
}
.customer-tracking-card > a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  border-radius: 9px;
  background: var(--color-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 850px) {
  .account-layout, .account-order-columns { grid-template-columns: 1fr; }
  .account-sidebar nav { grid-template-columns: repeat(3, 1fr); }
  .account-sidebar nav a, .account-sidebar nav button { justify-content: center; text-align: center; }
  .customer-tracking-card { grid-template-columns: 110px minmax(0, 1fr); }
  .customer-tracking-card > img { width: 110px; }
  .customer-tracking-card > button,
  .customer-tracking-card > a { width: 100%; justify-content: center; }
}

@media (max-width: 640px) {
  .account-page { padding: 48px 16px 70px; }
  .account-heading { margin-bottom: 28px; }
  .account-content, .account-detail-card, .account-order-progress { padding: 20px; }
  .account-section-head > a { display: none; }
  .account-order-card { align-items: flex-start; }
  .account-order-meta { flex-direction: column; align-items: flex-end; gap: 6px; }
  .account-order-arrow { display: none; }
  .order-timeline { grid-template-columns: repeat(3, 1fr); gap: 20px 0; }
  .order-timeline li:nth-child(3)::after { display: none; }
  #account-order-title { align-items: flex-start; flex-direction: column; }
  .customer-tracking-card { grid-template-columns: 1fr; text-align: center; }
  .customer-tracking-card > img { margin-inline: auto; }
}

/* About location */
.about-location {
  width: min(1040px, calc(100% - 40px));
  margin-top: 72px;
  margin-inline: auto;
  padding-top: 52px;
  border-top: 1px solid var(--color-border);
}
.about-location-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 28px;
}
.about-location-head h2 {
  margin: 8px 0 10px;
  font-size: clamp(30px, 3.5vw, 40px);
}
.about-location-head p:last-child {
  max-width: 680px;
  margin: 0;
  color: var(--color-muted);
}
.about-map {
  overflow: hidden;
  height: 380px;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: #edf3f7;
  box-shadow: 0 16px 44px rgba(22, 54, 80, .1);
}
.about-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 640px) {
  .about-location {
    width: calc(100% - 32px);
    margin-top: 48px;
    padding-top: 38px;
  }
  .about-location-head { align-items: flex-start; flex-direction: column; }
  .about-location-head .btn-sm { width: 100%; justify-content: center; }
  .about-map { height: 300px; border-radius: 12px; }
}
