/* Available Plants cards and results layout.
   Shared filter controls remain in /css/catalogue-filters.css. */

.available-shop-page {
  --available-ink: #153f23;
  --available-green: #6d9464;
  --available-green-dark: #557c4f;
  --available-sage: #e4ebdc;
  --available-sage-selected: #edf3e7;
  --available-cream: #fbf8ef;
  --available-paper: #fffefa;
  --available-image: #e1e7d8;
  --available-border: #ccd6c5;
  --available-muted: #687266;
  --available-reduced: #a86518;
  --available-reduced-surface: #f5e6cc;
}

.available-shop-page .available-editorial-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.available-shop-page .shop-editorial-card {
  min-width: 0;
  border: 1px solid var(--available-border);
  border-radius: 20px;
  background: var(--available-cream);
  box-shadow: 0 12px 28px rgba(21, 63, 35, .07);
  container-type: inline-size;
}

.available-shop-page .shop-editorial-card:hover {
  box-shadow: 0 18px 38px rgba(21, 63, 35, .12);
}

.available-shop-page .shop-card-image {
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at 50% 42%, rgba(109, 148, 100, .2), transparent 36%),
    linear-gradient(145deg, var(--available-cream), var(--available-image));
}

.available-shop-page .shop-card-image:focus-visible,
.available-shop-page .shop-editorial-card h3 a:focus-visible,
.available-shop-page .plant-card-actions .button:focus-visible {
  outline: 3px solid rgba(85, 124, 79, .42);
  outline-offset: 3px;
}

.available-shop-page .shop-image-badge,
.available-shop-page .shop-image-stock-badge {
  position: absolute;
  top: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 254, 250, .44);
  border-radius: 12px;
  background: rgba(21, 63, 35, .92);
  color: #fffefa;
  font-size: .72rem;
  font-weight: 850;
  line-height: 1.2;
  box-shadow: 0 4px 14px rgba(21, 63, 35, .18);
  backdrop-filter: blur(7px);
}

.available-shop-page .shop-image-badge {
  left: 14px;
}

.available-shop-page .shop-image-stock-badge {
  right: 14px;
  max-width: calc(100% - 138px);
  text-align: right;
}

.available-shop-page .shop-editorial-card .plant-card-body {
  padding: 22px;
}

.available-shop-page .shop-card-status-row {
  min-height: 32px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.available-shop-page .plant-badge.available {
  background: #dcebd8;
  color: var(--available-ink);
}

.available-shop-page .shop-reduction-badge {
  width: auto;
  margin: 0;
  border-color: #d6a450;
  border-radius: 10px;
  background: var(--available-reduced-surface);
  color: #704714;
}

.available-shop-page .shop-editorial-card h3 {
  margin: 15px 0 14px;
  color: var(--available-ink);
  font-size: clamp(1.35rem, 2.1vw, 1.65rem);
  line-height: 1.14;
  overflow-wrap: anywhere;
}

.available-shop-page .shop-card-meta {
  gap: 10px;
  margin: 0;
}

.available-shop-page .shop-card-meta span {
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 9px;
  color: var(--available-muted);
  font-size: .84rem;
  line-height: 1.45;
}

.available-shop-page .shop-card-meta svg {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--available-green-dark);
}

.available-shop-page .shop-price-row {
  min-width: 0;
  align-items: center;
  margin-top: 20px;
  padding: 17px 0;
  border-color: rgba(85, 124, 79, .22);
}

.available-shop-page .shop-price-row > div {
  min-width: 0;
}

.available-shop-page .shop-price-row > div > span {
  color: var(--available-muted);
  font-size: .74rem;
  font-weight: 700;
}

.available-shop-page .shop-price-row > div > strong,
.available-shop-page .shop-card-price-values strong {
  margin-top: 3px;
  color: var(--available-ink);
  font-size: 1.62rem;
  font-weight: 900;
  line-height: 1.05;
  white-space: nowrap;
}

.available-shop-page .shop-card-price-values {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 3px;
}

.available-shop-page .shop-card-price-values del {
  margin: 0;
  color: var(--available-muted);
  font-size: .82rem;
  font-weight: 650;
  text-decoration-thickness: 1.5px;
}

.available-shop-page .shop-card-price-values del + strong {
  margin: 0;
  color: var(--available-reduced);
}

.available-shop-page .shop-care-note {
  min-width: 0;
  max-width: 122px;
  align-items: center;
  justify-content: flex-end;
  color: var(--available-ink);
  font-size: .72rem;
  line-height: 1.35;
}

.available-shop-page .shop-care-note svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.available-shop-page .shop-editorial-card .plant-card-actions {
  display: block;
  margin-top: auto;
  padding-top: 20px;
}

.available-shop-page .shop-editorial-card .plant-card-actions .button {
  width: 100%;
  min-height: 46px;
  padding: 11px 16px;
  border-radius: 13px;
  background: var(--available-green);
  color: var(--available-paper);
  font-weight: 850;
  line-height: 1.3;
  text-align: center;
}

.available-shop-page .shop-editorial-card .plant-card-actions .button:hover {
  background: var(--available-green-dark);
}

@media (min-width: 1450px) {
  .available-shop-page .available-editorial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .available-shop-page .available-editorial-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 350px) {
  .available-shop-page .shop-price-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .available-shop-page .shop-care-note {
    max-width: none;
    justify-content: flex-start;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .available-shop-page .shop-editorial-card,
  .available-shop-page .shop-card-image img {
    transition-duration: .001ms !important;
  }

  .available-shop-page .shop-editorial-card:hover,
  .available-shop-page .shop-editorial-card:hover .shop-card-image img {
    transform: none;
  }
}
