@import url('css/fonts.css');

/* ===== Design Tokens ===== */
:root {
  --clr-cream: #FFF8F0;
  --clr-cream-dark: #F5EDE3;
  --clr-warm-50: #FAF6F1;
  --clr-warm-100: #F0E8DC;
  --clr-warm-200: #E3D5C3;
  --clr-warm-300: #D4C0A5;
  --clr-warm-400: #C4A882;
  --clr-warm-500: #A8895E;
  --clr-warm-600: #8B6E42;
  --clr-warm-700: #6B5432;
  --clr-warm-800: #4A3A22;
  --clr-warm-900: #2D2314;

  --clr-green-50: #F2F7F0;
  --clr-green-100: #D8E8D2;
  --clr-green-500: #5A8A4A;
  --clr-green-600: #467336;
  --clr-green-700: #355A28;

  --clr-accent: #C4763B;
  --clr-accent-light: #D99A64;

  --clr-text: #2D2314;
  --clr-text-light: #6B5432;
  --clr-text-muted: #A8895E;
  --clr-white: #FFFFFF;

  --ff-body: 'Outfit', sans-serif;
  --ff-heading: 'Playfair Display', serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.5rem;
  --fs-4xl: 3.5rem;
  --fs-5xl: 4.5rem;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(45,35,20,0.06);
  --shadow-md: 0 4px 20px rgba(45,35,20,0.08);
  --shadow-lg: 0 8px 40px rgba(45,35,20,0.12);
  --shadow-xl: 0 16px 60px rgba(45,35,20,0.16);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  color: var(--clr-text);
  background: var(--clr-cream);
  line-height: 1.7;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ===== Accessibility (a11y) ===== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--clr-green-600);
  color: var(--clr-white);
  padding: 12px 24px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 10000;
  font-weight: 600;
  transition: top 0.2s ease;
  box-shadow: var(--shadow-md);
}
.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 3px solid var(--clr-green-600);
  outline-offset: 3px;
}

/* ===== Typography ===== */
h1, h2, h3, h4 { font-family: var(--ff-heading); line-height: 1.2; color: var(--clr-warm-800); }
h1 { font-size: var(--fs-4xl); font-weight: 700; }
h2 { font-size: var(--fs-3xl); font-weight: 700; }
h3 { font-size: var(--fs-xl); font-weight: 500; }
p { color: var(--clr-text-light); }

.section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--clr-accent);
  margin-bottom: 24px;
}
.section-label::before,
.section-label::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--clr-accent);
  opacity: 0.3;
}

.section-title { margin-bottom: 16px; }
.section-desc { font-size: var(--fs-md); max-width: 600px; margin-bottom: 48px; }

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  z-index: 1000;
  padding: 12px 0;
  transition: var(--transition);
}
.header.scrolled {
  background: rgba(255,248,240,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo img {
  height: 52px;
  width: auto;
  transition: var(--transition);
}
.header.scrolled .header-logo img { height: 42px; }

.nav { display: flex; align-items: center; gap: 8px; }
.nav a {
  padding: 8px 18px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--clr-warm-700);
  border-radius: var(--radius-full);
  transition: var(--transition);
  position: relative;
}
.nav a:hover {
  background: rgba(90,138,74,0.08);
  color: var(--clr-green-600);
}
.nav a.active {
  background: var(--clr-green-600);
  color: var(--clr-white);
}

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; z-index: 1001; }
.hamburger span {
  width: 24px; height: 2px;
  background: var(--clr-warm-800);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, var(--clr-cream) 0%, var(--clr-warm-100) 50%, var(--clr-green-50) 100%);
}
.hero-bg {
  background: 
    radial-gradient(ellipse at center, rgba(255, 248, 240, 0.92) 0%, rgba(255, 248, 240, 0.5) 100%),
    url('img/pierogi-z-czarna-jagoda1.jpg');
  background-size: cover;
  background-position: right center;
  position: relative;
  z-index: 1;
}
.hero-bg::before,
.hero-bg::after {
  display: none !important;
}
.hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90,138,74,0.08) 0%, transparent 70%);
  top: -200px; right: -200px;
}
.hero::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,118,59,0.06) 0%, transparent 70%);
  bottom: -100px; left: -100px;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 0 24px;
}
.hero-logo {
  width: 220px;
  margin: 0 auto 32px;
  animation: floatIn 1s ease-out;
}
.hero-logo img { border-radius: var(--radius-lg); }
.hero h1 {
  font-size: var(--fs-4xl);
  margin-bottom: 20px;
  animation: fadeUp 0.8s 0.2s ease-out both;
}
.hero h1 em {
  font-style: italic;
  color: var(--clr-green-600);
}
.hero-subtitle {
  font-size: var(--fs-lg);
  color: var(--clr-text-light);
  margin-bottom: 24px;
  animation: fadeUp 0.8s 0.4s ease-out both;
}
.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
  font-family: var(--ff-heading);
  font-size: var(--fs-lg);
  color: var(--clr-warm-700);
  margin-bottom: 40px;
  animation: fadeUp 0.8s 0.5s ease-out both;
}
.hero-features span {
  display: inline-block;
}
.hero-features span:nth-child(even) {
  color: var(--clr-accent-light);
  font-size: 24px;
  line-height: 1;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  animation: fadeUp 0.8s 0.6s ease-out both;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-size: var(--fs-base);
  font-weight: 600;
  transition: var(--transition);
}
.btn-primary {
  background: var(--clr-green-600);
  color: var(--clr-white);
  box-shadow: 0 4px 15px rgba(90, 138, 74, 0.3);
}
.btn-primary:hover {
  background: var(--clr-green-700);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(90, 138, 74, 0.4);
}
.btn-secondary {
  background: var(--clr-white);
  color: var(--clr-warm-800);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--clr-warm-100);
}
.btn-secondary:hover {
  background: var(--clr-warm-50);
  color: var(--clr-green-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  color: var(--clr-text-muted);
  z-index: 2;
}
.hero-scroll svg { width: 28px; height: 28px; }

/* --- Hero V2 --- */
.hero-v2 .hero-content { max-width: 800px; }
.hero-v2 h1 { font-size: var(--fs-5xl); line-height: 1.1; margin-bottom: 24px; }
.hero-badge { 
  display: inline-block; 
  padding: 6px 16px; 
  background: rgba(90,138,74,0.1); 
  color: var(--clr-green-600); 
  border-radius: var(--radius-full); 
  font-weight: 600; 
  margin-bottom: 24px; 
  font-size: var(--fs-sm); 
  text-transform: uppercase; 
  letter-spacing: 2px;
}

/* --- Hero V3 --- */
.hero-v3 {
  padding-bottom: 80px;
}
.hero-v3 .hero-content { max-width: 900px; }
.hero-polaroids {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 48px;
  position: relative;
  z-index: 2;
}
@keyframes polaroidFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.hero-polaroids img {
  width: 220px;
  height: 250px;
  object-fit: cover;
  background: white;
  padding: 12px 12px 40px 12px;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(45,35,20,0.15);
  transition: transform 0.3s, z-index 0s;
  animation: polaroidFade 1s ease-out both;
  position: relative;
}
.polaroid-1 { transform: rotate(-6deg) translateY(10px); animation-delay: 0.2s;}
.polaroid-2 { transform: rotate(2deg) translateY(-10px); animation-delay: 0.4s; z-index: 2;}
.polaroid-3 { transform: rotate(7deg) translateY(5px); animation-delay: 0.6s;}

.hero-polaroids img:hover {
  transform: rotate(0) scale(1.05) !important;
  z-index: 10 !important;
}

/* --- Hero V4 --- */
.hero-v4 {
  padding: 120px 0 0;
  align-items: center;
  background: var(--clr-cream-dark);
}
.hero-v4::before, .hero-v4::after { display: none; }
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-bottom: 60px;
  width: 100%;
}
.hero-content-left {
  text-align: left;
  z-index: 2;
}
.hero-content-left .hero-logo { margin: 0 0 32px 0; width: 180px; }
.hero-content-left .hero-actions { justify-content: flex-start; }
.hero-content-left .hero-features { justify-content: flex-start; }
.hero-img-right {
  position: relative;
  width: 100%;
  height: 600px;
}
.hero-slideshow {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.hero-slideshow .slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.hero-slideshow .slide.active {
  opacity: 1;
  z-index: 2;
}
.hero-slideshow .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide-caption {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  color: var(--clr-white);
  padding: 8px 24px;
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 3;
}
.slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.slider-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: var(--transition);
  cursor: pointer;
}
.slider-dots .dot.active {
  background: var(--clr-white);
  transform: scale(1.2);
}

/* ===== About ===== */
.about {
  padding: 120px 0;
  background: var(--clr-white);
  position: relative;
  overflow: hidden;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.about-images img {
  border-radius: var(--radius-lg);
  object-fit: cover;
  height: 240px;
  width: 100%;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.about-images img:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.about-images img:first-child { grid-row: span 2; height: 100%; }
.about-text h2 { margin-bottom: 24px; }
.about-text p { margin-bottom: 16px; font-size: var(--fs-md); }

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
.feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--clr-warm-50);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.feature:hover { background: var(--clr-green-50); }
.feature-icon {
  width: 40px; height: 40px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-green-100);
  border-radius: var(--radius-sm);
  color: var(--clr-green-600);
}
.feature-icon svg { width: 20px; height: 20px; }
.feature h4 { font-family: var(--ff-body); font-size: var(--fs-sm); font-weight: 600; margin-bottom: 2px; }
.feature p { font-size: var(--fs-xs); color: var(--clr-text-muted); }

/* ===== Products ===== */
.products {
  padding: 120px 0;
  background: var(--clr-cream);
  position: relative;
  overflow: hidden;
}
.products-header {
  text-align: center;
  margin-bottom: 48px;
}
.products-header .section-label { justify-content: center; }
.products-header .section-desc { margin: 0 auto 32px; }

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 48px;
}
.filter-btn {
  padding: 10px 24px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--clr-warm-600);
  background: var(--clr-white);
  border: 1.5px solid var(--clr-warm-200);
  border-radius: var(--radius-full);
  transition: var(--transition);
}
.filter-btn:hover {
  border-color: var(--clr-green-500);
  color: var(--clr-green-600);
  background: var(--clr-green-50);
}
.filter-btn.active {
  background: var(--clr-green-600);
  color: var(--clr-white);
  border-color: var(--clr-green-600);
}

/* Product Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Product Card */
.product-card {
  background: var(--clr-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.product-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}
.product-card:hover .product-card-img img { transform: scale(1.05); }

.product-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--clr-green-700);
}
.product-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card-body h3 {
  font-family: var(--ff-heading);
  font-size: var(--fs-lg);
  margin-bottom: 8px;
  color: var(--clr-warm-800);
}
.product-card-body p {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: auto;
  gap: 0.5rem;
}
.product-card-arrow {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--clr-warm-50);
  color: var(--clr-warm-600);
  transition: var(--transition);
}
.product-card:hover .product-card-arrow {
  background: var(--clr-green-600);
  color: var(--clr-white);
}

/* Card hiding for filter */
.product-card.hidden {
  display: none;
}

/* ===== Distribution / Współpraca ===== */
.distribution {
  padding: 100px 0;
  background: #355a28;
  color: var(--clr-white);
  position: relative;
  overflow: hidden;
}
.distribution .section-title {
  color: var(--clr-white);
}
.distribution .section-desc {
  color: rgba(255, 255, 255, 0.8);
}
.distribution::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,118,59,0.15) 0%, transparent 70%);
  top: -200px; right: -200px;
}
.distribution .section-label { color: var(--clr-accent-light); }
.distribution .section-label::before { background: var(--clr-accent-light); }

.dist-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.wspolpraca-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) {
  .wspolpraca-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
  }
  .wspolpraca-grid .dist-card {
    flex: 0 0 calc(33.333% - 16px);
  }
}
.dist-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.dist-card {
  padding: 32px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.dist-card:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}
.dist-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  color: var(--clr-white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.dist-card-icon svg { width: 28px; height: 28px; }
.dist-card h3 {
  font-family: var(--ff-body);
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--clr-white);
  margin-bottom: 8px;
}
.dist-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.dist-map {
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 500px;
  box-shadow: var(--shadow-lg);
  border: 4px solid rgba(255,255,255,0.1);
  position: relative;
}

/* Leaflet Attribution Fix */
.leaflet-control-attribution {
  margin-right: 24px !important;
  margin-bottom: 8px !important;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.8) !important;
  padding: 2px 6px;
}

/* ===== Contact ===== */
.contact {
  padding: 120px 0;
  background: var(--clr-white);
  text-align: center;
}
.contact-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px;
  background: var(--clr-warm-50);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
.contact-container .section-label { justify-content: center; }
.contact-container h2 { margin-bottom: 16px; }
.contact-container > p { margin-bottom: 40px; font-size: var(--fs-md); }

.contact-items { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 32px; 
  text-align: left;
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}
.contact-items-vertical {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 24px;
  padding: 24px;
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.contact-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-item-icon {
  width: 64px; height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-green-50);
  border-radius: 50%;
  color: var(--clr-green-600);
}
.contact-item-icon svg { width: 32px; height: 32px; }
.contact-item h4 {
  font-family: var(--ff-body);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--clr-warm-800);
}
.contact-item p { font-size: var(--fs-base); color: var(--clr-text-light); }
.contact-item a { color: var(--clr-green-600); font-weight: 500; font-size: var(--fs-lg); }
.contact-item a:hover { text-decoration: underline; }

/* ===== Footer ===== */
.footer {
  padding: 40px 0;
  background: var(--clr-warm-900);
  text-align: center;
}
.footer-logo { width: 100px; margin: 0 auto 16px; }
.footer-logo img { border-radius: var(--radius-sm); }
.footer p {
  color: var(--clr-warm-500);
  font-size: var(--fs-sm);
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45,35,20,0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal {
  background: var(--clr-white);
  border-radius: var(--radius-xl);
  max-width: 900px;
  width: 100%;
  min-height: 550px;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: var(--transition);
  box-shadow: var(--shadow-xl);
  display: flex;
}
.modal-overlay.active .modal { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  z-index: 10;
  transition: var(--transition);
  color: var(--clr-warm-700);
  box-shadow: var(--shadow-sm);
}
.modal-close:hover { background: var(--clr-warm-800); color: var(--clr-white); }
.modal-close svg { width: 20px; height: 20px; }

.modal-images {
  position: relative;
  width: 45%;
  flex-shrink: 0;
  background: var(--clr-warm-50);
  overflow: hidden;
}
.modal-images img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: all 0.3s ease;
}
.modal-images img.is-logo {
  object-fit: contain;
  width: 60%;
  height: 60%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.modal-prev, .modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--clr-white);
  border: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  color: var(--clr-warm-800);
  transition: var(--transition);
  z-index: 10;
}
.modal-prev:hover, .modal-next:hover, .modal-zoom:hover {
  background: var(--clr-green-600);
  color: var(--clr-white);
}
.modal-prev { left: 16px; }
.modal-next { right: 16px; }

.modal-zoom {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  color: var(--clr-warm-800);
  transition: var(--transition);
  z-index: 10;
}
.modal-zoom:hover {
  background: var(--clr-white);
  color: var(--clr-green-600);
}

.modal-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.modal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
}
.modal-dot.active {
  background: var(--clr-white);
  transform: scale(1.2);
}

.modal-content-wrap {
  width: 55%;
  overflow-y: auto;
  max-height: 90vh;
}
.modal-body { padding: 32px; }
.modal-body h2 {
  font-size: var(--fs-2xl);
  margin-bottom: 8px;
}
.modal-desc {
  font-size: var(--fs-md);
  margin-bottom: 24px;
  line-height: 1.8;
}
.modal-sections {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal-section {
  padding: 10px;
  background: var(--clr-white);
  border: 1px solid var(--clr-warm-200);
  border-radius: var(--radius-md);
}
.modal-section h4 {
  font-family: var(--ff-body);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--clr-warm-800);
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--clr-warm-100);
}
.modal-ingredients {
  font-size: var(--fs-sm);
  color: var(--clr-text-light);
  line-height: 1.6;
}

/* Nutrition Table */
.nutrition-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  color: var(--clr-text);
}
.nutrition-table td {
  padding: 2px 0;
  border-bottom: 1px solid var(--clr-warm-100);
}
.nutrition-table tr:last-child td {
  border-bottom: none;
}
.nutrition-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--clr-warm-800);
}
.nutrition-table tr.sub-row td:first-child {
  padding-left: 16px;
  color: var(--clr-text-light);
  font-size: var(--fs-xs);
}

/* EAN & Weight */
.ean-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--clr-warm-100);
  border: none;
}
.ean-section h4 {
  border-bottom: none;
  margin-bottom: 4px;
  padding-bottom: 0;
}
.modal-weight {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--clr-green-700);
  font-family: var(--ff-heading);
}
.ean-barcode-wrap {
  text-align: right;
  background: var(--clr-white);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}
.ean-barcode {
  height: 40px;
  width: 120px;
  color: var(--clr-warm-900);
  margin-bottom: 4px;
}
.modal-ean-text {
  display: block;
  font-size: var(--fs-xs);
  letter-spacing: 2px;
  font-family: monospace;
}
.info-section {
  background: var(--clr-green-50);
  border-color: var(--clr-green-100);
}
.info-section h4 {
  color: var(--clr-green-700);
  border-color: var(--clr-green-200);
}
.info-section p {
  font-size: var(--fs-sm);
  color: var(--clr-green-800);
  font-weight: 500;
}

/* ===== Fullscreen Lightbox ===== */
.fullscreen-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.fullscreen-overlay.active {
  opacity: 1;
  visibility: visible;
}
.lightbox-img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: white;
  width: 44px; height: 44px;
  cursor: pointer;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: var(--transition);
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.1);
}
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10001;
  transition: var(--transition);
}
.lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-50%) scale(1.1);
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

@media (max-width: 768px) {
  .lightbox-prev, .lightbox-next {
    width: 44px; height: 44px;
  }
  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
}

/* ===== Animations ===== */
@keyframes floatIn {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  h1 { font-size: var(--fs-3xl); }
  h2 { font-size: var(--fs-2xl); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-grid, .features, .hero-split, .dist-layout, .contact-layout { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .contact-item { flex-direction: column; text-align: center; }
  .dist-map { height: 400px; }
  .hero-img-right { height: 400px; }
  .hero-polaroids { flex-wrap: wrap; gap: 12px; }
  .hero-polaroids img { width: 160px; height: 180px; padding: 8px 8px 30px 8px; }
  .hero-v2 h1 { font-size: var(--fs-4xl); }
  
  .hero-split { grid-template-columns: 1fr; gap: 40px; }
  .hero-content-left { text-align: center; }
  .hero-content-left .hero-logo { margin: 0 auto 32px; }
  .hero-content-left .hero-actions { justify-content: center; }
  .hero-content-left .hero-features { justify-content: center; }
}

@media (max-width: 768px) {
  .header {
    background: rgba(255, 248, 240, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
  }

  .nav { 
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    background: #FFF8F0;
    z-index: 999;
    transform: translateX(100%);
    transition: var(--transition);
  }
  .nav.open { transform: translateX(0); }
  .nav a { 
    font-size: var(--fs-base); 
    font-weight: 600;
    color: var(--clr-warm-800);
    padding: 10px 24px; 
    border-radius: var(--radius-full);
  }
  .nav a:hover, .nav a:active {
    background: var(--clr-green-50);
    color: var(--clr-green-600);
  }
  .hamburger { 
    display: flex; 
    z-index: 1001;
  }

  h1 { font-size: var(--fs-2xl); }
  .hero-logo { width: 160px; }
  .hero-features { flex-direction: column; gap: 8px; font-size: var(--fs-md); }
  .hero-features span:nth-child(even) { display: none; }
  .hero-actions { flex-direction: column; gap: 12px; }

  .products-grid { grid-template-columns: 1fr; }
  .dist-card { flex-direction: column; gap: 16px; text-align: center; align-items: center; }
  .features { grid-template-columns: 1fr; }
  
  .contact-container { padding: 32px 16px; }
  .contact-items { grid-template-columns: 1fr; }

  .modal { flex-direction: column; max-height: 90vh; overflow-y: auto; min-height: 0; }
  .modal-images { width: 100%; height: 360px; min-height: 320px; flex-shrink: 0; }
  .modal-content-wrap { width: 100%; overflow: visible; max-height: none; }
  .modal-body { padding: 20px 18px; }
  .modal-title { font-size: 1.4rem; margin-bottom: 6px; }
  .modal-desc { font-size: var(--fs-sm); line-height: 1.4; margin-bottom: 14px; }
  .modal-section h4 { font-size: var(--fs-sm); margin-bottom: 6px; }
  .modal-ingredients { font-size: var(--fs-xs); line-height: 1.5; }
  .filters { gap: 6px; }
  .filter-btn { padding: 8px 16px; font-size: var(--fs-xs); }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .about, .products, .distribution, .contact { padding: 80px 0; }
  .about-images img { height: 160px; }
}
