:root {
  color-scheme: dark;
  font-family: "Noto Sans Thai", system-ui, sans-serif;
  color: #fff4df;
  background: #0a1812;
  --cream: #fff4df;
  --gold: #ebcc91;
  --soft-gold: #c9ba9c;
  --line: #dbc18b39;
  --card: #14271d;
  --serif: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse 71% 530px at 50% 0, #264535, transparent 95%);
}
a { color: inherit; }
a:focus-visible, input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
.wrap { max-width: 60rem; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.site-header {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { border: 1px solid #aa915c; border-radius: 50%; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.05rem; line-height: 1.25; }
.brand small { font: .7rem Georgia, serif; letter-spacing: .16em; color: var(--gold); }
.header-link { color: var(--gold); font-size: .9rem; padding: .65rem 0 .65rem .65rem; text-underline-offset: .32rem; }
.hero {
  position: relative;
  padding: clamp(2rem, 5vw, 3.6rem) 3.5rem 1.3rem 0;
}
.hero::after {
  content: "✧"; position: absolute; right: .15rem; top: 1rem;
  font: clamp(4.4rem, 12vw, 7rem)/1 Georgia, serif; color: #d2ad666b;
  pointer-events: none;
}
.hero h1 { font-size: clamp(2rem, 7vw, 3.65rem); line-height: 1.15; letter-spacing: -.045em; margin: 0; }
.hero p { margin: .55rem 0 0; color: var(--soft-gold); }
.search {
  display: flex; align-items: center; gap: .75rem; padding: 0 .95rem;
  background: #0c2018; border: 1px solid #d7b57a68; border-radius: .75rem; min-height: 3.25rem;
}
.search:focus-within { border-color: var(--gold); }
.lens { width: .9rem; height: .9rem; margin-right: .1rem; border-radius: 50%; border: 1.8px solid var(--gold); position: relative; flex: none; }
.lens::after { content: ""; width: .42rem; height: 2px; background: var(--gold); position: absolute; left: .64rem; top: .66rem; transform: rotate(45deg); }
.search input { width: 100%; min-width: 0; padding: .75rem .1rem; font: inherit; color: var(--cream); border: 0; background: transparent; outline: none; }
.search input::placeholder { color: var(--soft-gold); opacity: 1; }
.section-heading {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; margin: 1.55rem 0 .65rem;
}
.section-heading h2 { margin: 0; font-size: 1.05rem; }
.section-heading span { color: var(--soft-gold); font-size: .875rem; white-space: nowrap; }
.card-grid, .products { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  display: block; overflow: hidden; text-decoration: none; border: 1px solid var(--line);
  background: var(--card); border-radius: .75rem;
}
.card:hover, .product:hover { border-color: var(--gold); }
.card-art {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.18;
  --inset: clamp(.55rem, 2vw, .85rem);
  background: radial-gradient(ellipse at 50% 35%, #233126, #101913 84%);
  border-bottom: 1px solid var(--line);
}
.card-art img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: calc(100% - 2 * var(--inset));
  max-width: calc(100% - 2 * var(--inset));
  object-fit: contain;
  border-radius: 5% / 3.4%;
}
.card-copy { display: block; padding: .55rem .7rem .75rem; }
.card-number { display: block; color: var(--gold); font-size: .875rem; font-weight: 600; }
.card strong { display: block; overflow-wrap: anywhere; font: clamp(1.28rem, 4.7vw, 1.7rem)/1.04 var(--serif); }
.empty { grid-column: 1/-1; padding: 1rem 0; color: var(--soft-gold); }
.back { display: inline-block; margin: .95rem 0; padding: .35rem 0; color: var(--gold); text-underline-offset: .25rem; }
.card-heading { display: flex; align-items: center; gap: clamp(.8rem, 3vw, 1.4rem); }
.card-heading img {
  width: clamp(4.5rem, 19vw, 6.5rem); height: auto; aspect-ratio: 2 / 3; object-fit: contain;
  border: 1px solid var(--line); border-radius: 5% / 3.4%; flex: none;
}
.card-heading p { margin: .3rem 0; color: var(--soft-gold); }
.card-heading .card-number { color: var(--gold); }
.card-heading h1 { margin: 0; font: clamp(2.05rem, 8vw, 3.8rem)/.98 var(--serif); overflow-wrap: anywhere; }
.disclosure { margin: -.25rem 0 .8rem; color: var(--soft-gold); font-size: .8rem; }
.product-note { margin: .65rem 0 0; }
.product { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: .8rem; text-decoration: none; background: var(--card); }
.product:last-child { grid-column: 1/-1; display: grid; grid-template-columns: 38% minmax(0, 1fr); }
.product-art { display: grid; place-items: center; overflow: hidden; aspect-ratio: 1.4; background: radial-gradient(ellipse at 50% 30%, #665941, #2d271c 82%); }
.product:nth-child(2) .product-art { background: radial-gradient(ellipse at 50% 30%, #4b5e47, #27372b 82%); }
.product:last-child .product-art { height: 100%; min-height: 7rem; aspect-ratio: auto; background: #4c382a; }
.product-icon { display: block; font: clamp(2.2rem,9vw,3.8rem)/1 Georgia, serif; color: #f0d398; }
.beads { position: relative; display: block; width: 4.6rem; height: 4.6rem; transform: rotate(-16deg) scaleY(.78); filter: drop-shadow(1px 6px 4px #0007); }
.beads i { position: absolute; top: 2rem; left: 2rem; width: .75rem; height: .75rem; border-radius: 50%; background: radial-gradient(circle at 32% 24%, #fbdf9a, #bc8250 43%, #654323 78%); transform: rotate(calc(var(--bead) * 24deg)) translateX(1.8rem); }
.product:last-child .beads i { background: radial-gradient(circle at 33% 24%, #ffd772, #9c5b26 43%, #3f2419 78%); }
.product:nth-child(2) .beads i { background: radial-gradient(circle at 32% 24%, #e8dbad, #89936b 43%, #454b36 78%); }
.product-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: .38rem; padding: .75rem; }
.store { border-radius: .25rem; padding: .07rem .35rem; background: #ffb178; color: #391701; font-size: .75rem; font-weight: 700; }
.store.lazada { background: #d2cafc; color: #24155f; }
.product h3 { margin: 0; overflow-wrap: anywhere; font-size: clamp(.875rem, 3.7vw, 1.1rem); line-height: 1.45; }
.shop-cta { margin-top: auto; padding-top: .3rem; font-size: .875rem; color: var(--gold); }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; border-top: 1px solid var(--line); color: var(--soft-gold); font-size: .875rem; margin-top: 2rem; padding: 1rem 0 1.6rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .75rem; }
.site-footer a { text-underline-offset: .25rem; }
#detail { max-width: 42rem; margin: 0 auto; }

@media (min-width: 44rem) {
  .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
  .products { gap: 1rem; }
  .product-copy { padding: 1rem; }
  .product:last-child { grid-template-columns: 32% minmax(0, 1fr); }
  .product:last-child .product-art { max-height: 13rem; }
}
