/* ===================================================
   NAVIGATION ICONS FIX - Ujednolicenie ikon w górnej belce
   =================================================== */

/* Fix dla page-menu - wyrównanie wszystkich elementów */
.main-navigation .page-menu {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100%;
  padding: 0 !important;
  margin: 0 !important;
  min-height: 60px;
}

/* Menu główne - wyrównanie do środka */
.menu-menu-1-container,
.menu-menu-2-container {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 60px;
  margin: 0 !important;
  width: 65% !important;
}

/* Lista menu - jednakowe odstępy */
.menu-menu-1-container ul.menu,
.menu-menu-2-container ul.menu {
  display: flex !important;
  align-items: center !important;
  justify-content: space-evenly !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  min-height: 60px;
  list-style: none;
}

/* Elementy li menu */
.menu-menu-1-container ul.menu > li,
.menu-menu-2-container ul.menu > li {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 1;
  min-height: 60px;
  position: relative;
}

/* Linki menu - styl zgodny z ikonami */
.menu-menu-1-container ul.menu > li > a,
.menu-menu-2-container ul.menu > li > a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100%;
  min-height: 60px;
  padding: 0 1em !important;
  text-decoration: none;
  font-family: 'K2D', sans-serif;
  font-size: 14px !important;
  font-weight: 600;
  color: #333333;
  white-space: nowrap;
  transition: all 0.3s ease;
  position: relative;
  letter-spacing: 0.3px;
  text-transform: none;
}

/* Hover effect - #1C5EA8 kolor */
.menu-menu-1-container ul.menu > li > a::after,
.menu-menu-2-container ul.menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #1C5EA8, transparent);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.menu-menu-1-container ul.menu > li > a:hover,
.menu-menu-2-container ul.menu > li > a:hover {
  color: #1C5EA8;
  transform: translateY(-2px);
}

.menu-menu-1-container ul.menu > li > a:hover::after,
.menu-menu-2-container ul.menu > li > a:hover::after,
.menu-menu-1-container ul.menu > li.current-menu-item > a::after,
.menu-menu-2-container ul.menu > li.current-menu-item > a::after {
  width: 80%;
}

/* Active/current menu item */
.menu-menu-1-container ul.menu > li.current-menu-item > a,
.menu-menu-2-container ul.menu > li.current-menu-item > a,
.menu-menu-1-container ul.menu > li.current_page_item > a,
.menu-menu-2-container ul.menu > li.current_page_item > a {
  color: #1C5EA8;
  font-weight: 700;
}

/* Active menu item w fixed-nav - biała czcionka */
.fixed-nav .menu-menu-1-container ul.menu > li.current-menu-item > a,
.fixed-nav .menu-menu-2-container ul.menu > li.current-menu-item > a,
.fixed-nav .menu-menu-1-container ul.menu > li.current_page_item > a,
.fixed-nav .menu-menu-2-container ul.menu > li.current_page_item > a {
  color: #ffffff !important;
}

/* Kontener dla wszystkich ikon - wyrównanie z menu */
.shop-nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  min-height: 60px;
  flex-shrink: 0;
  width: auto !important;
  padding: 0 !important;
}

/* Bazowy styl dla każdego boxa z ikoną - taka sama wysokość jak menu */
.v-icon-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-width: 60px;
  min-height: 60px;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0 10px;
}

.v-icon-box a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  height: 100%;
  width: 100%;
}

/* Wszystkie SVG - jednolity rozmiar */
.v-icon-box svg {
  width: 24px !important;
  height: 24px !important;
  display: block;
  margin-bottom: 4px;
  transition: transform 0.2s ease;
}

/* Hover effect dla ikon - podobny do menu */
.v-icon-box:hover {
  transform: translateY(-2px);
}

.v-icon-box:hover svg {
  transform: scale(1.1);
}

/* Label pod ikoną - taki sam styl jak menu */
.v-label {
  font-family: 'K2D', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #333333;
  text-align: center;
  white-space: nowrap;
  transition: color 0.2s ease;
  line-height: 1.2;
  margin-top: 2px;
}

/* Specjalny label dla ceny w koszyku */
.v-label.v-price {
  font-weight: 600;
  color: #1C5EA8;
}

.v-cart:hover .v-label.v-price {
  color: #164a85;
}

/* Hover states dla różnych ikon */
.v-search:hover .v-label {
  color: #1C5EA8;
}

.v-search:hover svg path {
  fill: #1C5EA8;
  transition: fill 0.2s ease;
}

.v-account:hover .v-label {
  color: #1C5EA8;
}

.v-account:hover svg path {
  transition: fill 0.2s ease;
}

/* Dla niezalogowanego użytkownika */
.v-account a:not(:has(svg path[fill="#1C5EA8"])):hover svg path {
  fill: #1C5EA8;
}

/* Dla zalogowanego użytkownika */
.v-account a:has(svg path[fill="#1C5EA8"]):hover svg path:first-child {
  fill: #1C5EA8;
}

.v-cart:hover .v-label {
  color: #1C5EA8;
}

.v-cart:hover svg path {
  fill: #1C5EA8;
  transition: fill 0.2s ease;
}

/* Fix dla ceny w koszyku - usunięcie niepotrzebnych stylów */
.shop-nav-wrapper .woocommerce-Price-amount {
  margin: 0;
  position: static;
}

.shop-nav-wrapper .woocommerce-Price-amount bdi {
  position: static;
  transform: none;
  width: auto;
  font-size: 11px;
  font-weight: 600;
  color: #1C5EA8;
  white-space: nowrap;
}

/* Responsywne dostosowania */
@media screen and (max-width: 992px) {
  .main-navigation .page-menu {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.5em 0.5em !important;
    background-color: #ffffff !important;
  }
  
  .main-navigation .page-menu .site-branding {
    order: 1;
    margin-bottom: 0;
    flex-shrink: 0;
  }
  
  .main-navigation .page-menu .shop-nav-wrapper {
    order: 2;
    margin-top: 0;
    width: auto !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    margin-left: auto;
    margin-right: 0.5em;
  }
  
  .main-navigation .page-menu .menu-toggle {
    order: 3;
    position: relative;
    top: auto;
    right: auto;
    background-color: transparent !important;
  }
  
  .shop-nav-wrapper {
    width: auto !important;
    gap: 12px !important;
    height: auto;
    padding: 0;
  }
  
  .v-icon-box {
    min-width: 50px;
    min-height: 50px;
  }
  
  .v-icon-box svg {
    width: 22px !important;
    height: 22px !important;
    margin-bottom: 3px;
  }
  
  .v-label {
    font-size: 9px;
  }
  
  .shop-nav-wrapper .woocommerce-Price-amount bdi {
    font-size: 9px;
  }
}

@media screen and (max-width: 768px) {
  .v-icon-box {
    min-width: 45px;
    height: 45px;
  }
  
  .v-icon-box svg {
    width: 20px !important;
    height: 20px !important;
  }
  
  .v-label {
    font-size: 9px;
  }
  
  .shop-nav-wrapper .woocommerce-Price-amount bdi {
    font-size: 9px;
  }
}

/* Fix dla starego stylu - nadpisanie */
.shop-nav-wrapper .myaccount .myaccount-link-unlogged svg,
.shop-nav-wrapper .myaccount .myaccount-link-logged svg,
.search-desktop #search-icon svg {
  width: 24px !important;
  height: 24px !important;
}

/* Zapewnienie równego odstępu między ikonami */
.v-icon-box + .v-icon-box {
  margin-left: 12px;
}

@media screen and (max-width: 992px) {
  .v-icon-box + .v-icon-box {
    margin-left: 8px;
  }
}
