/* นุ่มจัง · NOOMJANG — soft green tactile food store. Deep green for trust and action,
   sage for the room, apricot for warm touches. Rounded trays, pill controls, soft shadows. */
.brand-noomjang, .co-noomjang {
  --green: #355A49;
  --green-deep: #24402F;
  --sage: #E5EEDB;
  --sage-2: #D4E2C6;
  --apricot: #F0B991;
  --apricot-soft: #FBE6D5;
  --on-green: #F6F9F1;        /* 7.4:1 on --green */
  --bg: var(--sage);
  --surface: #F8FBF4;
  --ink: #1C2A22;
  --ink-2: #364A3E;
  --rule: #C6D6B8;
  --action: var(--green);
  --action-ink: var(--on-green);
  --accent: var(--green);
  --font-head: 'Mitr', 'IBM Plex Sans Thai Looped', sans-serif;
  --font-body: 'IBM Plex Sans Thai Looped', 'IBM Plex Sans Thai', system-ui, sans-serif;
  --btn-radius: 999px;
  --tray: 40px;
  background: var(--bg); color: var(--ink);
}
.brand-noomjang .site-head { background: color-mix(in srgb, var(--sage) 92%, transparent); border-bottom: 1px solid var(--rule); }
.brand-noomjang .btn { box-shadow: 0 6px 0 -1px var(--green-deep); }
.brand-noomjang .btn:active { transform: translateY(3px); box-shadow: 0 3px 0 -1px var(--green-deep); }
.brand-noomjang .btn-ghost { box-shadow: none; background: var(--surface); }
.brand-noomjang .cart-btn { border-color: var(--green); color: var(--green); }
.nj-word { font: 600 1.6rem/1 var(--font-head); color: var(--green); }
.nj-en { font: 500 .72rem/1 var(--font-body); letter-spacing: .26em; color: var(--ink-2); }
.nj-h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 500; line-height: 1.3; color: var(--green-deep); }
.nj-small { font-size: .9rem; color: var(--ink-2); }
.brand-noomjang .text-link { color: var(--green); }

/* Video toggle: a soft pill; sits top-right inside the tray's 40px corner, away from the caption. */
.brand-noomjang .film-toggle { border-radius: 999px; background: var(--green); border: 2px solid var(--on-green); color: var(--on-green); padding: 8px 18px; }

/* N01 hero: rounded tray photo with one big soft corner */
.brand-noomjang main > section.nj-hero {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: center;
  max-width: 1400px; margin: 0 auto; padding-top: clamp(28px, 4vw, 56px);
}
.nj-hero > * { max-width: none !important; margin: 0 !important; }
.nj-hero-photo {
  position: relative; aspect-ratio: 6 / 5; overflow: hidden;
  border-radius: var(--tray) var(--tray) var(--tray) 160px;
  border: 8px solid var(--surface);
  box-shadow: 0 30px 60px -30px rgba(36, 64, 47, .55), 0 0 0 1px var(--rule);
}
.nj-hero-photo .film-toggle { top: 18px; right: 18px; bottom: auto; }
.nj-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.nj-hero-photo figcaption { position: absolute; right: 16px; bottom: 16px; z-index: 1; max-width: calc(100% - 120px); font-size: .8rem; line-height: 1.4; padding: 6px 14px; border-radius: 999px; background: var(--apricot); color: var(--ink); }
.nj-eyebrow { display: inline-block; justify-self: start; font-weight: 600; color: var(--green-deep); background: var(--apricot-soft); padding: 4px 14px; border-radius: 999px; margin-bottom: 14px !important; }
.nj-h1 { font-size: clamp(2.5rem, 5.2vw, 4.4rem); font-weight: 600; line-height: 1.2; margin-bottom: .4em !important; color: var(--green-deep); }
.nj-lead { font-size: 1.05em; }
.nj-slogan { font: 500 1.2rem/1.4 var(--font-head); color: var(--green); }
.nj-facts { font-weight: 600; margin-bottom: 24px !important; padding-left: 20px; position: relative; line-height: 1.6; }
.nj-facts::before { content: ''; position: absolute; left: 0; top: .62em; width: 10px; height: 10px; border-radius: 50%; background: var(--apricot); box-shadow: 0 0 0 2px var(--green); }

/* N02 signature: inside the soft bite — a large soft tray on sage. The photo eases out from the
   tender inside to the meal at home; the three beats are tactile pills that fill green as you scroll.
   Static/reduced motion shows the finished home plate. */
.brand-noomjang main > section.nj-texture { padding: clamp(24px, 4vw, 48px) 0 clamp(64px, 8vw, 104px); background: var(--sage-2); color: var(--ink); }
.nj-texture .scene-runway { max-width: none; }
.nj-texture .scene-sticky { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); align-items: center; align-content: center; padding: 24px var(--gutter); max-width: 1400px; margin: 0 auto; }
.nj-frame {
  --c: clamp(0, calc((var(--p) - .3) / .3), 1);
  position: relative; aspect-ratio: 4 / 3; width: 100%; max-height: calc(100svh - var(--head-h) - 64px); overflow: hidden;
  border-radius: var(--tray) var(--tray) var(--tray) 120px;
  border: 10px solid var(--surface);
  box-shadow: 0 40px 70px -40px rgba(36, 64, 47, .6), 0 0 0 1px var(--rule);
  background: var(--sage);
}
.nj-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nf-whole { transform: scale(calc(1.12 - var(--p) * .12)); transform-origin: 50% 55%; }
.nf-plate { opacity: var(--c); transform: scale(calc(1.18 - var(--c) * .18)); transform-origin: 66% 62%; }
.nj-texture-copy { min-width: 0; }
.nj-texture .nj-h2 { color: var(--green-deep); font-size: clamp(2rem, 3.6vw, 3rem); margin-top: 20px; }
.nj-texture .scene-tail .btn { box-shadow: 0 6px 0 -1px var(--green-deep); }
.nj-beats { counter-reset: n; display: grid; gap: 10px; }
.nj-beats li { counter-increment: n; display: flex; align-items: center; gap: 14px; padding: 10px 22px 10px 10px; border-radius: 999px; background: var(--surface); color: var(--ink-2); font: 500 clamp(1.2rem, 2vw, 1.6rem)/1.3 var(--font-head); box-shadow: 0 2px 0 var(--rule); transition: background-color .35s ease, color .35s ease, opacity .3s ease; }
.nj-beats li::before { content: counter(n); flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--apricot); color: var(--green-deep); font: 600 1rem/38px var(--font-body); text-align: center; }
.scene-runway.is-live .nj-beats li { opacity: 1; }
.scene-runway[data-beat="0"] .nj-beats li[data-b="0"],
.scene-runway[data-beat="1"] .nj-beats li[data-b="1"],
.scene-runway[data-beat="2"] .nj-beats li[data-b="2"] { background: var(--green); color: var(--on-green); box-shadow: 0 4px 0 var(--green-deep); }

/* N03 sauce */
.brand-noomjang main > section.nj-sauce { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: center; max-width: var(--max); margin: 0 auto; }
.nj-sauce > * { margin: 0 !important; max-width: none !important; }
.nj-sauce-photo { aspect-ratio: 5 / 4; border-radius: 160px var(--tray) var(--tray) var(--tray); overflow: hidden; border: 8px solid var(--surface); box-shadow: 0 24px 48px -28px rgba(36, 64, 47, .5); }
.nj-sauce-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.4); transform-origin: 40% 85%; }

/* N04 at home — a raised tray inside the page */
.brand-noomjang main > section.nj-home { text-align: center; background: var(--surface); margin: 0 var(--gutter); border-radius: var(--tray); box-shadow: inset 0 0 0 1px var(--rule); }
.nj-intro { max-width: 640px !important; }
.nj-ideas { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 48px); max-width: 860px !important; margin: 36px auto 20px !important; }
.nj-ideas article { display: flex; flex-direction: column; align-items: center; padding: 28px 20px; background: var(--sage); border-radius: 32px; }
.nj-idea-img { width: 200px; height: 200px; border-radius: 50%; margin-bottom: 18px; border: 6px solid var(--surface); box-shadow: 0 20px 40px -20px rgba(36, 64, 47, .5); }
.nj-ideas h3 { font-weight: 500; font-size: 1.35rem; color: var(--green-deep); }
.nj-ideas p { margin: 0; color: var(--ink-2); }
.nj-home .btn { margin-top: 12px; }

/* N05 craft — deep green panel with apricot chips */
.brand-noomjang main > section.nj-craft { text-align: center; background: var(--green); color: var(--on-green); margin: clamp(48px, 6vw, 80px) var(--gutter) 0; border-radius: var(--tray); }
.nj-craft .nj-h2 { color: var(--on-green); }
.nj-craft .text-link { color: var(--apricot); }
.nj-craft-copy { max-width: 720px !important; }
.nj-chef { font-family: var(--font-head); font-size: 1.1rem; color: var(--apricot); }
.nj-chips { list-style: none; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin: 28px auto !important; }
.nj-chips li { display: flex; align-items: center; gap: 12px; padding: 14px 24px 14px 14px; background: var(--apricot); color: var(--green-deep); border-radius: 999px; font: 500 1.1rem/1 var(--font-head); }
.nj-chips svg { width: 40px; height: 40px; padding: 6px; border-radius: 50%; background: var(--surface); color: var(--green); }

/* N06 pack & reheat — apricot tray */
.brand-noomjang main > section.nj-pack { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: center; max-width: var(--max); margin: 0 auto; }
.nj-pack > * { margin: 0 !important; }
.nj-pack-art { background: var(--apricot-soft); border-radius: var(--tray) var(--tray) 120px var(--tray); padding: 28px; }
.nj-pack-copy .rs-n { background: var(--green); color: var(--on-green); border-color: var(--green); }
/* Branded vacuum pack (image from identity.js). --btn-radius is a pill here, so set a tray radius explicitly. */
.branded-pack-noomjang img { border-radius: 32px; background: var(--surface); box-shadow: 0 24px 48px -28px rgba(36, 64, 47, .5); }
.branded-pack-noomjang figcaption { text-align: center; }

/* N07 offers — store shelf: soft cards, green price, pill steppers */
.nj-offers h2 { text-align: center; margin-bottom: 36px !important; }
.brand-noomjang .offer { border-radius: 32px; border: 0; background: var(--surface); box-shadow: 0 2px 0 var(--rule), 0 28px 48px -32px rgba(36, 64, 47, .55); padding-top: 32px; position: relative; overflow: hidden; }
.brand-noomjang .offer::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: var(--sage-2); }
.brand-noomjang .offer:nth-child(2)::before { background: var(--apricot); }
.brand-noomjang .offer:nth-child(3)::before { background: var(--green); }
.brand-noomjang .offer-name { font-weight: 500; color: var(--green-deep); }
.brand-noomjang .offer-amount { color: var(--green); font-weight: 600; }
.brand-noomjang .qty { background: var(--sage); border-color: var(--rule); }
/* A pill never wraps to two lines: the button takes its own row when the card is narrow. */
.brand-noomjang .offer-buy .btn-add { white-space: nowrap; }
@media (max-width: 1199px) { .brand-noomjang .offer-buy .btn-add { flex-basis: 100%; } }

.nj-faq > * { max-width: 820px !important; }
.brand-noomjang .faq { border-top: 0; display: grid; gap: 10px; }
.brand-noomjang .faq details { border: 0; background: var(--surface); border-radius: 24px; padding: 0 22px; }
.brand-noomjang .faq summary { font-weight: 500; font-family: var(--font-head); }

/* N09 close */
.brand-noomjang main > section.nj-close { text-align: center; }
.nj-close-photo { max-width: 980px !important; aspect-ratio: 16 / 9; border-radius: var(--tray) var(--tray) 200px 200px; overflow: hidden; margin-bottom: 36px !important; border: 8px solid var(--surface); }
.nj-close-photo img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 899px) {
  .brand-noomjang { --tray: 28px; }
  .nj-hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
  .nj-hero-copy .nj-lead { order: 1; margin-top: 20px; }
  .brand-noomjang main > section.nj-hero { grid-template-columns: 1fr; gap: 16px; padding-top: 12px; }
  /* One-line label on phones so the primary CTA stays on the first screen at 360x740. */
  .nj-eyebrow { font-size: .84em; padding: 2px 12px; margin-bottom: 8px !important; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .nj-hero-photo { aspect-ratio: 5 / 4; border-width: 6px; border-radius: var(--tray) var(--tray) var(--tray) 96px; }
  .nj-hero-photo .film-toggle { top: 12px; right: 12px; }
  .nj-hero-photo figcaption { right: 12px; bottom: 12px; font-size: .72rem; max-width: calc(100% - 96px); }
  .nj-h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
  .nj-lead { font-size: 1em; }
  .nj-texture .scene-sticky { grid-template-columns: 1fr; padding: 12px 16px; gap: 14px; align-content: center; }
  .nj-frame { aspect-ratio: 4 / 3; max-height: 46svh; border-width: 6px; border-radius: var(--tray) var(--tray) var(--tray) 72px; }
  .nj-beats { gap: 8px; }
  .nj-beats li { font-size: 1.1rem; padding: 6px 16px 6px 6px; gap: 10px; }
  .nj-beats li::before { width: 32px; height: 32px; line-height: 32px; }
  .nj-texture .nj-h2 { font-size: 1.6rem; margin-top: 12px; }
  body.has-sticky .nj-texture .scene-runway.is-live .scene-sticky { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .brand-noomjang main > section.nj-sauce, .brand-noomjang main > section.nj-pack { grid-template-columns: 1fr; }
  .nj-sauce-photo { border-radius: 96px var(--tray) var(--tray) var(--tray); }
  .brand-noomjang main > section.nj-home, .brand-noomjang main > section.nj-craft { margin-left: 12px; margin-right: 12px; }
  .nj-ideas { grid-template-columns: 1fr; }
  .nj-idea-img { width: 170px; height: 170px; }
  .nj-close-photo { aspect-ratio: 4 / 3; border-radius: var(--tray) var(--tray) 120px 120px; }
}

@media (max-width: 599px) {
  .nj-hero .cta-row { width:100%; gap:8px; }
  .nj-hero .cta-row .btn { padding:12px 14px; white-space:nowrap; }
}

.nj-craft { --focus: #F0B991; }
