/* ==========================================
   TRAFFIC - PRODUCENT ODZIEŻY CHŁOPIĘCEJ
   Modern CSS Design System & Layout
   ========================================== */

/* --- CSS Variables & Color System --- */
:root {
  --bg-main: #0b0f19;
  --bg-card: rgba(20, 26, 40, 0.75);
  --bg-card-hover: rgba(30, 39, 60, 0.85);
  --bg-nav: rgba(11, 15, 25, 0.9);
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dark: #0f172a;

  /* Traffic Brand Colors from Logo */
  --brand-green: #22c55e;
  --brand-green-glow: rgba(34, 197, 94, 0.35);
  --brand-yellow: #facc15;
  --brand-yellow-glow: rgba(250, 204, 21, 0.3);
  --brand-cyan: #38bdf8;
  --brand-cyan-glow: rgba(56, 189, 248, 0.3);

  --border-light: rgba(255, 255, 255, 0.1);
  --border-active: rgba(34, 197, 94, 0.5);

  --font-heading: 'Outfit', -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.2s ease;
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* --- Layout Utility Classes --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }

.text-green { color: var(--brand-green); }
.text-yellow { color: var(--brand-yellow); }
.text-cyan { color: var(--brand-cyan); }

.text-gradient {
  background: linear-gradient(135deg, var(--brand-yellow) 0%, var(--brand-green) 50%, var(--brand-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Navigation Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-fast);
}

/* --- Allegro Top Announcement Bar --- */
.allegro-top-bar {
  background: linear-gradient(90deg, #181009 0%, #261609 50%, #181009 100%);
  border-bottom: 1px solid rgba(255, 90, 0, 0.35);
  font-size: 0.85rem;
  padding: 0.45rem 0;
  position: relative;
  z-index: 1001;
}

.allegro-top-bar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.allegro-bar-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.allegro-pill {
  background: #ff5a00;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.75rem;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  letter-spacing: -0.3px;
  text-transform: lowercase;
  box-shadow: 0 0 10px rgba(255, 90, 0, 0.4);
}

.allegro-bar-msg {
  color: #e2e8f0;
}

.allegro-bar-msg strong {
  color: #ff8c42;
}

.allegro-bar-link {
  color: #ff8c42;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition-fast);
}

.allegro-bar-link:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo .logo-img {
  height: 64px;
  width: auto;
}

.main-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--brand-green);
  transition: var(--transition-fast);
  border-radius: 2px;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-allegro-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 90, 0, 0.12);
  border: 1px solid rgba(255, 90, 0, 0.45);
  color: #ff8c42 !important;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.nav-allegro-btn:hover {
  background: #ff5a00;
  color: #ffffff !important;
  border-color: #ff5a00;
  box-shadow: 0 4px 14px rgba(255, 90, 0, 0.35);
  transform: translateY(-2px);
}

.nav-allegro-btn::after {
  display: none;
}

.nav-allegro-tag {
  background: #ff5a00;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  text-transform: lowercase;
}

.nav-allegro-btn:hover .nav-allegro-tag {
  background: #ffffff;
  color: #ff5a00;
}

.btn-nav-cta {
  background: var(--brand-green);
  color: var(--text-dark) !important;
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  box-shadow: 0 4px 14px var(--brand-green-glow);
}

.btn-nav-cta:hover {
  transform: translateY(-2px);
  background: #25e06b;
  box-shadow: 0 6px 20px var(--brand-green-glow);
}

.btn-nav-cta::after {
  display: none;
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}

.hamburger-bar {
  width: 26px;
  height: 3px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-green) 0%, #16a34a 100%);
  color: #052e16;
  box-shadow: 0 8px 24px var(--brand-green-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px var(--brand-green-glow);
  background: linear-gradient(135deg, #2cf075 0%, #15803d 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--brand-yellow);
  color: var(--brand-yellow);
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

.btn-outline:hover {
  border-color: var(--brand-green);
  color: var(--brand-green);
  background: rgba(34, 197, 94, 0.08);
}

.btn-block {
  width: 100%;
}

/* --- Badges --- */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-green);
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--brand-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--brand-green);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

/* --- Hero Section --- */
.hero-section {
  padding-top: 10rem;
  padding-bottom: 6rem;
  position: relative;
  overflow: hidden;
}

.hero-bg-accent {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.15) 0%, rgba(56, 189, 248, 0.1) 40%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}

/* --- Hero Allegro Callout Box --- */
.hero-allegro-box {
  margin-bottom: 2.2rem;
  background: linear-gradient(135deg, rgba(255, 90, 0, 0.15) 0%, rgba(20, 26, 40, 0.94) 55%, rgba(15, 23, 42, 0.98) 100%);
  border: 2px solid #ff5a00;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.8rem;
  position: relative;
  box-shadow: 0 12px 36px rgba(255, 90, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: var(--transition-smooth);
}

.hero-allegro-box:hover {
  transform: translateY(-4px);
  border-color: #ff7d2b;
  box-shadow: 0 18px 48px rgba(255, 90, 0, 0.38);
}

.allegro-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.allegro-logo-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.allegro-logo-tag {
  background: #ff5a00;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.15rem;
  padding: 0.2rem 0.75rem;
  border-radius: 6px;
  letter-spacing: -0.5px;
  box-shadow: 0 2px 10px rgba(255, 90, 0, 0.4);
}

.allegro-official-text {
  color: #fdba74;
  font-size: 0.88rem;
  font-weight: 700;
}

.allegro-smart-badge {
  background: #00a4e4;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  font-style: italic;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 164, 228, 0.4);
}

.allegro-box-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.45rem;
  line-height: 1.25;
}

.allegro-box-desc {
  color: #cbd5e1;
  font-size: 0.95rem;
  margin-bottom: 1.3rem;
  line-height: 1.45;
}

.btn-allegro-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: linear-gradient(135deg, #ff5a00 0%, #d84315 100%);
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  padding: 1.05rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 26px rgba(255, 90, 0, 0.45);
  transition: var(--transition-smooth);
  width: 100%;
  text-decoration: none;
  cursor: pointer;
}

.btn-allegro-large:hover {
  background: linear-gradient(135deg, #ff7326 0%, #ff5a00 100%);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(255, 90, 0, 0.65);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.mini-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  font-size: 0.88rem;
  color: var(--text-main);
}

.mini-badge svg {
  color: var(--brand-yellow);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero Media Frame & Floating Cards */
.media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
}

.hero-img {
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-light);
  width: 100%;
  object-fit: cover;
}

.floating-card {
  position: absolute;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-light);
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  animation: floatAnim 4s ease-in-out infinite alternate;
}

.size-card {
  top: 10%;
  left: -8%;
}

.quality-card {
  bottom: 8%;
  right: -5%;
  animation-delay: 2s;
}

.card-icon {
  font-size: 1.8rem;
}

.floating-card strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-main);
}

.floating-card span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

@keyframes floatAnim {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

/* --- Section Titles --- */
.section-header {
  margin-bottom: 3.5rem;
}

.section-subtitle {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-green);
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-main);
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0.8rem auto 0 auto;
}

/* --- About Section Cards --- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  transition: var(--transition-smooth);
}

.about-card:hover {
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  border-color: var(--border-active);
}

.about-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.about-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
}

.about-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* --- Product Cards Section --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.2rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--brand-green);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.product-img-wrapper {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: #111625;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
}

.badge-yellow { background: var(--brand-yellow); color: #422006; }
.badge-cyan { background: var(--brand-cyan); color: #082f49; }
.badge-green { background: var(--brand-green); color: #052e16; }

.product-details {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.product-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

.product-features {
  margin-bottom: 1.8rem;
  margin-top: auto;
}

.product-features li {
  font-size: 0.88rem;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

/* Product Card Actions & Small Allegro Button */
.product-card-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.product-card-actions .btn {
  flex: 1;
  min-width: 130px;
}

.btn-allegro-sm {
  background: linear-gradient(135deg, #ff5a00 0%, #e65100 100%);
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(255, 90, 0, 0.35);
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-allegro-sm:hover {
  background: linear-gradient(135deg, #ff701e 0%, #ff5a00 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 90, 0, 0.5);
}

/* --- Size Section & Interactive Table --- */
.size-section {
  background: rgba(15, 23, 42, 0.4);
}

.size-finder-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  max-width: 600px;
  margin: 0 auto 3rem auto;
  text-align: center;
}

.size-finder-box h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
}

.finder-controls {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
}

.finder-controls .form-group {
  text-align: left;
}

.finder-controls label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.finder-controls input {
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  width: 140px;
  font-weight: 700;
  font-size: 1.1rem;
}

.finder-result {
  margin-top: 1.2rem;
  padding: 0.9rem;
  background: rgba(34, 197, 94, 0.12);
  border: 1px stroke var(--brand-green);
  border-radius: var(--radius-sm);
  color: var(--brand-green);
  font-size: 1rem;
}

/* Size Table */
.table-responsive {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: var(--bg-card);
}

.size-table th, .size-table td {
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--border-light);
}

.size-table th {
  background: rgba(30, 41, 59, 0.9);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--brand-yellow);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.size-table tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.size-table tr.highlight-row {
  background: rgba(34, 197, 94, 0.15);
}

.pop-badge {
  font-size: 0.7rem;
  background: var(--brand-green);
  color: #052e16;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  margin-left: 0.4rem;
  font-weight: 800;
}

/* --- Quality Section --- */
.quality-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: center;
}

.quality-img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.quality-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.quality-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.quality-list li {
  display: flex;
  gap: 1rem;
}

.check-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.2);
  color: var(--brand-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.quality-list strong {
  display: block;
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.quality-list p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- Wholesale Quote Calculator --- */
.calculator-section {
  background: linear-gradient(180deg, var(--bg-main) 0%, #0d1322 100%);
}

.calc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.calc-inputs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: rgba(10, 15, 26, 0.8);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-main);
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px var(--brand-green-glow);
}

.calc-output-box {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.calc-summary-item span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.calc-summary-item strong {
  font-size: 1.15rem;
  color: var(--text-main);
}

/* --- Contact Section --- */
.contact-box-center {
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.contact-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.c-info-card-link {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: rgba(15, 23, 42, 0.7);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: var(--transition-smooth);
}

.c-info-card-link:hover {
  transform: translateY(-3px);
  border-color: var(--brand-green);
  box-shadow: 0 10px 25px var(--brand-green-glow);
  background: rgba(20, 30, 55, 0.9);
}

.c-icon {
  font-size: 2rem;
}

.c-info-card-link strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.c-info-card-link p {
  color: var(--brand-yellow);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.c-hint {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.contact-allegro-cta {
  margin-top: 2rem;
}

/* --- FAQ Accordion --- */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-item[open] {
  border-color: var(--brand-green);
}

.faq-question {
  padding: 1.3rem 1.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  outline: none;
  user-select: none;
  position: relative;
}

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

.faq-answer {
  padding: 0 1.6rem 1.4rem 1.6rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* --- Footer --- */
.site-footer {
  background: #060911;
  border-top: 1px solid var(--border-light);
  padding-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-logo {
  height: 48px;
  margin-bottom: 1.2rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 400px;
}

.footer-links h4, .footer-contact h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--brand-yellow);
  margin-bottom: 1.2rem;
}

.footer-links ul li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--brand-green);
}

.footer-contact p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}

.footer-bottom {
  background: #03050a;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* --- Modal Overlay --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #111827;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 600px;
  width: 90%;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--brand-green);
}

/* --- Mobile Bottom App Bar Navigation --- */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: rgba(11, 15, 25, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 1500;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.55);
  padding: 0 0.4rem;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  justify-content: space-around;
  align-items: center;
}

.bottom-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 6px;
  border-radius: 10px;
  transition: all 0.2s ease;
  flex: 1;
  text-align: center;
}

.bottom-bar-item svg {
  stroke: var(--text-muted);
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.bottom-bar-item:hover,
.bottom-bar-item.active {
  color: var(--brand-green);
}

.bottom-bar-item.active svg {
  stroke: var(--brand-green);
  transform: translateY(-1px);
}

/* --- Responsive Breakpoints --- */
@media (max-width: 992px) {
  .hero-grid, .quality-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
}

@media (max-width: 768px) {
  /* Odstęp dolny na ciele strony, by pasek nawigacyjny nie zasłaniał treści */
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  /* Ukryj górny baner Allegro na telefonie */
  .allegro-top-bar {
    display: none !important;
  }

  /* Nagłówek u góry: po lewej Logo, po prawej Allegro */
  .header-container {
    height: 60px;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .brand-logo .logo-img {
    height: 44px;
    width: auto;
  }

  /* Ukryj menu desktopowe i stary przycisk hamburgera */
  .main-nav {
    display: none !important;
  }

  .mobile-toggle {
    display: none !important;
  }

  /* Przycisk Allegro w prawym górnym rogu */
  .nav-allegro-btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    gap: 0.35rem;
    box-shadow: 0 2px 10px rgba(255, 90, 0, 0.25);
  }

  .nav-allegro-tag {
    font-size: 0.68rem;
    padding: 0.1rem 0.3rem;
  }

  /* Pokaż dolny pasek nawigacji */
  .mobile-bottom-bar {
    display: flex;
  }

  /* Znacznie zmniejszone odstępy pomiędzy sekcjami */
  .section {
    padding: 2.5rem 0;
  }

  .hero-section {
    padding: 1.2rem 0 2rem 0;
  }

  .section-header {
    margin-bottom: 1.4rem;
    text-align: center;
  }

  .section-subtitle {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
  }

  .section-title {
    font-size: 1.65rem;
    line-height: 1.25;
    margin-bottom: 0.5rem;
  }

  .section-desc {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .hero-title {
    font-size: 1.85rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
  }

  .hero-description {
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 1rem;
  }

  .hero-allegro-box {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: var(--radius-md);
  }

  .allegro-box-title {
    font-size: 1.1rem;
  }

  .allegro-box-desc {
    font-size: 0.85rem;
  }

  .btn-allegro-large {
    font-size: 0.95rem;
    padding: 0.75rem 1.2rem;
  }

  .hero-badges {
    gap: 0.4rem;
    margin: 0.8rem 0;
  }

  .mini-badge {
    font-size: 0.78rem;
    padding: 0.3rem 0.6rem;
  }

  .hero-actions {
    margin-top: 1rem;
    gap: 0.6rem;
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .about-grid, .product-grid {
    gap: 1rem;
  }

  .about-card {
    padding: 1.2rem;
  }

  .product-details {
    padding: 1.2rem;
  }

  .quality-content {
    padding-top: 0.2rem;
  }

  .quality-list {
    gap: 0.9rem;
  }

  .quality-list li {
    gap: 0.75rem;
  }

  .contact-box-center {
    padding: 1.6rem 1.1rem;
    border-radius: var(--radius-md);
  }

  .contact-lead {
    font-size: 0.92rem;
    margin-bottom: 1.5rem !important;
  }

  .contact-cards-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .c-info-card-link {
    padding: 0.9rem 1rem;
  }

  .faq-accordion {
    gap: 0.5rem;
  }

  .faq-item summary {
    padding: 0.9rem 1rem;
    font-size: 0.92rem;
  }

  .faq-answer {
    padding: 0.2rem 1rem 0.9rem 1rem;
    font-size: 0.88rem;
  }

  .modal-content {
    padding: 1.4rem 1.1rem;
  }

  .size-card, .quality-card {
    position: static;
    margin-top: 0.75rem;
  }
}

/* --- W-F Shirt Photo Gallery --- */
.wf-gallery {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.wf-photo-wrapper {
  position: relative;
  height: 200px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
}

.wf-photo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.photo-label {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(15, 23, 42, 0.85);
  color: var(--brand-green);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.wf-photo-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.thumb-btn {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 4px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: all 0.2s ease;
}

.thumb-btn img {
  width: 100%;
  height: 38px;
  object-fit: contain;
  border-radius: 4px;
  background: #ffffff;
}

.thumb-btn span {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.thumb-btn:hover, .thumb-btn.active {
  border-color: var(--brand-green);
  background: rgba(34, 197, 94, 0.15);
}

.thumb-btn.active span {
  color: var(--brand-green);
}

/* --- Photo Coming Soon Placeholder --- */
.photo-coming-soon {
  width: 100%;
  min-height: 240px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--text-muted);
  gap: 0.6rem;
  position: relative;
  transition: var(--transition-smooth);
}

.product-card:hover .photo-coming-soon {
  border-color: var(--brand-green);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
}

.photo-coming-soon .cs-icon {
  font-size: 2.2rem;
  background: rgba(34, 197, 94, 0.1);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-green);
  border: 1px solid rgba(34, 197, 94, 0.25);
  margin-bottom: 0.2rem;
}

.photo-coming-soon h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--brand-yellow);
  margin: 0;
}

.photo-coming-soon p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 220px;
  line-height: 1.4;
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 960px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 20px rgba(34, 197, 94, 0.15);
  z-index: 9999;
  padding: 1.25rem 1.5rem;
  animation: slideUpFade 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.cookie-banner-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0;
  max-width: 100%;
}

.cookie-banner-content {
  flex: 1;
}

.cookie-banner-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--brand-yellow);
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.cookie-banner-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.cookie-link {
  color: var(--brand-green);
  text-decoration: underline;
  font-weight: 600;
}

.cookie-link:hover {
  color: #25e06b;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-cookie-accept {
  background: var(--brand-green);
  color: var(--text-dark);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--brand-green-glow);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.btn-cookie-accept:hover {
  background: #2cf075;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--brand-green-glow);
}

.btn-cookie-reject {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.btn-cookie-reject:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

@media (max-width: 768px) {
  .cookie-banner {
    bottom: 80px;
    width: calc(100% - 24px);
    padding: 1rem;
  }

  .cookie-banner-container {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .cookie-banner-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .btn-cookie-accept, .btn-cookie-reject {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* --- Privacy Policy Page Styles --- */
.privacy-page-container {
  padding-top: 8.5rem;
  padding-bottom: 5rem;
}

.privacy-header {
  text-align: center;
  margin-bottom: 3rem;
}

.privacy-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text-main);
  margin: 0.8rem 0 0.4rem;
}

.privacy-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.privacy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  backdrop-filter: blur(12px);
  max-width: 920px;
  margin: 0 auto;
}

.privacy-section {
  margin-bottom: 2.5rem;
}

.privacy-section h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--brand-yellow);
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.5rem;
}

.privacy-section p {
  color: var(--text-main);
  font-size: 0.96rem;
  line-height: 1.7;
  margin-bottom: 0.8rem;
}

.privacy-section ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.privacy-section li {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.privacy-section li strong {
  color: var(--text-main);
}

.privacy-section code {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.88rem;
  color: var(--brand-cyan);
}

.cookie-types-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.2rem 0;
}

@media (max-width: 640px) {
  .cookie-types-grid {
    grid-template-columns: 1fr;
  }
}

.cookie-type-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.2rem;
}

.cookie-type-box h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--brand-green);
  margin-bottom: 0.5rem;
}

.cookie-type-box p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.privacy-consent-controls {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.2rem 0;
}

.consent-status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  margin-left: 0.4rem;
}

.consent-granted {
  background: rgba(34, 197, 94, 0.2);
  color: var(--brand-green);
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.consent-denied {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.privacy-footer-action {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-nav-back {
  font-size: 0.88rem;
  padding: 0.5rem 1.1rem;
}

@media (max-width: 768px) {
  .privacy-card {
    padding: 1.75rem 1.25rem;
  }
}


