@font-face {
  font-family: Thai;
  src: url('/fonts/noto-sans-thai/noto-sans-thai-400.ttf');
}
@font-face {
  font-family: Thai;
  src: url('/fonts/noto-sans-thai/noto-sans-thai-700.ttf');
  font-weight: 700;
}
:root {
  --ink: #093e39;
  --muted: #697581;
  --cream: #fffdf7;
  --mint: #def3eb;
  --yellow: #ffefad;
  --line: #12b94e;
  --border: #e7e9e3;
  font-family: Thai, system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #cb9718;
  outline-offset: 3px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(32px, 4.1vw, 54px);
  line-height: 1.2;
  letter-spacing: -1.2px;
}
h2 {
  font-size: 27px;
  line-height: 1.35;
}
h3 {
  font-size: 20px;
  line-height: 1.4;
}
p {
  line-height: 1.65;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.market-preview-notice {
  padding: 8px 16px;
  background: #fff0bf;
  color: #453713;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}
.design-bar {
  background: #173d36;
  color: #fff;
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 9px 5%;
  font-size: 12px;
}
.design-bar strong {
  color: #ffe18c;
  white-space: nowrap;
}
.design-bar span {
  flex: 1;
}
.design-bar a {
  text-decoration: underline;
  white-space: nowrap;
}
.shell {
  width: min(100% - 48px, 1404px);
  margin: auto;
  padding: 0;
}
.nav {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  padding: 15px 25px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  margin: 20px 0;
  box-shadow: 0 10px 30px #173d3606;
}
.logo {
  width: 86px;
  height: 74px;
  object-fit: contain;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-weight: 700;
}
.nav-links .active {
  background: var(--mint);
  padding: 13px 20px;
  border-radius: 12px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  padding: 13px 21px;
  min-height: 48px;
  font-weight: 700;
  background: var(--mint);
  line-height: 1.45;
  text-align: center;
}
.button.dark {
  background: var(--ink);
  color: #fff;
}
.button.line {
  background: var(--line);
  color: white;
  box-shadow: 0 5px 15px #12b94e1a;
}
.button.outline {
  background: white;
  border: 1px solid #a9beb7;
}
.button.yellow {
  background: var(--yellow);
}
.button.full {
  width: 100%;
}
.line-mark {
  width: 31px;
  height: 28px;
  border-radius: 50%;
  background: white;
  color: #16aa4b;
  display: inline-grid;
  place-items: center;
  font: bold 9px system-ui;
  flex-shrink: 0;
}
.mobile-menu {
  display: none;
}
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin: 20px 3px;
}
.product-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 18px 3px;
}
.product-quick-nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.product-quick-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #b6d7ce;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
.product-quick-nav a:first-child {
  background: #e3f4ed;
}
.product-quick-nav a:hover,
.product-quick-nav a:focus-visible {
  border-color: var(--ink);
}
.product-breadcrumb {
  margin: 0;
}
.related-products {
  margin-top: 36px;
}
.related-products .product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 25px;
  aspect-ratio: 2.5;
}
.hero picture,
.hero picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-copy {
  position: absolute;
  left: 5%;
  top: 12%;
  width: 38%;
}
.kicker {
  letter-spacing: 1.8px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(30px, 3.8vw, 51px);
}
.hero p {
  font-size: 18px;
  margin: 14px 0 19px;
}
.search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
}
.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  min-width: 0;
}
.home-search {
  position: relative;
  margin: -15px 30px 32px;
  box-shadow: 0 9px 26px #173d360b;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 32px 0 18px;
}
.section-head a {
  font-weight: 700;
  font-size: 14px;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.category-card {
  padding: 9px 9px 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 5px 20px #173d3604;
}
.category-card img {
  width: 100%;
  aspect-ratio: 1.7;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 13px;
}
.category-card strong {
  font-size: 17px;
}







.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.product-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 9px;
  box-shadow: 0 5px 18px #15352d05;
}
.product-card .photo {
  position: relative;
}
.product-card img {
  width: 100%;
  aspect-ratio: 1.16;
  object-fit: cover;
  border-radius: 12px;
}
.product-copy {
  padding: 14px 5px 8px;
}
.product-copy h3 {
  font-size: 18px;
  margin-bottom: 5px;
}
.product-copy p {
  font-size: 14px;
}
.product-card .price-note {
  background: #fff0b8;
  text-align: center;
  border-radius: 10px;
  font-size: 13px;
  padding: 8px;
  margin: 12px 0 7px;
}
.product-card .button {
  width: 100%;
  font-size: 14px;
  padding: 11px 8px;
  min-height: 42px;
}
.bottom-cta {
  margin: 30px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 34px;
  border-radius: 22px;
  background: var(--mint);
}

.catalog-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 36px 0 23px;
}
.catalog-intro p {
  margin-top: 10px;
}
.catalog-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 27px;
}
.filter-panel {
  background: white;
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 18px;
  align-self: start;
}
.filter-panel h3 {
  font-size: 17px;
  margin-bottom: 16px;
}
.filter-category {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 9px;
  border: 0;
  background: none;
  text-align: left;
  padding: 12px 9px;
  border-radius: 10px;
  margin: 4px 0;
}
.filter-category[aria-pressed='true'] {
  background: var(--mint);
  font-weight: 700;
}
.filter-category img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.catalog-toolbar {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 14px;
}
.catalog-toolbar .search {
  flex: 1;
}
.sort {
  border: 1px solid var(--border);
  background: white;
  border-radius: 12px;
  padding: 13px;
  max-width: 180px;
}
.count {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--muted);
}
.catalog-layout .product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.no-results {
  grid-column: 1/-1;
  text-align: center;
  padding: 70px 15px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border-radius: 10px;
  background: var(--mint);
  font-size: 13px;
  font-weight: 700;
}
.product-detail {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 32px;
}
.gallery-main {
  position: relative;
}
.gallery-main > img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 18px;
}
.gallery-control {
  position: absolute;
  top: 46%;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fffffff2;
  box-shadow: 0 2px 12px #0001;
  font-size: 23px;
}
.gallery-control.prev {
  left: 12px;
}
.gallery-control.next {
  right: 12px;
}
.gallery-index {
  position: absolute;
  right: 15px;
  bottom: 15px;
  background: #fffffff0;
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 13px;
}
.thumbs {
  display: flex;
  gap: 12px;
  margin-top: 13px;
}
.thumb {
  background: none;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 3px;
  width: 108px;
}
.thumb.selected {
  border-color: #358868;
}
.thumb img {
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
}
.thumb > .thumb-caption {
  font-size: 12px;
  display: block;
  padding-top: 5px;
}
.product-info .tag {
  margin: 4px 0 16px;
}
.product-info h1 {
  font-size: clamp(29px, 3.6vw, 48px);
}
.english-name {
  color: #61738a;
  font-size: 21px;
  margin: 5px 0 16px;
}
.product-meta {
  font-size: 14px;
  color: #697581;
  line-height: 1.8;
}
.product-meta strong {
  color: var(--ink);
  margin-left: 8px;
}
.product-description {
  margin: 17px 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.pack {
  margin: 12px 0 18px;
}
.pack-option > span {
  display: inline-block;
  background: #ffedab;
  border-radius: 10px;
  padding: 7px 17px;
  font-weight: 700;
  margin-top: 8px;
}
.product-availability {
  margin: 14px 0 0;
}
.line-help {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin: 7px 0 12px;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 30px 0 18px;
}
.facts details {
  border: 1px solid var(--border);
  border-radius: 15px;
  background: white;
  padding: 19px;
}
.facts details:nth-child(2) {
  background: #eaf6f1;
}
.facts summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 32px;
}
.facts p {
  font-size: 14px;
  color: var(--muted);
  padding-top: 12px;
}
.shipping-note {
  text-align: center;
  background: var(--mint);
  padding: 15px;
  border-radius: 13px;
  font-size: 14px;
}
.sticky-order {
  display: none;
}
.bo-body {
  background: #f4f6f8;
  color: #1d3047;
  min-height: 100vh;
}
.bo-layout {
  display: grid;
  grid-template-columns: 215px minmax(0, 1fr);
  min-height: calc(100vh - 42px);
}
.bo-sidebar {
  background: #13293f;
  color: #bbc8d6;
  padding: 25px 15px;
}
.bo-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: white;
  font-weight: 700;
  padding: 0 10px 25px;
}
.bo-brand img {
  width: 46px;
}
.bo-sidebar .side-label {
  padding: 22px 12px 9px;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #8294a8;
}
.bo-sidebar a {
  display: block;
  border-radius: 9px;
  padding: 12px 13px;
  font-size: 14px;
  margin-bottom: 4px;
}
.bo-sidebar a.active {
  color: white;
  background: #294057;
  border-left: 3px solid #ffc646;
}
.bo-main {
  padding: 28px;
  min-width: 0;
}
.bo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 25px;
}
.bo-top h1 {
  font-size: 32px;
  letter-spacing: -0.8px;
}
.bo-top p {
  font-size: 14px;
  color: #748193;
}
.bo-avatar {
  font-size: 12px;
  background: white;
  border-radius: 30px;
  padding: 9px 14px;
  border: 1px solid #e4e8ed;
}
.bo-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid #dbe2e8;
  margin-bottom: 23px;
  overflow: auto;
}
.bo-tabs a,
.bo-tabs button {
  padding: 13px 20px;
  border: 0;
  background: none;
  white-space: nowrap;
  font-weight: 700;
  font-size: 14px;
}
.bo-tabs .active {
  color: #17795e;
  border-bottom: 3px solid #17795e;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 22px;
}
.stat {
  background: white;
  border: 1px solid #e2e7ec;
  border-radius: 13px;
  padding: 16px;
}
.stat p {
  font-size: 13px;
  color: #738094;
}
.stat strong {
  display: block;
  font-size: 27px;
  margin-top: 3px;
}
.stat small {
  font-size: 11px;
  color: #94a0ac;
}
.bo-panel {
  background: #fff;
  border: 1px solid #e2e7ec;
  border-radius: 15px;
  padding: 20px;
}
.bo-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 19px;
}
.bo-toolbar .search {
  flex: 1;
  border-radius: 10px;
}
.bo-toolbar select {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.table-wrap {
  overflow-x: auto;
}
.bo-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}
.bo-table th {
  font-size: 12px;
  text-align: left;
  color: #708094;
  background: #f7f9fb;
  padding: 14px 10px;
  white-space: nowrap;
}
.bo-table td {
  padding: 16px 10px;
  border-top: 1px solid #edf0f2;
  font-size: 13px;
}
.bo-product {
  display: flex;
  align-items: center;
  gap: 11px;
}
.bo-product img {
  width: 58px;
  height: 52px;
  object-fit: cover;
  border-radius: 9px;
}
.bo-product strong {
  display: block;
  font-size: 14px;
}
.bo-product small {
  display: block;
  color: #8b96a2;
  margin-top: 3px;
}
.status {
  display: inline-flex;
  white-space: nowrap;
  border-radius: 99px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 700;
  background: #fff0c2;
  color: #826010;
}
.status.off {
  background: #eef1f4;
  color: #66778b;
}
.bo-button {
  border: 1px solid #d4dfe7;
  background: white;
  color: #1b4255;
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 12px;
  white-space: nowrap;
}
.editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 295px;
  gap: 20px;
}
.editor-fields {
  display: grid;
  gap: 15px;
}
.editor-fields details {
  background: white;
  border: 1px solid #e2e7ec;
  border-radius: 13px;
  padding: 20px;
}
.editor-fields summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 17px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
  margin-top: 20px;
}
.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #516479;
}
.form-grid input,
.form-grid textarea,
.form-grid select {
  width: 100%;
  border: 1px solid #dce3e9;
  border-radius: 9px;
  padding: 11px;
  color: #1d3047;
  background: white;
}
.span2 {
  grid-column: 1/-1;
}
.editor-preview {
  align-self: start;
  position: sticky;
  top: 20px;
}
.editor-preview > img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
  margin: 15px 0;
}
.readiness {
  background: #fff7de;
  border: 1px solid #f0dfaf;
  border-radius: 12px;
  padding: 15px;
  margin-top: 18px;
}
.readiness h3 {
  font-size: 15px;
}
.readiness ul {
  font-size: 12px;
  padding-left: 17px;
  line-height: 1.9;
  color: #856b32;
}
.media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 17px;
}
.media-row img {
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
}
.media-row .small {
  padding-top: 7px;
}
.save-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid #e2e7ec;
  border-radius: 13px;
  padding: 15px 20px;
  margin-top: 20px;
}
.save-bar span {
  font-size: 12px;
  color: #728095;
}
.notice {
  background: #eaf4f1;
  border-radius: 12px;
  padding: 15px 18px;
  font-size: 13px;
  margin-top: 18px;
}
.bo-mobile-products {
  display: none;
}
dialog {
  border: 1px solid #dbe6df;
  border-radius: 22px;
  padding: 30px;
  width: min(540px, 90vw);
  color: var(--ink);
  box-shadow: 0 20px 70px #14292533;
}
dialog::backdrop {
  background: #102e2b70;
}
.dialog-close {
  position: absolute;
  right: 12px;
  top: 10px;
  background: none;
  border: 0;
  font-size: 27px;
}
.flow-steps {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}
.flow-step {
  background: #f1f8f5;
  padding: 14px;
  border-radius: 12px;
}
.flow-step strong {
  display: block;
}
.flow-step p {
  font-size: 13px;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #153a31;
  color: white;
  padding: 13px 23px;
  border-radius: 12px;
  z-index: 99;
  display: none;
  font-size: 14px;
}
.empty-panel {
  padding: 40px 20px;
  text-align: center;
}
.checklist {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.9;
}
.bo-mobile-title {
  display: none;
}
@media (min-width: 768px) and (max-width: 1099px) {
  .nav-links {
    gap: 14px;
    font-size: 14px;
  }
  .nav {
    gap: 17px;
    padding: 13px 18px;
  }
  .logo {
    width: 70px;
    height: 65px;
  }
  .hero {
    aspect-ratio: 2.15;
  }
  .hero-copy {
    top: 10%;
    width: 41%;
  }
  .hero-copy h1 {
    font-size: 34px;
  }
  .hero p {
    font-size: 15px;
    margin: 10px 0;
  }
  .hero-copy .button {
    padding: 10px 13px;
    min-height: 42px;
    font-size: 14px;
  }
  .catalog-layout {
    grid-template-columns: 175px minmax(0, 1fr);
    gap: 18px;
  }
  .catalog-layout .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .filter-panel {
    padding: 12px;
  }
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  main > .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-detail {
    gap: 22px;
    grid-template-columns: 1fr 1fr;
  }
  .product-info h1 {
    font-size: 32px;
  }
  .english-name {
    font-size: 18px;
  }
  .facts {
    gap: 10px;
  }
  .facts details {
    padding: 14px;
  }


  .bo-layout {
    grid-template-columns: 165px minmax(0, 1fr);
  }
  .bo-main {
    padding: 20px;
  }
  .editor {
    grid-template-columns: 1fr;
  }
  .editor-preview {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .editor-preview > img {
    max-height: 210px;
    grid-row: span 3;
  }
  .stats {
    gap: 9px;
  }
  .stat {
    padding: 11px;
  }
  .category-card strong {
    font-size: 14px;
  }
}
@media (max-width: 767px) {
  .design-bar {
    gap: 12px;
    padding: 8px 14px;
    font-size: 10px;
    flex-wrap: wrap;
  }
  .design-bar span {
    flex-basis: 65%;
    font-size: 10px;
  }
  .design-bar a {
    font-size: 11px;
  }
  .shell {
    width: calc(100% - 24px);
    padding: 0;
  }
  .nav {
    padding: 10px 14px;
    margin: 14px 0;
    border-radius: 18px;
    gap: 12px;
  }
  .logo {
    width: 65px;
    height: 58px;
  }
  .nav-links {
    display: none;
  }
  .nav > .button {
    font-size: 13px;
    padding: 10px 12px;
    min-height: 42px;
  }
  .mobile-menu {
    display: inline-flex;
    border: 0;
    background: none;
    font-size: 22px;
    padding: 9px;
  }
  .hero {
    aspect-ratio: 2/3;
    border-radius: 20px;
  }
  .hero-copy {
    left: 7%;
    top: 6%;
    width: 84%;
  }
  .hero-copy h1 {
    font-size: 38px;
    max-width: 350px;
  }
  .kicker {
    font-size: 10px;
    margin-bottom: 9px;
  }
  .hero p {
    font-size: 15px;
    max-width: 310px;
    margin: 11px 0 15px;
  }
  .hero-copy .button {
    font-size: 14px;
    padding: 11px 17px;
    min-height: 43px;
  }
  .home-search {
    margin: -12px 12px 25px;
    padding: 12px;
  }
  .search input {
    font-size: 14px;
  }
  .section-head {
    margin: 26px 0 14px;
  }
  .section-head h2,
  h2 {
    font-size: 23px;
  }
  .section-head a {
    font-size: 12px;
  }
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .category-card strong {
    font-size: 14px;
  }
  .category-card img {
    aspect-ratio: 1.6;
    margin-bottom: 9px;
  }




  .product-grid,
  .catalog-layout .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  .product-card {
    padding: 7px;
    border-radius: 14px;
  }
  .product-card img {
    aspect-ratio: 1.1;
  }
  .product-copy {
    padding: 10px 2px 5px;
  }
  .product-copy h3 {
    font-size: 15px;
    line-height: 1.5;
    min-height: 45px;
  }
  .product-copy p {
    font-size: 12px;
  }
  .product-card .price-note,
  .product-card .button {
    font-size: 12px;
    padding: 8px 4px;
  }
  .product-card .price-note {
    margin-top: 9px;
  }
  .bottom-cta {
    padding: 22px;
    display: grid;
    gap: 17px;
    margin: 25px 0;
  }
  .bottom-cta h2 {
    font-size: 23px;
  }
  .bottom-cta p {
    font-size: 13px;
  }

  .catalog-intro {
    display: block;
    margin: 25px 0 18px;
  }
  .catalog-intro h1 {
    font-size: 32px;
  }
  .catalog-intro p {
    font-size: 14px;
  }
  .catalog-layout {
    display: block;
  }
  .filter-panel {
    padding: 0;
    border: 0;
    background: none;
    margin-bottom: 18px;
  }
  .filter-panel h3 {
    display: none;
  }
  .filter-options {
    display: flex;
    overflow: auto;
    gap: 7px;
    padding: 3px 0 9px;
  }
  .filter-category {
    flex: 0 0 auto;
    width: max-content;
    white-space: nowrap;
    border: 1px solid #dfe8df;
    background: white;
    padding: 9px 13px;
    min-height: 45px;
    font-size: 12px;
  }
  .filter-category img {
    flex: none;
    width: 21px;
    height: 21px;
  }
  .filter-panel > .small {
    display: none;
  }
  .catalog-toolbar {
    gap: 10px;
    flex-wrap: wrap;
  }
  .catalog-toolbar .search {
    flex-basis: 100%;
    padding: 12px;
  }
  .sort {
    font-size: 12px;
    padding: 9px;
    margin-left: auto;
    max-width: none;
  }
  .count {
    margin-top: -44px;
    height: 32px;
    max-width: 45%;
    display: flex;
    align-items: center;
  }
  .product-detail {
    display: block;
  }
  .product-info {
    margin-top: 23px;
  }
  .product-info h1 {
    font-size: 33px;
  }
  .english-name {
    font-size: 19px;
  }
  .product-info .tag {
    margin-bottom: 11px;
  }
  .product-meta {
    font-size: 13px;
  }
  .product-description {
    font-size: 15px;
  }
  .facts {
    display: block;
    margin-top: 25px;
  }
  .facts details {
    margin: 10px 0;
    padding: 17px;
  }
  .facts details:not([open]) summary {
    min-height: 25px;
  }
  .shipping-note {
    font-size: 12px;
    text-align: left;
    padding: 14px;
  }
  .sticky-order {
    display: block;
    position: sticky;
    bottom: 0;
    z-index: 10;
    padding: 10px 16px max(10px, env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #e2e9e2;
    margin: 24px -16px 0;
    box-shadow: 0 -6px 15px #112f2208;
  }
  .bo-layout {
    display: block;
  }
  .bo-sidebar {
    display: none;
  }
  .bo-main {
    padding: 19px 14px;
  }
  .bo-top {
    align-items: start;
  }
  .bo-top h1 {
    font-size: 26px;
  }
  .bo-top p {
    font-size: 12px;
  }
  .bo-avatar {
    font-size: 10px;
    padding: 6px 9px;
  }
  .bo-tabs {
    margin-bottom: 15px;
  }
  .bo-tabs a,
  .bo-tabs button {
    font-size: 13px;
    padding: 12px 14px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
    margin-bottom: 15px;
  }
  .stat {
    padding: 13px;
  }
  .stat strong {
    font-size: 23px;
  }
  .bo-panel {
    padding: 14px;
  }
  .bo-toolbar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .bo-toolbar .search {
    flex-basis: 100%;
    min-height: 45px;
  }
  .bo-toolbar select {
    font-size: 12px;
    flex: 1;
  }
  .bo-toolbar .button {
    font-size: 12px;
    padding: 10px 12px;
    min-height: 43px;
  }
  .table-wrap {
    display: none;
  }
  .bo-mobile-products {
    display: grid;
    gap: 12px;
  }
  .bo-mobile-product {
    border: 1px solid #e1e7ed;
    border-radius: 12px;
    padding: 14px;
  }
  .bo-mobile-product .bo-product {
    align-items: start;
  }
  .bo-mobile-product .meta-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    align-items: center;
    font-size: 11px;
  }
  .editor {
    display: block;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .span2 {
    grid-column: auto;
  }
  .editor-fields details {
    padding: 17px;
  }
  .editor-preview {
    position: static;
    margin-top: 18px;
  }
  .editor-preview > img {
    max-height: 250px;
    object-fit: cover;
  }
  .save-bar {
    position: sticky;
    bottom: 0;
    z-index: 5;
    flex-wrap: wrap;
    padding: 12px;
  }
  .save-bar span {
    flex-basis: 100%;
  }
  .save-bar .button {
    flex: 1;
    font-size: 13px;
    padding: 12px;
  }
  .notice {
    font-size: 12px;
  }
  .bo-mobile-title {
    display: block;
    font-size: 11px;
    color: #738195;
    margin-bottom: 15px;
  }
  .media-row {
    gap: 9px;
  }
  .media-row .small {
    font-size: 11px;
  }
}
@media (max-width: 360px) {
  .hero-copy h1 {
    font-size: 32px;
  }
  .hero p {
    font-size: 13px;
  }
  .hero-copy .button {
    min-height: 39px;
    padding: 9px 13px;
  }
  .nav > .button {
    font-size: 12px;
    padding: 10px;
  }
  .logo {
    width: 55px;
  }
  .product-copy h3 {
    font-size: 14px;
  }
  .product-info h1 {
    font-size: 29px;
  }
  .category-card strong {
    font-size: 13px;
  }
  .design-bar {
    column-gap: 17px;
  }
  .design-bar span {
    flex-basis: 60%;
  }
}

/* Allow long Thai labels and select options to shrink on narrow phones. */
.editor-fields,
.editor-fields details,
.form-grid label,
.media-row > div {
  min-width: 0;
}
.media-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

[hidden] {
  display: none !important;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 15px;
  z-index: 100;
  background: white;
  padding: 15px;
}
.skip-link:focus {
  top: 5px;
}
.nav {
  gap: 22px;
}
.nav-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}
.nav-links {
  gap: 20px;
  font-size: 15px;
}
.language-switch {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}
.language-switch a {
  min-height: 44px;
  display: grid;
  place-items: center;
}
.language-switch [aria-current] {
  font-weight: bold;
  text-decoration: underline;
}
.mobile-navigation {
  padding: 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 15px;
}
.mobile-navigation a {
  display: block;
  padding: 12px;
}
.category-card img {
  object-fit: contain;
  background: #f8f7ef;
}
.product-card {
  display: flex;
  flex-direction: column;
}
.product-card .photo {
  display: block;
  overflow: hidden;
  border-radius: 12px;
}
.product-card .photo > img {
  display: block;
}
.product-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-copy .button {
  margin-top: auto;
}
.product-copy > p:last-of-type {
  margin-bottom: 16px;
}
.product-card img {
  height: auto;
}
.filter-panel h2 {
  font-size: 18px;
  margin-bottom: 12px;
}
.filter-category.selected {
  background: var(--mint);
  font-weight: bold;
}
.search-submit {
  border: 0;
  background: var(--mint);
  border-radius: 8px;
  min-width: 44px;
  min-height: 44px;
}
.catalog-toolbar .search {
  padding: 5px 10px 5px 17px;
}
.catalog-toolbar .search input {
  min-height: 44px;
}
.catalog-toolbar .sort {
  max-width: 195px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 28px 0;
}
.gallery-slide > img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 18px;
}
.gallery-slide {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}
.gallery-slide > img,
.thumb-image > img {
  display: block;
}
.thumb-image {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}
.coming-soon-watermark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}
.coming-soon-watermark > span {
  display: block;
  max-width: 94%;
  transform: rotate(-16deg);
  color: rgb(255 255 255 / 82%);
  font-size: clamp(18px, 2.2vw, 32px);
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgb(12 32 39 / 58%), 0 0 12px rgb(12 32 39 / 25%);
}
.product-card .coming-soon-watermark > span {
  font-size: clamp(11px, 1.8vw, 23px);
}
.thumb-image .coming-soon-watermark > span {
  font-size: 8px;
  letter-spacing: 0.04em;
}
.thumbs {
  overflow: auto;
  padding: 3px;
}
.thumb {
  flex-shrink: 0;
  min-height: 44px;
}
.thumb img {
  width: 100%;
}
.image-disclosure {
  text-align: right;
  margin: 10px 0;
}
.pack h2 {
  font-size: 19px;
}
.pack-option {
  margin: 10px 0;
  padding: 0 0 10px;
}
.pack-option p {
  margin-top: 7px;
}
.product-description {
  white-space: pre-line;
}
.photo-placeholder {
  background: #f2f3ed;
  aspect-ratio: 4/3;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #758b80;
}
.error-page {
  padding: 80px 0;
  min-height: 60vh;
}
.error-page p {
  margin: 22px 0;
}
.error-page .button {
  margin: 5px;
}
.facts p {
  white-space: pre-line;
}
.home-search input {
  min-height: 44px;
}
.section-head h2 {
  overflow-wrap: anywhere;
}
@media (min-width: 768px) and (max-width: 1099px) {
  .nav-links {
    gap: 9px;
    font-size: 12px;
  }
  .nav-links .active {
    padding: 12px;
  }
  .nav-actions {
    gap: 10px;
  }
  .nav-actions > .button {
    padding: 11px;
    font-size: 12px;
  }
  .language-switch {
    gap: 5px;
    font-size: 12px;
  }
  .logo {
    width: 64px;
    height: 58px;
  }
  .nav {
    gap: 12px;
    padding: 13px 16px;
  }
  .hero-copy h1 {
    font-size: 32px;
  }
  .hero-copy p {
    font-size: 14px;
  }
  .product-info {
    min-width: 0;
  }
  .product-info h1 {
    overflow-wrap: anywhere;
  }
}
@media (max-width: 767px) {
  .nav {
    gap: 8px;
  }
  .nav-actions {
    gap: 9px;
  }
  .nav-actions .button {
    min-height: 42px;
    padding: 9px 11px;
    font-size: 12px;
  }
  .nav-actions .line-mark {
    display: none;
  }
  .language-switch {
    gap: 5px;
    font-size: 11px;
  }
  .logo {
    width: 57px;
    height: 55px;
  }
  .nav-links {
    display: none;
  }
  .mobile-menu {
    font-size: 18px;
    min-height: 44px;
    min-width: 36px;
    padding: 5px;
  }
  .catalog-toolbar .sort {
    max-width: 55%;
    min-height: 44px;
  }
  .filter-panel h2 {
    display: none;
  }
  .product-copy h3 {
    min-height: 0;
    margin-bottom: 8px;
  }
  .product-copy p {
    font-size: 12px;
  }
  .product-copy .button {
    min-height: 44px;
  }
  .hero-copy h1 {
    font-size: 36px;
  }
  .hero-copy p {
    font-size: 14px;
  }
  .section-head {
    align-items: start;
  }
  .section-head a {
    flex-shrink: 0;
  }
  .product-info h1 {
    overflow-wrap: anywhere;
  }
  .pack-option span {
    font-size: 15px;
  }
  .gallery-control {
    width: 44px;
    height: 44px;
  }
  .thumb {
    width: 100px;
  }
  .catalog-intro h1 {
    font-size: 31px;
  }
  .category-card img {
    aspect-ratio: 1.5;
  }
  .catalog-layout .count {
    max-width: 43%;
  }
  .product-info .pack {
    margin-bottom: 0;
  }
  .facts {
    border-top: 1px solid var(--border);
    margin: 19px 0 0;
  }
  .facts details:first-child {
    display: none;
  }
  .facts details,
  .facts details:nth-child(2) {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    margin: 0;
    padding: 15px 0;
  }
  .facts summary {
    font-size: 15px;
    line-height: 1.5;
  }
  .facts p {
    padding-top: 8px;
  }
  .shipping-note {
    display: none;
  }
  .product-links {
    margin: 11px 0 25px;
  }
  .product-links .button.outline {
    background: transparent;
    border: 0;
    min-height: 44px;
    padding: 10px 0;
    font-size: 14px;
  }
  .product-links > a:last-child {
    display: none;
  }
}
@media (max-width: 360px) {
  .nav {
    padding: 8px;
  }
  .nav-actions {
    gap: 6px;
  }
  .language-switch {
    font-size: 10px;
  }
  .hero-copy h1 {
    font-size: 31px;
  }
  .hero-copy p {
    font-size: 12px;
  }
  .hero-copy .button {
    font-size: 12px;
  }
  .home-search {
    margin-left: 4px;
    margin-right: 4px;
  }
  .section-head h2 {
    font-size: 20px;
  }
  .catalog-intro h1 {
    font-size: 28px;
  }
}
@media (max-width: 767px) {
  .product-breadcrumb,
  .product-links {
    display: none;
  }
  .product-quick-nav {
    justify-content: space-between;
    width: 100%;
    gap: 7px;
  }
  .product-top {
    margin: 16px 0;
  }
  .product-quick-nav a {
    flex: 1;
    min-height: 44px;
    padding: 8px;
    font-size: 12px;
  }
  .related-products {
    margin-top: 28px;
  }
  .related-products .section-head h2 {
    font-size: 19px;
  }
  .related-products .product-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 80%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 2px;
    padding: 0 2px 12px;
  }
  .related-products .product-card {
    scroll-snap-align: start;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
.market-cart-shortcut {
  display: inline-flex;
  align-items: center;
  margin: 16px 0;
  padding: 10px 16px;
  border: 1px solid #cbded7;
  border-radius: 999px;
  background: #e7f5ee;
  color: #0a4c3e;
  font-weight: 700;
  text-decoration: none;
}
.market-cart-shortcut[hidden] { display: none; }
.product-card img.labeled-jar-photo,
.gallery-slide > img.labeled-jar-photo,
.thumb img.labeled-jar-photo {
  aspect-ratio: 1;
  object-fit: contain;
  background: #fbf3e8;
}
