.shop-section {
  background:
    radial-gradient(circle at 8% 12%, rgba(184,115,104,.12), transparent 32rem),
    linear-gradient(180deg, #fffdf9, #fbf5ee);
}

.shop-heading-row {
  display: flex;
  gap: 28px;
  align-items: end;
  justify-content: space-between;
}

.shop-heading-row .section-head { margin-bottom: 24px; }

.shop-store-link {
  margin-bottom: 30px;
  background: var(--sage);
  color: white;
}

.shop-store-link:hover { background: var(--sage-dark); }

.shop-provider-note {
  margin-bottom: 26px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.78);
  color: var(--muted);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.shop-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.shop-card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eadfd8;
}

.shop-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.shop-card:hover .shop-card-media img { transform: scale(1.035); }

.shop-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.shop-card-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.shop-stock {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f3ece7;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
}

.shop-price {
  color: var(--rose-dark);
  font-size: 1.08rem;
}

.shop-card h3 {
  margin: .15rem 0 .5rem;
  font-size: 1.3rem;
  line-height: 1.2;
}

.shop-card p {
  flex: 1;
  color: var(--muted);
}

.shop-buy {
  width: 100%;
  margin-top: 16px;
  border: 0;
  cursor: pointer;
}

.shop-buy:disabled,
.shop-cart .button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.shop-cart {
  margin-top: 28px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow);
}

.shop-cart-head,
.shop-cart-footer,
.shop-cart-row {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.shop-cart-head {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.shop-cart-head h3 { margin: .1rem 0 0; }

.shop-cart-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.shop-cart-row > div:first-child {
  display: grid;
  gap: 2px;
}

.shop-cart-row span,
.shop-cart-footer p,
.shop-cart-empty {
  color: var(--muted);
  font-size: .9rem;
}

.shop-cart-empty { margin: 18px 0; }

.shop-quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.shop-quantity button {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
}

.shop-quantity button:disabled {
  cursor: not-allowed;
  opacity: .35;
}

.shop-quantity span {
  min-width: 30px;
  color: var(--ink);
  text-align: center;
  font-weight: 750;
}

.shop-cart-footer {
  align-items: end;
  padding-top: 20px;
}

.shop-cart-footer p {
  max-width: 560px;
  margin: 0;
}

.shop-message {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #eef5f0;
  color: var(--sage-dark);
}

.shop-message[data-kind="error"] {
  background: #fff0ed;
  color: #7b3f37;
}

@media (max-width: 980px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-heading-row { align-items: start; }
}

@media (max-width: 620px) {
  .shop-grid { grid-template-columns: 1fr; }
  .shop-heading-row,
  .shop-cart-footer {
    align-items: stretch;
    flex-direction: column;
  }
  .shop-store-link { margin: 0 0 24px; }
  .shop-cart { padding: 20px; }
  .shop-cart-row { align-items: flex-start; }
}
