/* Sklep: karty produktów, filtry kategorii i układ strony sklepu */

/* ---------- siatka i karta produktu ---------- */
.product-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.product-grid--teaser { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-grid > * { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.product {
  --emblem-bg: var(--bg-2);
  position: relative; display: flex; flex-direction: column; min-height: 100%; background: var(--bg-2); color: var(--fg);
  transition: background-color 0.6s var(--ease-out), color 0.6s var(--ease-out);
}
.product--skeleton { min-height: 440px; background: linear-gradient(110deg, var(--bg-2) 30%, var(--bg-3) 50%, var(--bg-2) 70%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
.product:hover { --emblem-bg: var(--fg); background: var(--fg); color: #050505; }

.product__art { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; border-bottom: 1px solid var(--line); overflow: hidden; transition: border-color 0.6s; }
.product:hover .product__art { border-color: rgba(0, 0, 0, 0.18); }
.product__art::before {
  content: ''; position: absolute; inset: 0; opacity: 0.5;
  background-image: radial-gradient(currentColor 0.7px, transparent 0.9px); background-size: 14px 14px;
  mask-image: radial-gradient(70% 70% at 50% 50%, transparent 25%, #000 100%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, transparent 25%, #000 100%);
  opacity: 0.18;
}
.product__art .emblem { width: 52%; height: auto; max-height: 82%; transition: transform 0.9s var(--ease-out); position: relative; }
.product:hover .product__art .emblem { transform: scale(1.08) rotate(-2deg); }
.product__no { position: absolute; top: 16px; left: 18px; opacity: 0.55; }
.product__badge { position: absolute; top: 14px; right: 14px; }
.product:hover .product__badge { background: #050505; color: var(--fg); border-color: #050505; }

.product__body { flex: 1; display: grid; align-content: start; gap: 12px; padding: 24px 24px 8px; }
.product__name { font: 800 clamp(20px, 1.7vw, 26px)/1.05 var(--font-display); font-stretch: 78%; text-transform: uppercase; letter-spacing: 0.01em; }
.product__tagline { font-family: var(--font-serif); font-style: italic; font-weight: 300; font-size: 17px; line-height: 1.35; opacity: 0.8; }
.product__perks { display: grid; gap: 6px; margin-top: 8px; font-size: 13px; line-height: 1.45; opacity: 0.78; }
.product__perks li { position: relative; padding-left: 16px; }
.product__perks li::before { content: ''; position: absolute; left: 0; top: 0.65em; width: 8px; height: 1px; background: currentColor; }

.product__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 24px; }
.product__price { display: grid; line-height: 1.1; }
.product__price s { font-size: 12px; opacity: 0.5; }
.product__price strong { font: 800 clamp(22px, 1.9vw, 28px)/1 var(--font-display); font-stretch: 85%; font-variant-numeric: tabular-nums; }
.product .btn--primary { transition: color 0.5s var(--ease-out), border-color 0.5s var(--ease-out); }
.product:hover .btn--primary { background: #050505; color: var(--fg); border-color: #050505; }
.product:hover .btn--primary::before { background: var(--fg); }
.product:hover .btn--primary:hover { color: #050505; }
.btn.is-added { pointer-events: none; }

/* ---------- strona sklepu ---------- */
.shop-hero .page-hero__title { max-width: 12ch; }
.shop-trust { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 8px; }
.shop-trust li { display: inline-flex; align-items: center; gap: 10px; font: 500 11px/1.4 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-2); }
.shop-trust .icon { width: 16px; height: 16px; color: var(--fg); }

.shop-toolbar {
  position: sticky; top: var(--header-h); z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px 0; background: rgba(5, 5, 5, 0.86); border-block: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: top 0.7s var(--ease-out);
}
.header-hidden .shop-toolbar { top: 0; }
.shop-filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-block: 2px; }
.shop-filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border: 1px solid var(--line-2); border-radius: 999px;
  font: 600 11px/1 var(--font-display); font-stretch: 112%; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-2);
  transition: background-color 0.35s, color 0.35s, border-color 0.35s;
}
.chip:hover { border-color: var(--fg); color: var(--fg); }
.chip[aria-pressed='true'] { background: var(--fg); color: #050505; border-color: var(--fg); }
.chip small { font: 500 10px/1 var(--font-mono); opacity: 0.6; }
.shop-count { flex: none; color: var(--fg-3); }

.shop-section { margin-top: clamp(32px, 4vw, 64px); }
.shop-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding-block: 24px 20px; flex-wrap: wrap; }
.shop-section__head h2 { font-size: clamp(28px, 3.4vw, 54px); }
.shop-section__head p { color: var(--fg-3); max-width: 44ch; }
.shop-empty { padding: 80px 0; text-align: center; color: var(--fg-3); }
.shop-notice { display: grid; gap: 10px; margin-top: clamp(56px, 7vw, 100px); padding: 28px 30px; border: 1px solid var(--line-2); font-size: 14px; line-height: 1.65; color: var(--fg-2); }
.shop-notice strong { color: var(--fg); }
.shop-notice a { text-decoration: underline; text-underline-offset: 3px; color: var(--fg); }
.shop-banner { margin-bottom: 28px; }

@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 1279px) {
  .product-grid, .product-grid--teaser { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .product-grid, .product-grid--teaser { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product__foot { flex-direction: column; align-items: stretch; }
  .product__foot .btn { width: 100%; }
}
@media (max-width: 559px) {
  .product-grid, .product-grid--teaser { grid-template-columns: 1fr; }
  .product__art { aspect-ratio: 16 / 10; }
  .shop-count { display: none; }
}
