:root {
  --navy-950: #171d3d;
  --navy-900: #21274d;
  --navy-800: #2b335f;
  --navy-700: #394676;
  --navy-100: #eceef5;
  --accent: #ff3131;
  --accent-dark: #d9232a;
  --ink: #181b2a;
  --muted: #63697a;
  --line: #dfe2ea;
  --line-dark: #c9ceda;
  --surface: #ffffff;
  --surface-soft: #f5f6f9;
  --surface-warm: #fff2f2;
  --danger: #ce292d;
  --success: #177047;
  --whatsapp: #168a4c;
  --shadow: 0 8px 24px rgb(33 39 77 / 10%);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --container: 1240px;
  --font-body: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: "Arial Narrow", "Roboto Condensed", "Segoe UI", Arial, sans-serif;
  --font-code: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface-soft);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

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

button {
  color: inherit;
}

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

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

svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

.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;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 14px;
  color: #fff;
  background: var(--navy-950);
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
}

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

:focus-visible {
  outline: 3px solid rgb(255 49 49 / 48%);
  outline-offset: 2px;
}

.topbar {
  color: #fff;
  background: var(--navy-950);
  font-size: 12px;
}

.topbar__inner,
.topbar__group,
.topbar a,
.topbar__location {
  display: flex;
  align-items: center;
}

.topbar__inner {
  min-height: 34px;
  justify-content: space-between;
  gap: 16px;
}

.topbar__group {
  gap: 20px;
}

.topbar__group--right {
  justify-content: flex-end;
}

.topbar a,
.topbar__location {
  gap: 6px;
  opacity: 0.9;
}

.topbar a:hover {
  opacity: 1;
  text-decoration: underline;
}

.topbar svg {
  width: 14px;
  height: 14px;
}

.topbar__urgent {
  color: #ff8e8e;
  font-weight: 700;
}

.store-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  box-shadow: 0 2px 10px rgb(33 39 77 / 10%);
}

.store-header__main {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "brand actions"
    "search search";
  align-items: center;
  gap: 10px 12px;
  min-height: 108px;
  padding-block: 12px;
}

.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand--official {
  width: 185px;
  max-width: 56vw;
  min-width: 0;
}

.brand--official img {
  width: 100%;
  height: auto;
}

.brand__mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--accent);
  background: var(--navy-900);
  border-radius: 7px;
  font-family: var(--font-heading);
  font-size: 27px;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 -3px 0 rgb(0 0 0 / 14%);
}

.brand__copy {
  display: grid;
  line-height: 1.05;
}

.brand__copy strong {
  color: var(--navy-950);
  font-family: var(--font-heading);
  font-size: 24px;
  font-stretch: condensed;
  letter-spacing: -0.6px;
  text-transform: uppercase;
}

.brand__copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.main-search {
  grid-area: search;
  position: relative;
  display: flex;
  height: 46px;
  background: #fff;
  border: 2px solid var(--navy-700);
  border-radius: 8px;
  overflow: hidden;
}

.main-search > svg {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 19px;
  height: 19px;
  color: var(--navy-700);
  transform: translateY(-50%);
  pointer-events: none;
}

.main-search input {
  width: 100%;
  min-width: 0;
  padding: 0 12px 0 42px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.main-search input::placeholder {
  color: #7a7f8f;
}

.main-search button {
  display: none;
  padding-inline: 22px;
  color: #fff;
  background: var(--navy-700);
  border: 0;
  font-weight: 800;
  cursor: pointer;
}

.main-search button:hover {
  background: var(--navy-900);
}

.store-header__actions {
  grid-area: actions;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.header-whatsapp,
.cart-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
}

.header-whatsapp {
  width: 42px;
  color: #fff;
  background: var(--whatsapp);
}

.header-whatsapp span {
  display: none;
}

.header-whatsapp:hover {
  background: #11723e;
}

.cart-button {
  position: relative;
  padding: 0 8px;
  color: var(--navy-950);
  background: var(--surface);
  border: 1px solid var(--line-dark);
  cursor: pointer;
}

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

.cart-button__label {
  display: none;
}

.cart-count {
  display: grid;
  min-width: 20px;
  height: 20px;
  padding-inline: 5px;
  place-items: center;
  color: #fff;
  background: var(--accent-dark);
  border-radius: 99px;
  font-size: 11px;
  line-height: 1;
}

.category-nav {
  border-top: 1px solid var(--line);
}

.category-nav__inner {
  display: flex;
  height: 43px;
  align-items: stretch;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-nav__inner::-webkit-scrollbar,
.featured__grid::-webkit-scrollbar {
  display: none;
}

.category-nav button {
  position: relative;
  flex: 0 0 auto;
  padding: 0 12px;
  color: #444a5c;
  background: none;
  border: 0;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.category-nav button::after {
  position: absolute;
  right: 10px;
  bottom: 0;
  left: 10px;
  height: 3px;
  background: var(--accent);
  content: "";
  opacity: 0;
  transform: scaleX(0.5);
}

.category-nav button:hover,
.category-nav button.is-active {
  color: var(--navy-800);
}

.category-nav button.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.commercial-banner {
  padding: 18px 0 12px;
}

.commercial-banner__panel {
  position: relative;
  min-height: 238px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgb(33 39 77 / 98%) 0%, rgb(33 39 77 / 94%) 48%, rgb(33 39 77 / 30%) 76%),
    url("assets/hero-tractor.jpg") 66% 52% / cover no-repeat;
  border-radius: var(--radius-lg);
}

.commercial-banner__content {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  padding: 26px 24px 74px;
}

.commercial-banner__label,
.section-kicker,
.cart-drawer__header p,
.filter-dialog__header p {
  margin: 0 0 5px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.commercial-banner__label {
  color: #ff8e8e;
}

.section-kicker,
.cart-drawer__header p,
.filter-dialog__header p {
  color: var(--accent-dark);
}

.commercial-banner h1 {
  max-width: 620px;
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(29px, 5vw, 42px);
  line-height: 1.02;
  letter-spacing: -1px;
}

.commercial-banner__content > p:not(.commercial-banner__label) {
  max-width: 520px;
  margin: 10px 0 18px;
  color: rgb(255 255 255 / 84%);
  font-size: 15px;
}

.commercial-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}

.button svg {
  width: 18px;
  height: 18px;
}

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

.button--accent:hover {
  background: #b91f25;
  border-color: #b91f25;
}

.button--light {
  color: #fff;
  background: rgb(255 255 255 / 8%);
  border-color: rgb(255 255 255 / 42%);
}

.button--light:hover {
  background: rgb(255 255 255 / 15%);
  border-color: #fff;
}

.button--dark {
  color: #fff;
  background: var(--navy-900);
  border-color: var(--navy-900);
}

.button--dark:hover {
  background: var(--navy-950);
  border-color: var(--navy-950);
}

.button--whatsapp {
  color: #fff;
  background: var(--whatsapp);
  border-color: var(--whatsapp);
}

.button--whatsapp:hover {
  background: #11723e;
  border-color: #11723e;
}

.button--full {
  width: 100%;
}

.commercial-banner__facts {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 20px;
  padding: 8px 24px;
  margin: 0;
  background: rgb(17 22 50 / 82%);
  list-style: none;
  backdrop-filter: blur(4px);
}

.commercial-banner__facts li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgb(255 255 255 / 88%);
  font-size: 12px;
  font-weight: 700;
}

.commercial-banner__facts svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.featured,
.catalog,
.photo-help {
  padding-block: 24px;
}

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

.section-line h2,
.catalog__heading h2,
.photo-help h2 {
  margin: 0;
  color: var(--navy-950);
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.4px;
}

.section-line > a {
  color: var(--navy-700);
  font-size: 13px;
  font-weight: 800;
}

.section-line > a:hover {
  text-decoration: underline;
}

.featured {
  padding-top: 12px;
}

.featured__grid {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 1px 1px 5px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.featured-card {
  display: grid;
  min-width: min(82vw, 300px);
  flex: 1 0 min(82vw, 300px);
  grid-template-columns: 96px minmax(0, 1fr);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  scroll-snap-align: start;
}

.featured-card:hover {
  border-color: var(--line-dark);
  box-shadow: var(--shadow);
}

.featured-card__image,
.product-card__image,
.product-dialog__image-wrap,
.cart-item__image {
  background-color: #f0f1f4;
}

.featured-card__image img,
.product-card__image img,
.product-dialog__image,
.cart-item__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.featured-card__image {
  min-height: 118px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-right: 1px solid var(--line);
  cursor: pointer;
}

.featured-card__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px;
}

.featured-card__category {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.featured-card h3 {
  display: -webkit-box;
  margin: 4px 0 7px;
  overflow: hidden;
  color: var(--navy-950);
  font-size: 13px;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.featured-card__price {
  margin-top: auto;
  font-size: 15px;
  font-weight: 900;
}

.featured-card button {
  padding: 0;
  margin-top: 5px;
  color: var(--navy-700);
  background: none;
  border: 0;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.featured-card button:hover {
  text-decoration: underline;
}

.catalog {
  margin-top: 8px;
  background: #eff1f6;
  border-block: 1px solid var(--line);
}

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

.catalog__heading > div > p:last-child {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.catalog__result {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.catalog__toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 10px;
}

.catalog-search {
  position: relative;
  grid-column: 1 / -1;
  display: flex;
  min-width: 0;
  height: 44px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line-dark);
  border-radius: 7px;
}

.catalog-search:focus-within {
  border-color: var(--navy-700);
  box-shadow: 0 0 0 2px rgb(33 39 77 / 14%);
}

.catalog-search svg {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}

.catalog-search input {
  width: 100%;
  height: 100%;
  padding: 0 12px 0 40px;
  background: transparent;
  border: 0;
  outline: 0;
}

.sort-control {
  display: flex;
  height: 42px;
  align-items: center;
  gap: 6px;
  padding-left: 10px;
  background: var(--surface);
  border: 1px solid var(--line-dark);
  border-radius: 7px;
  color: var(--muted);
  font-size: 12px;
}

.sort-control select {
  height: 100%;
  max-width: 156px;
  padding: 0 30px 0 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 12px;
  font-weight: 700;
}

.mobile-filter-button {
  display: inline-flex;
  height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  background: var(--surface);
  border: 1px solid var(--line-dark);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.mobile-filter-button svg {
  width: 17px;
  height: 17px;
}

.mobile-filter-button span {
  min-width: 18px;
  padding: 1px 5px;
  color: #fff;
  background: var(--accent-dark);
  border-radius: 99px;
  font-size: 10px;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 0;
  margin-bottom: 10px;
}

.active-filters:empty {
  display: none;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 4px 8px;
  color: var(--navy-900);
  background: var(--navy-100);
  border: 1px solid #cdd2e0;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
}

.filter-tag button {
  display: grid;
  width: 18px;
  height: 18px;
  padding: 0;
  place-items: center;
  color: var(--navy-900);
  background: none;
  border: 0;
  cursor: pointer;
}

.filter-tag svg {
  width: 13px;
  height: 13px;
}

.catalog__layout {
  display: block;
}

.filter-sidebar {
  display: none;
}

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

.filter-sidebar__title strong {
  color: var(--navy-950);
  font-size: 14px;
}

.filter-sidebar__title button {
  padding: 0;
  color: var(--navy-700);
  background: none;
  border: 0;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.filter-group {
  padding: 15px 0 0;
  margin: 0;
  border: 0;
}

.filter-group + .filter-group {
  margin-top: 15px;
  border-top: 1px solid var(--line);
}

.filter-group legend {
  padding: 0;
  margin-bottom: 9px;
  color: #373d50;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.filter-options {
  display: grid;
  gap: 3px;
}

.filter-option {
  display: flex;
  width: 100%;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 7px;
  background: none;
  border: 0;
  border-radius: 5px;
  text-align: left;
  cursor: pointer;
}

.filter-option:hover {
  background: var(--surface-soft);
}

.filter-option.is-active {
  color: var(--navy-900);
  background: var(--navy-100);
  font-weight: 800;
}

.filter-option span:last-child {
  min-width: 25px;
  padding: 1px 5px;
  color: var(--muted);
  background: #eef0f5;
  border-radius: 99px;
  font-size: 10px;
  text-align: center;
}

.filter-option.is-active span:last-child {
  color: var(--navy-900);
  background: #d9ddea;
}

.filter-sidebar__note {
  display: flex;
  gap: 8px;
  padding: 10px;
  margin-top: 18px;
  color: var(--muted);
  background: var(--surface-warm);
  border-radius: 7px;
  font-size: 11px;
}

.filter-sidebar__note svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--accent-dark);
}

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

.product-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.product-card:hover {
  border-color: #c1c6d2;
  box-shadow: var(--shadow);
}

.product-card__image-wrap {
  position: relative;
  background: #f0f1f4;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.product-card__image {
  display: block;
  width: 100%;
  padding: 0;
  aspect-ratio: 1.18 / 1;
  border: 0;
  transition: transform 180ms ease;
  cursor: pointer;
}

.product-card:hover .product-card__image {
  transform: scale(1.025);
}

.stock-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

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

.stock-badge--available {
  color: #0a6a3e;
  background: #e3f4e9;
  border: 1px solid #b7dec5;
}

.stock-badge--check {
  color: #a71f25;
  background: #ffebec;
  border: 1px solid #f3b8bb;
}

.product-card__body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding: 10px;
}

.product-card__category {
  margin: 0;
  color: var(--navy-700);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-card h3 {
  display: -webkit-box;
  min-height: 36px;
  margin: 4px 0 5px;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card__title-button {
  padding: 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.product-card__title-button:hover h3 {
  color: var(--navy-700);
  text-decoration: underline;
}

.product-card__code,
.product-card__compatibility {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.product-card__code {
  font-family: var(--font-code);
}

.product-card__compatibility {
  display: -webkit-box;
  min-height: 27px;
  margin-top: 3px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card__price {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding-top: 9px;
  margin-top: auto;
}

.product-card__price strong {
  color: var(--navy-950);
  font-size: 17px;
  line-height: 1;
}

.product-card__price span {
  color: var(--navy-900);
  font-size: 14px;
  font-weight: 900;
}

.product-card__actions {
  display: grid;
  gap: 6px;
}

.product-card__actions .button {
  width: 100%;
  min-height: 36px;
  padding: 7px 8px;
  font-size: 10px;
}

.button--outline {
  color: var(--navy-900);
  background: #fff;
  border-color: #adb4c5;
}

.button--outline:hover {
  background: var(--navy-100);
  border-color: var(--navy-700);
}

.empty-state {
  min-height: 340px;
  padding: 50px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.empty-state > svg {
  width: 38px;
  height: 38px;
  margin: 0 auto 12px;
  color: var(--muted);
}

.empty-state h3 {
  margin: 0;
  color: var(--navy-950);
  font-size: 18px;
}

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

.photo-help {
  background: var(--surface);
}

.photo-help__panel {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px 14px;
  padding: 18px;
  color: #fff;
  background: var(--navy-900);
  border-radius: var(--radius-lg);
}

.photo-help__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--navy-950);
  background: var(--accent);
  border-radius: 50%;
}

.photo-help__icon svg {
  width: 23px;
  height: 23px;
}

.photo-help h2 {
  color: #fff;
  font-size: 21px;
}

.photo-help p {
  margin: 3px 0 0;
  color: rgb(255 255 255 / 75%);
  font-size: 13px;
}

.photo-help .button {
  grid-column: 1 / -1;
}

.site-footer {
  color: rgb(255 255 255 / 75%);
  background: var(--navy-950);
}

.site-footer__grid {
  display: grid;
  gap: 26px;
  padding-block: 34px 28px;
}

.brand--footer {
  width: 190px;
  min-width: 0;
  padding: 10px 14px;
  background: #fff;
  border-radius: var(--radius-sm);
}

.brand--footer img {
  width: 100%;
  height: auto;
}

.site-footer__brand > p {
  max-width: 310px;
  margin: 14px 0 0;
  font-size: 13px;
}

.site-footer__whatsapp {
  min-height: 38px;
  padding: 7px 13px;
  margin-top: 14px;
  font-size: 12px;
}

.site-footer h2 {
  margin: 0 0 11px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 16px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0 0 10px;
  font-size: 12px;
}

.site-footer p strong {
  color: rgb(255 255 255 / 88%);
  font-weight: 650;
}

.site-footer address,
.footer-categories {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-style: normal;
}

.site-footer address a:hover,
.footer-categories button:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-categories {
  grid-template-columns: repeat(2, max-content);
  column-gap: 18px;
}

.footer-categories button {
  padding: 0;
  color: inherit;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 20px;
  padding-block: 14px;
  padding-inline-end: 110px;
  border-top: 1px solid rgb(255 255 255 / 12%);
  color: rgb(255 255 255 / 45%);
  font-size: 11px;
}

.site-footer__credit {
  color: rgb(255 255 255 / 60%);
}

.floating-whatsapp {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 40;
  display: flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--whatsapp);
  border-radius: 50%;
  box-shadow: 0 6px 20px rgb(23 29 61 / 28%);
}

.floating-whatsapp:hover {
  background: #11723e;
}

.floating-whatsapp svg {
  width: 27px;
  height: 27px;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 89;
  background: rgb(12 16 37 / 58%);
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  width: min(100%, 430px);
  flex-direction: column;
  background: var(--surface);
  box-shadow: -12px 0 40px rgb(0 0 0 / 18%);
  transform: translateX(105%);
  transition: transform 180ms ease;
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-drawer__header,
.filter-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
}

.cart-drawer__header p,
.filter-dialog__header p {
  color: var(--navy-700);
}

.cart-drawer__header h2,
.filter-dialog__header h2 {
  margin: 0;
  color: var(--navy-950);
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1.1;
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
}

.icon-button:hover {
  background: #eceef3;
}

.icon-button svg {
  width: 19px;
  height: 19px;
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
}

.cart-empty {
  display: grid;
  min-height: 100%;
  padding: 50px 25px;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.cart-empty > svg {
  width: 42px;
  height: 42px;
  color: #8d93a2;
}

.cart-empty h3 {
  margin: 14px 0 4px;
  color: var(--navy-950);
  font-size: 18px;
}

.cart-empty p {
  max-width: 270px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.cart-items {
  display: grid;
  padding: 8px 16px;
}

.cart-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item__image {
  width: 76px;
  height: 76px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.cart-item__body {
  min-width: 0;
}

.cart-item__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
}

.cart-item h3 {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.3;
}

.cart-item__remove {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  color: var(--danger);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.cart-item__remove svg {
  width: 16px;
  height: 16px;
}

.cart-item__code {
  margin: 3px 0 8px;
  color: var(--muted);
  font-family: var(--font-code);
  font-size: 9px;
}

.cart-item__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.quantity-control {
  display: inline-grid;
  grid-template-columns: 30px 32px 30px;
  height: 31px;
  align-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 5px;
  overflow: hidden;
}

.quantity-control button {
  display: grid;
  height: 100%;
  padding: 0;
  place-items: center;
  background: var(--surface-soft);
  border: 0;
  cursor: pointer;
}

.quantity-control button:hover {
  background: #e8eaf0;
}

.quantity-control svg {
  width: 13px;
  height: 13px;
}

.quantity-control span,
.quantity-control input {
  width: 100%;
  height: 100%;
  padding: 0;
  color: var(--ink);
  background: #fff;
  border: 0;
  border-inline: 1px solid var(--line-dark);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.quantity-control input {
  appearance: textfield;
}

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

.cart-item__price {
  color: var(--navy-950);
  font-size: 12px;
  font-weight: 900;
}

.cart-drawer__footer {
  padding: 16px 18px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -5px 18px rgb(0 0 0 / 5%);
}

.cart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-summary span {
  color: var(--muted);
  font-size: 12px;
}

.cart-summary strong {
  color: var(--navy-950);
  font-size: 20px;
}

.cart-drawer__footer > p {
  margin: 3px 0 12px;
  color: var(--muted);
  font-size: 10px;
}

.text-button {
  display: block;
  padding: 8px 5px;
  margin: 5px auto 0;
  color: var(--muted);
  background: none;
  border: 0;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.text-button:hover {
  color: var(--danger);
  text-decoration: underline;
}

dialog {
  padding: 0;
  margin: auto;
  color: var(--ink);
  background: var(--surface);
  border: 0;
}

dialog::backdrop {
  background: rgb(12 16 37 / 62%);
  backdrop-filter: blur(2px);
}

.product-dialog {
  width: min(calc(100% - 24px), 900px);
  max-height: min(760px, calc(100dvh - 24px));
  overflow: visible;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 70px rgb(0 0 0 / 28%);
}

.product-dialog__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: rgb(255 255 255 / 92%);
}

.product-detail {
  display: grid;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.product-dialog__image {
  display: block;
}

.product-dialog__image-wrap {
  min-height: 290px;
}

.product-detail__body {
  padding: 20px;
  overflow-y: auto;
}

.product-detail__category {
  margin: 0;
  color: var(--navy-700);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.product-detail h2 {
  margin: 5px 40px 8px 0;
  color: var(--navy-950);
  font-family: var(--font-heading);
  font-size: clamp(23px, 4vw, 31px);
  line-height: 1.08;
}

.product-detail__code {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-code);
  font-size: 11px;
}

.product-detail__stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  margin-top: 12px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 900;
}

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

.product-detail__stock--available {
  color: var(--success);
  background: #e5f3ea;
}

.product-detail__stock--check {
  color: #a71f25;
  background: #ffebec;
}

.product-detail__price {
  margin: 15px 0 14px;
  color: var(--navy-950);
  font-size: 25px;
  font-weight: 900;
}

.product-detail__price small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.product-detail__data {
  display: grid;
  gap: 8px;
  padding: 12px 0;
  margin: 0;
  border-block: 1px solid var(--line);
}

.product-detail__data div {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 8px;
}

.product-detail__data dt {
  color: var(--muted);
  font-size: 11px;
}

.product-detail__data dd {
  margin: 0;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.product-detail__description {
  margin: 13px 0;
  color: var(--muted);
  font-size: 12px;
}

.product-detail__purchase {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
}

.product-detail__purchase .quantity-control {
  height: 42px;
  grid-template-columns: 36px 38px 36px;
}

.product-detail__purchase .button--whatsapp {
  grid-column: 1 / -1;
}

.filter-dialog {
  width: min(100%, 560px);
  max-width: none;
  max-height: 88dvh;
  margin: auto 0 0;
  border-radius: 14px 14px 0 0;
}

.filter-dialog__header {
  margin: 0;
}

.filter-dialog__body {
  max-height: calc(88dvh - 145px);
  padding: 0 18px 18px;
  overflow-y: auto;
}

.filter-dialog__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
}

.filter-dialog__footer .text-button {
  margin: 0;
}

.toast {
  position: fixed;
  bottom: 72px;
  left: 50%;
  z-index: 110;
  max-width: min(calc(100% - 28px), 420px);
  padding: 10px 14px;
  color: #fff;
  background: var(--navy-950);
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 7px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 22%);
  font-size: 12px;
  font-weight: 750;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (min-width: 560px) {
  .container {
    width: min(calc(100% - 40px), var(--container));
  }

  .header-whatsapp {
    width: auto;
    padding-inline: 12px;
  }

  .header-whatsapp span,
  .cart-button__label {
    display: inline;
  }

  .cart-button {
    padding-inline: 11px;
  }

  .commercial-banner__content {
    padding-inline: 30px;
  }

  .catalog__toolbar {
    grid-template-columns: minmax(260px, 1fr) auto auto;
  }

  .catalog-search {
    grid-column: auto;
  }

  .product-card__body {
    padding: 12px;
  }

  .product-card h3 {
    font-size: 14px;
  }

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

  .product-card__actions .button {
    font-size: 10px;
  }

  .photo-help__panel {
    grid-template-columns: auto 1fr auto;
    padding: 20px 22px;
  }

  .photo-help .button {
    grid-column: auto;
  }

  .site-footer__grid {
    grid-template-columns: 1.3fr 1fr;
  }
}

@media (min-width: 760px) {
  .store-header__main {
    grid-template-columns: auto minmax(200px, 1fr) auto;
    grid-template-areas: "brand search actions";
    gap: 18px;
    min-height: 76px;
    padding-block: 10px;
  }

  .brand--official {
    width: 205px;
  }

  .main-search button {
    display: block;
  }

  .commercial-banner {
    padding-top: 22px;
  }

  .commercial-banner__panel {
    min-height: 258px;
    background-position: center 55%;
  }

  .commercial-banner__content {
    padding: 32px 36px 76px;
  }

  .commercial-banner__content > p:not(.commercial-banner__label) {
    font-size: 16px;
  }

  .featured,
  .catalog,
  .photo-help {
    padding-block: 30px;
  }

  .featured__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .featured-card {
    min-width: 0;
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .featured-card__image {
    min-height: 128px;
  }

  .product-grid {
    gap: 12px;
  }

  .product-dialog {
    overflow: hidden;
  }

  .product-detail {
    grid-template-columns: minmax(0, 0.95fr) minmax(330px, 1.05fr);
  }

  .product-dialog__image {
    min-height: 0;
  }

  .product-dialog__image-wrap {
    min-height: 520px;
  }

  .product-detail__body {
    max-height: min(760px, calc(100dvh - 24px));
    padding: 28px;
  }

  .filter-dialog {
    margin: auto;
    border-radius: var(--radius-lg);
  }
}

@media (min-width: 920px) {
  html {
    scroll-padding-top: 130px;
  }

  .brand__mark {
    width: 45px;
    height: 45px;
  }

  .main-search {
    height: 48px;
  }

  .category-nav__inner {
    justify-content: center;
  }

  .category-nav button {
    padding-inline: 17px;
  }

  .catalog__toolbar {
    grid-template-columns: minmax(300px, 1fr) auto;
    padding-left: 250px;
  }

  .mobile-filter-button {
    display: none;
  }

  .catalog__layout {
    display: grid;
    grid-template-columns: 226px minmax(0, 1fr);
    align-items: start;
    gap: 18px;
  }

  .filter-sidebar {
    position: sticky;
    top: 132px;
    display: block;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

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

  .site-footer__grid {
    grid-template-columns: 1.4fr 1.2fr 1fr 0.8fr;
  }
}

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

  .featured-card {
    display: flex;
    flex-direction: column;
  }

  .featured-card__image {
    min-height: 145px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 679px) {
  .topbar__group {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .topbar__group--right {
    display: none;
  }

  .topbar__group a span {
    font-size: 11px;
  }

  .commercial-banner__facts {
    gap: 12px;
    overflow-x: auto;
  }

  .commercial-banner__facts li {
    flex: 0 0 auto;
  }

  .section-line > a {
    display: none;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .brand__copy strong {
    font-size: 21px;
  }

  .brand--official {
    width: 164px;
  }

  .brand__copy small {
    max-width: 130px;
    font-size: 8px;
  }

  .header-whatsapp {
    display: none;
  }

  .commercial-banner__panel {
    min-height: 252px;
    background:
      linear-gradient(90deg, rgb(33 39 77 / 98%) 0%, rgb(33 39 77 / 92%) 62%, rgb(33 39 77 / 48%) 100%),
      url("assets/hero-tractor.jpg") 65% 50% / cover no-repeat;
  }

  .commercial-banner__content {
    padding: 22px 18px 76px;
  }

  .commercial-banner h1 {
    max-width: 310px;
    font-size: 29px;
  }

  .commercial-banner__actions .button {
    min-height: 39px;
    padding-inline: 11px;
    font-size: 11px;
  }

  .commercial-banner__facts {
    padding-inline: 18px;
  }

  .commercial-banner__facts li:nth-child(2) {
    display: none;
  }

  .catalog__heading {
    display: block;
  }

  .catalog__result {
    margin-top: 8px;
  }

  .sort-control span {
    display: none;
  }

  .sort-control {
    padding-left: 8px;
  }

  .product-card__image {
    aspect-ratio: 1.05 / 1;
  }

  .product-card__body {
    padding: 9px;
  }

  .product-card h3 {
    min-height: 34px;
    font-size: 12px;
  }

  .product-card__compatibility {
    min-height: 25px;
    font-size: 9px;
  }

  .product-card__price strong {
    font-size: 15px;
  }

  .product-card__actions .button {
    min-height: 34px;
    padding-inline: 5px;
    font-size: 9px;
  }
}

@media (max-width: 340px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card__image {
    aspect-ratio: 1.4 / 1;
  }

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

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