.catalog {
  padding-top: clamp(56px, 7vw, 100px);
  padding-bottom: clamp(64px, 8vw, 112px);
  color: #17231b;
  background: #fff;
  scroll-margin-top: 100px;
}

.catalog h2 {
  margin: 0;
  font-size: clamp(34px, 4.3vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.catalog h2 > span {
  color: #147024;
}

.catalog .product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 18px;
  margin-top: 36px;
}

.catalog .product-card {
  display: flex;
  flex-direction: column;
  min-height: clamp(400px, 35vw, 510px);
  padding: 22px;
  overflow: hidden;
  border: 1px solid #e1e5e2;
  border-radius: 22px;
  background: radial-gradient(ellipse at 50% 55%, #fff, transparent 70%), #f3f5f3;
  cursor: default;
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease;
}

.catalog .product-card:hover,
.catalog .product-card:focus-within {
  border-color: #91af98;
  background-color: #edf1ed;
}

.product-open {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 0;
  text-align: center;
}

.catalog .product-image {
  display: grid;
  flex: 1;
  place-items: center;
  width: 100%;
  min-height: 180px;
  margin: 12px 0;
  overflow: visible;
  background: transparent;
}

.catalog .product-image img {
  width: 100%;
  height: 220px;
  padding: 0;
  object-fit: contain;
  filter: drop-shadow(0 10px 8px rgba(23, 35, 27, 0.12));
}

.catalog .product-card:hover img {
  transform: none;
}

.catalog .product-name {
  display: -webkit-box;
  min-height: 4.05em;
  margin: 12px 0 10px;
  overflow: hidden;
  font-size: clamp(14px, 1.15vw, 18px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-bottom {
  display: grid;
  margin-top: auto;
}

.catalog .product-price {
  display: inline-block;
  margin: 0;
  padding: 7px 12px;
  border-radius: 5px;
  color: #fff;
  background: #224323;
  font:
    500 clamp(18px, 1.6vw, 22px) 'DM Mono',
    monospace;
  font-variant-numeric: tabular-nums;
}

.product-pair-price {
  display: block;
  margin-top: 8px;
  color: #224323;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.cart-drawer .cart-price-breakdown {
  margin: 8px 0;
  color: #59665c;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.product-add,
.catalog-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid #147024;
  border-radius: 26px;
  color: #fff;
  background: #147024;
  font-size: 13px;
  font-weight: 700;
  transition: background-color 0.2s ease;
}

.product-add:hover,
.catalog-all:hover {
  background: #105b1d;
}

.product-add {
  border-color: #224323;
  background: #224323;
}

.product-add:not(:disabled):hover,
.product-add:not(:disabled):focus-visible {
  border-color: #19351b;
  background: #19351b;
}

.product-add:disabled {
  border-color: #dce4dc;
  color: #616b63;
  background: #edf0ed;
}

.catalog .catalog-more {
  margin-top: 40px;
}

.catalog-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 32px 0;
  color: #5a6c5f;
  line-height: 1.6;
}

.catalog-all {
  min-height: 52px;
  padding-inline: 28px;
}

.catalog button:focus-visible,
.catalog a:focus-visible,
.quick-view button:focus-visible {
  outline: 2px solid #147024;
  outline-offset: 4px;
}

.product-add:focus-visible,
.catalog-all:focus-visible,
.quick-add:focus-visible {
  outline-color: #fff;
  outline-offset: -5px;
}

.quick-view {
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border: 1px solid #dce4de;
  border-radius: 20px;
  color: #17231b;
  background: #fff;
}

.quick-image {
  height: 420px;
  background: #f4f6f4;
}

.quick-image img {
  padding: 24px;
  object-fit: contain;
}

.quick-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #dce4de;
  border-radius: 50%;
  background: #fff;
  line-height: 1;
}

.quick-info {
  padding: 32px;
}

.quick-info h2 {
  font-size: 28px;
  line-height: 1.2;
}

.quick-price {
  color: #17231b;
  font-size: 24px;
}

.quick-add {
  justify-content: center;
  min-height: 48px;
  border-color: #224323;
  border-radius: 26px;
  color: #fff;
  background: #224323;
  font-size: 13px;
}

.quick-add:not(:disabled):hover,
.quick-add:not(:disabled):focus-visible {
  border-color: #19351b;
  background: #19351b;
  transform: none;
}

.quick-add:disabled {
  border-color: #dce4dc;
  color: #616b63;
  background: #edf0ed;
}

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

@media (max-width: 850px) {
  .catalog {
    scroll-margin-top: 130px;
  }
}

@media (max-width: 600px) {
  .catalog .product-grid {
    gap: 18px 12px;
    margin-top: 28px;
  }

  .catalog .product-card {
    min-height: 350px;
    padding: 12px;
  }

  .catalog .product-image {
    min-height: 130px;
  }

  .catalog .product-image img {
    height: 150px;
  }

  .product-add {
    min-height: 44px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .catalog-all {
    gap: 14px;
    padding-inline: 20px;
    font-size: 12px;
  }

  .quick-view {
    width: calc(100% - 24px);
  }

  .quick-image {
    height: 220px;
  }

  .quick-info {
    padding: 24px;
  }

  .quick-info h2 {
    font-size: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .catalog .product-card,
  .catalog .product-image img,
  .product-add,
  .catalog-all,
  .quick-view {
    transition: none;
  }
}
