:root {
  --signal-yellow: #f2b705;
  --signal-yellow-dark: #d79f00;
  --graphite: #171716;
  --tool-black: #242422;
  --steel: #6b6b64;
  --zinc: #a7a79f;
  --paper: #fbfbf8;
  --warehouse-floor: #f1f1ec;
  --surface-raised: #ffffff;
  --line-soft: rgba(23, 23, 22, 0.09);
  --line-medium: rgba(23, 23, 22, 0.16);
  --control-inset: #f5f5f1;
  --available: #197a45;
  --available-bg: #e8f5ed;
  --unavailable: #b42318;
  --unavailable-bg: #fcedeb;
  --order: #8a6300;
  --order-bg: #fff5d4;
  --shadow-card: 0 10px 30px rgba(23, 23, 22, 0.07);
  --shadow-modal: 0 28px 70px rgba(0, 0, 0, 0.25);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --content-width: 1180px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --graphite: #f4f4ef;
  --tool-black: #e4e4de;
  --steel: #b4b4ac;
  --zinc: #85857e;
  --paper: #11110f;
  --warehouse-floor: #191917;
  --surface-raised: #20201d;
  --line-soft: rgba(255, 255, 248, 0.1);
  --line-medium: rgba(255, 255, 248, 0.2);
  --control-inset: #181816;
  --available: #6fd59b;
  --available-bg: #173727;
  --unavailable: #ff8a81;
  --unavailable-bg: #44201d;
  --order: #f2c84b;
  --order-bg: #3a3014;
  --shadow-card: 0 12px 34px rgba(0, 0, 0, 0.24);
  --shadow-modal: 0 28px 70px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--graphite);
  background: var(--paper);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: color 220ms ease, background 220ms ease;
}

body.modal-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

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

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

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  width: min(100% - 32px, var(--content-width));
  min-height: 72px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  display: block;
  width: clamp(44px, 12vw, 56px);
  max-height: 56px;
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
  aspect-ratio: 1;
}

.brand-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  overflow: hidden;
  max-width: 210px;
  font-size: 0.8rem;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy small {
  display: none;
  margin-top: 4px;
  color: var(--steel);
  font-size: 0.68rem;
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.theme-toggle {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  color: var(--graphite);
  cursor: pointer;
  place-items: center;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--signal-yellow-dark);
  transform: translateY(-1px);
}

.theme-icon {
  position: absolute;
  width: 20px;
  transition: opacity 180ms ease, transform 220ms ease;
}

.theme-icon-moon {
  opacity: 0;
  transform: translateY(16px) rotate(-20deg);
}

:root[data-theme="dark"] .theme-icon-sun {
  opacity: 0;
  transform: translateY(-16px) rotate(20deg);
}

:root[data-theme="dark"] .theme-icon-moon {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-nav-link {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  place-items: center;
  transition: border-color 180ms ease, transform 180ms ease;
}

.header-nav-link:hover,
.header-nav-link:focus-visible {
  border-color: var(--signal-yellow-dark);
  transform: translateY(-1px);
}

.header-nav-link svg {
  width: 20px;
}

.header-nav-link span {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 44px 16px 0;
  background:
    linear-gradient(color-mix(in srgb, var(--graphite) 4%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--graphite) 4%, transparent) 1px, transparent 1px),
    var(--warehouse-floor);
  background-size: 28px 28px;
}

.hero::after {
  position: absolute;
  top: -90px;
  right: -130px;
  width: 300px;
  height: 300px;
  border: 54px solid rgba(242, 183, 5, 0.18);
  border-radius: 50%;
  content: "";
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, var(--content-width));
  min-height: 480px;
  margin: 0 auto;
  align-items: start;
}

.hero-content {
  animation: reveal-up 0.65s both cubic-bezier(0.22, 1, 0.36, 1);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--steel);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow i {
  width: 26px;
  height: 3px;
  background: var(--signal-yellow);
}

.hero h1 {
  max-width: 700px;
  margin: 18px 0 16px;
  font-size: clamp(3rem, 15vw, 5.8rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.88;
}

.hero h1 span {
  color: var(--signal-yellow);
  text-shadow: 1.5px 1.5px 0 var(--graphite);
}

.hero-content > p {
  max-width: 520px;
  margin: 0 0 26px;
  color: var(--steel);
  font-size: 1rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary-button {
  display: inline-flex;
  min-height: 52px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: var(--radius-sm);
  background: var(--graphite);
  color: white;
  font-size: 0.94rem;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease;
}

.primary-button svg {
  width: 18px;
}

.primary-button:hover {
  background: #000;
  transform: translateY(-2px);
}

.back-to-top {
  position: fixed;
  z-index: 45;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(23, 23, 22, 0.18);
  border-radius: 50%;
  background: var(--signal-yellow);
  box-shadow: 0 12px 30px rgba(23, 23, 22, 0.2);
  color: #171716;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  place-items: center;
  transform: translateY(14px) scale(0.92);
  transition:
    opacity 180ms ease,
    visibility 180ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    background 180ms ease;
}

.back-to-top svg {
  width: 23px;
  stroke-width: 2.2;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: #ffca24;
  transform: translateY(-2px) scale(1);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.hero-visual {
  display: none;
}

.hero-brand-mark {
  display: block;
  width: min(100%, 430px);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 28px rgba(23, 23, 22, 0.12));
}

:root[data-theme="dark"] .hero-brand-mark {
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.36));
}

.measure-line {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, var(--content-width));
  height: 24px;
  margin: 0 auto;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 4px solid var(--signal-yellow);
}

.measure-line i {
  width: 1px;
  height: 8px;
  background: var(--graphite);
}

.catalog-section {
  width: min(100% - 32px, var(--content-width));
  margin: 0 auto;
  padding: 54px 0 72px;
}

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

.section-kicker {
  color: var(--order);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.section-heading h2 {
  margin: 7px 0 0;
  font-size: clamp(1.7rem, 7vw, 2.6rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.section-heading > p {
  display: none;
  margin: 0;
  color: var(--steel);
  font-size: 0.82rem;
  font-weight: 600;
}

.catalog-controls {
  position: sticky;
  z-index: 20;
  top: 72px;
  margin: 0 -16px 28px;
  padding: 12px 16px 14px;
  border-block: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  backdrop-filter: blur(14px);
}

.search-control {
  display: flex;
  min-height: 52px;
  padding: 0 14px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--control-inset);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.search-control:focus-within {
  border-color: var(--signal-yellow-dark);
  box-shadow: 0 0 0 3px rgba(242, 183, 5, 0.18);
}

.search-control svg {
  width: 21px;
  flex: 0 0 auto;
  color: var(--steel);
}

.search-control input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--graphite);
  font-size: 0.95rem;
}

.search-control input::placeholder {
  color: #888881;
}

.search-control kbd {
  display: none;
  padding: 4px 7px;
  border: 1px solid var(--line-medium);
  border-radius: 6px;
  background: var(--surface-raised);
  color: var(--steel);
  font-family: inherit;
  font-size: 0.7rem;
}

.category-filters {
  display: flex;
  overflow-x: auto;
  margin: 10px -16px -2px;
  padding: 0 16px 4px;
  gap: 8px;
  scrollbar-width: none;
}

.category-filters::-webkit-scrollbar {
  display: none;
}

.filter-button {
  min-height: 42px;
  padding: 0 17px;
  flex: 0 0 auto;
  border: 1px solid var(--line-medium);
  border-radius: 999px;
  background: var(--surface-raised);
  color: var(--steel);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 700;
  transition: 180ms ease;
}

.filter-button:hover,
.filter-button:focus-visible {
  border-color: var(--graphite);
  color: var(--graphite);
}

.filter-button.is-active {
  border-color: var(--graphite);
  background: var(--graphite);
  color: white;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
  animation: reveal-up 0.45s both cubic-bezier(0.22, 1, 0.36, 1);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(23, 23, 22, 0.1);
}

.product-image-wrap {
  position: relative;
  display: grid;
  min-height: 236px;
  overflow: hidden;
  background:
    linear-gradient(color-mix(in srgb, var(--graphite) 3%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--graphite) 3%, transparent) 1px, transparent 1px),
    var(--warehouse-floor);
  background-size: 24px 24px;
  place-items: center;
}

.product-image-wrap::before {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 5px;
  height: 38px;
  background: var(--signal-yellow);
  content: "";
}

.product-image {
  width: 76%;
  height: 190px;
  object-fit: contain;
  transition: transform 240ms ease;
}

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

.product-category {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 7px;
  background: rgba(23, 23, 22, 0.84);
  color: white;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.product-body {
  padding: 20px;
}

.product-code {
  display: block;
  margin-bottom: 7px;
  color: var(--zinc);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.product-name {
  min-height: 2.6em;
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.product-meta {
  display: flex;
  margin: 18px 0;
  padding-top: 16px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line-soft);
}

.price-block small {
  display: block;
  margin-bottom: 4px;
  color: var(--steel);
  font-size: 0.68rem;
  font-weight: 600;
}

.price-block strong {
  font-size: 1.55rem;
  letter-spacing: -0.045em;
}

.stock-badge {
  display: inline-flex;
  min-height: 28px;
  padding: 0 9px;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
}

.stock-badge::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.stock-disponible {
  background: var(--available-bg);
  color: var(--available);
}

.stock-sin-stock {
  background: var(--unavailable-bg);
  color: var(--unavailable);
}

.stock-a-pedido {
  background: var(--order-bg);
  color: var(--order);
}

.detail-button {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--graphite);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  color: var(--graphite);
  cursor: pointer;
  font-weight: 750;
  transition: background 180ms ease, color 180ms ease;
}

.detail-button:hover,
.detail-button:focus-visible {
  background: var(--graphite);
  color: white;
}

.empty-state {
  padding: 54px 20px;
  border: 1px dashed var(--line-medium);
  border-radius: var(--radius-md);
  text-align: center;
}

.empty-state span {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--warehouse-floor);
  color: var(--steel);
  font-size: 1.25rem;
  font-weight: 800;
  place-items: center;
}

.empty-state h3 {
  margin: 0 0 7px;
}

.empty-state p {
  margin: 0 0 18px;
  color: var(--steel);
}

.empty-state button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--graphite);
  color: white;
  cursor: pointer;
  font-weight: 700;
}

.site-footer {
  background: #11110f;
  color: white;
}

.footer-shell {
  width: min(100% - 32px, var(--content-width));
  margin: 0 auto;
  padding: 48px 0 32px;
}

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

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.footer-brand img {
  width: 64px;
  height: auto;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: contain;
}

.footer-brand h2,
.footer-section h2,
.footer-location h2 {
  margin: 0;
  color: white;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.footer-brand p,
.footer-section p,
.footer-location p {
  margin: 0;
  color: #b9b9b2;
  font-size: 0.8rem;
  line-height: 1.65;
}

.footer-brand p {
  max-width: 250px;
  margin-top: 8px;
}

.footer-section > h2 {
  position: relative;
  margin-bottom: 20px;
  padding-bottom: 11px;
}

.footer-section > h2::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--signal-yellow);
  content: "";
}

.footer-contact-list {
  display: grid;
  margin: 0;
  gap: 14px;
  font-style: normal;
}

.footer-contact-list p {
  display: grid;
  gap: 3px;
}

.footer-contact-list span {
  color: #777770;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer a {
  width: fit-content;
  color: #deded8;
  overflow-wrap: anywhere;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--signal-yellow);
  text-decoration-color: currentColor;
}

.footer-hours {
  display: grid;
  margin: 0;
  gap: 8px;
}

.footer-hours > div {
  display: grid;
  padding-bottom: 8px;
  grid-template-columns: minmax(78px, 0.7fr) 1.3fr;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #b9b9b2;
  font-size: 0.75rem;
  line-height: 1.45;
}

.footer-hours dt {
  color: white;
  font-weight: 600;
}

.footer-hours dd {
  margin: 0;
  text-align: right;
}

.footer-hours .is-closed dd {
  color: #ff8a81;
  font-weight: 700;
}

.footer-location {
  display: grid;
  margin-top: 38px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  background: #181816;
}

.footer-location-copy {
  padding: 22px;
}

.footer-location-copy > span {
  display: block;
  margin-bottom: 7px;
  color: var(--signal-yellow);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-location-copy h2 {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.footer-location-copy p {
  margin-top: 7px;
}

.footer-map {
  min-height: 220px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #232320;
}

.footer-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  border: 0;
  filter: grayscale(0.25) contrast(0.95);
}

.footer-legal {
  padding: 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background: #090908;
  text-align: center;
}

.footer-legal p {
  margin: 0;
  color: #85857e;
  font-size: 0.7rem;
  line-height: 1.5;
}

.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  padding: 16px 0 0;
  align-items: flex-end;
  justify-content: center;
  background: rgba(8, 8, 8, 0.64);
  backdrop-filter: blur(6px);
  animation: fade-in 180ms both ease;
}

.modal-backdrop[hidden] {
  display: none;
}

.product-modal {
  position: relative;
  width: 100%;
  max-height: 92dvh;
  overflow-y: auto;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--paper);
  box-shadow: var(--shadow-modal);
  animation: sheet-up 300ms both cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-handle {
  width: 42px;
  height: 4px;
  margin: 10px auto 4px;
  border-radius: 99px;
  background: var(--line-medium);
}

.modal-close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 16px;
  display: grid;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--graphite);
  cursor: pointer;
  place-items: center;
}

.modal-close svg {
  width: 20px;
}

.modal-product-head {
  display: grid;
}

.modal-image {
  display: grid;
  min-height: 260px;
  padding: 38px 24px 20px;
  background:
    linear-gradient(color-mix(in srgb, var(--graphite) 3%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--graphite) 3%, transparent) 1px, transparent 1px),
    var(--warehouse-floor);
  background-size: 24px 24px;
  place-items: center;
}

.modal-image img {
  width: min(74%, 280px);
  height: 210px;
  object-fit: contain;
}

.modal-summary {
  padding: 24px 20px 10px;
}

.modal-summary .product-code {
  color: var(--order);
}

.modal-summary h2 {
  margin: 0 0 12px;
  padding-right: 34px;
  font-size: 1.65rem;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.modal-summary > p {
  margin: 0;
  color: var(--steel);
  font-size: 0.93rem;
  line-height: 1.6;
}

.spec-sheet {
  margin: 16px 20px 24px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
}

.spec-heading {
  display: flex;
  min-height: 50px;
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 4px solid var(--signal-yellow);
  background: #171716;
  color: white;
}

.spec-heading strong {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
}

.spec-heading span {
  color: #b9b9b2;
  font-size: 0.66rem;
}

.spec-list {
  display: grid;
  margin: 0;
  padding: 0 16px;
}

.spec-row {
  display: flex;
  min-height: 66px;
  padding: 12px 0;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line-soft);
}

.spec-row:last-child {
  border-bottom: 0;
}

.spec-row dt {
  color: var(--steel);
  font-size: 0.76rem;
}

.spec-row dd {
  margin: 0;
  text-align: right;
  font-size: 0.86rem;
  font-weight: 700;
}

.spec-row.is-price dd {
  font-size: 1.15rem;
}

.spec-row.is-total {
  margin: 0 -16px;
  padding-inline: 16px;
  background: color-mix(in srgb, var(--signal-yellow) 12%, var(--surface-raised));
}

.spec-row.is-total dt {
  color: inherit;
  font-weight: 700;
}

.spec-row.is-total dd {
  color: inherit;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.list-action {
  display: grid;
  margin: -8px 20px 24px;
  padding: 16px;
  gap: 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
}

.quantity-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.quantity-label {
  color: var(--steel);
  font-size: 0.8rem;
  font-weight: 700;
}

.quantity-control {
  display: grid;
  overflow: hidden;
  grid-template-columns: 46px 58px 46px;
  border: 1px solid var(--line-medium);
  border-radius: var(--radius-sm);
  background: var(--control-inset);
}

.quantity-control button {
  display: grid;
  min-height: 46px;
  border: 0;
  background: var(--surface-raised);
  color: var(--graphite);
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 700;
  place-items: center;
  transition: background 180ms ease;
}

.quantity-control button:hover,
.quantity-control button:focus-visible {
  background: var(--order-bg);
}

.quantity-control input {
  width: 100%;
  border: 0;
  border-inline: 1px solid var(--line-soft);
  outline: 0;
  background: var(--control-inset);
  color: var(--graphite);
  font-weight: 800;
  text-align: center;
  -moz-appearance: textfield;
}

.quantity-control input::-webkit-inner-spin-button,
.quantity-control input::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.quantity-control input:focus {
  box-shadow: inset 0 0 0 2px var(--signal-yellow);
}

.add-list-button {
  display: flex;
  width: 100%;
  min-height: 54px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--graphite);
  border-radius: var(--radius-sm);
  background: var(--signal-yellow);
  color: var(--graphite);
  cursor: pointer;
  font-weight: 800;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.add-list-button svg {
  width: 21px;
}

.add-list-button:hover,
.add-list-button:focus-visible {
  background: var(--graphite);
  color: white;
  transform: translateY(-1px);
}

.add-list-button.is-added {
  border-color: var(--available);
  background: var(--available);
  color: white;
}

:root[data-theme="dark"] .hero h1 span {
  text-shadow: 1.5px 1.5px 0 #050505;
}

:root[data-theme="dark"] .primary-button,
:root[data-theme="dark"] .filter-button.is-active,
:root[data-theme="dark"] .detail-button:hover,
:root[data-theme="dark"] .detail-button:focus-visible,
:root[data-theme="dark"] .empty-state button {
  border-color: var(--signal-yellow);
  background: var(--signal-yellow);
  color: #171716;
}

:root[data-theme="dark"] .primary-button:hover {
  background: #ffca24;
}

:root[data-theme="dark"] .site-footer {
  background: #080807;
  color: white;
}

:root[data-theme="dark"] .add-list-button {
  border-color: var(--signal-yellow);
  color: #171716;
}

:root[data-theme="dark"] .add-list-button:hover,
:root[data-theme="dark"] .add-list-button:focus-visible {
  background: #ffca24;
  color: #171716;
}

:root[data-theme="dark"] .modal-close {
  background: rgba(32, 32, 29, 0.94);
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes sheet-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
}

@media (min-width: 640px) {
  .brand-logo {
    width: 52px;
    max-height: 52px;
  }

  .brand-copy strong {
    max-width: none;
    font-size: 0.88rem;
  }

  .brand-copy small {
    display: block;
  }

  .header-nav-link {
    display: flex;
    width: auto;
    padding: 0 15px;
    gap: 8px;
  }

  .header-nav-link span {
    display: inline;
    font-size: 0.8rem;
    font-weight: 700;
  }

  .hero {
    padding-inline: 24px;
  }

  .hero-grid {
    min-height: 520px;
    align-items: center;
  }

  .hero h1 {
    margin-top: 22px;
  }

  .section-heading > p {
    display: block;
  }

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

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 430px) {
  .header-inner {
    width: min(100% - 20px, var(--content-width));
  }

  .brand-copy strong {
    max-width: 112px;
    font-size: 0.7rem;
  }

  .header-actions,
  .header-nav {
    gap: 5px;
  }

  .theme-toggle,
  .header-nav-link {
    width: 40px;
    height: 40px;
  }

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

  .hero-actions .primary-button {
    width: 100%;
  }
}

@media (min-width: 900px) {
  .header-inner {
    min-height: 80px;
  }

  .hero-grid {
    grid-template-columns: 1.12fr 0.88fr;
    min-height: 570px;
    gap: 50px;
  }

  .hero-visual {
    display: block;
    perspective: 900px;
  }

  .technical-card {
    position: relative;
    min-height: 390px;
    padding: 22px;
    overflow: hidden;
    border: 1px solid rgba(23, 23, 22, 0.15);
    border-radius: 5px;
    background: #e7e7e0;
    box-shadow: 18px 22px 0 rgba(23, 23, 22, 0.06);
    transform: rotateY(-6deg) rotateZ(2deg);
  }

  .technical-card::after {
    position: absolute;
    right: -70px;
    bottom: -74px;
    width: 210px;
    height: 210px;
    border: 38px solid var(--signal-yellow);
    border-radius: 50%;
    content: "";
  }

  .technical-top,
  .technical-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 0.59rem;
    font-weight: 800;
    letter-spacing: 0.12em;
  }

  .technical-bottom {
    position: absolute;
    right: 22px;
    bottom: 20px;
    left: 22px;
    padding-top: 10px;
    border-top: 1px solid var(--graphite);
  }

  .wheel-illustration {
    position: relative;
    width: 230px;
    height: 230px;
    margin: 52px auto 0;
  }

  .wheel-ring,
  .wheel-center,
  .wheel-axis {
    position: absolute;
    inset: 0;
    margin: auto;
    border-radius: 50%;
  }

  .wheel-ring {
    width: 220px;
    height: 220px;
    border: 32px solid var(--graphite);
    box-shadow: inset 0 0 0 3px #777770, 0 0 0 3px #777770;
  }

  .wheel-center {
    width: 58px;
    height: 58px;
    border: 16px solid #676760;
    background: var(--graphite);
  }

  .wheel-axis {
    width: 270px;
    height: 18px;
    border-radius: 3px;
    background: var(--graphite);
    transform: rotate(-24deg);
  }

  .catalog-section {
    padding-top: 78px;
  }

  .footer-shell {
    padding-top: 60px;
  }

  .footer-columns {
    grid-template-columns: 0.85fr 1.1fr 1.05fr;
    gap: clamp(40px, 6vw, 78px);
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-location {
    grid-template-columns: minmax(260px, 0.72fr) minmax(420px, 1.28fr);
    align-items: stretch;
  }

  .footer-location-copy {
    display: flex;
    padding: 28px;
    flex-direction: column;
    justify-content: center;
  }

  .footer-map {
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
  }

  .catalog-controls {
    position: static;
    display: grid;
    margin: 0 0 34px;
    padding: 12px;
    grid-template-columns: minmax(260px, 1fr) auto;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    background: var(--surface-raised);
    box-shadow: var(--shadow-card);
  }

  .search-control kbd {
    display: inline-block;
  }

  .category-filters {
    margin: 0;
    padding: 0;
  }

  .filter-button {
    min-height: 46px;
  }

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

  .modal-backdrop {
    padding: 32px;
    align-items: center;
  }

  .product-modal {
    width: min(900px, 100%);
    max-height: 88dvh;
    border-radius: var(--radius-lg);
  }

  .modal-handle {
    display: none;
  }

  .modal-product-head {
    grid-template-columns: 0.92fr 1.08fr;
  }

  .modal-image {
    min-height: 330px;
  }

  .modal-summary {
    display: flex;
    padding: 56px 48px 30px;
    flex-direction: column;
    justify-content: center;
  }

  .modal-summary h2 {
    font-size: 2.1rem;
  }

  .spec-sheet {
    margin: 22px 30px 30px;
  }

  .list-action {
    margin: -12px 30px 30px;
    grid-template-columns: auto minmax(280px, 0.55fr);
    align-items: end;
  }

  .quantity-field {
    display: grid;
    grid-template-columns: auto;
    gap: 8px;
  }

  .spec-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 30px;
  }

  .spec-row:nth-child(odd) {
    border-right: 1px solid var(--line-soft);
    padding-right: 30px;
  }

  .spec-row.is-total {
    margin: 0 -16px 0 0;
    padding-right: 16px;
  }
}

@media (min-width: 1180px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .product-image-wrap {
    min-height: 210px;
  }

  .product-image {
    height: 166px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
