/* ═══════════════════════════════════════════════════════════════════════════
   Archibalance Collection — Main Stylesheet
   Design Tokens + Custom Styles (komplementarne do Tailwind)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── CSS Variables / Design Tokens ─────────────────────────────────────── */
:root {
  --gold:       #C9A84C;
  --gold-dark:  #A88530;
  --gold-pale:  #F0E0A8;
  --gold-bg:    #FBF5E8;
  --paper:      #F7F0E0;
  --paper-mid:  #EDE0C4;
  --paper-deep: #DFD0AA;
  --ink:        #18140E;
  --ink-mid:    #3D3322;
  --ink-soft:   #7A6B55;
  --ink-ghost:  rgba(24,20,14,0.06);
  --charcoal:   #22201A;
  --white:      #FEFCF7;
  --kegel-dark: #1A1714;
  --kegel-mid:  #2A2520;
  --terra:      #8C4A28;
}

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

html {
  scroll-behavior: smooth;
  width: 100% !important;
  max-width: 100% !important;
  background: var(--charcoal) !important;
}

body {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

/* ─── Force block display na elementach layoutu (Tailwind preflight override) */
section, header, footer, main, nav, article, aside {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* ─── WordPress Admin Bar — kompensacja wysokości ────────────────────────── */
.admin-bar .hero {
  /* hero używa height: 100vh — admin bar (32px) przesuwa html,
     compensate żeby hero nie wychodził poza viewport */
  height: calc(100vh - 32px);
}
@media screen and (max-width: 782px) {
  .admin-bar .hero { height: calc(100vh - 46px); }
}

/* Grain texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
}

a,
a:link,
a:visited,
a:hover,
a:active,
a:focus {
  text-decoration: none !important;
  color: inherit;
}
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* Italic gold em (używane w nagłówkach) */
em, .gold-em {
  font-style: italic;
  color: var(--terra);
}

/* ─── Typography ─────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  line-height: 1.15;
}

.font-elegant {
  font-family: 'Cormorant Garamond', serif;
}

/* ─── Utility: Eyebrow — ujednolicony tag nad nagłówkiem ─────────────────── */
/* Używaj .eyebrow-line wszędzie. Na ciemnym tle dodaj --light */
.eyebrow-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.eyebrow-line__bar {
  display: block;
  flex-shrink: 0;
  width: 36px;
  height: 1px;
  background: var(--gold);
  opacity: 0.8;
}

.eyebrow-line__text {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 0.5625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Variant dla ciemnych sekcji (np. Kegel) */
.eyebrow-line--light .eyebrow-line__bar {
  background: rgba(201,168,76,0.5);
}

.eyebrow-line--light .eyebrow-line__text {
  color: rgba(201,168,76,0.75);
}

/* Legacy — zachowany dla kompatybilności, nie używać w nowym kodzie */
.eyebrow {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 0.5625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.75rem;
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.875em 1.75em;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover { background: var(--gold-dark); }

.btn-gold-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-gold-outline:hover {
  background: var(--gold);
  color: var(--ink);
}

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

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--paper-deep);
}
.btn-outline:hover {
  border-color: var(--ink);
}

.btn-ghost-white {
  background: transparent;
  color: rgba(254,252,247,0.85) !important;
  border: 1px solid rgba(254,252,247,0.25);
}
.btn-ghost-white:hover {
  background: rgba(254,252,247,0.08);
  color: var(--white) !important;
  border-color: rgba(254,252,247,0.45);
  box-shadow: 0 0 16px rgba(254,252,247,0.12);
}

/* ─── Navigation ─────────────────────────────────────────────────────────── */
#mainNav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: 120px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 40px;
  transition: background 0.4s ease, box-shadow 0.4s ease, height 0.4s ease;
}

#mainNav.scrolled {
  height: 72px;
  background: rgba(247,240,224,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--paper-mid);
}

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

.nav-links a {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  transition: color 0.2s;
}

#mainNav.scrolled .nav-links a { color: var(--ink-soft); }

.nav-links a:hover { color: var(--gold); }
#mainNav.scrolled .nav-links a:hover { color: var(--gold-dark); }

.nav-links .nav-cta {
  color: var(--gold) !important;
  font-weight: 400;
}

.nav-logo {
  text-align: center;
}

.nav-logo-brand {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--white);
  line-height: 1;
  transition: color 0.4s;
}

.nav-logo-sub {
  display: block;
  font-size: 0.5rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(254,252,247,0.5);
  margin-top: 2px;
  transition: color 0.4s;
}

#mainNav.scrolled .nav-logo-brand { color: var(--ink); }
#mainNav.scrolled .nav-logo-sub   { color: var(--ink-soft); }

/* Logo SVG (inline) w nawigacji */
.nav-logo__link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.nav-logo__link svg {
  height: 110px;
  width: 110px;
  display: block;
  flex-shrink: 0;
  transition: height 0.4s ease, width 0.4s ease;
}
/* Kolor ścieżek logo — białe na ciemnym navbarze */
.nav-logo__link svg path,
.nav-logo__link svg .cls-1 {
  fill: var(--white);
  transition: fill 0.4s;
}
/* Po scrollu — logo mniejsze, ciemne */
#mainNav.scrolled .nav-logo__link svg {
  height: 52px;
  width: 52px;
}
#mainNav.scrolled .nav-logo__link svg path,
#mainNav.scrolled .nav-logo__link svg .cls-1 {
  fill: var(--ink);
}

/* Custom logo WordPress w nawigacji (fallback) */
.nav-logo .custom-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.nav-logo .custom-logo {
  max-height: 44px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  transition: filter 0.4s;
}
#mainNav.scrolled .nav-logo .custom-logo {
  filter: brightness(0);
}

/* Custom logo w stopce */
.footer-logo .custom-logo-link { display: block; text-decoration: none; }
.footer-logo .custom-logo {
  max-height: 36px;
  width: auto;
  opacity: 0.7;
  filter: brightness(0) invert(1);
}

/* Social links w stopce */
.footer-socials {
  display: flex;
  gap: 1rem;
  margin-top: 1.25rem;
}
.footer-socials a {
  font-size: 0.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(254,252,247,0.4);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-socials a:hover { color: var(--gold); }

.nav-right { justify-content: flex-end; }

/* ─── HERO SECTION ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  background: var(--charcoal);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(201,168,76,0.05) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(140,74,40,0.04) 0%, transparent 50%),
    linear-gradient(180deg, rgba(24,20,14,0.5) 0%, rgba(24,20,14,0.1) 50%, rgba(24,20,14,0.7) 100%);
  pointer-events: none;
}

/* ── Decorative frame corners ─────────────────────────────────────────────── */
.hero-frame {
  position: absolute;
  z-index: 4;
  width: 56px;
  height: 56px;
}
.hero-frame--tl { top: 28px; left: 28px; border-top: 1px solid rgba(201,168,76,0.35); border-left: 1px solid rgba(201,168,76,0.35); }
.hero-frame--tr { top: 28px; right: 28px; border-top: 1px solid rgba(201,168,76,0.35); border-right: 1px solid rgba(201,168,76,0.35); }
.hero-frame--bl { bottom: 28px; left: 28px; border-bottom: 1px solid rgba(201,168,76,0.35); border-left: 1px solid rgba(201,168,76,0.35); }
.hero-frame--br { bottom: 28px; right: 28px; border-bottom: 1px solid rgba(201,168,76,0.35); border-right: 1px solid rgba(201,168,76,0.35); }

/* ── Meta strip — pasek kategorii nad showcase ────────────────────────────── */
.hero-meta-strip {
  position: relative;
  z-index: 3;
  padding: 10px 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid rgba(201,168,76,0.15);
}
.hero-meta-strip span {
  font-size: 0.5rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.5);
}
.hero-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(201,168,76,0.3);
  flex-shrink: 0;
}

/* ── Center content ───────────────────────────────────────────────────────── */
.hero-center {
  flex: 1;
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 40px 20px; /* 120px = wysokość dużego navbaru */
}

/* Circular emblem */
.hero-emblem {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  opacity: 0.85;
}

/* Thin ornamental lines */
.hero-orn-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.hero-orn-line::before,
.hero-orn-line::after {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background: rgba(201,168,76,0.35);
}
.hero-orn-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(201,168,76,0.5);
}

/* Title */
.hero-title {
  margin-bottom: 0.5rem;
  line-height: 1;
}
.hero-title-line1 {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.75rem, 9vw, 6.5rem);
  font-weight: 400;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.0;
}
.hero-title-line2 {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.25rem, 8.5vw, 6rem);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: -0.01em;
  line-height: 1.05;
}

/* Diamond ornament */
.hero-diamond {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0.875rem 0;
}
.hero-diamond::before,
.hero-diamond::after {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background: rgba(201,168,76,0.3);
}
.hero-diamond-dot {
  width: 5px;
  height: 5px;
  transform: rotate(45deg);
  background: rgba(201,168,76,0.5);
}

/* Subtitle */
.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1875rem;
  font-style: italic;
  font-weight: 300;
  color: rgba(254,252,247,0.55);
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

/* Actions */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-est {
  font-size: 0.5625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(254,252,247,0.25);
}

/* ── Bottom showcase strip ────────────────────────────────────────────────── */
.hero-showcase {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 38vh;
  min-height: 220px;
  flex-shrink: 0;
}

.showcase-slot {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
}

.showcase-slot::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(24,20,14,0.0) 30%, rgba(24,20,14,0.72) 100%);
  transition: opacity 0.3s ease;
}

.showcase-slot:hover::after {
  opacity: 0.7;
}

/* Vertical separator lines */
.showcase-slot + .showcase-slot {
  border-left: 1px solid rgba(201,168,76,0.12);
}

.showcase-slot:hover .showcase-img-wrap img {
  transform: scale(1.05);
}

.showcase-img-wrap {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.showcase-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: sepia(15%) saturate(80%) brightness(0.75);
  transition: transform 0.7s ease;
}

.showcase-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: rgba(24,20,14,0.6);
  opacity: 0.5;
}

/* Labels at bottom of each slot */
.showcase-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1.25rem 1.125rem;
  z-index: 3;
}

.showcase-meta-cat {
  display: block;
  font-size: 0.475rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.7);
  margin-bottom: 4px;
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.625rem;
}

.showcase-meta-name {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 0.875rem;
  color: rgba(254,252,247,0.9);
  line-height: 1.3;
}

/* Featured badge on slot */
.showcase-badge {
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 3;
}
.showcase-badge span {
  font-size: 0.45rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  padding: 0.3em 0.9em;
}

/* ─── KEGEL SECTION ──────────────────────────────────────────────────────── */
.kegel-section {
  background: var(--kegel-dark);
  position: relative;
  overflow: hidden;
  padding: 96px 64px;
}

.kegel-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 50% 60% at 80% 50%, rgba(201,168,76,0.04), transparent);
  pointer-events: none;
}

.kegel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}


.kegel-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.kegel-title em {
  color: var(--gold);
  font-style: italic;
}

.kegel-desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.0625rem;
  color: rgba(254,252,247,0.55);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.kegel-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.kegel-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(201,168,76,0.12);
}

.kegel-stat-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
}

.kegel-stat-label {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(254,252,247,0.35);
  margin-top: 0.4rem;
}

/* Kegel right — product cards */
.kegel-products {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kegel-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: rgba(254,252,247,0.03);
  border: 1px solid rgba(201,168,76,0.1);
  transition: all 0.25s ease;
  cursor: pointer;
}

.kegel-card:hover {
  background: rgba(201,168,76,0.05);
  border-color: rgba(201,168,76,0.25);
}

.kegel-card-id {
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.6;
  margin-bottom: 4px;
}

.kegel-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 0.9375rem;
  color: var(--white);
}

.kegel-card-arrow {
  color: var(--gold);
  opacity: 0.4;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.kegel-card:hover .kegel-card-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* ─── CATEGORIES SECTION ─────────────────────────────────────────────────── */
.categories-section {
  padding: 96px 64px;
  background: var(--paper);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-title em { color: var(--terra); }

.section-desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.0625rem;
  color: var(--ink-soft);
  line-height: 1.75;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--paper-mid);
  max-width: 1200px;
  margin: 0 auto;
}

.cat-card {
  background: var(--paper);
  padding: 2.5rem 2rem;
  position: relative;
  text-decoration: none;
  transition: all 0.3s ease;
  border-top: 2px solid transparent;
  cursor: pointer;
}

.cat-card:hover {
  background: var(--white);
  border-top-color: var(--gold);
}

.cat-num {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 400;
  color: var(--paper-deep);
  line-height: 1;
  margin-bottom: 1rem;
  transition: color 0.3s;
}

.cat-card:hover .cat-num { color: var(--gold-pale); }

.cat-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.875rem;
  line-height: 1.3;
}

.cat-desc {
  font-size: 0.8125rem;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.cat-cta {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 400;
  transition: color 0.2s;
}

.cat-card:hover .cat-cta { color: var(--gold); }

/* ─── PRODUCTS SECTION (ps-*) ────────────────────────────────────────────── */
.ps-section {
  background: var(--paper);
  padding-bottom: 80px;
}

.ps-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 64px;
}

/* Header */
.ps-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  padding-top: 80px;
  padding-bottom: 3rem;
}

.ps-header__left {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.ps-deco {
  font-family: 'Cormorant Garamond', serif;
  font-size: 8rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 0.85;
  flex-shrink: 0;
  opacity: 0.9;
  user-select: none;
}

.ps-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  margin: 0.5rem 0 0;
}
.ps-title em {
  color: var(--terra);
  font-style: italic;
}

.ps-header__right {
  padding-top: 3.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.8;
  text-align: right;
}

.ps-header-cta {
  display: inline-block;
  margin-top: 1rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark) !important;
  transition: color 0.2s;
}
.ps-header-cta:hover { color: var(--gold) !important; }

/* Tabs bar */
.ps-tabs-bar {
  background: var(--paper-mid);
  border-top: 1px solid var(--paper-deep);
  border-bottom: 1px solid var(--paper-deep);
}

.ps-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.ps-tab {
  background: transparent;
  border: none;
  border-right: 1px solid var(--paper-deep);
  padding: 1.25rem 1.5rem 1.5rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
}
.ps-tab:last-child { border-right: none; }
.ps-tab:hover      { background: rgba(255,255,255,0.5); }
.ps-tab.is-active  {
  background: var(--white);
  box-shadow: inset 0 -3px 0 var(--gold);
}
.ps-tab.is-active .ps-tab__arrow { opacity: 1; }

.ps-tab__num {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 0.5rem;
  line-height: 1;
}
.ps-tab__name {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.ps-tab__count {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.5625rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.ps-tab__arrow {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: var(--ink-soft);
  opacity: 0;
  transition: opacity 0.2s;
}

/* Context bar */
.ps-context {
  background: var(--paper);
  border-bottom: 1px solid var(--paper-deep);
}
.ps-context__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}
.ps-context__label,
.ps-context__avail {
  font-family: 'Outfit', sans-serif;
  font-size: 0.5625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Panel visibility */
.ps-panel { display: none; }
.ps-panel.is-active { display: block; }

/* ── Featured product ───────────────────────────────────────────────────── */
.ps-featured {
  display: grid;
  grid-template-columns: 55% 45%;
  min-height: 400px;
  cursor: pointer;
  background: var(--white);
  border-bottom: 1px solid var(--paper-mid);
  margin-top: 0;
}
.ps-featured:hover .ps-featured__img img { transform: scale(1.03); }

.ps-featured__img {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  max-height: 520px;
}
.ps-featured__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* nadpisywane przez JS gdy pionowe → contain */
  display: block;
  transition: transform 0.6s ease;
  filter: sepia(5%) saturate(90%);
}

.ps-featured__body {
  padding: 3rem 3rem 3rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ps-featured__tags {
  font-family: 'Outfit', sans-serif;
  font-size: 0.5625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}

.ps-featured__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.ps-featured__desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.ps-dashed-hr {
  border: none;
  border-top: 1px dashed var(--paper-deep);
  margin: 0 0 2rem;
}

/* CTA button — outline style */
.ps-cta-btn {
  display: inline-block;
  padding: 0.8em 1.75em;
  font-family: 'Outfit', sans-serif;
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  align-self: flex-start;
}
.ps-cta-btn:hover {
  background: var(--ink);
  color: var(--white);
}
.ps-cta-btn--sm {
  font-size: 0.625rem;
  padding: 0.65em 1.25em;
  margin-top: 1rem;
}

/* ── Product grid ───────────────────────────────────────────────────────── */
.ps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--paper-mid);
}

.ps-card {
  background: var(--white);
  border-right: 1px solid var(--paper-mid);
  border-bottom: 1px solid var(--paper-mid);
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  flex-direction: column;
}
.ps-card:nth-child(3n) { border-right: none; }
.ps-card:hover { background: var(--paper); }
.ps-card:hover .ps-card__img img { transform: scale(1.04); }

.ps-card__img {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--paper-mid);
}
.ps-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  filter: sepia(5%) saturate(90%);
}

.ps-img-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
}

.ps-card__body {
  padding: 1.5rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.ps-card__cat {
  font-family: 'Outfit', sans-serif;
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.75rem;
}
.ps-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}
.ps-card__desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: 1.65;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Empty state */
.ps-empty {
  padding: 4rem 0;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--ink-soft);
}
.ps-empty a { color: var(--gold-dark) !important; transition: color 0.2s; }
.ps-empty a:hover { color: var(--gold) !important; }


/* ═══════════════════════════════════════════════════════════════════════════
   KATALOGI SECTION — Premium editorial document cards
   ═══════════════════════════════════════════════════════════════════════════ */

.katalogi-section {
  padding: 96px 64px;
  background: var(--paper);
  border-top: 1px solid var(--paper-mid);
}

/* Nagłówek */
.katalogi-header {
  max-width: 1200px;
  margin: 0 auto 3.5rem;
}

.katalogi-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  color: var(--ink);
  margin: 0.5rem 0 0.75rem;
  line-height: 1.2;
}

.katalogi-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 540px;
}

/* Grid kart */
.katalogi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Karta katalogu */
.katalog-card {
  display: flex;
  flex-direction: row;
  background: var(--white);
  border: 1px solid var(--paper-mid);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.katalog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.katalog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(24,20,14,0.1);
}

.katalog-card:hover::before {
  transform: scaleX(1);
}

/* Lewa ciemna kolumna */
.katalog-card__left {
  width: 160px;
  flex-shrink: 0;
  background: var(--charcoal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 1.25rem;
  position: relative;
  overflow: hidden;
}

.katalog-card__left::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(201,168,76,0.06), transparent 70%);
  pointer-events: none;
}

.katalog-card__roman {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 400;
  font-style: italic;
  color: rgba(201,168,76,0.2);
  line-height: 1;
  letter-spacing: -0.02em;
  align-self: flex-start;
}

.katalog-card__doc-icon {
  width: 60px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.katalog-card:hover .katalog-card__doc-icon {
  transform: scale(1.08) rotate(-2deg);
}

.katalog-card__cat {
  font-family: 'Outfit', sans-serif;
  font-size: 0.4375rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.5);
  text-align: center;
  line-height: 1.4;
}

/* Prawa jasna kolumna */
.katalog-card__right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem 2rem 1.75rem;
  border-left: 1px solid var(--paper-mid);
}

.katalog-card__content {
  flex: 1;
}

.katalog-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.katalog-card__desc {
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.katalog-card__meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.katalog-card__meta span {
  font-family: 'Outfit', sans-serif;
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--paper);
  padding: 0.35em 0.75em;
  border: 1px solid var(--paper-deep);
}

/* CTA przycisk */
.katalog-card__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  background: var(--gold);
  color: var(--ink);
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
  margin: 0 -2rem -1.75rem;
}

.katalog-card:hover .katalog-card__cta {
  background: var(--gold-dark);
  color: var(--white);
}

.katalog-card__cta-text {
  font-family: 'Outfit', sans-serif;
  font-size: 0.5625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
}

.katalog-card__cta-icon {
  font-size: 1rem;
  transition: transform 0.25s ease;
}

.katalog-card:hover .katalog-card__cta-icon {
  transform: translateX(4px);
}

/* ─── ABOUT SECTION ──────────────────────────────────────────────────────── */
.about-section {
  padding: 96px 64px;
  background: var(--paper);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 2rem;
  line-height: 1.25;
}

.about-text p {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.about-kegel-card {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--gold-bg);
  border-left: 3px solid var(--gold);
}

.about-kegel-title {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.625rem;
}

.about-kegel-desc {
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.about-visual {
  position: relative;
}

.about-img-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--paper-mid);
}

.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(10%) saturate(85%);
}

.about-quote-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(24,20,14,0.85));
}

.about-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-style: italic;
  color: rgba(254,252,247,0.85);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.about-quote-cite {
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
}

/* ─── CONTACT SECTION ────────────────────────────────────────────────────── */
/* ═══════════════════════════════════════════════════════════════════════════
   SEKCJA KONTAKT — Light editorial design
   ═══════════════════════════════════════════════════════════════════════════ */

.contact-section {
  padding: 96px 64px;
  background: var(--paper);
  position: relative;
  overflow: hidden;
}

/* Dekoracyjny "24h" ghost */
.contact-ghost-24h {
  position: absolute;
  left: 2%;
  bottom: -2%;
  font-family: 'Playfair Display', serif;
  font-size: clamp(8rem, 18vw, 16rem);
  font-weight: 400;
  color: rgba(201,168,76,0.07);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
}

/* Layout */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ─── Lewa kolumna ──────────────────────────────────────────────────────── */

/* .eyebrow-line przeniesiony do sekcji globalnych na początku pliku */

/* Nagłówek */
.contact-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.contact-heading em {
  font-style: italic;
  color: var(--terra);
}

.contact-desc {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 380px;
}

/* Tabela danych kontaktowych */
.contact-details {
  display: flex;
  flex-direction: column;
}

.contact-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.25rem;
  align-items: baseline;
  padding: 1rem 0;
  border-top: 1px solid var(--paper-mid);
}

.contact-row:last-child {
  border-bottom: 1px solid var(--paper-mid);
}

.contact-row__label {
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  padding-top: 2px;
}

.contact-row__value {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9375rem;
  color: var(--ink);
  text-decoration: none;
}

.contact-row__value--addr {
  font-style: normal;
  font-size: 0.875rem;
  color: var(--ink-soft);
  white-space: pre-line;
}

/* ─── Prawa kolumna — karta formularza ──────────────────────────────────── */

.contact-card {
  background: #fff;
  padding: 2.75rem 2.5rem 2.5rem;
  position: relative;
}

.contact-card__top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
}

.contact-card__ornament {
  text-align: center;
  font-size: 0.5rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  opacity: 0.7;
}

.contact-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--ink);
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.3;
}

/* ─── Formularz ─────────────────────────────────────────────────────────── */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cform-row--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.cform-field {
  margin-bottom: 1.5rem;
}

.cform-label {
  display: block;
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.cform-input {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--paper-deep);
  padding: 0.5rem 0;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease;
  border-radius: 0;
  -webkit-appearance: none;
}

.cform-input:focus {
  border-bottom-color: var(--gold);
}

.cform-input::placeholder {
  color: transparent;
}

.cform-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%237A6B55'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 1.25rem;
}

.cform-textarea {
  resize: none;
  min-height: 90px;
  line-height: 1.6;
}

.cform-submit {
  width: 100%;
  background: var(--ink);
  color: var(--white);
  border: none;
  padding: 1rem 2rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s ease;
  margin-top: 0.5rem;
}

.cform-submit:hover {
  background: var(--ink-mid);
}

.cform-submit span {
  font-size: 1rem;
  letter-spacing: 0;
}

/* Floating label inputs */
.form-field {
  position: relative;
  margin-bottom: 1.25rem;
}

.form-field label {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(254,252,247,0.35);
  transition: all 0.2s ease;
  pointer-events: none;
}

.form-field textarea ~ label {
  top: 1rem;
  transform: none;
}

.form-field.active label,
.form-field.filled label {
  top: 0;
  transform: translateY(-100%);
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 4px;
}

.form-field textarea.filled ~ label,
.form-field textarea:focus ~ label {
  top: 0;
  transform: translateY(-100%);
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 4px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(201,168,76,0.2);
  padding: 0.75rem 0;
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  color: var(--white);
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-bottom-color: var(--gold);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23C9A84C' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 8px;
}

.form-select option { background: var(--charcoal); color: var(--white); }

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  padding: 64px 64px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(201,168,76,0.1);
}

.footer-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.04em;
}

.footer-brand-sub {
  font-size: 0.5rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.6;
  display: block;
  margin-top: 2px;
  margin-bottom: 1rem;
}

.footer-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9375rem;
  font-style: italic;
  color: rgba(254,252,247,0.35);
  line-height: 1.6;
  max-width: 260px;
}

.footer-col-title {
  font-size: 0.5rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.6;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-links a {
  font-size: 0.8125rem;
  color: rgba(254,252,247,0.45);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(254,252,247,0.25);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: rgba(254,252,247,0.2);
  transition: color 0.2s;
}

.footer-legal a:hover { color: rgba(254,252,247,0.5); }

/* ─── PRODUCT MODAL (split view) ────────────────────────────────────────── */
.pm-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(18,15,10,0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 2rem;
}
.pm-overlay.open { display: flex; }

.pm-modal {
  position: relative;
  width: 100%;
  max-width: 1080px;
  max-height: 90vh;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: pmFadeIn 0.3s ease;
  box-shadow: 0 32px 80px rgba(0,0,0,0.45);
}

@keyframes pmFadeIn {
  from { opacity: 0; transform: scale(0.97) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Top bar */
.pm-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--paper-deep);
  flex-shrink: 0;
}
.pm-topbar__id {
  font-family: 'Outfit', sans-serif;
  font-size: 0.5625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.pm-topbar__id strong { color: var(--ink); }
.pm-topbar__avail {
  font-family: 'Outfit', sans-serif;
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--paper-deep);
  padding: 0.25em 0.8em;
}

/* Body: image col + content col */
.pm-modal__body {
  display: grid;
  grid-template-columns: 47% 53%;
  flex: 1;
  overflow: hidden;
}

/* Image column */
.pm-img-col {
  position: relative;
  overflow: hidden;
  background: var(--paper-mid);
  min-height: 420px;
}
.pm-img-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: sepia(5%) saturate(90%);
}
.pm-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.4;
}

/* Content column */
.pm-content-col {
  position: relative;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.pm-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 2;
}
.pm-close:hover { background: var(--ink-mid); }

.pm-inner {
  padding: 2.5rem 2.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pm-cat {
  font-family: 'Outfit', sans-serif;
  font-size: 0.5rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.75rem;
}

.pm-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.pm-desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

/* Availability row */
.pm-avail-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 1rem;
  background: var(--paper-mid);
  margin-bottom: 1.75rem;
  border: 1px solid var(--paper-deep);
}
.pm-avail__label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}
.pm-avail__val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9375rem;
  color: var(--ink);
}

/* Form heading */
.pm-form-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.pm-form-heading em {
  color: var(--terra);
  font-style: italic;
}

/* Form fields */
.pm-form { display: flex; flex-direction: column; gap: 0.75rem; }

.pm-field { position: relative; }

.pm-input,
.pm-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--paper-deep);
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.pm-input:focus,
.pm-textarea:focus {
  border-color: var(--gold-dark);
}
.pm-input::placeholder,
.pm-textarea::placeholder {
  color: var(--ink-soft);
  font-style: italic;
}
.pm-textarea {
  resize: vertical;
  min-height: 90px;
}

.pm-submit {
  width: 100%;
  padding: 1em 2em;
  font-family: 'Outfit', sans-serif;
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--ink);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.25rem;
}
.pm-submit:hover { background: var(--ink-mid); }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid     { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .ps-grid         { grid-template-columns: repeat(2, 1fr); }
  .ps-featured     { grid-template-columns: 1fr 1fr; }
  .pm-modal        { max-width: 95vw; }
}

@media (max-width: 900px) {
  #mainNav { padding: 0 24px; }
  .hero-content  { padding: 100px 24px 60px; }
  .hero-showcase { display: none; }
  .kegel-grid    { grid-template-columns: 1fr; gap: 40px; }
  .kegel-section { padding: 64px 24px; }
  .categories-section,
  .katalogi-section,
  .about-section,
  .contact-section { padding: 64px 24px; }
  .about-grid   { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  /* Products section */
  .ps-wrap    { padding: 0 24px; }
  .ps-header  { grid-template-columns: 1fr; gap: 1rem; padding-top: 48px; }
  .ps-header__right { text-align: left; padding-top: 0; }
  .ps-tabs    { grid-template-columns: repeat(2, 1fr); }
  .ps-featured { grid-template-columns: 1fr; min-height: auto; }
  .ps-featured__img { aspect-ratio: 16/9; min-height: auto; }
  .ps-featured__body { padding: 2rem 1.5rem; }
  .ps-grid    { grid-template-columns: repeat(2, 1fr); }

  /* Modal */
  .pm-overlay { padding: 0; }
  .pm-modal   { max-width: 100%; max-height: 100vh; border-radius: 0; }
  .pm-modal__body { grid-template-columns: 1fr; }
  .pm-img-col { min-height: 240px; max-height: 35vh; }
}

@media (max-width: 640px) {
  .categories-grid { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr; }
  .site-footer  { padding: 48px 24px 24px; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .ps-tabs  { grid-template-columns: repeat(2, 1fr); }
  .ps-grid  { grid-template-columns: 1fr; }
  .ps-card:nth-child(3n) { border-right: 1px solid var(--paper-mid); }
  .ps-card:nth-child(2n) { border-right: none; }
  .pm-inner { padding: 1.5rem; }
}

/* ─── Utilities ──────────────────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* Form success/error messages */
.form-success {
  display: none;
  padding: 1rem;
  background: rgba(90,122,74,0.1);
  border: 1px solid rgba(90,122,74,0.3);
  color: #5A7A4A;
  font-size: 0.875rem;
  text-align: center;
}

.form-error {
  display: none;
  padding: 1rem;
  background: rgba(140,74,40,0.1);
  border: 1px solid rgba(140,74,40,0.3);
  color: var(--terra);
  font-size: 0.875rem;
  text-align: center;
}

/* No ACF notice */
.acf-notice {
  background: #fff3cd;
  border: 1px solid #ffc107;
  color: #856404;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  margin: 0.5rem 0;
  display: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE NAVIGATION
   ═══════════════════════════════════════════════════════════════════════════ */

/* Hamburger — ukryty na desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
  flex-shrink: 0;
}

.nav-hamburger__bar {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}

/* Stan: menu otwarte */
.nav-hamburger.is-open .nav-hamburger__bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-hamburger.is-open .nav-hamburger__bar:nth-child(2) {
  opacity: 0;
  width: 0;
}
.nav-hamburger.is-open .nav-hamburger__bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Scrolled state */
#mainNav.scrolled .nav-hamburger__bar {
  background: var(--ink);
}

/* ─── Mobile Menu Overlay ────────────────────────────────────────────────── */
.mobile-menu {
  display: none; /* JS kontroluje widoczność */
  position: fixed;
  inset: 0;
  z-index: 9000;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu__overlay {
  position: absolute;
  inset: 0;
  background: rgba(24,20,14,0.65);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.mobile-menu.is-animating .mobile-menu__overlay,
.mobile-menu.is-open .mobile-menu__overlay {
  opacity: 1;
}

/* ─── Panel (drawer z prawej) ────────────────────────────────────────────── */
.mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--kegel-dark, #1A1714);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-menu.is-animating .mobile-menu__panel,
.mobile-menu.is-open .mobile-menu__panel {
  transform: translateX(0);
}

/* ─── Panel header ───────────────────────────────────────────────────────── */
.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(201,168,76,0.1);
}

.mobile-menu__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.mobile-menu__logo svg {
  height: 48px;
  width: 48px;
  display: block;
  flex-shrink: 0;
}
.mobile-menu__logo svg path,
.mobile-menu__logo svg .cls-1 {
  fill: var(--white);
}

.mobile-menu__logo .custom-logo {
  max-height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}

.mobile-menu__logo .nav-logo-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--white);
  letter-spacing: 0.05em;
}

.mobile-menu__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 0;
  color: rgba(201,168,76,0.7);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.mobile-menu__close:hover {
  background: rgba(201,168,76,0.15);
  color: var(--gold);
}

/* ─── Ornament ───────────────────────────────────────────────────────────── */
.mobile-menu__orn {
  height: 1px;
  margin: 0 1.5rem;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
  opacity: 0.3;
}

/* ─── Nav links ──────────────────────────────────────────────────────────── */
.mobile-menu__nav {
  flex: 1;
  padding: 2rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.mobile-menu__link,
.mobile-menu__list a {
  display: block;
  padding: 1rem 0;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: rgba(254,252,247,0.75) !important;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(201,168,76,0.08);
  transition: color 0.2s;
}

.mobile-menu__link:hover,
.mobile-menu__list a:hover {
  color: var(--gold) !important;
}

.mobile-menu__list li:first-child .mobile-menu__link,
.mobile-menu__list li:first-child a {
  border-top: 1px solid rgba(201,168,76,0.08);
}

/* ─── CTA button ─────────────────────────────────────────────────────────── */
.mobile-menu__cta {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.875em 1.75em;
  background: var(--gold);
  color: var(--ink) !important;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s;
}

.mobile-menu__cta:hover {
  background: var(--gold-dark);
}

/* ─── Panel footer ───────────────────────────────────────────────────────── */
.mobile-menu__footer {
  padding: 1.25rem 1.5rem 2rem;
  border-top: 1px solid rgba(201,168,76,0.08);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu__contact-link {
  font-size: 0.75rem;
  color: rgba(201,168,76,0.6) !important;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.mobile-menu__contact-link:hover { color: var(--gold) !important; }

.mobile-menu__tagline {
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(254,252,247,0.2);
  margin: 0;
}

/* ─── Responsive breakpoints ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-desktop-only { display: none !important; }
  .nav-hamburger    { display: flex; }
  /* Nav: logo wyśrodkowane, hamburger po prawej */
  #mainNav {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .nav-logo {
    flex: 1;
    text-align: center;
  }
}

/* Blokada scrolla gdy menu otwarte */
body.mobile-menu-open {
  overflow: hidden;
}
