/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-top: 170px;
  color: #f4eae1;
  background-color: #110b07;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: bold;
  color: #fff;
}

.logo-img {
  height: 36px;
  margin-right: 10px;
}

/* Header */
header {
  background: rgba(10, 6, 4, 0.85);
  position: fixed;
  width: 100%;
  top: 0;
  margin-bottom: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(129, 76, 25, 0.15);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 1rem 2rem;
  background: transparent;
  position: relative;
}

.nav-list {
  list-style: none;
  display: flex;
  margin: 0;
}

.nav-list li {
  margin-left: 1.5rem;
}

.nav-list li a {
  color: #f4eae1;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav-list li a:hover {
  color: #f0a500;
}

.hamburger {
  display: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

#menu-toggle {
  display: none;
}

.social-icons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #e0d4c8;
  font-size: 1.1rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-link img {
  filter: brightness(0) invert(1); 
  transition: transform 0.3s ease;
}

.social-link:hover img {
  transform: scale(1.2);
}

.social-link:hover {
  color: #f0a500;
  transform: translateY(-2px);
}

.social-icons a, .social-icons a:visited, .social-icons a:active, .social-icons a:focus {
  text-decoration: none;
  color: inherit;
  outline: none;
}

/* PRODUCT LIST */
.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.product {
  border: 2px solid #814c19;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  background-color: #1a120b; 
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease, border-color 0.3s;
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out forwards;
}

.product:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  border-color: #e5934c;
}

.product img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.product:hover img {
  transform: scale(1.06);
}

.product h3 {
  color: #dcb38a;
  font-size: 1.4rem;
  margin-top: 15px;
  margin-bottom: 5px;
  text-align: center;
}

.product a {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Plakietka NOWOŚĆ */
.new-badge {
  display: inline-block;
  margin-top: 5px;
  background: linear-gradient(90deg, #e67e22, #f39c12);
  color: #fff;
  font-size: 0.9rem;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 50px;
  animation: glowPulse 2s infinite ease-in-out;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.2);
}

@keyframes glowPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(230, 126, 34, 0.5); }
  50% { transform: scale(1.03); box-shadow: 0 0 12px 5px rgba(230, 126, 34, 0.3); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(230, 126, 34, 0.5); }
}

/* ABOUT & CONTACT */
.about, .contact {
  padding: 4rem 2rem;
  text-align: center;
}

.about {
  background: #0d0805; 
}

.about h2, .contact h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #dcb38a;
}

.about p, .contact p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 1rem auto;
  color: #e0d4c8;
}

/* FOOTER */
footer {
  background: #0a0604;
  color: #a09285;
  text-align: center;
  padding: 1.5rem 2rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(129, 76, 25, 0.1);
}

/* Toggle przycisk */
.category-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  padding: 1rem;
  background-color: #1a120b;
  position: fixed;
  top: 75px;
  left: 0;
  width: 100%;
  z-index: 998;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  border-bottom: 1px solid rgba(129, 76, 25, 0.15);
}

.toggle-category {
  position: fixed;
  top: 80px;
  left: 0;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  height: 40px;
  margin-right: 1rem;
  margin-top: 11px;
  background-color: #a7692b;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.toggle-category:hover {
  background-color: #c78145;
  transform: translateY(-1px);
}

/* CATEGORY BUTTONS */
.category-buttons button {
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  background: #814c19;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.category-buttons button:hover {
  background: #a7692b;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Startowe boxy z kategoriami */
.start-categories {
  display: flex;
  justify-content: center;
  padding: 4rem 1rem;
  background-color: #110b07;
}

.start-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  width: 100%;
}

.start-box {
  background-color: #814c19;
  color: #fff;
  font-size: 1.4rem;
  font-weight: bold;
  padding: 3rem 1rem;
  text-align: center;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 0.6s ease-out forwards;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.start-box:hover {
  transform: scale(1.04) translateY(-4px);
  background-color: #a7692b;
  box-shadow: 0 8px 25px rgba(129, 76, 25, 0.4);
}

.latest-teaser {
  background-color: #0d0805;
  padding: 3rem 2rem;
  text-align: center;
}

.latest-teaser h2 {
  font-size: 2rem;
  color: #dcb38a;
  margin-bottom: 2rem;
}

.teaser-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .hamburger {
    display: block;
    position: sticky;
    z-index: 1800;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    background: rgba(10, 6, 4, 0.98);
    position: absolute;
    top: 100%;
    left: 0;
    padding: 1rem 0;
    z-index: 1800;
  }

  #menu-toggle:checked ~ .nav-list {
    display: flex;
  }

  .nav-list li {
    margin: 1rem 0;
    text-align: center;
  }

  .toggle-category {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    text-align: left;
    border-radius: 0px;
    background-color: #814c19;
    font-size: 1.1rem;
    z-index: 1;
    margin-top: 82px;
  }

  .category-buttons {
    position: fixed;
    top: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    box-shadow: none;
    padding: 0.5rem;
    margin-top: 120px;
    z-index: 1;
    background-color: #1a120b;
  }

  .start-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 9px;
    width: 100%;
  }

  .category-buttons button, .start-box {
    font-family: 'Arial', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
    background-color: #814c19;
    color: #fff;
    text-align: center;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    width: 100%;
    padding: 12px;
  }

  .start-box { gap: 5px; }

  .start-box:hover, .category-buttons button:hover {
    transform: scale(1.02);
    background-color: #a7692b;
  }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === PRZYCISK TRYBU & CENTROWANIE MOBILNE === */
.theme-toggle-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  color: #fff;
  transition: transform 0.2s ease;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 auto !important;
}
.theme-toggle-btn:hover {
  transform: scale(1.1);
}

/* === PEŁNY SZEF TRYBU JASNEGO (STRONA OFERTY) === */
body.light-mode {
  background-color: #fdfbf7 !important;
  color: #261a10 !important;
}
body.light-mode header {
  background: rgba(245, 240, 230, 0.95) !important;
  border-bottom: 1px solid rgba(129, 76, 25, 0.15) !important;
}
body.light-mode .nav-list li a {
  color: #261a10 !important;
}
body.light-mode .nav-list li a:hover {
  color: #a7692b !important;
}
body.light-mode .logo {
  color: #814c19 !important;
}
body.light-mode .hamburger {
  color: #814c19 !important;
}
body.light-mode .theme-toggle-btn {
  color: #261a10 !important;
  display: inline-flex !important;
  margin: 0 auto !important;
}
body.light-mode .start-categories {
  background-color: #fdfbf7 !important;
}
body.light-mode .category-buttons {
  background-color: #e9e2d5 !important;
}
body.light-mode .latest-teaser {
  background-color: #f5f0e6 !important;
}
body.light-mode .latest-teaser h2 {
  color: #693c10 !important;
}
body.light-mode .product {
  background-color: #ffffff !important;
  border-color: #c7a785 !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06) !important;
}
body.light-mode .product:hover {
  border-color: #a7692b !important;
}
body.light-mode .product h3 {
  color: #513111 !important;
}
body.light-mode .about {
  background: #f5f0e6 !important;
}
body.light-mode .contact {
  background: #fdfbf7 !important;
}
body.light-mode .about h2, 
body.light-mode .contact h2 {
  color: #693c10 !important;
}
body.light-mode .about p, 
body.light-mode .contact p {
  color: #3d2b1d !important;
}
body.light-mode .social-link {
  color: #3d2b1d !important;
}
body.light-mode .social-link img {
  filter: brightness(0) !important;
}
@media (max-width: 768px) {
  body.light-mode .nav-list {
    background: rgba(245, 240, 230, 0.98) !important;
  }
  body.light-mode .category-buttons {
    background-color: #ffffff !important;
  }
}