/* FM Visual Polish — designer rebuild per CEO 'wizualnie ma być topka, modele lepiej wyeksponowane'.
   Loaded after fm-pro main CSS. Targets sklep grid + PDP hero + product cards.
*/

/* ─────────────────────────────────────────────────────────────
   1. PRODUCT CARDS — premium spacing, hover lift, image zoom
   ───────────────────────────────────────────────────────────── */
.product-card,
.shop-product-card,
[data-product-card] {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.03) 0%, rgba(0,0,0,.5) 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.4,0,.2,1), border-color .3s, box-shadow .3s;
  cursor: pointer;
}
.product-card:hover,
.shop-product-card:hover,
[data-product-card]:hover {
  transform: translateY(-4px);
  border-color: rgba(216,255,98,.35);
  box-shadow: 0 20px 60px rgba(216,255,98,.08), 0 8px 24px rgba(0,0,0,.45);
}
.product-card img,
.shop-product-card img,
[data-product-card] img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: radial-gradient(circle at 50% 30%, #1a1a1a 0%, #050505 80%);
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.product-card:hover img,
.shop-product-card:hover img,
[data-product-card]:hover img {
  transform: scale(1.06);
}

/* ─────────────────────────────────────────────────────────────
   2. SKLEP GRID — premium 3-col desktop, 2-col tablet, 1-col mobile
   ───────────────────────────────────────────────────────────── */
.shop-grid,
.products-grid,
[data-shop-grid] {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding: 32px 16px;
  max-width: 1280px;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .shop-grid, .products-grid, [data-shop-grid] {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

/* ─────────────────────────────────────────────────────────────
   3. PDP HERO — image gallery premium
   ───────────────────────────────────────────────────────────── */
.product-gallery,
.pdp-gallery,
.gallery {
  position: relative;
  background: radial-gradient(circle at 30% 20%, #1a1a1a 0%, #0a0a0a 50%, #000 100%);
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: inset 0 0 80px rgba(216,255,98,.04);
}
.product-gallery img,
.pdp-gallery img,
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
}

/* ─────────────────────────────────────────────────────────────
   4. PDP HEADLINE — typography hierarchy fix
   ───────────────────────────────────────────────────────────── */
.product-detail h1,
.pdp h1,
main h1 {
  font: 700 clamp(38px, 6vw, 72px) / 1.02 'Bebas Neue', sans-serif !important;
  letter-spacing: .02em;
  margin-bottom: 12px;
}
.product-detail .price,
.pdp .price,
[data-fm-price] {
  font: 700 clamp(28px, 4vw, 42px) / 1 'Bebas Neue', sans-serif;
  color: #d8ff62;
  margin: 8px 0;
  letter-spacing: .02em;
}

/* ─────────────────────────────────────────────────────────────
   5. CTA BUTTONS — strong primary, subtle secondary
   ───────────────────────────────────────────────────────────── */
.btn-black,
.btn-primary,
.btn-buy,
button[type="submit"]:not(.btn-ghost) {
  padding: 16px 32px;
  background: linear-gradient(180deg, #d8ff62 0%, #b8e842 100%);
  color: #000;
  border: 0;
  border-radius: 999px;
  font: 700 13px/1 'Space Grotesk', sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-black:hover,
.btn-primary:hover,
.btn-buy:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(216,255,98,.35);
}

.btn-ghost {
  padding: 14px 28px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  border-radius: 999px;
  font: 600 13px/1 'Space Grotesk', sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-ghost:hover {
  border-color: rgba(216,255,98,.5);
  background: rgba(216,255,98,.06);
  color: #d8ff62;
}

/* ─────────────────────────────────────────────────────────────
   6. NAV — clean, high-contrast, mobile-collapsed
   ───────────────────────────────────────────────────────────── */
.nav-actions,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .nav-actions a {
    font-size: 12px;
    padding: 8px 12px;
  }
}

/* ─────────────────────────────────────────────────────────────
   7. HERO BLOCK — premium photo composition
   ───────────────────────────────────────────────────────────── */
.hero,
.hero-section,
[data-hero] {
  position: relative;
  min-height: 70vh;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
  overflow: hidden;
}
.hero::before,
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(216,255,98,.06) 0%, transparent 60%);
  pointer-events: none;
}

/* ─────────────────────────────────────────────────────────────
   8. SOCIAL PROOF / TRUST BAR — clean horizontal alignment
   ───────────────────────────────────────────────────────────── */
.trust-bar,
.proof-bar,
.cta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 32px;
  background: rgba(255,255,255,.02);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.trust-bar .item,
.proof-bar .item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.75);
  font: 600 13px/1.3 'Space Grotesk', sans-serif;
}

/* ─────────────────────────────────────────────────────────────
   9. RESPONSIVE — mobile-first guards
   ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .product-card,
  .shop-product-card { border-radius: 16px; }
  .shop-grid,
  .products-grid { grid-template-columns: 1fr; gap: 16px; padding: 16px 12px; }
  .product-gallery,
  .pdp-gallery { aspect-ratio: 1 / 1; border-radius: 16px; }
  .btn-black, .btn-primary, .btn-ghost { padding: 14px 22px; font-size: 12px; }
}

/* ─────────────────────────────────────────────────────────────
   10. FOCUS STATES — accessibility (WCAG AA)
   ───────────────────────────────────────────────────────────── */
*:focus-visible {
  outline: 2px solid #d8ff62;
  outline-offset: 2px;
  border-radius: 8px;
}

/* ─────────────────────────────────────────────────────────────
   11. SCROLLBAR — subtle, on-brand
   ───────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,.3); }
::-webkit-scrollbar-thumb { background: rgba(216,255,98,.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(216,255,98,.55); }

/* ─────────────────────────────────────────────────────────────
   12. PRODUCT BADGE (NEW, BESTSELLER, PRO)
   ───────────────────────────────────────────────────────────── */
.product-badge,
[data-badge] {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  background: rgba(216,255,98,.15);
  border: 1px solid rgba(216,255,98,.4);
  color: #d8ff62;
  font: 700 10px/1 'Space Grotesk', sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 999px;
  z-index: 2;
  backdrop-filter: blur(8px);
}

/* ─────────────────────────────────────────────────────────────
   13. PRICE DISPLAY — reduced visual noise
   ───────────────────────────────────────────────────────────── */
.price-old {
  color: rgba(255,255,255,.4);
  text-decoration: line-through;
  font-weight: 500;
  margin-right: 8px;
}
.price-new {
  color: #d8ff62;
  font-weight: 700;
}
