:root {
  --ink: #172026;
  --ink-soft: #334249;
  --muted: #68757b;
  --line: #d9d7cf;
  --paper: #f4f1e9;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --accent: #d85c2b;
  --accent-dark: #ae431d;
  --teal: #135f5c;
  --yellow: #f2c14e;
  --shadow: 0 18px 45px rgba(23, 32, 38, 0.09);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(rgba(23, 32, 38, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 38, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

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

button {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 82% 10%, rgba(242, 193, 78, 0.2), transparent 28%),
    linear-gradient(135deg, #172026 0%, #1c2e34 55%, #143f3e 100%);
}

.topbar::after {
  content: "";
  position: absolute;
  inset: auto -8% -70px auto;
  width: 520px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.topbar-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  width: min(1380px, calc(100% - 64px));
  margin: 0 auto;
  padding: 46px 0 40px;
}

.brand-lockup {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 18px 6px 18px 6px;
  color: var(--yellow);
  background: rgba(255, 255, 255, 0.08);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 34px;
  font-weight: 700;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.025);
}

.eyebrow,
.section-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.topbar .eyebrow {
  color: var(--yellow);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei", serif;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 700;
  letter-spacing: 0.025em;
  line-height: 1.04;
}

.brand-lockup p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.67);
  font-size: 14px;
}

.topbar-stats {
  display: flex;
  flex: 0 0 auto;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
}

.stat {
  min-width: 94px;
  padding: 15px 20px;
  text-align: center;
}

.stat + .stat {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.stat span {
  display: block;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  line-height: 1;
}

.stat small {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.page {
  width: min(1380px, calc(100% - 64px));
  margin: 0 auto;
  padding: 34px 0 72px;
}

.search-band {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(420px, 1.5fr);
  align-items: center;
  gap: 18px 44px;
  padding: 27px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow);
}

.search-copy h2 {
  margin-bottom: 0;
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei", serif;
  font-size: 26px;
  font-weight: 700;
}

.search-form {
  display: flex;
  gap: 10px;
}

.search-input-wrap {
  position: relative;
  flex: 1;
}

.search-input-wrap svg {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 20px;
  height: 20px;
  fill: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.search-input-wrap input {
  width: 100%;
  height: 52px;
  padding: 0 46px 0 47px;
  border: 1px solid #c8c6be;
  border-radius: 12px;
  outline: none;
  color: var(--ink);
  background: var(--surface-strong);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-input-wrap input::placeholder {
  color: #9a9f9f;
}

.search-input-wrap input::-webkit-search-cancel-button {
  display: none;
}

.search-input-wrap input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(19, 95, 92, 0.11);
}

.clear-search {
  position: absolute;
  top: 50%;
  right: 9px;
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  font-size: 22px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.clear-search:hover {
  background: #f0eee7;
}

.primary-button,
.secondary-button {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.primary-button {
  border: 1px solid var(--accent-dark);
  color: #fff;
  background: var(--accent);
  box-shadow: 0 7px 16px rgba(174, 67, 29, 0.2);
}

.primary-button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.secondary-button {
  border: 1px solid #c5c2b9;
  color: var(--ink);
  background: var(--surface);
}

.secondary-button:hover {
  border-color: #aaa69b;
  background: #fff;
}

.quick-tags {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: -5px;
  color: var(--muted);
  font-size: 12px;
}

.quick-tags button {
  padding: 5px 10px;
  border: 1px solid #ddd9cf;
  border-radius: 999px;
  color: var(--ink-soft);
  background: #faf8f2;
  cursor: pointer;
}

.quick-tags button:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.content-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 28px;
  margin-top: 30px;
  align-items: start;
}

.filters {
  position: sticky;
  top: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.9);
}

.filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.filter-heading h2 {
  margin: 0;
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei", serif;
  font-size: 23px;
}

.text-button {
  padding: 4px;
  border: 0;
  color: var(--accent-dark);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.filter-group {
  margin-top: 18px;
}

.filter-group label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.filter-group select {
  width: 100%;
  height: 42px;
  padding: 0 35px 0 11px;
  border: 1px solid #d1cec4;
  border-radius: 9px;
  outline-color: var(--teal);
  color: var(--ink);
  background: #fff;
}

.filter-note {
  margin-top: 22px;
  padding: 14px;
  border-left: 3px solid var(--yellow);
  border-radius: 3px 9px 9px 3px;
  background: #f7f1df;
}

.filter-note strong {
  font-size: 12px;
}

.filter-note p {
  margin: 6px 0 0;
  color: #62615b;
  font-size: 11px;
  line-height: 1.65;
}

.export-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  margin-top: 16px;
  border: 1px dashed #bfbbb0;
  border-radius: 9px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.export-link:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: #fff;
}

.results {
  min-width: 0;
}

.results-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  padding: 0 2px;
}

.results-toolbar h2 {
  margin-bottom: 0;
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei", serif;
  font-size: 31px;
}

.results-toolbar p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid #d8d4ca;
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--surface);
  font-size: 11px;
}

.filter-pill button {
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

.product-card {
  min-width: 0;
  border: 1px solid #dedbd1;
  border-radius: 15px;
  background: var(--surface);
  box-shadow: 0 7px 22px rgba(23, 32, 38, 0.045);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
  border-color: #c0bbb0;
  box-shadow: 0 15px 32px rgba(23, 32, 38, 0.09);
  transform: translateY(-3px);
}

.card-hitbox {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: inherit;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.card-hitbox:focus-visible {
  outline: 3px solid rgba(19, 95, 92, 0.48);
  outline-offset: -3px;
}

.card-image-wrap {
  position: relative;
  height: 205px;
  overflow: hidden;
  background:
    linear-gradient(45deg, #eeece5 25%, transparent 25%),
    linear-gradient(-45deg, #eeece5 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eeece5 75%),
    linear-gradient(-45deg, transparent 75%, #eeece5 75%),
    #f7f5ef;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
}

.card-image {
  width: 100%;
  height: 100%;
  padding: 18px;
  object-fit: contain;
  transition: transform 260ms ease;
}

.product-card:hover .card-image {
  transform: scale(1.035);
}

.brand-chip {
  position: absolute;
  top: 11px;
  left: 11px;
  max-width: calc(100% - 22px);
  overflow: hidden;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  color: #fff;
  background: rgba(23, 32, 38, 0.76);
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(5px);
}

.card-body {
  padding: 16px 17px 15px;
}

.card-model {
  min-height: 18px;
  color: var(--accent-dark);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.035em;
}

.card-title {
  min-height: 47px;
  margin: 4px 0 5px;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-category {
  min-height: 18px;
  margin-bottom: 11px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-specs {
  display: grid;
  gap: 5px;
  min-height: 69px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card-specs li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #555f63;
  font-size: 11px;
  line-height: 1.5;
}

.card-specs span:first-child {
  flex: 0 0 auto;
  color: #8a9091;
}

.card-specs span:last-child {
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid #e8e5dc;
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 30px 0 0;
}

.empty-state {
  padding: 80px 20px;
  border: 1px dashed #c9c5ba;
  border-radius: var(--radius);
  text-align: center;
  background: rgba(255, 253, 248, 0.55);
}

.empty-icon {
  color: #a9a69d;
  font-family: Georgia, serif;
  font-size: 54px;
  line-height: 1;
}

.empty-state h3 {
  margin: 16px 0 7px;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 26px;
}

.empty-state p {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1380px, calc(100% - 64px));
  margin: 0 auto;
  padding: 20px 0 34px;
  border-top: 1px solid #d8d4ca;
  color: #7f8788;
  font-size: 11px;
}

.footer a {
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.product-dialog {
  width: min(1050px, calc(100% - 40px));
  max-height: calc(100vh - 40px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 30px 90px rgba(10, 18, 21, 0.35);
}

.product-dialog::backdrop {
  background: rgba(12, 20, 23, 0.64);
  backdrop-filter: blur(3px);
}

.dialog-shell {
  position: relative;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.dialog-close {
  position: sticky;
  z-index: 10;
  top: 14px;
  display: grid;
  width: 40px;
  height: 40px;
  margin: 14px 14px -54px auto;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.93);
  font-size: 27px;
  line-height: 1;
  box-shadow: 0 5px 15px rgba(23, 32, 38, 0.12);
  cursor: pointer;
}

.dialog-close:hover {
  background: #fff;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 30px;
  padding: 32px;
  background: linear-gradient(135deg, #f7f4ec 0%, #ebe7db 100%);
}

.detail-gallery {
  min-width: 0;
}

.detail-main-image {
  display: grid;
  width: 100%;
  height: 410px;
  padding: 20px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d8d4c8;
  border-radius: 15px;
  background: #fff;
}

.detail-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-thumbs {
  display: flex;
  gap: 9px;
  margin-top: 10px;
  overflow-x: auto;
}

.detail-thumb {
  flex: 0 0 auto;
  width: 66px;
  height: 58px;
  padding: 5px;
  border: 1px solid #cfcbc0;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.detail-thumb.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(216, 92, 43, 0.16);
}

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

.detail-summary {
  align-self: center;
  min-width: 0;
}

.detail-brand {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--teal);
  font-size: 11px;
  font-weight: 700;
}

.detail-summary h2 {
  margin: 14px 0 9px;
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei", serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
}

.detail-model-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
}

.detail-model {
  color: var(--accent-dark);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 17px;
  font-weight: 800;
}

.copy-button {
  padding: 5px 9px;
  border: 1px solid #cfcbc0;
  border-radius: 7px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  cursor: pointer;
}

.copy-button:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.detail-breadcrumb {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.detail-quick-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid #d4d0c5;
  border-radius: 11px;
  background: #d4d0c5;
}

.quick-spec {
  min-width: 0;
  padding: 11px 13px;
  background: rgba(255, 255, 255, 0.77);
}

.quick-spec span {
  display: block;
  margin-bottom: 3px;
  color: #8a908f;
  font-size: 10px;
}

.quick-spec strong {
  display: block;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.detail-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #c9c5ba;
  border-radius: 9px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.65);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.detail-actions a:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: #fff;
}

.detail-body {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 34px;
  padding: 0 32px 40px;
}

.detail-section {
  margin-top: 28px;
}

.detail-section h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei", serif;
  font-size: 22px;
}

.detail-section h3::before {
  content: "";
  width: 5px;
  height: 20px;
  border-radius: 5px;
  background: var(--accent);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #dedbd1;
  border-radius: 10px;
  font-size: 12px;
}

.spec-table th,
.spec-table td {
  padding: 9px 11px;
  border-bottom: 1px solid #e7e4da;
  text-align: left;
  vertical-align: top;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: 0;
}

.spec-table th {
  width: 42%;
  color: var(--muted);
  background: #f8f6f0;
  font-weight: 500;
}

.spec-table td {
  color: var(--ink);
  font-weight: 700;
  word-break: break-word;
}

.description-content {
  overflow-wrap: anywhere;
  color: #39464b;
  font-size: 13px;
  line-height: 1.8;
}

.description-content img {
  max-width: 100%;
  height: auto;
  margin: 12px 0;
  border-radius: 8px;
}

.description-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.description-content td,
.description-content th {
  padding: 5px 8px;
  border: 1px solid #ddd9cf;
}

.description-content p {
  margin: 0 0 9px;
}

.attachment-list {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.attachment-list a {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 11px 13px;
  border: 1px solid #d9d5ca;
  border-radius: 9px;
  color: var(--teal);
  background: #fbfaf5;
  font-size: 12px;
  text-decoration: none;
}

.attachment-list a:hover {
  border-color: var(--teal);
  background: #fff;
}

.nothing-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  padding: 12px 17px;
  border-radius: 10px;
  color: #fff;
  background: var(--ink);
  font-size: 12px;
  box-shadow: 0 14px 35px rgba(23, 32, 38, 0.24);
  animation: toast-in 180ms ease-out;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-band {
    grid-template-columns: 1fr;
  }

  .quick-tags {
    grid-column: 1;
  }
}

@media (max-width: 820px) {
  .topbar-inner,
  .page,
  .footer {
    width: min(100% - 32px, 1380px);
  }

  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
    padding: 32px 0 28px;
  }

  .brand-mark {
    width: 52px;
    height: 52px;
    font-size: 28px;
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .filter-heading,
  .filter-note,
  .export-link {
    grid-column: 1 / -1;
  }

  .filter-group {
    margin-top: 0;
  }

  .detail-hero,
  .detail-body {
    grid-template-columns: 1fr;
  }

  .detail-main-image {
    height: 330px;
  }
}

@media (max-width: 620px) {
  .page {
    padding-top: 20px;
  }

  .search-band {
    padding: 20px;
  }

  .search-form {
    flex-direction: column;
  }

  .primary-button {
    width: 100%;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .filter-heading,
  .filter-note,
  .export-link {
    grid-column: 1;
  }

  .results-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .topbar-stats {
    width: 100%;
  }

  .stat {
    flex: 1;
    min-width: 0;
  }

  .product-dialog {
    width: calc(100% - 18px);
    max-height: calc(100vh - 18px);
  }

  .dialog-shell {
    max-height: calc(100vh - 18px);
  }

  .detail-hero,
  .detail-body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .detail-main-image {
    height: 270px;
  }

  .detail-quick-specs {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    gap: 5px;
  }
}
