/* Shop page. Tokens come from styles.css, buttons and nav from home.css. */
.shop { padding-top: 56px; padding-bottom: 120px; }
.shop-head { display: grid; gap: 8px; margin-bottom: 32px; }
.shop-head h1 { margin: 0; font-weight: 750; font-variation-settings: "opsz" 96; font-size: clamp(40px, 6vw, 64px); letter-spacing: -0.04em; line-height: 1; }
.shop-head p { margin: 0; color: var(--muted); font-size: 18px; }
.nav .links a[aria-current="page"] { color: var(--text); }

button.btn { font-family: var(--sans); font-weight: 600; cursor: pointer; }
button.btn:disabled { opacity: .6; cursor: progress; }

.notice { margin: 0 0 24px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); font-size: 15px; }

.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.product { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); background: var(--panel); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; min-width: 0; }
.p-art {
  position: relative; display: grid; place-items: center; border-right: 1px solid var(--line);
  background: radial-gradient(ellipse 60% 50% at 50% 60%, var(--stage-glow), transparent 70%), var(--bg-2);
}
.p-art svg { width: 62%; height: auto; fill: none; stroke: var(--text); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.p-tag { position: absolute; top: 12px; left: 12px; font: 10.5px var(--mono); color: var(--on-accent); background: var(--accent); border-radius: 99px; padding: 3px 10px; }
.p-body { padding: 22px 22px 22px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.p-body h2 { margin: 0; font-weight: 700; font-size: 24px; letter-spacing: -0.025em; }
.p-body p { margin: 0; color: var(--muted); font-size: 15px; }
.p-price { font: 600 18px var(--mono); margin-top: 4px; }
.p-buy { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.p-buy .btn { padding: 10px 16px; font-size: 14px; }

.cart { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; border-top: 1px solid var(--line);
        background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(8px); }
.cart-in { display: flex; align-items: center; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
.cart-in > div { margin-right: auto; font-size: 15px; }
#cart-total { font-family: var(--mono); color: var(--muted); margin-left: 8px; }
.cart .btn { padding: 10px 16px; font-size: 14px; }

@media (max-width: 900px) { .products { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .product { grid-template-columns: minmax(0, 1fr); }
  .p-art { border-right: 0; border-bottom: 1px solid var(--line); aspect-ratio: 16 / 8; }
  .p-art svg { width: auto; height: 70%; }
}

.shop-custom { margin-top: 28px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
               padding: 20px 22px; border-radius: 20px; border: 1px dashed var(--line); background: var(--panel); }
.shop-custom div { color: var(--muted); }
.shop-custom b { color: var(--text); }
.shop-head p.shop-ship { font-size: 14px; }
.shop-ship a { color: var(--ink); }

/* product cards: photo on top, details below; 3 / 2 / 1 per row */
.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
.p-art { border-right: 0; border-bottom: 1px solid var(--line); aspect-ratio: 4 / 3; overflow: hidden; }
.p-art svg { width: auto; height: 62%; }
.p-art.has-photo { background: #fff; }
.p-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.product:hover .p-art img { transform: scale(1.03); }
.p-art .p-tag { z-index: 1; }
.p-note { position: absolute; left: 10px; right: 10px; bottom: 8px; font: 10px/1.35 var(--sans); color: #fff;
          background: rgba(10,10,10,.6); border-radius: 6px; padding: 4px 7px; }
.p-body { align-content: start; }
.p-body h2 { font-size: 21px; }
@media (max-width: 1000px) { .products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .products { grid-template-columns: minmax(0, 1fr); }
  .p-art { aspect-ratio: 4 / 3; }
  .p-art svg { height: 62%; }
}
