/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.5;
  /* ensure the page edges are always white */
  background: #fff;
}

/* index page paragraphs - no background, just padding */
.index-page p {
  padding: 1em;
}

/* ================= HEADER ================= */

.logo {
  font-size: 32px;
  font-weight: bold;
}

/* HAMBURGER */
.hamburger {
  display: none;
  font-size: 30px;
  background: none;
  border: none;
  cursor: pointer;
}

/* keep header background full-width but center its inner content */
.header {
  display: flex;
  justify-content: center; /* center the inner container */
  background: #f5f5f5;
}

.header-inner {
  max-width: 1200px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
}

/* the original header rules were moved into .header-inner above */
/* ================= NAVIGATION ================= */

.nav {
  background: rgb(172, 125, 133);
}

.nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
}

.nav-list > li {
  position: relative;
  padding: 0;
  color: #fff;
  cursor: pointer;
}

/* Make the anchor fill the entire list item so the whole field is clickable */
.nav-list > li > a {
  display: block;
  padding: 16px 22px;
  color: #d4a574;
  text-decoration: none;
}

.nav-list > li > a:hover {
  background: #333;
  color: #d4a574;
}

/* DROPDOWN (desktop) */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 180px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  z-index: 100;
  list-style: none; /* usuń kropki */
  margin: 0;
  padding: 0;
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu li a {
  display: block;
  padding: 12px 16px;
  color: #22c55e; /* kolor tekstu w dropdownie */
  text-decoration: none;
}

.dropdown-menu li a:hover {
  background: #eee;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* ================= SECTIONS ================= */

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* wrapper for index page content to limit width to 75% with margins */
.index-page .index-wrapper {
  width: 75%;
  margin: 0 auto;
}

/* smaller screens should still use full width */
@media (max-width: 768px) {
  .index-page .index-wrapper {
    width: 100%;
  }
}

.section h2 {
  text-align: center;
  margin-bottom: 32px;
  font-size: 28px;
}

/* ================= SLIDER ================= */

/* wrapper to position nav buttons */
.slider-wrapper {
  position: relative;
}

.slider {
  display: flex;
  gap: 20px; /* even tighter spacing now */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* hide scrollbar across browsers */
  -ms-overflow-style: none; /* IE 10+ */
  scrollbar-width: none; /* Firefox */
}
.slider::-webkit-scrollbar {
  display: none;
}

.slide {
  /* make slide width match image width instead of forcing 300px min */
  flex: 0 0 auto;
  width: 220px; /* slide width roughly image width + padding */
  border-radius: 10px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
}

@media (max-width: 768px) {
  .slide {
    width: 170px; /* slightly smaller on mobile */
  }
}

.slide img {
  width: 100%; /* fill the slide container */
  height: auto;
  border-radius: 8px;
  margin: 0 0 4px;
  display: block;
}

.slide-link {
  display: block;
}

.slide p {
  margin: 0 0 4px; /* less space between text and button */
  text-align: center;
}

.slide .btn {
  background: rgb(172, 125, 133);
  color: #fff;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
}

/* navigation buttons positioned absolutely */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
}

.slider-nav.prev {
  left: 0;
}

.slider-nav.next {
  right: 0;
}

/* ================= NEW COLLECTION ================= */

.new-collection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.collection-name {
  font-size: 34px;
  font-weight: bold;
}

.collection-image {
  width: 420px;
  height: 260px;
  background: #ccc;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ================= FOOTER ================= */

.footer {
  background: #1f1f1f;
  color: #fff;
  padding: 32px 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer a {
  color: #fff;
  text-decoration: underline;
}

/* ================= POST CONTENT ================= */

.post-content {
  width: 100% !important;
  padding: 20px;
}

@media (min-width: 1200px) {
  .post-content {
    width: 66.666% !important;
    margin: 0 auto !important;
  }
}
/* mobile-specific toggle of navigation */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  .nav {
    display: none;
  }

  .nav.nav-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
  }

  .nav-list > li {
    border-bottom: 1px solid #333;
  }

  .dropdown-menu {
    display: none;
    position: static;
    box-shadow: none;
  }

  .dropdown-menu.submenu-open {
    display: block;
  }

  .dropdown-toggle {
    display: block;
  }
}
