/* Generated by scripts/build_css_bundles.mjs. Edit source files, then rebuild. */

/* ===== product.css ===== */
/* Product detail page */

.page--product {
  background: #fff;
}

.page--product::before {
  display: none;
}

.product-detail {
  position: relative;
  z-index: 1;
  margin-top: var(--subpage-header-h);
  padding: clamp(2rem, 4vw, 3rem) var(--page-pad) clamp(5rem, 10vw, 7rem);
  background: #fff;
}

@media (max-width: 960px) {
  .page--product .product-detail {
    margin-top: calc(var(--subpage-header-h) + 0.35rem);
  }
}

.product-detail__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.product-detail__back {
  display: inline-block;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
  font-family: var(--font-sans);
  font-size: clamp(0.82rem, 1.2vw, 0.92rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.product-detail__back:hover {
  color: var(--color-accent-text);
}

.product-detail__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.product-detail__media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  line-height: 0;
  border: 1px solid var(--color-border-strong);
}

.product-detail__media--volume {
  background: linear-gradient(160deg, #f5f5f6 0%, #ececee 100%);
}

.product-detail__media--deep {
  background: linear-gradient(160deg, #f4f4f5 0%, #e8e8ea 55%, #f2f2f3 100%);
}

.product-detail__media--light {
  background: linear-gradient(160deg, #f6f6f7 0%, #ebebed 100%);
}

.product-detail__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.product-detail__info {
  padding-top: clamp(0.5rem, 2vw, 1.5rem);
}

.product-detail__tag {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-text);
  border: 1px solid var(--color-accent-soft);
}

.product-detail__name {
  margin: 0 0 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.3;
  color: var(--color-text);
}

.product-detail__desc {
  margin: 0 0 1rem;
  font-family: var(--font-sans);
  font-size: clamp(0.92rem, 1.35vw, 1.02rem);
  font-weight: 300;
  line-height: 1.85;
  color: var(--color-text);
}

.product-detail__size {
  margin: 0 0 clamp(2rem, 4vw, 2.75rem);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--color-accent-text);
}

.product-detail__line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: min(100%, 320px);
  padding: 0.95rem 2rem;
  font-family: var(--font-sans);
  font-size: clamp(0.9rem, 1.3vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
  background: #06c755;
  border: 1px solid #06c755;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.product-detail__line:hover {
  background: #05b34c;
  border-color: #05b34c;
  transform: translateY(-1px);
}

.product-detail__line:active {
  transform: translateY(0);
}

.product-detail__line-icon {
  display: block;
  width: 1.65rem;
  height: 1.65rem;
  flex-shrink: 0;
}

.product-detail__line-id {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--color-text-muted);
}

.product-detail__line-id span {
  font-weight: 500;
  color: var(--color-text);
}

.page--product .site-footer {
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

html[lang="th"] .product-detail__name,
html[lang="th"] .product-detail__desc,
html[lang="th"] .product-detail__back,
html[lang="th"] .product-detail__line {
  font-family: var(--font-sans);
}

@media (prefers-reduced-motion: no-preference) {
  body[data-page="product"]:not(.is-ready) .product-detail__back,
  body[data-page="product"]:not(.is-ready) .product-detail__card {
    opacity: 0;
  }

  body[data-page="product"].is-ready .product-detail__back {
    animation: fadeUp 0.85s var(--ease-out, ease) 0.08s both;
  }

  body[data-page="product"].is-ready .product-detail__card {
    animation: fadeUp 0.9s var(--ease-out, ease) 0.2s both;
  }
}

@media (max-width: 800px) {
  .product-detail__card {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .product-breadcrumb{
    display:flex;
    align-items:center;
    gap:6px;
    margin:0 0 32px 0;
    font-size:14px;
    white-space:nowrap;
}

.product-breadcrumb .product-detail__back{
    display:inline-flex;
    width:auto;
    margin:0;
}

.breadcrumb-category{
    font-size:14px;
    font-weight:400;
    color:#8f8f8f;
}

.breadcrumb-separator{
    color:#8f8f8f;
}
}

/* ===== responsive.css ===== */
/* ML THAILAND — shared responsive */

html {
  -webkit-text-size-adjust: 100%;
}

.page {
  overflow-x: clip;
}

img,
video {
  max-width: 100%;
  height: auto;
}

/* —— Tablet —— */

@media (max-width: 1024px) {
  :root {
    --subpage-header-h: 7rem;
  }

  .products-grid {
    gap: clamp(1rem, 2vw, 1.5rem);
  }

  .product-detail__inner {
    max-width: 960px;
  }
}

/* —— Mobile: logo ซ้าย (subpage + home) —— */

@media (max-width: 960px) {
  /* subpage */
  .page--sub .topbar__logo {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    flex-shrink: 0;
  }

  body.is-ready .page--sub .topbar__logo {
    animation: none;
    transform: none;
  }

  .page--sub .topbar__row {
    justify-content: space-between;
  }

  /* home page */
  .header:not(.header--topbar) .logo {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    flex-shrink: 0;
  }

  body.is-ready .header:not(.header--topbar) .logo {
    animation: none;
    transform: none;
  }

  .header:not(.header--topbar) {
    justify-content: space-between;
  }

  .header:not(.header--topbar) .logo__img {
    height: 2rem;
    max-width: min(170px, 46vw);
    width: auto;
  }
}

/* —— Tablet / mobile —— */

@media (max-width: 960px) {
  .page--about .header--topbar,
  .page--about .header--topbar.is-scrolled,
  .page--product .header--topbar {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
    box-shadow: none;
  }

  .header:not(.header--topbar) .header__actions {
    gap: 0.4rem;
  }

  .header:not(.header--topbar) .menu-btn {
    width: 2.65rem;
    height: 2.65rem;
    padding: 0.55rem;
    gap: 6px;
    border: 1.5px solid var(--color-accent-soft);
    background: rgba(255, 255, 255, 0.45);
  }

  .header:not(.header--topbar) .menu-btn:hover {
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.85);
  }
}

/* —— Mobile landscape / small tablet —— */

@media (max-width: 768px) {
  :root {
    --page-pad: clamp(1.25rem, 4.5vw, 2rem);
    --subpage-header-h: 4.5rem;
    --header-h: 4.25rem;
  }

  .about-page__head,
  .contact-page__head {
    padding-top: clamp(2rem, 5vw, 3.5rem);
    padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
  }

  .products-main {
    padding-top: clamp(2rem, 4vw, 3rem);
    padding-bottom: clamp(3.5rem, 7vw, 5rem);
  }

  .products-filter {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: clamp(0.2rem, 1.2vw, 0.45rem);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .products-filter::-webkit-scrollbar {
    display: none;
  }

  .products-filter__btn {
    flex: 0 0 auto;
    min-height: auto;
    min-width: 0;
    padding: 0.3rem 0;
    font-size: clamp(0.6rem, 2.35vw, 0.75rem);
    letter-spacing: 0.01em;
    white-space: nowrap;
  }

  .product-detail {
    padding-top: clamp(1.75rem, 4vw, 2.5rem);
    padding-bottom: clamp(3.5rem, 7vw, 5rem);
  }

  .about-body,
  .contact-main {
    min-height: auto;
    padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
  }

  .about-visual {
    display: flex;
    justify-content: center;
    margin-left: 0;
    margin-right: 0;
  }

  .about-visual__img {
    width: min(85vw, 380px);
    max-width: 100%;
    transform: none;
    margin: 0 auto;
  }

  .about-editorial {
    margin-left: 0;
    padding-top: 0;
  }

  .contact-main {
    padding-left: var(--page-pad);
  }

  .contact-list {
    margin: 0 auto;
  }

  .site-footer {
    padding-top: clamp(2rem, 4vw, 2.75rem);
    padding-bottom: max(clamp(2rem, 4vw, 2.75rem), env(safe-area-inset-bottom, 0px));
  }
}

/* —— 2026-07 typography and layout refresh —— */

:root {
  --font-sans: "Prompt", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Thai", "Noto Sans KR", Arial, sans-serif;
  --font-serif: var(--font-sans);
  --page-pad: clamp(1.25rem, 5vw, 4rem);
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-sans);
}

body {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.005em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.hero-text h1,
.products-hero__content h1,
.about-hero__brand,
.about-card-title,
.contact-hero__title,
.product-card__name,
.product-detail__name {
  font-family: var(--font-sans) !important;
  font-weight: 500 !important;
  letter-spacing: -0.025em !important;
}

p,
.about-card-text,
.contact-field__value,
.product-detail__desc {
  line-height: 1.72;
}

.topbar {
  max-width: 1320px;
  margin-inline: auto;
}

.topbar-nav__link,
.nav__link,
.menu-btn,
.lang-switch__option,
.products-filter__btn,
.product-detail__back,
.product-detail__line,
.site-footer__label,
.site-footer__text {
  font-family: var(--font-sans) !important;
}

.topbar-nav__link {
  font-size: clamp(0.78rem, 0.9vw, 0.88rem);
  font-weight: 400;
  letter-spacing: 0.035em;
}

.nav__link {
  font-size: clamp(1.5rem, 4vw, 2.35rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.lang-switch__option {
  font-size: 0.84rem;
  letter-spacing: 0;
}

/* Home */

.page--home::before {
  inset: 0;
  width: 100%;
  height: 100%;
  top: 0;
  opacity: 1;
  background-image: url("../assets/geldrop-01.jpg");
  background-position: center center;
  background-size: cover;
  transform: none;
}

.hero-text {
  left: clamp(1.5rem, 7vw, 7.5rem);
  top: 52%;
  width: min(44rem, 48vw);
  max-width: none;
}

.hero-text h1 {
  font-size: clamp(3.2rem, 6.2vw, 5.5rem);
  line-height: 1.02;
  color: #25252a;
}

.hero-text h1 span {
  display: block;
}

.hero-text p {
  max-width: 34rem;
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
  font-family: var(--font-sans) !important;
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.72;
  color: #5d5d64;
}

/* Products */

.products-hero {
  position: relative;
  margin-top: 0;
}

.products-hero__content {
  top: 50%;
  left: clamp(1.5rem, 10vw, 10rem);
  width: min(31rem, 38vw);
  max-width: none;
  transform: translateY(-50%);
}

.section-label {
  margin-bottom: 1rem;
  font-family: var(--font-sans) !important;
  font-size: clamp(0.72rem, 0.85vw, 0.82rem);
  font-weight: 500;
  letter-spacing: 0.16em;
}

.products-hero__content h1 {
  margin: 0;
  font-size: clamp(3rem, 5.4vw, 4.75rem);
  line-height: 1.08;
  white-space: normal;
  transform: none !important;
}

.hero-line {
  width: 3rem;
  margin: 1.5rem 0;
}

.products-hero__content p {
  max-width: 30rem;
  font-family: var(--font-sans) !important;
  font-size: clamp(0.95rem, 1.25vw, 1.08rem);
  line-height: 1.7;
}

.products-main {
  padding-top: clamp(2.25rem, 4vw, 3.5rem);
}

.products-main__inner {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
}

.products-filter {
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
  gap: 0.75rem clamp(1.25rem, 3vw, 2.5rem);
}

.products-filter__btn {
  min-height: 2.5rem;
  font-size: clamp(0.82rem, 1vw, 0.92rem);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.products-grid {
  gap: clamp(2rem, 4vw, 3.5rem) clamp(1rem, 2.5vw, 2rem);
}

.product-card__media {
  margin-bottom: 0.9rem;
  border-radius: 0.75rem;
  background: #f4f4f5;
}

.product-card__body {
  position: static;
  display: block;
  padding: 0 0.2rem;
}

.product-card__name {
  position: static;
  margin: 0;
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  line-height: 1.35;
  transform: none;
}

/* About */

.about-hero {
  min-height: max(760px, 100vh);
}

.about-hero__content,
.about-cards {
  margin-left: clamp(1.5rem, 9vw, 10.5rem);
}

.about-hero__content {
  max-width: 42rem;
  padding-top: clamp(6.5rem, 11vh, 9rem);
}

.about-hero__brand {
  line-height: 1.02;
}

.about-hero__brand-line:first-child {
  font-size: clamp(3.75rem, 6.2vw, 5.5rem);
}

.about-hero__brand-line--th {
  margin-top: 0.2rem;
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  letter-spacing: -0.02em !important;
}

.about-hero__tagline {
  margin-top: 1.5rem;
  font-family: var(--font-sans) !important;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  letter-spacing: 0;
}

.about-hero__desc {
  max-width: 34rem;
  margin-top: 1rem;
  font-family: var(--font-sans) !important;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
}

.about-cards {
  width: min(calc(100% - clamp(3rem, 18vw, 21rem)), 1120px);
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: 2.25rem;
}

.about-card {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 250px;
  padding: clamp(1.35rem, 2vw, 1.75rem);
  border-radius: 1.25rem;
}

.about-card-title {
  margin-top: 0;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
}

.about-card-text {
  font-family: var(--font-sans) !important;
  font-size: clamp(0.88rem, 1.05vw, 0.98rem);
}

/* Contact */

.contact-hero {
  min-height: clamp(420px, 54vh, 620px);
}

.contact-hero__content {
  top: 0;
  width: min(36rem, 48vw);
  max-width: none;
  margin-left: clamp(0rem, 11vw, 10rem);
}

.contact-hero__title,
html[lang] .contact-hero__title {
  font-size: clamp(3.3rem, 6vw, 5.3rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.035em !important;
}

.contact-hero__subtitle,
html[lang] .contact-hero__subtitle {
  margin-top: 1rem;
  font-family: var(--font-sans) !important;
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.65;
}

.contact-details {
  padding-top: clamp(3rem, 5vw, 4.5rem);
}

.contact-details__inner {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  transform: none;
}

.contact-grid {
  column-gap: clamp(2.5rem, 6vw, 5rem);
  row-gap: clamp(2.25rem, 4vw, 3.25rem);
}

.contact-field__label,
html[lang] .contact-field__label {
  margin-bottom: 0.6rem;
  font-family: var(--font-sans) !important;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.contact-field__value {
  font-size: clamp(0.92rem, 1.1vw, 1rem);
  line-height: 1.7;
}

/* Product detail */

.product-detail__inner {
  max-width: 1120px;
}

.product-detail__card {
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.product-detail__media {
  border-radius: 0.75rem;
}

.product-detail__info {
  padding-top: 0;
}

.product-detail__name {
  max-width: 28rem;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.28;
}

.product-detail__desc {
  max-width: 34rem;
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
}

.product-detail__line {
  min-height: 3.35rem;
  padding: 0.85rem 1.75rem;
  border-radius: 0.55rem;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.site-footer__label {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
}

.site-footer__text {
  font-size: 0.9rem;
  line-height: 1.65;
}

@media (max-width: 960px) {
  .about-hero {
    min-height: auto;
  }

  .about-hero__content,
  .about-cards {
    margin-left: auto;
    margin-right: auto;
  }

  .about-cards {
    width: min(100%, 38rem);
  }

  .contact-hero__content {
    width: min(36rem, 70vw);
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .hero-text {
    left: 7% !important;
    top: 23% !important;
    width: 86%;
    max-width: 30rem !important;
  }

  .hero-text h1 {
    margin-top: 0;
    font-size: clamp(2.25rem, 10vw, 3.4rem) !important;
    line-height: 1.05 !important;
  }

  .hero-text p {
    max-width: 23rem;
    margin-top: 1.25rem !important;
    font-size: clamp(0.92rem, 4vw, 1.05rem) !important;
    line-height: 1.65 !important;
  }

  .products-hero {
    height: clamp(330px, 70vw, 420px);
    margin-top: 0;
  }

  .products-hero__content {
    top: 50%;
    left: var(--page-pad);
    right: var(--page-pad);
    width: min(25rem, calc(100% - 2 * var(--page-pad)));
    max-width: none;
    transform: translateY(-50%);
  }

  .products-hero__content h1,
  .products-hero__content .hero-title {
    font-size: clamp(2.35rem, 10vw, 3.25rem);
    line-height: 1.08;
  }

  .products-hero__content p {
    max-width: 21rem;
    margin-top: 0;
    font-size: clamp(0.86rem, 3.5vw, 0.98rem);
  }

  .products-main {
    margin-top: 0;
    padding-top: 2rem;
  }

  .products-main__inner {
    padding-inline: 0;
  }

  .products-filter__btn {
    min-height: 2.25rem;
    font-size: 0.76rem;
  }

  .product-card__name {
    position: static;
    font-size: clamp(0.82rem, 3.5vw, 1rem);
    transform: none;
  }

  .about-hero {
    padding: 7rem var(--page-pad) 4rem;
  }

  .about-hero__content {
    max-width: 34rem;
    padding-top: 0;
    transform: none;
  }

  .about-hero__brand-line:first-child {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .about-hero__brand-line--th {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .about-cards {
    max-width: 34rem;
    margin-top: 2.5rem;
    transform: none;
  }

  .about-card {
    min-height: 0;
    padding: 1.5rem;
    text-align: left;
  }

  .about-card-header {
    justify-content: flex-start;
  }

  .about-card-text {
    text-align: left;
  }

  .contact-hero__content {
    left: 0;
    right: auto;
    width: min(26rem, 78vw);
  }

  .contact-hero__title,
  html[lang] .contact-hero__title {
    font-size: clamp(2.6rem, 12vw, 4rem) !important;
  }

  .contact-details__inner {
    width: 100%;
  }

  .product-detail__card {
    gap: 1.75rem;
  }

  .product-detail__name {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }
}

@media (max-width: 480px) {
  .page--home::before {
    background-position: 53% center !important;
    background-size: cover !important;
    top: 0 !important;
  }

  .hero-text {
    top: 21% !important;
  }

  .products-grid {
    gap: 1.75rem 0.8rem;
  }

  .product-card__media {
    padding: 0.65rem;
    border-radius: 0.55rem;
  }

  .about-card img {
    width: 3rem;
    height: 3rem;
  }
}

/* —— Mobile portrait —— */

@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    gap: clamp(0.85rem, 3vw, 1.25rem) clamp(0.65rem, 2.5vw, 1rem);
  }

  .product-card__link:hover {
    transform: none;
  }

  .product-card__media {
    padding: clamp(0.5rem, 2vw, 0.85rem);
    margin-bottom: 0.65rem;
  }

  .product-card__body {
    padding: 0;
  }

  .product-card__name {
    font-size: clamp(0.72rem, 3.2vw, 0.88rem);
    margin-bottom: 0.25rem;
  }

  .product-card__desc {
    font-size: clamp(0.65rem, 2.8vw, 0.78rem);
    line-height: 1.45;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    gap: clamp(0.85rem, 3vw, 1.25rem) clamp(0.65rem, 2.5vw, 1rem);
  }

  .product-card__link:hover {
    transform: none;
  }

  .product-card__media {
    padding: clamp(0.5rem, 2vw, 0.85rem);
    margin-bottom: 0.65rem;
  }

  .product-card__body {
    padding: 0;
  }

  .product-card__name {
    font-size: clamp(0.72rem, 3.2vw, 0.88rem);
    margin-bottom: 0.25rem;
  }

  .product-card__desc {
    font-size: clamp(0.65rem, 2.8vw, 0.78rem);
    line-height: 1.45;
  }

  .subpage-hero--about .subpage-hero__frame,
  .subpage-hero--contact .subpage-hero__frame {
    height: clamp(200px, 38vw, 280px);
  }

  .products-hero__img {
    object-fit: contain;
    object-position: center top;
  }

  .products-hero__img {
    object-fit: contain;
    object-position: center top;
  }

  .product-detail__card {
    gap: 1.75rem;
  }

  .product-detail__info {
    padding-top: 0;
    text-align: center;
  }

  .product-detail__tag {
    margin-left: auto;
    margin-right: auto;
  }

  .product-detail__line {
    width: 100%;
    max-width: 100%;
  }

  .product-detail__line-id {
    text-align: center;
  }

  .product-detail__back {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
  }
}

/* —— Small phones —— */

@media (max-width: 480px) {
  :root {
    --page-pad: 1.15rem;
    --subpage-header-h: 4.25rem;
    --header-h: 4rem;
  }

  .about-page__title,
  .contact-page__title {
    font-size: clamp(1.4rem, 7vw, 1.75rem);
  }

  .about-page__head,
  .contact-page__head {
    padding-top: 1.75rem;
    padding-bottom: 1.35rem;
  }

  .about-block + .about-block {
    margin-top: 2.25rem;
  }

  .about-block__text,
  .contact-list__value {
    font-size: 0.9rem;
    line-height: 1.75;
  }

  .products-filter__btn {
    flex: 0 0 auto;
    min-width: 0;
    max-width: none;
    font-size: clamp(0.56rem, 2.1vw, 0.66rem);
    letter-spacing: 0;
  }

  .products-filter {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: clamp(0.15rem, 0.9vw, 0.3rem);
  }

  .products-filter__btn {
    flex: 0 0 auto;
    min-width: 0;
    max-width: none;
    font-size: clamp(0.56rem, 2.1vw, 0.66rem);
    letter-spacing: 0;
  }

  .products-filter {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: clamp(0.15rem, 0.9vw, 0.3rem);
  }

  .product-detail__name {
    font-size: 1.35rem;
  }

  .header:not(.header--topbar) {
    min-height: 4rem;
    padding-top: max(0.65rem, env(safe-area-inset-top, 0px));
    padding-bottom: 0.65rem;
    padding-left: max(var(--page-pad), env(safe-area-inset-left, 0px));
    padding-right: max(var(--page-pad), env(safe-area-inset-right, 0px));
  }

  .header--topbar {
    padding: 0;
  }

  .page--sub .topbar {
    padding-left: max(var(--page-pad), env(safe-area-inset-left, 0px));
    padding-right: max(var(--page-pad), env(safe-area-inset-right, 0px));
  }

  .header:not(.header--topbar) .logo__img {
    height: 1.95rem;
    max-width: min(132px, 48vw);
  }

  .header:not(.header--topbar) .lang-switch__toggle.btn-hero,
  .header:not(.header--topbar) .menu-btn {
    min-height: 2.5rem;
    height: 2.5rem;
    width: 2.5rem;
  }

  .header:not(.header--topbar) .lang-switch__toggle.btn-hero {
    width: auto;
    padding: 0 0.55rem;
  }
}

/* —— Safe areas (notched devices) —— */

@supports (padding: max(0px)) {
  .site-footer {
    padding-left: max(var(--page-pad), env(safe-area-inset-left, 0px));
    padding-right: max(var(--page-pad), env(safe-area-inset-right, 0px));
    padding-bottom: max(clamp(2rem, 4vw, 2.75rem), env(safe-area-inset-bottom, 0px));
  }

  .header--topbar {
    padding-top: env(safe-area-inset-top, 0px);
  }
}

/* —— Short landscape —— */

@media (max-height: 520px) and (orientation: landscape) {
  .subpage-hero--about .subpage-hero__frame,
  .subpage-hero--contact .subpage-hero__frame {
    height: clamp(140px, 32vh, 200px);
  }

  .about-page__head,
  .contact-page__head {
    padding-top: 1.25rem;
    padding-bottom: 1rem;
  }

  .about-body__geldrop,
  .contact-main__geldrop {
    opacity: 0.1;
  }
}

/* —— Home: tight mobile —— */

@media (max-width: 480px) {
  .hero {
    padding-top: calc(var(--header-h) + 0.5rem);
    padding-bottom: 1.75rem;
  }

  .hero__subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .nav__panel {
    width: min(100%, 320px);
  }
}

@media (max-width: 380px) {
  .features__icon {
    width: 2.15rem;
    height: 2.15rem;
    margin-bottom: 0.35rem;
  }

  .features__icon svg,
  .features__icon img {
    width: 1.65rem;
    height: 1.65rem;
  }

  .features__text {
    font-size: 0.58rem;
    line-height: 1.3;
  }

  .features__item {
    padding: 0 0.2rem;
  }
}

/* ทำปุ่ม MENU มือถือให้เหมือนกันทุกหน้า */
@media (max-width: 768px) {
  .page--home .topbar--inline,
  .page--products .topbar--inline,
  .page--about .topbar--inline,
  .page--contact .topbar--inline {
    padding: 12px 28px !important;
  }

  .page--home .topbar__row,
  .page--products .topbar__row,
  .page--about .topbar__row,
  .page--contact .topbar__row {
    min-height: 44px !important;
  }

  .page--home .topbar__menu-btn,
  .page--products .topbar__menu-btn,
  .page--about .topbar__menu-btn,
  .page--contact .topbar__menu-btn {
    width: 70px !important;
    height: 40px !important;
    padding: 0 14px !important;
    font-size: 12px !important;
    letter-spacing: 0.16em !important;
  }
}

/* Final typography priority for legacy page-specific rules */
.about-hero__brand-line,
.about-hero__brand-line:first-child,
.about-hero__brand-line--th,
html[lang] .contact-hero__title {
  font-family: var(--font-sans) !important;
  font-weight: 500 !important;
}

.about-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
}

/* About page: prevent mobile cards from shrinking below their content */
@media (max-width: 768px) {
  .about-cards {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 34rem);
    gap: 1.25rem;
    margin: 2.5rem auto 0;
    transform: none;
  }

  .about-card {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 1.5rem;
    overflow: visible;
  }

  .about-card-header {
    flex: 0 0 auto;
    align-items: center;
  }

  .about-card-divider,
  .about-card-text {
    position: static;
  }

  .about-card-text {
    display: block;
    margin-top: 1rem;
  }
}

/* Language menu: keep translated labels inside the dropdown on mobile */
@media (max-width: 960px) {
  .lang-switch__menu {
    width: max-content;
    min-width: 7.5rem;
    max-width: calc(100vw - (var(--page-pad) * 2));
    box-sizing: border-box;
  }

  .lang-switch__option {
    min-width: 100%;
    box-sizing: border-box;
  }

  .lang-switch__option > span {
    flex: 0 0 auto;
  }
}

/* Product category cards: full-bleed editorial imagery */
.product-card__media {
  padding: 0;
}

.product-card__media img {
  object-fit: cover;
  object-position: center;
  transform: scale(1.001);
  transition: transform 0.45s ease;
}

.product-card__link:hover .product-card__media img {
  transform: scale(1.035);
}

@media (max-width: 768px) {
  .product-card__link:hover .product-card__media img {
    transform: scale(1.001);
  }
}

/* About page clinical-gallery redesign: keep the mobile header readable */
.page--about .about-hero {
  min-height: 0;
  padding: 0;
}

.page--about .about-hero__content {
  max-width: none;
  margin: 0;
  transform: none;
  padding-top: clamp(3rem, 5vw, 5rem);
}

@media (max-width: 960px) {
  .page--about .header--topbar,
  .page--about .header--topbar.is-scrolled {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: rgba(35, 42, 36, 0.08);
  }
}

@media (max-width: 768px) {
  .page--about .about-hero {
    padding: 0;
  }

  .page--about .about-hero__content {
    margin: 0;
    padding: 3.5rem var(--page-pad) 3rem;
  }
}

/* Site-wide two-font system: editorial display titles + readable interface text */
:root {
  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
}

.hero-text h1,
.hero-text h1 span,
.products-hero__content h1,
.contact-hero__title,
html[lang] .contact-hero__title,
.product-detail__name,
.product-card__name,
.coming-soon-box h1 {
  font-family: var(--font-display) !important;
  font-weight: 500 !important;
  letter-spacing: -0.035em !important;
}

.topbar-nav__link,
.nav__link,
.menu-btn,
.lang-switch__option,
.products-filter__btn,
.product-detail__back,
.product-detail__line,
.contact-field__label,
.contact-field__value,
.site-footer__label,
.site-footer__text,
button,
input,
select,
textarea,
p {
  font-family: var(--font-sans) !important;
}

/* ===== animations.css ===== */
/* ML THAILAND — shared motion */

@keyframes mlFadeUp {
  from {
    opacity: 0;
    transform: translateY(1.35rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mlFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes mlRevealLeft {
  from {
    opacity: 0;
    transform: translateX(-1.25rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes mlScaleIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes mlHeroZoom {
  0%,
  100% {
    background-size: 100%;
  }
  50% {
    background-size: 108%;
  }
}

@keyframes homeBgFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes mlTopbarNavIn {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 0.75rem));
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* —— Topbar (home, products, contact, about) —— */

  body:not(.is-ready) .topbar--inline .topbar__logo,
  body:not(.is-ready) .topbar--inline .topbar-nav--inline,
  body:not(.is-ready) .topbar--inline .topbar__tools {
    opacity: 0;
  }

  body.is-ready .topbar--inline .topbar__logo.logo {
    animation: mlFadeIn 0.75s var(--ease-out) 0.04s both;
  }

  @media (min-width: 961px) {
    body.is-ready .topbar--inline .topbar-nav--inline {
      animation: mlTopbarNavIn 0.85s var(--ease-out) 0.1s both;
    }
  }

  body.is-ready .topbar--inline .topbar__tools,
  body.is-ready .topbar--inline .header__tools.topbar__tools {
    animation: mlFadeIn 0.75s var(--ease-out) 0.16s both;
  }

  .topbar-nav__link {
    transition: color 0.28s ease;
  }

  /* —— Home —— */

  body[data-page="home"].is-ready .page--home::before {
    animation:
      homeBgFadeIn 2.2s var(--ease-out) 0.12s forwards,
      mlHeroZoom 26s ease-in-out 2.5s infinite alternate;
  }

  /* มือถือ: คง cover เต็มจอ — ไม่ใช้ mlHeroZoom (มันบังคับ background-size: 100%) */
  @media (max-width: 768px) {
    body[data-page="home"].is-ready .page--home::before {
      animation: homeBgFadeIn 2.2s var(--ease-out) 0.12s forwards;
    }
  }

  body[data-page="contact"]:not(.is-ready) .contact-field,
  body[data-page="products"]:not(.is-ready) .products-filter__btn {
    opacity: 0;
  }

  /* —— Contact hero —— */

  body[data-page="contact"]:not(.is-ready) .contact-hero__title,
  body[data-page="contact"]:not(.is-ready) .contact-hero__subtitle {
    opacity: 0;
  }

  body[data-page="contact"].is-ready .contact-hero__title {
    animation: mlRevealLeft 0.95s var(--ease-out) 0.12s both;
  }

  body[data-page="contact"].is-ready .contact-hero__subtitle {
    animation: mlFadeUp 0.9s var(--ease-out) 0.28s both;
  }

  body[data-page="contact"].is-ready .contact-field {
    animation: mlFadeUp 0.85s var(--ease-out) both;
  }

  body[data-page="contact"].is-ready .contact-field--company {
    animation-delay: 0.38s;
  }

  body[data-page="contact"].is-ready .contact-field--address {
    animation-delay: 0.48s;
  }

  body[data-page="contact"].is-ready .contact-field--tel {
    animation-delay: 0.58s;
  }

  body[data-page="contact"].is-ready .contact-field--email {
    animation-delay: 0.68s;
  }

  body[data-page="contact"].is-ready .contact-field--homepage {
    animation-delay: 0.78s;
  }
    
  body[data-page="contact"].is-ready .contact-field--line {
  animation-delay: 0.88s;
  }

  .contact-field__link {
    transition:
      color 0.25s ease,
      opacity 0.25s ease,
      letter-spacing 0.25s ease;
  }

  .contact-field__link:hover {
    letter-spacing: 0.03em;
  }

  /* —— About hero —— */

  body[data-page="about"]:not(.is-ready) .about-hero__brand-line,
  body[data-page="about"]:not(.is-ready) .about-hero__tagline,
  body[data-page="about"]:not(.is-ready) .about-hero__desc {
    opacity: 0;
  }

  body[data-page="about"].is-ready .about-hero__brand-line:first-child {
    animation: mlRevealLeft 1s var(--ease-out) 0.1s both;
  }

  body[data-page="about"].is-ready .about-hero__brand-line--th {
    animation: mlRevealLeft 1s var(--ease-out) 0.22s both;
  }

  body[data-page="about"].is-ready .about-hero__tagline {
    animation: mlFadeUp 0.95s var(--ease-out) 0.38s both;
  }

  body[data-page="about"].is-ready .about-hero__desc {
    animation: mlFadeUp 0.9s var(--ease-out) 0.52s both;
  }

  /* —— Products —— */
    
  /* Products Hero */

body[data-page="products"]:not(.is-ready) .section-label,
body[data-page="products"]:not(.is-ready) .products-hero__content h1,
body[data-page="products"]:not(.is-ready) .hero-line,
body[data-page="products"]:not(.is-ready) .products-hero__content p{
    opacity:0;
}

body[data-page="products"].is-ready .section-label{
    animation: mlFadeUp .8s var(--ease-out) .1s both;
}

body[data-page="products"].is-ready .products-hero__content h1{
    animation: mlFadeUp 1s var(--ease-out) .3s both;
}

body[data-page="products"].is-ready .hero-line{
    animation: mlFadeUp .8s var(--ease-out) .5s both;
}

body[data-page="products"].is-ready .products-hero__content p{
    animation: mlFadeUp .9s var(--ease-out) .7s both;
}

  body[data-page="products"].is-ready .products-filter__btn {
    animation: mlFadeUp 0.75s var(--ease-out) both;
  }

  body[data-page="products"].is-ready .products-filter__btn:nth-child(1) {
    animation-delay: 0.32s;
  }

  body[data-page="products"].is-ready .products-filter__btn:nth-child(2) {
    animation-delay: 0.38s;
  }

  body[data-page="products"].is-ready .products-filter__btn:nth-child(3) {
    animation-delay: 0.44s;
  }

  body[data-page="products"].is-ready .products-filter__btn:nth-child(4) {
    animation-delay: 0.5s;
  }

  body[data-page="products"].is-ready .products-filter__btn:nth-child(5) {
    animation-delay: 0.56s;
  }

  .products-filter__btn {
    transition:
      color 0.28s ease,
      transform 0.28s var(--ease-out);
  }

  .products-filter__btn:hover {
    transform: translateY(-2px);
  }

  .product-card__link {
    transition:
      opacity 0.35s ease,
      transform 0.45s var(--ease-out);
  }

  .product-card__link:hover {
    transform: translateY(-5px);
  }

  .product-card__media img {
    transition: transform 0.65s var(--ease-out);
  }

  body[data-page="products"] .products-hero__img {
    animation: mlScaleIn 1.1s var(--ease-out) 0.05s both;
  }

  body[data-page="contact"] .contact-hero {
    background-size: cover;
    animation: mlHeroZoom 26s ease-in-out infinite;
  }

  body[data-page="about"] .about-hero {
    background-size: cover;
    animation: none;
  }

  .logo__img,
  .lang-switch__flag {
    transition: transform 0.35s var(--ease-out), opacity 0.35s ease;
  }

  .logo:hover .logo__img {
    transform: scale(1.03);
  }

  .lang-switch__toggle:hover .lang-switch__flag {
    transform: scale(1.08);
  }

  /* —— Scroll reveal —— */

  [data-animate] {
    opacity: 0;
    transform: translateY(1.1rem);
    transition:
      opacity 0.75s var(--ease-out),
      transform 0.75s var(--ease-out);
    transition-delay: var(--animate-delay, 0ms);
  }

  [data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  [data-animate="left"] {
    transform: translateX(-1rem);
  }

  [data-animate="left"].is-visible {
    transform: translateX(0);
  }

  [data-animate="scale"] {
    transform: scale(0.98);
  }

  [data-animate="scale"].is-visible {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page--home::before {
    opacity: 1;
    animation: none;
  }

  @media (max-width: 768px) {
    .page--home::before {
      transform: scale(1.12);
    }

    .about-hero::before {
      transform: scale(1.2);
      transform-origin: 80% center;
    }

    @media (min-width: 769px) {
      .about-hero::before {
        transform: scale(1.08);
        transform-origin: 72% center;
      }
    }
  }

  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
 
.hero-text h1 span{
    display:block;
    opacity:0;
    transform:translateY(50px);
    animation:fadeUp .9s ease forwards;
}

.hero-text h1 span:nth-child(1){ animation-delay:.1s; }
.hero-text h1 span:nth-child(2){ animation-delay:.3s; }
.hero-text h1 span:nth-child(3){ animation-delay:.5s; }
.hero-text h1 span:nth-child(4){ animation-delay:.7s; }

@keyframes fadeUp{
    from{
        opacity:0;
        transform:translateY(50px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}
body[data-page="home"]:not(.is-ready) .hero-title,
body[data-page="home"]:not(.is-ready) .hero-text p {
    opacity: 0;
}

body[data-page="home"].is-ready .hero-title {
    animation: fadeUp 1s ease 0.2s both;
}

body[data-page="home"].is-ready .hero-text p {
    animation: fadeUp 0.9s ease 0.5s both;
}

/* ===== product-refresh.css ===== */
:root {
  --detail-ink: #202520;
  --detail-muted: #677067;
  --detail-sage: #788a73;
  --detail-sage-soft: #edf1e9;
  --detail-gold: #b7964b;
  --detail-line: #dfe3dc;
  --detail-paper: #fafaf7;
  --detail-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
}

.page--product {
  min-height: 100svh;
  background: var(--detail-paper);
}

.page--product::before,
.page--product::after {
  display: none;
}

/* Header: identical rhythm to the product catalog and company pages. */
.page--product .header--topbar,
.page--product .header--topbar.is-scrolled {
  position: relative;
  z-index: 100;
  top: auto;
  min-height: 0;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #e3e6e0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.page--product .topbar--inline {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(0.7rem, 1.3vh, 1rem) clamp(2rem, 3vw, 3.5rem);
}

.page--product .topbar__row {
  min-height: clamp(2.7rem, 5.5vh, 3.5rem);
}

.page--product .topbar__logo .logo__img {
  width: auto;
  height: clamp(2.15rem, 4.5vh, 3rem);
}

.page--product .topbar-nav__list {
  gap: clamp(1.5rem, 3vw, 3rem);
}

.page--product .topbar-nav__link {
  font-family: "Prompt", sans-serif;
  font-size: clamp(0.7rem, 0.86vw, 0.86rem);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.page--product .lang-switch__toggle.btn-hero {
  width: 5rem;
  min-width: 5rem;
  height: 2.55rem;
  min-height: 2.55rem;
  gap: 0.65rem;
  padding: 0 0.95rem;
  border: 1px solid #d4d8d1;
  border-radius: 0.18rem;
  background: #fff;
  color: var(--detail-ink);
}

.page--product .lang-switch__flag {
  display: none;
}

.page--product .lang-switch__code {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.page--product .lang-switch__chevron {
  margin-left: auto;
}

@media (min-width: 961px) {
  .page--product .topbar-nav--inline,
  body.is-ready .page--product .topbar-nav--inline {
    visibility: visible !important;
    opacity: 1 !important;
    transform: translate(-50%, -50%) !important;
    animation: none !important;
  }
}

/* Shared product-detail frame. */
.page--product .product-detail {
  margin-top: 0;
  padding: clamp(1.5rem, 3vh, 2.5rem) clamp(2rem, 5vw, 5.5rem) clamp(2.5rem, 5vh, 4rem);
  color: var(--detail-ink);
  background: linear-gradient(135deg, #fbfbf8 0%, #f6f7f3 100%);
}

.page--product .product-detail__inner {
  width: min(100%, 1440px);
  max-width: 1440px;
  margin: 0 auto;
}

.page--product .product-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 clamp(1.2rem, 2.5vh, 2rem);
  color: var(--detail-muted);
  font-family: "Prompt", sans-serif;
  font-size: clamp(0.72rem, 0.78vw, 0.84rem);
  white-space: nowrap;
}

.page--product .product-detail__back {
  display: inline-flex;
  width: auto;
  margin: 0;
  color: #4e574f;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: 0.035em;
}

.page--product .breadcrumb-separator,
.page--product .breadcrumb-category {
  color: #8a928b;
  font-size: inherit;
}

.product-detail__eyebrow {
  margin: 0;
  color: var(--detail-sage);
  font-family: "Prompt", sans-serif;
  font-size: clamp(0.62rem, 0.7vw, 0.74rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.product-detail__rule {
  display: block;
  width: 2.75rem;
  height: 1px;
  margin-top: 0.72rem;
  background: var(--detail-gold);
}

.page--product .product-detail__media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  line-height: 0;
  border: 1px solid var(--detail-line);
  border-radius: 0;
  background: #f3f4f1;
}

.page--product .product-detail__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.page--product .product-detail__tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  margin: 0 0 1rem;
  padding: 0.25rem 0.72rem;
  border: 1px solid #ced5cb;
  color: #5d6d59;
  font-family: "Prompt", sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page--product .product-detail__name {
  margin: 0;
  color: #1d221e;
  font-family: var(--detail-display) !important;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.page--product .product-detail__desc {
  margin: 1.25rem 0 0;
  color: #4c554d;
  font-family: "Prompt", sans-serif;
  font-size: clamp(0.86rem, 1vw, 1rem);
  font-weight: 300;
  line-height: 1.75;
}

.page--product .product-detail__size {
  margin: 0;
  color: #424b43;
  font-family: "Prompt", sans-serif;
  font-size: clamp(0.78rem, 0.9vw, 0.9rem);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.page--product .product-detail__size > span,
.page--product .product-detail__spec > span {
  color: var(--detail-sage);
  font-family: "Prompt", sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.page--product .product-detail__line {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.78rem 1.35rem;
  border: 1px solid var(--detail-sage);
  background: var(--detail-sage);
  color: #fff;
  font-family: "Prompt", sans-serif;
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.page--product .product-detail__line:hover {
  border-color: #63765e;
  background: #63765e;
  transform: translateY(-1px);
}

.page--product .product-detail__line-icon {
  width: 1.15rem;
  height: 1.15rem;
}

/* Medical device collection: compact editorial comparison. */
.product-collection__intro {
  display: grid;
  grid-template-columns: minmax(11rem, 0.55fr) minmax(0, 1.45fr);
  align-items: end;
  gap: 2rem;
  margin-bottom: clamp(1.4rem, 2.8vh, 2.2rem);
}

.product-detail--collection .product-detail__inner {
  max-width: 1200px;
}

.product-collection__intro h1 {
  margin: 0;
  color: #1d221e;
  font-family: var(--detail-display) !important;
  font-size: clamp(2.45rem, 4vw, 4.5rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.product-collection__intro p:not(.product-detail__eyebrow) {
  margin: 0.55rem 0 0;
  color: #4c554d;
  font-family: "Prompt", sans-serif;
  font-size: clamp(0.78rem, 0.95vw, 0.98rem);
  font-weight: 300;
}

.product-collection__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 1.7vw, 1.75rem);
}

.product-tile {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  border: 1px solid var(--detail-line);
  background: rgba(255, 255, 255, 0.96);
}

.product-tile .product-detail__media {
  width: 100%;
  min-width: 0;
  aspect-ratio: 1.18 / 1;
  border: 0;
  border-bottom: 1px solid var(--detail-line);
}

.product-tile__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  align-items: center;
  column-gap: 1rem;
  padding: clamp(0.95rem, 1.25vw, 1.25rem);
}

.product-tile .product-detail__tag,
.product-tile .product-detail__name,
.product-tile .product-detail__size {
  grid-column: 1;
}

.product-tile .product-detail__name {
  font-size: clamp(1.45rem, 1.8vw, 2rem);
}

.product-tile .product-detail__size {
  display: grid;
  gap: 0.35rem;
  margin: 1.1rem 0 1.35rem;
}

.product-tile .product-detail__line {
  grid-column: 2;
  grid-row: 1 / 4;
  width: 6.25rem;
  height: 3rem;
  padding: 0.65rem 0.85rem;
}

.product-tile .product-detail__line span {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
}

/* Single product page. */
.page--product:not(:has(.product-detail--collection)) .product-detail {
  min-height: calc(100svh - 7rem);
}

.page--product .product-detail__card {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
}

.page--product .product-detail__card > .product-detail__media {
  width: min(100%, 38rem);
  justify-self: end;
}

.page--product .product-detail__card > .product-detail__info {
  width: min(100%, 34rem);
  padding: 0;
}

.page--product .product-detail__card > .product-detail__info .product-detail__tag {
  margin-top: clamp(1.8rem, 4vh, 3.5rem);
}

.page--product .product-detail__card > .product-detail__info .product-detail__name {
  font-size: clamp(2.8rem, 4.6vw, 5rem);
}

.product-detail__spec {
  display: grid;
  grid-template-columns: 7rem 1fr;
  align-items: center;
  gap: 1rem;
  margin: clamp(1.8rem, 4vh, 3rem) 0 1.35rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--detail-line);
  border-bottom: 1px solid var(--detail-line);
}

.page--product .product-detail__card > .product-detail__info .product-detail__line {
  width: min(100%, 21rem);
  justify-content: space-between;
}

.coming-soon-box {
  display: grid;
  grid-column: 1 / -1;
  width: 100%;
  min-height: clamp(24rem, 55vh, 38rem);
  place-items: center;
  border: 1px solid var(--detail-line);
  border-radius: 0;
  background: linear-gradient(135deg, #f4f6f1 0%, #fff 50%, #edf1e9 100%);
  text-align: center;
}

.coming-soon-box::before {
  content: "PHARMACEUTICALS";
  position: absolute;
  margin-top: -7rem;
  color: var(--detail-sage);
  font-family: "Prompt", sans-serif;
  font-size: 0.67rem;
  letter-spacing: 0.22em;
}

.coming-soon-box h1 {
  margin: 0;
  font-family: var(--detail-display) !important;
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.page--product .site-footer {
  padding: 0 clamp(2rem, 5vw, 5.5rem);
  background: linear-gradient(90deg, #f5f7f2 0%, #fafbf8 50%, #f5f7f2 100%);
  border-top: 1px solid var(--detail-line);
}

.page--product .site-footer__inner {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 0;
  width: min(100%, 1440px);
  max-width: 1440px;
  padding: clamp(1rem, 2.2vh, 1.35rem) 0;
}

.page--product .site-footer__col {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.2rem, 2vw, 2rem);
  min-width: 0;
  padding: 0 clamp(1.5rem, 3vw, 3rem);
}

.page--product .site-footer__col:first-child {
  padding-left: 0;
}

.page--product .site-footer__col + .site-footer__col {
  border-left: 1px solid #d6dcd2;
}

.page--product .site-footer__label,
.page--product .site-footer__text {
  margin: 0;
}

.page--product .site-footer__label {
  position: relative;
  padding-left: 1.25rem;
  color: var(--detail-sage);
  font-size: clamp(0.66rem, 0.75vw, 0.76rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.page--product .site-footer__label::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 0.45rem;
  height: 0.45rem;
  border: 1px solid var(--detail-gold);
  border-radius: 50%;
  transform: translateY(-50%);
}

.page--product .site-footer__text {
  color: #3f4740;
  font-size: clamp(0.84rem, 1vw, 0.98rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.015em;
}

.page--product .site-footer__text--address {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.65rem;
}

.page--product .site-footer__text--address span + span::before {
  content: "·";
  margin-right: 0.65rem;
  color: var(--detail-gold);
}

.page--product .site-footer__text--hours {
  white-space: nowrap;
}

.page--product .site-footer__text--hours span {
  margin: 0 0.45rem;
  color: var(--detail-gold);
}

/* Desktop: keep the full detail view, including the footer, inside one screen. */
@media (min-width: 961px) and (min-height: 650px) {
  .page--product {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: 100svh;
    min-height: 0;
    overflow: hidden;
  }

  .page--product .product-detail {
    min-height: 0;
    height: 100%;
    overflow: hidden;
    padding-top: clamp(0.7rem, 1.25vh, 1.1rem);
    padding-bottom: clamp(0.7rem, 1.25vh, 1.1rem);
  }

  .page--product .product-detail__inner {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100%;
    min-height: 0;
  }

  .page--product .product-breadcrumb {
    margin-bottom: clamp(0.55rem, 1.1vh, 0.85rem);
  }

  .product-detail--collection .product-detail__inner {
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .product-collection__intro {
    margin-bottom: clamp(0.65rem, 1.2vh, 1rem);
  }

  .product-collection__intro h1 {
    font-size: clamp(2.35rem, 3.6vw, 3.9rem);
  }

  .product-collection__grid {
    min-height: 0;
    align-items: stretch;
  }

  .product-tile {
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 0;
    overflow: hidden;
  }

  .product-tile .product-detail__media {
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
  }

  .product-tile__body {
    padding: clamp(0.7rem, 1.1vh, 0.95rem) clamp(0.85rem, 1vw, 1.1rem);
  }

  .product-tile .product-detail__tag {
    min-height: 1.55rem;
    margin-bottom: 0.55rem;
    padding-top: 0.18rem;
    padding-bottom: 0.18rem;
  }

  .product-tile .product-detail__name {
    font-size: clamp(1.35rem, 1.65vw, 1.8rem);
  }

  .product-tile .product-detail__size {
    gap: 0.18rem;
    margin: 0.55rem 0 0;
  }

  .product-tile .product-detail__line {
    width: 5.75rem;
    height: 2.65rem;
    min-height: 2.65rem;
    padding: 0.55rem 0.7rem;
  }

  .page--product .product-detail__card {
    height: 100%;
    min-height: 0;
  }

  .page--product .product-detail__card > .product-detail__media {
    width: min(100%, 29rem);
    height: min(100%, 29rem);
    max-height: 100%;
    aspect-ratio: 1;
  }

  .coming-soon-box {
    position: relative;
    min-height: 0;
    height: 100%;
  }

  .coming-soon-box::before {
    top: 34%;
    left: 50%;
    margin: 0;
    transform: translate(-50%, -50%);
  }

  .coming-soon-box h1 {
    font-size: clamp(3.5rem, 6vw, 6rem);
  }

  .page--product .site-footer {
    padding-right: clamp(2rem, 5vw, 5.5rem);
    padding-left: clamp(2rem, 5vw, 5.5rem);
  }

  .page--product .site-footer__inner {
    min-height: 4.35rem;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }

  .page--product .site-footer__col {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    gap: clamp(1.2rem, 2vw, 2rem);
  }

  .page--product .site-footer__text {
    line-height: 1.4;
  }
}

@media (max-width: 960px) {
  .page--product .site-footer {
    padding: 0 var(--page-pad);
  }

  .page--product .site-footer__inner {
    padding: 1.25rem 0;
  }

  .page--product .site-footer__col {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 0.45rem;
  }

  .page--product .site-footer__label {
    width: max-content;
    justify-self: start;
  }

  .page--product .site-footer__text--address {
    display: block;
  }

  .page--product .site-footer__text--address span {
    display: block;
  }

  .page--product .site-footer__text--address span + span::before {
    content: none;
  }

  .page--product .header--topbar,
  .page--product .header--topbar.is-scrolled {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .page--product .topbar--inline {
    padding: 12px 28px;
  }

  .page--product .topbar__row {
    min-height: 44px;
  }

  .page--product .topbar__logo .logo__img {
    height: 2.4rem;
  }

  .page--product .lang-switch__flag {
    display: block;
  }

  .page--product .lang-switch__code {
    display: none;
  }

  .page--product .lang-switch__toggle.btn-hero {
    width: auto;
    min-width: 0;
    min-height: 2.65rem;
    padding: 0 0.65rem;
  }

  .page--product .topbar__menu-btn {
    width: 70px !important;
    height: 40px !important;
    padding: 0 14px !important;
    font-size: 12px !important;
    letter-spacing: 0.16em !important;
  }

  .page--product .product-detail {
    margin-top: 0;
    padding: 1.75rem 2rem 3rem;
  }

  .product-collection__intro {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .product-collection__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page--product .product-detail__card {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .page--product .site-footer__inner {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .page--product .site-footer__col {
    padding: 1.15rem 0;
  }

  .page--product .site-footer__label {
    justify-self: center;
  }

  .page--product .site-footer__col + .site-footer__col {
    border-top: 1px solid #d6dcd2;
    border-left: 0;
  }
}

@media (max-width: 720px) {
  .page--product .topbar--inline {
    padding-right: 18px;
    padding-left: 18px;
  }

  .page--product .product-detail {
    padding: 1.35rem 1.15rem 2.75rem;
  }

  .page--product .product-breadcrumb {
    margin-bottom: 1.5rem;
  }

  .product-collection__intro h1 {
    font-size: clamp(2.45rem, 12vw, 3.65rem);
  }

  .product-collection__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .product-tile {
    grid-template-rows: auto 1fr;
  }

  .product-tile .product-detail__media {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--detail-line);
  }

  .product-tile__body {
    padding: 1rem;
  }

  .product-tile .product-detail__tag {
    margin-bottom: 0.7rem;
  }

  .product-tile .product-detail__name {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  .product-tile .product-detail__size {
    margin: 0.9rem 0 1rem;
  }

  .product-tile .product-detail__line {
    min-height: 2.75rem;
    padding: 0.65rem 0.75rem;
  }

  .page--product .product-detail__card {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .page--product .product-detail__card > .product-detail__media {
    width: 100%;
    max-height: none;
    justify-self: stretch;
  }

  .page--product .product-detail__card > .product-detail__info {
    width: 100%;
  }

  .page--product .product-detail__card > .product-detail__info .product-detail__tag {
    margin-top: 1.5rem;
  }

  .page--product .product-detail__card > .product-detail__info .product-detail__name {
    font-size: clamp(2.35rem, 11vw, 3.35rem);
  }

  .page--product .product-detail__desc {
    margin-top: 1rem;
  }

  .product-detail__spec {
    margin-top: 1.5rem;
  }

  .page--product .product-detail__card > .product-detail__info .product-detail__line {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .product-tile__body {
    grid-template-columns: minmax(0, 1fr) 5.75rem;
  }

  .product-tile .product-detail__line {
    width: 5.75rem;
  }
}

html[lang="th"] .product-detail__name,
html[lang="th"] .product-detail__desc,
html[lang="th"] .product-detail__back,
html[lang="th"] .product-detail__line,
html[lang="th"] .product-collection__intro h1 {
  font-family: "Prompt", sans-serif !important;
}

/* ===== typography-unified.css ===== */
/* ML (Thailand) — shared typography scale
   Display: Cormorant Garamond / Body: Arimo / Thai: Sarabun
   Korean display: Noto Serif KR / Korean body: Noto Sans KR */

:root {
  --font-sans: "Arimo", Arial, system-ui, sans-serif;
  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-ko-sans: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-ko-display: "Noto Serif KR", "AppleMyungjo", "Batang", serif;
  --type-hero: clamp(3rem, 4.2vw, 4.2rem);
  --type-lead: clamp(0.88rem, 1.18vw, 1.16rem);
  --type-section: clamp(1.35rem, 2vw, 2.05rem);
  --type-body: clamp(0.78rem, 0.95vw, 0.95rem);
  --type-label: clamp(0.66rem, 0.88vw, 0.88rem);
  --type-small: clamp(0.62rem, 0.78vw, 0.78rem);
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-sans);
}

/* Header and utility text use the exact rhythm established on the home page. */
.page :where(
  .topbar-nav__link,
  .nav__link,
  .nav__brand,
  .lang-switch__code,
  .lang-switch__option,
  .products-filter__btn,
  .product-detail__back,
  .breadcrumb-category,
  .product-breadcrumb,
  .breadcrumb-separator,
  .product-detail__line,
  .products-inquiry__button,
  .product-card__arrow,
  .contact-action__label,
  .contact-action__arrow,
  .contact-website,
  .contact-website__icon,
  .contact-website__label,
  .site-footer__label
) {
  font-family: var(--font-sans) !important;
  font-weight: 400;
}

.page :where(.topbar-nav__link) {
  font-size: clamp(0.7rem, 0.86vw, 0.86rem) !important;
  letter-spacing: 0.15em !important;
}

.page :where(
  .home-hero__eyebrow,
  .products-intro__eyebrow,
  .about-hero__eyebrow,
  .contact-eyebrow,
  .product-detail__eyebrow
) {
  font-family: var(--font-sans) !important;
  font-size: var(--type-label) !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  letter-spacing: 0.24em !important;
}

/* One shared primary-title specification across every page. */
.page :where(
  .home-hero h1,
  .products-intro h1,
  .about-hero h1,
  .contact-title,
  .product-collection__intro h1
) {
  font-family: var(--font-display) !important;
  font-size: var(--type-hero) !important;
  font-weight: 400 !important;
  line-height: 0.96 !important;
  letter-spacing: -0.047em !important;
}

.page--products .products-intro h1 {
  font-weight: 400 !important;
}

.page--about .about-panel h2 {
  font-family: var(--font-display) !important;
  font-size: var(--type-section) !important;
  font-weight: 500 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.03em !important;
}

.page :where(
  .home-hero__lead,
  .products-intro__lead,
  .about-hero__lead,
  .contact-lead
) {
  font-family: var(--font-sans) !important;
  font-size: var(--type-lead) !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
  letter-spacing: 0 !important;
}

/* Secondary titles and card names share one editorial scale. */
.page :where(
  .product-card__name,
  .about-panel h2,
  .contact-company h2,
  .products-inquiry__copy strong,
  .product-tile .product-detail__name
) {
  font-family: var(--font-display) !important;
  font-size: var(--type-section) !important;
  font-weight: 500 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.03em !important;
}

.page .product-detail__card .product-detail__name {
  font-family: var(--font-display) !important;
  font-size: clamp(2.35rem, 3.7vw, 3.9rem) !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  letter-spacing: -0.04em !important;
}

/* Body copy: one size, one weight and one line-height. */
.page :where(
  .products-intro__lead,
  .product-card__desc,
  .products-inquiry__copy p,
  .about-hero__lead,
  .about-panel p,
  .contact-lead,
  .contact-company address,
  .contact-action__text strong,
  .contact-website strong,
  .product-detail__desc,
  .product-detail__size,
  .product-collection__intro p:not(.product-detail__eyebrow),
  .site-footer__text
) {
  font-family: var(--font-sans) !important;
  font-size: var(--type-body) !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
}

.page :where(
  .products-trust__item p,
  .about-fact p,
  .product-card__number,
  .product-detail__tag,
  .product-detail__size > span,
  .product-detail__spec > span,
  .products-filter__btn,
  .site-footer__label
) {
  font-family: var(--font-sans) !important;
  font-size: var(--type-small) !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
}

.contact-action__text strong {
  overflow-wrap: anywhere;
  font-size: clamp(1.05rem, 1.6vw, 1.55rem) !important;
  letter-spacing: -0.02em !important;
}

/* Thai requires more vertical room so vowels and tone marks never collide. */
html[lang="th"] body,
html[lang="th"] body :where(h1, h2, h3, h4, p, a, button, span, strong, address) {
  font-family: "Sarabun", "TH Sarabun New", sans-serif !important;
}

html[lang="th"] .page :where(
  .home-hero h1,
  .products-intro h1,
  .about-hero h1,
  .contact-title,
  .product-collection__intro h1,
  .product-detail__name,
  .product-card__name,
  .about-panel h2,
  .contact-company h2
) {
  font-weight: 600 !important;
  line-height: 1.24 !important;
  letter-spacing: 0 !important;
}

/* Match Thai product-card titles to the EN/KO medium weight. */
html[lang="th"] .page--products .product-card__name {
  font-weight: 500 !important;
}

html[lang="th"] .page :where(p, address, .nav__link, .topbar-nav__link, .products-filter__btn) {
  line-height: 1.72 !important;
  letter-spacing: 0 !important;
}

/* Korean keeps the same editorial hierarchy with a dedicated Hangul pairing. */
html[lang="ko"] body,
html[lang="ko"] body :where(p, a, button, span, strong, address, input, select, textarea) {
  font-family: var(--font-ko-sans) !important;
  word-break: keep-all;
  overflow-wrap: break-word;
}

html[lang="ko"] .page :where(
  .home-hero h1,
  .products-intro h1,
  .about-hero h1[data-i18n],
  .contact-title,
  .product-collection__intro h1,
  .about-panel h2
) {
  font-family: var(--font-ko-display) !important;
  font-weight: 500 !important;
  line-height: 1.18 !important;
  letter-spacing: -0.035em !important;
  word-break: keep-all;
}

/* Match the three primary Korean page titles to the home headline scale. */
html[lang="ko"] .page--home .home-hero h1[data-i18n="homeTitle"],
html[lang="ko"] .page--products .products-intro h1[data-i18n="productsTitleFull"],
html[lang="ko"] .page--contact .contact-title[data-i18n="contactHeroTitle"] {
  font-size: clamp(2.05rem, 2.75vw, 2.85rem) !important;
  white-space: nowrap;
}

html[lang="ko"] .page--products .products-intro h1[data-i18n="productsTitleFull"] {
  max-width: none !important;
}

@media (min-width: 961px) and (max-width: 1180px) {
  html[lang="ko"] .page--home .home-hero h1[data-i18n="homeTitle"],
  html[lang="ko"] .page--products .products-intro h1[data-i18n="productsTitleFull"],
  html[lang="ko"] .page--contact .contact-title[data-i18n="contactHeroTitle"] {
    font-size: clamp(1.95rem, 3vw, 2.35rem) !important;
  }
}

@media (max-width: 960px) {
  html[lang="ko"] .page--home .home-hero h1[data-i18n="homeTitle"],
  html[lang="ko"] .page--products .products-intro h1[data-i18n="productsTitleFull"],
  html[lang="ko"] .page--contact .contact-title[data-i18n="contactHeroTitle"] {
    font-size: clamp(2rem, 5vw, 2.7rem) !important;
  }
}

@media (max-width: 600px) {
  html[lang="ko"] .page--home .home-hero h1[data-i18n="homeTitle"],
  html[lang="ko"] .page--products .products-intro h1[data-i18n="productsTitleFull"],
  html[lang="ko"] .page--contact .contact-title[data-i18n="contactHeroTitle"] {
    font-size: clamp(1.05rem, 5.6vw, 1.45rem) !important;
    letter-spacing: -0.045em !important;
  }
}

/* Use the English lead scale in every language. */
html[data-content-lang] .page--home .home-hero__lead {
  font-size: var(--type-lead) !important;
}

.page--home .home-hero__keep {
  white-space: nowrap;
}

/* Keep each approved semantic phrase on one line on laptop and desktop. */
@media (min-width: 769px) {
  .page--home .home-hero__content {
    width: min(92%, 96rem);
  }

  .page--home .home-hero__lead {
    max-width: none !important;
  }

  .page--home .home-hero__lead-line {
    display: inline-block;
    white-space: nowrap;
  }
}

html[lang="ko"] .page :where(
  .topbar-nav__link,
  .nav__link,
  .products-filter__btn,
  .home-hero__eyebrow,
  .products-intro__eyebrow,
  .about-hero__eyebrow,
  .contact-eyebrow,
  .product-detail__eyebrow
) {
  letter-spacing: 0 !important;
}

html[lang="ko"] .page :where(
  .home-hero__lead,
  .products-intro__lead,
  .product-card__desc,
  .products-inquiry__copy p,
  .about-hero__lead,
  .about-panel p,
  .contact-lead,
  .contact-company address,
  .product-collection__intro p,
  .product-detail__desc,
  .product-detail__size,
  .site-footer__text
) {
  line-height: 1.72 !important;
}

@media (max-width: 600px) {
  :root {
    --type-hero: clamp(2.35rem, 11.5vw, 3.25rem);
    --type-lead: clamp(0.82rem, 3.2vw, 0.94rem);
    --type-section: clamp(1.3rem, 6vw, 1.75rem);
    --type-body: clamp(0.8rem, 3.35vw, 0.92rem);
  }

  .page--about .about-hero h1 {
    font-size: clamp(1.65rem, 6.8vw, 2.4rem) !important;
    white-space: nowrap;
  }

  html[lang="th"] .page--about .about-hero h1 {
    white-space: normal;
  }

  html[lang="ko"] .page :where(
    .home-hero h1,
    .products-intro h1,
    .about-hero h1[data-i18n],
    .contact-title,
    .product-collection__intro h1
  ) {
    line-height: 1.24 !important;
  }

  html[lang="ko"] .page--about .about-hero h1[data-i18n] {
    white-space: normal;
  }
}

/* Match every mobile language to the English home-page type scale. */
@media (max-width: 600px) {
  html[data-content-lang] .page--home .home-hero__eyebrow {
    font-size: var(--type-label) !important;
  }

  html[data-content-lang] .page--home .home-hero h1[data-i18n="homeTitle"] {
    font-size: var(--type-hero) !important;
    white-space: normal !important;
  }

  html[data-content-lang] .page--home .home-trust__item p {
    font-size: clamp(0.58rem, 0.72vw, 0.74rem) !important;
  }
}

/* Page-specific primary-title refinement. */
.page--products .products-intro h1 {
  font-size: clamp(2.3rem, 3.35vw, 3.45rem) !important;
  line-height: 0.98 !important;
}

html[lang="th"] .page--products .products-intro h1[data-i18n="productsTitleFull"] {
  font-size: clamp(1.9rem, 2.45vw, 2.75rem) !important;
}

html[lang="ko"] .page--products .products-intro h1[data-i18n="productsTitleFull"] {
  font-size: clamp(1.95rem, 2.45vw, 2.7rem) !important;
}

.page--about .about-hero h1.company-name-en,
html[lang="th"] .page--about .about-hero h1.company-name-en,
html[lang="ko"] .page--about .about-hero h1.company-name-en {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  font-size: clamp(2.35rem, 3.45vw, 3.35rem) !important;
  font-weight: 400 !important;
  font-synthesis: none;
  line-height: 0.96 !important;
  letter-spacing: -0.04em !important;
  word-break: normal !important;
  white-space: nowrap !important;
}

@media (max-width: 960px) {
  .page--about .about-hero h1.company-name-en,
  html[lang="th"] .page--about .about-hero h1.company-name-en,
  html[lang="ko"] .page--about .about-hero h1.company-name-en {
    font-size: clamp(2.05rem, 4.8vw, 2.75rem) !important;
  }
}

@media (max-width: 600px) {
  .page--products .products-intro h1 {
    font-size: clamp(1.8rem, 7.8vw, 2.2rem) !important;
  }

  html[lang="th"] .page--products .products-intro h1[data-i18n="productsTitleFull"] {
    font-size: clamp(1.65rem, 6.8vw, 2rem) !important;
  }

  html[lang="ko"] .page--products .products-intro h1[data-i18n="productsTitleFull"] {
    font-size: clamp(1.3rem, 5.2vw, 1.55rem) !important;
  }

  .page--about .about-hero h1.company-name-en,
  html[lang="th"] .page--about .about-hero h1.company-name-en,
  html[lang="ko"] .page--about .about-hero h1.company-name-en {
    font-size: clamp(1.7rem, 7vw, 2.05rem) !important;
  }
}

