/*
 * Poprawki stylow po aktualizacji WP 7 / Favorites 2.3.8 (grudzien 2026).
 * Plik ladowany bezposrednio (config/theme.php), poza webpackiem - nie wymaga przebudowy dist/.
 * Kolor = $primary z resources/assets/styles/common/_variables.scss.
 */

/* WP dodaje "border-style: solid" kazdemu elementowi z inline border-color (wtyczka Favorites
   wstawia border-color w atrybucie style) - na listingu i w koszyku ramka jest niepotrzebna.
   Na karcie produktu zostaje ramka z motywu (.singleProduct__summary ... ma wyzsza specyficznosc). */
.simplefavorite-button {
  border-style: none;
  background: transparent;
}

/* Serduszko w kolorze motywu */
.simplefavorite-button svg path {
  stroke: #01402E;
}
.simplefavorite-button.active svg path {
  fill: #01402E;
  stroke: #01402E;
}
.simplefavorite-button.active {
  opacity: 1;
}

/* Poziomy pasek przewijania: karuzele produktow (.product-block__list, margin-right ujemny + slajdy
   "zagladajace" za krawedz) wychodzily poza okno przy szerokosciach < ~1920px. Przycinamy na krawedzi
   ekranu - efekt podgladu kolejnego produktu zostaje, znika przewijanie w poziomie.
   overflow-x: clip nie tworzy kontenera przewijania (nie psuje position: sticky ani cieni w pionie). */
main.main {
  overflow-x: clip;
}
@supports not (overflow: clip) {
  .product-block,
  .banners-slider,
  .logos-slider,
  .top-slider {
    overflow-x: hidden;
  }
}

/* Newsletter: zgoda "Chce otrzymywac..." miala white-space: nowrap i przy ~1024px wychodzila poza ekran */
.newsletter__acceptance label {
  white-space: normal;
}
.newsletter__acceptance label > span {
  flex-shrink: 0;
}

/* Pasek zalet nad stopka (6 x col-md-2): na tabletach 768-991px teksty nie miescily sie w kolumnach
   i wychodzily poza ekran - w tym zakresie 2 rzedy po 3. */
@media (min-width: 768px) and (max-width: 991.98px) {
  .prefooter .js-usp-slider > .col-md-2 {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
    margin-bottom: 12px;
  }
}
.prefooter__single,
.prefooter__text {
  min-width: 0;
}

/* Mobilne karuzele w gornym pasku (Darmowa dostawa / Rabaty / Zwrot) i w pasku zalet nad stopka:
   strzalki mialy right/left: -25px i wychodzily ~10px poza ekran. Przesuwamy je do krawedzi ekranu
   (padding kontenera = 15px). */
@media (max-width: 767.98px) {
  .top-header__list .slick-next,
  .prefooter .js-usp-slider .slick-next {
    right: -15px;
  }
  .top-header__list .slick-prev,
  .prefooter .js-usp-slider .slick-prev {
    left: -15px;
  }
}
.top-header,
.prefooter {
  overflow-x: clip;
}

/* Waskie telefony (~360px): pola wyboru w newsletterze i dolne menu stopki nie zawijaly sie */
@media (max-width: 413.98px) {
  .newsletter__checkboxes {
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .newsletter__checkboxes label.ml-5 {
    margin-left: 0 !important;
    margin-right: 1.5rem;
  }
  .footer__bottom-menu {
    flex-wrap: wrap;
    row-gap: 6px;
  }
}

/* ===== Menu mobilne (do 991px) ===== */
@media (max-width: 991.98px) {
  /* Przyciemnienie tla pod otwartym menu (nakladka nie miala z-index i byla przykrywana przez tresc) */
  .menu-mobile-overlay,
  .menu-mobile-overlay.active {
    z-index: 32;
    background: rgba(0, 0, 0, 0.4);
  }
  html.mobile-menu-open,
  html.mobile-menu-open body {
    overflow: hidden;
  }
  .header-mobile-menu {
    transition: transform .3s ease-in-out;
  }

  /* Pozycja: tekst = link do kategorii, kwadratowy przycisk = podkategorie */
  .header-mobile-menu .megamenu__parent {
    position: static;
  }
  .header-mobile-menu .megamenu__parent > a .megamenu__parent-arrow {
    display: none !important;
  }
  .header-mobile-menu .megamenu__parent--has-children {
    display: flex;
    align-items: stretch;
    padding: 0;
  }
  .header-mobile-menu .megamenu__parent--has-children > a,
  .header-mobile-menu .megamenu__parent--leaf > a {
    flex: 1 1 auto;
    min-width: 0;
    padding: 15px;
  }
  .header-mobile-menu .megamenu__parent--leaf {
    padding: 0;
  }
  .header-mobile-menu .megamenu__toggle {
    flex: 0 0 52px;
    width: 52px;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-left: 1px solid #e7e7e7;
    background: transparent;
    color: #01402E;
    padding: 0;
    cursor: pointer;
  }
  .header-mobile-menu .megamenu__toggle:active,
  .header-mobile-menu .megamenu__toggle:hover {
    background: #F2F2F2;
  }
  .header-mobile-menu .megamenu__toggle:focus-visible,
  .header-mobile-menu .megamenu__back:focus-visible {
    outline: 2px solid #01402E;
    outline-offset: -2px;
  }

  /* Podmenu jako kolejna "karta" wysuwana z prawej */
  .header-mobile-menu .megamenu__submenu-holder {
    opacity: 1;
    transform: translateX(100%);
    transition: transform .3s ease-in-out, visibility .3s;
    overflow-y: auto;
    padding: 0;
    z-index: 25;
  }
  .header-mobile-menu .megamenu__parent.active .megamenu__submenu-holder {
    transform: translateX(0);
    visibility: visible;
  }
  .header-mobile-menu .megamenu__submenu-holder > .row {
    margin: 0;
  }
  .header-mobile-menu .megamenu__submenu-holder > .row > [class*="col-"] {
    padding: 0;
  }
  .megamenu__panel-head {
    display: flex;
    align-items: stretch;
    background: #01402E;
    color: #fff;
  }
  .megamenu__back {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 15px;
    border: 0;
    background: transparent;
    color: #fff;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
  }
  .megamenu__all {
    display: flex;
    align-items: center;
    padding: 0 15px;
    color: #fff !important;
    font-size: 13px;
    text-decoration: underline;
    white-space: nowrap;
  }
  .header-mobile-menu .megamenu__list li a {
    padding: 15px 15px 15px 30px;
  }
}

/* ===== Karta produktu ===== */
/* Zdjecie glowne zawsze na szerokosc kontenera (wczesniej mniejsze pliki wyswietlaly sie w natywnym rozmiarze) */
.singleProduct__galleryWrapper .singleProduct__image {
  display: block;
  width: 100%;
}
.singleProduct__galleryWrapper .singleProduct__image img {
  width: 100%;
  height: auto;
}
/* Nazwa produktu - nieco mniejsza (bylo 48px) */
.singleProduct__title {
  font-size: 1.75rem;
  line-height: 1.3;
}
@media (min-width: 992px) {
  .singleProduct__title {
    font-size: 2.25rem;
  }
}

/* ===== Blog: lista wpisow ===== */
.blog-archive {
  padding-bottom: 4rem;
}
.blog-archive__header {
  margin-bottom: 2rem;
}
.blog-archive__title {
  font-size: 1.75rem;
  font-weight: 400;
  margin: 0;
}
.blog-archive__description {
  margin-top: .75rem;
  color: #696969;
  max-width: 760px;
}
.blog-archive__col {
  margin-bottom: 2.5rem;
}
.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.blog-card__image {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #F2F2F2;
}
.blog-card__image img,
.blog-card__image-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease-in-out;
}
.blog-card:hover .blog-card__image img {
  transform: scale(1.03);
}
.blog-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding-top: 1.25rem;
}
.blog-card__title {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.35;
  margin: .5rem 0 .75rem;
}
.blog-card__title a {
  color: #262626;
  transition: color .3s ease-in-out;
}
.blog-card__title a:hover {
  color: #01402E;
}
.blog-card__excerpt {
  color: #696969;
  font-size: .9375rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.blog-card__more {
  margin-top: auto;
  align-self: flex-start;
}
.blog-card__more svg,
.blog-post__back svg {
  margin-left: .75rem;
}
.blog-post__back svg {
  margin: 0 .75rem 0 0;
}
@media (min-width: 992px) {
  .blog-archive__title {
    font-size: 2.25rem;
  }
  .blog-card__title {
    font-size: 1.5rem;
  }
}

/* Meta wpisu (data, czas czytania, kategoria) */
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .5rem;
  font-size: .8125rem;
  letter-spacing: .04em;
  color: #696969;
}
.entry-meta__cat {
  color: #01402E;
  font-weight: 500;
}

/* Paginacja */
.blog-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
}
.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 .75rem;
  border: 1px solid #e7e7e7;
  color: #262626;
}
.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
  background: #01402E;
  border-color: #01402E;
  color: #fff;
}

/* ===== Blog: pojedynczy wpis ===== */
.blog-post {
  padding-bottom: 4rem;
}
.blog-post__header,
.blog-post__content,
.blog-post__footer,
.blog-comments {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.blog-post__title {
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.3;
  margin: .75rem 0 0;
}
.blog-post__hero {
  margin: 2rem 0 2.5rem;
  background: #F2F2F2;
}
.blog-post__hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
@media (min-width: 992px) {
  .blog-post__title {
    font-size: 2.5rem;
  }
  .blog-post__hero {
    margin: 2.5rem 0 3.5rem;
  }
  .blog-post__hero img {
    aspect-ratio: 21 / 9;
  }
}
.blog-post__content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #262626;
}
.blog-post__content > * {
  margin-top: 0;
  margin-bottom: 1.4em;
}
.blog-post__content .lead {
  font-size: 1.25rem;
  line-height: 1.7;
  font-weight: 300;
}
.blog-post__content h2 {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.35;
  margin: 2.2em 0 .8em;
}
.blog-post__content h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin: 1.8em 0 .6em;
}
.blog-post__content a {
  color: #01402E;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.blog-post__content ul,
.blog-post__content ol {
  padding-left: 1.25rem;
}
.blog-post__content ul {
  list-style: none;
  padding-left: 0;
}
.blog-post__content ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: .5em;
}
.blog-post__content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .7em;
  width: 7px;
  height: 7px;
  background: #01402E;
}
.blog-post__content blockquote,
.blog-post__content .wp-block-quote {
  margin: 2em 0;
  padding: 1.5rem 1.75rem;
  border-left: 3px solid #01402E;
  background: #F2F2F2;
  font-size: 1.25rem;
  line-height: 1.6;
  font-weight: 300;
}
.blog-post__content blockquote p:last-child {
  margin-bottom: 0;
}
.blog-post__content figure {
  margin: 2em 0;
}
.blog-post__content figure img {
  display: block;
  width: 100%;
  height: auto;
}
.blog-post__content figcaption {
  margin-top: .6rem;
  font-size: .8125rem;
  color: #696969;
  text-align: center;
}
.blog-post__content .wp-block-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.blog-post__content .wp-block-gallery figure {
  margin: 0;
}
.blog-post__content .wp-block-gallery img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
@media (min-width: 576px) {
  .blog-post__content .wp-block-gallery.columns-2 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 992px) {
  .blog-post__content h2 {
    font-size: 1.75rem;
  }
}
.blog-post__footer {
  margin-top: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid #e7e7e7;
  border-bottom: 1px solid #e7e7e7;
}

/* ===== Blog: komentarze ===== */
.blog-comments {
  margin-top: 3rem;
}
.blog-comments__title,
.blog-comments .comment-reply-title {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}
.blog-comments__count {
  color: #696969;
  font-weight: 400;
}
.blog-comments .comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 3rem;
}
.blog-comments .comment-list .children {
  list-style: none;
  padding-left: 1.5rem;
  border-left: 2px solid #F2F2F2;
}
.blog-comments .comment-body {
  padding: 1.25rem 0;
  border-bottom: 1px solid #e7e7e7;
}
.blog-comments .comment-author {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-weight: 500;
}
.blog-comments .comment-author .avatar {
  border-radius: 50%;
}
.blog-comments .comment-author .says {
  display: none;
}
.blog-comments .comment-metadata {
  font-size: .8125rem;
  margin: .25rem 0 .75rem;
}
.blog-comments .comment-metadata a {
  color: #696969;
}
.blog-comments .reply a {
  font-size: .8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #01402E;
}
.blog-comments__form {
  padding: 2rem 1.25rem;
  background: #F2F2F2;
}
@media (min-width: 768px) {
  .blog-comments__form {
    padding: 2.5rem;
  }
}
.blog-comments .comment-reply-title small {
  display: block;
  margin-top: .25rem;
  font-size: .875rem;
}
.blog-comments .comment-reply-title small a {
  color: #01402E;
  text-decoration: underline;
}
.blog-comments .comment-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 1.25rem;
}
.blog-comments .comment-form > * {
  grid-column: 1 / -1;
  margin: 0 0 1.25rem;
}
@media (min-width: 768px) {
  .blog-comments .comment-form {
    grid-template-columns: 1fr 1fr;
  }
  .blog-comments .comment-form > .comment-form-author {
    grid-column: 1 / 2;
  }
  .blog-comments .comment-form > .comment-form-email {
    grid-column: 2 / 3;
  }
}
.blog-comments .comment-notes,
.blog-comments .logged-in-as {
  font-size: .875rem;
  color: #696969;
}
.blog-comments .logged-in-as a {
  color: #01402E;
}
.blog-comments .comment-form label {
  display: block;
  margin-bottom: .375rem;
  font-size: .875rem;
  font-weight: 500;
}
.blog-comments .comment-form .required {
  color: #01402E;
}
.blog-comments .comment-form input[type="text"],
.blog-comments .comment-form input[type="email"],
.blog-comments .comment-form input[type="url"],
.blog-comments .comment-form textarea {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid #B8B8B8;
  border-radius: 0;
  background: #fff;
  font: inherit;
  font-size: 1rem;
  line-height: 1.6;
  color: #262626;
  transition: border-color .2s ease-in-out, box-shadow .2s ease-in-out;
}
.blog-comments .comment-form textarea {
  min-height: 160px;
  resize: vertical;
}
.blog-comments .comment-form input:focus,
.blog-comments .comment-form textarea:focus {
  outline: none;
  border-color: #01402E;
  box-shadow: 0 0 0 1px #01402E;
}
.blog-comments .comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
}
.blog-comments .comment-form-cookies-consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #01402E;
}
.blog-comments .comment-form-cookies-consent label {
  margin: 0;
  font-weight: 400;
  color: #696969;
}
.blog-comments .form-submit {
  margin-bottom: 0;
}
.blog-comments .form-submit .trendy-btn {
  border: 0;
  cursor: pointer;
}

/* Okruszki Yoast (blog) - brak separatora w ustawieniach Yoast; ten sam znak ">" co w okruszkach sklepu */
.page-breadcrubms#breadcrumbs > span > span + span::before,
.page-breadcrubms#breadcrumbs > span > span + .breadcrumb_last::before {
  content: ">";
  margin: 0 .5rem;
  color: #696969;
}

/* Galeria Gutenberga we wpisie: rdzen WP ustawia szerokosci figur z selektorem :not(#individual-image) */
.blog-post__content .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
  width: 100%;
  margin: 0;
}
.blog-post__content .wp-block-gallery.has-nested-images figure.wp-block-image img {
  width: 100%;
  height: 100%;
}
