/* Yunnan Farm (yunnanfarm.com)
   Look: white page, one brand colour (plateau indigo), serif headings, quiet type.
   Layout: compact, like a purchasing site. Search first, category icons, dense product cards,
   a full product directory, and an inquiry list that works like a basket.
   References: Hema (mobile), ASKUL, MonotaRO, Rakuten Mart; Sembikiya, Envy, Nakagawa Masashichi for the tone. */

:root {
  --indigo: #2230a8;
  --indigo-deep: #10164f;
  --sun: #ffd43a;
  --tomato: #d93025;
  --ink: #161a3a;
  --ink-soft: #5c6180;
  --line: #e1e3ee;
  --wash: #f4f5fa;
  --mist: var(--wash);
  --white: #fff;
  --display: "Fraunces", "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --body: "Figtree", "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --wrap: 1180px;
  --gut: clamp(14px, 3.4vw, 36px);
  --sec: clamp(30px, 4vw, 54px);
  --gap: clamp(10px, 1.3vw, 18px);
  --r: 12px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: rgba(34, 48, 168, .12); }

body {
  margin: 0;
  font-family: var(--body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { line-height: 1.6; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }

h1, h2 { font-family: var(--display); font-weight: 600; line-height: 1.28; letter-spacing: .01em; }
html[lang="en"] :is(h1, h2) { line-height: 1.14; letter-spacing: -.01em; }

h1, h2, h3, .hero-lede, .inquiry-lede { text-wrap: balance; }
html[lang="ja"] :is(h1, h2, h3, p, dd, li, strong, span) { word-break: auto-phrase; }

:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; box-shadow: 0 0 0 3px var(--ink); border-radius: 6px; }
[id] { scroll-margin-top: 88px; }
a, button, input, select, textarea, label { touch-action: manipulation; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--white); padding: 8px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }

/* placeholder block shown until a real photo is in static/img */
.ph { display: grid; place-items: center; width: 100%; height: 100%; min-height: 60px; background: var(--wash); color: var(--ink-soft); font-size: 12px; text-align: center; padding: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 10px 26px; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 600; font-size: 15px; line-height: 1.2; letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-sun, .btn-white { background: var(--white); color: var(--indigo); }
.btn-sun:hover, .btn-white:hover { background: var(--sun); color: var(--ink); }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--indigo); }
.btn-ink { border-color: var(--ink); color: var(--ink); }
.btn-ink:hover { background: var(--ink); color: var(--white); }
.btn-cat, .form .btn { background: var(--indigo); border-color: var(--indigo); color: var(--white); }
.btn-cat:hover, .form .btn:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; z-index: 40; top: 12px; left: 50%; transform: translateX(-50%);
  width: min(var(--wrap), 100% - 2 * var(--gut));
  display: flex; align-items: center; gap: 18px;
  padding: 6px 8px 6px 20px; border-radius: 999px;
  background: var(--white); box-shadow: 0 6px 24px rgba(22, 26, 58, .12);
}
/* the badge is taller than the bar on purpose, like a sticker stuck onto it */
.brand { display: inline-flex; flex: none; align-items: center; margin: -10px 0 -10px -12px; text-decoration: none; border-radius: 50%; }
.brand .logo { display: block; width: auto; height: 64px; filter: drop-shadow(0 3px 6px rgba(22, 26, 58, .18)); }
.topnav { margin-left: auto; }
.topnav ul { display: flex; gap: 2px; }
.topnav a { display: block; padding: 9px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px; line-height: 1.2; white-space: nowrap; }
.topnav a:hover { color: var(--indigo); background: var(--wash); }
.lang { position: relative; flex: none; }
.lang summary { display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px; border-radius: 999px; background: var(--wash); font-weight: 600; font-size: 13px; line-height: 1.2; white-space: nowrap; cursor: pointer; list-style: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang summary::after { content: ""; flex: none; width: 6px; height: 6px; margin-inline-start: 1px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: translateY(-2px) rotate(45deg); }
.lang[open] summary { background: var(--indigo); color: var(--white); }
.lang ul { position: absolute; z-index: 5; top: calc(100% + 10px); inset-inline-end: 0; min-width: 168px; margin: 0; padding: 6px; list-style: none; border-radius: 14px; background: var(--white); box-shadow: 0 12px 30px rgba(22, 26, 58, .2); }
.lang a { display: block; padding: 9px 12px; border-radius: 9px; text-decoration: none; font-weight: 600; font-size: 14px; line-height: 1.35; color: var(--ink); text-align: start; }
.lang a:hover { background: var(--wash); }
.lang a[aria-current="true"] { background: var(--indigo); color: var(--white); }
.menu-btn {
  display: none; flex: none; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border: 0; border-radius: 999px;
  background: var(--indigo); color: var(--white); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer;
}
.menu-btn i { display: block; width: 16px; height: 2px; background: currentColor; box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor; }

/* ---------- home hero: what the site is, and a search box ---------- */
.hero { background: var(--indigo); color: var(--white); padding: clamp(92px, 8.6vw, 120px) 0 clamp(22px, 3vw, 40px); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(20px, 3.6vw, 56px); align-items: center; }
.hero-badge { margin-bottom: 10px; font-size: 12.5px; font-weight: 500; line-height: 1.6; letter-spacing: .1em; opacity: .86; }
html[lang="en"] .hero-badge { letter-spacing: .03em; }
.hero h1 { font-size: clamp(30px, 4.5vw, 60px); line-height: 1.22; }
html[lang="en"] .hero h1 { font-size: clamp(28px, 3.7vw, 50px); line-height: 1.08; }
html[lang="ja"] .hero h1 { font-size: clamp(30px, 4.2vw, 56px); font-weight: 700; letter-spacing: .04em; }
.hero h1 span { display: block; }
.hero h1 .l2 { color: var(--sun); }
.hero-lede { max-width: 36em; margin-top: 12px; font-size: clamp(13.5px, 1.1vw, 15.5px); line-height: 1.8; opacity: .93; }
html[lang="en"] .hero-lede { line-height: 1.6; }
.search { display: flex; max-width: 520px; margin-top: 18px; padding: 4px; border-radius: 999px; background: var(--white); }
.search:focus-within { box-shadow: 0 0 0 3px var(--sun); }
.search input { flex: 1; min-width: 0; padding: 9px 8px 9px 18px; border: 0; background: none; font: inherit; font-size: 16px; line-height: 1.4; color: var(--ink); outline: none; }
.search input::placeholder { color: #686d8c; }
.search button { flex: none; padding: 0 24px; border: 0; border-radius: 999px; background: var(--sun); color: var(--ink); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.search button:hover { background: #ffe066; }
.hero-hot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: 560px; margin-top: 12px; font-size: 13px; line-height: 1.6; }
.hero-hot span { flex: none; margin-right: 4px; white-space: nowrap; opacity: .8; }
.hero-hot a { flex: none; padding: 1px 11px; border: 1px solid rgba(255, 255, 255, .42); border-radius: 999px; text-decoration: none; white-space: nowrap; }
.hero-hot a:hover { background: var(--white); border-color: var(--white); color: var(--indigo); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2px 18px; margin-top: 12px; font-size: 13px; line-height: 1.6; }
.hero-stats span { opacity: .86; }
.hero-stats a { font-weight: 600; text-underline-offset: 4px; }
.hero-stats a:hover { color: var(--sun); }
/* hero carousel: the products now listed, one photo at a time. The first slide shows without script. */
.slides { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 14px; background: var(--indigo-deep); touch-action: pan-y; }
.slides-list { margin: 0; padding: 0; list-style: none; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s .6s; }
.slide.is-on { opacity: 1; visibility: visible; transition: opacity .6s ease; }
.slide a { position: absolute; inset: 0; color: var(--white); text-decoration: none; }
.slide a:focus-visible { outline: 3px solid var(--sun); outline-offset: -3px; border-radius: 14px; }
.slide img, .slide .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 190px 14px 20px;
  background: linear-gradient(to top, rgba(16, 22, 79, .84), rgba(16, 22, 79, .46) 52%, rgba(16, 22, 79, 0));
}
.slide-cap strong { display: block; font-family: var(--display); font-size: clamp(19px, 2vw, 27px); font-weight: 600; line-height: 1.3; }
html[lang="ja"] .slide-cap strong { letter-spacing: .04em; }
.slide-cap > span { display: flex; flex-wrap: wrap; gap: 0 12px; margin-top: 2px; font-size: 13px; line-height: 1.6; }
.slide-cap > span > span + span { opacity: .82; }
.named { white-space: nowrap; }
.kind { font-weight: 400; opacity: .82; }
.slides-nav, .slides-ctrl { display: none; }
.slides.is-live .slides-ctrl { position: absolute; right: 12px; bottom: 12px; display: flex; align-items: center; padding: 0 4px 0 6px; border-radius: 999px; background: rgba(16, 22, 79, .55); }
.slides-dots { display: flex; }
.slides-dots button, .slides-toggle, .slides-nav { padding: 0; border: 0; background: none; color: var(--white); cursor: pointer; }
.slides-dots button { display: grid; place-items: center; width: 24px; height: 30px; }
.slides-dots button::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: rgba(255, 255, 255, .55); transition: width .25s ease, background-color .25s ease; }
.slides-dots button:hover::before { background: var(--white); }
.slides-dots button[aria-current="true"]::before { width: 18px; background: var(--sun); }
.slides-toggle { position: relative; width: 28px; height: 30px; }
.slides-toggle::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 10px; margin: -5px 0 0 -4px; border-inline: 3px solid currentColor; box-sizing: border-box; }
.slides-toggle.is-paused::before { width: 0; height: 0; margin: -6px 0 0 -3px; border-block: 6px solid transparent; border-inline: 9px solid currentColor; border-inline-end-width: 0; }
.slides.is-live .slides-nav {
  position: absolute; top: 50%; display: grid; place-items: center; width: 38px; height: 38px; margin-top: -19px;
  border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--indigo); opacity: 0; transition: opacity .2s ease;
}
.slides-prev { left: 12px; }
.slides-next { right: 12px; }
.slides-nav::before { content: ""; width: 9px; height: 9px; border: solid currentColor; border-width: 2px 2px 0 0; transform: translateX(-2px) rotate(45deg); }
.slides-prev::before { transform: translateX(2px) rotate(-135deg); }
.slides.is-live:hover .slides-nav, .slides-nav:focus-visible { opacity: 1; }
.slides-nav:hover { background: var(--white); }
.slides button:focus-visible { outline: 2px solid var(--sun); outline-offset: 1px; }
/* photo zoom: tap a product photo to see it large */
[data-zoom] { cursor: zoom-in; }
[data-zoom]:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; }
.lineup li[data-zoom] .lineup-img::after, .gallery li[data-zoom]::after, .phero-art[data-zoom]::after {
  content: ""; position: absolute; z-index: 1; right: 4px; bottom: 4px; width: 22px; height: 22px; border-radius: 50%; pointer-events: none;
  background: rgba(19, 26, 82, .72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='M15 15l5 5M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.gallery li[data-zoom]::after, .phero-art[data-zoom]::after { right: 10px; bottom: 10px; width: 30px; height: 30px; background-size: 17px; }
.lb { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 60px 12px 20px; background: rgba(12, 16, 48, .94); }
.lb[hidden] { display: none; }
.lb-fig { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 100%; margin: 0; }
.lb-img { display: block; width: auto; height: auto; max-width: min(100%, 1100px); max-height: calc(100vh - 200px); max-height: calc(100dvh - 200px); border-radius: 10px; background: var(--white); }
.lb-cap { max-width: 36em; padding: 0 8px; color: var(--white); text-align: center; font-size: 14px; line-height: 1.6; }
.lb-cap strong { display: block; font-size: 16px; font-weight: 700; }
.lb-cap span { color: rgba(255, 255, 255, .8); }
.lb-count { position: absolute; top: 22px; left: 18px; color: rgba(255, 255, 255, .8); font-size: 13px; }
.lb-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: var(--white); font-size: 30px; line-height: 1; cursor: pointer; }
.lb-prev, .lb-next { position: absolute; top: 50%; width: 44px; height: 64px; margin-top: -32px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .14); cursor: pointer; }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.lb-prev::before, .lb-next::before { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 12px; border: solid var(--white); border-width: 0 0 2.5px 2.5px; transform: translate(-30%, -50%) rotate(45deg); }
.lb-next::before { transform: translate(-70%, -50%) rotate(-135deg); }
.lb.is-single .lb-prev, .lb.is-single .lb-next, .lb.is-single .lb-count { display: none; }
html.lb-open, html.lb-open body { overflow: hidden; }

@media (hover: none) { .slides.is-live .slides-nav { display: none; } }
.cloud-edge { display: none; }

/* ---------- category icons right under the hero ---------- */
.cats { padding-top: clamp(14px, 1.8vw, 22px); }
.cat-grid { display: grid; grid-template-columns: repeat(var(--n, 12), minmax(0, 1fr)); gap: 10px clamp(4px, .9vw, 12px); }
.cat { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; color: inherit; text-align: center; text-decoration: none; }
.cat-img { position: relative; display: block; width: min(100%, 74px); aspect-ratio: 1; overflow: hidden; border-radius: 18px; background: color-mix(in srgb, var(--c) 11%, #fff); }
.cat-img img, .cat-img .ph { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; filter: drop-shadow(0 5px 6px rgba(22, 26, 58, .16)); transition: transform .25s ease; }
.cat:hover .cat-img img { transform: scale(1.08); }
.cat-name { font-size: 13px; font-weight: 600; line-height: 1.35; }
.cat:hover .cat-name { color: var(--indigo); }
.cat-all .cat-img { display: grid; place-items: center; background: var(--indigo); color: var(--white); }
.cat-all .cat-img b { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1; font-variant-numeric: lining-nums; }

/* what a business buyer wants to know first */
.points { padding-top: clamp(12px, 1.6vw, 18px); }
.points ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px clamp(14px, 2.6vw, 36px); padding: 9px 16px; border-radius: var(--r); background: var(--wash); }
.points li { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; line-height: 1.5; }
.points li::before, .services li::before { content: ""; flex: none; width: 6px; height: 11px; margin: -3px 0 0 3px; border: solid var(--indigo); border-width: 0 2px 2px 0; transform: rotate(42deg); }
.services { display: none; }

/* why Yunnan: the climate story in four short facts */
.yn { padding-top: var(--sec); }
.yn-in { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 2.18fr); gap: 12px clamp(18px, 3vw, 44px); align-items: start; padding: clamp(14px, 1.8vw, 24px); border: 1px solid var(--line); border-radius: var(--r); }
.yn-head h2 { font-size: clamp(20px, 2vw, 26px); }
.yn-head p { margin-top: 6px; font-size: 13.5px; line-height: 1.7; color: var(--ink-soft); }
.yn-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px clamp(12px, 1.8vw, 24px); }
.yn-facts li { display: grid; gap: 3px; align-content: start; padding-top: 9px; border-top: 2px solid var(--indigo); }
.yn-facts strong { font-size: 14.5px; font-weight: 700; line-height: 1.45; }
.yn-facts span { font-size: 12.5px; line-height: 1.65; color: var(--ink-soft); }

/* ---------- section heads ---------- */
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; }
.sec-head h2 { font-size: clamp(21px, 2.1vw, 28px); }
.sec-head p { flex: 1 1 260px; min-width: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); }
.sec-more { margin-left: auto; font-size: 13.5px; font-weight: 600; color: var(--indigo); text-underline-offset: 4px; white-space: nowrap; }
.more-row { margin-top: clamp(16px, 2vw, 26px); }

/* ---------- small labels ---------- */
.main-badge, .select-badge, .status, .select-pill {
  display: inline-block; padding: 0 7px; border: 1px solid currentColor; border-radius: 5px;
  font-style: normal; font-size: 11px; font-weight: 600; line-height: 1.6; letter-spacing: .04em; white-space: nowrap; color: var(--ink-soft);
}
.main-badge, .select-badge { margin-left: 7px; vertical-align: 2px; }
.select-badge, .select-pill, .status-partner, .status-listed { color: var(--indigo); }
.status-visited { color: var(--ink); }
.pr {
  display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 4px; background: var(--ink); color: var(--white);
  font-style: normal; font-size: 10.5px; font-weight: 700; line-height: 1.6; letter-spacing: .04em; vertical-align: 2px;
}
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.chips li { padding: 1px 9px; border-radius: 999px; background: var(--wash); font-size: 12px; font-weight: 500; line-height: 1.7; }
.ticks { display: grid; gap: 6px; margin: 12px 0 18px; padding: 0; list-style: none; }
.ticks li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.6; }
.ticks li::before { content: ""; flex: none; width: 6px; height: 11px; margin: 5px 4px 0; border: solid var(--indigo); border-width: 0 2px 2px 0; transform: rotate(42deg); }

/* add to the inquiry list: the round button on cards and rows, the text button on product pages */
.add {
  position: absolute; z-index: 2; right: 10px; bottom: 10px; flex: none; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%;
  background: var(--indigo); color: var(--white); cursor: pointer; transition: background-color .15s ease;
}
.add::before, .add::after { content: ""; position: absolute; left: 50%; top: 50%; background: currentColor; border-radius: 2px; }
.add::before { width: 14px; height: 2px; margin: -1px 0 0 -7px; }
.add::after { width: 2px; height: 14px; margin: -7px 0 0 -1px; }
.add:hover { background: var(--ink); }
.add[aria-pressed="true"] { background: var(--sun); color: var(--ink); }
.add[aria-pressed="true"]::before { width: 7px; height: 12px; margin: -8px 0 0 -4px; background: none; border: solid currentColor; border-width: 0 2.5px 2.5px 0; border-radius: 0; transform: rotate(42deg); }
.add[aria-pressed="true"]::after { display: none; }
.add-text {
  position: relative; right: auto; bottom: auto; width: auto; height: auto; min-height: 46px; padding: 10px 24px 10px 46px; border: 1.5px solid currentColor; border-radius: 999px;
  background: transparent; color: inherit; font: inherit; font-weight: 600; font-size: 15px; line-height: 1.2;
}
.add-text::before, .add-text::after { left: 26px; }
.add-text:hover { background: rgba(22, 26, 58, .06); }
.add-text[aria-pressed="true"] { border-color: var(--sun); }

/* the inquiry list itself: a bar fixed to the bottom once something is on it */
.listbar {
  position: fixed; z-index: 45; left: 50%; bottom: 12px; transform: translateX(-50%); width: min(760px, 100% - 20px);
  display: flex; align-items: center; gap: 12px; padding: 7px 7px 7px 18px; border-radius: 999px;
  background: var(--ink); color: var(--white); box-shadow: 0 10px 30px rgba(22, 26, 58, .32);
}
.listbar[hidden] { display: none; }
.listbar-info { display: flex; flex: none; align-items: baseline; gap: 8px; font-size: 14px; white-space: nowrap; }
.listbar-info strong { font-weight: 700; }
.listbar-n { font-weight: 700; color: var(--sun); font-variant-numeric: tabular-nums; }
.listbar-names { flex: 1; min-width: 0; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; opacity: .8; }
.listbar-clear { flex: none; padding: 8px 4px; border: 0; background: none; color: var(--white); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; opacity: .8; }
.listbar-go { flex: none; padding: 10px 20px; border-radius: 999px; background: var(--sun); color: var(--ink); font-size: 14.5px; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.listbar-go:hover { background: #ffe066; }
body.has-list .footer { padding-bottom: 92px; }

/* contact shortcuts: fixed at the bottom right of every page, in view while scrolling */
.quick { position: fixed; z-index: 44; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; }
.quick a {
  display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px 8px 12px; border-radius: 999px;
  color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.2; text-decoration: none;
  box-shadow: 0 0 0 2px var(--white), 0 8px 22px rgba(22, 26, 58, .24); transition: transform .15s ease;
}
.quick a:hover { transform: translateX(-3px); }
.quick svg { flex: none; width: 20px; height: 20px; color: var(--white); }
.quick-wa { background: #25d366; }
.quick-line { background: #06c755; }
.quick .quick-mail { background: var(--indigo); color: var(--white); }
body.has-list .quick { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
@media print { .quick, .listbar { display: none; } }

/* ---------- text tabs: home filter and the category bar ---------- */
.tabbar { margin-top: 6px; }
.tabbar ul {
  display: flex; gap: 0 clamp(16px, 2.2vw, 30px);
  width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.tabbar ul::-webkit-scrollbar { display: none; }
.tabbar button, .tabbar a {
  position: relative; display: block; flex: none; padding: 10px 0 9px; border: 0; background: none; cursor: pointer; text-decoration: none;
  font: inherit; font-weight: 500; font-size: 14px; line-height: 1.3; color: var(--ink-soft); white-space: nowrap;
}
.tabbar button::after, .tabbar a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--indigo); transform: scaleX(0); transition: transform .2s ease; }
.tabbar button:hover, .tabbar a:hover { color: var(--ink); }
.tabbar button[aria-pressed="true"], .tabbar a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.tabbar button[aria-pressed="true"]::after, .tabbar a[aria-current="page"]::after { transform: scaleX(1); }
.tabbar-links { margin-top: 0; }

/* ---------- Yunnan Select strip and the spotlight producer, side by side ---------- */
.duo { padding-top: var(--sec); }
.duo-in { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); gap: var(--gap); }
.duo-one { grid-template-columns: minmax(0, 1fr); }
.duo-one .spot { flex-direction: row; }
.duo-one .spot-photo { flex: 0 0 38%; min-height: 0; }
.duo-one .spot-body { flex: 1; min-width: 0; }
.select { padding: clamp(12px, 1.5vw, 20px); border-radius: var(--r); background: var(--wash); }
.select-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; }
.select-head h2 { font-size: clamp(20px, 2vw, 26px); color: var(--indigo); }
.select-head p { font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); }
.select-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-top: 12px; }
.select-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 10px; background: var(--white); color: inherit; text-decoration: none; }
.select-photo { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); }
.select-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.select-card:hover .select-photo img { transform: scale(1.05); }
.select-card strong { padding: 8px 10px 0; font-size: 14.5px; font-weight: 700; line-height: 1.4; }
.select-card:hover strong { color: var(--indigo); }
.select-note { padding: 2px 10px 10px; font-size: 12.5px; line-height: 1.55; color: var(--ink-soft); }
.spot { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r); background: var(--wash); }
.spot-photo { position: relative; display: block; flex: 1 1 110px; min-height: 110px; overflow: hidden; background: var(--line); }
.spot-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.spot-body { padding: 12px 14px 14px; }
.spot-label { font-size: 12px; font-weight: 600; line-height: 1.6; letter-spacing: .08em; color: var(--indigo); }
.spot-name { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.3; }
.spot-name a { text-decoration: none; }
.spot-name a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.spot-maker { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 3px; font-size: 14px; font-weight: 600; line-height: 1.5; }
.spot-tag { margin-top: 1px; font-size: 12.5px; line-height: 1.6; color: var(--ink-soft); }
.spot-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.spot-thumbs li { position: relative; width: 46px; aspect-ratio: 1; border-radius: 8px; background: var(--white); }
.spot-thumbs img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; }
.spot-links { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-top: 10px; font-size: 13px; font-weight: 600; }
.spot-links a { color: var(--indigo); text-underline-offset: 3px; }

/* ---------- product cards ---------- */
.season, .dir, .flow, .listing { padding-top: var(--sec); }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-top: 14px; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.card[hidden] { display: none; }
.card:hover { border-color: #c3c8e2; }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: color-mix(in srgb, var(--c) 9%, #fff); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card-media.is-cut img, .card-media.is-cut-left img { object-fit: contain; padding: 12px 18px; filter: drop-shadow(0 8px 10px rgba(22, 26, 58, .16)); }
.card-media.is-cut-left img { padding: 12px 12px 12px 0; object-position: left center; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 9px 12px 12px; }
.card-cat { font-size: 11.5px; font-weight: 600; line-height: 1.6; letter-spacing: .04em; color: color-mix(in srgb, var(--c) 50%, var(--ink)); }
.card h3 { font-size: 16px; font-weight: 700; line-height: 1.4; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card:hover h3 a { color: var(--indigo); }
.card-alt, .card-by { font-size: 12px; line-height: 1.55; color: var(--ink-soft); }
.card-by b { font-weight: 600; color: var(--ink); }
.card dl { display: grid; grid-template-columns: auto 1fr; gap: 1px 10px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.6; }
.card dt { color: var(--ink-soft); white-space: nowrap; }
.card dd:nth-last-of-type(-n+2) { padding-right: 38px; }
.cards-s { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: clamp(16px, 2vw, 26px); }
.cards-s .card-origin { min-height: 34px; padding-right: 38px; font-size: 12.5px; line-height: 1.55; color: var(--ink-soft); }

/* ---------- producer cards ---------- */
.pcards-sec { padding: clamp(20px, 2.6vw, 36px) 0 var(--sec); background: var(--white); }
.pcards-home { padding: var(--sec) 0 0; }
.pcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.pcards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pcards-home .pcards, .pcards-cat .pcards { margin-top: 14px; }
.pcard { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; }
.pcard:hover { border-color: #c3c8e2; }
.pcard-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--wash); }
.pcard-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; }
.pcard-body strong { font-family: var(--display); font-weight: 600; font-size: 18px; line-height: 1.3; }
.pcard:hover .pcard-body strong { color: var(--indigo); }
.pcard-cat { font-size: 11.5px; font-weight: 600; line-height: 1.6; letter-spacing: .04em; color: color-mix(in srgb, var(--c) 50%, var(--ink)); }
.pcard-body strong { font-size: clamp(19px, 1.7vw, 22px); }
.pcard-maker { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 2px; font-size: 14px; font-weight: 600; line-height: 1.5; }
.pcard-tag { font-size: 12.5px; line-height: 1.6; color: var(--ink-soft); }
.pcard-body .partner-tags { margin-top: 0; }
.pcard-city { font-size: 12.5px; color: var(--ink-soft); }
.pcard .chips { margin-top: 2px; }
.pcard-invite { justify-content: center; padding: 16px; border-style: dashed; border-color: #b9bfdc; }
.pcard-invite .pcard-body { gap: 8px; padding: 0; align-items: flex-start; font-size: 13.5px; }
.pcard-invite .pcard-body strong { font-size: 17px; }
.pcard-invite .btn { min-height: 40px; padding: 7px 18px; font-size: 14px; }
.pcards-cat { padding: var(--sec) 0 0; }

/* ---------- the whole range as text links, by category ---------- */
.dir-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(14px, 2vw, 28px); margin-top: 12px; border-top: 1px solid var(--ink); }
.dir-grid > li { padding: 12px 0 14px; border-bottom: 1px solid var(--line); }
.dir-grid h3 { display: flex; align-items: baseline; gap: 8px; font-size: 15px; font-weight: 700; line-height: 1.5; }
.dir-grid h3 a { text-decoration: none; }
.dir-grid h3 a::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--c); }
.dir-grid h3 a:hover { color: var(--indigo); }
.dir-grid h3 span { font-size: 12px; font-weight: 400; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.dir-grid ul { margin-top: 4px; }
.dir-grid ul a { display: block; padding: 1px 0 1px 16px; font-size: 13.5px; line-height: 1.75; text-decoration: none; }
.dir-grid ul a:hover { color: var(--indigo); text-decoration: underline; text-underline-offset: 3px; }
.dir-more { display: inline-block; margin: 3px 0 0 16px; font-size: 12.5px; font-weight: 600; color: var(--indigo); text-underline-offset: 3px; }

/* ---------- packaging ---------- */
.packs, .origin { margin-top: var(--sec); padding: var(--sec) 0; background: var(--wash); }
.pack-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); margin-top: 14px; }
.pack { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r); background: var(--white); }
.pack-media { position: relative; flex: none; overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); }
.pack-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pack-body { padding: 9px 12px 12px; }
.pack h3 { font-size: 15px; font-weight: 700; line-height: 1.45; }
.pack-spec { margin-top: 2px; font-size: 12.5px; line-height: 1.6; color: var(--ink-soft); }
.pack .chips li { font-size: 11.5px; }
.pack-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 270px)); gap: var(--gap); margin-top: 14px; }

/* ---------- how ordering works ---------- */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); margin: 14px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 10px; align-content: start; padding: 11px 14px 13px; border: 1px solid var(--line); border-radius: var(--r); }
.steps li::before { content: counter(step); grid-row: span 2; font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1.15; color: var(--indigo); font-variant-numeric: lining-nums; }
.steps h3 { font-size: 15px; font-weight: 700; line-height: 1.5; }
.steps p { font-size: 12.5px; line-height: 1.6; color: var(--ink-soft); }

/* ---------- origin map ---------- */
.origin-wrap { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(16px, 3vw, 44px); align-items: start; margin-top: 14px; }
.map { position: relative; }
.map svg { display: block; width: 100%; height: auto; overflow: visible; }
.map .ph { aspect-ratio: 1; }
.map path { fill: var(--indigo); stroke: var(--wash); stroke-width: 2.2; stroke-linejoin: round; transition: fill .15s ease; cursor: pointer; }
.map path:hover, .map path.is-on { fill: var(--indigo-deep); }
.map text { font-family: var(--body); font-weight: 600; font-size: 20px; fill: var(--white); text-anchor: middle; pointer-events: none; }
.regions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(12px, 1.8vw, 24px); border-top: 1px solid var(--line); }
.region { display: block; height: 100%; padding: 7px 2px 8px; border-bottom: 1px solid var(--line); cursor: default; }
.region-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.region strong { font-size: 14px; font-weight: 700; line-height: 1.5; transition: color .15s ease; }
.region:hover strong, .region.is-on strong { color: var(--indigo); }
.region em { font-style: normal; font-size: 12px; color: var(--ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.region span { display: block; margin-top: 1px; font-size: 12.5px; line-height: 1.6; color: var(--ink-soft); }

/* ---------- inquiry ---------- */
.inquiry { margin-top: var(--sec); padding: clamp(34px, 4.6vw, 64px) 0; background: var(--indigo); color: var(--white); }
:is(.packs, .origin, .partner, .related, .ads-map) + .inquiry { margin-top: 0; }
.inquiry-wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(20px, 4vw, 60px); align-items: start; }
.inquiry h2 { font-size: clamp(24px, 3vw, 38px); }
.inquiry-lede { margin-top: 10px; font-size: 14.5px; opacity: .94; }
.direct { margin-top: clamp(16px, 2.2vw, 28px); }
.direct p { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; opacity: .85; }
.direct ul { display: grid; gap: 8px; margin-top: 8px; }
.direct a, .direct-row { display: inline-flex; align-items: baseline; gap: 12px; padding: 9px 18px; border-radius: 12px; background: rgba(255, 255, 255, .12); text-decoration: none; font-weight: 600; font-size: 16px; line-height: 1.3; }
.direct a:hover { background: rgba(255, 255, 255, .22); }
.direct a small, .direct-row small { font-size: 12px; font-weight: 500; opacity: .85; }
/* LINE contact button: LINE green with dark text so it stays readable */
.direct a.line-btn, .line-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 20px 9px 14px; border-radius: 999px;
  background: #06c755; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15.5px; line-height: 1.3;
  transition: background-color .15s ease;
}
.direct a.line-btn:hover, .line-btn:hover { background: #2fe07a; }
.line-btn svg { flex: none; width: 22px; height: 22px; color: var(--white); }
/* WhatsApp contact button: same shape, WhatsApp green */
.direct a.wa-btn, .wa-btn { background: #25d366; }
.direct a.wa-btn:hover, .wa-btn:hover { background: #63e894; }
.line-btn-s { display: flex; width: fit-content; margin: 8px 0 0; padding: 6px 14px 6px 10px; font-size: 13.5px; }
.line-btn-s svg { width: 18px; height: 18px; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; padding: clamp(16px, 2.2vw, 28px); border-radius: 16px; background: var(--white); color: var(--ink); }
.field { display: grid; gap: 3px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12.5px; font-weight: 600; line-height: 1.5; }
.field input, .field textarea, .field select {
  width: 100%; padding: 9px 12px; border: 1px solid #c9cde0; border-radius: 9px; background: var(--white);
  font: inherit; font-size: 16px; line-height: 1.4; color: var(--ink);
}
.field input::placeholder, .field textarea::placeholder { color: #686d8c; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(34, 48, 168, .16); }
.field textarea { min-height: 76px; resize: vertical; }
.req { margin-left: 6px; font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--tomato); }
.form-note { grid-column: 1 / -1; font-size: 12px; line-height: 1.6; color: var(--ink-soft); }
.form .btn { grid-column: 1 / -1; justify-self: start; }

/* ---------- footer ---------- */
.footer { background: var(--indigo-deep); color: var(--white); padding: clamp(28px, 3.6vw, 48px) 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 2fr 1fr; gap: clamp(20px, 3.4vw, 48px); }
.footer .brand { margin: 0 0 0 -8px; }
.footer .brand .logo { height: 84px; filter: none; }
.footer-tag { margin-top: 10px; font-family: var(--display); font-weight: 500; font-size: 16px; }
.footer-mail { display: inline-block; margin-top: 4px; padding: 5px 0; font-size: 15px; font-weight: 600; text-underline-offset: 4px; }
.footer-mail:hover { color: var(--sun); }
.footer-tel { display: flex; flex-wrap: wrap; gap: 0 10px; margin-top: 4px; font-size: 14.5px; line-height: 1.7; }
.footer-tag + .footer-tel { margin-top: 10px; }
.footer-tel span:first-child { opacity: .8; }
.footer-tel span + span, .footer-tel a { font-weight: 600; }
.footer-tel a { text-underline-offset: 4px; }
.footer-tel a:hover { color: var(--sun); }
.footer h3 { font-size: 12px; font-weight: 600; letter-spacing: .08em; opacity: .7; line-height: 1.5; }
.footer-cats { columns: 2; column-gap: 24px; margin-top: 6px; }
.footer li { break-inside: avoid; }
.footer li a { display: inline-block; padding: 3px 0; text-decoration: none; font-size: 13.5px; line-height: 1.6; }
.footer li a:hover { color: var(--sun); }
.footer-links { margin-top: 6px; }
.copyright { margin-top: 24px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: 12px; opacity: .75; }

/* =====================================================================
   Sub-pages
   ===================================================================== */

/* page hero: indigo for site pages, a pale category tint for category and product pages */
.phero { position: relative; background: var(--indigo); color: var(--white); padding: clamp(90px, 8.4vw, 116px) 0 clamp(22px, 3vw, 38px); }
.phero[style] { background: color-mix(in srgb, var(--c) 10%, #fff); color: var(--ink); }
.phero-in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(16px, 3.4vw, 52px); align-items: center; }
.crumbs { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; font-size: 12.5px; line-height: 1.6; opacity: .78; }
.crumbs li + li::before { content: "/"; margin: 0 8px; opacity: .6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.phero-makes { margin-top: 10px; font-size: clamp(15px, 1.4vw, 18px); font-weight: 700; line-height: 1.5; color: var(--sun); }
.phero-makes a { text-decoration: none; }
.phero-makes a:hover { text-decoration: underline; text-underline-offset: 4px; }
.phero-makes + h1 { margin-top: 2px; }
.phero h1 { margin-top: 8px; font-size: clamp(26px, 3.5vw, 46px); }
.phero-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 8px; font-size: 14px; line-height: 1.6; }
.phero-sub span:not(.status, .select-pill) { opacity: .78; }
.phero-lede { max-width: 36em; margin-top: 10px; font-size: 14.5px; text-wrap: balance; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: clamp(14px, 1.8vw, 22px); }
.btn-row.center { justify-content: center; }
.phero[style] .btn-white { background: var(--indigo); color: var(--white); }
.phero[style] .btn-white:hover { background: var(--ink); color: var(--white); }
.count-pill { font-size: 13.5px; font-weight: 600; line-height: 1.2; opacity: .8; font-variant-numeric: tabular-nums; }
.phero-art { position: relative; justify-self: center; width: min(210px, 100%); aspect-ratio: 1; filter: drop-shadow(0 16px 16px rgba(22, 26, 58, .2)); }
.phero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.phero-art.is-photo { width: min(360px, 100%); aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); filter: none; box-shadow: 0 24px 40px -24px rgba(22, 26, 58, .5); }
.phero-art.is-photo img { object-fit: cover; }
.phero-solo .phero-in { grid-template-columns: minmax(0, 1fr); }
.phero-producer .status, .phero-index .status { color: var(--white); }
.phero-producer .phero-sub .status-visited { color: var(--sun); }
.spec, .ptable-sec { background: var(--white); }

/* ---------- product list: compact text rows ---------- */
.rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(14px, 2.4vw, 36px); margin-top: 12px; border-top: 1px solid var(--line); }
.cards-s + .rows { margin-top: 0; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 9px 2px 10px; border-bottom: 1px solid var(--line); }
.row-main { display: grid; gap: 0; min-width: 0; text-decoration: none; }
.row-main strong { font-size: 15px; font-weight: 700; line-height: 1.5; transition: color .15s ease; }
.row-main:hover strong { color: var(--indigo); }
.row-alt { font-size: 12px; line-height: 1.5; color: var(--ink-soft); }
.row-origin { font-size: 12.5px; line-height: 1.55; color: var(--ink-soft); }
.row-forms { grid-column: 1; margin-top: 2px; }
.row-forms li { font-size: 11.5px; }
.row .add { position: relative; right: auto; bottom: auto; grid-column: 2; grid-row: 1 / span 2; width: 30px; height: 30px; }
.related { margin-top: var(--sec); padding: var(--sec) 0; background: var(--wash); }
.related .chips li { background: var(--white); }

/* ---------- product spec ---------- */
.spec { padding: var(--sec) 0 0; }
.item-photos { padding: var(--sec) 0 0; }
.item-photos h2 { font-size: clamp(21px, 2.1vw, 28px); }
.item-photos:last-of-type { padding-bottom: 0; }
.spec-in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(18px, 3.4vw, 52px); align-items: start; }
.spec h2 { font-size: clamp(21px, 2.1vw, 28px); }
.spec-table { width: 100%; margin-top: 10px; border-collapse: collapse; border-top: 1px solid var(--ink); }
.spec-table th { width: 8em; padding: 9px 14px 9px 0; text-align: left; vertical-align: top; white-space: nowrap; font-size: 13px; font-weight: 500; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.spec-table td { padding: 9px 0; font-size: 14.5px; line-height: 1.65; border-bottom: 1px solid var(--line); }
.spec-table tr:first-child td { font-size: 16.5px; font-weight: 700; }
.spec-table .chips { margin-top: 0; }
.spec-table a { text-underline-offset: 3px; }
.soft { font-size: 13px; color: var(--ink-soft); }
.spec-note { margin-top: 10px; font-size: 12.5px; color: var(--ink-soft); }
.origin-why { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.origin-why h3 { font-size: 15px; font-weight: 700; line-height: 1.5; }
.origin-why dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; margin-top: 6px; font-size: 13.5px; line-height: 1.65; }
.origin-why dt { font-weight: 700; white-space: nowrap; }
.origin-why dd { color: var(--ink-soft); }
.quote-box { position: sticky; top: 88px; padding: clamp(16px, 1.9vw, 24px); border-radius: var(--r); background: var(--wash); }
.quote-box h3 { font-size: 16px; font-weight: 700; line-height: 1.45; }
.quote-box .btn { width: 100%; text-align: center; }

/* ---------- all-products index ---------- */
.phero-index { text-align: center; }
.phero-index .crumbs { justify-content: center; }
.phero-index .phero-lede { margin-inline: auto; }
.finder { margin-top: 16px; }
.finder input { width: min(560px, 100%); padding: 12px 22px; border: 0; border-radius: 999px; background: var(--white); font: inherit; font-size: 16px; line-height: 1.4; color: var(--ink); }
.finder input::placeholder { color: #686d8c; }
.finder input:focus { outline: 3px solid var(--sun); outline-offset: 3px; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.filters button { padding: 4px 13px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px; background: transparent; font: inherit; font-weight: 500; font-size: 13.5px; line-height: 1.5; color: var(--white); cursor: pointer; }
.filters button:hover { border-color: var(--white); }
.filters button[aria-pressed="true"] { background: var(--white); border-color: var(--white); color: var(--indigo); font-weight: 700; }
.ptable-sec { padding: clamp(16px, 2vw, 26px) 0 0; }
.found { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.ptable { width: 100%; margin-top: 6px; border-collapse: collapse; }
.ptable th { padding: 8px 12px; text-align: left; white-space: nowrap; font-size: 12.5px; font-weight: 500; color: var(--ink-soft); border-bottom: 1px solid var(--ink); }
.ptable td { padding: 8px 12px; vertical-align: top; font-size: 14px; line-height: 1.55; border-bottom: 1px solid var(--line); }
.ptable tbody tr:hover { background: var(--wash); }
.p-name a { display: inline-flex; align-items: baseline; gap: 9px; font-size: 14.5px; font-weight: 700; text-decoration: none; }
.p-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.p-name i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.p-alt, .p-forms { font-size: 13px; color: var(--ink-soft); }
.p-cat a { white-space: nowrap; text-underline-offset: 3px; }
.ptable tr[hidden] { display: none; }
.none { margin-top: 18px; font-weight: 600; }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: grid; align-content: center; justify-items: center; gap: 24px; padding: 40px var(--gut); background: var(--indigo); color: var(--white); text-align: center; }
.notfound .logo { width: auto; height: 110px; }
.notfound h1 { font-size: clamp(24px, 3.6vw, 40px); }
.notfound p { margin: 8px 0 16px; }

/* ---------- producer block on a product page, producer profile ---------- */
.partner { margin-top: var(--sec); padding: var(--sec) 0; background: var(--wash); }
.partner + .related { margin-top: 0; background: var(--white); }
.partner + .related .chips li { background: var(--wash); }
.partner-card { margin-top: 14px; }
.partner-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(18px, 3.4vw, 52px); align-items: center; }
.partner-name { font-family: var(--display); font-weight: 600; font-size: clamp(21px, 2.2vw, 28px); line-height: 1.3; }
.partner-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 4px; }
.partner-tag { font-size: 13.5px; color: var(--ink-soft); }
.partner-intro { margin-top: 10px; font-size: 14.5px; }
.partner .ticks { margin-bottom: 14px; }
.partner-rows { margin-top: 0; }
.partner .certs li { background: var(--white); }
.partner .gallery { margin-top: clamp(16px, 2vw, 24px); }
.partner-photo { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--r); background: var(--line); }
.partner-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.partner-photo figcaption { position: absolute; left: 10px; bottom: 10px; padding: 2px 10px; border-radius: 6px; background: rgba(22, 26, 58, .8); color: var(--white); font-size: 12px; line-height: 1.6; }
.lineup-h { margin: clamp(16px, 2vw, 24px) 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 700; line-height: 1.5; }
.lineup { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--gap); margin-top: 10px; }
.lineup li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 0 12px; align-content: center; min-width: 0; padding: 8px; border-radius: var(--r); background: var(--white); }
.lineup-top li, .spec .lineup li { background: var(--wash); }
.lineup-img { position: relative; grid-row: span 2; aspect-ratio: 1; }
.lineup-img img { position: absolute; inset: 4%; width: 92%; height: 92%; object-fit: contain; border-radius: 8px; }
.lineup strong { align-self: end; font-size: 14px; font-weight: 700; line-height: 1.45; }
/* long katakana names must be allowed to wrap inside the narrow cards on phones */
html .lineup strong, html .lineup li > span { max-width: 100%; word-break: normal; overflow-wrap: anywhere; }
.lineup li > span:last-child { align-self: start; font-size: 12px; line-height: 1.55; color: var(--ink-soft); }
.brands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: 10px; }
.brands li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 0 14px; align-items: center; min-width: 0; padding: 12px; border-radius: var(--r); background: var(--white); }
.spec .brands li, .lineup-top + .lineup-h + .brands li { background: var(--wash); }
.brand-img { position: relative; aspect-ratio: 1; }
.brand-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: grid; gap: 1px; min-width: 0; }
.brand-text em { font-style: normal; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; color: var(--indigo); }
.brand-text strong { font-size: 15.5px; font-weight: 700; line-height: 1.45; }
.brand-text span { font-size: 12.5px; line-height: 1.6; color: var(--ink-soft); }
.brand-text .brand-packs { margin-top: 3px; color: var(--ink); }
.brands-more { margin-top: 8px; font-size: 12.5px; color: var(--ink-soft); }
.why { margin: 10px 0 4px; }
.lineup-top { margin-top: 0; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--gap); }
.gallery li { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--r); background: var(--wash); }
.gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.certs-h { margin-top: 18px; font-size: 15px; font-weight: 700; line-height: 1.5; }
.certs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.certs li { display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px 3px 9px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 500; line-height: 1.5; }
.certs li::before { content: ""; flex: none; width: 6px; height: 10px; margin: -2px 2px 0 3px; border: solid var(--indigo); border-width: 0 2px 2px 0; transform: rotate(42deg); }

/* ---------- listing and advertising page ---------- */
.ads { padding: var(--sec) 0 0; background: var(--white); }
.ads-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(18px, 3.4vw, 52px); align-items: start; }
.ads h2 { font-size: clamp(21px, 2.1vw, 28px); }
.ads-free { padding: clamp(16px, 1.9vw, 24px); border-radius: var(--r); background: var(--wash); }
.ads-free .ticks { margin-bottom: 0; }
.slots td { vertical-align: middle; }
.slot-no b { font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1; color: var(--indigo); font-variant-numeric: lining-nums; }
.slot-name { font-size: 14.5px; font-weight: 700; white-space: nowrap; }
.slot-qty { font-weight: 600; white-space: nowrap; }
.ads-notes { display: grid; gap: 2px; margin-top: 10px; font-size: 13px; color: var(--ink-soft); }
.ads-map { margin-top: var(--sec); padding: var(--sec) 0; background: var(--wash); }
.wires { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-top: 14px; }
.wire { margin: 0; }
.wire-page { display: grid; gap: 6px; padding: 9px; border-radius: var(--r); background: var(--white); }
.wire figcaption { margin-top: 8px; font-size: 13.5px; font-weight: 600; }
.w { position: relative; display: block; min-height: 14px; border-radius: 5px; background-color: #e4e7f2; }
.w b { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; background: var(--white); color: var(--indigo); font-size: 13px; font-weight: 700; line-height: 1; }
.w-bar { height: 11px; border-radius: 999px; }
.w-hero { height: 76px; background-color: #c5cae0; }
.w.short { height: 46px; }
.w-slot { background-color: var(--indigo); }
.w.wide { height: 46px; }
.w.tall { height: 76px; }
.w-cards8, .w-cards4, .w-cards3, .w-cards2 { height: 52px; background-color: var(--indigo); background-image: repeating-linear-gradient(90deg, transparent 0 calc(var(--col) - 5px), #fff calc(var(--col) - 5px) var(--col)); }
.w-cards8 { --col: 25%; height: 70px; }
.w-cards4 { --col: 25%; height: 40px; }
.w-cards3 { --col: 33.4%; }
.w-cards2 { --col: 50%; }
.w.dim { background-color: #e4e7f2; }
.w-plain { height: 30px; }
.w-list { height: 64px; background-image: repeating-linear-gradient(180deg, transparent 0 12px, #fff 12px 16px); }

/* ---------- Chinese review copy ---------- */
html[lang="zh"] { --display: "Fraunces", "Noto Serif SC", "Songti SC", serif; --body: "Figtree", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; }
html[lang="zh"] :is(h1, h2) { font-weight: 700; letter-spacing: .02em; }
html[lang="zh"] :is(.pcard-body strong, .partner-name) { font-weight: 700; }

/* Korean */
html[lang="ko"] { --display: "Fraunces", "Noto Serif KR", "AppleMyungjo", serif; --body: "Figtree", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }
html[lang="ko"] :is(h1, h2) { font-weight: 700; letter-spacing: -.01em; }
html[lang="ko"] :is(.pcard-body strong, .partner-name) { font-weight: 700; }
html[lang="ko"] :is(h1, h2, h3, p, dd, dt, li, strong, span, a, th, td, label) { word-break: keep-all; overflow-wrap: anywhere; }
html[lang="ko"] .hero h1 { font-size: clamp(28px, 3.9vw, 52px); line-height: 1.25; }

/* Vietnamese: Latin letters with stacked accents, so a little more line height than English */
html[lang="vi"] { --display: "Fraunces", "Noto Serif", Georgia, serif; --body: "Be Vietnam Pro", "Figtree", "Helvetica Neue", Arial, sans-serif; }
html[lang="vi"] body { line-height: 1.65; }
html[lang="vi"] :is(h1, h2) { line-height: 1.24; letter-spacing: -.01em; }
html[lang="vi"] .hero-badge { letter-spacing: .03em; }
html[lang="vi"] .hero h1 { font-size: clamp(26px, 3.5vw, 46px); line-height: 1.2; }
html[lang="vi"] .hero-lede { line-height: 1.65; }

/* Arabic: right to left. Letter spacing breaks the joined letters, so it is switched off everywhere. */
html[lang="ar"] { --display: "Noto Naskh Arabic", "Fraunces", serif; --body: "Noto Sans Arabic", "Figtree", "Geeza Pro", Tahoma, sans-serif; }
html[lang="ar"] * { letter-spacing: 0 !important; }
html[lang="ar"] body { line-height: 1.8; }
html[lang="ar"] :is(h1, h2) { font-weight: 700; line-height: 1.5; }
html[lang="ar"] .hero h1 { font-size: clamp(28px, 3.9vw, 52px); line-height: 1.45; }
html[lang="ar"] :is(.pcard-body strong, .partner-name, .slide-cap strong) { font-weight: 700; line-height: 1.5; }
[dir="rtl"] :is([translate="no"], [lang="en"], [lang="zh"], a[href^="mailto:"]) { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .brand { direction: rtl; }
[dir="rtl"] :is(h1, h2, h3, h4, p, div, td)[translate="no"], [dir="rtl"] .partner-name { text-align: right; }
[dir="rtl"] .topbar { padding: 6px 20px 6px 8px; }
[dir="rtl"] .brand { margin: -10px -12px -10px 0; }
[dir="rtl"] .topnav { margin-left: 0; margin-right: auto; }
[dir="rtl"] .search input { padding: 9px 18px 9px 8px; }
[dir="rtl"] .hero-hot span { margin-right: 0; margin-left: 4px; }
[dir="rtl"] .slide-cap { padding: 44px 20px 14px 190px; }
[dir="rtl"] .slides.is-live .slides-ctrl { right: auto; left: 12px; }
[dir="rtl"] .sec-more { margin-left: 0; margin-right: auto; }
[dir="rtl"] :is(.main-badge, .select-badge) { margin-left: 0; margin-right: 7px; }
[dir="rtl"] .pr { margin-left: 0; margin-right: 6px; }
[dir="rtl"] .add { right: auto; left: 10px; }
[dir="rtl"] .card dd:nth-last-of-type(-n+2), [dir="rtl"] .cards-s .card-origin { padding-right: 0; padding-left: 38px; }
[dir="rtl"] .add-text { right: auto; left: auto; padding: 10px 46px 10px 24px; }
[dir="rtl"] .add-text::before { left: auto; right: 19px; margin-left: 0; }
[dir="rtl"] .add-text::after { left: auto; right: 25px; margin-left: 0; }
[dir="rtl"] .row .add { left: auto; }
[dir="rtl"] .listbar { padding: 7px 18px 7px 7px; }
[dir="rtl"] .quick { right: auto; left: 16px; }
[dir="rtl"] .quick a { padding: 8px 12px 8px 16px; }
[dir="rtl"] .quick a:hover { transform: translateX(3px); }
[dir="rtl"] .dir-grid h3 a::before { margin-right: 0; margin-left: 8px; }
[dir="rtl"] .dir-grid ul a { padding: 1px 16px 1px 0; }
[dir="rtl"] .dir-more { margin: 3px 16px 0 0; }
[dir="rtl"] .req { margin-left: 0; margin-right: 6px; }
[dir="rtl"] .footer .brand { margin: 0 -8px 0 0; }
[dir="rtl"] .spec-table th { padding: 9px 0 9px 14px; text-align: right; }
[dir="rtl"] .ptable th { text-align: right; }
[dir="rtl"] .partner-photo figcaption { left: auto; right: 10px; }
[dir="rtl"] .lb-count { left: auto; right: 18px; }
[dir="rtl"] .lb-close { right: auto; left: 10px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  /* five menu entries no longer fit beside the badge: fold them into the menu button */
  .topnav { position: absolute; top: calc(100% + 8px); left: 0; right: 0; margin: 0; padding: 10px; border-radius: 20px; background: var(--white); box-shadow: 0 12px 30px rgba(22, 26, 58, .18); display: none; }
  .topnav.is-open { display: block; }
  .topnav ul { flex-direction: column; gap: 2px; }
  .topnav a { padding: 12px 18px; font-size: 15.5px; }
  .lang { margin-left: auto; }
  .menu-btn { display: inline-flex; }
  .cat-grid { grid-template-columns: repeat(var(--nt, 6), minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards-s { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pcards, .dir-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pack-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rows, .regions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lineup { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brands { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .yn-in { grid-template-columns: minmax(0, 1fr); }
  .hero-in, .duo-in, .origin-wrap, .inquiry-wrap, .partner-top, .ads-in, .phero-in, .spec-in { grid-template-columns: minmax(0, 1fr); }
  .slides { aspect-ratio: 16 / 7; }
  .spot { flex-direction: row; }
  .spot-photo { flex: 0 0 38%; min-height: 0; }
  .spot-body { flex: 1; min-width: 0; }
  .map { width: min(400px, 100%); margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .phero-art { justify-self: start; width: min(150px, 40%); }
  .phero-art.is-photo { width: min(360px, 100%); }
  .quote-box { position: static; }
  .wires { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .topbar { top: 8px; padding: 5px 5px 5px 12px; gap: 8px; }
  .brand { margin: -8px 0 -8px -9px; }
  .brand .logo { height: 54px; }
  .lang summary { padding: 8px 10px; font-size: 12.5px; }
  .menu-btn { width: 38px; height: 38px; padding: 0; }
  .menu-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

  .hero { padding-top: 78px; }
  .hero-badge { margin-bottom: 6px; font-size: 11.5px; letter-spacing: .04em; }
  .hero h1 { font-size: clamp(27px, 8vw, 34px); }
  html[lang="en"] .hero h1 { font-size: clamp(24px, 7vw, 30px); }
  html[lang="ja"] .hero h1 { font-size: clamp(26px, 7.6vw, 32px); }
  .hero-lede { display: -webkit-box; overflow: hidden; margin-top: 8px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.65; }
  .search { margin-top: 12px; }
  .search button { padding: 0 18px; }
  .hero-hot { flex-wrap: nowrap; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
  .hero-hot::-webkit-scrollbar { display: none; }
  .hero-stats { margin-top: 8px; font-size: 12.5px; gap: 2px 12px; }
  .slides { aspect-ratio: 16 / 9; margin-top: 4px; border-radius: 12px; }
  .slide-cap { padding: 36px 14px 10px; }
  .slide-cap strong { font-size: 18px; }
  .slide-cap > span { font-size: 12px; }
  .slides.is-live .slides-ctrl { top: 8px; right: 8px; bottom: auto; }

  .cat-grid { grid-template-columns: repeat(var(--nm, 4), minmax(0, 1fr)); gap: 12px 4px; }
  .cat-img { width: min(100%, 60px); border-radius: 16px; }
  .cat-name { font-size: 12.5px; }
  .points ul { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 10px; padding: 8px 12px; }
  .points li { font-size: 12.5px; }
  .points li:first-child:nth-last-child(odd) { grid-column: 1 / -1; }

  .yn-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec-head p { flex-basis: 100%; }
  .tabbar ul { width: 100%; padding: 0 var(--gut); }

  .select-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards, .cards-s { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-body { padding: 8px 10px 10px; }
  .card h3 { font-size: 15px; }
  .card dl { grid-template-columns: 1fr; gap: 0; font-size: 12px; }
  .card dt { display: none; }
  .card dd:last-of-type { display: none; }
  .card dd { padding-right: 36px; }
  .add { right: 8px; bottom: 8px; width: 32px; height: 32px; }

  .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dir-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dir-grid ul li:nth-child(n+5) { display: none; }
  .pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pack-a { grid-column: 1 / -1; flex-direction: row; }
  .pack-a .pack-media { flex: 0 0 46%; aspect-ratio: auto; }
  .pack-a .pack-body { align-self: center; }
  .steps { grid-template-columns: 1fr; gap: 6px; }
  .steps li { padding: 8px 12px 9px; }
  .regions { grid-template-columns: 1fr; }
  .origin-why dl { grid-template-columns: 1fr; gap: 0; }
  .origin-why dt { margin-top: 6px; }
  .map text { font-size: 25px; }
  html[lang="en"] .map text { font-size: 21px; }

  .form { grid-template-columns: 1fr; }
  .form .btn { justify-self: stretch; }
  .direct a, .direct-row { display: flex; flex-wrap: wrap; }
  .direct a.line-btn { display: inline-flex; flex-wrap: nowrap; }
  .footer-grid { grid-template-columns: 1fr; }

  .phero { padding-top: 76px; }
  .rows { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .lineup { grid-template-columns: 1fr; }
  .lineup li { grid-template-columns: 96px minmax(0, 1fr); gap: 0 14px; }
  .lineup li > span:last-child { font-size: 13px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; margin-top: 0; }
  .spec-table th { width: 6em; padding-right: 10px; font-size: 12.5px; }
  .filters button { padding: 4px 11px; font-size: 12.5px; }
  .ptable thead { display: none; }
  .ptable tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
  .ptable tr[hidden] { display: none; }
  .ptable td { padding: 0; border: 0; }
  .p-cat { grid-column: 2; grid-row: 1; font-size: 12px; }
  .p-alt, .p-origin, .p-forms { grid-column: 1 / -1; font-size: 12.5px; }

  .slot-name { white-space: normal; }
  /* slot table on a phone: number left, name and count on one line, description under them */
  .slots tr { grid-template-columns: 26px minmax(0, 1fr) auto; gap: 1px 10px; align-items: center; }
  .slots .slot-no { grid-row: 1 / span 2; }
  .slots .slot-name { grid-column: 2; grid-row: 1; }
  .slots .slot-qty { grid-column: 3; grid-row: 1; font-size: 12.5px; }
  .slots td:nth-child(3) { grid-column: 2 / -1; grid-row: 2; font-size: 12.5px; color: var(--ink-soft); }

  .listbar { bottom: 8px; gap: 8px; padding: 6px 6px 6px 14px; }
  .quick { right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); gap: 6px; }
  .quick a { min-height: 36px; padding: 6px 12px 6px 9px; font-size: 12.5px; gap: 6px; }
  .quick svg { width: 17px; height: 17px; }
  body.has-list .quick { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .footer { padding-bottom: 150px; }
  body.has-list .footer { padding-bottom: 210px; }
  .listbar-info { font-size: 13px; }
  .listbar-go { padding: 9px 16px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card-media img, .select-photo img, .cat-img img, .line-btn, .add, .tabbar button::after, .tabbar a::after { transition: none; }
  .slide, .slide.is-on, .slides-dots button::before, .slides.is-live .slides-nav, .quick a { transition: none; }
}

@media (max-width: 1080px) {
  [dir="rtl"] .lang { margin-left: 0; margin-right: auto; }
}
@media (max-width: 720px) {
  [dir="rtl"] .topbar { padding: 5px 12px 5px 5px; }
  [dir="rtl"] .brand { margin: -8px -9px -8px 0; }
  [dir="rtl"] .card dd { padding-right: 0; padding-left: 36px; }
  [dir="rtl"] .add { right: auto; left: 8px; }
  [dir="rtl"] .spec-table th { padding-right: 0; padding-left: 10px; }
  [dir="rtl"] .listbar { padding: 6px 14px 6px 6px; }
  [dir="rtl"] .quick { right: auto; left: 10px; }
  [dir="rtl"] .quick a { padding: 6px 9px 6px 12px; }
  html[lang="ko"] .hero h1, html[lang="ar"] .hero h1 { font-size: clamp(25px, 7.2vw, 31px); }
  html[lang="vi"] .hero h1 { font-size: clamp(23px, 6.6vw, 29px); }
}
