* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

:root {
  --bg: #070510;
  --card-bg: rgba(18, 13, 36, 0.82);
  --card-hover: rgba(28, 20, 56, 0.95);
  --border: #291d4d;
  --border-glow: rgba(168, 85, 247, 0.35);
  --accent: #7127f5;
  --accent-cyan: #a855f7;
  --accent-glow: rgba(113, 39, 245, 0.45);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --drawer-width: 420px;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #070510;
  background-image: 
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(126, 34, 206, 0.32), transparent 70%),
    radial-gradient(circle 650px at 5% 30%, rgba(113, 39, 245, 0.18), transparent 70%),
    radial-gradient(circle 750px at 95% 65%, rgba(168, 85, 247, 0.16), transparent 70%),
    radial-gradient(circle 600px at 50% 95%, rgba(109, 40, 217, 0.20), transparent 70%),
    linear-gradient(to right, rgba(168, 85, 247, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(168, 85, 247, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 44px 44px, 44px 44px;
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 6, 20, 0.85);
  border-bottom: 1px solid rgba(168, 85, 247, 0.22);
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.logo {
  font-size: 1.25rem;
  font-weight: 900;
  text-decoration: none;
  color: #fff;
  letter-spacing: -0.5px;
}

.logo span {
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Mała ikonka koszyka z licznikiem */
.cart-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: linear-gradient(135deg, #7127f5, #a855f7);
  color: #fff;
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 9px;
  padding: 6px 12px;
  height: 38px;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--accent-glow);
  transition: all 0.2s ease;
  flex-shrink: 0;
  text-decoration: none;
}

.cart-icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(113, 39, 245, 0.55);
  opacity: 0.95;
}

.cart-icon-btn .cart-icon-emoji {
  font-size: 1.12rem;
  line-height: 1;
}

.cart-icon-btn .cart-badge-pill {
  background: rgba(13, 8, 30, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
  line-height: 1.3;
}

/* Przycisk trzech poziomych kresek - widoczny na komputerze i telefonie */
.mobile-menu-btn {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
  padding: 8px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mobile-menu-btn:hover {
  background: rgba(168, 85, 247, 0.3);
  border-color: var(--accent-cyan);
  transform: translateY(-1px);
}

/* Ukrywamy wielkie przyciski paneli z górnego paska (są schowane w 3 kreskach) */
.nav-btn-desktop {
  display: none !important;
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* WYSZUKIWANIE / DRAWER MOBILNEGO MENU */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: #0d081e;
  border-left: 1px solid var(--border);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.85);
  z-index: 1060;
  display: flex;
  flex-direction: column;
  padding: 22px 18px;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}

.mobile-menu-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu-links li a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  background: rgba(168, 85, 247, 0.05);
  border: 1px solid rgba(168, 85, 247, 0.12);
  transition: all 0.2s ease;
}

.mobile-menu-links li a:hover,
.mobile-menu-links li a:active {
  background: rgba(168, 85, 247, 0.2);
  border-color: var(--accent-cyan);
  color: #fff;
  transform: translateX(3px);
}

.mobile-menu-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu-footer .btn {
  justify-content: center;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 9px;
  text-decoration: none;
}

.header-btns {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* PRZYCISKI */
.btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-gradient {
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
  color: #fff;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-gradient:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #070510;
}
::-webkit-scrollbar-thumb {
  background: #2d1f56;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.btn-admin {
  background: linear-gradient(135deg, rgba(113, 39, 245, 0.25), rgba(168, 85, 247, 0.25));
  border-color: rgba(168, 85, 247, 0.45);
  color: #f1f5f9;
}

.btn-admin:hover {
  background: linear-gradient(135deg, rgba(113, 39, 245, 0.45), rgba(168, 85, 247, 0.45));
  border-color: #c084fc;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.35);
  color: #fff;
}

.btn-outline {
  background: rgba(168, 85, 247, 0.08);
  color: #e2e8f0;
  border-color: var(--border);
}

.btn-outline:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: var(--accent-cyan);
  color: #fff;
}

.btn-sm {
  padding: 6px 10px;
  font-size: 0.78rem;
}

.full-width {
  width: 100%;
  justify-content: center;
  padding: 12px;
}

/* HERO */
.hero {
  text-align: center;
  padding: 60px 20px 30px;
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 440px;
  height: 220px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.25), transparent 70%);
  filter: blur(50px);
  z-index: -1;
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #c084fc;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 16px;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

.hero h1 {
  font-size: 2.3rem;
  color: #fff;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
  text-shadow: 0 0 35px rgba(168, 85, 247, 0.35);
}

.hero p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 22px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 35px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid rgba(168, 85, 247, 0.2);
  padding-top: 24px;
  max-width: 760px;
  margin: 0 auto;
}

.hero-stat-item {
  flex: 1 1 180px;
  max-width: 220px;
  background: rgba(18, 12, 38, 0.6);
  border: 1px solid rgba(168, 85, 247, 0.22);
  border-radius: 12px;
  padding: 16px 14px;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease;
}

.hero-stat-item:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.55);
  box-shadow: 0 6px 22px rgba(168, 85, 247, 0.25);
}

.hero-stat-item strong {
  display: block;
  font-size: 1.5rem;
  color: #c084fc;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 4px;
}

.hero-stat-item span {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.3;
  display: block;
}

/* KATALOG I PRODUKTY - ULTRA MODERN DESIGN */
.catalog-section,
.products-section {
  padding: 45px 20px 75px;
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 30px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 15px;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #c084fc;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.2);
}

.section-gradient-heading {
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff 30%, #c084fc 70%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.25;
}

.section-subtitle {
  color: #94a3b8;
  font-size: 0.98rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

/* NOWOCZESNY PASEK NARZĘDZI (FILTR & SZUKAJ) */
.catalog-toolbar {
  background: rgba(18, 12, 42, 0.75);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 18px;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 35px;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(113, 39, 245, 0.08);
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.pill:hover {
  background: rgba(168, 85, 247, 0.18);
  border-color: rgba(168, 85, 247, 0.4);
  color: #fff;
  transform: translateY(-1px);
}

.pill.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(113, 39, 245, 0.5);
  transform: translateY(-1px);
}

.pill-badge {
  font-size: 0.65rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 6px;
  border-radius: 999px;
  color: #f472b6;
  font-weight: 800;
  margin-left: 2px;
}

.search-wrap {
  position: relative;
  min-width: 260px;
  flex: 1;
  max-width: 320px;
}

.search-wrap .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.88rem;
  pointer-events: none;
  opacity: 0.7;
}

.search-wrap .search-box {
  width: 100%;
  background: rgba(10, 6, 24, 0.85);
  border: 1px solid rgba(168, 85, 247, 0.25);
  color: #fff;
  padding: 9px 14px 9px 36px;
  border-radius: 10px;
  font-size: 0.85rem;
  outline: none;
  transition: all 0.2s ease;
}

.search-wrap .search-box:focus {
  border-color: #a855f7;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.4);
  background: rgba(12, 7, 30, 0.95);
}

/* SIATKA PRODUKTÓW (CENTROWANA, GORGEOUS) */
.products-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin: 0 auto;
}

/* KARTA PRODUKTU */
.product-card {
  flex: 0 1 360px;
  max-width: 380px;
  min-width: 300px;
  background: linear-gradient(180deg, rgba(26, 17, 54, 0.9) 0%, rgba(13, 8, 30, 0.96) 100%);
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(113, 39, 245, 0.08);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease, box-shadow 0.28s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7), 0 0 30px rgba(113, 39, 245, 0.35);
}

/* GÓRNY BANER KARTY Z IKONĄ I STATUSEM */
.card-banner {
  position: relative;
  padding: 20px 20px 14px;
  background: radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.35), transparent 70%), linear-gradient(180deg, rgba(168, 85, 247, 0.15), transparent);
  border-bottom: 1px solid rgba(168, 85, 247, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-top-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.card-tag-pill {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #c084fc;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.35);
  padding: 3px 10px;
  border-radius: 999px;
}

.card-status-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: #34d399;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-icon-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(113, 39, 245, 0.35), rgba(168, 85, 247, 0.25));
  border: 1px solid rgba(168, 85, 247, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  box-shadow: 0 4px 18px rgba(113, 39, 245, 0.35);
  flex-shrink: 0;
}

/* CIAŁO KARTY */
.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.3;
}

.card-desc {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0 0 16px;
  flex-grow: 1;
}

/* LISTA ZALET */
.card-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-highlights li {
  font-size: 0.82rem;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-highlights li span {
  color: #34d399;
  font-weight: 800;
  font-size: 0.9rem;
}

/* TECHNOLOGIE */
.card-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.tech-badge {
  background: rgba(168, 85, 247, 0.12);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.28);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* STOPKA KARTY Z CENĄ */
.card-footer {
  padding: 16px 20px;
  background: rgba(10, 6, 24, 0.7);
  border-top: 1px solid rgba(168, 85, 247, 0.18);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.card-price-wrap {
  display: flex;
  flex-direction: column;
}

.price-sub {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.card-price {
  font-size: 1.25rem;
  font-weight: 900;
  color: #34d399;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  letter-spacing: -0.3px;
}

.card-price .currency {
  font-size: 0.82rem;
  font-weight: 700;
  color: #34d399;
}

.card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.card-info-btn {
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 8px;
}

.card-buy-btn {
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 800;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
  box-shadow: 0 4px 14px rgba(113, 39, 245, 0.4);
}

/* ZLECENIE CUSTOM */
.custom-section {
  padding: 35px 20px;
  max-width: 820px;
  margin: 0 auto;
}

.custom-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(12, 8, 26, 0.85);
  border: 1px solid var(--border);
  color: #fff;
  font-size: 0.85rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.3);
}

/* OPINIE KLIENTÓW - 3 KARTY POZIOMO OBOK SIEBIE PRZESUWANE PRZEZ JS */
.reviews-section {
  padding: 40px 20px;
  max-width: 1140px;
  margin: 0 auto;
  position: relative;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.review-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 195px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  animation: reviewSlideIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes reviewSlideIn {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.review-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 12px 30px rgba(168, 85, 247, 0.22);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-avatar {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
}

.review-author-info strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}

.review-author-info small {
  color: var(--text-muted);
  font-size: 0.76rem;
}

.review-stars {
  color: #fbbf24;
  margin-bottom: 10px;
  font-size: 1.05rem;
  letter-spacing: 2px;
}

.review-content {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.55;
  font-style: italic;
  flex-grow: 1;
}

.reviews-footer-action {
  margin-top: 24px;
  width: 100%;
  display: block;
}

.reviews-footer-action .btn,
.reviews-footer-action button.btn {
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.35);
  box-sizing: border-box;
  transition: all 0.25s ease;
  letter-spacing: 0.3px;
  text-align: center;
}

.reviews-footer-action .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.55);
}

@media (max-width: 860px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

/* WYBÓR GWIAZDEK W FORMULARZU */
.star-rating-picker {
  display: inline-flex;
  gap: 8px;
  font-size: 2.2rem;
  cursor: pointer;
}

.star-rating-picker .star-btn {
  color: #475569;
  transition: color 0.15s ease, transform 0.15s ease;
  user-select: none;
}

.star-rating-picker .star-btn.active,
.star-rating-picker .star-btn:hover {
  color: #fbbf24;
  transform: scale(1.15);
  text-shadow: 0 0 14px rgba(251, 191, 36, 0.6);
}

@media (max-width: 900px) {
  .review-card {
    flex: 0 0 calc((100% - 16px) / 2); /* 2 karty na tabletach */
  }
}

@media (max-width: 600px) {
  .review-card {
    flex: 0 0 100%; /* 1 karta na telefonach */
  }
  .carousel-arrow {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .reviews-top-bar {
    text-align: center;
    justify-content: center;
  }
  .reviews-top-bar .section-title-wrap {
    text-align: center !important;
  }
}

/* FAQ */
.faq-section {
  padding: 35px 20px;
  max-width: 820px;
  margin: 0 auto;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: border-color 0.2s;
}

.faq-item:hover, .faq-item.active {
  border-color: rgba(168, 85, 247, 0.5);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  font-size: 1.2rem;
  color: var(--accent-cyan);
  transition: transform 0.2s;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease-out;
  padding: 0 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.faq-item.active .faq-answer {
  padding-bottom: 16px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* STOPKA */
.main-footer {
  background: rgba(7, 5, 16, 0.95);
  border-top: 1px solid var(--border);
  padding: 45px 20px 20px;
  margin-top: 50px;
  backdrop-filter: blur(16px);
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 26px;
  margin-bottom: 26px;
}

.footer-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.5;
}

.server-status {
  margin-top: 14px;
  font-size: 0.78rem;
  color: #c084fc;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-col ul li a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--accent-cyan);
}

.payment-methods-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.pay-badge {
  background: rgba(26, 18, 52, 0.8);
  border: 1px solid var(--border);
  color: #cbd5e1;
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 16px;
  text-align: center;
  font-size: 0.78rem;
  color: #64748b;
}

/* WYSUWANY KOSZYK */
.drawer-overlay,
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
}

.drawer-overlay.active,
.cart-overlay.active {
  display: block;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: var(--drawer-width);
  height: 100vh;
  background: #0b071a;
  border-left: 1px solid var(--border);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.8);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.active {
  right: 0;
}

.drawer-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-header h3 {
  font-size: 1.1rem;
  color: #fff;
}

.drawer-body {
  padding: 20px;
  overflow-y: auto;
  flex-grow: 1;
}

.cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.total-display-row {
  display: flex;
  justify-content: space-between;
  margin: 18px 0;
  font-weight: 800;
  font-size: 1.15rem;
  color: #c084fc;
}

.order-form-box {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.order-form-box h4 {
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 12px;
}

/* MODALE */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: #0d081f;
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 14px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(113, 39, 245, 0.25);
}

.admin-box {
  max-width: 860px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-size: 1.15rem;
  color: #fff;
  font-weight: 700;
}

.btn-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.btn-close:hover {
  color: #fff;
}

/* PANEL ADMINA */
.admin-login-box {
  text-align: center;
  padding: 30px 10px;
}

.admin-login-box p {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.admin-login-box small {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 14px;
}

.pin-input {
  max-width: 220px;
  margin: 0 auto 14px;
  text-align: center;
  letter-spacing: 2px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.stat-card {
  background: rgba(22, 15, 46, 0.85);
  border: 1px solid var(--border);
  padding: 14px;
  border-radius: 10px;
  text-align: center;
}

.stat-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: #c084fc;
}

.stat-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.admin-actions-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.table-container {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: left;
}

th, td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

th {
  background: rgba(26, 17, 52, 0.95);
  color: var(--text-muted);
}

.status-badge, .badge-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}

.status-Oczekujące, .status-Oczekujace, .badge-oczekujace { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.status-W-realizacji, .badge-w-realizacji { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.status-Zrealizowane, .badge-zrealizowane { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.status-Anulowane, .badge-anulowane { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }

/* TOAST */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #110928;
  border: 1px solid var(--accent-cyan);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.88rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.7), 0 0 20px rgba(168, 85, 247, 0.3);
  z-index: 2000;
  display: none;
  cursor: pointer;
}

.toast.show {
  display: block !important;
  animation: fadeInToast 0.3s ease;
}

@keyframes fadeInToast {
  from { opacity: 0; transform: translate(-50%, 15px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 860px) {
  header {
    padding: 12px 18px;
  }
  .desktop-nav,
  .nav-links {
    display: none !important;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .nav-btn-desktop {
    display: none !important;
  }
  .hero {
    padding: 48px 18px 24px;
  }
  .hero h1 {
    font-size: 1.85rem;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .admin-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  header {
    padding: 10px 14px;
  }
  .logo {
    font-size: 1.15rem;
  }
  .cart-btn-label {
    display: none;
  }
  .cart-trigger-btn {
    padding: 7px 11px;
    font-size: 0.8rem;
  }
  .hero {
    padding: 38px 14px 20px;
  }
  .hero-badge {
    font-size: 0.74rem;
    padding: 4px 12px;
  }
  .hero h1 {
    font-size: 1.55rem;
    line-height: 1.28;
  }
  .hero p {
    font-size: 0.88rem;
    margin-bottom: 18px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    font-size: 0.9rem;
  }
  .catalog-section,
  .products-section,
  .custom-section,
  .reviews-section,
  .faq-section {
    padding: 26px 14px;
  }
  .section-title-wrap h2 {
    font-size: 1.35rem;
  }
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-bar .search-box {
    width: 100%;
    min-width: 0;
  }
  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .product-card {
    padding: 16px;
  }
  .card-footer {
    padding-top: 12px;
  }
  .card-price {
    font-size: 1rem;
  }
  .card-price .currency {
    font-size: 0.75rem;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .cart-drawer {
    width: 100%;
    max-width: 100%;
    border-left: none;
  }
  .modal-box {
    padding: 18px 14px;
    border-radius: 12px;
  }
  .form-control {
    font-size: 16px; /* Zapobiega automatycznemu zoomowi formularzy w Safari iOS */
  }
}

@media (max-width: 420px) {
  .hero-stats {
    gap: 10px;
  }
  .hero-stat-item {
    flex: 1 1 130px;
    padding: 12px 8px;
  }
  .hero-stat-item strong {
    font-size: 1.25rem;
  }
  .hero-stat-item span {
    font-size: 0.72rem;
  }
  .card-actions .btn-sm {
    padding: 5px 8px;
    font-size: 0.74rem;
  }
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
