@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700;800&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --black: #050505;
  --white: #ffffff;
  --gray-900: #121212;
  --gray-800: #1e1e1e;
  --gray-700: #333333;
  --gray-600: #555555;
  --gray-500: #777777;
  --gray-400: #a0a0a0;
  --gray-300: #d4d4d4;
  --gray-200: #e8e8e8;
  --gray-100: #f4f4f4;
  --gray-50: #fafafa;

  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Space Mono', SFMono-Regular, Consolas, Menlo, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--white);
  color: var(--black);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  background-color: var(--white);
}

/* Subtelny filtr ziarna (lekki SVG filter, nie obrazek rastrowy) */
.grain-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9990;
  opacity: 0.035;
  mix-blend-mode: multiply;
}

/* Własny kursor na desktopie (difference) */
@media (hover: hover) and (pointer: fine) {
  body {
    cursor: default;
  }
  .custom-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background-color: var(--black);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
    mix-blend-mode: difference;
  }
  .custom-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    border: 1px solid var(--black);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), height 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, background-color 0.25s ease;
    mix-blend-mode: difference;
  }
  .cursor-hover .custom-cursor-ring {
    width: 64px;
    height: 64px;
    background-color: rgba(255, 255, 255, 0.95);
    border-color: transparent;
  }
  .cursor-hover .custom-cursor-dot {
    opacity: 0;
  }
}
@media (hover: none) or (pointer: coarse) {
  .custom-cursor-dot, .custom-cursor-ring {
    display: none !important;
  }
}

/* Typografia editorialna - mocna hierarchia, duże nagłówki, puste przestrzenie */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--black);
  line-height: 0.95;
}

.giant-heading {
  font-size: clamp(2.75rem, 14vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.88;
  text-transform: uppercase;
}

.sub-giant {
  font-size: clamp(2rem, 7vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.92;
}

/* Monospace dozwolony WYŁĄCZNIE dla parametrów technicznych (CAS, masa molowa, wzór sumaryczny) */
.font-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Banner RUO na górze */
.top-ruo-banner, .ruo-top-banner {
  background: var(--black);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 8px 16px;
  border-bottom: 1px solid var(--gray-800);
}

/* Górna belka z żywym łańcuchem peptydowym */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-200);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
}

.site-header.header-hidden {
  transform: translateY(-100%);
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
  text-decoration: none;
}

.brand-logo, .brand-wordmark {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.05em;
  display: inline-flex;
  align-items: baseline;
  color: var(--black);
  flex-shrink: 0;
}

.brand-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--black);
  margin: 0 1px;
}

/* Subtelna mikropajęczyna molekularna przy logo */
.spiderweb-container {
  width: 36px;
  height: 36px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#spiderweb-canvas {
  width: 36px;
  height: 36px;
  display: block;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  align-items: center;
  flex-shrink: 0;
  z-index: 10;
  margin-left: auto;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
}

.nav-item a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--gray-700);
  transition: color 0.15s ease;
  position: relative;
  padding: 6px 0;
}

.nav-item a:hover, .nav-item a.active {
  color: var(--black);
}

/* Przycisk menu mobilnego (hamburger) */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--black);
  width: 38px;
  height: 38px;
  padding: 9px 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.mobile-menu-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--black);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.mobile-menu-toggle.is-active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.is-active .bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.is-active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobilny Drawer Nawigacji */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9991;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  backdrop-filter: blur(4px);
}

.mobile-nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  background: var(--white);
  border-left: 2px solid var(--black);
  z-index: 9992;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  overflow-y: auto;
}

.mobile-nav-drawer.is-open {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--black);
  margin-bottom: 20px;
}

.mobile-nav-close-btn {
  background: none;
  border: 1px solid var(--black);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav-links a {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-200);
  transition: transform 0.15s ease, color 0.15s ease;
}

.mobile-nav-links a:hover, .mobile-nav-links a.active {
  transform: translateX(4px);
  color: var(--gray-600);
}

.mobile-nav-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-toggle-btn {
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
  z-index: 10;
}

.cart-toggle-btn:hover {
  background: var(--white);
  color: var(--black);
}

.cart-badge {
  background: var(--white);
  color: var(--black);
  font-weight: 800;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cart-badge.pop {
  transform: scale(1.4);
}

/* Wystrzeliwujące ogniwo animacji dodania do koszyka */
.flying-particle {
  position: fixed;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 10001;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.75s ease;
}

/* Ticker - dwukierunkowy pasek z sekwencją i informacjami (darmowa wysyłka czarnym tekstem z ikoną) */
.ticker-wrap {
  border-bottom: 1px solid var(--gray-200);
  overflow: hidden;
  background: var(--white);
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  font-size: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
}

.ticker-track.track-reverse {
  background: var(--gray-50);
}

.ticker-inner {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 32px;
  padding-right: 32px;
  animation: ticker-slide 34s linear infinite;
}

.ticker-track.track-reverse .ticker-inner {
  animation: ticker-slide-reverse 40s linear infinite;
}

@keyframes ticker-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@keyframes ticker-slide-reverse {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--gray-800);
  font-weight: 600;
}

.ticker-dot {
  width: 4px;
  height: 4px;
  background: var(--black);
  border-radius: 50%;
}

/* Układ kontenerów */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Sekcje przyklejone (sticky) */
.sticky-section {
  position: sticky;
  top: 80px;
  z-index: 10;
}

/* Przyciski magnetyczne z płynnym wypełnieniem */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid var(--black);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}

.btn-black {
  background: var(--black);
  color: var(--white);
}

.btn-black:hover {
  background: var(--white);
  color: var(--black);
}

.btn-outline {
  background: transparent;
  color: var(--black);
}

.btn-outline:hover {
  background: var(--black);
  color: var(--white);
}

.btn-disabled {
  background: var(--gray-100);
  color: var(--gray-400);
  border-color: var(--gray-300);
  cursor: not-allowed;
  pointer-events: none;
}

/* Hero - minimalistyczna laboratoryjna karta specyfikacji odczynników */
.hero-editorial {
  position: relative;
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--gray-200);
  overflow: hidden;
}

.hero-grid-2col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-lab-card {
  background: var(--white);
  border: 2px solid var(--black);
  padding: 32px;
  box-shadow: 10px 10px 0 var(--black);
  position: relative;
}

.hero-lab-badge {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-lab-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
  padding: 16px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.hero-lab-spec-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-lab-spec-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
}

.hero-lab-spec-value {
  font-size: 13px;
  font-weight: 800;
  color: var(--black);
}

/* Split-text reveal */
.split-reveal {
  overflow: hidden;
  display: block;
}

.split-reveal-line {
  display: block;
  transform: translateY(115%);
  animation: line-slide-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes line-slide-up {
  to { transform: translateY(0); }
}

/* Rysowanie linii SVG przy scrollu (stroke-dashoffset) */
.svg-scroll-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 0.1s linear;
}

@supports (animation-timeline: view()) {
  .svg-scroll-line {
    animation: draw-line linear forwards;
    animation-timeline: view();
    animation-range: entry 10% cover 60%;
  }
  @keyframes draw-line {
    to { stroke-dashoffset: 0; }
  }
  .parallax-layer {
    animation: parallax-shift linear;
    animation-timeline: view();
  }
  @keyframes parallax-shift {
    from { transform: translateY(30px); }
    to { transform: translateY(-30px); }
  }
}

/* Siatka kart produktów */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover {
  border-color: var(--black);
  transform: translateY(-3px);
}

/* Tło karty odwraca się czerń/biel wypełnieniem od punktu kursora (clip-path circle) */
.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--black);
  opacity: 0;
  clip-path: circle(0% at var(--mouse-x, 50%) var(--mouse-y, 50%));
  transition: clip-path 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  pointer-events: none;
  z-index: 1;
}

.product-card:hover::before {
  clip-path: circle(150% at var(--mouse-x, 50%) var(--mouse-y, 50%));
  opacity: 0.04;
}

/* Niedostępne produkty: wyszarzone + przekreślenie diagonalne */
.product-card.unavailable {
  opacity: 0.68;
  filter: grayscale(100%);
  position: relative;
}

.product-card.unavailable .product-vial-box::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -15%;
  width: 130%;
  height: 2px;
  background: var(--black);
  transform: rotate(-32deg);
  pointer-events: none;
  z-index: 4;
}

.product-vial-box {
  background: var(--gray-50);
  aspect-ratio: 16 / 11;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--gray-200);
  overflow: hidden;
}

.product-vial-svg {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.06));
}

.product-vial-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.06));
}

.product-card:hover .product-vial-svg {
  transform: rotate(-3deg) scale(1.04);
}

.product-card:hover .product-vial-img {
  transform: scale(1.04);
}

.badge-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--black);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  letter-spacing: -0.01em;
  z-index: 2;
}

.badge-out-of-stock {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--gray-200);
  color: var(--gray-700);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  z-index: 2;
}

.product-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.product-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  margin: 6px 0;
  letter-spacing: -0.03em;
}

.product-desc {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.5;
}

.product-price-row {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}

/* Bezwzględne niewymuszone łamanie ceny w jednej linii */
.price-val {
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap !important;
  letter-spacing: -0.03em;
}

/* Poziomy scroll produktów z inercją na desktopie i telefonie */
.horizontal-scroll-wrap {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--black) var(--gray-100);
  -webkit-overflow-scrolling: touch;
}

.horizontal-scroll-wrap > * {
  flex: 0 0 340px;
  scroll-snap-align: start;
}

/* Wertykalny katalog odczynników (jeden pod drugim) */
.product-vertical-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.product-row-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  gap: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.product-row-card:hover {
  border-color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
}

.product-row-left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1 1 auto;
  min-width: 0;
}

.product-row-thumb {
  width: 110px;
  height: 110px;
  min-width: 110px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-row-card:hover .product-row-thumb img {
  transform: scale(1.06);
}

.product-row-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: var(--black);
  color: var(--white);
  padding: 2px 6px;
  line-height: 1.2;
}

.product-row-badge.green {
  background: #059669;
  color: #fff;
}

.product-row-badge.blue {
  background: #2563eb;
  color: #fff;
}

.product-row-info {
  flex: 1 1 auto;
  min-width: 0;
}

.product-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 11px;
  color: var(--gray-500);
  margin-bottom: 6px;
}

.product-row-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 6px;
}

.product-row-title a {
  color: var(--black);
  text-decoration: none;
  transition: color 0.15s ease;
}

.product-row-title a:hover {
  text-decoration: underline;
}

.product-row-desc {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.5;
  margin: 0;
  max-width: 580px;
}

.product-row-right {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 0 0 auto;
}

.product-row-price-box {
  text-align: right;
  min-width: 110px;
}

.product-row-price {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--black);
  line-height: 1;
}

.product-row-price-sub {
  font-size: 11px;
  color: var(--gray-500);
  margin-top: 4px;
}

.product-row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 860px) {
  .product-row-card {
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    gap: 16px;
  }
  .product-row-left {
    gap: 16px;
  }
  .product-row-thumb {
    width: 90px;
    height: 90px;
    min-width: 90px;
  }
  .product-row-title {
    font-size: 17px;
  }
  .product-row-right {
    justify-content: space-between;
    border-top: 1px solid var(--gray-100);
    padding-top: 14px;
  }
  .product-row-price-box {
    text-align: left;
  }
}

@media (max-width: 540px) {
  .product-row-left {
    flex-direction: column;
    align-items: flex-start;
  }
  .product-row-thumb {
    width: 100%;
    height: 150px;
  }
  .product-row-right {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .product-row-actions {
    flex-direction: column;
    width: 100%;
  }
  .product-row-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* Formularze i elementy wejściowe */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  color: var(--black);
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--gray-300);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--black);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 1px var(--black);
}

.form-help {
  font-size: 11px;
  color: var(--gray-500);
  margin-top: 4px;
}

.radio-card {
  border: 1px solid var(--gray-300);
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  background: var(--white);
  margin-bottom: 12px;
  transition: border-color 0.15s ease;
}

.radio-card:hover {
  border-color: var(--black);
}

.radio-card input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--black);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.5;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--black);
}

/* Modal InPost Geowidget v5 (pełnoekranowy na mobile, dostępny z Esc i focus trap) */
#inpost-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(8px);
}

#inpost-modal-overlay.active {
  display: flex;
}

.inpost-modal-window {
  background: var(--white);
  width: 100%;
  max-width: 980px;
  height: 85vh;
  max-height: 800px;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--black);
  position: relative;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.inpost-modal-header {
  padding: 16px 24px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.inpost-modal-body {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #f8f8f8;
}

.inpost-modal-fallback {
  padding: 32px;
  max-width: 520px;
  margin: 40px auto;
  background: var(--white);
  border: 1px solid var(--gray-300);
}

.selected-locker-card {
  border: 2px solid var(--black);
  background: var(--gray-50);
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 12px 0 20px;
}

/* Modal bramki wieku 18+ RUO */
#age-gate {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  z-index: 10100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(10px);
}

.age-gate-modal {
  background: var(--white);
  border: 2px solid var(--black);
  max-width: 560px;
  width: 100%;
  padding: 40px;
}

/* Szuflada koszyka */
#cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 9995;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(4px);
}

#cart-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

#cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 460px;
  background: var(--white);
  border-left: 2px solid var(--black);
  z-index: 9996;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

#cart-drawer.open {
  transform: translateX(0);
}

/* Nowa interaktywna mapa Paczkomatów (Leaflet OSM bez tokenu InPost) */
#paczkomat-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
}

#paczkomat-modal-overlay.active {
  display: flex;
}

.paczkomat-modal-window {
  background: var(--white);
  border: 2px solid var(--black);
  width: 100%;
  max-width: 1020px;
  height: 90vh;
  max-height: 740px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 12px 12px 0 var(--black);
}

.paczkomat-modal-header {
  padding: 14px 20px;
  border-bottom: 2px solid var(--black);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  gap: 12px;
}

.paczkomat-search-bar {
  padding: 12px 20px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-300);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.paczkomat-search-row {
  display: flex;
  gap: 8px;
}

.paczkomat-city-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}

.city-chip {
  background: var(--white);
  border: 1px solid var(--gray-400);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.city-chip:hover, .city-chip.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.paczkomat-modal-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 340px;
  overflow: hidden;
  position: relative;
}

#paczkomat-leaflet-map {
  width: 100%;
  height: 100%;
  min-height: 360px;
  background: #e5e3df;
}

.paczkomat-list-panel {
  border-left: 2px solid var(--black);
  background: var(--white);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.paczkomat-list-header {
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 800;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.paczkomat-items-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.paczkomat-item-card {
  border: 1px solid var(--gray-300);
  padding: 12px;
  cursor: pointer;
  background: var(--white);
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.1s ease;
}

.paczkomat-item-card:hover {
  border-color: var(--black);
  background: var(--gray-50);
  transform: translateY(-1px);
}

.paczkomat-item-card.selected {
  border: 2px solid var(--black);
  background: #f4f4f4;
}

.paczkomat-item-code {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 14px;
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.paczkomat-item-address {
  font-size: 12px;
  color: var(--gray-700);
  margin-top: 4px;
  line-height: 1.4;
}

.paczkomat-item-desc {
  font-size: 11px;
  color: var(--gray-500);
  margin-top: 4px;
  font-style: italic;
}

/* Własny marker InPost Paczkomat na mapie Leaflet */
.inpost-custom-marker {
  background: #ffcc00;
  color: #000000;
  border: 2px solid #000000;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 10px;
  padding: 2px 6px;
  white-space: nowrap;
  box-shadow: 2px 2px 0 #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.inpost-custom-marker:hover, .inpost-custom-marker.active {
  background: #000000;
  color: #ffffff;
  border-color: #ffcc00;
  z-index: 1000 !important;
}

/* Toast */
#toast-msg {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: var(--black);
  color: var(--white);
  padding: 14px 24px;
  font-size: 13px;
  font-weight: 600;
  z-index: 10080;
  transform: translateY(60px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--gray-800);
}

#toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}

/* Tabele specyfikacji analitycznej */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 24px 0;
}

.specs-table th, .specs-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--gray-200);
  text-align: left;
}

.specs-table th {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-700);
  background: var(--gray-50);
  width: 32%;
}

/* FAQ */
.faq-box details {
  border-bottom: 1px solid var(--gray-200);
}

.faq-box summary {
  list-style: none;
  padding: 22px 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: -0.02em;
  transition: color 0.15s ease;
}

.faq-box summary:hover {
  color: var(--gray-600);
}

.faq-box summary::-webkit-details-marker {
  display: none;
}

.faq-box summary::after {
  content: "+";
  font-family: var(--font-mono, monospace);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: var(--gray-500);
  transition: transform 0.2s ease, color 0.2s ease;
  margin-left: 16px;
  flex-shrink: 0;
}

.faq-box details[open] summary::after {
  content: "−";
  color: var(--black);
}

.faq-box details[open] summary {
  color: var(--black);
}

.faq-answer {
  padding-bottom: 24px;
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.65;
}

/* Stopka */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 80px 0 40px;
  margin-top: auto;
}

.footer-disclaimer {
  border: 1px solid var(--gray-800);
  padding: 24px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--gray-300);
  margin-bottom: 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 48px;
  margin-bottom: 56px;
}

.footer-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-list {
  list-style: none;
  font-size: 13px;
  color: var(--gray-400);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-list a {
  transition: color 0.15s ease;
}

.footer-list a:hover {
  color: var(--white);
}

/* Responsywność */
@media (max-width: 900px) {
  .hero-grid-2col {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-canvas-wrap {
    height: 340px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-flex !important;
  }
  .inpost-modal-window, .paczkomat-modal-window {
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border: none;
    box-shadow: none;
    padding: 0;
  }
  #inpost-modal-overlay, #paczkomat-modal-overlay {
    padding: 0;
  }
  .paczkomat-modal-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 220px;
  }
  .paczkomat-list-panel {
    border-left: none;
    border-top: 2px solid var(--black);
  }
  .giant-heading {
    font-size: clamp(2.5rem, 14vw, 4.5rem);
  }
  .sub-giant {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
  }
  .specs-table th {
    width: 40%;
  }
  .product-price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .ticker-inner {
    animation: none !important;
  }
  #spiderweb-canvas, #peptide-chain-canvas, #peptide-hero-canvas {
    display: none !important;
  }
}

/* ==========================================================================
   GALERIA ZDJĘĆ PRODUKTU (2 MIEJSCA NA GRAFIKI / FIOLKĘ I SPECYFIKACJĘ)
   ========================================================================== */
.product-media-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  user-select: none;
}

.product-media-main {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 400px;
  height: 420px;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y pinch-zoom;
}

.product-media-main:active {
  cursor: grabbing;
}

.gallery-slider-track {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-main-photo {
  max-width: 100%;
  max-height: 370px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.08));
  pointer-events: none;
}

/* Przyciski strzałek lewo/prawo (‹ i ›) */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  border: 1px solid var(--gray-300);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 6;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.gallery-arrow:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
  transform: translateY(-50%) scale(1.06);
}

.gallery-arrow.prev {
  left: 14px;
}

.gallery-arrow.next {
  right: 14px;
}

/* Wskaźniki kropkowe na dole zdjęcia */
.gallery-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 6;
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 12px;
  border: 1px solid var(--gray-200);
}

.gallery-dot {
  width: 8px;
  height: 8px;
  background: var(--gray-300);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-dot.active {
  background: var(--black);
  width: 22px;
}

/* Klasyczne miniatury bez zbędnych opisów */
.product-media-thumbnails {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.product-thumb-btn,
.product-media-slot {
  width: 76px;
  height: 76px;
  min-height: 76px;
  padding: 6px;
  background: var(--white);
  border: 1px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  outline: none;
  flex: 0 0 76px;
  border-radius: 0;
}

.product-thumb-btn img,
.product-media-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin: 0;
  display: block;
  transition: transform 0.2s ease;
}

.product-thumb-btn:hover,
.product-media-slot:hover {
  border-color: var(--black);
  background: var(--gray-50);
}

.product-thumb-btn:hover img,
.product-media-slot:hover img {
  transform: scale(1.08);
}

.product-thumb-btn.active,
.product-media-slot.active {
  border: 2px solid var(--black);
  background: var(--gray-50);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Ukrycie starych etykiet tekstowych, jeśli pozostały w HTML */
.product-media-slot-title,
.product-media-slot-desc {
  display: none !important;
}

/* ==========================================================================
   SEKCJA OPINII (EDITORIAL MINIMAL BRUTALISM)
   ========================================================================== */
.reviews-section {
  padding: 64px 0;
  border-top: 2px solid var(--black);
}

.reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.reviews-score-badge {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.reviews-score-val {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.reviews-stars {
  color: var(--black);
  font-size: 14px;
  letter-spacing: 2px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.review-card:hover {
  border-color: var(--black);
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 var(--black);
}

.review-card-top {
  margin-bottom: 16px;
}

.review-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.review-author {
  font-weight: 700;
  color: var(--black);
}

.review-verified {
  font-size: 10px;
  font-weight: 700;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  padding: 2px 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.review-content {
  font-size: 13px;
  line-height: 1.6;
  color: var(--gray-700);
  margin-bottom: 12px;
}

.review-content.review-empty {
  font-style: italic;
  color: var(--gray-400);
  font-size: 12px;
}

.review-item-tag {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  color: var(--gray-500);
  border-top: 1px dashed var(--gray-200);
  padding-top: 8px;
  margin-top: auto;
}

/* ==========================================================================
   BANER ZGODY NA PLIKI COOKIES (EDITORIAL BRUTALISM)
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 480px;
  width: calc(100% - 48px);
  background: var(--white);
  border: 2px solid var(--black);
  padding: 24px;
  box-shadow: 8px 8px 0 var(--black);
  z-index: 10005;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  pointer-events: none;
}

.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-banner-title::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--black);
}

.cookie-banner-text {
  font-size: 12px;
  color: var(--gray-700);
  line-height: 1.55;
}

.cookie-banner-text a {
  color: var(--black);
  font-weight: 700;
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-btn-accept {
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease;
}

.cookie-btn-accept:hover {
  background: var(--white);
  color: var(--black);
}

.cookie-btn-essential {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--black);
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease;
}

.cookie-btn-essential:hover {
  background: var(--gray-100);
}

@media (max-width: 640px) {
  .cookie-banner {
    bottom: 12px;
    right: 12px;
    left: 12px;
    width: auto;
    padding: 18px 16px;
  }
  .cookie-banner-actions {
    flex-direction: column;
  }
  .cookie-banner-actions button {
    width: 100%;
    text-align: center;
  }
}

