:root {
  --canvas: #faf3e7;
  --surface: #fffcf6;
  --ink: #2c1f14;
  --muted: #756352;
  --bronze: #a87547;
  --bronze-deep: #70492c;
  --gold: #ffcb47;
  --rose: #e85a4f;
  --green: #1c8b61;
  --border: #e8d9c2;
  --shadow: 0 18px 54px rgba(76, 49, 28, 0.11);
  --font-display: "Mitr", "IBM Plex Sans Thai", sans-serif;
  --font-body: "IBM Plex Sans Thai", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button,
a,
summary,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  transform: translateY(-160%);
}

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

.pw-header {
  position: sticky;
  top: 0;
  z-index: 70;
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px max(24px, calc((100% - 1200px) / 2));
  border-bottom: 1px solid var(--border);
  background: rgba(255, 252, 246, 0.97);
  backdrop-filter: blur(10px);
}

.pw-brand {
  display: inline-flex;
  min-width: 190px;
  min-height: 44px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.pw-brand-copy {
  display: grid;
  gap: 2px;
  line-height: 1.05;
}

.pw-brand-th {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
}

.pw-brand-en {
  color: #a15423;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.pw-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 2.5vw, 38px);
}

.pw-nav a {
  position: relative;
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  color: #4f4034;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.pw-nav a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--bronze);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: 180ms ease;
}

.pw-nav a:hover::after,
.pw-nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.pw-header-actions {
  display: flex;
  min-width: 190px;
  justify-content: flex-end;
}

.pw-book-link,
.pw-primary,
.pw-secondary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--gold);
  border-radius: 12px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.pw-secondary {
  border-color: var(--bronze);
  background: transparent;
}

.pw-hamburger {
  display: none;
  width: 46px;
  height: 46px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.pw-mobile-menu,
.pw-scrim {
  display: none;
}

.frame-main {
  overflow: clip;
}

.frame-hero {
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 203, 71, 0.1), transparent 30%),
    var(--surface);
}

.frame-hero-shell {
  display: grid;
  width: min(1200px, calc(100% - 48px));
  min-height: 390px;
  grid-template-columns: minmax(0, 7fr) minmax(360px, 5fr);
  gap: 46px;
  align-items: center;
  margin: 0 auto;
  padding: 42px 0 38px;
}

.frame-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 24px;
  color: #887565;
  font-size: 12px;
}

.frame-breadcrumbs a {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  text-decoration: none;
}

.frame-eyebrow {
  margin: 0 0 10px;
  color: #a15423;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.frame-hero h1 {
  max-width: 690px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(42px, 4.5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.11;
}

.frame-lede {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.frame-hero-note {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: #6c5948;
  font-size: 12px;
}

.frame-hero-note svg {
  flex: 0 0 auto;
  color: var(--bronze);
}

.frame-hero-media {
  position: relative;
  height: 340px;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: #eee4d4;
  box-shadow: var(--shadow);
}

.frame-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.frame-hero-caption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(232, 217, 194, 0.86);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.94);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.frame-library-shell {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 84px;
}

.frame-tools {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(260px, 1.45fr) repeat(4, minmax(142px, 0.7fr)) auto;
  gap: 10px;
  align-items: end;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(76, 49, 28, 0.07);
}

.frame-nowrap {
  white-space: nowrap;
}

.frame-field {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.frame-field > span {
  color: #786555;
  font-size: 11px;
  font-weight: 650;
}

.frame-input-wrap {
  position: relative;
}

.frame-input-wrap svg {
  position: absolute;
  top: 50%;
  left: 14px;
  color: var(--bronze);
  pointer-events: none;
  transform: translateY(-50%);
}

.frame-field input,
.frame-field select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #d9c5a8;
  border-radius: 12px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
}

.frame-field input {
  padding-left: 44px;
}

.frame-field input::placeholder {
  color: #9a8878;
}

.frame-reset {
  display: inline-flex;
  min-width: 94px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--bronze-deep);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.frame-results-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 28px 0 16px;
}

.frame-results-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 600;
}

#meta {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.frame-refresh {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  color: var(--bronze-deep);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.frame-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.frame-summary span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.72);
  color: #746150;
  font-size: 12px;
}

.frame-summary b {
  color: var(--ink);
  font-size: 15px;
}

.frame-notice {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid #efd89d;
  border-radius: 12px;
  background: #fff7dc;
  color: #725628;
  font-size: 12px;
  line-height: 1.6;
}

.frame-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.frame-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(76, 49, 28, 0.055);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.frame-card:hover {
  border-color: #d9bd91;
  box-shadow: 0 16px 34px rgba(76, 49, 28, 0.11);
  transform: translateY(-2px);
}

.frame-photo {
  position: relative;
  display: grid;
  aspect-ratio: 4 / 3;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: #f2eadf;
}

.frame-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 5px;
  object-fit: contain;
  transition: transform 240ms ease;
}

.frame-card:hover .frame-photo img {
  transform: scale(1.025);
}

.frame-photo-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 18px;
  color: #8f7c6c;
  font-size: 12px;
  text-align: center;
}

.frame-status {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e9f5ed;
  color: #2f714c;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.frame-photo .frame-status {
  position: absolute;
  bottom: 9px;
  left: 9px;
  z-index: 2;
}

.frame-status.orderable {
  background: #fff1c7;
  color: #8a5a08;
}

.frame-status.out_of_stock {
  background: #f7e2df;
  color: #954a42;
}

.frame-card-body {
  display: grid;
  min-width: 0;
  grid-template-rows: auto auto auto 1fr auto;
  padding: 15px;
}

.frame-brand {
  overflow: hidden;
  margin: 0 0 5px;
  color: #7d4d2b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.frame-model {
  min-height: 48px;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.frame-color {
  min-height: 22px;
  margin: 7px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.frame-color[hidden] {
  display: none;
}

.frame-price {
  align-self: end;
  margin: 12px 0 0;
  color: #9b4d20;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}

.frame-detail-button {
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  padding: 8px 12px;
  border: 1px solid var(--bronze);
  border-radius: 10px;
  background: transparent;
  color: var(--bronze-deep);
  font-weight: 650;
  cursor: pointer;
}

.frame-empty,
.frame-loading {
  display: grid;
  min-height: 280px;
  place-items: center;
  padding: 38px 20px;
  border: 1px dashed #d8c5a8;
  border-radius: 20px;
  background: rgba(255, 252, 246, 0.65);
  color: var(--muted);
  text-align: center;
}

.frame-empty-inner {
  max-width: 500px;
}

.frame-empty h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 24px;
}

.frame-empty p {
  margin: 0 0 18px;
  line-height: 1.7;
}

.frame-skeleton-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.frame-skeleton {
  height: 370px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(105deg, #eee3d3 30%, #fffaf0 45%, #eee3d3 60%);
  background-size: 220% 100%;
  animation: shimmer 1.6s linear infinite;
}

@keyframes shimmer {
  to { background-position-x: -220%; }
}

.frame-truth {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 48px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--border);
}

.frame-truth > div {
  display: grid;
  min-height: 98px;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-content: center;
  padding: 18px;
  background: var(--surface);
}

.frame-truth svg {
  color: var(--bronze);
}

.frame-truth strong,
.frame-truth span {
  display: block;
}

.frame-truth strong {
  margin-bottom: 3px;
  font-size: 14px;
}

.frame-truth span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.frame-dialog {
  width: min(520px, 100%);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0 0 0 auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: -24px 0 64px rgba(30, 19, 12, 0.24);
}

.frame-dialog::backdrop {
  background: rgba(31, 22, 16, 0.58);
  backdrop-filter: blur(2px);
}

.frame-dialog-shell {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: auto;
  overscroll-behavior: contain;
}

.frame-dialog-head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 252, 246, 0.96);
}

.frame-dialog-head p {
  margin: 0;
  color: #9a5527;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.frame-dialog-head h2 {
  margin: 3px 0 0;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 550;
  line-height: 1.35;
}

.frame-dialog-close {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.frame-dialog-content {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.frame-dialog-photo {
  position: relative;
  display: grid;
  aspect-ratio: 4 / 3;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #f0e7da;
}

.frame-dialog-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 6px;
  object-fit: contain;
}

.frame-dialog-photo .frame-status {
  position: absolute;
  bottom: 12px;
  left: 12px;
}

.frame-dialog-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.frame-dialog-thumb {
  width: 58px;
  height: 48px;
  flex: 0 0 auto;
  overflow: hidden;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}

.frame-dialog-thumb[aria-current="true"] {
  border-color: var(--bronze);
  box-shadow: inset 0 0 0 1px var(--bronze);
}

.frame-dialog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.frame-dialog-data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
  margin: 0;
  border-block: 1px solid var(--border);
}

.frame-dialog-data > div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #efe4d3;
}

.frame-dialog-data dt {
  color: var(--muted);
  font-size: 11px;
}

.frame-dialog-data dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 600;
}

.frame-dialog-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.frame-dialog-price span {
  color: var(--muted);
  font-size: 11px;
}

.frame-dialog-price strong {
  color: #9b4d20;
  font-family: var(--font-display);
  font-size: 25px;
}

.frame-dialog-note {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 11px 12px;
  border-radius: 10px;
  background: #f8edda;
  color: #6f5b48;
  font-size: 11px;
  line-height: 1.6;
}

.frame-dialog-actions {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: rgba(255, 252, 246, 0.97);
}

.frame-footer {
  padding: 42px 24px 26px;
  background: #2c1f14;
  color: #fff8ee;
}

.frame-footer-shell {
  display: grid;
  width: min(1200px, 100%);
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.7fr) minmax(220px, 0.7fr);
  gap: 30px;
  margin: 0 auto;
}

.frame-footer h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
}

.frame-footer p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 248, 238, 0.64);
  font-size: 11px;
  line-height: 1.7;
}

.frame-footer-links {
  display: grid;
  align-content: start;
  gap: 6px;
}

.frame-footer-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: rgba(255, 248, 238, 0.86);
  font-size: 12px;
  text-decoration: none;
}

.frame-footer-bottom {
  display: flex;
  width: min(1200px, 100%);
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 24px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 248, 238, 0.62);
  font-size: 10px;
}

.frame-mobile-dock {
  display: none;
}

:is(a, button, input, select, summary):focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

@media (min-width: 981px) {
  .frame-tools {
    position: sticky;
    top: 84px;
  }
}

@media (max-width: 1180px) {
  .pw-header {
    padding-inline: 24px;
  }

  .pw-header-actions {
    min-width: auto;
  }

  .frame-tools {
    grid-template-columns: minmax(260px, 1.4fr) repeat(2, minmax(145px, 0.7fr));
  }

  .frame-tools .frame-field:nth-of-type(4),
  .frame-tools .frame-field:nth-of-type(5) {
    grid-row: 2;
  }

  .frame-reset {
    grid-row: 2;
  }
}

@media (max-width: 980px) {
  .pw-nav,
  .pw-book-link {
    display: none;
  }

  .pw-hamburger {
    display: grid;
  }

  .pw-header-actions {
    min-width: 46px;
  }

  .pw-scrim {
    position: fixed;
    inset: 0;
    z-index: 78;
    display: block;
    border: 0;
    background: rgba(31, 22, 16, 0.48);
  }

  .pw-mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 80;
    display: flex;
    width: min(360px, calc(100% - 36px));
    height: 100dvh;
    flex-direction: column;
    padding: 18px;
    background: var(--surface);
    box-shadow: -24px 0 64px rgba(31, 22, 16, 0.2);
  }

  .pw-mobile-menu-head {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
  }

  .pw-mobile-menu-close {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
  }

  .pw-mobile-menu nav {
    display: grid;
    gap: 4px;
    padding: 18px 0;
  }

  .pw-mobile-menu nav a {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 4px;
    border-bottom: 1px solid #f0e4d3;
    font-weight: 600;
    text-decoration: none;
  }

  .pw-mobile-menu .pw-primary {
    margin-top: auto;
  }

  .frame-hero-shell {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
    gap: 28px;
  }

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

@media (max-width: 760px) {
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .pw-header {
    min-height: 64px;
    padding: 8px 14px;
    backdrop-filter: none;
  }

  .pw-brand {
    min-width: 0;
    min-height: 44px;
  }

  .pw-brand-th {
    max-width: min(62vw, 248px);
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pw-brand-en {
    font-size: 9px;
  }

  .frame-hero-shell,
  .frame-library-shell {
    width: min(100% - 32px, 560px);
  }

  .frame-hero-shell {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 24px 0 28px;
  }

  .frame-breadcrumbs {
    margin-bottom: 18px;
  }

  .frame-eyebrow {
    font-size: 10px;
  }

  .frame-hero h1 {
    font-size: clamp(31px, 10vw, 42px);
    letter-spacing: -0.04em;
  }

  .frame-lede {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.65;
  }

  .frame-hero-note {
    min-height: 44px;
    margin-top: 10px;
  }

  .frame-hero-media {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
  }

  .frame-hero-media img {
    min-height: 0;
  }

  .frame-hero-caption {
    right: 10px;
    bottom: 10px;
    min-height: 34px;
  }

  .frame-library-shell {
    padding: 18px 0 58px;
  }

  .frame-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 12px;
    border-radius: 16px;
  }

  .frame-field--search {
    grid-column: 1 / -1;
  }

  .frame-tools .frame-field,
  .frame-tools .frame-field:nth-of-type(4),
  .frame-tools .frame-field:nth-of-type(5),
  .frame-reset {
    grid-row: auto;
  }

  .frame-field > span:not(.frame-input-wrap) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .frame-field input,
  .frame-field select,
  .frame-reset {
    min-height: 46px;
    font-size: 12px;
  }

  .frame-reset {
    grid-column: 1 / -1;
    border-color: var(--border);
  }

  .frame-results-head {
    align-items: center;
    margin: 22px 0 12px;
  }

  .frame-results-head h2 {
    font-size: 23px;
  }

  .frame-refresh {
    min-width: 46px;
    padding-inline: 12px;
  }

  .frame-refresh span {
    display: none;
  }

  .frame-summary {
    gap: 6px;
    margin-bottom: 14px;
  }

  .frame-summary span {
    min-height: 34px;
    padding: 6px 9px;
    font-size: 10px;
  }

  .frame-summary b {
    font-size: 13px;
  }

  .frame-grid,
  .frame-skeleton-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .frame-card {
    border-radius: 14px;
  }

  .frame-card:hover {
    transform: none;
  }

  .frame-photo img {
    padding: 3px;
  }

  .frame-photo .frame-status {
    bottom: 6px;
    left: 6px;
  }

  .frame-status {
    min-height: 25px;
    padding: 4px 7px;
    font-size: 9px;
  }

  .frame-card-body {
    padding: 11px;
  }

  .frame-brand {
    font-size: 9px;
  }

  .frame-model {
    min-height: 42px;
    font-size: 14px;
  }

  .frame-color {
    margin-top: 4px;
    font-size: 10px;
  }

  .frame-price {
    margin-top: 8px;
    font-size: 15px;
  }

  .frame-detail-button {
    min-height: 44px;
    margin-top: 9px;
    padding-inline: 6px;
    font-size: 11px;
  }

  .frame-skeleton {
    height: 290px;
  }

  .frame-truth {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 30px;
  }

  .frame-truth > div {
    min-height: 82px;
  }

  .frame-dialog {
    width: 100%;
    height: auto;
    max-height: min(92dvh, 840px);
    margin: auto 0 0;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -24px 64px rgba(30, 19, 12, 0.24);
  }

  .frame-dialog-shell {
    max-height: min(92dvh, 840px);
  }

  .frame-dialog-head {
    min-height: 62px;
    padding: 9px 14px;
  }

  .frame-dialog-head::before {
    position: absolute;
    top: 7px;
    left: 50%;
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: #ddceb7;
    content: "";
    transform: translateX(-50%);
  }

  .frame-dialog-head p {
    font-size: 9px;
  }

  .frame-dialog-head h2 {
    font-size: 18px;
  }

  .frame-dialog-content {
    gap: 13px;
    padding: 14px;
  }

  .frame-dialog-photo {
    border-radius: 16px;
  }

  .frame-dialog-data {
    grid-template-columns: minmax(0, 1fr);
  }

  .frame-dialog-data > div {
    grid-template-columns: 76px minmax(0, 1fr);
    padding: 8px 0;
  }

  .frame-dialog-actions {
    padding: 11px 14px calc(11px + env(safe-area-inset-bottom));
  }

  .frame-dialog-actions a {
    min-height: 48px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .frame-footer {
    padding: 34px 18px 24px;
  }

  .frame-footer-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .frame-footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .frame-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 18px;
  }

  .frame-mobile-dock {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 65;
    display: grid;
    min-height: 68px;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr);
    gap: 9px;
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: rgba(255, 252, 246, 0.98);
    box-shadow: 0 -10px 30px rgba(76, 49, 28, 0.1);
    opacity: 0;
    pointer-events: none;
    transform: translateY(100%);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
    visibility: hidden;
  }

  body.dock-visible .frame-mobile-dock {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }

  .frame-mobile-dock a {
    min-height: 48px;
    padding-inline: 10px;
    font-size: 12px;
  }

  body:has(.frame-dialog[open]) .frame-mobile-dock,
  body.menu-open .frame-mobile-dock {
    display: none;
  }
}

@media (max-width: 350px) {
  .frame-grid,
  .frame-skeleton-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .frame-tools {
    grid-template-columns: minmax(0, 1fr);
  }

  .frame-field--search,
  .frame-reset {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
