.product-grid {
  --grid-spacing: var(--pico-spacing);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card hgroup {
  margin-bottom: var(--pico-spacing);
}

.product-name {
  margin-bottom: 0;
}

.product-weight {
  color: var(--pico-muted-color);
  font-size: 0.875rem;
}

.product-description {
  flex: 1;
  color: var(--pico-color);
  line-height: 1.6;
}

.product-footer {
  border-top: 1px solid var(--pico-muted-border-color);
  margin-top: var(--pico-spacing);
  padding-top: var(--pico-spacing);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--pico-spacing);
}

.product-footer:has(.stepper) {
  padding-top: 25px;
  padding-bottom: 25px;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--pico-primary);
}

.product-footer .add-to-cart-btn {
  width: auto;
}

.cart-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.qty-input {
  width: 3.5rem;
  text-align: center;
  margin: 0;
}

/* ── Stepper ───────────────────────────── */
.stepper {
  display: inline-flex;
  align-items: center;
}

.stepper-btn {
  background: none;
  border: 1px solid var(--pico-primary);
  padding: 0.4rem 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pico-primary);
  cursor: pointer;
  line-height: 1;
}

.stepper-btn:first-child {
  border-radius: var(--pico-border-radius) 0 0 var(--pico-border-radius);
}

.stepper-btn:last-child {
  border-radius: 0 var(--pico-border-radius) var(--pico-border-radius) 0;
}

.stepper-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.stepper-btn:hover:not(:disabled) {
  background: var(--pico-primary-hover-background);
  color: var(--pico-primary-inverse);
}

.stepper-qty {
  padding: 0.4rem 0.75rem;
  font-weight: 600;
  min-width: 1.5rem;
  text-align: center;
}

.tagline {
  color: var(--pico-muted-color);
  margin-bottom: var(--pico-spacing);
  font-size: 1.1rem;
}
