/* Tiandy Việt Nam: theme-level components the kit lacks, on the kit's tokens only (spacing --s-*, type --t-*,
   radius --r-*, colours --ink/--muted/--line/--surface/--accent). Never a second button, radius or type scale. */

/* ---------------------------------------------------------------- nav (the client's menu) */
.nav__logo img { display: block; height: 32px; width: auto; }
@media (max-width: 639px) { .nav__logo img { height: 26px; } }
.nav-search { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-sm);
  background: var(--accent); color: var(--accent-ink); transition: transform var(--dur) var(--ease), filter var(--dur) var(--ease); }
.nav-search:hover { transform: translateY(-1px); filter: brightness(0.94); }
.nav-search:active { transform: translateY(0) scale(0.97); }
@media (min-width: 1024px) { .nav-quote { display: none; } }
/* seven words: tighter on a laptop so the bar never wraps */
@media (min-width: 1024px) and (max-width: 1359px) { .nav__link { padding-inline: var(--s-2); font-size: 14px; } .nav__bar { gap: var(--s-5); } }

/* the products mega panel: five columns, each the group's picture, name, lines and a see-all link */
.mega { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-5); }
.mega__col { display: grid; align-content: start; gap: var(--s-3); }
.mega__pic { display: block; aspect-ratio: 4 / 3; border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--line); overflow: clip; }
.mega__pic img { width: 100%; height: 100%; object-fit: contain; padding: 10%; transition: transform 600ms var(--ease); }
.mega__pic:hover img { transform: scale(1.03); }
.mega__head { font: 500 var(--t-card)/1.3 var(--font-text); padding-bottom: var(--s-3); border-bottom: 1px solid var(--line); }
.mega__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1); }
.mega__list a { display: grid; gap: 2px; padding: var(--s-1) 0; font-weight: 500; font-size: 15px; }
.mega__list a span { font-weight: 400; font-size: var(--t-small); color: var(--muted); }
.mega__list a:hover { color: var(--action); }
.mega__all { font-size: var(--t-small); justify-self: start; }
@media (max-width: 1023px) {
  .mega { grid-template-columns: 1fr; gap: var(--s-4); }
  .mega__pic { display: none; }
  .mega__head { font-size: var(--t-body); padding-bottom: var(--s-2); }
  .nav.is-open .nav__actions .nav-search { width: 100%; }
}

/* ---------------------------------------------------------------- home */
/* the brand's green on a heading's key words: on a light ground a deeper green (#1f8212, 4.9:1 on white; Tiandy's
   #41d228 is 2:1 there and cannot carry text), on a dark ground Tiandy's own green */
:root { --hl-ink: #1f8212; }
.hl { color: var(--hl-ink); }
.ground-inverse .hl, .footer--dark .hl { color: var(--p-inv-accent); }
/* home: a heading on one line where the width allows it (its line under it keeps its 60ch) */
.home main .section-head:not(.section-head--row) { max-width: none; }
/* the hero photograph: the picture is the layer, the img fills it */
.hero--photo > .hero__bg > img { width: 100%; height: 100%; object-fit: cover; }
/* the slideshow (the client's ask): the next photographs lie on the first in its exact place and cross-fade in turn
   (theme.js [data-slides]); one control on the photograph's upper right, on the container's right line (at its foot it read as the hero's last content) */
.hero__ctrl { position: absolute; z-index: 2; right: 0; top: 0;
  display: flex; align-items: center; padding-inline: var(--s-1); border-radius: 999px; background: rgb(21 26 21 / .66); color: #fff; }
.hero__ctrl button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.hero__dot::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: rgb(255 255 255 / .6); transition: width 300ms var(--ease), background 300ms var(--ease); }
.hero__dot:hover::before { background: #fff; }
.hero__dot[aria-current="true"]::before { width: 22px; background: var(--p-accent); }
.hero__pause svg { width: 16px; height: 16px; }
.hero__ctrl button:focus-visible { outline: 2px solid #fff; outline-offset: -4px; border-radius: 999px; }
/* the next photograph waits on the picture's own ground while the shown one fades (theme.js): one layer */
.hero--slides > .hero__bg { background-size: cover; background-repeat: no-repeat; }
.hero--slides > .hero__bg > img { transition: opacity 1200ms var(--ease); }
/* from 1023 down the photograph is a band above the words: the button sits on the band's lower right */
@media (max-width: 1023px) { .hero__ctrl { top: calc(-1 * (var(--hgap) + 44px + var(--s-3))); bottom: auto; } }
/* a phone: the pause button alone (the dots would run past half the column) */
@media (max-width: 639px) { .hero__ctrl .hero__dot { display: none; } }

/* product pictures: cut-outs (transparent, white or #f3f5f7 grounds in the client's files) on white with one hairline,
   so every file sits on the same ground (sections.md, Product: big) */
.range .tile__media, .pcard__media { background: var(--bg); border: 1px solid var(--line); }
.range .tile__media > img { object-fit: contain; padding: 6%; }
.range .tile__price { color: var(--muted); }
/* the five groups: two then three. From 1024 up both rows in one screen (the client found two screens too airy):
   the .g2 the section carries for the tablet and the phone is set back to one screen here */
.range--two .tile__media { aspect-ratio: auto; height: clamp(120px, 50svh - 262px, 280px); }
.range--three .tile__media { aspect-ratio: auto; height: clamp(110px, 50svh - 292px, 240px); }
@media (min-width: 1024px) {
  main > #nhom-san-pham.g2 { --h: 1; }
  main > #nhom-san-pham.g2 > .wrap { display: flex; flex-direction: column; row-gap: var(--card-gap); }
  main > #nhom-san-pham.g2 > .wrap > .grid:last-child, main > #nhom-san-pham.g2 > .wrap > .group > .grid:last-child { flex: none; }
}

/* wireless and solar: rows left, the solar camera whole on the surface right */
.wl__rows .rows__name { font-size: var(--t-card); text-decoration: none; justify-self: start; }
.wl__rows > li { align-items: baseline; }
.wl__pic { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); height: clamp(240px, 42svh, 400px); display: grid; place-items: center; overflow: clip; }
.wl__pic { position: relative; }
.wl__pic > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6%; }   /* the camera whole in its panel, never its own height */
@media (max-width: 639px) { .wl__pic { height: 260px; margin-top: var(--s-6); } }

.wl__more { margin-top: var(--s-6); }

/* about Tiandy on the dark ground (line-carries-colour): the words, three facts and the link left, the proof photograph right */
.about-home__grid { align-items: start; }
.about-home__text { display: grid; gap: var(--s-5); align-content: start; }
.about-home__text > p { max-width: 52ch; }
.about-home__rows { margin-top: var(--s-2); }
.about-home__text > .link { justify-self: start; }
.about-home__pic { border-radius: var(--r-lg); overflow: clip; height: clamp(320px, 100svh - 300px, 620px); }
.about-home__pic > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
@media (max-width: 1023px) { .about-home__pic { height: clamp(240px, 32svh, 380px); margin-top: var(--s-6); } }
@media (max-width: 639px) { .about-home__text { gap: var(--s-4); } .about-home__pic { height: 176px; margin-top: var(--s-5); } }

/* PTZ on the dark band: the one [data-visual] frame, the effect under three cameras standing whole on its floor */
.ptz-stage { position: relative; isolation: isolate; border-radius: var(--r-lg); overflow: clip; height: clamp(280px, 52svh - 40px, 520px);
  display: flex; align-items: stretch; padding: var(--s-7) 0 var(--s-6); }
/* three equal columns; the cameras cut to their bodies, one height, standing on one floor line */
.ptz-stage__item { display: flex; align-items: flex-end; justify-content: center; flex: 1 1 0; min-width: 0; }
.ptz-stage__item img { display: block; width: auto; max-width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; transition: transform 600ms var(--ease); transform-origin: 50% 100%; }
/* graded by zoom, largest to smallest: 63x whole height, 44x 84%, 23x 70%, all on the floor line */
.ptz-stage__item:nth-of-type(2) img { height: 84%; }
.ptz-stage__item:nth-of-type(3) img { height: 70%; }
@media (hover: hover) and (pointer: fine) { .ptz-stage__item:hover img { transform: scale(1.03); } }
@media (max-width: 639px) {
  .ptz-stage { height: 420px; padding-top: var(--s-5); }
  .ptz-stage__item:nth-of-type(n+2) { display: none; }
}

/* the three camera series as cards: the series' camera, its role and five spec rows, one link */
.series__card { display: grid; align-content: start; gap: var(--s-3); }
.series__pic { display: block; height: clamp(160px, 27svh - 4px, 240px); border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--line); overflow: clip; margin-bottom: var(--s-2); }
.series__pic img { width: 100%; height: 100%; object-fit: contain; padding: var(--s-3); transition: transform 600ms var(--ease); }
.series__card:hover .series__pic img { transform: scale(1.03); }
.series__card h3 { font: 500 var(--t-card)/1.3 var(--font-text); }
.series__role { color: var(--muted); font-size: var(--t-small); }
.series__rows > li { padding-block: var(--s-2); }
.series__link { justify-self: start; margin-top: var(--s-2); }

/* news tiles */
.ncard .tile__media { --tile-ratio: 3 / 2; }
.ncard__body { display: grid; gap: var(--s-2); }
.ncard__meta { color: var(--muted); font-size: var(--t-small); }
.ncard__title { font: 500 var(--t-card)/1.35 var(--font-text); letter-spacing: -0.01em; }
.ncard__excerpt { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; max-width: 60ch; }
/* home news: the newest whole on the left (its picture takes what the words leave), three more as rows on the right */
.news-home { align-items: stretch; }
.news-home__lead { grid-template-rows: minmax(0, 1fr) auto; align-content: stretch; }
.news-home__lead .tile__media { aspect-ratio: auto; min-height: 0; }
.news-home__lead .tile__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-home__list { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); row-gap: var(--s-5); }
@media (min-width: 1024px) { .news-home__list { grid-column: 1 / span 6; grid-row: 1; } .news-home__lead { grid-row: 1; } }
/* a row: the date and title left, the picture right (words first, as every split on the page) */
.news-home__item { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; gap: var(--s-5); }   /* the date on the picture's top line */
.news-home__item > .tile__media { --tile-ratio: 3 / 2; }
.news-home__item .ncard__title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* footer: the logo on the dark ground keeps its own green */
.footer .nav__logo img { height: 40px; width: auto; }
/* the close's photograph: the camera wall's middle band */
#contact .close__media { --pos: 50% 42%; }
/* the distributor's contact lines (Tùy biến > Thông tin công ty): one strip across the .wrap between the columns
   and the legal row, each a small label over its value */
.footer__contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-4) var(--gutter); font-size: var(--t-small); }
.footer__contact > div { display: grid; gap: var(--s-1); grid-column: span 2; }
.footer__contact > div:first-child { grid-column: 1 / span 4; }   /* on the columns above: the address under the company, the rest under the link columns */
.footer__contact > div:last-child:not(:first-child) { grid-column-end: -1; }   /* the row ends on the container's right line */
.footer__contact dt { color: var(--muted); }
.footer__contact dd { margin: 0; }
.footer__contact a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.footer__contact a:hover { text-decoration-color: currentColor; }
/* the close: the h2 on one line beside the button from a laptop up; the photograph takes what the screen leaves and
   the footer grows rather than lay the photograph on the links */
@media (min-width: 1024px) {
  #contact .closing__cta h2 { max-width: none; }
  #contact .closing__links { gap: var(--s-6); }
  #contact .close__media { min-height: 100px; }
}
/* a short screen leaves the photograph a sliver: there the close stands as type (h2, line, button) */
@media (min-width: 1024px) and (max-height: 820px) { #contact .close__media { display: none; } }
@media (min-width: 640px) and (max-width: 1023px) and (max-height: 1100px) { #contact .close__media { display: none; } }
/* the tablet: the company across, the four link columns on one row under it */
@media (min-width: 640px) and (max-width: 1023px) {
  #contact .closing__links { gap: var(--s-6); }
  #contact .close__media { min-height: 120px; }
  footer#contact > .wrap { row-gap: var(--s-7); }
}
/* a phone: the close, a 200px band of the photograph, then the links and the contact lines, in two screens */
@media (max-width: 639px) {
  footer#contact { --hm: 2; }
  footer#contact > .wrap { display: flex; flex-direction: column; row-gap: var(--s-7); }
  /* what the two screens leave goes to the photograph (200px at least), never to an empty foot under the legal row */
  footer#contact > .wrap > .closing__cta { flex: 1 1 auto; }
  #contact .close__media { flex: 1 1 auto; height: auto; min-height: 200px; }
}
@media (max-width: 1023px) { .footer__contact > div { grid-column: span 3; } .footer__contact > div:first-child { grid-column: 1 / span 6; } }   /* one row: the address on half, the rest beside it */
@media (max-width: 639px) { .footer__contact { grid-template-columns: minmax(0, 1fr); gap: var(--s-2); } .footer__contact > div, .footer__contact > div:first-child { grid-column: 1 / -1; grid-template-columns: 6.5em minmax(0, 1fr); align-items: center; gap: var(--s-3); } .footer__contact a { display: inline-flex; align-items: center; min-height: 44px; } }
.footer__legal { flex-direction: column; align-items: flex-start; gap: var(--s-2); }   /* the two legal lines one under the other, both on the container's left */
/* from a laptop up the two lines share a row on the footer's own grid: the trademark line starts on the first link column */
@media (min-width: 1024px) {
  .footer__legal { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
  .footer__legal > :first-child { grid-column: 1 / span 4; }
  .footer__legal > :nth-child(2) { grid-column: 5 / -1; }
}

/* ---------------------------------------------------------------- home: the tablet and a small laptop (layout-v4.md section 2) */
@media (min-width: 640px) and (max-width: 1023px) {
  /* the range two-up, the fifth tile across the row, each group within one screen */
  /* two screens: the first the two largest groups across, one above the other; the second the other three */
  #nhom-san-pham .range .tile { grid-column: span 6; }
  #nhom-san-pham .range--three .tile:last-child { grid-column: 1 / -1; }
  #nhom-san-pham .range--two .tile { grid-column: 1 / -1; }
  #nhom-san-pham .range--two .tile__media { height: calc(50svh - 230px); }
  #nhom-san-pham .range--three .tile__media { height: 300px; }
  #camera-khong-day .wl__pic { height: 220px; margin-top: var(--s-6); }
  /* the three series one screen: each a row, its camera left and its facts right, no card ground */
  #dong-camera { --h: 1; }
  #dong-camera .series { row-gap: var(--s-4); }
  #dong-camera .series__card { grid-column: 1 / -1; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--s-6); row-gap: var(--s-2); }
  #dong-camera .series__card > :not(.series__pic) { grid-column: 2; }
  #dong-camera .series__pic { grid-column: 1; grid-row: 1 / span 3; height: auto; min-height: 160px; margin: 0; }
  /* the series' name and its role on one line, the role on the right */
  #dong-camera .series__card h3 { grid-row: 1; align-self: baseline; }
  #dong-camera .series__role { grid-row: 1; justify-self: end; align-self: baseline; }
  /* the picture takes the height of the facts beside it, never sets it */
  #dong-camera .series__pic { position: relative; }
  #dong-camera .series__pic img { position: absolute; inset: 0; }
  #dong-camera .series__rows { grid-row: 2; }
  #dong-camera .series__link { grid-row: 3; }
  #dong-camera .series__rows > li { padding-block: var(--s-1); }
}

/* below a laptop the series are not cards on a ground of their own (a ground inside a section reads as a band):
   plain blocks on the section's ground, a rule between them, text on the container's left */
@media (max-width: 1023px) {
  #dong-camera .series__card { background: none; border: 0; border-radius: 0; box-shadow: none; padding: var(--s-4) 0 0; border-top: 1px solid var(--line); }
  #dong-camera .series__card:first-child { border-top: 0; padding-top: 0; }
}

/* the phone: each section within its screens (layout-v4.md section 2) */
@media (max-width: 639px) {
  .range--two .tile__media, .range--three .tile__media { height: 186px; }
  .range--three .tile__media { height: 272px; }   /* the second screen's three fill it (one gap between sections) */
  #camera-khong-day .wl__pic { height: 150px; margin-top: var(--s-4); }
  #camera-khong-day .wl__more { margin-top: var(--s-4); }
  .closing__links > .grid { row-gap: var(--s-4); }   /* the footer's links within the second screen */
  .footer__legal { margin-top: var(--s-6); padding-top: var(--s-5); }
  .wl__rows > li > p { grid-column: 1 / -1; }   /* the line under a range runs the row's full width, not beside the count */
  /* a section's "see all" link under its heading runs the column's width, its arrow on the right edge */
  .section-head--row > .link, .wl__more > .link { display: flex; width: 100%; justify-content: space-between; }
  #dong-camera { --hm: 2; }
  .series__pic { height: 160px; }
  .series__rows > li { padding-block: var(--s-1); }
}

/* ================================================================ catalogue and product pages
   A catalogue page is a list, not a stack of one-screen sections: .flow sections are as tall as their content,
   on the kit's .wrap, grid and tokens. */
main > :is(section, article).section.flow { height: auto; min-height: 0; padding: var(--s-8) 0 var(--s-9); }
main > :is(section, article).section.flow > .wrap { height: auto; }
main > :is(section, article).section.flow:first-child { padding-top: calc(var(--nav) + var(--s-7)); }
main > :is(section, article).section.flow + :is(section, article).flow { padding-top: 0; }
@media (max-width: 639px) { main > :is(section, article).section.flow { min-height: 0; padding: var(--s-7) 0 var(--s-8); } main > :is(section, article).section.flow:first-child { padding-top: calc(var(--nav) + var(--s-6)); } }

/* breadcrumbs */
.crumbs ol { list-style: none; margin: 0 0 var(--s-5); padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-2); font-size: var(--t-small); color: var(--muted); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: var(--s-2); color: var(--line-strong); }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); }

/* the category head */
.cat-head { padding-bottom: var(--s-7) !important; }
.cat-head__row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-3) var(--s-6); }
.cat-head h1 { font: var(--display-weight) var(--t-h2)/1.08 var(--font-display); letter-spacing: var(--display-tracking); }
.cat-head__count { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-6); }
.chip { position: relative; display: inline-flex; align-items: center; gap: var(--s-1); min-height: 40px; padding: 0; border: 0; background: none;
  font-size: 15px; font-weight: 500; color: var(--muted); transition: color var(--dur) var(--ease); }
.chip::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; border-radius: 2px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform var(--dur) var(--ease); }
.chip:hover { color: var(--ink); }
.chip:hover::after, .chip:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.chip.is-on { color: var(--ink); }
.chip.is-on::after { transform: none; }
.chip--sm { min-height: 32px; font-size: var(--t-small); }
.chips { gap: var(--s-1) var(--s-6) !important; }
.results__sort, .active-filters, .pd__chips { gap: var(--s-2) var(--s-5) !important; }
@media (max-width: 639px) { .chip, .chip--sm { min-height: 44px; } }

/* filters: plain links, a box drawn for the on state */
.filters__box { border: 0; }
.filters__toggle { list-style: none; cursor: pointer; font: 500 var(--t-card)/1.3 var(--font-text); padding-bottom: var(--s-4); display: flex; align-items: center; gap: var(--s-2); }
.filters__toggle::-webkit-details-marker { display: none; }
.filters__n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 13px; }
@media (min-width: 1024px) { .filters__toggle { pointer-events: none; } }
.filter { border: 0; margin: 0; padding: var(--s-4) 0; border-top: 1px solid var(--line); min-width: 0; }
.filter__name { float: left; width: 100%; padding: 0; margin-bottom: var(--s-2); font-size: var(--t-small); font-weight: 500; color: var(--muted); }
.filter__name + .filter__list { clear: both; }
.filter__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.filter__opt { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: var(--s-3); min-height: 36px; padding: 0; font-size: 15px; color: var(--ink); }
.filter__opt:hover .filter__label { text-decoration: underline; text-underline-offset: 3px; }
.filter__opt:hover .filter__box { border-color: var(--ink); }
.filter__box { width: 18px; height: 18px; border: 1.5px solid var(--line-strong); border-radius: 4px; background: var(--bg); }
.filter__opt.is-on .filter__box { background: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 3px var(--bg); }
.filter__opt.is-on .filter__label { font-weight: 500; }
.filter__count { color: var(--muted); font-size: var(--t-small); font-variant-numeric: tabular-nums; }
@media (max-width: 1023px) {
  .filters { grid-column: 1 / -1; }
  .filters__box { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-4) var(--s-5) 0; margin-bottom: var(--s-6); }
  .filters__box[open] { padding-bottom: var(--s-2); }
  .filters__toggle { padding-bottom: var(--s-4); }
  .filters__box:not([open]) .filters__toggle { padding-bottom: var(--s-4); }
  .filters__box[open] { columns: 2 220px; column-gap: var(--s-6); }
  .filters__box[open] .filters__toggle { column-span: all; }
  .filter { break-inside: avoid; }
  .filter__opt { min-height: 44px; }
}

/* the results */
.results { min-width: 0; }
@media (max-width: 1023px) { .results { grid-column: 1 / -1; } }
.results__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-5); }
.results__count { color: var(--muted); }
.results__sort { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin-bottom: var(--s-6); }
.pgrid { row-gap: var(--s-7); }
@media (min-width: 640px) and (max-width: 1279px) { .catalogue .pgrid > .pcard { grid-column: span 6; } }
@media (min-width: 1024px) and (max-width: 1279px) { .catalogue .pgrid > .pcard { grid-column: span 6; } }

/* the product tile: the cut-out whole on white, the model, the name, one facts line */
.pcard { align-content: start; }
.pcard__media { --tile-ratio: 1 / 1; }
.pcard__media > img { object-fit: contain; padding: 8%; }
.pcard__body { display: grid; gap: var(--s-1); }
.pcard__model { font: 500 13px/1.4 var(--font-mono); color: var(--muted); letter-spacing: 0.01em; overflow-wrap: anywhere; }
.pcard__name { font: 500 var(--t-body)/1.4 var(--font-text); }
.pcard__facts { color: var(--muted); font-size: var(--t-small); }
@media (max-width: 639px) { .pgrid > .pcard { grid-column: span 6; } .pgrid { column-gap: var(--s-3); } .pcard__media > img { padding: 6%; } }

/* paging and the empty state */
.pager { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-8); }
.pager :is(a, span) { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 var(--s-3); border: 1px solid var(--line-strong); border-radius: var(--r-btn); font-weight: 500; }
.pager a:hover { border-color: var(--ink); }
.pager .current { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pager .dots { border: 0; }
.empty { padding: var(--s-8) 0; display: grid; gap: var(--s-3); }
.empty__title { font: 500 var(--t-card)/1.3 var(--font-text); }

/* ---------------------------------------------------------------- product page */
.pd__grid { row-gap: var(--s-7); }
.pd__main { aspect-ratio: 1 / 1; max-height: min(720px, calc(100svh - var(--nav) - 96px)); width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: clip; display: grid; place-items: center; }
.pd__main-img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.pd__thumbs { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-4); }
.pd__thumb { width: 88px; height: 88px; padding: 0; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); cursor: pointer; overflow: clip; transition: border-color var(--dur) var(--ease); }
.pd__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.pd__thumb:hover { border-color: var(--line-strong); }
.pd__thumb.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pd__info { display: grid; gap: var(--s-5); align-content: start; }
.pd__model { font: 500 14px/1.4 var(--font-mono); color: var(--muted); }
.pd__info h1 { font: var(--display-weight) clamp(30px, 2.2vw + 10px, 44px)/1.12 var(--font-display); letter-spacing: var(--display-tracking); }
.pd__short ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.pd__short li { padding: var(--s-2) 0; border-bottom: 1px solid var(--line); font-size: var(--t-body); }
.pd__short li:first-child { padding-top: 0; }
.pd__short strong { font-weight: 500; }
.pd__price { font-size: var(--t-small); }
.pd__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.pd__vars .t-label { margin-bottom: var(--s-2); color: var(--muted); }
.pd__vars .rows__name { font-family: var(--font-mono); font-size: 14px; color: var(--ink); }
@media (max-width: 1023px) {
  .pd__gallery, .pd__info { grid-column: 1 / -1; }
  .pd__gallery { order: -1; }   /* stacked: the product first, then what it is */
  .pd__grid { row-gap: var(--s-6); }
}
/* a phone: four lines of the summary, then the action; the whole sheet is in Thông số kỹ thuật below */
@media (max-width: 639px) { .pd__short li:nth-child(n+5) { display: none; } } @media (min-width: 640px) and (max-width: 1023px) { .pd__main { max-height: 560px; } }
@media (max-width: 639px) { .pd__thumb { width: 64px; height: 64px; } }

/* the spec sheet: groups in two columns from 1024, label left, value right, a rule closing each row */
.spec { background: var(--surface); padding-top: var(--s-9) !important; margin-top: var(--s-4); }
.spec__cols { row-gap: 0; }
@media (max-width: 1023px) { .spec__stack { grid-column: 1 / -1; } }
.spec__group { break-inside: avoid; margin-bottom: var(--s-7); }
.spec__name { font: 500 var(--t-card)/1.3 var(--font-text); margin-bottom: var(--s-3); }
.spec__rows { margin: 0; }
.spec__row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--s-4); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.spec__row dt { color: var(--muted); }
.spec__row dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 639px) { .spec__row { grid-template-columns: 1fr; gap: var(--s-1); } }
.spec__sheets { margin-top: var(--s-8); }
.spec__sheet-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: var(--s-5); align-items: start; }
.spec__sheet { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); overflow: clip; }
.spec__sheet img { width: 100%; height: auto; display: block; }

/* the quote block on the product page */
.pd-quote { padding-top: var(--s-9) !important; }
.pd-quote__item { display: grid; grid-template-columns: 96px 1fr; gap: var(--s-4); align-items: center; margin-top: var(--s-6); padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-md); }
.pd-quote__item img { width: 96px; height: 96px; object-fit: contain; }
.pd-quote__name { font-weight: 500; }
@media (max-width: 1023px) { .pd-quote .span-5, .pd-quote__form { grid-column: 1 / -1; } .pd-quote__form { margin-top: var(--s-6); } }
.related .pgrid > .pcard { grid-column: span 3; }
@media (max-width: 1023px) { .related .pgrid > .pcard { grid-column: span 6; } }

/* home news from 1023 down: the four as rows, picture left, date and title right (the lead's first lines go) */
@media (max-width: 1023px) {
  .news-home { row-gap: 0; }
  .news-home__lead, .news-home__list { grid-column: 1 / -1; }
  .news-home__list { grid-template-rows: none; }
  .news-home__lead { grid-template-rows: none; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: center; gap: var(--s-5); margin-bottom: var(--s-5); }
  .news-home__lead > .tile__media { order: 2; }
  .news-home__lead .tile__media { aspect-ratio: 3 / 2; }
  .news-home__lead .tile__media > img { position: static; }
  .news-home__lead .ncard__title { font-size: var(--t-card); }
  .news-home__lead .ncard__excerpt { display: none; }
  .news-home__lead .tile__media, .news-home__item .tile__media { aspect-ratio: 16 / 9; --tile-ratio: 16 / 9; }
}
/* a phone: the newest across, two more as rows under it */
@media (max-width: 639px) {
  .news-home__lead { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
  .news-home__lead > .tile__media { order: 0; }
  .news-home__lead .tile__media { aspect-ratio: 21 / 9; }
  .news-home__item { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--s-4); }
  .news-home__item .ncard__title { font-size: var(--t-body); }
  .news-home__item:nth-child(n+3) { display: none; }
}

/* ================================================================ news (blog) */
.news-lead { align-items: center; row-gap: var(--s-5); margin-bottom: var(--s-9); color: inherit; }
.news-lead__media { --tile-ratio: 16 / 10; }
.news-lead__body { display: grid; gap: var(--s-4); align-content: center; }
.news-lead__title { font: var(--display-weight) clamp(26px, 1.6vw + 12px, 36px)/1.15 var(--font-display); letter-spacing: var(--display-tracking); }
.news-lead__excerpt { color: var(--ink); max-width: 46ch; }
.news-lead .link { justify-self: start; }
@media (hover: hover) and (pointer: fine) { .news-lead:hover .tile__media > img { transform: scale(1.03); } }
@media (max-width: 1023px) { .news-lead > * { grid-column: 1 / -1; } }
.news-grid { row-gap: var(--s-8); }
@media (min-width: 640px) and (max-width: 1023px) { .news-grid > .tile { grid-column: span 6; } }
@media (max-width: 639px) { main .news-grid.grid > .tile.ncard { grid-column: 1 / -1; } }

/* the article: head and body on a reading measure, the cover across the wrap */
.article__head { max-width: 860px; display: grid; gap: var(--s-4); margin-bottom: var(--s-7); }
/* the post: the body on 8 columns, the sidebar on 4 that stays in view while the body scrolls */
.article__grid { align-items: stretch; row-gap: var(--s-8); }
.article__main { min-width: 0; }
.article__main .prose, .article__main .article__nav { max-width: none; }
.article__sticky { position: sticky; top: calc(var(--nav) + var(--s-5)); display: grid; gap: var(--s-5); }
.side-box { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5); display: grid; gap: var(--s-4); align-content: start; }
.side-box__h { font: 500 var(--t-body)/1.3 var(--font-text); margin: 0; }
.side-box__h::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--p-accent); margin-right: var(--s-2); vertical-align: .1em; }
/* contents: the headings as links; the one being read marked in the brand's green */
.toc__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc__item a { display: block; padding: var(--s-2) var(--s-3); border-left: 2px solid var(--line); color: var(--muted); font-size: var(--t-small); line-height: 1.45; transition: color 160ms var(--ease), border-color 160ms var(--ease); }
.toc__item--h3 a { padding-left: var(--s-6); }
.toc__item a:hover { color: var(--ink); }
.toc__item a[aria-current="true"] { color: var(--hl-ink); border-left-color: var(--p-accent); font-weight: 500; }
.toc--side .toc__list { max-height: 42svh; overflow: auto; }
.toc--inline { display: none; }
/* related products: the picture on white, the model and the name */
.side-products { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.side-product { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--s-3); align-items: center; }
.side-product__pic { width: 64px; height: 64px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; display: grid; place-items: center; overflow: clip; }
.side-product__pic img { width: 100%; height: 100%; object-fit: contain; padding: 4px; transition: transform 300ms var(--ease); }
.side-product:hover .side-product__pic img { transform: scale(1.04); }
.side-product__txt { display: grid; gap: 2px; min-width: 0; }
.side-product__model { font: 500 13px/1.3 var(--font-mono); color: var(--hl-ink); }
.side-product__name { font-size: var(--t-small); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-product:hover .side-product__name { text-decoration: underline; text-underline-offset: 3px; }
/* the quote on the dark ground */
.side-cta { border: 0; background: var(--p-inv-bg); color: var(--p-inv-ink); }
.side-cta__h { font: 500 var(--t-card)/1.3 var(--font-text); }
.side-cta__p { color: var(--p-inv-muted); font-size: var(--t-small); }
.side-cta .btn { justify-self: start; }
.prose :is(h2, h3) { scroll-margin-top: calc(var(--nav) + var(--s-5)); }
.prose h2 { font-size: var(--t-h3); }
.prose__num { color: var(--hl-ink); font-family: var(--font-mono); font-weight: 500; margin-right: .35em; }
/* below a laptop: the sidebar after the body, the contents folded above it */
@media (max-width: 1023px) {
  .article__side { grid-column: 1 / -1; }
  .article__sticky { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .toc--side { display: none; }
  .toc--inline { display: block; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-4) var(--s-5); margin-bottom: var(--s-6); }
  .toc--inline summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
  .toc--inline summary::-webkit-details-marker { display: none; }
  .toc--inline[open] summary { margin-bottom: var(--s-3); }
  .toc__n { color: var(--muted); font-size: var(--t-small); font-weight: 400; }
}
@media (max-width: 639px) { .article__sticky { grid-template-columns: minmax(0, 1fr); } .toc__item a { min-height: 44px; display: flex; align-items: center; } }
.article__head h1 { font: var(--display-weight) clamp(32px, 2.6vw + 12px, 52px)/1.1 var(--font-display); letter-spacing: var(--display-tracking); }
.article__cover { margin: 0 0 var(--s-8); border-radius: var(--r-lg); overflow: clip; background: var(--surface); }
.article__cover img { width: 100%; max-height: 640px; object-fit: cover; display: block; }
.prose { max-width: 720px; font-size: 18px; line-height: 1.7; color: var(--ink); }
.prose > * + * { margin-top: 1.1em; }
.prose :is(h2, h3, h4) { font: 500 var(--t-card)/1.3 var(--font-text); margin-top: 1.6em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose img, .prose .post-img { display: block; width: 100%; height: auto; border-radius: var(--r-md); margin-block: 1.4em; background: var(--surface); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--t-small); }
.prose :is(td, th) { border-bottom: 1px solid var(--line); padding: var(--s-2) var(--s-3) var(--s-2) 0; text-align: left; vertical-align: top; }
.prose strong, .prose b { font-weight: 500; }
@media (max-width: 639px) { .prose { font-size: 17px; } }
.article__nav { max-width: 720px; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); margin-top: var(--s-9); padding-top: var(--s-6); border-top: 1px solid var(--line); }
.article__step { display: grid; gap: var(--s-1); font-weight: 500; }
.article__step .t-label { color: var(--muted); font-weight: 500; }
.article__step--next { text-align: right; grid-column: 2; }
.article__step:hover span:last-child { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 639px) { .article__nav { grid-template-columns: 1fr; } .article__step--next { grid-column: 1; text-align: left; } }

/* contact and search */
.page-lead { margin-top: var(--s-4); max-width: 56ch; font-size: var(--t-lead); color: var(--ink); }
.contact__h { font: 500 var(--t-card)/1.3 var(--font-text); margin-bottom: var(--s-5); }
.contact__rows .rows__name { font-weight: 500; }
.contact__links { margin-top: var(--s-6); }
.contact__h--direct { margin-top: var(--s-8); }
.contact__rows .rows__value { white-space: normal; text-align: right; max-width: 60%; justify-self: end; }
.search-form { margin-top: var(--s-6); max-width: 760px; }
.search-form__row { display: flex; gap: var(--s-3); }
.search-form__row input { flex: 1; }
@media (max-width: 639px) { .search-form__row { flex-direction: column; } }
.catalogue .pgrid > .pcard.span-3 { grid-column: span 3; }
@media (max-width: 1023px) { .catalogue .pgrid > .pcard.span-3 { grid-column: span 6; } }

/* ---------------------------------------------------------------- logged in: WordPress' admin bar (32px, 46px under 783)
   sits above the fixed header, never on it; the phone sheet opens under both */
body.admin-bar .nav { top: 32px; }
body.admin-bar .nav.is-open .nav__links { top: calc(var(--nav) + 32px); }
@media screen and (max-width: 782px) {
  body.admin-bar .nav { top: 46px; }
  body.admin-bar .nav.is-open .nav__links { top: calc(var(--nav) + 46px); }
}
@media screen and (max-width: 600px) { body.admin-bar #wpadminbar { position: fixed; } }

/* ---------------------------------------------------------------- inner pages (about, partners, support, documents) */
.page-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); margin: var(--s-7) 0 0; padding-top: var(--s-5); border-top: 1px solid var(--line); }
.page-facts > div { display: grid; gap: var(--s-1); }
.page-facts dt { color: var(--muted); font-size: var(--t-small); }
.page-facts dd { margin: 0; font: 500 var(--t-card)/1.3 var(--font-text); }
@media (max-width: 1023px) { .page-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.flow-h2 { font: var(--display-weight) clamp(26px, 1.4vw + 14px, 36px)/1.15 var(--font-display); letter-spacing: var(--display-tracking); margin-bottom: var(--s-5); }
.flow-p { max-width: 54ch; margin-bottom: var(--s-6); }
.flow-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-6); margin-top: var(--s-6); }
.about-rows .rows__name { font-weight: 500; }
.about-rows > li > p { color: var(--ink); }
main > :is(section, article).section.flow + :is(section, article).flow.about-ranks,
main > :is(section, article).section.flow + :is(section, article).flow.about-vn { padding-top: var(--s-9); }
.about-photos { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.about-photos figure { margin: 0; border-radius: var(--r-lg); overflow: clip; background: var(--surface); }
.about-photos__big { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.about-photos figure:not(.about-photos__big) { aspect-ratio: 16 / 10; }
.about-photos img, .about-ranks__pic img, .about-vn__pic img, .dealer-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-ranks__pic, .about-vn__pic { margin: 0; border-radius: var(--r-lg); overflow: clip; aspect-ratio: 4 / 3; background: var(--surface); }
.ranks > li { grid-template-columns: 64px minmax(0, 1fr); }
.ranks .ranks__year { grid-column: 1; text-align: left; color: var(--muted); }
.ranks .rows__name { grid-column: 2; grid-row: 1; }
.dealer-pic { margin: var(--s-6) 0 0; border-radius: var(--r-lg); overflow: clip; aspect-ratio: 16 / 10; }
.support-rows .rows__value { font-size: var(--t-small); }
@media (max-width: 1023px) {
  .about-maker .span-5, .about-photos, .about-ranks .span-6, .about-ranks__pic, .about-vn .span-5, .about-vn__pic, .support-more, .flow .span-6 { grid-column: 1 / -1; }
  .about-photos, .about-ranks__pic, .about-vn__pic, .support-more { margin-top: var(--s-6); }
}

/* ---------------------------------------------------------------- review fixes (consistency on inner pages) */
@media (max-width: 639px) {
  .crumbs ol { margin-bottom: var(--s-3); }
  .crumbs li { display: none; }
  .crumbs li:nth-last-child(2) { display: block; }
  .crumbs li:nth-last-child(2)::after { content: none; }
  .crumbs li:nth-last-child(2) a { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; color: var(--ink); }
  .crumbs li:nth-last-child(2) a::before { content: "‹"; font-size: 20px; line-height: 1; }
}
.pager .next { margin-left: auto; }
@media (max-width: 639px) { .pager .page-numbers:not(.prev, .next, .current) { display: none; } }
/* the product page: the h1 leads, the sections' h2 a step under it */
.pd__info h1 { font-size: clamp(32px, 2.2vw + 14px, 48px); }
:is(.spec, .pd-quote, .related) .section-head h2 { font: var(--display-weight) clamp(26px, 1.4vw + 14px, 36px)/1.15 var(--font-display); letter-spacing: var(--display-tracking); }
.spec__name { font: 500 var(--t-card)/1.3 var(--font-text); margin-bottom: var(--s-3); }
.pd__model { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-2); }
@media (max-width: 359px) { .nav .nav__actions .nav-quote { display: none; } }
main > :is(section, article).section.flow + :is(section, article).flow.about-maker { padding-top: var(--s-8); }

/* product lists: rows as tall as their tiles (never shared fixed heights), so a long name or model never lies on the next tile */
main .pgrid.grid { grid-template-rows: none; grid-auto-rows: auto; align-items: stretch; }
/* long unspaced spec strings (S+265/H.265/H.264B/...) and model codes wrap instead of widening the page */
.pd__grid > *, .pgrid > *, .results, .filters { min-width: 0; }
.pd__short li, .pd__info h1, .pd__model, .pcard__name, .pcard__facts, .spec__row dd, .pd__vars .rows__name { overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- the quote dialog (the client's choice of a popup for the CTA)
   two columns in Tiandy's own look: the dark side with the logo, the product(s) whole and the two steps; the form on white.
   A flat dim behind it (no blur, no glass); on a phone a full sheet, the side a short dark band on top. */
.quote-dialog { width: min(1040px, calc(100vw - 2 * var(--gut))); max-height: calc(100svh - 48px); padding: 0; border: 0; border-radius: var(--r-lg);
  background: var(--bg); color: var(--ink); overflow: hidden; }
.quote-dialog::backdrop { background: rgb(21 26 21 / .6); }
.quote-dialog[open] { animation: qd-in 240ms var(--ease) both; }
@keyframes qd-in { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .quote-dialog[open] { animation: none; } }
html:has(.quote-dialog[open]) { overflow: hidden; }
.qd { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); max-height: inherit; }
.qd__side { position: relative; display: flex; flex-direction: column; gap: var(--s-6); padding: var(--s-7); background: var(--p-inv-bg); color: var(--p-inv-ink); overflow: hidden; }
.qd__side::before { content: ""; position: absolute; inset: auto -20% -35% -20%; height: 60%; background: radial-gradient(closest-side, rgb(65 210 40 / .22), transparent); pointer-events: none; }
.qd__logo { width: 120px; height: auto; position: relative; z-index: 1; }
/* the stand photograph fills the side; a dark fade at the top carries the logo, a deeper one at the foot the steps */
.qd__photo { position: absolute; inset: 0 0 auto; height: 78%; z-index: 0; }
.qd__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.qd__photo::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, color-mix(in srgb, var(--p-inv-bg) 82%, transparent) 0%, transparent 26%, transparent 58%, var(--p-inv-bg) 100%); }
.qd__product { position: relative; flex: 1; display: grid; align-content: start; gap: var(--s-2); }
.qd__product[hidden], .qd__photo[hidden] { display: none; }
.qd__steps, .qd__fact { z-index: 1; }
.qd__product-pic { aspect-ratio: 4 / 3; border-radius: var(--r-md); background: #fff; display: grid; place-items: center; overflow: hidden; margin-bottom: var(--s-3); }
.qd__product-pic img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.qd__model { font: 500 14px/1.4 var(--font-mono); color: var(--p-inv-accent); }
.qd__name { font: 500 var(--t-card)/1.35 var(--font-text); color: var(--p-inv-ink); }
.qd__steps { position: relative; list-style: none; margin: auto 0 0; padding: var(--s-5) 0 0; border-top: 1px solid rgb(255 255 255 / .14); display: grid; gap: var(--s-3); }
.qd__steps li { display: grid; grid-template-columns: 28px 1fr; gap: var(--s-3); align-items: center; font-size: var(--t-body); color: var(--p-inv-ink); }
.qd__steps span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; background: var(--p-inv-accent); color: var(--p-inv-accent-ink); font: 500 14px/1 var(--font-text); }
.qd__fact { position: relative; font-size: var(--t-small); color: var(--p-inv-muted); }
.qd__main { padding: var(--s-7); overflow: auto; max-height: calc(100svh - 48px); }
.quote-dialog__head { display: grid; grid-template-columns: 1fr auto; gap: var(--s-4); align-items: start; margin-bottom: var(--s-6); }
.quote-dialog__head h2 { font: var(--display-weight) clamp(24px, 1.2vw + 14px, 32px)/1.15 var(--font-display); letter-spacing: var(--display-tracking); }
.quote-dialog__head p { margin-top: var(--s-2); color: var(--ink); }
.quote-dialog__close { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--r-btn); background: transparent; color: var(--ink); cursor: pointer; }
.quote-dialog__close:hover { border-color: var(--ink); }
@media (max-width: 899px) {
  .qd { grid-template-columns: 1fr; }
  .qd__side { flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--s-4); padding: var(--s-5) var(--s-6); }
  .qd__side:has(.qd__photo:not([hidden])) { min-height: 200px; }
  .qd__side:has(.qd__photo:not([hidden])) .qd__logo { display: none; }   /* the stand carries the name itself */
  .qd__photo { height: 100%; }
  .qd__photo img { object-position: 62% 60%; }
  .qd__photo::after { display: none; }
  .qd__product { flex: 1 1 100%; grid-template-columns: 96px 1fr; align-items: center; column-gap: var(--s-4); }
  .qd__product-pic { grid-row: span 2; width: 96px; aspect-ratio: 1; margin: 0; }
  .qd__steps, .qd__fact { display: none; }
  .qd__main { max-height: none; overflow: visible; }
  .quote-dialog { overflow: auto; }
}
@media (max-width: 639px) {
  .quote-dialog { width: 100vw; max-width: none; height: 100svh; max-height: none; margin: 0; border-radius: 0; }
  .qd__main { padding: var(--s-6) var(--gut) calc(var(--s-6) + env(safe-area-inset-bottom)); }
  .quote-dialog .form { grid-template-columns: 1fr; }
}
