/* ELARVIA visual system: architectural arches, warm mineral colors and asymmetric editorial rhythm. */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Noto+Sans+Thai:wght@300;400;500;600&family=Playfair+Display:ital,wght@1,500&display=swap");
:root {
  --ivory: #f4efe5;
  --paper: #fbf8f1;
  --ink: #1d2a23;
  --olive: #314b3c;
  --sage: #a9b3a1;
  --clay: #b96649;
  --line: rgba(29, 42, 35, 0.16);
  --serif: "Playfair Display", serif;
  --sans: "Noto Sans Thai", "DM Sans", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
}
.shell {
  width: min(1180px, calc(100% - 48px));
  margin: auto;
}
button,
a {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
.nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 15px 0;
  transition: 0.3s;
}
.nav-wrap.scrolled {
  background: rgba(244, 239, 229, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 42px;
  height: 46px;
  border-radius: 22px 22px 5px 5px;
  background: var(--olive);
  color: var(--ivory);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 25px;
}
.brand b,
.brand small {
  display: block;
  line-height: 1;
}
.brand b {
  font-size: 17px;
  letter-spacing: 0.15em;
}
.brand small {
  font: 600 8px/1 var(--sans);
  letter-spacing: 0.24em;
  margin-top: 7px;
}
.nav-links {
  display: flex;
  gap: 34px;
  font-size: 13px;
}
.nav-links a {
  position: relative;
}
.nav-links a:after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 1px;
  background: var(--olive);
  transition: 0.25s;
}
.nav-links a:hover:after {
  right: 0;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.lang,
.cart-btn {
  height: 43px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}
.lang {
  border-radius: 22px;
  padding: 0 14px;
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
}
.cart-btn {
  width: 43px;
  border-radius: 50%;
  position: relative;
}
.cart-btn svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.cart-btn span {
  position: absolute;
  right: -3px;
  top: -3px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--clay);
  color: #fff;
  font-size: 10px;
}
.hero {
  min-height: 760px;
  padding-top: 120px;
  display: grid;
  grid-template-columns: 47% 53%;
  align-items: center;
  gap: 30px;
}
.eyebrow,
.kicker {
  font-size: 10px;
  letter-spacing: 0.24em;
  font-weight: 600;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow > span:first-child {
  width: 33px;
  height: 1px;
  background: var(--clay);
}
h1,
h2 {
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.04em;
}
.hero h1 {
  font-size: clamp(52px, 6vw, 88px);
  line-height: 1.04;
  margin: 27px 0 24px;
}
.hero h1 span,
.hero h1 em {
  display: block;
}
.hero h1 em {
  font-family: var(--serif);
  color: var(--clay);
  font-weight: 500;
}
.hero-copy > p {
  max-width: 540px;
  color: #566159;
  line-height: 1.9;
  font-size: 15px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 33px 0 52px;
}
.button {
  min-height: 52px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  border: 0;
  cursor: pointer;
  font-size: 13px;
}
.primary {
  background: var(--olive);
  color: #fff;
}
.cream {
  background: var(--ivory);
  color: var(--ink);
}
.text-link {
  display: flex;
  gap: 22px;
  font-size: 12px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 5px;
}
.hero-proof {
  display: flex;
  gap: 0;
}
.hero-proof div {
  padding: 0 30px;
  border-left: 1px solid var(--line);
}
.hero-proof div:first-child {
  padding-left: 0;
  border: 0;
}
.hero-proof strong,
.hero-proof span {
  display: block;
}
.hero-proof strong {
  font: 500 21px var(--serif);
}
.hero-proof span {
  font-size: 10px;
  color: #687169;
  margin-top: 4px;
}
.hero-visual {
  height: 630px;
  position: relative;
}
.arch-image {
  height: 590px;
  border-radius: 310px 310px 8px 8px;
  overflow: hidden;
}
.arch-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.floating-card {
  position: absolute;
  background: rgba(251, 248, 241, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 38px rgba(31, 43, 35, 0.12);
}
.material-card {
  bottom: 5px;
  left: -34px;
  padding: 14px 18px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.swatch {
  width: 37px;
  height: 37px;
  border-radius: 50%;
  background: linear-gradient(135deg, #806045, #d5c3a5);
}
.floating-card small,
.floating-card b {
  display: block;
}
.floating-card small {
  font-size: 8px;
  letter-spacing: 0.1em;
  color: #747a74;
}
.floating-card b {
  font-size: 12px;
  margin-top: 4px;
}
.note-card {
  right: -14px;
  top: 45%;
  padding: 16px;
  width: 138px;
}
.note-card b {
  font: 20px var(--serif);
  color: var(--clay);
}
.note-card span {
  font-size: 9px;
  line-height: 1.5;
  display: block;
  margin-top: 7px;
}
.marquee {
  overflow: hidden;
  background: var(--olive);
  color: #e8e6d8;
  padding: 16px 0;
  white-space: nowrap;
  font-size: 10px;
  letter-spacing: 0.24em;
}
.marquee div {
  width: max-content;
  animation: marquee 25s linear infinite;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
.section {
  padding-top: 115px;
  padding-bottom: 115px;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 55px;
}
.kicker {
  color: var(--clay);
  margin: 0 0 18px;
}
.section-head h2,
.trade h2,
.contact h2 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.15;
}
.section-head > p {
  color: #667067;
  max-width: 410px;
  line-height: 1.8;
  font-size: 14px;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 205px;
  gap: 15px;
}
.category-card {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition:
    transform 0.3s,
    background 0.3s;
}
.category-card:hover {
  transform: translateY(-5px);
  background: #fff;
}
.category-card:nth-child(1),
.category-card:nth-child(6) {
  grid-column: span 5;
}
.category-card:nth-child(2),
.category-card:nth-child(5) {
  grid-column: span 4;
}
.category-card:nth-child(3),
.category-card:nth-child(4) {
  grid-column: span 3;
}
.category-card:nth-child(n + 7) {
  grid-column: span 4;
}
.category-card:nth-child(6) {
  background: var(--clay);
  color: #fff;
}
.cat-icon {
  font-size: 29px;
  font-family: var(--serif);
}
.category-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}
.category-card p {
  font-size: 10px;
  color: #70776f;
  margin: 6px 0 0;
}
.category-card:nth-child(6) p {
  color: #f0d5cb;
}
.category-card .arrow {
  position: absolute;
  right: 20px;
  top: 20px;
}
.shop {
  background: #ddd8ca;
}
.shop-head {
  grid-template-columns: 1fr 1.1fr;
}
.filter-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.filter {
  border: 1px solid rgba(29, 42, 35, 0.28);
  background: transparent;
  padding: 10px 15px;
  border-radius: 20px;
  font-size: 10px;
  cursor: pointer;
}
.filter.active {
  background: var(--olive);
  color: white;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.product {
  background: var(--paper);
  position: relative;
  cursor: pointer;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 35px rgba(32, 42, 35, 0.12);
}
.product-visual {
  height: 240px;
  display: grid;
  place-items: center;
  background: #f5f4f0;
  overflow: hidden;
  position: relative;
}
.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.product:hover .product-visual img {
  transform: scale(1.04);
}
.product-visual .quick-view {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(29, 42, 35, 0.9);
  color: #fff;
  padding: 7px 10px;
  font: 9px var(--sans);
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(5px);
  transition: 0.25s;
}
.product:hover .quick-view {
  opacity: 1;
  transform: none;
}
.tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--paper);
  padding: 6px 9px;
  font-size: 8px;
  letter-spacing: 0.12em;
  z-index: 1;
}
.product-info {
  padding: 17px;
}
.product-info small {
  font-size: 9px;
  color: #777;
}
.product-info h3 {
  margin: 5px 0 15px;
  font-size: 14px;
  font-weight: 500;
  min-height: 42px;
}
.mini-options {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: -5px 0 13px;
}
.mini-options i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c);
  border: 1px solid #c8c6bf;
}
.mini-options span {
  font-size: 9px;
  color: #777;
  margin-left: 3px;
}
.catalog-count {
  font-size: 11px;
  color: #777;
  margin-top: 14px;
}
.catalog-count b {
  color: var(--olive);
  font-size: 18px;
}
.catalog-tools {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: flex-end;
}
.search-box {
  display: flex;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0 14px;
  min-width: 260px;
  height: 44px;
}
.search-box input {
  border: 0;
  background: transparent;
  outline: 0;
  width: 100%;
  padding: 0 10px;
  font: 12px var(--sans);
}
.catalog-tools select {
  height: 44px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0 12px;
  font: 11px var(--sans);
}
.shop > .shell > .filter-wrap {
  justify-content: flex-start;
  margin: 0 0 25px;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 35px;
  flex-wrap: wrap;
}
.pagination button {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(29, 42, 35, 0.3);
  background: transparent;
  cursor: pointer;
}
.pagination button.active {
  background: var(--olive);
  color: white;
}
.no-results {
  grid-column: 1/-1;
  text-align: center;
  padding: 80px 20px;
  background: rgba(255, 255, 255, 0.35);
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.price-row strong {
  font-size: 15px;
}
.add {
  border: 0;
  width: 35px;
  height: 35px;
  background: var(--olive);
  color: #fff;
  border-radius: 50%;
  font-size: 19px;
  cursor: pointer;
  transition: 0.2s;
}
.add:hover {
  transform: scale(1.08);
  background: var(--clay);
}
.trade {
  background: var(--olive);
  color: #fff;
  padding: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
}
.light {
  color: #c9d1c8;
}
.trade-copy > p:not(.kicker) {
  color: #cad1cc;
  line-height: 1.8;
  font-size: 14px;
  margin: 25px 0 32px;
}
.trade-features article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.trade-features article > span {
  font: italic 25px var(--serif);
  color: #d5b19f;
}
.trade-features h3 {
  font-size: 15px;
  margin: 2px 0 7px;
}
.trade-features p {
  color: #bfc8c1;
  font-size: 11px;
  line-height: 1.6;
  margin: 0;
}
.contact {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
}
.contact-copy > p:not(.kicker) {
  color: #687169;
  font-size: 13px;
  line-height: 1.8;
}
.contact-links {
  margin-top: 35px;
}
.contact-links a {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact-links span {
  font-size: 8px;
  letter-spacing: 0.16em;
}
.contact-links b {
  font-size: 11px;
}
.map-card {
  min-height: 480px;
  background: #d3d6ca;
  position: relative;
  overflow: hidden;
}
.map-lines i {
  position: absolute;
  background: rgba(49, 75, 60, 0.14);
  transform: rotate(-20deg);
}
.map-lines i:nth-child(1) {
  width: 700px;
  height: 34px;
  left: -100px;
  top: 100px;
}
.map-lines i:nth-child(2) {
  width: 40px;
  height: 650px;
  left: 48%;
  top: -80px;
}
.map-lines i:nth-child(3) {
  width: 700px;
  height: 16px;
  left: -70px;
  top: 310px;
  transform: rotate(12deg);
}
.map-lines i:nth-child(4) {
  width: 280px;
  height: 9px;
  right: -60px;
  top: 220px;
  transform: rotate(60deg);
}
.pin {
  position: absolute;
  left: 56%;
  top: 40%;
  filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.16));
}
.brand-mark.small {
  width: 48px;
  height: 54px;
}
.address-card {
  position: absolute;
  left: 22px;
  bottom: 22px;
  background: var(--paper);
  padding: 20px 24px;
  min-width: 320px;
}
.address-card small,
.address-card b,
.address-card a {
  display: block;
}
.address-card small {
  font-size: 8px;
  letter-spacing: 0.15em;
  color: #777;
}
.address-card b {
  font-size: 12px;
  line-height: 1.7;
  margin: 10px 0;
}
.address-card a {
  font-size: 10px;
  color: var(--clay);
}
footer {
  background: #17231d;
  color: #e4e1d7;
  padding: 60px 0 20px;
}
.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
}
.footer-main p {
  font-size: 11px;
  color: #aab2ac;
  line-height: 1.7;
}
.footer-main > div:last-child {
  text-align: right;
}
.footer-main > div:last-child small,
.footer-main > div:last-child b {
  display: block;
  font-size: 9px;
  margin: 6px;
}
.footer-bottom {
  margin-top: 45px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: 0.1em;
  color: #89948d;
}
.mobile-cart-bar {
  display: none;
}
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 24, 19, 0.48);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}
.sheet-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.cart-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 41;
  width: min(660px, 100%);
  max-height: 88vh;
  background: var(--paper);
  transform: translate(-50%, 105%);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  padding: 20px 34px 32px;
  overflow: auto;
  box-shadow: 0 -20px 60px rgba(20, 30, 24, 0.22);
}
.cart-sheet.open {
  transform: translate(-50%, 0);
}
.sheet-handle {
  width: 45px;
  height: 4px;
  border-radius: 4px;
  background: #d1cec5;
  margin: 0 auto 18px;
}
.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
}
.cart-head h2 {
  font-size: 35px;
}
.cart-head button {
  border: 0;
  background: transparent;
  font-size: 30px;
  cursor: pointer;
}
.cart-item {
  display: grid;
  grid-template-columns: 55px 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.cart-thumb {
  width: 55px;
  height: 55px;
  background: #dfe2d7;
  display: grid;
  place-items: center;
  font: italic 24px var(--serif);
}
.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 19, 0.55);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}
.product-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.product-modal {
  position: fixed;
  z-index: 81;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -46%) scale(0.98);
  width: min(900px, calc(100% - 32px));
  max-height: 90vh;
  overflow: auto;
  background: var(--paper);
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.3);
}
.product-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.modal-close {
  position: absolute;
  right: 15px;
  top: 15px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  font-size: 24px;
  cursor: pointer;
}
.modal-image {
  background: #f3f2ee;
  min-height: 510px;
}
.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-copy {
  padding: 55px 44px;
}
.product-code {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: #777;
}
.modal-copy h2 {
  font: 42px/1.08 var(--serif);
  margin: 10px 0 13px;
}
.modal-desc {
  font-size: 12px;
  line-height: 1.7;
  color: #676b67;
}
.modal-price {
  display: block;
  font-size: 24px;
  margin: 20px 0 26px;
  color: var(--olive);
}
.option-group {
  margin: 18px 0;
}
.option-group label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 9px;
}
.option-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.option-buttons button {
  border: 1px solid var(--line);
  background: transparent;
  padding: 9px 13px;
  font: 10px var(--sans);
  cursor: pointer;
}
.option-buttons button.active {
  background: var(--olive);
  color: #fff;
  border-color: var(--olive);
}
.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}
.modal-qty {
  display: flex;
  border: 1px solid var(--line);
  align-items: center;
}
.modal-qty button {
  border: 0;
  background: transparent;
  width: 38px;
  height: 46px;
  font-size: 18px;
  cursor: pointer;
}
.modal-qty span {
  min-width: 28px;
  text-align: center;
}
.modal-actions > .button {
  border: 0;
  flex: 1;
  justify-content: space-between;
  cursor: pointer;
}
.market-note {
  display: block;
  color: #7b7d79;
  font-size: 9px;
  line-height: 1.5;
  margin-top: 15px;
}
.cart-item h4 {
  font-size: 12px;
  margin: 0;
}
.cart-item small {
  font-size: 9px;
  color: #777;
}
.qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
}
.qty button {
  width: 27px;
  height: 28px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.qty span {
  font-size: 10px;
}
.remove {
  border: 0;
  background: transparent;
  color: var(--clay);
  cursor: pointer;
}
.empty-cart {
  text-align: center;
  padding: 58px 0;
}
.empty-cart > span {
  font: 52px var(--serif);
  color: var(--sage);
}
.empty-cart h3 {
  margin: 10px 0;
}
.empty-cart p {
  font-size: 11px;
  color: #777;
}
.cart-summary {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.cart-summary > div {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin: 8px 0;
}
.cart-summary .total-row {
  font-size: 18px;
  margin: 17px 0;
}
.checkout {
  width: 100%;
}
.copy-order {
  width: 100%;
  border: 0;
  background: transparent;
  text-decoration: underline;
  font-size: 10px;
  padding: 12px;
  cursor: pointer;
}
.cart-note {
  text-align: center;
  font-size: 8px;
  color: #888;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 30px);
  background: #17231d;
  color: white;
  padding: 12px 18px;
  font-size: 11px;
  z-index: 60;
  opacity: 0;
  transition: 0.3s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (max-width: 900px) {
  .shell {
    width: min(100% - 30px, 700px);
  }
  .nav-links {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 120px;
  }
  .hero-visual {
    height: 520px;
  }
  .arch-image {
    height: 490px;
  }
  .hero-proof {
    margin-bottom: 20px;
  }
  .section-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
  .category-card:nth-child(n) {
    grid-column: span 1;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .catalog-tools {
    justify-content: flex-start;
  }
  .product-modal {
    grid-template-columns: 1fr 1fr;
  }
  .modal-image {
    min-height: 440px;
  }
  .modal-copy {
    padding: 45px 28px;
  }
  .trade {
    width: 100%;
    grid-template-columns: 1fr;
    padding: 60px 30px;
    gap: 45px;
  }
  .contact {
    grid-template-columns: 1fr;
  }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .footer-main > div:last-child {
    text-align: left;
  }
  .mobile-cart-bar.visible {
    display: flex;
    position: fixed;
    z-index: 19;
    bottom: 12px;
    left: 12px;
    right: 12px;
    height: 52px;
    border: 0;
    background: var(--clay);
    color: #fff;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    box-shadow: 0 12px 32px rgba(30, 40, 34, 0.25);
    font-size: 11px;
  }
}
@media (max-width: 540px) {
  .nav {
    height: 58px;
  }
  .hero {
    padding-top: 100px;
  }
  .hero h1 {
    font-size: 49px;
  }
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }
  .hero-proof div {
    padding: 0 15px;
  }
  .hero-visual {
    height: 430px;
  }
  .arch-image {
    height: 405px;
  }
  .material-card {
    left: -6px;
  }
  .note-card {
    right: -5px;
  }
  .section {
    padding-top: 80px;
    padding-bottom: 80px;
  }
  .category-grid {
    grid-auto-rows: 160px;
    gap: 9px;
  }
  .category-card {
    padding: 17px;
  }
  .product-grid {
    gap: 9px;
  }
  .product-visual {
    height: 170px;
  }
  .product-visual .quick-view {
    display: none;
  }
  .product-info h3 {
    font-size: 12px;
    min-height: 55px;
  }
  .mini-options span {
    display: none;
  }
  .catalog-tools {
    display: grid;
    grid-template-columns: 1fr;
  }
  .search-box {
    min-width: 0;
  }
  .catalog-tools select {
    width: 100%;
  }
  .product-modal {
    grid-template-columns: 1fr;
    max-height: 94vh;
  }
  .modal-image {
    min-height: 0;
    height: 300px;
  }
  .modal-copy {
    padding: 28px 20px 32px;
  }
  .modal-copy h2 {
    font-size: 31px;
  }
  .modal-actions {
    position: sticky;
    bottom: 0;
    background: var(--paper);
    padding-top: 8px;
  }
  .modal-close {
    position: fixed;
  }
  .product-info {
    padding: 13px;
  }
  .filter-wrap {
    justify-content: flex-start;
    overflow: auto;
    flex-wrap: nowrap;
  }
  .filter {
    white-space: nowrap;
  }
  .trade {
    padding: 55px 22px;
  }
  .contact {
    gap: 40px;
  }
  .map-card {
    min-height: 410px;
  }
  .address-card {
    left: 12px;
    right: 12px;
    min-width: 0;
  }
  .cart-sheet {
    padding: 14px 18px 25px;
  }
  .cart-item {
    grid-template-columns: 48px 1fr auto;
  }
  .cart-item .remove {
    grid-column: 3;
  }
  .note-card {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

/* Official identity and icon-only language selector. English mode hides every Thai wordmark. */
.official-brand {
  height: 58px;
  max-width: 310px;
}
.official-brand .thai-logo {
  display: block;
  width: 225px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
}
.english-logo {
  display: none;
  align-items: center;
  gap: 9px;
}
.english-logo img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}
.english-logo > span {
  display: block;
}
html[lang="en"] .official-brand .thai-logo {
  display: none;
}
html[lang="en"] .english-logo {
  display: flex;
}
.footer-brand .thai-logo,
.footer-brand .english-logo img {
  filter: brightness(0) invert(1);
  opacity: 0.88;
}
.language-icons {
  height: 43px;
  display: flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.38);
}
.flag-button {
  width: 36px;
  height: 35px;
  border: 0;
  background: transparent;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  filter: grayscale(1);
  opacity: 0.45;
  cursor: pointer;
  transition: 0.2s;
}
.flag-button:hover,
.flag-button.active {
  filter: none;
  opacity: 1;
  background: #fff;
  box-shadow: 0 2px 9px rgba(30, 40, 35, 0.12);
}
.image-alt {
  display: none;
}
@media (max-width: 540px) {
  .official-brand {
    max-width: 190px;
  }
  .official-brand .thai-logo {
    width: 175px;
  }
  .english-logo img {
    width: 44px;
    height: 44px;
  }
  .english-logo b {
    font-size: 13px;
  }
  .english-logo small {
    font-size: 6px;
  }
  .language-icons {
    height: 39px;
  }
  .flag-button {
    width: 31px;
    height: 31px;
    font-size: 17px;
  }
  .cart-btn {
    width: 39px;
    height: 39px;
  }
}
