.catalog-search-card {
  padding: 18px;
  border-radius: 22px;
}

.catalog-search-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  min-height: 56px;
  border-radius: 16px;
  border: 1px solid var(--color-line);
  background: rgba(0, 0, 0, 0.25);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.catalog-search-wrap:focus-within {
  border-color: rgba(59, 157, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(59, 157, 255, 0.16);
}

.catalog-search-wrap svg {
  width: 20px;
  height: 20px;
  color: var(--color-muted);
  flex-shrink: 0;
}

.catalog-search {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 16px;
  outline: none;
}

.catalog-search::placeholder {
  color: rgba(255, 255, 255, 0.36);
}

.catalog-search::-webkit-search-cancel-button {
  filter: invert(1);
  cursor: pointer;
}

.catalog-meta {
  margin-top: 12px;
  padding: 0 4px;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 600;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 26px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.catalog-status {
  grid-column: 1 / -1;
  padding: 64px 20px;
  text-align: center;
  border: 1px dashed var(--color-line);
  border-radius: 24px;
  color: var(--color-muted);
  font-weight: 600;
}

.catalog-status[hidden] {
  display: none;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  animation: reveal 0.5s var(--ease) both;
}

.product-card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
}

.product-card-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #0b0e14;
  overflow: hidden;
  border-bottom: 1px solid var(--color-line);
}

.product-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.product-card:hover .product-card-photo img {
  transform: scale(1.06);
}

.product-card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(13, 16, 23, 0.55));
  pointer-events: none;
}

.product-card-photo.is-empty {
  display: grid;
  place-items: center;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 600;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.025) 0 10px, transparent 10px 20px),
    #0b0e14;
}

.product-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
}

.product-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 20px 14px;
  flex: 1;
}

.product-card-body h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  transition: color var(--transition);
}

.product-card:hover .product-card-body h2 {
  color: #9cd0ff;
}

.product-card-body p {
  margin: 0;
  color: var(--color-muted);
  font-size: 14.5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px 20px;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.product-price small {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.add-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 12px 24px -12px rgba(59, 157, 255, 0.9);
  transition: transform var(--transition), box-shadow var(--transition);
}

.add-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -12px rgba(59, 157, 255, 1);
}

.add-btn svg {
  width: 18px;
  height: 18px;
}

.add-btn.is-added {
  background: rgba(52, 211, 153, 0.18);
  border-color: rgba(52, 211, 153, 0.4);
  color: #8ff0c8;
  box-shadow: none;
}

/* скелетоны */

.skeleton-card {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--color-line);
  background: var(--surface);
}

.skeleton-card .ph {
  aspect-ratio: 4 / 3;
}

.skeleton-card .ln {
  height: 14px;
  border-radius: 8px;
  margin: 0 20px;
}

.skeleton-card .ln + .ln {
  margin-top: 10px;
}

.skeleton-card .body {
  padding: 20px 0;
}

@media (max-width: 980px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .cart-label {
    display: none;
  }

  .cart-btn {
    padding: 0 12px;
  }
}
