:root {
  --accent: #c94212;
  --accent-hover: #a9320b;
  --orange: #ed551d;
  --ink: #202124;
  --muted: #62676e;
  --line: #e0e3e6;
  --surface: #f5f6f7;
  --soft: #fff1e9;
  --success: #197449;
  --error: #b42318;
  --radius: 10px;
  --shadow: 0 16px 48px #20212418
;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 145px;
}

body {
  margin: 0;
  font: 16px/1.55 Inter,Arial,sans-serif;
  color: var(--ink);
  background: white;
}

button,input,select {
  font: inherit;
}

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

button,a {
  touch-action: manipulation;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 3px solid #245cdf;
  outline-offset: 3px;
}

button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.wrap {
  width: min(1280px,calc(100% - 64px));
  margin: auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fffffff5;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.top {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 86px;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 32px;
  height: 32px;
}

.logo span {
  font-weight: 500;
  color: var(--muted);
}

.searchbox {
  flex: 1;
  position: relative;
}

.search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 16px;
  min-height: 48px;
}

.search:focus-within {
  border-color: var(--accent);
  background: white;
}

.search input {
  width: 100%;
  background: none;
  border: 0;
  outline: 0;
  min-width: 0;
}

.key {
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 5px;
  color: var(--muted);
}

.suggestions {
  position: absolute;
  top: 56px;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 10px;
  padding: 12px;
  z-index: 25;
}

.suggestions button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: white;
  padding: 10px;
  border-radius: 5px;
}

.suggestions button:hover {
  background: var(--surface);
}

.nav {
  display: flex;
  gap: 32px;
  align-items: center;
  min-height: 48px;
  font-size: 14px;
}

.nav a:first-child {
  font-weight: 700;
}

.nav .aside {
  margin-left: auto;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  min-height: 46px;
  padding: 10px 20px;
  background: white;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  transition: background .15s,border-color .15s;
}

.btn:hover {
  background: var(--surface);
  color: var(--ink);
  border-color: #bdc1c6;
}

.btn.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.btn.primary:hover {
  background: var(--accent-hover);
}

.btn:active {
  transform: translateY(1px);
}

.btn.small {
  min-height: 38px;
  padding: 7px 14px;
}

.textbtn {
  border: 0;
  background: none;
  padding: 8px;
  color: var(--ink);
  font-size: 14px;
}

.actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.mobile-menu {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  padding: 56px 0 40px;
  align-items: center;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 12px;
}

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

h1 {
  font-size: 48px;
  letter-spacing: -2px;
  line-height: 1.12;
  margin-bottom: 18px;
}

h2 {
  font-size: 30px;
  letter-spacing: -.8px;
  line-height: 1.25;
  margin-bottom: 12px;
}

h3 {
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.lead {
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: -.4px;
}

.muted {
  color: var(--muted);
}

.hero p.description {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 560px;
}

.hero .actions {
  margin-top: 24px;
}

.hero-preview {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: white;
  box-shadow: 0 12px 30px #20212408;
  transform: rotate(-1deg);
}

.preview-top {
  display: flex;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  background: var(--surface);
}

.preview-row {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}

.preview-row:last-child {
  border: 0;
}

.preview-row img {
  width: 58px;
  height: 68px;
  object-fit: cover;
  border-radius: 5px;
}

.preview-row .grow {
  flex: 1;
}

.preview-row strong {
  display: block;
  font-size: 15px;
}

.preview-row small {
  color: var(--muted);
  font-size: 12px;
}

.price {
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -.5px;
  white-space: nowrap;
}

.preview-foot {
  display: flex;
  gap: 20px;
  padding: 14px 20px;
  background: var(--soft);
  color: var(--accent);
  font-size: 12px;
}

.categories {
  display: grid;
  grid-template-columns: repeat(6,1fr);
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  margin: 0 0 64px;
}

.category {
  padding: 21px 16px;
  border-right: 1px solid var(--line);
  position: relative;
}

.category:last-child {
  border: 0;
}

.category:hover {
  background: var(--surface);
}

.category svg {
  width: 24px;
  height: 24px;
  margin-bottom: 12px;
  color: var(--accent);
}

.category strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.category small {
  font-size: 12px;
  line-height: 1.5;
  display: block;
  color: var(--muted);
}

section {
  padding: 40px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.section-head a {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.tabs {
  display: flex;
  gap: 6px;
  overflow: auto;
  padding-bottom: 10px;
  margin-bottom: 18px;
}

.tab {
  white-space: nowrap;
  min-height: 42px;
  padding: 9px 17px;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  color: var(--muted);
}

.tab[aria-selected=true] {
  background: var(--ink);
  color: white;
}

.tab:hover {
  border-color: #b9bdc2;
}

.catalog-tools {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  font-size: 14px;
}

.filters {
  display: flex;
  gap: 10px;
}

.select,select {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 10px;
  min-height: 42px;
}

.products {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
}

.product {
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: white;
  transition: box-shadow .2s;
}

.product:hover {
  box-shadow: 0 6px 20px #20212410;
}

.product-cover {
  height: 174px;
  width: 100%;
  object-fit: cover;
  display: block;
}

.product-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product h3 {
  font-size: 16px;
  margin-bottom: 5px;
}

.meta {
  font-size: 12px;
  color: var(--muted);
}

.badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.badge {
  font-size: 12px;
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--surface);
  color: var(--muted);
}

.badge.success {
  background: #eaf5ee;
  color: var(--success);
}

.badge.orange {
  background: var(--soft);
  color: var(--accent);
}

.product-data {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.rating {
  color: var(--ink);
}

.rating .star {
  color: var(--accent);
}

.seller-link {
  color: var(--muted);
  background: none;
  border: 0;
  padding: 0;
  font-size: 12px;
  text-align: left;
}

.seller-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 14px 0;
}

.product .btn {
  width: 100%;
}

.category-description {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  margin-top: 24px;
  background: var(--surface);
  padding: 24px;
  border-radius: 8px;
}

.category-description p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}

.pagination button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 5px;
  min-width: 40px;
  min-height: 40px;
}

.pagination .current {
  background: var(--ink);
  color: white;
}

.tinted {
  background: var(--surface);
}

.steps {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 24px;
  margin-top: 28px;
}

.step {
  border-top: 2px solid var(--line);
  padding-top: 18px;
}

.step:first-child {
  border-color: var(--accent);
}

.step-number {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  display: block;
}

.step p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.step h3 {
  font-size: 16px;
}

.notice {
  display: flex;
  gap: 12px;
  background: white;
  border: 1px solid var(--line);
  padding: 16px 20px;
  margin-top: 28px;
  border-radius: 7px;
  font-size: 14px;
}

.seller-table {
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}

.seller-header,.seller-row {
  display: grid;
  grid-template-columns: 1.3fr .8fr .8fr 1fr 1fr 1.2fr;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  font-size: 14px;
}

.seller-header {
  background: var(--surface);
  font-size: 12px;
  color: var(--muted);
}

.seller-row+.seller-row {
  border-top: 1px solid var(--line);
}

.seller-name {
  display: flex;
  gap: 12px;
  align-items: center;
}

.avatar {
  width: 38px;
  height: 38px;
  background: var(--ink);
  color: white;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.seller-name small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.criteria {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 14px;
  margin-top: 18px;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.split p {
  color: var(--muted);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.checklist li {
  padding: 8px 0;
  display: flex;
  gap: 12px;
  font-size: 14px;
}

.checklist li::before {
  content: '✓';
  color: var(--success);
  font-weight: bold;
}

.checkout {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  padding: 28px;
  box-shadow: 0 8px 22px #20212406;
}

.checkout-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.checkout-title h3 {
  margin: 0;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
  padding: 8px 0;
}

.summary-line.total {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 20px;
  font-weight: 700;
  font-size: 18px;
}

.checkout .btn {
  width: 100%;
  margin-top: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14px;
  margin: 16px 0;
}

.field input,.field select {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  width: 100%;
}

.field input[aria-invalid=true] {
  border-color: var(--error);
}

.error {
  color: var(--error);
  font-size: 13px;
}

.account-section {
  background: var(--ink);
  color: white;
  padding: 48px;
  border-radius: 12px;
  margin: 32px 0;
}

.account-section .muted {
  color: #b8bdc3;
}

.account-section .split {
  gap: 48px;
}

.account-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}

.account-actions>div {
  border-top: 1px solid #ffffff35;
  padding-top: 16px;
}

.account-actions .btn {
  margin-top: 10px;
}

.orders {
  background: white;
  color: var(--ink);
  border-radius: 8px;
  padding: 24px;
}

.order-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.order {
  display: grid;
  grid-template-columns: 1.5fr .8fr .8fr;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 15px 0;
  font-size: 14px;
}

.order small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.order button {
  font-size: 12px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--accent);
}

.reviews {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}

.review {
  border-top: 2px solid var(--line);
  padding: 22px 0;
}

.review-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.review time {
  font-size: 12px;
  color: var(--muted);
}

.review p {
  font-size: 14px;
  margin: 16px 0;
}

.review-product {
  font-size: 12px;
  color: var(--muted);
}

.editorial {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 80px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.editorial p {
  font-size: 16px;
  color: var(--muted);
}

.model {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  background: var(--surface);
  padding: 22px;
  font-size: 14px;
  border-radius: 7px;
}

.model span {
  font-weight: 600;
}

.resources {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.resource {
  padding: 22px 16px;
  border-right: 1px solid var(--line);
}

.resource:last-child {
  border: 0;
}

.resource strong {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.resource small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.resource svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  margin-bottom: 12px;
}

.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 80px;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  padding: 20px 32px 20px 0;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  position: relative;
}

.faq summary::after {
  content: '+';
  position: absolute;
  right: 5px;
  color: var(--muted);
  font-size: 22px;
  top: 15px;
}

.faq details[open] summary::after {
  content: '−';
}

.faq details p {
  font-size: 14px;
  color: var(--muted);
  padding-right: 24px;
}

.address-strip {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 28px;
  align-items: center;
  padding: 24px;
  margin: 28px 0;
}

.address-strip h2 {
  font-size: 18px;
  margin-bottom: 4px;
}

.address-strip p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.address {
  background: var(--surface);
  padding: 12px 18px;
  border-radius: 6px;
  white-space: nowrap;
  font-weight: 600;
  font-size: 14px;
}

.final {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: 38px 0 48px;
}

.final p {
  color: var(--muted);
  max-width: 650px;
  font-size: 14px;
  margin: 0;
}

.footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 36px 0 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3,1fr);
  gap: 40px;
}

.footer h3 {
  font-size: 14px;
  margin-bottom: 12px;
}

.footer a {
  display: block;
  font-size: 14px;
  color: var(--muted);
  padding: 4px 0;
}

.footer .logo {
  display: flex;
  color: var(--ink);
  font-size: 22px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px;
  width: min(580px,calc(100% - 32px));
  max-height: 90vh;
  box-shadow: var(--shadow);
  color: var(--ink);
}

dialog::backdrop {
  background: #161b2466;
  backdrop-filter: blur(3px);
}

.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 20px;
}

.dialog-head h2,.dialog-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

.close {
  background: var(--surface);
  border: 0;
  border-radius: 6px;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  font-size: 24px;
}

.modal-product {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.modal-product img {
  width: 90px;
  height: 110px;
  object-fit: cover;
  border-radius: 5px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 20px;
  background: var(--ink);
  color: white;
  border-radius: 8px;
  z-index: 100;
  max-width: calc(100% - 32px);
  font-size: 14px;
  box-shadow: var(--shadow);
}

[hidden] {
  display: none !important;
}

.empty {
  grid-column: 1/-1;
  padding: 50px;
  text-align: center;
  background: var(--surface);
  border-radius: 8px;
}

.kit-section {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}

.swatches {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.swatch {
  width: 160px;
}

.swatch i {
  display: block;
  height: 70px;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.kit-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}

.skeleton {
  height: 20px;
  background: linear-gradient(90deg,#eceef0 25%,#f6f7f8 50%,#eceef0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
  border-radius: 4px;
  margin: 12px 0;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff70;
  border-top-color: white;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.breadcrumbs {
  font-size: 14px;
  color: var(--muted);
  margin: 24px 0;
}

.filter-mobile {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

@media (min-width:1600px) {
  .hero {
    padding-top: 70px;
    padding-bottom: 50px;
  }
}

@media (max-width:1100px) {
  .wrap {
    width: calc(100% - 48px);
  }

  .top {
    gap: 20px;
  }

  .hero {
    gap: 30px;
  }

  .products {
    grid-template-columns: repeat(2,1fr);
  }

  .categories {
    grid-template-columns: repeat(3,1fr);
  }

  .category:nth-child(3) {
    border-right: 0;
  }

  .category:nth-child(-n+3) {
    border-bottom: 1px solid var(--line);
  }

  .steps {
    gap: 16px;
  }

  .split {
    gap: 32px;
  }

  .seller-header,.seller-row {
    grid-template-columns: 1.2fr .7fr .7fr .9fr 1fr 1.3fr;
    padding: 16px 14px;
    gap: 10px;
  }

  .seller-row .btn {
    padding: 8px;
    font-size: 12px;
  }

  .address-strip {
    flex-wrap: wrap;
  }

  .address-strip>div:first-child {
    flex: 1;
  }

  .account-section {
    padding: 32px;
  }

  .resources {
    grid-template-columns: repeat(3,1fr);
  }

  .resource:nth-child(3) {
    border-right: 0;
  }

  .resource:nth-child(-n+3) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width:767px) {
  html {
    scroll-padding-top: 145px;
  }

  .wrap {
    width: calc(100% - 32px);
  }

  .top {
    flex-wrap: wrap;
    gap: 12px;
    min-height: 0;
    padding: 14px 0;
  }

  .logo {
    font-size: 21px;
  }

  .logo img {
    width: 28px;
    height: 28px;
  }

  .top>.actions {
    margin-left: auto;
  }

  .top .desktop-auth {
    display: none;
  }

  .mobile-menu {
    display: inline-flex;
  }

  .searchbox {
    order: 3;
    flex-basis: 100%;
  }

  .search {
    min-height: 46px;
  }

  .key {
    display: none;
  }

  .nav {
    display: none;
  }

  .nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 0;
  }

  .nav a {
    padding: 10px;
  }

  .nav .aside {
    margin: 0;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 32px 0;
    gap: 28px;
  }

  h1 {
    font-size: 38px;
    letter-spacing: -1.4px;
  }

  .lead {
    font-size: 20px;
  }

  h2 {
    font-size: 26px;
  }

  .hero .actions {
    flex-wrap: wrap;
  }

  .hero-preview {
    transform: none;
  }

  .preview-row {
    padding: 14px;
  }

  .categories {
    grid-template-columns: 1fr;
    margin-bottom: 24px;
  }

  .category {
    display: grid;
    grid-template-columns: 32px 1fr;
    column-gap: 12px;
    padding: 14px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line) !important;
  }

  .category:last-child {
    border-bottom: 0 !important;
  }

  .category svg {
    grid-row: 1/3;
    margin: 4px 0;
  }

  .category strong {
    font-size: 16px;
  }

  .category small {
    font-size: 13px;
  }

  .section-head {
    align-items: start;
    gap: 16px;
    flex-direction: column;
  }

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

  .product-cover {
    height: 190px;
  }

  .product-body {
    padding: 20px;
  }

  .product h3 {
    font-size: 18px;
  }

  .product .meta,.product-data,.seller-link {
    font-size: 14px;
  }

  .catalog-tools {
    align-items: start;
  }

  .filters {
    display: none;
  }

  .filter-mobile {
    display: inline-flex;
  }

  .category-description {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .step {
    display: grid;
    grid-template-columns: 34px 1fr;
    column-gap: 16px;
    border-top: 0;
    border-left: 2px solid var(--line);
    padding: 0 0 24px 18px;
  }

  .step:first-child {
    border-color: var(--accent);
  }

  .step-number {
    grid-row: 1/3;
    margin: 0;
  }

  .step h3 {
    margin: 0 0 5px;
  }

  .notice {
    padding: 16px;
  }

  .seller-header {
    display: none;
  }

  .seller-table {
    border: 0;
    overflow: visible;
  }

  .seller-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--line) !important;
    border-radius: 8px;
    padding: 20px;
    margin: 12px 0;
    gap: 16px;
  }

  .seller-name {
    grid-column: 1/-1;
  }

  .seller-cell::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 3px;
  }

  .seller-row>.btn {
    grid-column: 1/-1;
    font-size: 14px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .checkout {
    padding: 22px;
  }

  .account-section {
    padding: 24px;
    margin: 16px 0;
  }

  .account-actions {
    grid-template-columns: 1fr;
  }

  .orders {
    padding: 18px;
  }

  .order {
    grid-template-columns: 1fr auto;
  }

  .order .order-action {
    grid-column: 1/-1;
  }

  .reviews {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .editorial {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 32px 0;
  }

  .model {
    font-size: 12px;
    padding: 16px;
    gap: 8px;
  }

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

  .resource {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 0 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
  }

  .resource svg {
    grid-row: 1/3;
    margin: 4px 0;
  }

  .resource small {
    font-size: 14px;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .address-strip {
    padding: 20px;
    gap: 16px;
  }

  .address-strip>div:first-child {
    flex-basis: 100%;
  }

  .final {
    flex-direction: column;
    align-items: start;
  }

  .final .actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .final .primary {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-grid>div:first-child {
    grid-column: 1/-1;
  }

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

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

  dialog {
    padding: 22px;
  }

  section {
    padding: 30px 0;
  }

  .btn {
    min-height: 46px;
  }

  #filterDialog {
    margin: auto 0 0;
    width: 100%;
    max-width: none;
    border-radius: 16px 16px 0 0;
  }

  .modal-actions {
    flex-wrap: wrap;
  }
}

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

  *,*::before,*::after {
    animation: none !important;
    transition: none !important;
  }
}

.directory-row {
  display: grid;
  grid-template-columns: 1fr 1.7fr auto;
  gap: 24px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

.directory-row .directory-name {
  margin: 0;
}


.directory-row span {
  font-size: 14px;
  color: var(--accent);
}

.directory-row:hover .directory-name {
  color: var(--accent);
}

@media (max-width:767px) {
  .directory-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 120;
  padding: 12px 18px;
  background: white;
  border: 2px solid var(--accent);
  border-radius: 6px;
}

.skip-link:focus {
  top: 12px;
}

.search:has(input:focus-visible) {
  outline: 3px solid #245cdf;
  outline-offset: 3px;
}

.legal-card {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.legal-card p {
  margin: 0 0 10px;
  line-height: 1.6;
}

.subhead,.dialog-title,.footer-title {
  font-weight: 700;
}

.subhead {
  font-size: 1.05rem;
}

.dialog-title {
  font-size: 1.35rem;
}

.footer-title {
  display: block;
  margin-bottom: 12px;
}
