/* Redesign PR3 — shop category pills, stand chips, home-aligned product cards */

.shop-cat-pills {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin: 0 0 0.85rem;
}

.shop-cat-pill {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid #dfe8e1;
  color: #0f1a14;
  padding: 0.65rem 1.125rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
}

.shop-cat-pill:hover {
  border-color: #218577;
  color: #1a6b60;
}

.shop-cat-pill.is-active {
  background: #12302a;
  border-color: #12302a;
  color: #fff;
}

.shop-stand-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.shop-stand-chips[hidden] {
  display: none !important;
}

.stand-chip {
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.86rem;
  font-weight: 650;
}

.stand-chip.is-klar.is-active {
  background: var(--lemon, #f4ef8b);
  border-color: color-mix(in srgb, var(--red, #c62828) 35%, var(--lemon, #f4ef8b));
  color: var(--red, #c62828);
}

/* Shop cards: equal height, home-like body */
.shop-layout .product-grid {
  align-items: stretch;
}

.shop-layout .product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 20px;
  border: 1px solid #e3ebe5;
  background: #fff;
  box-shadow: none;
}

.shop-layout .product-card .thumb {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: #fff;
}

.shop-layout .product-card-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  overflow: hidden;
  margin-top: 0.65rem;
}

.shop-layout .product-card-chips .chip,
.shop-layout .product-card-chips .pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
  background: #f1f4f2;
  color: #3f5247;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-layout .product-card-chips .chip-cond,
.shop-layout .product-card-chips .product-card-cond {
  background: #e7f3ef;
  color: #1a6b60;
}

.shop-layout .product-card-title h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
  line-height: 1.3;
  margin: 0.35rem 0 0;
  font-size: 0.98rem;
}

.shop-layout .product-card-price {
  margin-top: 0.45rem;
}

.shop-layout .product-card-price .price {
  font-size: 1.25rem;
  font-weight: 800;
}

.shop-layout .product-card-exchange-line {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: #3f5247;
}

.shop-layout .product-card-footer {
  margin-top: auto;
  padding-top: 0.75rem;
}

.shop-layout .product-card-brand,
.shop-layout .product-card-avail,
.shop-layout .product-card .price-was-inline,
.shop-layout .product-card .price-save-chip {
  display: none !important;
}

/* Keep 2-col shop grid on phone (override styles.css 360px → 1fr) */
@media (max-width: 899px) {
  .shop-layout .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.75rem;
  }
}
