/* === RESET === */
@media screen and (min-width: 1025px) {
  .header-mob { display: none; }
  .header-desk { display: block; }
}

/* === BELKA GÓRNA (TOPBAR) === */
.topbar {
  background: #fff;
  border-bottom: 1px solid #eee;
  font-size: 15px;
  color: #666;
  width: 100%;
}

.topbar__container {
  padding: 0 40px;
  margin: 0 auto;
  height: 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.topbar__left,
.topbar__right {
  display: flex;
  gap: 24px;
  align-items: center;
  white-space: nowrap;
}

.topbar__center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.topbar a {
  color: #666;
  text-decoration: none;
  font-weight: 400;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.topbar a:hover {
  border-bottom: 1px solid var(--color-primary-hover, #a3662a);
}

/* === HEADER MAIN === */
.header-main {
  background: #fff;
  border-bottom: 1px solid #eee;
  width: 100%;
  position: relative;
  z-index: 100;
}

.header-container {
  margin: 0 auto;
  padding: 16px 40px;
}

.header-content-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.header-logo-wrapper { }

.header-menu-wrapper {
  display: flex;
  justify-content: center;
  flex-grow: 1;
}

.main-menu {
  position: relative;
  z-index: 150;
}

/* Linki z ikonami */

.header-icons-wrapper {
  display: flex;
  align-items: center;
  gap: 1.4em;
}

.icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000; /* wymuszenie czarnego koloru */
  transition: color 0.3s ease;
  text-decoration: none;
}

/* Ikona SVG – pełna kontrola koloru */
.icon-link svg {
  width: 24px;
  height: 24px;
  stroke: #000;         /* wymuszenie czarnego stroke */
  fill: none;
  transition: stroke 0.3s ease;
}

/* Hover: kolor czerwony */
.icon-link:hover {
  color: #CD8F5C;       /* kolor linka */
}
.icon-link:hover svg {
  stroke: #CD8F5C;      /* kolor ikony */
}

/* Koszyk z licznikiem */
.icon-cart {
  position: relative;
}

/* Ulubione z badge */
.icon-wishlist {
  position: relative;
}
.icon-cart .cart-count {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--color-primary, #bc753a);
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 2;
}



/* === KLASYKA: ROZWIJANE MENU WORDPRESS === */
.menu-list {
  display: flex;
  list-style: none;
  gap: 32px;
  margin: 0;
  padding: 0;
}
.menu-list li {
  position: relative;
}
.menu-list > li > a {
  color: #111;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  transition: color 0.2s, border-color 0.2s;
  padding: 12px 16px;
  border-bottom: 2px solid transparent;
  display: block;
}
.menu-list > li > a:hover {
  color: var(--color-primary-hover, #a3662a);
  border-color: var(--color-primary-hover, #a3662a);
}
/* PODMENU klasyczne */
.menu-list ul {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 220px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  padding: 16px 0;
  margin: 0;
  list-style: none;
  z-index: 200;
  border-radius: 0 0 12px 12px;
}
.menu-list li:hover > ul,
.menu-list li:focus-within > ul {
  display: block;
}
.menu-list ul li a {
  color: #111;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 10px 24px;
  display: block;
  transition: color 0.2s;
}
.menu-list ul li a:hover {
  color: var(--color-primary-hover, #a3662a);
  background: #f8f6f4;
}
/* Podmenu drugiego poziomu */
.menu-list ul ul {
  left: 100%;
  top: 0;
  border-radius: 0 12px 12px 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}
.menu-list ul li:hover > ul,
.menu-list ul li:focus-within > ul {
  display: block;
}

/* === MEGAMENU dla .megamenu === */
.menu-list > .megamenu {
  position: static;
}

/* Tło megamenu na pełną szerokość */
.menu-list > .megamenu > .sub-menu {
  display: none;
  position: absolute;
  left: 43% !important;
  top: 100% !important;
  transform: translateX(-50%) !important;
  width: 100vw !important;
  max-width: 100vw !important;
  min-width: unset !important;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,0.1);
  z-index: 999;
  padding: 40px 0;
  margin: 0;
  border-radius: 0 0 12px 12px;
  box-sizing: border-box;
  overflow: visible;
}
.menu-list > .megamenu:hover > .sub-menu,
.menu-list > .megamenu:focus-within > .sub-menu {
  display: block !important;
}

/* Wrapper na kolumny megamenu (JS doda go automatycznie!) */
.menu-list > .megamenu > .sub-menu > .megamenu-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 40px;
  box-sizing: border-box;
}

/* Kolumny megamenu */
.menu-list > .megamenu > .sub-menu {
  /* ...pozostałe style... */
  display: none;
  /* ... */
}
.menu-list > .megamenu:hover > .sub-menu,
.menu-list > .megamenu:focus-within > .sub-menu {
  display: block !important;
}
.menu-list > .megamenu > .sub-menu > .megamenu-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 40px;
  box-sizing: border-box;
}
.menu-list > .megamenu > .sub-menu > .megamenu-inner > li {
  margin: 0;
  padding: 0;
  min-width: 0;
  box-sizing: border-box;
  display: block;
}
.menu-list > .megamenu > .sub-menu > .megamenu-inner > li > a {
  color: #111;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 32px;
  display: block;
  transition: color 0.2s;
}
