@font-face {
  font-family: "Noto Sans Thai";
  src: url("../assets/fonts/NotoSansThai.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #171717;
  --ink-soft: #2e2d29;
  --yellow: #ffd51b;
  --yellow-soft: #fff4ae;
  --cream: #fffbef;
  --surface: #f7f4eb;
  --white: #ffffff;
  --muted: #5b5a55;
  --line: #e4dfd2;
  --container: 1180px;
  --shadow: 0 22px 65px rgba(23, 23, 23, .08);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: "Noto Sans Thai", system-ui, sans-serif; font-size: 16px; line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { touch-action: manipulation; }
button { font: inherit; }
:focus-visible { outline: 3px solid #7c5800; outline-offset: 4px; }
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 1000; background: var(--yellow); padding: 12px 18px; border-radius: 8px; font-weight: 800; }
.skip-link:focus { top: 16px; }
.cms-multiline { white-space: pre-line; }
section[id], .site-footer[id] { scroll-margin-top: 96px; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 251, 239, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; flex: 0 0 auto; color: var(--ink); text-decoration: none; line-height: .83; }
.brand img { display: block; width: 108px; height: auto; }
.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav a { min-height: 46px; display: inline-flex; align-items: center; padding: 9px 0; font-size: 14px; font-weight: 750; text-decoration: none; transition: color .2s ease; }
.primary-nav a:hover { color: #856b00; }
.primary-nav .nav-cta { min-height: 44px; margin-left: 8px; padding: 9px 18px; border-radius: 999px; background: var(--ink); color: var(--white); }
.primary-nav .nav-cta:hover { background: #454238; color: var(--white); }
.menu-button { width: 46px; height: 46px; display: none; place-items: center; border: 1px solid var(--ink); border-radius: 50%; color: var(--ink); background: transparent; cursor: pointer; }
.menu-button svg { width: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.hero { padding: clamp(58px, 6vw, 96px) 0 92px; background: var(--cream); }
.hero-intro { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(270px, .55fr); align-items: end; gap: 60px; margin-bottom: 54px; }
.eyebrow { display: block; margin-bottom: 16px; color: #806600; font-size: 12px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.hero-intro h1 { margin: 0; max-width: 900px; font-size: clamp(48px, 6.7vw, 96px); line-height: 1.06; letter-spacing: -.065em; font-weight: 900; }
.hero-intro h1 .hero-title-highlight { position: relative; z-index: 0; white-space: nowrap; }
.hero-intro h1 .hero-title-highlight::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: .03em; height: .2em; background: var(--yellow); }
.hero-intro-side { padding-bottom: 8px; }
.hero-intro-side p { max-width: 360px; margin: 0 0 16px; color: var(--muted); font-size: 17px; }
.hero-showcase { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.hero-panel { min-width: 0; overflow: hidden; border: 1px solid rgba(23,23,23,.12); border-radius: 22px; background: var(--white); box-shadow: var(--shadow); }
.hero-image { height: clamp(265px, 29vw, 365px); border-radius: 0; }
.hero-eyewear .hero-image { background: #f5de65; }
.hero-footwear .hero-image { background: #e7ddd0; }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 20px; align-items: end; padding: 24px 28px 28px; }
.hero-kicker { grid-column: 1 / -1; color: #756d59; font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.hero-copy strong { grid-column: 1; font-family: Arial, sans-serif; font-size: clamp(29px, 3vw, 42px); line-height: 1; font-weight: 900; letter-spacing: -.055em; }
.hero-copy p { grid-column: 1; margin: 7px 0 0; color: var(--muted); font-size: 15px; }
.hero-copy a { grid-column: 2; grid-row: 2 / 4; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 45px; padding: 8px 16px; border-radius: 999px; color: var(--ink); background: var(--yellow); font-size: 14px; font-weight: 800; text-decoration: none; white-space: nowrap; transition: transform .2s ease, background-color .2s ease; }
.hero-copy a:hover { transform: translateY(-2px); background: #f0c512; }

.image-slot { position: relative; min-width: 0; margin: 0; overflow: hidden; display: grid; place-items: center; background: var(--surface); border-radius: 16px; }
.image-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.image-slot figcaption { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 100%; padding: 24px; text-align: center; }
.image-slot figcaption b { font-family: Arial, "Noto Sans Thai", sans-serif; font-size: clamp(22px, 3vw, 38px); line-height: 1.1; font-weight: 900; letter-spacing: -.04em; }
.image-slot figcaption span:not(.placeholder-art) { font-size: 13px; font-weight: 650; letter-spacing: .08em; }
.image-slot.has-image figcaption, .image-slot:not(.has-image) img { display: none; }
.image-slot.has-image { background: #e3e0d6; }
.placeholder-art { display: block; width: min(75%, 390px); height: min(78%, 290px); background: center / contain no-repeat url("../assets/illustrations/eyewear.svg"); }
.hero-footwear .placeholder-art, #footwear-products .placeholder-art { background-image: url("../assets/illustrations/footwear.svg"); }
.placeholder-label { display: block; color: rgba(23,23,23,.75); font-family: Arial, sans-serif; font-size: 11px !important; font-weight: 900 !important; letter-spacing: .2em !important; }

.section { padding: clamp(80px, 8vw, 128px) 0; }
.section h2 { margin: 0; font-size: clamp(36px, 4.5vw, 64px); line-height: 1.15; letter-spacing: -.045em; font-weight: 850; }
.section-copy > p { max-width: 610px; margin: 24px 0; color: var(--muted); font-size: 17px; }
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(45px, 7vw, 100px); align-items: center; }
.check-list { margin: 34px 0; padding: 0; list-style: none; }
.check-list li { position: relative; margin: 13px 0; padding-left: 32px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #9a7d00; font-weight: 900; }
.text-link { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; color: var(--ink); font-weight: 850; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.text-link:hover { color: #856b00; }
.about-media { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 12px; height: 525px; }
.image-slot-main { grid-row: 1 / 3; background: #f3df70; }
.image-slot-main figcaption { position: relative; gap: 14px; padding: 30px; background: radial-gradient(circle at 80% 25%, #fff7c5, transparent 45%); }
.image-slot-main figcaption::before { content: "T"; display: grid; place-items: center; width: 180px; height: 180px; border: 4px solid var(--ink); border-radius: 50%; font-family: Arial, sans-serif; font-size: 130px; font-weight: 1000; letter-spacing: -.1em; line-height: 1; }
.image-slot-small { background: #eee9de; }
.image-slot-small:last-child { background: #e9e5d8; }
.image-slot-small figcaption b { font-size: 30px; }
.image-slot-small figcaption span { max-width: 150px; }

.products { background: var(--surface); }
.section-heading { max-width: 760px; margin-bottom: 52px; }
.section-heading > p { margin: 18px 0 0; color: var(--muted); font-size: 17px; }
.product-group { margin-top: 22px; padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line); border-radius: 24px; background: var(--white); }
.product-group + .product-group { margin-top: 28px; }
.product-group-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.product-group-heading > div { display: flex; align-items: center; gap: 18px; }
.product-group-heading span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); font-family: Arial, sans-serif; font-size: 12px; font-weight: 900; }
.product-group-heading h3 { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1; }
.product-group-heading p { max-width: 370px; margin: 0; color: var(--muted); font-size: 15px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--white); transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-image { aspect-ratio: 4 / 3; border-radius: 0; background: #f6edc7; }
.product-card:nth-child(2) .product-image { background: #eee7d7; }
.product-card:nth-child(3) .product-image { background: #e6dfcb; }
.product-image .placeholder-art { width: 72%; height: 80%; }
.product-image .placeholder-label { margin-top: -10px; }
.product-card > div { padding: 20px 20px 23px; }
.product-card h4 { margin: 0; font-size: 20px; line-height: 1.35; }
.product-card p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.cms-gallery { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); }
.cms-gallery h3 { margin: 0 0 16px; font-size: clamp(18px, 2vw, 24px); }
.cms-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cms-gallery-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; background: var(--surface); }

.consignment { position: relative; overflow: hidden; background: var(--yellow); }
.consignment::after { content: "TARI"; position: absolute; right: -32px; bottom: -105px; color: rgba(23,23,23,.055); font-family: Arial, sans-serif; font-size: clamp(180px, 25vw, 340px); font-weight: 1000; line-height: 1; letter-spacing: -.1em; pointer-events: none; }
.section-heading-light { position: relative; z-index: 1; }
.section-heading-light .eyebrow { color: #5b4a00; }
.section-heading-light > p { color: #3e390f; }
.benefit-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.benefit-grid article { min-height: 252px; padding: 26px; border: 1px solid rgba(23,23,23,.09); border-radius: 16px; background: rgba(255,255,255,.9); }
.benefit-number { display: block; margin-bottom: 38px; color: #806600; font-family: Arial, sans-serif; font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.benefit-grid h3 { margin: 0; font-size: 21px; line-height: 1.3; }
.benefit-grid p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; margin-top: 34px; padding: 10px 22px; border-radius: 999px; font-weight: 850; text-decoration: none; transition: transform .2s ease, background-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-light { position: relative; z-index: 1; color: var(--white); background: var(--ink); }
.button-light:hover { background: #454238; }

.quality { background: var(--white); }
.quality-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(45px, 7vw, 94px); align-items: center; }
.quality-media { aspect-ratio: 5 / 4; background: #eee9d9; }
.quality-media figcaption { background: radial-gradient(circle at 50% 45%, #fff7d2, transparent 53%); }
.quality-media figcaption::before { content: "TARI"; display: grid; place-items: center; width: min(74%, 360px); aspect-ratio: 1; border: 1px solid #b8ae94; border-radius: 50%; font-family: Arial, sans-serif; font-size: clamp(40px, 6vw, 80px); font-weight: 1000; letter-spacing: -.1em; }
.quality-media figcaption b { font-size: 16px; letter-spacing: .12em; }
.quality-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 34px; }
.quality-stats div { padding-top: 16px; border-top: 2px solid var(--yellow); }
.quality-stats strong, .quality-stats span { display: block; }
.quality-stats strong { font-size: 21px; }
.quality-stats span { margin-top: 4px; color: var(--muted); font-size: 13px; }

.faq { background: var(--surface); }
.faq-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(44px, 7vw, 100px); align-items: start; }
.accordion { border-top: 1px solid #cfc9ba; }
.accordion details { border-bottom: 1px solid #cfc9ba; }
.accordion summary { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 4px; list-style: none; cursor: pointer; font-size: 18px; font-weight: 750; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; flex: 0 0 auto; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--white); font-family: Arial, sans-serif; font-size: 23px; font-weight: 400; transition: transform .2s ease, background-color .2s ease; }
.accordion details[open] summary::after { transform: rotate(45deg); background: var(--yellow); }
.accordion details p { margin: 0; padding: 0 50px 24px 4px; color: var(--muted); }

.site-footer { padding: 78px 0 22px; color: var(--white); background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 50px; }
.brand-footer { width: fit-content; margin-bottom: 30px; padding: 10px 14px; border-radius: 12px; background: var(--yellow); }
.brand-footer img { width: 145px; }
.site-footer h2 { margin: 0 0 16px; font-size: 17px; }
.site-footer p { margin: 7px 0; }
.footer-muted { max-width: 250px; color: #b9b8b2; }
.footer-grid > div > a:not(.brand), .social-links a { min-height: 40px; display: flex; align-items: center; width: fit-content; color: #e9e8e2; text-underline-offset: 4px; }
.footer-grid > div > a:not(.brand):hover, .social-links a:hover { color: var(--yellow); }
.social-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 62px; padding-top: 20px; border-top: 1px solid #45443f; color: #aaa9a3; font-size: 13px; }
.footer-bottom a { color: #e9e8e2; }

.contact-widget { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 200; }
.contact-widget-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 21px; border: 2px solid var(--ink); border-radius: 999px; color: var(--ink); background: var(--yellow); box-shadow: 0 12px 32px rgba(23,23,23,.23); font-size: 16px; font-weight: 850; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.contact-widget-toggle:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(23,23,23,.28); }
.contact-widget-toggle svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-popover { position: absolute; right: 0; bottom: calc(100% + 12px); width: min(370px, calc(100vw - 32px)); max-height: min(70vh, 560px); max-height: min(70dvh, 560px); overflow-y: auto; padding: 23px; border: 1px solid var(--line); border-radius: 22px; background: var(--white); box-shadow: 0 20px 65px rgba(23,23,23,.24); }
.contact-popover-header { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.contact-popover-eyebrow { color: #6f5900; font: 900 11px Arial, sans-serif; letter-spacing: .14em; }
.contact-popover h2 { margin: 2px 0 0; font-size: 27px; line-height: 1.3; }
.contact-popover p { margin: 12px 0 18px; color: var(--muted); font-size: 14px; }
.contact-popover-close { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); font: 28px/1 Arial, sans-serif; cursor: pointer; }
.contact-popover-close:hover { background: var(--yellow); }
.contact-popover-links { display: grid; gap: 9px; }
.contact-popover-links a { display: flex; align-items: center; min-height: 48px; padding: 10px 15px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--cream); font-size: 14px; font-weight: 750; text-decoration: none; overflow-wrap: anywhere; }
.contact-popover-links a:hover { border-color: #d6ad00; background: var(--yellow-soft); }
.contact-popover-more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 13px; font-size: 13px; font-weight: 800; text-underline-offset: 4px; }

.privacy-page { background: var(--surface); }
.privacy-back { margin-top: 0; }
.privacy-main { min-height: 70vh; padding: 78px 0 110px; }
.privacy-card { max-width: 900px; padding: clamp(28px, 5vw, 64px); border: 1px solid var(--line); border-radius: 22px; background: var(--white); }
.privacy-card h1 { margin: 8px 0 28px; font-size: clamp(36px, 5vw, 60px); line-height: 1.12; letter-spacing: -.045em; }
.privacy-card h2 { margin: 40px 0 10px; font-size: 23px; }
.privacy-card p, .privacy-card li { color: #45443f; }

@media (max-width: 1050px) {
  .hero-intro { gap: 30px; }
  .hero-copy { grid-template-columns: 1fr; }
  .hero-copy a { grid-column: 1; grid-row: auto; width: fit-content; margin-top: 10px; }
  .benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .header-inner { min-height: 70px; }
  .menu-button { display: grid; }
  .primary-nav { position: absolute; inset: 70px 0 auto 0; display: none; flex-direction: column; align-items: stretch; gap: 4px; padding: 16px 24px 22px; border-bottom: 1px solid var(--line); background: var(--cream); box-shadow: 0 20px 30px rgba(23,23,23,.08); }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { justify-content: center; }
  .primary-nav .nav-cta { margin: 8px 0 0; }
  .hero-intro { grid-template-columns: 1fr; gap: 20px; }
  .hero-intro-side p { max-width: 550px; }
  .about-grid, .quality-grid, .faq-grid { grid-template-columns: 1fr; }
  .about-media { height: 470px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-card:last-child { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .contact-widget { right: max(16px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); }
  .contact-widget-toggle { min-height: 52px; padding-inline: 17px; font-size: 14px; }
  .contact-popover { padding: 20px; }
  .container { width: min(calc(100% - 32px), var(--container)); }
  .hero { padding: 46px 0 66px; }
  .hero-intro { margin-bottom: 34px; }
  .hero-intro h1 { font-size: clamp(43px, 11vw, 62px); }
  .hero-intro h1 .hero-title-highlight { white-space: normal; }
  .hero-showcase { grid-template-columns: 1fr; gap: 18px; }
  .hero-image { height: 265px; }
  .hero-copy { padding: 20px 22px 25px; }
  .section { padding: 70px 0; }
  .section h2 { font-size: clamp(34px, 9vw, 46px); }
  .about-media { height: 420px; gap: 8px; }
  .image-slot-main figcaption::before { width: 125px; height: 125px; font-size: 90px; }
  .image-slot-small figcaption b { font-size: 20px; }
  .image-slot-small figcaption span { font-size: 11px !important; }
  .product-group { padding: 18px; border-radius: 19px; }
  .product-group-heading { align-items: start; flex-direction: column; gap: 14px; }
  .product-grid, .benefit-grid, .cms-gallery-grid { grid-template-columns: 1fr; }
  .product-card:last-child { grid-column: auto; }
  .benefit-grid article { min-height: 0; }
  .benefit-number { margin-bottom: 24px; }
  .quality-stats { grid-template-columns: 1fr; }
  .quality-stats div { padding-top: 10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 10px; margin-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
