/* Machine Candy — Unified Stylesheet */

/* ══════════════════════════════════════════════
   RESET & ZMIENNE
══════════════════════════════════════════════ */

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

:root {
  --blue: #233dff;
  --blue-dark: #1a4d8a;
  --blue-light: #3a7dd4;
  --blue-bg: #e8f0fb;
  --white: #ffffff;
  --black: #0a0a0a;
  --gray: #f4f4f4;
  --gray2: #e0e0e0;
  --gray-dark: #666666;
  --text: #1a1a1a;
  --shadow: 0 4px 18px rgba(0,0,0,0.13);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.19);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
}

body > main {
  padding-top: 60px;
  min-height: 80vh;
}

/* ══════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════ */

.main-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 2px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 60px;
}

nav:not(.main-nav) {
  position: static !important;
  top: auto !important; left: auto !important; right: auto !important;
  z-index: auto !important; width: auto;
}

.nav-logo {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
}
.nav-logo img { height: 36px; border-radius: 0; }
.nav-logo span {
  font-size: 17px; font-weight: 900; letter-spacing: 0.15em;
  color: var(--black); text-transform: uppercase;
}

.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--black);
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--blue); }

.nav-cta { background: var(--blue) !important; color: var(--white) !important; padding: 9px 20px; border-radius: 0; }
.nav-cta:hover { background: var(--blue-dark) !important; color: var(--white) !important; }

.nav-cart-link {
  display: flex; align-items: center; gap: 6px; text-decoration: none;
  color: var(--black); font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.nav-cart-badge-desktop {
  background: #2563a8; color: #fff; border-radius: 50%;
  width: 18px; height: 18px; display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800;
}

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 6px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--black); transition: all 0.25s; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-right { display: none; align-items: center; gap: 0; margin-left: auto; }
.nav-cart-mobile {
  display: flex; align-items: center; gap: 4px;
  text-decoration: none; font-size: 20px;
  position: relative; padding: 8px 10px; color: inherit;
}
.nav-cart-badge {
  background: #2563a8; color: #fff; border-radius: 50%;
  min-width: 18px; height: 18px; display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; padding: 0 2px;
}

.mobile-menu {
  display: none; position: fixed; top: 60px; left: 0; right: 0;
  background: var(--white); border-bottom: 2px solid var(--black);
  z-index: 999; flex-direction: column; padding: 16px 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block; padding: 14px 32px; font-size: 14px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  color: var(--black); border-bottom: 1px solid var(--gray2);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { background: var(--gray); }

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */

.hero {
  margin-top: 60px; min-height: 33vh;
  background: var(--blue); display: flex; align-items: center;
  position: relative; overflow: hidden; padding: 40px 60px;
}
.hero-content {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 24px; width: 100%; max-width: 1200px;
  margin: 0 auto; position: relative; z-index: 2; text-align: center;
}
.hero-logo-img { height: 160px; border-radius: 0; flex-shrink: 0; display: block; margin: 0 auto; }
.hero-text { flex: 1; text-align: center; }
.hero-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.3em; color: rgba(255,255,255,0.6); text-transform: uppercase; margin-bottom: 10px; }
.hero-title { font-size: clamp(32px, 5vw, 64px); font-weight: 900; color: var(--white); line-height: 0.95; letter-spacing: -0.02em; text-transform: uppercase; margin-bottom: 14px; }
.hero-desc { font-size: 15px; color: rgba(255,255,255,0.78); line-height: 1.5; max-width: 500px; margin-bottom: 24px; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.stripes-bg {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, transparent, transparent 20px, rgba(255,255,255,0.03) 20px, rgba(255,255,255,0.03) 40px);
}

/* ══════════════════════════════════════════════
   PRZYCISKI GLOBALNE
══════════════════════════════════════════════ */

.btn-primary {
  background: var(--white); color: var(--blue);
  font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 13px 28px; text-decoration: none; border-radius: 0;
  transition: all 0.2s; box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--black); color: var(--white); }

.btn-secondary {
  background: transparent; color: var(--white);
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 13px 28px; text-decoration: none;
  border: 2px solid rgba(255,255,255,0.45); border-radius: 0; transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

.btn-cta {
  display: inline-block; background: var(--blue); color: var(--white);
  font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 15px 40px; text-decoration: none; border-radius: 0;
  transition: background 0.2s; box-shadow: var(--shadow);
}
.btn-cta:hover { background: var(--blue-light); }

.btn-buy-now {
  display: inline-block; font-size: 11px; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: none; background: var(--blue); color: #fff;
  padding: 5px 12px; cursor: pointer; transition: background 0.2s; white-space: nowrap;
}
.btn-buy-now:hover { background: var(--black); }

.btn-submit {
  background: var(--blue); color: var(--white); border: none;
  padding: 14px 36px; font-size: 12px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase; border-radius: 0;
  cursor: pointer; transition: background 0.2s; align-self: flex-start; box-shadow: var(--shadow);
}
.btn-submit:hover { background: var(--blue-dark); }

/* ══════════════════════════════════════════════
   MARQUEE
══════════════════════════════════════════════ */

.marquee-bar { background: var(--black); padding: 12px 0; overflow: hidden; }
.marquee-track { display: flex; gap: 60px; white-space: nowrap; animation: marquee 25s linear infinite; }
.marquee-track span { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.65); }
.marquee-track span::before { content: 'X '; color: var(--blue-light); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ══════════════════════════════════════════════
   SEKCJE
══════════════════════════════════════════════ */

.section { padding: 80px 60px; max-width: 1400px; margin: 0 auto; }
.section-header { display: flex; align-items: baseline; gap: 20px; margin-bottom: 48px; }
.section-title { font-size: clamp(28px, 4vw, 56px); font-weight: 900; letter-spacing: -0.02em; line-height: 1; text-transform: uppercase; }
.section-subtitle { font-size: 11px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: #999; }

/* ══════════════════════════════════════════════
   PRODUKTY
══════════════════════════════════════════════ */

.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card {
  background: var(--white); display: flex; flex-direction: column;
  border: 2px solid var(--black); box-shadow: var(--shadow); border-radius: 0;
  cursor: pointer; transition: box-shadow 0.22s, transform 0.22s;
}
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.product-img {
  aspect-ratio: 4/3; background: var(--gray);
  display: flex; align-items: center; justify-content: center;
  position: relative; border-bottom: 2px solid var(--black); overflow: hidden;
}
.product-img img { width: 100%; height: 100%; object-fit: contain; }
.product-emoji { font-size: 52px; }
.product-label {
  position: absolute; top: 10px; left: 10px;
  background: var(--blue); color: var(--white);
  font-size: 9px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 0;
}
.product-label.black { background: var(--black); }
.product-info { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.product-name { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 8px; }
.product-price { font-weight: 800; font-size: 18px; margin-bottom: 8px; color: var(--blue); }
.product-price .old-price { font-size: 13px; color: #999; text-decoration: line-through; margin-left: 8px; font-weight: 600; }
.product-desc { font-size: 13px; color: #555; line-height: 1.6; flex: 1; margin-bottom: 16px; }
.product-action {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase; text-decoration: none;
  color: var(--blue); border-bottom: 2px solid var(--blue); padding-bottom: 2px;
  transition: all 0.2s; align-self: flex-start;
}
.product-action:hover { color: var(--black); border-color: var(--black); }
.product-collection-tag {
  display: inline-block; background: var(--blue-bg); color: var(--blue);
  font-size: 9px; font-weight: 800; letter-spacing: 0.1em;
  padding: 3px 8px; text-transform: uppercase; margin-bottom: 8px;
}

/* ══════════════════════════════════════════════
   KONWENTY
══════════════════════════════════════════════ */

.conv-section { background: var(--blue); padding: 80px 60px; }
.conv-inner { max-width: 1400px; margin: 0 auto; }
.conv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.conv-card {
  background: rgba(255,255,255,0.1); border: 2px solid rgba(255,255,255,0.3);
  padding: 28px 22px; display: flex; flex-direction: column; gap: 10px;
  border-radius: 0; box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.conv-card:hover { background: rgba(255,255,255,0.18); box-shadow: 0 8px 32px rgba(0,0,0,0.3); transform: translateY(-3px); }
.conv-icon { font-size: 32px; }
.conv-name { font-size: 18px; font-weight: 800; color: var(--white); letter-spacing: -0.01em; }
.conv-date { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.85); letter-spacing: 0.05em; }
.conv-location { font-size: 12px; color: rgba(255,255,255,0.65); }
.conv-desc { font-size: 13px; color: rgba(255,255,255,0.68); line-height: 1.5; }
.conv-badge {
  display: inline-block; background: rgba(255,255,255,0.18); color: rgba(255,255,255,0.9);
  font-size: 9px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 0; align-self: flex-start;
  border: 1px solid rgba(255,255,255,0.3);
}
.conv-badge.soon { background: rgba(255,220,0,0.25); border-color: rgba(255,220,0,0.5); color: #ffd700; }

/* ══════════════════════════════════════════════
   O NAS
══════════════════════════════════════════════ */

.about-section { background: var(--gray); padding: 80px 60px; }
.about-inner { max-width: 1400px; margin: 0 auto; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 48px; align-items: center; }
.about-text p { font-size: 16px; line-height: 1.8; color: #333; margin-bottom: 16px; }
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-card {
  background: var(--white); border: 2px solid var(--black); box-shadow: var(--shadow);
  padding: 22px 18px; border-radius: 0; display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.about-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.about-card-icon { width: 44px; height: 44px; background: var(--blue); border-radius: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.about-card-title { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.about-card-desc { font-size: 13px; color: #666; line-height: 1.5; }

/* ══════════════════════════════════════════════
   CTA BANNER
══════════════════════════════════════════════ */

.cta-banner { background: var(--black); padding: 80px 60px; text-align: center; }
.cta-banner h2 { font-size: clamp(28px, 4vw, 56px); font-weight: 900; color: var(--white); text-transform: uppercase; letter-spacing: -0.02em; line-height: 1; margin-bottom: 16px; }
.cta-banner p { font-size: 16px; color: rgba(255,255,255,0.6); max-width: 480px; margin: 0 auto 32px; line-height: 1.6; }

/* ══════════════════════════════════════════════
   KONTAKT
══════════════════════════════════════════════ */

.contact-wrap { padding: 80px 60px; max-width: 1400px; margin: 0 auto; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 48px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; gap: 18px; align-items: flex-start; background: var(--gray); border: 2px solid var(--black); box-shadow: var(--shadow); padding: 18px; border-radius: 0; }
.contact-icon { width: 44px; height: 44px; background: var(--blue); border-radius: 0; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.contact-label { font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #888; margin-bottom: 4px; }
.contact-value { font-size: 16px; font-weight: 700; color: var(--text); text-decoration: none; }
.contact-value:hover { color: var(--blue); }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 10px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: #666; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 2px solid var(--gray2); border-radius: 0;
  font-size: 14px; font-family: inherit; background: var(--white); color: var(--text);
  transition: border-color 0.2s; appearance: none; box-shadow: var(--shadow);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--blue); }
.form-group textarea { min-height: 110px; resize: vertical; }

/* ══════════════════════════════════════════════
   KOLEKCJE
══════════════════════════════════════════════ */

.collections-section { padding: 60px 0 20px; }
.collections-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 32px; }
.collection-card {
  background: var(--white); display: flex; flex-direction: column;
  border: 2px solid var(--black); box-shadow: var(--shadow); border-radius: 0;
  cursor: pointer; transition: box-shadow 0.22s, transform 0.22s; position: relative;
}
.collection-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.collection-card.active { border-color: var(--blue); box-shadow: 5px 5px 0 var(--blue); }
.collection-img {
  height: 120px; max-height: 120px; background: var(--gray);
  display: flex; align-items: center; justify-content: center;
  position: relative; border-bottom: 2px solid var(--black); overflow: hidden; flex-shrink: 0;
}
.collection-card.active .collection-img { border-bottom-color: var(--blue); }
.collection-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--blue); color: var(--white);
  font-size: 9px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 0;
}
.collection-emoji { font-size: 56px; line-height: 1; }
.collection-info { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.collection-name { font-size: 18px; font-weight: 800; color: var(--black); letter-spacing: -0.01em; margin-bottom: 8px; }
.collection-desc { font-size: 13px; color: #555; line-height: 1.6; flex: 1; margin-bottom: 10px; }
.collection-count { font-size: 12px; color: var(--blue); font-weight: 700; letter-spacing: 0.05em; margin-bottom: 12px; }
.collection-btn {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase; text-decoration: none;
  color: var(--blue); border-bottom: 2px solid var(--blue); padding-bottom: 2px;
  transition: all 0.2s; align-self: flex-start;
}
.collection-card:hover .collection-btn, .collection-card.active .collection-btn { color: var(--black); border-color: var(--black); }
.filter-bar { display: flex; gap: 10px; margin: 28px 0 0; flex-wrap: wrap; align-items: center; }
.filter-btn { padding: 8px 20px; border-radius: 20px; border: 1.5px solid var(--gray2); background: transparent; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; color: var(--black); }
.filter-btn:hover, .filter-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ══════════════════════════════════════════════
   KATEGORIE
══════════════════════════════════════════════ */

.categories-section { padding: 20px 0 40px; }
.categories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.cat-card {
  border-radius: 12px; border: 2px solid var(--gray2); background: var(--white); cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 28px 16px; gap: 12px; text-align: center;
}
.cat-card:hover, .cat-card.active { border-color: var(--blue); box-shadow: 0 6px 24px rgba(37,99,168,0.15); transform: translateY(-2px); }
.cat-card.active { background: var(--blue-bg); }
.cat-emoji { font-size: 36px; line-height: 1; }
.cat-name { font-size: 14px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--black); }
.cat-count { font-size: 12px; color: var(--gray-dark); font-weight: 600; }

.random-section { padding: 60px 0 80px; background: var(--gray); }

/* ══════════════════════════════════════════════
   KOSZYK
══════════════════════════════════════════════ */

.cart-wrap { max-width: 960px; margin: 0 auto; padding: 40px 24px 80px; }
.cart-title { font-size: 28px; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 32px; }
.cart-item { display: grid; grid-template-columns: 90px 1fr auto; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--gray2); }
.cart-item-img-wrap { width: 90px; height: 90px; background: var(--gray); display: flex; align-items: center; justify-content: center; font-size: 40px; overflow: hidden; flex-shrink: 0; }
.cart-item-img-wrap img { width: 100%; height: 100%; object-fit: contain; }
.cart-item-name { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.cart-item-name a { text-decoration: none; color: var(--text); }
.cart-item-name a:hover { color: var(--blue); }
.cart-item-variant { font-size: 12px; color: #666; margin-bottom: 10px; }
.cart-item-qty { display: flex; align-items: center; gap: 0; }
.qty-btn { width: 32px; height: 32px; border: 1px solid var(--gray2); background: var(--white); font-size: 18px; font-weight: 700; cursor: pointer; line-height: 1; }
.qty-btn:hover { background: var(--gray); }
.qty-num { width: 40px; height: 32px; border: 1px solid var(--gray2); border-left: none; border-right: none; text-align: center; font-size: 14px; font-weight: 700; outline: none; }
.cart-item-right { text-align: right; }
.cart-item-price { font-size: 18px; font-weight: 900; color: var(--blue); margin-bottom: 8px; }
.cart-item-remove { font-size: 11px; color: #999; cursor: pointer; text-decoration: underline; background: none; border: none; }
.cart-item-remove:hover { color: #e11d48; }
.cart-empty { text-align: center; padding: 80px 24px; color: #888; }
.cart-empty-icon { font-size: 60px; margin-bottom: 16px; }
.cart-summary-box { background: var(--gray); border: 2px solid var(--black); padding: 28px; margin-top: 32px; }
.summary-row { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 10px; }
.summary-row.total { font-size: 22px; font-weight: 900; border-top: 2px solid var(--black); padding-top: 14px; margin-top: 8px; }
.btn-checkout { display: block; width: 100%; padding: 16px; background: var(--blue); color: #fff; border: none; font-size: 13px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; text-align: center; text-decoration: none; margin-top: 16px; }
.btn-checkout:hover { background: var(--blue-dark); }
.btn-clear { display: block; width: 100%; padding: 10px; border: 2px solid var(--black); background: var(--white); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; margin-top: 8px; }
.btn-clear:hover { background: var(--gray); }
.btn-continue { display: inline-block; margin-top: 24px; padding: 14px 32px; background: var(--black); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; }

/* ══════════════════════════════════════════════
   PRODUKTY — LISTA (products.php)
══════════════════════════════════════════════ */

.page-header { margin-top: 60px; padding: 32px 60px; border-bottom: 2px solid var(--black); display: flex; align-items: center; gap: 16px; background: var(--gray); }
.page-header-back { color: var(--black); text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.page-header-back:hover { color: var(--blue); }
.page-header-divider { width: 1px; height: 32px; background: var(--gray2); }
.page-header h1 { font-size: 24px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.page-header p { font-size: 12px; color: #777; margin-top: 4px; }
.breadcrumb { font-size: 11px; color: #999; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 6px; }
.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.products-layout { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 120px); }

.sidebar { border-right: 2px solid var(--black); padding: 32px 24px; position: sticky; top: 60px; height: calc(100vh - 60px); overflow-y: auto; }
.sidebar-section { margin-bottom: 32px; }
.sidebar-title { font-size: 10px; font-weight: 900; letter-spacing: 0.18em; text-transform: uppercase; color: #999; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--gray2); }
.sidebar-btn { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 10px 12px; margin-bottom: 4px; font-size: 13px; font-weight: 700; letter-spacing: 0.05em; color: var(--text); border-radius: 6px; transition: background 0.15s, color 0.15s; }
.sidebar-btn:hover { background: var(--gray); }
.sidebar-btn.active { background: var(--black); color: var(--white); }
.sidebar-btn .btn-emoji { font-size: 16px; }
.sidebar-btn .btn-count { margin-left: auto; font-size: 10px; font-weight: 600; color: #999; }
.sidebar-btn.active .btn-count { color: rgba(255,255,255,0.6); }

.products-area { padding: 32px 40px; }
.products-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; gap: 16px; }
.products-count-label { font-size: 13px; font-weight: 700; color: #999; letter-spacing: 0.05em; }
.active-filter-tag { display: inline-flex; align-items: center; gap: 8px; background: var(--black); color: var(--white); padding: 6px 14px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.active-filter-tag button { background: none; border: none; color: var(--white); cursor: pointer; font-size: 14px; padding: 0; line-height: 1; opacity: 0.7; }
.active-filter-tag button:hover { opacity: 1; }

.empty-state { grid-column: 1/-1; text-align: center; padding: 60px 20px; color: #999; }
.empty-state p { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.empty-state span { font-size: 13px; }

.mobile-filter-toggle { display: none; width: 100%; padding: 12px 20px; background: var(--gray); border: none; border-bottom: 2px solid var(--black); font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; text-align: left; color: var(--black); }
.mobile-filter-toggle .toggle-arrow { float: right; transition: transform 0.3s; }
.mobile-filter-toggle.open .toggle-arrow { transform: rotate(180deg); }

/* ══════════════════════════════════════════════
   PRODUKT — SZCZEGÓŁY (product.php)
══════════════════════════════════════════════ */

.product-breadcrumb { max-width: 1100px; margin: 60px auto 0; padding: 16px 40px; font-size: 12px; color: #666; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.product-breadcrumb a { color: var(--blue); text-decoration: none; }
.product-breadcrumb a:hover { text-decoration: underline; }
.product-breadcrumb .sep { color: #999; }

.product-page { max-width: 1100px; margin: 0 auto; padding: 20px 40px 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.product-gallery { position: sticky; top: 80px; }
.main-img { background: var(--gray); border: 2px solid var(--black); aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; font-size: 80px; position: relative; overflow: hidden; margin-bottom: 12px; }
.main-img img { width: 100%; height: 100%; object-fit: contain; }
.main-img .fallback-emoji { display: none; font-size: 80px; }

.variant-btn { padding: 9px 18px; border: 2px solid var(--black); background: var(--white); color: var(--black); font-weight: 700; font-size: 13px; letter-spacing: 0.05em; cursor: pointer; transition: all 0.18s; }
.variant-btn:hover { border-color: var(--blue); background: var(--blue); color: var(--white); }
.variant-btn.selected { border-color: var(--black); background: var(--black); color: var(--white); }

.qty-control { display: flex; align-items: center; border: 2px solid var(--black); }
#qty-display { padding: 10px 16px; font-weight: 800; font-size: 16px; min-width: 44px; text-align: center; }

.btn-cart { flex: 1; padding: 14px 24px; background: var(--black); color: var(--white); border: none; font-weight: 800; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; transition: background 0.2s; }
.btn-cart:hover { background: #333; }
.btn-cart.added { background: #16a34a !important; }

.similar-section { max-width: 1100px; margin: 0 auto; padding: 0 40px 60px; }
.similar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.similar-card { text-decoration: none; color: var(--text); border: 2px solid var(--black); display: block; transition: transform 0.2s, box-shadow 0.2s; }
.similar-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.similar-img { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 40px; overflow: hidden; }
.similar-img img { width: 100%; height: 100%; object-fit: cover; }
.similar-info { padding: 12px; }
.similar-name { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.similar-price { font-size: 14px; font-weight: 800; color: var(--blue); }

.cart-notif { display: none; position: fixed; bottom: 24px; right: 24px; background: #16a34a; color: #fff; padding: 14px 24px; font-weight: 700; font-size: 14px; box-shadow: 0 4px 20px rgba(0,0,0,0.25); z-index: 9999; animation: slideIn 0.3s ease; }
@keyframes slideIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ══════════════════════════════════════════════
   FILTERS BAR & STRIPE SUCCESS
══════════════════════════════════════════════ */

.filters-bar-wrap { background: #fff; border-bottom: 2px solid #0a0a0a; width: 100%; }
.filters-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 12px 24px; max-width: 1400px; margin: 0 auto; }

.success-page main { flex: 1; display: flex; align-items: center; justify-content: center; padding-top: 60px; }
.success-box { max-width: 560px; width: 100%; margin: 40px auto; padding: 48px 40px; text-align: center; }
.success-icon { font-size: 72px; margin-bottom: 24px; }
.success-title { font-size: 32px; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 16px; }
.success-sub { font-size: 16px; color: #555; line-height: 1.6; margin-bottom: 32px; }
.order-info { background: var(--gray); border: 2px solid var(--black); padding: 20px; margin-bottom: 32px; text-align: left; }
.order-info p { font-size: 14px; margin-bottom: 8px; }
.order-info strong { font-weight: 900; }
.btn-home { display: inline-block; padding: 14px 32px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; }
.btn-home:hover { background: var(--blue-dark); }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */

footer { background: var(--black); padding: 60px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; color: #fff; }
.footer-brand img { height: 44px; border-radius: 0; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.38); line-height: 1.7; max-width: 280px; }
.footer-col h4 { font-size: 10px; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 16px; }
.footer-col a { display: block; text-decoration: none; color: rgba(255,255,255,0.65); font-size: 13px; font-weight: 500; padding: 4px 0; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { background: #000; padding: 18px 60px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-bottom p { font-size: 11px; color: rgba(255,255,255,0.28); letter-spacing: 0.05em; }
.footer-bottom a { color: rgba(255,255,255,0.45); text-decoration: none; }

/* ══════════════════════════════════════════════
   MODALS / OVERLAY
══════════════════════════════════════════════ */

[class*=overlay], [class*=backdrop], [class*=-modal], [id*=-modal], [id*=modal-] { z-index: 1100; }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .products-layout { grid-template-columns: 200px 1fr; }
  .products-area { padding: 24px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .main-nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-right { display: flex; }
  .hamburger { display: flex; }

  .hero { padding: 28px 24px; }
  .hero-content { flex-direction: column; align-items: center; gap: 20px; }
  .hero-logo-img { height: 72px; }
  .hero-title { font-size: clamp(28px, 8vw, 48px); }
  .hero-desc { font-size: 14px; }

  .section { padding: 48px 20px; }
  .products-grid { grid-template-columns: 1fr; gap: 14px; }
  .conv-section { padding: 48px 20px; }
  .conv-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .about-section { padding: 48px 20px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-cards { grid-template-columns: 1fr 1fr; }
  .cta-banner { padding: 48px 20px; }
  .contact-wrap { padding: 48px 20px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  footer { grid-template-columns: 1fr 1fr; padding: 36px 20px; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 6px; padding: 16px 20px; text-align: center; }
  .product-page { grid-template-columns: 1fr; gap: 32px; padding: 16px 20px 40px; }
  .product-gallery { position: static; }
  .product-breadcrumb { padding: 12px 16px; margin-top: 60px; }
  .similar-grid { grid-template-columns: repeat(2, 1fr); }
  .similar-section { padding: 0 20px 40px; }
}

@media (max-width: 768px) {
  body { overflow-x: hidden; }
  main > *, .hero, .section, .conv-section, .about-section, .cta-banner, .contact-wrap,
  .product-page, .breadcrumb, .similar-section, .cart-wrap, .page-header, .products-layout {
    box-sizing: border-box; padding-left: 16px; padding-right: 16px;
  }
  .main-nav, .mobile-menu, footer { padding-left: 16px; padding-right: 16px; box-sizing: border-box; }

  .page-header { padding: 16px; flex-wrap: wrap; gap: 8px; }
  .page-header h1 { font-size: 18px; }
  .page-header-divider { display: none; }
  .mobile-filter-toggle { display: flex; align-items: center; }
  .products-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; border-right: none; border-bottom: 2px solid var(--black); padding: 12px 16px; overflow: hidden; transition: max-height 0.3s ease; }
  .sidebar.mobile-hidden { max-height: 0; padding: 0; border-bottom: none; }
  .sidebar.mobile-visible { max-height: 600px; }
  .sidebar-section { margin-bottom: 16px; }
  .sidebar-btn { padding: 10px 14px; font-size: 13px; min-height: 44px; }
  .products-area { padding: 16px; }
  .products-grid { grid-template-columns: 1fr; gap: 10px; }
  .product-card { display: flex; flex-direction: column; }
  .product-img { width: 100%; aspect-ratio: 4/3; height: auto; }
  .product-info { padding: 10px 12px; flex: 1; min-width: 0; }
  .product-name { font-size: 13px; }
  .product-price { font-size: 15px; }
  .product-desc { display: none; }
  .product-action { font-size: 11px; }
  .products-toolbar { flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
  .cart-wrap { padding: 20px 16px 60px; }
  .cart-item { grid-template-columns: 70px 1fr; gap: 14px; }
  .cart-item-right { grid-column: 2; text-align: left; }
  .filters-bar { gap: 8px; padding: 10px 16px; }
  .cta-banner h2 { font-size: 20px; }
  footer { flex-direction: column; align-items: flex-start; }
  footer nav { margin-top: 12px; }
  footer nav a:first-child { margin-left: 0; }
}

@media (max-width: 600px) {
  .collections-grid { grid-template-columns: 1fr; }
  .collection-card { aspect-ratio: auto; }
  .categories-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .conv-grid { grid-template-columns: 1fr; }
  .about-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons a { text-align: center; }
  footer { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
  .similar-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  main > *, .hero, .section, .conv-section, .about-section, .cta-banner, .contact-wrap,
  .product-page, .breadcrumb, .similar-section, .cart-wrap, .page-header, .products-layout {
    padding-left: 12px; padding-right: 12px;
  }
  .main-nav, .mobile-menu, footer { padding-left: 12px; padding-right: 12px; }
}

@media (max-width: 400px) {
  .products-grid { grid-template-columns: 1fr; gap: 10px; }
}
