.muted { color: var(--muted); }
.shop-head { padding-block: 36px 12px; background: radial-gradient(ellipse at 30% 0%, rgba(47, 91, 208, 0.22), transparent 60%); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.filters input, .filters select, .cart input, .cart select {
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: inherit;
}
.filters input { flex: 1 1 260px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; padding-block: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.card .img { aspect-ratio: 5 / 7; background: var(--surface-2); display: grid; place-items: center; cursor: zoom-in; border: 0; padding: 0; width: 100%; font: inherit; color: inherit; }
.card .img:focus-visible { outline: 2px solid var(--gold-light); outline-offset: -2px; }
.card .img img { width: 100%; height: 100%; object-fit: contain; }
.card .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h3 { font: 700 0.95rem/1.3 var(--body); color: #fff; margin: 0; }
.card .var { font-size: 0.82rem; color: var(--muted); }
.card .price { font: 700 1.1rem var(--display); color: var(--gold-light); margin-top: auto; }
.card .btn { padding: 8px 12px; margin-top: 6px; text-align: center; border: 1px solid var(--gold); cursor: pointer; font: inherit; font-weight: 700; }
.card .btn[disabled] { opacity: 0.5; cursor: default; }
.pager { text-align: center; padding-bottom: 40px; }
.cart-btn { background: transparent; color: var(--gold-light); border: 1px solid var(--gold); border-radius: 8px; padding: 6px 12px; font: 700 0.95rem var(--body); cursor: pointer; }
.cart-btn span { background: var(--gold); color: #1a1405; border-radius: 99px; padding: 0 8px; margin-left: 4px; }
.cart { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--surface); border-left: 1px solid var(--line); z-index: 30; overflow-y: auto; padding: 18px; }
.cart[hidden], .scrim[hidden] { display: none; }
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 20; }
.cart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cart-head button { background: none; border: 0; color: var(--ink); font-size: 1.2rem; cursor: pointer; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.line small { color: var(--muted); }
.line button { background: none; border: 0; color: var(--muted); cursor: pointer; text-decoration: underline; padding: 0; font: inherit; }
.sum-row { display: flex; justify-content: space-between; padding: 4px 0; }
.sum-row.total { font-weight: 700; font-size: 1.15rem; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.cart label { display: block; margin: 10px 0 4px; color: var(--muted); font-size: 0.9rem; }
.cart .row { display: flex; gap: 8px; }
.cart .row input { flex: 1; min-width: 0; }
.cart .btn { width: 100%; margin-top: 14px; cursor: pointer; font: inherit; font-weight: 700; }
.note { font-size: 0.85rem; color: var(--muted); margin-top: 8px; }
.err { color: #ff9c9c; font-size: 0.9rem; }
.ok { color: #9fe3a8; font-size: 0.9rem; }

/* Phones: two cards per row, compact header, thumb-sized tap targets */
@media (max-width: 560px) {
  .site-header .wrap { padding-block: 6px; gap: 8px; }
  .brand span { display: none; }
  .brand img { width: 44px; }
  .nav { gap: 12px; flex-wrap: nowrap; align-items: center; }
  .nav a { font-size: 0.9rem; white-space: nowrap; }
  .cart-btn { padding: 8px 12px; min-height: 40px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-block: 14px; }
  .card h3 { font-size: 0.82rem; }
  .card .var { font-size: 0.74rem; }
  .card .price { font-size: 1rem; }
  .card .btn { padding: 10px 8px; font-size: 0.9rem; min-height: 40px; }
  .shop-head { padding-block: 22px 8px; }
  .shop-head h1 { font-size: 1.7rem; }
  .filters input, .filters select { flex: 1 1 100%; min-height: 44px; }
  .cart { padding: 14px; }
}
.cart-head button { min-width: 44px; min-height: 44px; }
.line button { min-height: 36px; padding: 6px 4px; }
.cart input, .cart select { min-height: 44px; }
