@font-face {
  font-family: Geist;
  src: url("/assets/geist.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: Anuphan;
  src: url("/assets/anuphan-thai-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC;
}

@font-face {
  font-family: Anuphan;
  src: url("/assets/anuphan-thai-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC;
}

:root {
  color-scheme: light dark;
  --page: light-dark(#f8f8f7, #111110);
  --surface: light-dark(#fff, #1b1b1a);
  --ink: light-dark(#161615, #fafaf8);
  --muted: light-dark(#525250, #b8b8b4);
  --headline-soft: light-dark(#636361, #a9a9a4);
  --line: light-dark(#deded9, #353533);
  --chip: light-dark(#f1f1ef, #282827);
  --hover-surface: light-dark(#fdfdfc, #252524);
  --hover-line: light-dark(#b7b7b2, #666660);
  --inverse: light-dark(#fff, #161615);
  --focus: light-dark(#202021, #f7f7f4);
  font-family: Geist, Anuphan, system-ui, sans-serif;
}

:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] { display: none !important; }

html { scroll-padding-top: 24px; }

body {
  min-width: 0;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

h1, h2, p { margin: 0; }

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

:where(a, input, button):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.icon {
  display: inline-block;
  flex: none;
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

.brand-mark {
  fill: currentColor;
  stroke: none;
}

.skip-link {
  position: fixed;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--ink);
  color: var(--inverse);
}

.skip-link:focus { transform: translateY(0); }

.shell {
  width: min(1184px, calc(100% - clamp(32px, 8vw - 16px, 80px)));
  margin-inline: auto;
}

.site-header {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.wordmark {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.wordmark img {
  display: block;
  width: clamp(130px, 15vw, 187px);
  height: auto;
}

:root[data-theme="dark"] .wordmark img { filter: invert(1); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .wordmark img { filter: invert(1); }
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-switch {
  display: grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.language-switch:hover {
  background: var(--hover-surface);
  border-color: var(--hover-line);
  color: var(--ink);
}

.theme-switch {
  --theme-size: 42px;
  --theme-gap: 1px;
  --glass-edge: light-dark(rgb(255 255 255 / 90%), rgb(255 255 255 / 18%));
  --glass-shade: light-dark(rgb(22 22 21 / 14%), rgb(0 0 0 / 50%));
  position: relative;
  display: flex;
  isolation: isolate;
  min-inline-size: 0;
  margin: 0;
  padding: 2px;
  gap: var(--theme-gap);
  border: 1px solid var(--line);
  border-radius: 100px;
  background: linear-gradient(150deg, var(--glass-edge), transparent 66%), var(--chip);
  box-shadow: inset 0 1px 0 var(--glass-edge), 0 2px 5px light-dark(rgb(22 22 21 / 6%), rgb(0 0 0 / 22%));
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-touch-callout: none;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .theme-switch {
    background: linear-gradient(150deg, var(--glass-edge), transparent 66%),
      light-dark(rgb(229 229 225 / 53%), rgb(46 46 44 / 56%));
    -webkit-backdrop-filter: blur(16px) saturate(125%);
    backdrop-filter: blur(16px) saturate(125%);
  }
}

.theme-switch::before {
  position: absolute;
  inset-block: 2px;
  left: 2px;
  width: var(--theme-size);
  translate: calc(var(--theme-position, 0) * (var(--theme-size) + var(--theme-gap))) 0;
  border: 1px solid var(--glass-edge);
  border-radius: 100px;
  background: linear-gradient(155deg, light-dark(#fff, #4b4b47), light-dark(#f0f0ed, #292928));
  box-shadow: inset 0 -1px 2px var(--glass-shade), 0 2px 5px var(--glass-shade);
  pointer-events: none;
  content: "";
}

.theme-switch.is-pressed::before {
  background: linear-gradient(155deg, light-dark(#fff, #575752), light-dark(#f7f7f4, #30302f));
  box-shadow: inset 0 1px 2px var(--glass-edge), 0 4px 9px var(--glass-shade);
}

.theme-switch label {
  position: relative;
  display: block;
  cursor: pointer;
}

.theme-switch input {
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: inherit;
}

.theme-switch span {
  display: grid;
  width: var(--theme-size);
  height: 42px;
  place-items: center;
  border-radius: 100px;
  color: var(--muted);
}

.theme-switch label:hover span { color: var(--ink); }

.theme-switch .icon { width: 17px; height: 17px; }

.theme-switch:not(.is-dragging) input:checked + span,
.theme-switch .is-preview span {
  color: var(--ink);
}

.theme-switch input:focus-visible + span {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.97fr) minmax(0, 1.03fr);
  min-height: 462px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(27px, 4vw, 59px);
  padding-right: clamp(22px, 3vw, 44px);
}

.location {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 610;
  letter-spacing: 0.13em;
  line-height: 1.35;
  text-transform: uppercase;
}

.location .icon {
  width: 15px;
  height: 15px;
}

.hero h1 {
  font-size: clamp(3.2rem, 6.75vw, 6.05rem);
  font-weight: 640;
  letter-spacing: -0.073em;
  line-height: 0.94;
}

.hero-accent { color: var(--headline-soft); }

html:lang(th) .hero h1 {
  font-size: clamp(3.05rem, 6.25vw, 5.65rem);
  font-weight: 600;
  line-height: 1.09;
}

html:lang(th) :is(.location, .hero h1, .links-section h2, .card-text strong) {
  letter-spacing: normal;
}

html:lang(th) .location { font-size: 13px; }

.intro {
  margin-top: 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
  margin-top: 29px;
}

.hero-actions .line-button { margin-top: 0; }

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.text-link:hover { color: var(--ink); }
.text-link .icon { width: 16px; height: 16px; }
.text-link .brand-mark { width: 20px; height: 20px; }

.line-button {
  display: inline-flex;
  min-width: 164px;
  min-height: 56px;
  align-items: center;
  gap: 10px;
  margin-top: 29px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: var(--ink);
  color: var(--inverse);
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
}

.line-button .brand-mark {
  width: 25px;
  height: 25px;
}

.line-button .arrow {
  width: 16px;
  height: 16px;
  margin-left: auto;
}

.line-button:hover {
  border-color: var(--ink);
  background: var(--surface);
  color: var(--ink);
}

.hero-image {
  display: grid;
  min-width: 0;
  place-items: center;
  padding: clamp(14px, 2vw, 24px) clamp(14px, 2vw, 24px) clamp(14px, 2vw, 24px) 0;
}

.hero-image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 480px;
  border-radius: 12px;
}

.photo-carousel {
  display: grid;
  min-width: 0;
  align-content: center;
  padding-block: clamp(14px, 2vw, 24px);
}

.photo-track {
  --photo-peek: 6%;
  position: relative;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0;
  padding: 0 var(--photo-peek);
  list-style: none;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  scroll-padding-inline: var(--photo-peek);
  scroll-snap-type: x mandatory;
}

.photo-track::-webkit-scrollbar { display: none; }
.photo-track:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.photo-track li { flex: 0 0 100%; scroll-snap-align: start; }
.photo-track img { display: block; width: 100%; height: auto; border-radius: 12px; }

.photo-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.photo-controls[hidden] { display: none; }
.photo-controls button:focus-visible { outline-offset: -3px; }

.photo-dots,
.photo-playback {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--chip);
}

.photo-dots { padding-inline: 8px; }
.photo-controls button { cursor: pointer; color: var(--ink); }

.photo-dots button {
  display: grid;
  width: 30px;
  min-height: 42px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 100px;
  background: transparent;
}

.photo-dots button[aria-pressed="true"] { width: 44px; }

.photo-dots button > span {
  display: block;
  width: 7px;
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--muted);
}

.photo-dots button[aria-pressed="true"] > span { width: 27px; }
.photo-dots i { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.photo-playback { width: 44px; padding: 0; }
.photo-playback .icon { width: 18px; height: 18px; }
.photo-playback .play-icon,
.photo-playback[data-paused] .pause-icon { display: none; }
.photo-playback[data-paused] .play-icon { display: block; }

.links-section { margin-top: 36px; }

.links-section h2 {
  margin-bottom: 11px;
  font-size: 21px;
  font-weight: 625;
  letter-spacing: -0.042em;
}

.visit-grid,
.social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.social-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-card {
  display: flex;
  min-height: 89px;
  align-items: center;
  gap: 15px;
  height: 100%;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.link-card:hover {
  border-color: var(--hover-line);
  background: var(--hover-surface);
}

.card-icon {
  display: grid;
  flex: 0 0 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--chip);
}

.card-text {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 2px;
}

.card-text strong {
  font-size: 17px;
  font-weight: 625;
  letter-spacing: -0.027em;
  line-height: 1.3;
}

.card-text > span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.link-card .arrow {
  width: 17px;
  height: 17px;
  margin-left: auto;
  color: var(--muted);
}

.social-card {
  min-height: 78px;
  gap: 12px;
}

.social-card .card-icon {
  flex-basis: 42px;
  height: 42px;
}

.social-card .card-icon .icon {
  width: 21px;
  height: 21px;
}

.social-card .card-text strong { font-size: 16px; }

.section-heading {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.section-heading h2 { margin: 0; }

.offer-preview .offer-amount {
  margin-left: auto;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.045em;
  text-align: right;
  white-space: nowrap;
}

.price-prefix {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
  line-height: 1.3;
  letter-spacing: normal;
}

.offer-preview .arrow { margin-left: 0; }
.contacts-preview { height: auto; margin-top: 12px; }

.back-link { margin-bottom: 8px; }

.offers-hero h1,
html:lang(th) .offers-hero h1 {
  font-size: clamp(2.25rem, 5vw, 4.3rem);
  line-height: 1.12;
}

.catalog-section { margin-top: 44px; }

.catalog-section h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 630;
}

.package-grid,
.discount-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.discount-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-grid { align-items: start; }

.price-panel {
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.price-panel h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 630;
}

.package-panel {
  display: flex;
  align-items: center;
  gap: 12px;
}

.discount-logo {
  display: block;
  width: 100%;
  max-width: 160px;
  height: 62px;
  padding: 6px 10px;
  margin-bottom: 9px;
  border-radius: 9px;
  background: white;
  object-fit: contain;
}

.package-type {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
}

.package-price {
  margin-top: 9px;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  font-weight: 640;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.065em;
  line-height: 1;
}

.discount-grid li { display: grid; align-content: start; gap: 4px; }
.discount-grid li > span:not(.discount-rate) { color: var(--muted); font-size: 14px; }
.discount-rate { margin-bottom: 6px; font-size: clamp(1.25rem, 2.8vw, 2rem); font-weight: 630; }

.product-list { margin: 10px 0 0; }

.product-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 12px;
}

.product-list > div + div { border-top: 1px solid var(--line); }
.product-list > div:last-child { padding-bottom: 0; }
.product-list dt {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.product-list img,
.catalog-thumb {
  display: block;
  width: clamp(64px, 17vw, 116px);
  height: auto;
  flex: none;
  border-radius: 8px;
}

.product-list dt > span { overflow-wrap: anywhere; }
.product-list strong { display: block; font-size: 15px; font-weight: 620; }
.product-list small { color: var(--muted); font-size: 13px; }
.product-list dd { margin: 0; font-weight: 620; font-variant-numeric: tabular-nums; white-space: nowrap; }

.choose-tip {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.choose-tip strong { margin-inline-end: 4px; color: var(--ink); font-weight: 620; }
.price-panel .choose-tip { margin: 6px 0 0; }

.preorder-label {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--chip);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.acuvue-grid .bundle-prices { display: flex; flex-wrap: wrap; column-gap: 10px; }
.acuvue-grid dd { text-align: right; }

#contacts .section-heading { flex-wrap: wrap; column-gap: 12px; row-gap: 0; }

.catalog-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.site-footer {
  display: flex;
  min-height: 111px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 38px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer address {
  display: grid;
  gap: 3px;
  font-style: normal;
}

.site-footer strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 630;
}

.copyright { padding-bottom: 20px; color: var(--muted); font-size: 13px; }

.phone {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.phone .icon { width: 16px; height: 16px; }
.phone:hover { color: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  @keyframes rise-in {
    from { opacity: 0.55; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes photo-appear {
    from { opacity: 0.72; }
    to { opacity: 1; }
  }

  .hero-content > * {
    animation: rise-in 480ms cubic-bezier(0.22, 1, 0.36, 1) var(--entrance-delay, 0ms) backwards;
  }

  .hero h1 { --entrance-delay: 45ms; }
  .hero .intro { --entrance-delay: 90ms; }
  .hero-actions { --entrance-delay: 135ms; }

  .hero-image img {
    animation: photo-appear 550ms ease-out;
  }

  .photo-dots button,
  .photo-dots button > span { transition: width 280ms cubic-bezier(0.645, 0.045, 0.355, 1); }

  .link-card {
    animation: rise-in 440ms cubic-bezier(0.22, 1, 0.36, 1) var(--entrance-delay, 150ms) backwards;
  }

  .visit-grid > :nth-child(2),
  .social-grid > :nth-child(2) .link-card { --entrance-delay: 195ms; }

  .social-grid > :nth-child(3) .link-card { --entrance-delay: 240ms; }

  @supports (animation-timeline: view()) and (animation-range: entry 0% entry 75%) {
    .link-card {
      animation: rise-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 75%;
    }
  }

  .hero-actions:focus-within,
  .link-card:focus-visible { animation: none; }

  .link-card,
  .line-button,
  .language-switch,
  .theme-switch span {
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, translate 160ms ease;
  }

  .arrow { transition: translate 160ms ease; }

  .theme-switch::before {
    transition: translate 300ms cubic-bezier(0.22, 0.8, 0.2, 1),
      scale 180ms ease-out, box-shadow 180ms ease-out;
  }

  .theme-switch.is-pressed::before { scale: 1.08; }
  .theme-switch.is-dragging::before { transition-property: scale, box-shadow; }

  @media (hover: hover) and (pointer: fine) {
    :is(.link-card, .line-button):hover { translate: 0 -2px; }
    :is(.link-card, .line-button):hover .arrow { translate: 2px -2px; }
  }

  :is(.link-card, .line-button, .language-switch):active { translate: 0 1px; }
}

@media (max-width: 1000px) {
  .hero { min-height: 406px; }
  .discount-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .offer-grid, .social-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (701px <= width <= 820px) {
  .hero-content { padding-inline: 24px 16px; }
  .offers-hero h1, html:lang(th) .offers-hero h1 { font-size: clamp(2rem, 4.35vw, 2.25rem); }
}

@media (max-width: 700px) {
  .site-header { min-height: 72px; gap: 12px; }
  .header-controls { gap: 8px; }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    border-radius: 19px;
  }
  .hero-content { padding: 25px 23px 26px; }
  .location { margin-bottom: 17px; font-size: 10px; }
  .hero h1 { font-size: clamp(2.85rem, 13vw, 4.6rem); }
  html:lang(th) .hero h1 { font-size: clamp(2.65rem, 11.8vw, 4rem); }
  .intro { margin-top: 15px; font-size: 15px; }
  .desktop-break { display: none; }
  .line-button { min-height: 52px; margin-top: 20px; }
  .hero-actions { gap: 2px 14px; margin-top: 20px; }
  .hero-image { padding: 0 12px 12px; }
  .photo-carousel { padding-top: 0; }
  .links-section { margin-top: 26px; }
  .links-section h2 { font-size: 20px; }
  .links-section > h2 { margin-bottom: 9px; }
  .visit-grid { grid-template-columns: minmax(0, 1fr); }
  .visit-grid, .social-grid { gap: 8px; }
  .link-card { min-height: 74px; padding: 11px 12px; }
  .social-card { min-height: 65px; }
  .offer-preview { gap: 9px; }
  .offer-preview .arrow { width: 13px; height: 13px; }
  .contacts-preview { margin-top: 8px; }
  .catalog-section { margin-top: 32px; }
  .package-grid { grid-template-columns: minmax(0, 1fr); }
  .package-grid, .contact-grid { gap: 8px; }
  .discount-grid { gap: 8px; }
  .discount-grid .price-panel { padding: 12px; }
  .site-footer { margin-top: 26px; }
}

@media (max-width: 440px) {
  .offer-preview {
    display: grid;
    grid-template: "icon description arrow" auto "icon price arrow" auto / 48px minmax(0, 1fr) 13px;
    row-gap: 5px;
  }
  .offer-preview .card-icon { grid-area: icon; }
  .offer-preview .card-text { grid-area: description; }
  .offer-preview .offer-amount { grid-area: price; display: flex; align-items: baseline; gap: 6px; margin-left: 0; }
  .offer-preview .price-prefix { margin-bottom: 0; }
  .offer-preview .arrow { grid-area: arrow; }
}

@media (max-width: 390px) {
  .site-footer { flex-wrap: wrap; gap: 2px 18px; }
}

@media (max-width: 360px) {
  .site-header { gap: 8px; }
  .header-controls { gap: 6px; }
  .wordmark img { width: 108px; }
  .theme-switch { --theme-size: 37px; }
}
