.shop-hero {
  padding: clamp(36px, 6vw, 72px) 0 clamp(20px, 3vw, 32px);
  display: grid; gap: 12px;
}
.shop-hero h1 { max-width: 720px; }
.shop-hero p { max-width: 520px; color: var(--muted); }

.shop-layout {
  display: grid; gap: 28px;
  padding-bottom: 60px;
  align-items: start;
}

.product-list { display: grid; gap: 16px; }
.product-item {
  display: grid; gap: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform .4s var(--ease), border-color .3s var(--ease);
}
.product-item:hover { transform: translateY(-3px); border-color: rgba(255, 31, 46, 0.35); }
.product-item .media {
  aspect-ratio: 5 / 4;
  border-radius: 12px;
  background: var(--surface-2) center/cover no-repeat;
  position: relative;
  overflow: hidden;
}
.product-item .media .badge {
  position: absolute; top: 10px; left: 10px; z-index: 1;
}
.product-item h3 { font-size: 1.1rem; }
.product-item .meta { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; gap: 8px; }
.product-item .price { font-family: var(--display); font-size: 1.2rem; }
.product-item .btn { width: 100%; }

.checkout-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  height: fit-content;
}
.checkout-card h2 { margin-bottom: 4px; font-size: 1.3rem; }
.checkout-card form { display: grid; gap: 10px; margin-top: 14px; }

.suggestions { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.suggestions li {
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface-2); cursor: pointer; font-size: 0.88rem; color: var(--muted);
}
.suggestions li:hover { background: var(--surface-3); color: #fff; }

.cart-preview { display: grid; gap: 8px; margin: 10px 0; }
.cart-line {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface-2); font-size: 0.88rem;
}
.cart-line .qty { display: inline-flex; align-items: center; gap: 6px; }
.cart-line button { background: transparent; border: 1px solid var(--border); color: var(--text); width: 26px; height: 26px; border-radius: 6px; cursor: pointer; }
.cart-line button:hover { background: var(--surface-3); }

.total-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; border-radius: 12px;
  background: rgba(255, 31, 46, 0.08); border: 1px solid rgba(255, 31, 46, 0.22);
  font-family: var(--display); font-size: 1.05rem;
}

.empty-state {
  text-align: center; padding: 50px 20px;
  border: 1px dashed var(--border); border-radius: var(--radius);
  background: var(--surface);
}
.empty-state h3 { margin-bottom: 6px; }
.empty-state p { color: var(--muted); }

.checkout-card[hidden] { display: none; }

/* Product detail modal */
.product-modal-body { display: grid; gap: 18px; }
.pm-gallery { display: grid; gap: 10px; }
.pm-main {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: var(--surface-2);
  overflow: hidden; position: relative;
}
.pm-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.pm-thumb {
  width: 62px; height: 50px; padding: 0; border-radius: 10px; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--border); cursor: pointer;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.pm-thumb:hover { transform: translateY(-1px); }
.pm-thumb.active { border-color: var(--red); box-shadow: 0 0 0 2px rgba(255,31,46,0.3); }
.pm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-info { display: flex; flex-direction: column; }
.pm-price {
  font-family: var(--display); font-weight: 700;
  font-size: 1.8rem; margin-top: 16px;
  background: linear-gradient(135deg, var(--red), #ff7a85);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pm-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.pm-actions .btn { flex: 1; min-width: 140px; }

@media (min-width: 720px) {
  .product-modal-body { grid-template-columns: 1.1fr 1fr; }
}

@media (min-width: 640px) {
  .product-list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .product-list { grid-template-columns: repeat(3, 1fr); }
  .shop-layout.has-cart { grid-template-columns: 2.1fr 1fr; }
  .shop-layout.has-cart .checkout-card { position: sticky; top: 100px; }
}
