.shop-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 2.5rem;
  align-items: start;
}

.product-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

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

.product-body {
  padding: 1.5rem;
}

.product-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.price {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--blue);
  white-space: nowrap;
}

.product-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.8rem;
}

.product-controls label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

.product-controls input {
  width: 72px;
}

.order-panel {
  position: sticky;
  top: 96px;
  padding: 1.75rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

#cart-items {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

#cart-items li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--line);
}

.remove {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.remove:hover {
  color: #c62828;
}

.order-total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 960px) {
  .shop-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .order-panel {
    position: static;
  }
}

@media (max-width: 560px) {
  .product-card {
    grid-template-columns: 1fr;
  }

  .product-card img {
    aspect-ratio: 4 / 3;
  }
}

.product-card.sold-out img {
  filter: grayscale(1);
  opacity: 0.6;
}

.product-card.sold-out .price {
  color: var(--muted);
}

.sold-out-badge {
  display: inline-block;
  margin: 0.25rem 0 0;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.design-note {
  margin: 0;
  font-weight: 600;
  color: var(--muted);
}

.product-placeholder {
  display: grid;
  place-items: center;
  min-height: 180px;
  height: 100%;
  padding: 1rem;
  background: var(--yellow-soft);
  color: var(--blue-deep);
  font-family: var(--font-head);
  font-weight: 700;
  text-align: center;
}

.price-soon {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

@media (max-width: 560px) {
  .product-placeholder {
    aspect-ratio: 4 / 3;
  }
}

.stock-left {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue);
}

.design-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.design-images figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.design-images img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.design-images figcaption {
  padding: 0.6rem 1rem;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--blue-deep);
  text-align: center;
}

.product-card select {
  max-width: 100%;
}
