:root {
  --ink: #201c18;
  --muted: #6f655b;
  --line: #ddd4ca;
  --paper: #fffdf9;
  --wash: #f6f0e8;
  --accent: #1f6f5b;
  --accent-dark: #174f42;
  --danger: #a33a2a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, "Tahoma", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.96);
}

.brand {
  font-size: 20px;
  font-weight: 700;
}

.site-header nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

.store-heading {
  margin-bottom: 28px;
}

.store-heading p {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.store-heading h1,
.product-info h1 {
  margin: 4px 0 0;
  line-height: 1.2;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
}

.product-grid--related {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.product-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.product-card__image {
  display: block;
  aspect-ratio: 4 / 5;
  background: var(--wash);
  overflow: hidden;
}

.product-card__image img,
.gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__body {
  padding: 14px;
}

.product-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.product-card h2,
.product-card h3 {
  margin: 8px 0;
  font-size: 17px;
  line-height: 1.35;
}

.price,
.detail-price {
  color: var(--accent-dark);
  font-weight: 700;
}

.stock {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: clamp(26px, 5vw, 56px);
  align-items: start;
}

.gallery__main {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--wash);
}

.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.thumb {
  aspect-ratio: 1;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--wash);
  cursor: pointer;
  overflow: hidden;
}

.thumb.is-active {
  border-color: var(--accent);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.product-info__meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--muted);
  font-size: 13px;
}

.detail-price {
  margin: 16px 0;
  font-size: 30px;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 22px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.button--primary {
  color: #fff;
  background: var(--accent);
}

.button--secondary {
  color: var(--accent-dark);
  background: #fff;
}

.notice {
  border-left: 4px solid var(--danger);
  margin: 0 0 18px;
  padding: 8px 12px;
  color: var(--danger);
  background: #fff2ef;
}

.spec-list,
.measurements {
  display: grid;
  gap: 10px;
  margin: 0;
}

.spec-list div,
.measurements div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
}

.content-band {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

.content-band h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px;
  text-align: center;
  background: #fff;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-detail {
    grid-template-columns: 1fr;
  }

  .product-actions {
    grid-template-columns: 1fr;
  }

  .spec-list div,
  .measurements div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* Premium boutique layer */
:root {
  --ink: #14161a;
  --muted: #667079;
  --line: rgba(20, 22, 26, 0.12);
  --paper: #fffaf4;
  --wash: #f3eee7;
  --accent: #0d7665;
  --accent-dark: #0a4f47;
  --coral: #c84f3b;
  --plum: #5a3d6b;
  --gold: #bd8b2f;
  --shadow: 0 20px 55px rgba(20, 22, 26, 0.14);
}

body {
  background:
    radial-gradient(circle at 12% 4%, rgba(200, 79, 59, 0.12), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(13, 118, 101, 0.13), transparent 26%),
    linear-gradient(180deg, #fffaf4 0%, #f6f1ea 46%, #ffffff 100%) !important;
  color: var(--ink) !important;
  font-family: "Noto Sans Thai", "Tahoma", Arial, sans-serif !important;
}

.site-header,
.top,
.topbar {
  border-bottom: 1px solid rgba(20, 22, 26, 0.1) !important;
  background: rgba(255, 250, 244, 0.88) !important;
  box-shadow: 0 14px 38px rgba(20, 22, 26, 0.06) !important;
  backdrop-filter: blur(18px);
}

.brand,
.brand__mark {
  letter-spacing: 0 !important;
}

.brand__mark {
  background: linear-gradient(135deg, var(--ink), var(--plum)) !important;
  box-shadow: 0 12px 28px rgba(90, 61, 107, 0.28);
}

.nav a,
.site-header nav a,
.chip,
.clear-link {
  transition: background 160ms ease, color 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.nav a:hover,
.site-header nav a:hover,
.chip:hover,
.chip.is-active {
  background: rgba(13, 118, 101, 0.1) !important;
  color: var(--ink) !important;
  transform: translateY(-1px);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(12, 15, 19, 0.86), rgba(12, 15, 19, 0.48) 48%, rgba(12, 15, 19, 0.12)),
    var(--hero-image) center / cover no-repeat !important;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(255, 250, 244, 0.88));
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 780px;
  text-shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
}

.page,
.page-shell,
.wrap {
  width: min(1180px, calc(100% - 32px));
}

.quick-links,
.filter-panel,
.toolbar,
.featured-strip,
.trust,
.content-band,
.empty-state {
  border: 1px solid rgba(20, 22, 26, 0.1) !important;
  background: rgba(255, 255, 255, 0.78) !important;
  box-shadow: 0 16px 42px rgba(20, 22, 26, 0.07);
  backdrop-filter: blur(12px);
}

.product-card,
.category-card,
.card,
.feature,
.auction-mini {
  border: 1px solid rgba(20, 22, 26, 0.1) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 12px 30px rgba(20, 22, 26, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-card:hover,
.category-card:hover,
.card:hover,
.feature:hover,
.auction-mini:hover {
  border-color: rgba(13, 118, 101, 0.28) !important;
  box-shadow: 0 24px 54px rgba(20, 22, 26, 0.15);
  transform: translateY(-4px);
}

.product-card__image,
.gallery__main,
.auction-mini img {
  background:
    linear-gradient(135deg, rgba(13, 118, 101, 0.09), rgba(189, 139, 47, 0.11)),
    var(--wash) !important;
}

.product-card__image img,
.gallery__main img {
  transition: transform 220ms ease;
}

.product-card:hover .product-card__image img,
.gallery__main:hover img {
  transform: scale(1.035);
}

.button,
.mini-button,
button {
  border-radius: 8px !important;
  box-shadow: 0 10px 24px rgba(13, 118, 101, 0.14);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.mini-button:hover,
button:hover {
  box-shadow: 0 16px 30px rgba(13, 118, 101, 0.2);
  transform: translateY(-1px);
}

.button--primary,
.mini-button--dark {
  background: linear-gradient(135deg, var(--ink), var(--accent-dark)) !important;
  color: #fffaf4 !important;
}

.button--secondary,
.button--ghost {
  border-color: rgba(13, 118, 101, 0.42) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  color: var(--accent-dark) !important;
}

input,
select,
textarea {
  border-color: rgba(20, 22, 26, 0.16) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(13, 118, 101, 0.62) !important;
  box-shadow: 0 0 0 4px rgba(13, 118, 101, 0.12);
  outline: none;
}

#mainProductImage {
  transition: opacity 160ms ease, transform 220ms ease;
}

.thumb[aria-current="true"] {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 4px rgba(13, 118, 101, 0.12);
}

.price,
.detail-price,
.feature__price {
  color: var(--accent-dark) !important;
}

.status,
.count,
.badge {
  border: 1px solid rgba(13, 118, 101, 0.18);
  background: rgba(13, 118, 101, 0.09) !important;
  color: var(--accent-dark) !important;
}

.status--muted {
  background: rgba(102, 112, 121, 0.12) !important;
  color: var(--muted) !important;
}

@media (max-width: 760px) {
  .hero {
    min-height: 520px;
  }

  .hero__inner {
    padding-top: 92px !important;
  }

  .quick-links,
  .featured-strip,
  .trust {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
}
