/* ==========================================================================
   Dime Thai — Editorial olive oil storefront
   Palette: olive, soft gold, cream, paper white
   ========================================================================== */

/* Font faces live in fonts.css, linked before this file. */

:root {
  --cream: #f5f1e7;
  --paper: #faf9f6;
  --sand: #e7e1d7;
  --sand-deep: #d8cfc0;
  --olive: #40543f;
  --olive-mid: #6f8067;
  --olive-soft: #a5b09b;
  --olive-deep: #344838;
  --olive-ink: #242822;
  --gold: #aa875a;
  --gold-deep: #82643c;
  --gold-light: #d8c09c;
  --ink: #242822;
  --muted: #62645b;
  --line: rgba(45, 46, 37, 0.14);
  --line-light: rgba(248, 244, 235, 0.16);
  --white: #ffffff;

  --font-serif: "Playfair Display", "Times New Roman", serif;
  --font-sans: "LINE Seed Sans", "LINE Seed Sans Thai", "Inter", "Noto Sans Thai", system-ui, -apple-system, sans-serif;
  --font-thai: "LINE Seed Sans Thai", "LINE Seed Sans", "Noto Sans Thai", "Inter", sans-serif;
  --font-serif-thai: "Noto Serif Thai", "LINE Seed Sans Thai", "LINE Seed Sans", "Noto Sans Thai", serif;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 122px;
  --ease: cubic-bezier(0.22, 0.68, 0.26, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.menu-open,
body.cart-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  display: block;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--olive-deep);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

::selection {
  background: var(--olive);
  color: var(--cream);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

#main:focus {
  outline: none;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 12px 20px;
  background: var(--gold);
  color: var(--olive-ink);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - (var(--gutter) * 2)), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: clamp(76px, 9.5vw, 132px);
}

/* --------------------------------------------------------------------------
   Typographic details
   -------------------------------------------------------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(18px, 2vw, 26px);
  color: var(--olive-mid);
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.23em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 30px;
  height: 1px;
  background: var(--gold);
}

h2 {
  font-size: clamp(2.15rem, 4vw, 3.55rem);
  line-height: 1.08;
}

h2 em {
  color: var(--gold-deep);
  font-style: italic;
}

.section-lede {
  max-width: 410px;
  padding-bottom: 4px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: clamp(38px, 5vw, 62px);
}

.section-head-copy {
  max-width: 660px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(45, 46, 37, 0.3);
  color: var(--olive-deep);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.text-link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.35s var(--ease);
}

.text-link:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
}

.text-link:hover svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 27px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.35s var(--ease);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn-gold {
  background: var(--gold);
  color: var(--olive-ink);
}

.btn-gold:hover {
  background: var(--gold-light);
}

.btn-outline-light {
  border-color: rgba(248, 244, 235, 0.38);
  background: transparent;
  color: var(--cream);
}

.btn-outline-light:hover {
  border-color: var(--cream);
  background: rgba(248, 244, 235, 0.1);
}

.link-light {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(248, 244, 235, 0.35);
  color: var(--cream);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.link-light svg {
  width: 15px;
  height: 15px;
  transition: transform 0.35s var(--ease);
}

.link-light:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

.link-light:hover svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  color: var(--cream);
  transition: color 0.4s var(--ease);
}

.topbar {
  height: 34px;
  overflow: hidden;
  background: var(--olive-deep);
  color: rgba(248, 244, 235, 0.78);
  transition: height 0.45s var(--ease), opacity 0.3s var(--ease);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 34px;
}

.topbar-note {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.topbar-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.topbar-thai {
  font-family: var(--font-thai);
  font-size: 0.66rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

.nav {
  height: 88px;
  border-bottom: 1px solid transparent;
  transition: height 0.45s var(--ease), background-color 0.45s var(--ease),
    box-shadow 0.45s var(--ease), border-color 0.45s var(--ease),
    color 0.4s var(--ease);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  height: 100%;
}

.site-header.is-scrolled .topbar {
  height: 0;
  opacity: 0;
}

.site-header.is-scrolled .nav {
  height: 70px;
  border-bottom-color: var(--line);
  background: rgba(248, 244, 235, 0.94);
  box-shadow: 0 16px 40px -32px rgba(35, 42, 27, 0.55);
  color: var(--olive-deep);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: inherit;
  text-decoration: none;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.brand-logo {
  display: block;
  width: auto;
  height: 31px;
}

.brand-logo--dark {
  display: none;
}

.site-header.is-scrolled .brand-logo--light {
  display: none;
}

.site-header.is-scrolled .brand-logo--dark {
  display: block;
}

body.menu-open .site-header .brand-logo--light {
  display: block;
}

body.menu-open .site-header .brand-logo--dark {
  display: none;
}

.brand-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.33rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
}

.brand-tag {
  display: block;
  margin-top: 5px;
  font-size: 0.47rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0.72;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 42px);
}

.nav-links a {
  position: relative;
  padding: 8px 0;
  color: inherit;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.35s var(--ease);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 24px;
  min-height: 28px;
  padding: 4px 2px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s var(--ease), color 0.3s var(--ease);
}

.lang-flag {
  display: block;
  width: 18px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(35, 42, 27, 0.14);
}

.lang-code {
  line-height: 1;
}

.lang-switch--menu {
  color: var(--cream);
}

.lang-switch--menu .lang-flag {
  box-shadow: 0 0 0 1px rgba(248, 244, 235, 0.22);
}

.lang-btn:hover {
  opacity: 0.85;
}

.lang-btn.is-active {
  opacity: 1;
  font-weight: 600;
}

.lang-sep {
  opacity: 0.3;
}

.cart-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 6px;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  transition: opacity 0.3s var(--ease);
}

.cart-btn:hover {
  opacity: 0.7;
}

.cart-btn svg {
  width: 22px;
  height: 22px;
}

.cart-count {
  position: absolute;
  top: 0;
  right: -2px;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--gold);
  color: var(--olive-ink);
  font-family: var(--font-sans);
  font-size: 0.56rem;
  font-weight: 600;
  line-height: 1;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), opacity 0.3s var(--ease);
}

.cart-count.is-empty {
  border-color: rgba(248, 244, 235, 0.45);
  background: transparent;
  color: var(--cream);
  opacity: 0.72;
}

.site-header.is-scrolled .cart-count.is-empty {
  border-color: rgba(35, 42, 27, 0.35);
  background: transparent;
  color: var(--olive-deep);
}

.cart-count.is-bump {
  animation: badge-pop 0.55s var(--ease);
}

@keyframes badge-pop {
  0% { transform: scale(1); }
  35% { transform: scale(1.45); }
  70% { transform: scale(0.92); }
  100% { transform: scale(1); }
}

.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 1.4px;
  background: currentColor;
  transition: transform 0.4s var(--ease), top 0.4s var(--ease), width 0.4s var(--ease);
}

.menu-toggle span:nth-child(1) {
  top: 18px;
}

.menu-toggle span:nth-child(2) {
  top: 25px;
  width: 17px;
}

body.menu-open .menu-toggle span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

body.menu-open .menu-toggle span:nth-child(2) {
  top: 21px;
  width: 24px;
  transform: rotate(-45deg);
}

body.menu-open .site-header,
body.menu-open .site-header.is-scrolled {
  color: var(--cream);
}

body.menu-open .site-header .topbar {
  background: transparent;
}

body.menu-open .site-header .nav {
  border-bottom-color: transparent;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

body.menu-open .site-header .cart-count.is-empty {
  border-color: rgba(248, 244, 235, 0.45);
  color: var(--cream);
}

/* --------------------------------------------------------------------------
   Mobile menu
   -------------------------------------------------------------------------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(128px, 18vh, 180px) var(--gutter) 34px;
  overflow-y: auto;
  background: var(--olive-deep);
  color: var(--cream);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}

.mobile-menu::after {
  content: "";
  position: absolute;
  right: -160px;
  bottom: -190px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(198, 161, 92, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-glow {
  position: absolute;
  top: -160px;
  right: -120px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 161, 92, 0.13), transparent 68%);
  pointer-events: none;
}

.mobile-nav {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-top: 2vh;
}

.mobile-nav a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(248, 244, 235, 0.13);
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: clamp(2rem, 8.5vw, 2.9rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-decoration: none;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease),
    color 0.3s var(--ease);
}

.mobile-menu.is-open .mobile-nav a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.is-open .mobile-nav a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.is-open .mobile-nav a:nth-child(2) { transition-delay: 0.16s; }
.mobile-menu.is-open .mobile-nav a:nth-child(3) { transition-delay: 0.22s; }
.mobile-menu.is-open .mobile-nav a:nth-child(4) { transition-delay: 0.28s; }

.mobile-nav a:hover {
  color: var(--gold-light);
}

.mobile-nav-num {
  flex: 0 0 auto;
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.2em;
}

.mobile-menu-foot {
  position: relative;
  padding-top: 34px;
}

.mobile-menu-cta {
  width: 100%;
}

.mobile-menu-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 26px;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
}

.mobile-menu-meta p {
  font-family: var(--font-thai);
  font-size: 0.68rem;
  color: rgba(248, 244, 235, 0.55);
}

.mobile-menu-meta > a {
  color: rgba(248, 244, 235, 0.6);
  font-size: 0.7rem;
  text-decoration: none;
}

.mobile-menu-meta > a:hover {
  color: var(--cream);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  overflow: hidden;
  background: var(--olive-deep);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: -8% 0;
  z-index: -2;
  will-change: transform;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 42%;
  animation: hero-zoom 26s var(--ease) infinite alternate;
}

@keyframes hero-zoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(20, 25, 14, 0.91) 0%, rgba(20, 25, 14, 0.72) 35%, rgba(20, 25, 14, 0.28) 68%, rgba(20, 25, 14, 0.1) 100%),
    linear-gradient(180deg, rgba(20, 25, 14, 0.55) 0%, rgba(20, 25, 14, 0) 31%, rgba(20, 25, 14, 0.52) 100%);
}

.hero-inner {
  display: flex;
  flex: 1;
  align-items: center;
  padding-top: calc(var(--header-h) + 46px);
  padding-bottom: 120px;
}

.hero-content {
  max-width: 760px;
}

.hero-eyebrow {
  color: var(--gold-light);
}

.hero-eyebrow::before {
  background: var(--gold);
}

.hero h1 {
  margin-bottom: clamp(22px, 3vw, 30px);
  color: var(--cream);
  font-size: clamp(3.3rem, 7.5vw, 6.9rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.97;
}

.hero h1 em {
  color: var(--gold-light);
  font-style: italic;
}

.hero-copy {
  max-width: 515px;
  margin-bottom: 34px;
  color: rgba(248, 244, 235, 0.78);
  font-size: clamp(0.98rem, 1.2vw, 1.06rem);
  font-weight: 300;
  line-height: 1.78;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 24px;
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(248, 244, 235, 0.58);
  font-size: 0.59rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.hero-trust li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.hero-bottom {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 34px;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: rgba(248, 244, 235, 0.56);
  font-size: 0.57rem;
  letter-spacing: 0.2em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s var(--ease);
}

.scroll-cue:hover {
  color: var(--cream);
}

.scroll-line {
  position: relative;
  display: block;
  width: 1px;
  height: 52px;
  overflow: hidden;
  background: rgba(248, 244, 235, 0.22);
}

.scroll-line::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 1px;
  height: 50%;
  background: var(--gold);
  animation: scroll-line 2.6s var(--ease) infinite;
}

@keyframes scroll-line {
  0% { transform: translateY(0); }
  55%, 100% { transform: translateY(300%); }
}

.hero-seal {
  width: 124px;
  height: 124px;
  color: rgba(248, 244, 235, 0.86);
}

.hero-seal svg {
  width: 100%;
  height: 100%;
}

.hero-seal .seal-text {
  transform-origin: 60px 60px;
  animation: seal-spin 42s linear infinite;
}

@keyframes seal-spin {
  to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */

.marquee {
  overflow: hidden;
  padding: 15px 0;
  border-top: 1px solid rgba(248, 244, 235, 0.1);
  background: var(--olive);
  color: var(--cream);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-right: 30px;
  white-space: nowrap;
}

.marquee-item {
  font-size: 0.61rem;
  font-weight: 400;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

.marquee-star {
  color: var(--gold);
  font-size: 0.62rem;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   Benefits
   -------------------------------------------------------------------------- */

.benefits {
  background: var(--cream);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.benefit {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 30px 30px;
  border: 1px solid var(--line);
  background: rgba(252, 250, 244, 0.4);
  transition: transform 0.5s var(--ease), background-color 0.5s var(--ease),
    border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.benefit::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 30px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.5s var(--ease);
}

.benefit:hover {
  border-color: rgba(142, 106, 41, 0.38);
  background: var(--paper);
  box-shadow: 0 30px 60px -48px rgba(35, 42, 27, 0.65);
  transform: translateY(-6px);
}

.benefit:hover::after {
  width: calc(100% - 60px);
}

.benefit-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: clamp(44px, 5vw, 58px);
}

.benefit-num {
  padding-top: 4px;
  color: var(--gold-deep);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.benefit-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(68, 81, 47, 0.25);
  border-radius: 50%;
  color: var(--olive);
  transition: transform 0.5s var(--ease), background-color 0.5s var(--ease),
    border-color 0.5s var(--ease), color 0.5s var(--ease);
}

.benefit-icon svg {
  width: 27px;
  height: 27px;
}

.benefit:hover .benefit-icon {
  border-color: var(--olive);
  background: var(--olive);
  color: var(--cream);
  transform: rotate(-5deg) scale(1.04);
}

.benefit h3 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 1.8vw, 1.55rem);
  line-height: 1.2;
}

.benefit p {
  max-width: 36ch;
  color: var(--muted);
  font-size: 0.89rem;
  line-height: 1.72;
}

.benefit-rule {
  display: block;
  width: 28px;
  height: 1px;
  margin-top: 26px;
  background: var(--gold);
  transition: width 0.5s var(--ease);
}

.benefit:hover .benefit-rule {
  width: 58px;
}

/* --------------------------------------------------------------------------
   Collection
   -------------------------------------------------------------------------- */

.collection {
  position: relative;
  background: var(--sand);
}

.collection::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(45, 46, 37, 0.08);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(35, 42, 27, 0.09);
  background: var(--paper);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.product-card:hover {
  box-shadow: 0 34px 64px -46px rgba(35, 42, 27, 0.7);
  transform: translateY(-6px);
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--sand-deep);
}

.product-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 25, 14, 0.06), transparent 30%, rgba(20, 25, 14, 0.12));
  pointer-events: none;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.15s var(--ease);
}

.product-card:hover .product-media img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(248, 244, 235, 0.92);
  color: var(--olive-deep);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 23px 23px 24px;
}

.product-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.product-info h3 {
  font-size: clamp(1.25rem, 1.7vw, 1.44rem);
  line-height: 1.2;
}

.product-sub {
  margin-top: 8px;
  color: var(--gold-deep);
  font-size: 0.59rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.product-price {
  flex: 0 0 auto;
  color: var(--olive-deep);
  font-family: var(--font-serif);
  font-size: 1.28rem;
  line-height: 1.2;
}

.product-desc {
  flex: 1;
  margin: 16px 0 22px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.68;
}

.btn-add {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 46px;
  padding: 0 17px;
  border: 1px solid rgba(68, 81, 47, 0.34);
  background: transparent;
  color: var(--olive-deep);
  font-family: var(--font-sans);
  font-size: 0.61rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease),
    color 0.35s var(--ease);
}

.btn-add svg {
  width: 17px;
  height: 17px;
  transition: transform 0.35s var(--ease);
}

.btn-add:hover {
  border-color: var(--olive);
  background: var(--olive);
  color: var(--cream);
}

.btn-add:hover svg {
  transform: translateY(-2px);
}

.btn-add.is-added {
  border-color: var(--olive);
  background: var(--olive);
  color: var(--cream);
}

.btn-add.is-added svg {
  color: var(--gold-light);
}

.collection-note {
  margin-top: 34px;
  color: var(--muted);
  font-size: 0.63rem;
  letter-spacing: 0.13em;
  text-align: center;
  text-transform: uppercase;
}

.product-offline-note {
  margin: 0 0 24px;
  color: var(--gold-deep);
  letter-spacing: 0.05em;
  text-transform: none;
}

/* --------------------------------------------------------------------------
   Story
   -------------------------------------------------------------------------- */

.story {
  position: relative;
  padding-block: clamp(82px, 10vw, 140px);
  overflow: hidden;
  background: var(--olive-deep);
  color: var(--cream);
}

.story::before {
  content: "";
  position: absolute;
  top: -230px;
  right: -130px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 161, 92, 0.14), transparent 66%);
  pointer-events: none;
}

.story::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -230px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(198, 161, 92, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.story-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: clamp(50px, 7.5vw, 110px);
  z-index: 1;
}

.story-visual {
  position: relative;
  padding: 0 26px 42px 0;
}

.story-visual::after {
  content: "";
  position: absolute;
  top: 26px;
  right: 0;
  bottom: 16px;
  left: 26px;
  border: 1px solid rgba(198, 161, 92, 0.4);
  pointer-events: none;
}

.story-frame {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: rgba(248, 244, 235, 0.08);
}

.story-frame::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(248, 244, 235, 0.18);
  pointer-events: none;
}

.story-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}

.story-visual:hover .story-frame img {
  transform: scale(1.035);
}

.story-stamp {
  position: absolute;
  top: 26px;
  left: -18px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 15px;
  background: var(--cream);
  color: var(--olive-deep);
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.8);
  transform: rotate(-3deg);
}

.story-stamp span:first-child {
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.story-stamp span:last-child {
  font-size: 0.48rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.4;
}

.story-inset {
  position: absolute;
  right: 2px;
  bottom: 0;
  z-index: 2;
  width: 41%;
  aspect-ratio: 1 / 1;
  border: 8px solid var(--olive-deep);
  object-fit: cover;
}

.story-copy .eyebrow {
  color: var(--gold-light);
}

.story-copy .eyebrow::before {
  background: var(--gold);
}

.story-copy h2 {
  margin-bottom: 24px;
  color: var(--cream);
  font-size: clamp(2.1rem, 3.5vw, 3.3rem);
}

.story-copy h2 em {
  color: var(--gold-light);
}

.story-copy > p {
  max-width: 53ch;
  margin-bottom: 17px;
  color: rgba(248, 244, 235, 0.72);
  font-size: 0.94rem;
  font-weight: 300;
  line-height: 1.8;
}

.story-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 34px 0 36px;
  padding-top: 26px;
  border-top: 1px solid rgba(248, 244, 235, 0.16);
}

.story-stats dt {
  margin-bottom: 7px;
  color: rgba(248, 244, 235, 0.5);
  font-size: 0.53rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.story-stats dd {
  margin: 0;
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 2.3vw, 1.95rem);
  line-height: 1;
}

.story-stats dd span {
  margin-left: 3px;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  opacity: 0.8;
}

.story-signature {
  margin-top: 26px;
  color: rgba(248, 244, 235, 0.55);
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Journal
   -------------------------------------------------------------------------- */

.journal {
  background: var(--paper);
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.post-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.post-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sand);
}

.post-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(20, 25, 14, 0.24));
  opacity: 0.7;
  transition: opacity 0.5s var(--ease);
}

.post-card:hover .post-media::after {
  opacity: 0.2;
}

.post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.post-card:hover .post-media img {
  transform: scale(1.045);
}

.post-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 7px 10px;
  background: rgba(35, 42, 27, 0.82);
  color: var(--cream);
  font-size: 0.53rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.post-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-top: 22px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.post-card h3 {
  margin-bottom: 8px;
  font-size: clamp(1.38rem, 2vw, 1.6rem);
  line-height: 1.25;
  transition: color 0.3s var(--ease);
}

.post-card:hover h3 {
  color: var(--gold-deep);
}

.post-thai {
  margin-bottom: 12px;
  color: var(--gold-deep);
  font-family: var(--font-thai);
  font-size: 0.77rem;
  font-weight: 300;
  line-height: 1.6;
}

.post-excerpt {
  flex: 1;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.7;
}

.post-more {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--olive-deep);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.post-more svg {
  width: 15px;
  height: 15px;
  transition: transform 0.35s var(--ease);
}

.post-card:hover .post-more svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Newsletter
   -------------------------------------------------------------------------- */

.newsletter {
  position: relative;
  padding-block: clamp(88px, 10.5vw, 140px);
  overflow: hidden;
  background: var(--olive-ink);
  color: var(--cream);
  text-align: center;
}

.newsletter-bg {
  position: absolute;
  inset: 0;
}

.newsletter-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
}

.newsletter::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(26, 32, 20, 0.4) 0%, rgba(26, 32, 20, 0.92) 74%),
    linear-gradient(180deg, rgba(26, 32, 20, 0.5), rgba(26, 32, 20, 0.3));
}

.newsletter-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-inline: auto;
}

.newsletter .eyebrow {
  justify-content: center;
  color: var(--gold-light);
}

.newsletter h2 {
  margin-bottom: 18px;
  color: var(--cream);
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
}

.newsletter h2 em {
  color: var(--gold-light);
}

.newsletter-copy {
  max-width: 480px;
  margin-inline: auto;
  color: rgba(248, 244, 235, 0.72);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.75;
}

.newsletter-thai {
  margin-top: 6px;
  color: rgba(248, 244, 235, 0.45);
  font-family: var(--font-thai);
  font-size: 0.72rem;
  font-weight: 300;
}

.newsletter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.newsletter-actions .btn {
  min-height: 48px;
  padding: 0 26px;
}

.newsletter-form {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 520px;
  margin: 30px auto 0;
  padding: 6px 6px 6px 22px;
  border: 1px solid rgba(248, 244, 235, 0.28);
  border-radius: 999px;
  background: rgba(248, 244, 235, 0.06);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.newsletter-form:focus-within {
  border-color: rgba(198, 161, 92, 0.75);
  background: rgba(248, 244, 235, 0.09);
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 12px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 300;
}

.newsletter-form input::placeholder {
  color: rgba(248, 244, 235, 0.5);
}

.newsletter-form .btn {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  font-size: 0.6rem;
}

.newsletter-form input[aria-invalid="true"] {
  color: #f6c4b2;
}

.newsletter-form.is-invalid {
  animation: form-shake 0.45s var(--ease);
}

@keyframes form-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-7px); }
  55% { transform: translateX(6px); }
  80% { transform: translateX(-3px); }
}

.form-status {
  min-height: 1.4em;
  margin-top: 12px;
  color: var(--gold-light);
  font-size: 0.73rem;
  letter-spacing: 0.02em;
}

.form-status[data-state="error"] {
  color: #f0b6a2;
}

.newsletter-fine {
  margin-top: 8px;
  color: rgba(248, 244, 235, 0.38);
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.03em;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  position: relative;
  padding-top: 74px;
  overflow: hidden;
  background: var(--olive-ink);
  color: rgba(248, 244, 235, 0.62);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.55fr 0.72fr 0.72fr 1.05fr;
  gap: clamp(34px, 5vw, 62px);
  padding-bottom: 58px;
}

.brand--footer {
  color: var(--cream);
}

.brand--footer .brand-logo {
  height: 38px;
}

.brand--footer .brand-name {
  font-size: 1.5rem;
}

.brand--footer .brand-tag {
  color: rgba(248, 244, 235, 0.6);
}

.footer-brand > p {
  max-width: 31ch;
  margin: 22px 0 24px;
  font-size: 0.83rem;
  font-weight: 300;
  line-height: 1.72;
}

.socials {
  display: flex;
  gap: 9px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(248, 244, 235, 0.18);
  color: var(--cream);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
    color 0.3s var(--ease), transform 0.3s var(--ease);
}

.socials a:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--olive-ink);
  transform: translateY(-2px);
}

.socials svg {
  width: 17px;
  height: 17px;
}

.footer-col h4 {
  margin-bottom: 20px;
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1.4;
  text-transform: uppercase;
}

.footer-col ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer a {
  color: inherit;
  font-size: 0.83rem;
  font-weight: 300;
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

.footer a:hover {
  color: var(--cream);
}

.footer-contact address {
  font-size: 0.83rem;
  font-style: normal;
  font-weight: 300;
  line-height: 1.9;
}

.footer-thai {
  margin-top: 12px;
  color: rgba(248, 244, 235, 0.4);
  font-family: var(--font-thai);
  font-size: 0.7rem;
  font-weight: 300;
}

.footer-company {
  padding: 18px 0 0;
  border-top: 1px solid rgba(248, 244, 235, 0.1);
}

.footer-company p {
  color: rgba(248, 244, 235, 0.42);
  font-size: 0.6rem;
  line-height: 1.65;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-block: 22px 26px;
  border-top: 1px solid rgba(248, 244, 235, 0.12);
  font-size: 0.63rem;
  font-weight: 300;
  letter-spacing: 0.04em;
}

.footer-legal {
  display: flex;
  gap: 22px;
}

.footer-legal a {
  font-size: 0.63rem;
}

.footer-lang {
  letter-spacing: 0.16em;
}

.footer-watermark {
  margin: 0;
  color: rgba(248, 244, 235, 0.035);
  font-family: var(--font-serif);
  font-size: clamp(4rem, 11.5vw, 9.5rem);
  letter-spacing: 0.06em;
  line-height: 0.76;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* --------------------------------------------------------------------------
   Toast, fly-to-cart, reveal
   -------------------------------------------------------------------------- */

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  z-index: 200;
  max-width: min(92vw, 480px);
  padding: 14px 22px;
  border: 1px solid rgba(198, 161, 92, 0.45);
  border-radius: 999px;
  background: rgba(26, 32, 20, 0.97);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.55);
  color: var(--cream);
  font-size: 0.74rem;
  font-weight: 300;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.fly-dot {
  position: fixed;
  z-index: 150;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(198, 161, 92, 0.18);
  pointer-events: none;
}

html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Google sign-in (prototype)
   -------------------------------------------------------------------------- */

.google-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 15px 0 12px;
  border: 1px solid rgba(35, 42, 27, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 22px -16px rgba(0, 0, 0, 0.65);
  color: #3c4043;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.google-btn:hover {
  border-color: rgba(35, 42, 27, 0.22);
  background: #fff;
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.6);
  transform: translateY(-1px);
}

.google-btn:disabled {
  cursor: progress;
  opacity: 0.85;
  transform: none;
}

.google-g {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
}

.google-g svg {
  width: 100%;
  height: 100%;
}

.google-btn-text--short {
  display: none;
}

.google-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--olive);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0;
}

.google-avatar--photo {
  display: block;
  object-fit: cover;
  background: var(--cream);
}

.google-btn.is-signed-in {
  padding: 0 14px 0 6px;
  background: rgba(248, 244, 235, 0.96);
  color: var(--olive-deep);
}

.google-btn.is-signed-in:hover {
  border-color: rgba(198, 161, 92, 0.7);
}

.google-user-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  line-height: 1.15;
  text-align: left;
}

.google-user-name,
.google-user-email {
  max-width: 145px;
  overflow: hidden;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.google-user-name {
  font-size: 0.59rem;
  font-weight: 600;
}

.google-user-email {
  color: rgba(35, 42, 27, 0.55);
  font-size: 0.48rem;
  font-weight: 400;
}

.google-spinner {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(60, 64, 67, 0.2);
  border-top-color: #4285f4;
  border-radius: 50%;
  animation: google-spin 0.8s linear infinite;
}

@keyframes google-spin {
  to { transform: rotate(360deg); }
}

.google-btn--menu {
  display: flex;
  width: 100%;
  height: 48px;
  margin-top: 12px;
  justify-content: center;
  font-size: 0.64rem;
}

/* Account trigger + modal */
.account-trigger {
  gap: 8px;
  padding-left: 7px;
}

.account-trigger__icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--olive);
  color: var(--cream);
}

.account-trigger__icon svg {
  width: 17px;
  height: 17px;
}

.account-trigger__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  line-height: 1.15;
  text-align: left;
}

.account-trigger__name,
.account-trigger__email {
  max-width: 148px;
  overflow: hidden;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-trigger__name {
  font-size: 0.59rem;
  font-weight: 600;
}

.account-trigger__email {
  color: rgba(35, 42, 27, 0.55);
  font-size: 0.48rem;
  font-weight: 400;
}

.nav-actions .account-trigger__email {
  display: none;
}

.account-trigger.is-signed-in {
  padding: 0 14px 0 6px;
  background: rgba(248, 244, 235, 0.96);
  color: var(--olive-deep);
}

.account-trigger.is-signed-in .account-trigger__icon {
  width: 30px;
  height: 30px;
  background: var(--olive-deep);
}

.account-trigger.is-signed-in .account-trigger__icon img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.google-btn--menu.account-trigger {
  justify-content: flex-start;
  padding-left: 16px;
  text-align: left;
}

.account-modal {
  position: fixed;
  inset: 0;
  z-index: 330;
  display: grid;
  place-items: center;
  padding: clamp(14px, 4vw, 38px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}

.account-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.account-modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(20, 25, 14, 0.72);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.account-modal__panel {
  position: relative;
  width: min(486px, 100%);
  max-height: min(92vh, 790px);
  overflow: auto;
  padding: clamp(27px, 4vw, 44px);
  background: var(--paper);
  box-shadow: 0 60px 130px -50px rgba(0, 0, 0, 0.72);
  transform: translateY(24px) scale(0.985);
  transition: transform 0.5s var(--ease);
  overscroll-behavior: contain;
}

.account-modal.is-open .account-modal__panel {
  transform: none;
}

.account-modal__close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(45, 46, 37, 0.15);
  border-radius: 50%;
  background: rgba(252, 250, 244, 0.94);
  color: var(--olive-deep);
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.account-modal__close:hover {
  border-color: var(--gold);
  background: var(--cream);
  color: var(--gold-deep);
  transform: rotate(90deg);
}

.account-modal__close svg {
  width: 16px;
  height: 16px;
}

.account-modal__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 26px;
  color: var(--olive-deep);
  font-family: var(--font-serif);
  font-size: 1.02rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.account-modal__brand svg {
  width: 20px;
  height: 28px;
  color: var(--olive);
}

.account-modal__eyebrow {
  margin-bottom: 12px;
}

.account-modal h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4.3vw, 2.65rem);
  line-height: 1.12;
}

.account-modal__lede {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.account-switch {
  display: flex;
  gap: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.account-switch__tab {
  position: relative;
  padding: 0 0 11px;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.account-switch__tab::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: transparent;
  transition: background-color 0.3s var(--ease);
}

.account-switch__tab.is-active {
  color: var(--olive-deep);
}

.account-switch__tab.is-active::after {
  background: var(--gold);
}

.google-btn--account {
  width: 100%;
  height: 48px;
  justify-content: center;
  font-size: 0.64rem;
}

.account-google-note {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
  text-align: center;
}

.account-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 21px 0 19px;
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-divider::before,
.account-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.account-fields {
  display: grid;
  gap: 13px;
}

.account-modal [hidden] {
  display: none !important;
}

.account-status {
  min-height: 1.25em;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.account-status[data-state="error"] {
  color: #9d3c2f;
}

.account-status[data-state="success"] {
  color: var(--olive);
}

.account-submit {
  width: 100%;
  margin-top: 14px;
}

.account-forgot {
  display: block;
  margin: 16px auto 0;
  padding: 4px;
  border: 0;
  background: none;
  color: var(--gold-deep);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.account-fine {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.6;
  text-align: center;
}

.account-fine a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.account-verify__hint {
  margin: -8px 0 4px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

#accountVerifyEmail {
  color: var(--olive-deep);
  word-break: break-word;
}

.account-back {
  display: block;
  margin: 14px auto 0;
  padding: 4px;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.account-back:hover {
  color: var(--olive-deep);
}

.account-orders {
  margin: 20px 0 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.account-orders__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.account-orders__head h3 {
  font-size: 1.05rem;
}

.account-orders__refresh {
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold-deep);
  font: inherit;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-transform: uppercase;
  cursor: pointer;
}

.account-orders__status {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.66rem;
}

.account-orders__list {
  display: grid;
  gap: 9px;
}

.account-order {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(252, 250, 244, 0.7);
}

.account-order__top,
.account-order__meta,
.account-order__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.account-order__top {
  color: var(--muted);
  font-size: 0.6rem;
}

.account-order__top strong {
  color: var(--olive-deep);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

.account-order__meta {
  margin-top: 7px;
  color: var(--olive-deep);
}

.account-order__status {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(198, 161, 92, 0.12);
  color: var(--gold-deep);
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-order__items {
  margin: 7px 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.5;
}

.account-order__tracking {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 0.64rem;
}

.account-order__tracking strong {
  color: var(--olive-deep);
  letter-spacing: 0.04em;
}

.account-order__foot {
  color: var(--muted);
  font-size: 0.6rem;
}

.account-order__foot .text-link {
  font-size: 0.56rem;
}

.account-orders__empty {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
}

.account-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0 20px;
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(252, 250, 244, 0.7);
}

.account-profile__avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--olive);
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 1.3rem;
}

.account-profile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-profile__copy {
  min-width: 0;
}

.account-profile__name,
.account-profile__email,
.account-profile__provider {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-profile__name {
  margin: 0 0 3px;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.2;
}

.account-profile__email {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.account-profile__provider {
  margin: 5px 0 0;
  color: var(--gold-deep);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-profile__help {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.account-profile__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.account-delete {
  display: block;
  margin: 18px auto 0;
  padding: 4px;
  border: 0;
  background: none;
  color: #9d3c2f;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.account-delete:hover {
  color: #742b21;
}

.account-delete-confirm {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.account-delete-confirm h3 {
  margin: 0 0 8px;
  color: #742b21;
  font-family: var(--font-serif);
  font-size: 1.25rem;
}

.account-delete-confirm p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.6;
}

.account-delete-confirm__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.btn-danger {
  background: #9d3c2f;
  color: #fff;
}

.btn-danger:hover {
  background: #742b21;
}

.account-delete-confirm__actions .btn {
  min-height: 44px;
  padding-inline: 18px;
  font-size: 0.58rem;
}

.account-delete-confirm__actions .account-back {
  margin: 0;
}

.account-profile__actions .btn {
  min-height: 46px;
  padding-inline: 22px;
}

.account-continue {
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 0.62rem;
}

html[lang="th"] .account-switch__tab,
html[lang="th"] .account-divider,
html[lang="th"] .account-profile__provider {
  letter-spacing: 0;
  text-transform: none;
}

html[lang="th"] .account-modal h2,
html[lang="th"] .account-profile__name {
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */

.testimonials {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.testimonials::before {
  content: "";
  position: absolute;
  top: -260px;
  right: -180px;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(198, 161, 92, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.testimonials .container {
  position: relative;
  z-index: 1;
}

.testimonials-head {
  align-items: flex-end;
}

.testimonials-rating {
  padding-bottom: 6px;
  text-align: right;
}

.stars {
  display: flex;
  gap: 3px;
  color: var(--gold);
}

.stars svg {
  width: 14px;
  height: 14px;
}

.testimonials-rating .stars {
  justify-content: flex-end;
  margin-bottom: 9px;
}

.testimonials-rating p {
  color: var(--muted);
  font-size: 0.6rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: start;
}

.testimonial {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  margin: 0;
  padding: 30px 28px 26px;
  border: 1px solid rgba(45, 46, 37, 0.12);
  background: var(--cream);
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.testimonial:nth-child(2) {
  margin-top: 26px;
}

.testimonial:hover {
  border-color: rgba(198, 161, 92, 0.55);
  box-shadow: 0 32px 64px -44px rgba(35, 42, 27, 0.55);
  transform: translateY(-5px);
}

.testimonial-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.testimonial-mark {
  color: rgba(198, 161, 92, 0.5);
}

.testimonial-mark svg {
  width: 28px;
  height: 28px;
}

.testimonial blockquote {
  flex: 1;
  margin: 0 0 26px;
  color: var(--olive-deep);
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-style: italic;
  line-height: 1.66;
}

.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.testimonial-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--olive);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 0.57rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.testimonial-person {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-name {
  color: var(--olive-deep);
  font-size: 0.78rem;
  font-weight: 600;
}

.testimonial-meta {
  color: var(--muted);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Footer newsletter
   -------------------------------------------------------------------------- */

.footer-signup {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: end;
  margin-bottom: clamp(38px, 4.5vw, 52px);
  padding-bottom: clamp(30px, 3.5vw, 44px);
  border-bottom: 1px solid rgba(248, 244, 235, 0.12);
}

.footer-signup .eyebrow {
  margin-bottom: 14px;
  color: var(--gold-light);
}

.footer-signup h2 {
  max-width: 23ch;
  color: var(--cream);
  font-size: clamp(1.5rem, 2.7vw, 2.15rem);
  line-height: 1.26;
}

.footer-signup h2 em {
  color: var(--gold-light);
}

.footer-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.footer-form-whatsapp {
  color: rgba(248, 244, 235, 0.72);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-form-whatsapp:hover {
  color: var(--gold-light);
}

.footer-form-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 5px 5px 18px;
  border: 1px solid rgba(248, 244, 235, 0.26);
  border-radius: 999px;
  background: rgba(248, 244, 235, 0.05);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.footer-form-row:focus-within {
  border-color: rgba(198, 161, 92, 0.72);
  background: rgba(248, 244, 235, 0.08);
}

.footer-form input {
  flex: 1;
  min-width: 0;
  padding: 10px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 300;
}

.footer-form input::placeholder {
  color: rgba(248, 244, 235, 0.45);
}

.footer-form input[aria-invalid="true"] {
  color: #f6c4b2;
}

.footer-form .btn {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 20px;
  font-size: 0.56rem;
}

.footer-form.is-invalid .footer-form-row {
  animation: form-shake 0.45s var(--ease);
}

.footer-form-status {
  min-height: 1.3em;
  margin-top: 10px;
  padding-left: 18px;
  color: var(--gold-light);
  font-size: 0.7rem;
  line-height: 1.55;
}

.footer-form-status[data-state="error"] {
  color: #f0b6a2;
}

.footer-form-status strong {
  color: var(--cream);
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* --------------------------------------------------------------------------
   WhatsApp floating contact
   -------------------------------------------------------------------------- */

.whatsapp-fab {
  position: fixed;
  right: clamp(16px, 2.4vw, 30px);
  bottom: clamp(16px, 2.4vw, 30px);
  z-index: 80;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 18px 38px -14px rgba(15, 120, 82, 0.7),
    0 0 0 6px rgba(37, 211, 102, 0.1);
  color: #fff;
  text-decoration: none;
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.whatsapp-fab::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(37, 211, 102, 0.6);
  border-radius: 50%;
  animation: whatsapp-pulse 3s ease-out infinite;
  pointer-events: none;
}

.whatsapp-fab:hover {
  background: #1ebe5b;
  box-shadow: 0 22px 42px -14px rgba(15, 120, 82, 0.78),
    0 0 0 7px rgba(37, 211, 102, 0.14);
  transform: translateY(-3px);
}

.whatsapp-icon {
  display: grid;
  place-items: center;
}

.whatsapp-icon svg {
  width: 30px;
  height: 30px;
}

.whatsapp-tooltip {
  position: absolute;
  top: 50%;
  right: calc(100% + 14px);
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(26, 32, 20, 0.97);
  color: var(--cream);
  font-size: 0.63rem;
  line-height: 1.3;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translate(8px, -50%);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
    visibility 0.3s var(--ease);
  pointer-events: none;
}

.whatsapp-fab:hover .whatsapp-tooltip,
.whatsapp-fab:focus-visible .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%);
}

@keyframes whatsapp-pulse {
  0% { transform: scale(1); opacity: 0.55; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* --------------------------------------------------------------------------
   Cart drawer
   -------------------------------------------------------------------------- */

/* Honeypot field: hidden from people, tempting for bots. */
.bot-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}

.cart-drawer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cart-drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(20, 25, 14, 0.68);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.cart-drawer__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  height: 100%;
  overflow: hidden;
  background: var(--paper);
  box-shadow: -40px 0 110px -45px rgba(0, 0, 0, 0.65);
  outline: none;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
}

.cart-drawer.is-open .cart-drawer__panel {
  transform: none;
}

.cart-drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 30px 16px;
  border-bottom: 1px solid var(--line);
}

.cart-drawer__kicker {
  margin: 0 0 7px;
  color: var(--gold-deep);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1;
  text-transform: uppercase;
}

.cart-drawer__title {
  font-size: 1.9rem;
  line-height: 1.05;
}

.cart-drawer__close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  margin-top: 2px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--olive-deep);
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.cart-drawer__close:hover {
  border-color: var(--olive-deep);
  background: var(--olive-deep);
  color: var(--cream);
  transform: rotate(90deg);
}

.cart-drawer__close svg {
  width: 17px;
  height: 17px;
}

.cart-drawer__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 30px 16px;
  -webkit-overflow-scrolling: touch;
}

.cart-items[hidden],
.cart-empty[hidden] {
  display: none;
}

.cart-empty {
  display: grid;
  justify-items: center;
  padding: 52px 0 30px;
  text-align: center;
}

.cart-empty__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--olive-mid);
}

.cart-empty__icon svg {
  width: 23px;
  height: 23px;
}

.cart-empty h3 {
  font-size: 1.32rem;
  line-height: 1.2;
}

.cart-empty p {
  max-width: 30ch;
  margin: 9px auto 22px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.65;
}

.cart-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item:last-child {
  border-bottom: 0;
}

.cart-item__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.cart-item__name {
  font-size: 1.16rem;
  line-height: 1.15;
}

.cart-item__unit {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.cart-item__line-total {
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.4;
}

.cart-item__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.qty-control button {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.25s var(--ease);
}

.qty-control button:hover {
  color: var(--gold-deep);
}

.qty-value {
  min-width: 27px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
}

.cart-item__remove {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.25s var(--ease);
}

.cart-item__remove:hover {
  color: var(--gold-deep);
}

.cart-shipping {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.cart-shipping[hidden] {
  display: none;
}

.cart-shipping__head {
  margin-bottom: 14px;
}

.cart-shipping__title {
  font-size: 1.18rem;
  line-height: 1.2;
}

.cart-shipping__subtitle {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.5;
}

.shipping-options {
  display: grid;
  gap: 8px;
}

.shipping-option {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(248, 244, 235, 0.55);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.shipping-option:hover {
  border-color: rgba(198, 161, 92, 0.65);
}

.shipping-option.is-selected {
  border-color: var(--gold);
  background: rgba(198, 161, 92, 0.1);
  box-shadow: inset 0 0 0 1px rgba(198, 161, 92, 0.18);
}

.shipping-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.shipping-option__indicator {
  position: relative;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(45, 46, 37, 0.3);
  border-radius: 50%;
  background: var(--paper);
  transition: border-color 0.25s var(--ease);
}

.shipping-option__indicator::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--gold-deep);
  transform: scale(0);
  transition: transform 0.2s var(--ease);
}

.shipping-option.is-selected .shipping-option__indicator,
.shipping-option input:checked ~ .shipping-option__indicator {
  border-color: var(--gold-deep);
}

.shipping-option.is-selected .shipping-option__indicator::after,
.shipping-option input:checked ~ .shipping-option__indicator::after {
  transform: scale(1);
}

.shipping-option input:focus-visible ~ .shipping-option__indicator {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

.shipping-option__copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.shipping-option__name {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.shipping-option__meta {
  color: var(--muted);
  font-size: 0.6rem;
  line-height: 1.35;
}

.shipping-option__price {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  white-space: nowrap;
}

.checkout-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.checkout-form[hidden] {
  display: none;
}

.checkout-form__head {
  margin-bottom: 15px;
}

.checkout-form__kicker {
  color: var(--gold-deep);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.checkout-form__title {
  margin-top: 6px;
  font-size: 1.38rem;
  line-height: 1.15;
}

.checkout-form__subtitle {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.6;
}

.checkout-step + .checkout-step {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.checkout-step__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.checkout-step__number {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(198, 161, 92, 0.5);
  border-radius: 50%;
  color: var(--gold-deep);
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
}

.checkout-step__title {
  font-size: 1.04rem;
  line-height: 1.2;
}

.checkout-step__subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.45;
}

.checkout-fields {
  display: grid;
  gap: 9px;
  margin-top: 10px;
}

.checkout-fields__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.checkout-fields__row--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .checkout-fields__row--three {
    grid-template-columns: 1fr;
  }
}

.field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.field__label {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.field__required {
  color: var(--gold-deep);
  font-size: 0.7rem;
  line-height: 1;
}

.field__input {
  width: 100%;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(252, 250, 244, 0.78);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.45;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.field__input::placeholder {
  color: rgba(99, 100, 90, 0.55);
  opacity: 1;
}

select.field__input {
  appearance: none;
  padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.field__input:hover {
  border-color: rgba(198, 161, 92, 0.55);
}

.field__input:focus {
  outline: none;
  border-color: var(--gold-deep);
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(198, 161, 92, 0.14);
}

.field__input--textarea {
  min-height: 70px;
  resize: vertical;
  line-height: 1.55;
}

#checkoutAddress {
  min-height: 130px;
  padding: 15px 16px;
  font-size: 1rem;
}

.payment-options {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 14px 0 0;
  padding: 0;
  border: 0;
}

.payment-option {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(248, 244, 235, 0.55);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.payment-option:hover {
  border-color: rgba(198, 161, 92, 0.65);
}

.payment-option.is-selected {
  border-color: var(--gold);
  background: rgba(198, 161, 92, 0.1);
  box-shadow: inset 0 0 0 1px rgba(198, 161, 92, 0.18);
}

.payment-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.payment-option__indicator {
  position: relative;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(45, 46, 37, 0.3);
  border-radius: 50%;
  background: var(--paper);
  transition: border-color 0.25s var(--ease);
}

.payment-option__indicator::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--gold-deep);
  transform: scale(0);
  transition: transform 0.2s var(--ease);
}

.payment-option.is-selected .payment-option__indicator,
.payment-option input:checked ~ .payment-option__indicator {
  border-color: var(--gold-deep);
}

.payment-option.is-selected .payment-option__indicator::after,
.payment-option input:checked ~ .payment-option__indicator::after {
  transform: scale(1);
}

.payment-option input:focus-visible ~ .payment-option__indicator {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

.payment-option__copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.payment-option__name {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.payment-option__meta {
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.35;
}

.payment-option__badge {
  padding: 5px 8px;
  border: 1px solid rgba(198, 161, 92, 0.45);
  border-radius: 999px;
  background: rgba(198, 161, 92, 0.12);
  color: var(--gold-deep);
  font-size: 0.47rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.cart-drawer__foot {
  padding: 20px 30px calc(26px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.cart-drawer.is-wide .cart-drawer__panel {
  display: block;
  overflow-y: auto;
}

.cart-drawer.is-wide .cart-drawer__head {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--paper);
}

.cart-drawer.is-wide .cart-drawer__body {
  flex: none;
  overflow: visible;
}

.cart-drawer.is-wide .cart-drawer__foot {
  position: static;
}

@media (min-width: 900px) {
  .cart-drawer.is-wide .cart-drawer__panel {
    width: 100%;
  }

  .cart-drawer.is-wide .cart-drawer__head {
    padding-inline: max(30px, calc((100vw - 1080px) / 2));
  }

  .cart-drawer.is-wide .cart-drawer__body,
  .cart-drawer.is-wide .cart-drawer__foot {
    width: min(100%, 1080px);
    margin-inline: auto;
  }

  .cart-drawer.is-wide .cart-drawer__body {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    align-items: start;
    gap: 38px;
  }

  .cart-drawer.is-wide .cart-drawer__summary {
    position: sticky;
    top: 96px;
  }

  .cart-drawer.is-wide .checkout-form {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .cart-drawer.is-wide .cart-drawer__title {
    font-size: 2.3rem;
  }
}

.cart-summary {
  display: grid;
  gap: 7px;
}

.cart-summary__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.cart-summary__label {
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cart-summary__value {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.cart-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.cart-total__label {
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cart-total__value {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
}

.cart-note {
  margin: 9px 0 17px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.55;
}

.cart-seller-line {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.58rem;
  line-height: 1.5;
}

.cart-refund-note {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.61rem;
  line-height: 1.5;
}

.cart-refund-note a {
  color: var(--gold-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cart-checkout-hint {
  margin: -7px 0 15px;
  color: var(--gold-deep);
  font-size: 0.64rem;
  line-height: 1.5;
}

.cart-checkout-hint[hidden] {
  display: none;
}

.cart-checkout {
  width: 100%;
}

.cart-checkout:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.cart-checkout:disabled:hover {
  background: var(--gold);
}

.cart-checkout svg {
  width: 17px;
  height: 17px;
}

/* --------------------------------------------------------------------------
   Order success modal
   -------------------------------------------------------------------------- */

body.modal-open {
  overflow: hidden;
}

.order-success {
  position: fixed;
  inset: 0;
  z-index: 340;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 40px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}

.order-success.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.order-success__scrim {
  position: absolute;
  inset: 0;
  background: rgba(20, 25, 14, 0.74);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.order-success__panel {
  position: relative;
  width: min(520px, 100%);
  padding: clamp(34px, 5vw, 52px) clamp(24px, 4vw, 46px);
  border: 1px solid rgba(198, 161, 92, 0.36);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 34px 90px -34px rgba(20, 25, 14, 0.7);
  text-align: center;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.45s var(--ease);
}

.order-success.is-open .order-success__panel {
  transform: translateY(0) scale(1);
}

.order-success__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  border: 1px solid rgba(198, 161, 92, 0.36);
  border-radius: 50%;
  background: rgba(198, 161, 92, 0.14);
  color: var(--gold-deep);
}

.order-success__icon svg {
  width: 28px;
  height: 28px;
}

.order-success__kicker {
  margin-bottom: 10px;
  color: var(--gold-deep);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.order-success__panel h2 {
  color: var(--olive-deep);
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 500;
  line-height: 1.1;
}

.order-success__text {
  max-width: 36ch;
  margin: 14px auto 26px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.8;
}

.order-success__button {
  min-width: 210px;
}

@media (max-width: 560px) {
  .order-success__panel {
    padding: 32px 22px;
    border-radius: 20px;
  }

  .order-success__button {
    width: 100%;
    min-width: 0;
  }
}

/* --------------------------------------------------------------------------
   Article modal
   -------------------------------------------------------------------------- */

.article-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3.5vw, 38px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}

.article-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.article-modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(20, 25, 14, 0.72);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.article-modal__panel {
  position: relative;
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  width: min(1060px, 100%);
  max-height: min(88vh, 800px);
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 60px 130px -50px rgba(0, 0, 0, 0.7);
  transform: translateY(26px) scale(0.985);
  transition: transform 0.5s var(--ease);
}

.article-modal.is-open .article-modal__panel {
  transform: none;
}

.article-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(45, 46, 37, 0.15);
  border-radius: 50%;
  background: rgba(252, 250, 244, 0.94);
  color: var(--olive-deep);
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.article-modal__close:hover {
  border-color: var(--olive-deep);
  background: var(--olive-deep);
  color: var(--cream);
  transform: rotate(90deg);
}

.article-modal__close svg {
  width: 18px;
  height: 18px;
}

.article-modal__media {
  position: relative;
  min-height: 100%;
  background: var(--sand);
}

.article-modal__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-modal__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(20, 25, 14, 0.42));
  pointer-events: none;
}

.article-modal__tag {
  position: absolute;
  bottom: 18px;
  left: 18px;
  z-index: 1;
  padding: 8px 12px;
  background: rgba(35, 42, 27, 0.86);
  color: var(--cream);
  font-size: 0.54rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.article-modal__body {
  max-height: min(88vh, 800px);
  padding: clamp(28px, 3.6vw, 52px) clamp(24px, 3.4vw, 50px)
    clamp(26px, 3.2vw, 42px);
  overflow-y: auto;
}

.article-modal__body .eyebrow {
  margin-bottom: 16px;
  color: var(--olive-mid);
  font-size: 0.6rem;
}

.article-modal__body h2 {
  margin-bottom: 12px;
  color: var(--olive-deep);
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  line-height: 1.16;
}

.article-modal__meta {
  color: var(--muted);
  font-size: 0.57rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.article-modal__sub {
  margin-top: 7px;
  color: var(--gold-deep);
  font-family: var(--font-thai);
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1.6;
}

.article-modal__text {
  margin-top: 24px;
}

.article-modal__text p {
  margin-bottom: 17px;
  color: #3a3b31;
  font-size: 0.9rem;
  line-height: 1.8;
}

.article-modal__text p:first-child::first-letter {
  float: left;
  margin: 6px 10px 0 0;
  color: var(--gold-deep);
  font-family: var(--font-serif);
  font-size: 3.4rem;
  line-height: 0.8;
}

.article-modal__pull {
  margin: 26px 0;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--gold);
  color: var(--olive-deep);
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.6;
}

.article-modal__foot {
  position: sticky;
  bottom: -1px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding: 16px 0 6px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.article-modal__foot .text-link {
  font-size: 0.58rem;
}

.btn-outline {
  border-color: rgba(45, 46, 37, 0.28);
  background: transparent;
  color: var(--olive-deep);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
}

/* --------------------------------------------------------------------------
   Thai typography
   -------------------------------------------------------------------------- */

html[lang="th"] body {
  font-family: var(--font-thai);
}

html[lang="th"] h1,
html[lang="th"] h2,
html[lang="th"] h3,
html[lang="th"] h4 {
  font-family: var(--font-serif-thai);
  font-weight: 500;
  letter-spacing: 0;
}

html[lang="th"] h2 {
  line-height: 1.32;
}

html[lang="th"] h2 em,
html[lang="th"] .hero h1 em {
  font-style: normal;
}

html[lang="th"] .hero h1 {
  font-family: var(--font-serif-thai);
  font-size: clamp(2.7rem, 5.7vw, 5.1rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.34;
}

html[lang="th"] .eyebrow,
html[lang="th"] .topbar-note,
html[lang="th"] .btn,
html[lang="th"] .nav-links a,
html[lang="th"] .text-link,
html[lang="th"] .post-more,
html[lang="th"] .product-badge,
html[lang="th"] .post-meta,
html[lang="th"] .collection-note,
html[lang="th"] .hero-trust,
html[lang="th"] .footer-col h4,
html[lang="th"] .testimonials-rating p,
html[lang="th"] .testimonial-meta,
html[lang="th"] .article-modal__meta,
html[lang="th"] .article-modal__tag {
  letter-spacing: 0.02em;
  text-transform: none;
}

html[lang="th"] .brand-tag {
  letter-spacing: 0.08em;
}

html[lang="th"] .hero-copy,
html[lang="th"] .section-lede,
html[lang="th"] .benefit p,
html[lang="th"] .product-desc,
html[lang="th"] .story-copy > p,
html[lang="th"] .post-excerpt,
html[lang="th"] .newsletter-copy,
html[lang="th"] .footer-brand > p,
html[lang="th"] .article-modal__text p {
  font-weight: 400;
}

html[lang="th"] .section-lede,
html[lang="th"] .hero-copy,
html[lang="th"] .story-copy > p,
html[lang="th"] .post-excerpt,
html[lang="th"] .article-modal__text p {
  line-height: 1.85;
}

html[lang="th"] .post-card h3 {
  line-height: 1.45;
}

html[lang="th"] .mobile-nav a {
  font-family: var(--font-serif-thai);
  font-size: clamp(1.65rem, 6.4vw, 2.3rem);
  line-height: 1.5;
}

html[lang="th"] .testimonial blockquote {
  font-family: var(--font-serif-thai);
  font-style: normal;
  line-height: 1.8;
}

html[lang="th"] .article-modal__pull {
  font-family: var(--font-serif-thai);
  font-style: normal;
  line-height: 1.7;
}

html[lang="th"] .article-modal__text p:first-child::first-letter {
  float: none;
  margin: 0;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

html[lang="th"] .footer-signup h2 {
  line-height: 1.5;
}

html[lang="th"] .post-thai,
html[lang="th"] .topbar-thai,
html[lang="th"] .newsletter-thai,
html[lang="th"] .footer-thai {
  display: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .nav-links {
    gap: 24px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 7.6vw, 5.6rem);
  }

  .hero-seal {
    width: 110px;
    height: 110px;
  }

  .story-grid {
    gap: 54px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 108px;
  }

  .topbar-thai {
    display: none;
  }

  .nav {
    height: 74px;
  }

  .site-header.is-scrolled .nav {
    height: 66px;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-actions .lang-switch {
    display: inline-flex;
    gap: 0;
    margin-right: 2px;
    padding: 2px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(250, 249, 246, 0.72);
  }

  .nav-actions .lang-sep,
  .nav-actions .lang-code {
    display: none;
  }

  .nav-actions .lang-btn {
    min-width: 30px;
    min-height: 30px;
    padding: 2px;
    border-radius: 999px;
    opacity: 0.45;
  }

  .nav-actions .lang-btn.is-active {
    background: var(--olive);
    opacity: 1;
  }

  .nav-actions .lang-btn.is-active .lang-flag {
    box-shadow: 0 0 0 1px rgba(250, 249, 246, 0.6);
  }

  .brand-logo {
    height: 28px;
  }

  .hero-inner {
    padding-top: 150px;
    padding-bottom: 104px;
  }

  .hero-seal {
    display: none;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 9.5vw, 4.8rem);
  }

  .hero-copy {
    max-width: 480px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .section-lede {
    max-width: 520px;
    padding: 0;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .benefit {
    padding: 28px 26px;
  }

  .benefit-top {
    margin-bottom: 30px;
  }

  .benefit p {
    max-width: 52ch;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-card {
    display: grid;
    grid-template-columns: 42% 1fr;
  }

  .product-card:hover {
    transform: none;
  }

  .product-media {
    height: 100%;
    aspect-ratio: auto;
    min-height: 280px;
  }

  .product-info {
    padding: 26px 28px;
  }

  .product-desc {
    margin: 14px 0 20px;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .story-visual {
    width: min(100%, 540px);
    padding: 0 20px 36px 0;
  }

  .story-frame {
    aspect-ratio: 5 / 6;
  }

  .story-copy {
    max-width: 640px;
  }

  .journal-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .post-card {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 30px;
    align-items: center;
  }

  .post-media {
    aspect-ratio: 4 / 3;
  }

  .post-body {
    padding-top: 0;
  }

  .footer-top {
    grid-template-columns: 1.4fr 1fr;
    row-gap: 46px;
  }

  .footer-watermark {
    font-size: 15vw;
  }
}

@media (max-width: 620px) {
  :root {
    --gutter: 20px;
  }

  .topbar {
    height: 32px;
  }

  .topbar-inner {
    height: 32px;
  }

  .topbar-note {
    font-size: 0.52rem;
    letter-spacing: 0.1em;
  }

  .nav {
    height: 70px;
  }

  .site-header.is-scrolled .nav {
    height: 62px;
  }

  .brand {
    gap: 9px;
  }

  .brand-logo {
    height: 26px;
  }

  .brand-tag {
    font-size: 0.4rem;
    letter-spacing: 0.25em;
  }

  .nav-actions {
    gap: 6px;
  }

  .cart-btn {
    width: 44px;
    height: 44px;
  }

  .hero-inner {
    padding-top: 140px;
    padding-bottom: 96px;
  }

  .hero h1 {
    font-size: clamp(2.9rem, 13vw, 4rem);
    letter-spacing: -0.04em;
  }

  .hero-copy {
    max-width: 34ch;
    font-size: 0.94rem;
    line-height: 1.7;
  }

  .hero-actions {
    gap: 20px;
  }

  .hero-actions .btn {
    min-height: 50px;
    padding: 0 23px;
  }

  .hero-trust {
    display: none;
  }

  .hero-bottom {
    padding-bottom: 24px;
  }

  .scroll-cue {
    font-size: 0.52rem;
  }

  .scroll-line {
    height: 40px;
  }

  .marquee {
    padding: 13px 0;
  }

  .marquee-item {
    font-size: 0.55rem;
  }

  .marquee-group {
    gap: 24px;
    padding-right: 24px;
  }

  .section {
    padding-block: 70px;
  }

  .section-head {
    margin-bottom: 34px;
  }

  .benefit {
    padding: 25px 22px;
  }

  .benefit-top {
    margin-bottom: 26px;
  }

  .benefit-icon {
    width: 50px;
    height: 50px;
  }

  .benefit-icon svg {
    width: 24px;
    height: 24px;
  }

  .product-card {
    display: flex;
  }

  .product-media {
    height: auto;
    aspect-ratio: 1 / 1;
    min-height: 0;
  }

  .product-info {
    padding: 22px 20px 22px;
  }

  .product-info h3 {
    font-size: 1.32rem;
  }

  .product-price {
    font-size: 1.2rem;
  }

  .collection-note {
    font-size: 0.56rem;
    line-height: 1.7;
  }

  .story {
    padding-block: 76px;
  }

  .story-stats {
    gap: 10px;
  }

  .story-stats dt {
    font-size: 0.48rem;
    letter-spacing: 0.1em;
  }

  .story-stats dd {
    font-size: 1.55rem;
  }

  .story-inset {
    width: 43%;
    border-width: 6px;
  }

  .story-stamp {
    left: -8px;
  }

  .story-copy > p {
    font-size: 0.9rem;
  }

  .post-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .post-media {
    aspect-ratio: 4 / 3;
  }

  .post-body {
    padding-top: 20px;
  }

  .journal-grid {
    gap: 44px;
  }

  .newsletter {
    padding-block: 80px;
  }

  .newsletter-form {
    flex-direction: column;
    gap: 10px;
    padding: 14px 14px 14px;
    border-radius: 24px;
  }

  .newsletter-form input {
    width: 100%;
    padding: 8px 8px;
    text-align: center;
  }

  .newsletter-form .btn {
    width: 100%;
    min-height: 48px;
  }

  .newsletter-fine {
    max-width: 30ch;
    margin-inline: auto;
    line-height: 1.6;
  }

  .footer {
    padding-top: 60px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-bottom: 44px;
  }

  .footer-brand > p {
    max-width: 36ch;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .footer-legal {
    gap: 18px;
  }

  .footer-lang {
    display: none;
  }

  .footer-watermark {
    font-size: 21vw;
  }

  .toast {
    bottom: 18px;
    padding: 13px 18px;
    font-size: 0.69rem;
  }

  .mobile-menu {
    padding-top: 118px;
    padding-bottom: 24px;
  }

  .mobile-menu-foot {
    padding-top: 26px;
  }

  .mobile-menu-meta {
    flex-wrap: wrap;
  }

  .mobile-menu-meta > a {
    display: none;
  }

  .cart-drawer__head {
    padding: 24px 20px 18px;
  }

  .cart-drawer__title {
    font-size: 1.62rem;
  }

  .cart-drawer__body {
    padding: 6px 20px 18px;
  }

  .cart-shipping {
    padding-top: 18px;
  }

  .shipping-option {
    gap: 9px;
    padding: 11px 12px;
  }

  .shipping-option__name {
    font-size: 0.68rem;
  }

  .checkout-form {
    margin-top: 20px;
    padding-top: 20px;
  }

  .checkout-form__title {
    font-size: 1.24rem;
  }

  .checkout-step + .checkout-step {
    margin-top: 18px;
    padding-top: 18px;
  }

  .checkout-step__head {
    gap: 10px;
  }

  .checkout-step__title {
    font-size: 0.98rem;
  }

  .payment-option {
    gap: 9px;
    padding: 11px 12px;
  }

  .payment-option__name {
    font-size: 0.74rem;
  }

  .payment-option__badge {
    padding: 4px 6px;
    font-size: 0.44rem;
  }

  .cart-drawer__foot {
    padding: 18px 20px calc(22px + env(safe-area-inset-bottom));
  }

  .cart-empty {
    padding-top: 40px;
  }
}

@media (max-width: 380px) {
  .brand-tag {
    display: none;
  }

  .brand-logo {
    height: 24px;
  }

  .nav-inner {
    gap: 8px;
  }

  .nav-actions {
    gap: 4px;
  }

  .nav-actions .lang-switch {
    gap: 2px;
    margin-right: 0;
    font-size: 0.51rem;
    letter-spacing: 0.06em;
  }

  .nav-actions .lang-btn {
    min-width: 28px;
    min-height: 32px;
  }

  .nav-actions .cart-btn,
  .nav-actions .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .cart-drawer__title {
    font-size: 1.5rem;
  }

  .cart-item__name {
    font-size: 1.08rem;
  }

  .cart-item__line-total {
    font-size: 0.76rem;
  }

  .shipping-option {
    grid-template-columns: 16px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px;
  }

  .shipping-option__price {
    font-size: 0.66rem;
  }

  .checkout-fields__row {
    grid-template-columns: 1fr;
  }

  .checkout-form__title {
    font-size: 1.16rem;
  }

  .payment-option {
    grid-template-columns: 16px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px;
  }

  .payment-option__badge {
    padding: 4px 5px;
    font-size: 0.42rem;
    letter-spacing: 0.06em;
  }

  .product-title-row {
    gap: 8px;
  }

  .product-info h3 {
    font-size: 1.18rem;
  }
}

/* --------------------------------------------------------------------------
   New components — responsive tuning
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .nav-actions .google-btn-text--full {
    display: none;
  }

  .nav-actions .google-btn-text--short {
    display: inline;
  }

  .nav-actions .google-btn .google-user-email {
    display: none;
  }

  .nav-actions .google-btn .google-user-name {
    max-width: 86px;
  }

  .nav-actions .google-btn.is-signed-in {
    padding: 0 10px 0 6px;
  }
}

@media (max-width: 900px) {
  .nav-actions .google-btn {
    display: none;
  }

  .footer-signup {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 22px;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .testimonial:nth-child(2) {
    margin-top: 0;
  }

  .testimonials-rating {
    padding-bottom: 0;
    text-align: left;
  }

  .testimonials-rating .stars {
    justify-content: flex-start;
  }

  .article-modal__panel {
    display: flex;
    flex-direction: column;
    max-height: 92dvh;
  }

  .article-modal__media {
    flex: 0 0 210px;
    min-height: 0;
  }

  .article-modal__body {
    flex: 1;
    max-height: none;
    overflow-y: auto;
  }
}

@media (max-width: 620px) {
  .whatsapp-fab {
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
  }

  .whatsapp-icon svg {
    width: 27px;
    height: 27px;
  }

  .whatsapp-tooltip {
    display: none;
  }

  .toast {
    bottom: 84px;
  }

  .footer-signup {
    margin-bottom: 34px;
    padding-bottom: 28px;
  }

  .footer-signup h2 {
    font-size: 1.45rem;
  }

  .footer-form-row {
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border-radius: 24px;
  }

  .footer-form input {
    width: 100%;
    padding: 8px;
    text-align: center;
  }

  .footer-form .btn {
    width: 100%;
    min-height: 46px;
  }

  .footer-form-status {
    padding-left: 0;
    text-align: center;
  }

  .testimonial {
    padding: 24px 22px 22px;
  }

  .testimonial blockquote {
    font-size: 1rem;
  }

  .article-modal {
    padding: 8px;
  }

  .article-modal__panel {
    max-height: 94dvh;
  }

  .article-modal__media {
    flex-basis: 170px;
  }

  .article-modal__body {
    padding: 24px 20px;
  }

  .article-modal__body h2 {
    font-size: 1.6rem;
  }

  .article-modal__foot {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .article-modal__foot .btn {
    width: 100%;
  }

  .article-modal__foot .text-link {
    justify-content: center;
  }
}

@media (max-width: 380px) {
  .google-btn--menu {
    font-size: 0.58rem;
  }

  .google-user-name,
  .google-user-email {
    max-width: 130px;
  }
}

@media (max-width: 360px) {
  .topbar-note {
    gap: 7px;
    font-size: 0.48rem;
    letter-spacing: 0.03em;
  }
}

/* --------------------------------------------------------------------------
   Motion preferences
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .nav-actions .lang-code {
    display: none;
  }

  .nav-actions .lang-btn {
    gap: 0;
  }

  .nav-actions .account-trigger__name {
    max-width: 86px;
  }
}

@media (max-width: 620px) {
  .account-modal {
    padding: 12px;
  }

  .account-modal__panel {
    max-height: 94vh;
    padding: 28px 20px 30px;
  }

  .account-modal__brand {
    margin-bottom: 20px;
  }

  .account-modal h2 {
    font-size: 2rem;
  }

  .account-switch {
    gap: 16px;
  }

  .account-profile {
    padding: 16px;
  }

  .account-profile__actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .account-profile__actions .btn,
  .account-continue {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .account-modal__panel {
    padding: 22px 16px 24px;
  }

  .account-modal__brand {
    margin-bottom: 14px;
  }

  .account-modal__eyebrow {
    margin-bottom: 8px;
  }

  .account-modal h2 {
    margin-bottom: 8px;
    font-size: 1.72rem;
  }

  .account-modal__lede {
    margin-bottom: 16px;
    font-size: 0.82rem;
  }

  .account-switch {
    margin-bottom: 15px;
  }

  .account-switch__tab {
    font-size: 0.56rem;
  }

  .google-btn--account {
    height: 44px;
  }

  .account-google-note {
    margin-top: 7px;
    font-size: 0.65rem;
  }

  .account-divider {
    margin: 14px 0 12px;
  }

  .account-fields {
    gap: 10px;
  }

  .account-submit {
    margin-top: 10px;
  }

  .account-fine {
    margin-top: 14px;
    font-size: 0.62rem;
  }

  .account-profile__avatar {
    width: 48px;
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }

  .hero-img {
    transform: none !important;
  }

  .hero-media {
    transform: none !important;
  }

  html.js .reveal,
  html.js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .marquee-track {
    animation: none;
  }

  .scroll-line::after {
    display: none;
  }
}

/* ==========================================================================
   Mini-ERP storefront additions: coupons, simulated card payment
   ========================================================================== */

.cart-coupon {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.cart-coupon[hidden],
.coupon-form[hidden],
.coupon-applied[hidden],
.card-form[hidden],
.payment-note[hidden],
.payment-options[hidden],
.payment-test-notice[hidden],
.cart-summary__row--discount[hidden],
.card-form__loader[hidden] {
  display: none;
}

.cart-coupon__head {
  margin-bottom: 12px;
}

.cart-coupon__title {
  font-size: 1.02rem;
  line-height: 1.2;
}

.cart-coupon__subtitle {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.5;
}

.coupon-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}

.coupon-field {
  min-width: 0;
}

.coupon-apply {
  min-height: 42px;
  padding: 10px 14px;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.coupon-apply[disabled] {
  opacity: 0.65;
  cursor: wait;
}

.coupon-applied {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border: 1px solid rgba(198, 161, 92, 0.5);
  border-radius: 10px;
  background: rgba(198, 161, 92, 0.1);
}

.coupon-applied__code {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.coupon-applied__discount {
  color: var(--gold-deep);
  font-size: 0.68rem;
  font-weight: 600;
}

.coupon-applied__remove {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-transform: uppercase;
  cursor: pointer;
}

.coupon-applied__remove:hover {
  color: var(--gold-deep);
}

.cart-coupon__message {
  min-height: 0;
  margin: 8px 0 0;
  font-size: 0.62rem;
  line-height: 1.45;
}

.cart-coupon__message:empty {
  display: none;
}

.cart-coupon__message.is-error {
  color: #9a3d32;
}

.cart-coupon__message.is-success {
  color: var(--gold-deep);
}

.cart-summary__row--discount .cart-summary__value {
  color: var(--gold-deep);
}

.payment-note {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-left: 2px solid rgba(198, 161, 92, 0.6);
  background: rgba(198, 161, 92, 0.07);
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.55;
}

.payment-test-notice {
  margin: 14px 0 0;
  padding: 13px 15px;
  border-left: 3px solid var(--gold-deep);
  background: rgba(198, 161, 92, 0.1);
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.6;
}

.payment-test-notice strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.card-form {
  position: relative;
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(248, 244, 235, 0.55);
}

.card-form__head h5 {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.2;
}

.card-form__head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.6rem;
  line-height: 1.45;
}

.card-form__error {
  min-height: 0;
  margin: 0;
  color: #9a3d32;
  font-size: 0.62rem;
  line-height: 1.4;
}

.card-form__error:empty {
  display: none;
}

.card-form__loader {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--gold-deep);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.card-form__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(198, 161, 92, 0.3);
  border-top-color: var(--gold-deep);
  border-radius: 50%;
  animation: olive-spin 0.7s linear infinite;
}

.card-form.is-processing .field {
  opacity: 0.55;
  pointer-events: none;
}

@keyframes olive-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 520px) {
  .coupon-form {
    grid-template-columns: 1fr;
  }

  .coupon-apply {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Stock, VAT, consent, PromptPay and legal pages
   -------------------------------------------------------------------------- */

.product-card.is-sold-out .product-media img {
  filter: grayscale(0.45);
  opacity: 0.72;
}

.product-badge--soldout {
  background: rgba(122, 55, 42, 0.94);
  color: #fff8ef;
}

.btn-add:disabled,
.btn-add[disabled] {
  border-color: rgba(35, 42, 27, 0.16);
  background: rgba(35, 42, 27, 0.05);
  color: var(--muted);
  cursor: not-allowed;
}

.btn-add:disabled:hover,
.btn-add[disabled]:hover {
  border-color: rgba(35, 42, 27, 0.16);
  background: rgba(35, 42, 27, 0.05);
  color: var(--muted);
}

.btn-add:disabled:hover svg,
.btn-add[disabled]:hover svg {
  transform: none;
}

.cart-tax-breakdown {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
}

.cart-tax-breakdown__title {
  color: var(--gold-deep);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cart-summary__row--tax .cart-summary__label,
.cart-summary__row--tax .cart-summary__value {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: none;
}

.checkout-step--consent {
  border-color: rgba(198, 161, 92, 0.38);
  background: rgba(198, 161, 92, 0.05);
}

.checkout-policy-note {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-left: 2px solid rgba(198, 161, 92, 0.7);
  background: rgba(198, 161, 92, 0.08);
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.58;
}

.checkout-policy-note a {
  color: var(--gold-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-field {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
}

.consent-field input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--olive);
  cursor: pointer;
}

.consent-field__text {
  color: var(--ink);
  font-size: 0.72rem;
  line-height: 1.65;
}

.consent-field__text a {
  color: var(--gold-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-field__text a:hover {
  color: var(--olive-deep);
}

.consent-field__hint {
  margin: 9px 0 0 29px;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.55;
}

.order-success__help {
  max-width: 390px;
  margin: 0 auto 22px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.6;
}

.order-success__help a {
  color: var(--gold-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.order-success__promptpay {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 0 auto 24px;
  padding: 16px;
  border: 1px solid rgba(198, 161, 92, 0.42);
  border-radius: 14px;
  background: rgba(198, 161, 92, 0.07);
}

.order-success__promptpay[hidden] {
  display: none;
}

.order-success__qr {
  width: min(220px, 60vw);
  height: auto;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
}

.order-success__promptpay-amount {
  color: var(--olive-deep);
  font-family: var(--font-serif);
  font-size: 1.15rem;
}

.order-success__promptpay-status {
  min-height: 1.2em;
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.5;
}

.order-success__promptpay-status[data-state="pending"] {
  color: var(--gold-deep);
}

.order-success__promptpay-status[data-state="error"] {
  color: #9a3d32;
}

.order-success__refresh {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 0.56rem;
}

/* Legal pages */
.legal-page {
  background: var(--cream);
  color: var(--ink);
}

.legal-header {
  padding: 26px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(248, 244, 235, 0.92);
}

.legal-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1040px;
  margin: 0 auto;
}

.legal-brand {
  color: var(--olive-deep);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.legal-brand img {
  display: block;
  width: auto;
  height: 28px;
}

.legal-back {
  color: var(--gold-deep);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.legal-back:hover {
  color: var(--olive-deep);
}

.legal-shell {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(46px, 8vw, 92px) clamp(20px, 5vw, 40px) 90px;
}

.legal-kicker {
  margin-bottom: 12px;
  color: var(--gold-deep);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.legal-shell h1 {
  margin-bottom: 18px;
  color: var(--olive-deep);
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.08;
}

.legal-updated {
  margin-bottom: 38px;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
}

.legal-shell h2 {
  margin: 42px 0 12px;
  color: var(--olive-deep);
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 500;
  line-height: 1.2;
}

.legal-shell h3 {
  margin: 24px 0 8px;
  color: var(--olive-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-shell p,
.legal-shell li {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.85;
}

.legal-shell p + p {
  margin-top: 12px;
}

.legal-shell ul,
.legal-shell ol {
  display: grid;
  gap: 8px;
  margin: 12px 0 0 20px;
}

.legal-shell a {
  color: var(--gold-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-shell a:hover {
  color: var(--olive-deep);
}

.legal-note {
  margin-top: 34px;
  padding: 18px 20px;
  border: 1px solid rgba(198, 161, 92, 0.35);
  border-radius: 12px;
  background: rgba(198, 161, 92, 0.07);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 18px 18px 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  text-decoration: none !important;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

a.contact-card:hover {
  border-color: rgba(170, 135, 90, 0.6);
  transform: translateY(-2px);
}

.contact-card__label {
  color: var(--gold-deep);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-card strong {
  color: var(--olive-deep);
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.3;
}

.contact-card span:last-child {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.55;
}

.company-list {
  display: grid;
  gap: 0;
  margin: 16px 0 0;
}

.company-list > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.42fr) 1fr;
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.company-list > div:last-child {
  border-bottom: 1px solid var(--line);
}

.company-list dt {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.company-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.8rem;
  line-height: 1.7;
}

@media (max-width: 620px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .company-list > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .legal-header__inner {
    align-items: flex-start;
  }

  .legal-brand img {
    height: 24px;
  }
}

.legal-note p {
  color: var(--ink);
  font-size: 0.74rem;
}

.legal-footer {
  padding: 24px 20px 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.62rem;
  text-align: center;
}

.legal-footer a {
  color: var(--gold-deep);
  text-decoration: none;
}

@media (max-width: 640px) {
  .legal-header__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .consent-field__hint {
    margin-left: 0;
  }
}
