.product-catalog {
  padding: 2.5rem 0 4rem;
}

.catalog-category-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--wood-dark);
}

.catalog-category-menu {
  margin-bottom: 0;
}

.catalog-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}

.catalog-search-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.9375rem;
  color: var(--wood);
}

.catalog-search-input {
  width: 15rem;
  max-width: 72vw;
  margin: 0;
  padding: 0 0 0.1rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--wood-dark);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(139, 111, 92, 0.35);
  border-radius: 0;
}

.catalog-search-input::placeholder {
  color: rgba(139, 111, 92, 0.5);
  font-weight: 500;
}

.catalog-search-input:focus {
  outline: none;
  border-bottom-color: var(--pink-deep);
}

.catalog-search-action {
  padding: 0;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--wood);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.catalog-search-action:hover {
  color: var(--pink-deep);
}

button.catalog-search-action {
  appearance: none;
}

.catalog-sort {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 0.75rem;
  width: 100%;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}

.catalog-sort-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.catalog-sort-list > li {
  display: inline-flex;
  align-items: center;
}

.catalog-sort-list > li:not(:last-child)::after {
  content: "·";
  margin: 0 0.45rem;
  color: rgba(139, 111, 92, 0.45);
  pointer-events: none;
}

.catalog-sort-link {
  color: var(--wood);
  text-decoration: none;
  white-space: nowrap;
}

.catalog-sort-link:hover {
  color: var(--pink-deep);
}

.catalog-sort-link.is-active {
  font-weight: 700;
  color: var(--wood-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.catalog-sort-link.is-disabled {
  color: rgba(139, 111, 92, 0.45);
  cursor: not-allowed;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.product-card-link .product-card {
  height: 100%;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(139, 111, 92, 0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.product-card-image {
  position: relative;
  aspect-ratio: 1;
  background: var(--cream);
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-image-guest-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #e5e2de;
}

.product-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 3.25rem;
}

.product-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 6px;
}

.product-badge-sale {
  background: var(--pink-deep);
  color: var(--white);
}

.product-badge-soldout {
  background: var(--wood-dark);
  color: var(--white);
}

.product-card-body {
  padding: 1rem 1.125rem 1.125rem;
}

.product-card-name {
  margin: 0 0 0.625rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-prices {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.product-prices-compact {
  gap: 0.25rem;
}

.price-row {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  font-size: 0.8125rem;
}

.product-prices-compact .price-row {
  font-size: 0.75rem;
}

.price-label {
  color: var(--wood);
  font-weight: 500;
  min-width: 6.5rem;
}

.price-value {
  font-weight: 700;
  color: var(--wood-dark);
}

.price-guest-hint {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--pink-deep);
  white-space: nowrap;
}

.product-prices-compact .price-guest-hint {
  font-size: 0.6875rem;
}

.price-consumer {
  font-size: 0.9375rem;
}

.product-prices-compact .price-consumer {
  font-size: 0.8125rem;
}

.price-wholesale {
  color: var(--pink-deep);
}

.price-row-wholesale .price-label {
  font-weight: 600;
}

.price-was {
  color: var(--wood);
  text-decoration: line-through;
  opacity: 0.7;
  font-size: 0.75rem;
}

.price-row-soldout .price-label {
  color: var(--wood-dark);
  font-weight: 700;
}

.product-card-soldout {
  opacity: 0.75;
}

.catalog-guest-notice {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: min(96vh, 44rem);
  margin: 1.5rem 0 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  background: rgba(250, 246, 240, 0.95);
  border: 1px solid rgba(139, 111, 92, 0.18);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(61, 48, 40, 0.06);
}

.product-catalog:has(.catalog-guest-notice) {
  min-height: calc(200vh - 24rem);
}

.catalog-guest-notice-lead {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--wood-dark);
  line-height: 1.5;
}

.catalog-guest-notice-desc {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--wood);
}

.catalog-guest-notice-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.catalog-empty,
.catalog-back {
  text-align: center;
  color: var(--wood);
}

.catalog-back a {
  font-weight: 600;
  color: var(--pink-deep);
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
  }

  .price-label {
    min-width: auto;
    width: 100%;
  }
}
