/* Niestandardowe style nagłówka dla motywu Outdoor */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;900&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css');

/* Domyślna czcionka motywu pobierana z Google Fonts */
:root {
  --outdoor-font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  --bs-body-font-family: var(--outdoor-font-family);
}

html {
  font-family: var(--outdoor-font-family);
}

body {
  font-family: var(--outdoor-font-family) !important;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6,
p, a, li,
button, input, select, textarea {
  font-family: var(--outdoor-font-family);
}

/* Pasek górny z delikatnym tłem i czytelnymi odstępami */
.header-top {
  background: #f7f9f7;
  color: #000;
  border-bottom: 1px solid #d9e3dc;
  padding: 0.35rem 0;
}

.header-top a {
  color: inherit;
  font-weight: 500;
  text-decoration: none;
}

.header-top a:hover,
.header-top a:focus-visible {
  color: #00a651;
}

.header-top__right > *:not(:last-child) {
  margin-right: 0.75rem;
}

/* Bloki akcji (konto, koszyk, ulubione, wyszukiwarka) */
.header-block {
  --header-action-size: 44px;
  --header-action-radius: 12px;
  --header-icon-color: #000;
  --header-icon-hover: #00a651;
  --header-accent-bg: #eaf7ef;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--header-action-size);
  padding: 0.35rem 0.5rem;
  border-radius: var(--header-action-radius);
  background: transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.header-block__action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--header-action-radius);
  color: var(--header-icon-color);
  text-decoration: none;
}

.header-block__icon {
  color: inherit;
  font-size: 1.4rem;
  line-height: 1;
}

.header-block:hover .header-block__action-btn,
.header-block:focus-within .header-block__action-btn {
  color: var(--header-icon-hover);
  background: var(--header-accent-bg);
}

.header-block__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.65rem;
  height: 1.65rem;
  padding: 0 0.3rem;
  margin-left: 0.1rem;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

.header-block__badge:hover,
.header-block__badge:focus-visible {
  background: #1b1b1b;
}

.header-block--cta {
  --header-icon-color: #fff;
  --header-icon-hover: #fff;
}

.header-block--cta .header-block__action-btn {
  background: #00a651;
  color: #fff;
  font-weight: 800;
  border: 1px solid #009347;
}

.header-block--cta .header-block__action-btn:hover,
.header-block--cta .header-block__action-btn:focus-visible {
  background: #00b55c;
  color: #fff;
}

.header-block__action-btn--cart {
  gap: 0.7rem;
  padding: 0.55rem 1rem;
}

.header-block__amount {
  color: inherit;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.header-block__chevron {
  color: inherit;
  font-size: 1rem;
  line-height: 1;
}

/* Wyszukiwarka w nagłówku */
.search-widgets {
  width: 100%;
}

.search-widgets .js-search-widget form {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #f7f9f7;
  border: 1px solid #d9e3dc;
  border-radius: 16px;
  padding: 0.7rem 1.1rem;
  min-height: 66px;
  position: relative;
}

.search-widgets .js-search-icon,
.search-widgets .clear {
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-style: normal;
  color: #6d6f71;
}

.search-widgets .js-search-icon::before {
  content: "\f002";
}

.search-widgets .clear::before {
  content: "\f00d";
}

.search-widgets .js-search-icon,
.search-widgets .clear {
  display: none;
}

.search-widgets .js-search-input,
.search-widgets .search-widgets__input {
  flex: 1;
  width: 100%;
  border: none;
  background: transparent;
  padding-right: 3rem;
  font-size: 1.05rem;
  color: #000;
}

.search-widgets .js-search-input:focus {
  outline: none;
}

/* Przycisk z ikoną wyszukiwania osadzony wewnątrz pola po prawej stronie */
.search-widgets .search-widgets__submit {
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #3e4142;
  font-size: 1.1rem;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.search-widgets .search-widgets__submit:hover,
.search-widgets .search-widgets__submit:focus-visible {
  color: #00a651;
  background: rgba(0, 166, 81, 0.1);
}

.search-widgets .clear {
  cursor: pointer;
}

/* Belka menu kategorii */
.category-menu,
.top-menu {
  background: #00a651;
  border-radius: 14px;
  padding: 0.4rem 0.75rem;
}

.category-menu .nav-link,
.top-menu .nav-link {
  color: #000;
  font-weight: 500;
  font-size: 17px;
  text-transform: uppercase;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

/* Zapewnienie zielonego koloru linków menu głównego przy najechaniu */
#top-menu .nav-link:hover,
#top-menu .nav-link:focus-visible {
  color: #00a651;
}

.category-menu .nav-link:hover,
.category-menu .nav-link:focus-visible,
.category-menu .nav-link.active,
.top-menu .nav-link:hover,
.top-menu .nav-link:focus-visible,
.top-menu .nav-link.active {
  color: #fff;
  background: #00924b;
}

/* Ułożenie głównych elementów nagłówka */
.header-bottom__container {
  padding: 0.6rem 0;
}

/* Wymuszamy jeden rząd obok logotypu niezależnie od szerokości */
.header-bottom__row {
  gap: 0.35rem;
  flex-wrap: nowrap !important;
}

.header-bottom {
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
}

.header-bottom__search {
  min-width: 320px;
  flex: 1;
}

.header-bottom__nav {
  margin-left: 0.75rem;
}

.header-links .header-link {
  color: #000;
  font-weight: 400;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.6rem;
  text-decoration: none;
  border-radius: 10px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.header-links .header-link__icon {
  font-size: 0.95rem;
  color: inherit;
}

.header-links .header-link:hover,
.header-links .header-link:focus-visible {
  color: #00a651;
}

/* Doprecyzowanie stylu hover, aby nadpisać domyślny kolor linków w nagłówku */
.header-bottom__nav .header-links .header-link:hover,
.header-bottom__nav .header-links .header-link:focus-visible {
  color: #00a651 !important;
  text-decoration: none !important;
  background: transparent !important;
}

.header-bottom__nav .header-links .header-link:hover .header-link__icon,
.header-bottom__nav .header-links .header-link:focus-visible .header-link__icon {
  color: #00a651 !important;
}

.logo__link .logo__img {
  max-height: 80px;
  width: auto;
  height: auto;
}

/* Responsywność: tablety i telefony */
@media (max-width: 991.98px) {
  .header-bottom__container {
    padding: 0.45rem 0;
  }

  .header-bottom__row {
    flex-wrap: wrap !important;
    row-gap: 0.35rem;
  }

  .logo {
    order: 2;
    margin-left: auto;
    margin-right: auto;
  }

  .search__mobile {
    order: 1;
  }

  #_mobile_user_info,
  #_mobile_cart {
    order: 3;
  }

  .search__offcanvas.offcanvas-top {
    max-height: 80vh;
    border-radius: 0 0 18px 18px;
    background: rgba(244, 240, 234, 0.95);
    backdrop-filter: blur(6px);
  }

  .search__offcanvas .offcanvas-header {
    padding: 1rem;
  }

    .header-block {
      --header-action-size: 40px;
      padding: 0.3rem 0.4rem;
  }
}

@media (max-width: 767.98px) {
  .header-top {
    padding: 0.2rem 0;
    font-size: 0.95rem;
  }

  .header-block__action-btn {
    padding: 0.25rem 0.55rem;
  }


  .top-menu,
  .category-menu {
    padding: 0.3rem 0.55rem;
    border-radius: 10px;
  }

  .top-menu .nav-link,
  .category-menu .nav-link {
    padding: 0.55rem 0.65rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 575.98px) {
  .header-bottom__row {
    justify-content: space-between;
  }

  .search__mobile {
    margin-right: 0.35rem;
  }

  .header-block__badge {
    transform: translateY(-2px);
  }
}

/* Stopka - przebudowany układ na bazie makiety */
.footer {
  --footer-background-color: #ffffff;
  --footer-text-color: #323b33;
  --footer-hover-color: #00a651;
  --footer-heading-color: #101610;
}

.footer .footer__main {
  padding: 3.5rem 0 2.75rem;
  background: var(--footer-background-color);
  border-top: 1px solid #e6e9e6;
}

.footer .footer__main__top {
  row-gap: 1.75rem;
}

.footer .footer__block {
  margin-bottom: 0.75rem;
}

.footer .footer__block__title {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--footer-heading-color);
}

.footer .footer__block__toggle {
  padding: 0.85rem 0;
  color: var(--footer-heading-color);
  border-bottom: 1px solid #ebefeb;
}

.footer .footer__block__content {
  color: var(--footer-text-color);
  font-weight: 400;
}

.footer .footer__block__content-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.footer .footer__block__content-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0;
  color: var(--footer-text-color);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.footer .footer__block__content-list a::before {
  content: "";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #f3f5f3;
  color: #00a651;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.95rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.footer .footer__block--links .footer__block__content-list a::before {
  content: "\f0c1";
}

.footer .footer__block--links .footer__block__content-list li:nth-child(1) a::before {
  content: "\f05a";
}

.footer .footer__block--links .footer__block__content-list li:nth-child(2) a::before {
  content: "\f56c";
}

.footer .footer__block--links .footer__block__content-list li:nth-child(3) a::before {
  content: "\f3ed";
}

.footer .footer__block--links .footer__block__content-list li:nth-child(4) a::before {
  content: "\f0e0";
}

.footer .footer__block--links .footer__block__content-list li:nth-child(5) a::before {
  content: "\f3c5";
}

.footer .footer__block__content-list a:hover,
.footer .footer__block__content-list a:focus-visible {
  color: var(--footer-hover-color);
}

.footer .footer__block__content-list a:hover::before,
.footer .footer__block__content-list a:focus-visible::before {
  background: #e2f5e8;
  color: #00924d;
}

.footer .footer__block--account .footer__block__content-list a::before {
  content: "\f2bd";
}

.footer .footer__block--account .footer__block__content-list li:nth-child(1) a::before {
  content: "\f2bb";
}

.footer .footer__block--account .footer__block__content-list li:nth-child(2) a::before {
  content: "\f015";
}

.footer .footer__block--account .footer__block__content-list li:nth-child(3) a::before {
  content: "\f290";
}

.footer .footer__block--account .footer__block__content-list li:nth-child(4) a::before {
  content: "\f15c";
}

.footer .footer__block--account .footer__block__content-list li:nth-child(5) a::before {
  content: "\f02b";
}

.footer [data-block-title="Moje zamówienie"] .footer__block__content-list a::before {
  content: "\f0a1";
}

.footer [data-block-title="Moje zamówienie"] .footer__block__content-list li:nth-child(1) a::before {
  content: "\f15c";
}

.footer [data-block-title="Moje zamówienie"] .footer__block__content-list li:nth-child(2) a::before {
  content: "\f0d1";
}

.footer [data-block-title="Moje zamówienie"] .footer__block__content-list li:nth-child(3) a::before {
  content: "\f071";
}

.footer [data-block-title="Moje zamówienie"] .footer__block__content-list li:nth-child(4) a::before {
  content: "\f0e2";
}

.footer [data-block-title="Moje zamówienie"] .footer__block__content-list li:nth-child(5) a::before {
  content: "\f095";
}

.footer .footer__block__content-contact {
  gap: 0.65rem;
}

.footer .footer__block__content-contact .contact__infos,
.footer .footer__block__content-contact .contact__phone,
.footer .footer__block__content-contact .contact__fax,
.footer .footer__block__content-contact .contact__email {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.25rem;
  color: var(--footer-text-color);
}

.footer .footer__block__content-contact i {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #f3f5f3;
  color: #00a651;
  font-size: 1.1rem;
}

.footer .footer__block__content-contact a {
  color: inherit;
  text-decoration: none;
}

.footer .footer__block__content-contact a::before {
  display: none;
}

.footer .copyright {
  margin-top: 1.5rem;
  color: #7a837c;
  font-size: 0.9rem;
}

/* Stylowanie menu głównego */
.header .main-menu__tree > li > a {
  outline-offset: -0.5rem;
  padding: 0.7rem 1rem;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 15px;
}

.header .main-menu__tree > li > a:hover,
.header .main-menu__tree > li > a:focus-visible {
  color: #00a651 !important;
}

@media (max-width: 767.98px) {
  .footer .footer__block__title {
    margin-bottom: 0.5rem;
  }

  .footer .footer__block__content-list a::before {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }
}
