/********************************************************
			Coderplace Custom Styles
********************************************************/
.tm-carousel {
  display: none;
  position: relative;
  float: left;
  width: 100%;
  margin: 0;
}
.cp-carousel {
  display: none;
  position: relative;
  float: left;
  width: 100%;
  margin: 0;
}
.owl-carousel .owl-wrapper {
  display: none;
  position: relative;
  -webkit-transform: translate3d(0px, 0px, 0px);
  -ms-transform: translate3d(0px, 0px, 0px);
  -o-transform: translate3d(0px, 0px, 0px);
  -moz-transform: translate3d(0px, 0px, 0px);
  display: flex!important;
  flex-wrap: nowrap !important;
}
.owl-carousel .owl-wrapper:after {
  content: ".";
  display: block;
  clear: both;
  visibility: hidden;
  line-height: 0;
  height: 0;
}
.owl-carousel .owl-wrapper-outer {
    overflow-x: clip;
    position: relative;
    float: left;
    width: 100%;
    padding: 0;
}
.owl-carousel .owl-wrapper-outer.autoHeight {
  -webkit-transition: height 500ms ease-in-out;
  -moz-transition: height 500ms ease-in-out;
  -ms-transition: height 500ms ease-in-out;
  -o-transition: height 500ms ease-in-out;
  transition: height 500ms ease-in-out;
}
.owl-carousel .owl-item {
  float: left;
  display: flex;
  height: auto;
}
#cptestimonial .owl-wrapper-outer .owl-item {
  display: block;
}
.owl-carousel .owl-item .manu_image a {
  display: inline-block;
}
.owl-carousel .owl-item .manu_image a img {
  max-width: 100%;
}

.owl-carousel .owl-wrapper,
.owl-carousel .owl-item {
  /* fix */
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -ms-backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
  -ms-transform: translate3d(0, 0, 0);
  text-align: center;
}

/* mouse grab icon */
.customNavigation {
	position: absolute;
	z-index: 9;
	width: 100%;
	top: 50%;
	direction: ltr !important;
	right: 0;
	left: auto;
  opacity: 0;
  -khtml-opacity: 0;
-webkit-opacity: 0;
-moz-opacity: 0;
}
.products .customNavigation {
	top: 45%;
}
.tmcategorylist .customNavigation, .testimonial-block-part .customNavigation {
	top: 54%;
}
.tmcategorylist:hover .customNavigation {
	opacity: 1;
	-khtml-opacity: 1;
	-webkit-opacity: 1;
	-moz-opacity: 1;
}
.customNavigation a.prev::before {
	content: "\E314";
	font-family: "Material Icons";
	position: absolute;
	font-size: 20px;
	right: 5px;
	top: -1px;
	color: #808080;
}
.customNavigation a.next::before {
	content: "\E315";
	font-family: "Material Icons";
	position: absolute;
	font-size: 20px;
	position: absolute;
	right: 3px;
	top: -1px;
	color: #808080;
}
#tmtestimonialcmsblock .customNavigation {
  top: -24px;
  z-index: 5;
  right: 15px;
}
#index #tmtestimonialcmsblock .customNavigation {
  top: -40px;
  right: 0;
}
.special-products .customNavigation {
	top: 52%;
}
.special-products:hover .customNavigation, 
.products:hover .customNavigation,
.testimonial-block-part:hover .customNavigation,
.tmblog-latest:hover .customNavigation, 
#tminstagramblock:hover .customNavigation,
.product-accessories:hover .customNavigation,
.productscategory-products:hover .customNavigation{
  opacity: 1;
  -khtml-opacity: 1;
  -webkit-opacity: 1;
  -moz-opacity: 1;
}
.lastest_block .customNavigation {
	top: 44%;
}
.customNavigation i {
	color: #222 !important;
	cursor: pointer;
	font-size: 0;
	font-weight: 500;
	height: 38px;
	line-height: 32px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	text-align: center;
	width: 38px;
	background: transparent;
	border-radius: 0;
	font-style: unset;
	box-shadow: 0px 0px 16px 0px rgba(0,0,0,0.11);
}

.customNavigation i.prev {
	background: transparent;
	right: auto;
	background: #fff;
	border-radius: 50%;
	left: -5px;
}
.customNavigation i.next {
	background: transparent;
	right: 0px;
	background: #fff;
	border-radius: 50%;
	right: -5px;
}
.tmcategorylist .customNavigation i.prev, 
.testimonial-block-part .customNavigation i.prev, 
#tminstagramblock .btn.prev.instagram_prev,
.special-products .customNavigation i.prev{
	left: -20px;
}
.tmcategorylist .customNavigation i.next, 
.testimonial-block-part .customNavigation i.next, 
#tminstagramblock .btn.next.instagram_next,
.special-products .customNavigation i.next  {
  right: -20px;
}
.testimonial-block-part .customNavigation i.prev, .testimonial-block-part .customNavigation i.next {
  display: none;
}
.customNavigation i.prev::before {
	content: '';
	-webkit-mask-image: url(../img/megnor/pro-left.svg);
	-webkit-mask-position: center;
	-webkit-mask-repeat: no-repeat;
	mask-image: url(../img/megnor/pro-left.svg);
	mask-position: center;
	mask-repeat: no-repeat;
	background-color: #000;
	mask-size: 14px;
	font-size: 14px;
	width: 38px;
	height: 38px;
	display: block;
  -webkit-mask-size: 14px;
}
#tmtestimonialcmsblock .customNavigation i.prev::before {
  right: 1px;
  font-weight: 500;
}
#tmtestimonialcmsblock .customNavigation i.next::before {
  right: 0;
  font-weight: 500;
}
.customNavigation i.next::before {
	content: '';
	-webkit-mask-image: url(../img/megnor/pro-right.svg);
	-webkit-mask-position: center;
	-webkit-mask-repeat: no-repeat;
	mask-image: url(../img/megnor/pro-right.svg);
	mask-position: center;
	mask-repeat: no-repeat;
	background-color: #000;
	mask-size: 14px;
	font-size: 14px;
	width: 38px;
	height: 38px;
	display: block;
  -webkit-mask-size: 14px;
}
.customNavigation i.next:hover::before,.customNavigation i.prev:hover::before  {
  color: #fff;
}
#cpleftbanner1 img,
#cpleftbanner2 img {
  max-width: 100%;
}
#cpleftbanner1 li,
#cpleftbanner2 li {
  overflow: hidden;
  position: relative;
  float: left;
  border-radius: 5px;
}
#cpleftbanner1 li a,
#cpleftbanner2 li a {
  display: inline-block;
  position: relative;
  overflow: hidden;
  vertical-align: top;
}
.footer-container .links.lastest_block .customNavigation i.prev:hover {
  color: #9bbab1 !important;
}
.footer-container .links.lastest_block .customNavigation i.next:hover {
  color: #9bbab1 !important;
}

@media (max-width: 1449px) {
  .tmcategorylist .customNavigation i.prev, 
  .testimonial-block-part .customNavigation i.prev, 
  #tminstagramblock .btn.prev.instagram_prev,
  .special-products .customNavigation i.prev{
    left: -15px;
  }
  .tmcategorylist .customNavigation i.next, 
  .testimonial-block-part .customNavigation i.next,
   #tminstagramblock .btn.next.instagram_next,
   .special-products .customNavigation i.next {
    right: -15px;
  }
  .customNavigation i.next {
    right: 0;
  }
  .customNavigation i.prev {
    left: 0;
  }
}
@media (max-width: 1199px) {
  #tmtestimonialcmsblock .customNavigation {
    top: -36px;
    z-index: 5;
    right: -18px;
  }
}

@media (max-width: 991px) {
  #cpleftbanner1 li img,
  #cpleftbanner2 li a {
    width: auto;
  }
  #tmtestimonialcmsblock .customNavigation {
    top: 0;
    right: 0;
  }
}
@media (max-width: 767px) {
  .customNavigation {
    opacity: 1;
    -khtml-opacity: 1;
    -webkit-opacity: 1;
    -moz-opacity: 1;
  }
  
  .tmcategorylist .customNavigation i.prev, 
  .testimonial-block-part .customNavigation i.prev, 
  #tminstagramblock .btn.prev.instagram_prev, 
  .special-products .customNavigation i.prev,
  .btn.prev.accessories_prev {
    left: 0;
  }
  .tmcategorylist .customNavigation i.next, 
  .testimonial-block-part .customNavigation i.next,
   #tminstagramblock .btn.next.instagram_next, 
   .special-products .customNavigation i.next,
   .btn.next.accessories_next {
    right: 0;
  }
  #main .images-container .js-qv-mask .customNavigation {
    top: 40%;
  }
  .quickview .mask.additional_slider .customNavigation i.prev {
    left: -10px !important;
  }
  .quickview .mask.additional_slider .customNavigation i.next {
    right: -10px !important;
  }
  .btn.next.brand_next {
    left: auto;
    right: 0;
    position: absolute;
  }
  .btn.prev.brand_prev {
    left: 0;
    right: auto;
  }
  .customNavigation i.next {
    left: auto;
    right: 0;
  }
}
@media (max-width: 480px) {
}
/* BEZPIECZNA NAPRAWA IKON */

/* 1. Resetujemy sztywne 300px na 'auto' (pozwalamy ikonom oddycha ) */
svg:not(:root) {
    height: auto !important;
    width: auto !important;
    max-width: 100%; /* Zabezpieczenie,  eby nigdy nie wychodzi y poza ekran */
}

/* 2. Konkretne wymiary dla miejsc, kt re na 100% s  zepsute */
.ybc_blog_layout_home svg, 
.blog_post_content svg,
.ybc-blog-posts svg {
    width: 16px !important;
    height: 16px !important; 
}

.product-actions svg, 
.social-sharing svg,
.wishlist-button svg {
    width: 20px !important;
    height: 20px !important;
    fill: currentColor;
}

/* 3. Dodatkowe zabezpieczenie dla ikon wewn trz przycisk w (np. koszyk) */
button svg, .btn svg {
    max-height: 20px;
    width: auto;
}
/* ================================================================= */
/* === BEZPIECZNA NAPRAWA IKON (SVG FIX) === */
/* ================================================================= */

/* 1. Resetujemy sztywne wymiary na 'auto' (naprawa wielkich ikon) */
svg:not(:root) {
    height: auto !important;
    width: auto !important;
    max-width: 100%; /* Zabezpieczenie, żeby nigdy nie wychodziły poza ekran */
}

/* 2. Konkretne wymiary dla bloga i list (tam gdzie były największe problemy) */
.ybc_blog_layout_home svg, 
.blog_post_content svg,
.ybc-blog-posts svg {
    width: 16px !important;
    height: 16px !important; 
}

/* 3. Ikony akcji produktu (Wishlist, Compare) */
.product-actions svg, 
.social-sharing svg,
.wishlist-button svg {
    width: 20px !important;
    height: 20px !important;
    fill: currentColor;
}

/* 4. Ikony wewnątrz przycisków */
button svg, .btn svg {
    max-height: 20px;
    width: auto;
}
/* ================================================================= */
/* === MASTER FIX v7: TOTALNA OLIWKA (FULL WIDTH FIX) === */
/* ================================================================= */

/* 1. TŁO - WYMUSZENIE NA KAŻDEJ WARSTWIE */
/* To naprawia "czarne skrzydła" po bokach. Kolorujemy każdy kontener po kolei. */
#header,                       /* Kontener główny */
#header .header-top,           /* Pasek zewnętrzny (to on był czarny!) */
#header .header-top-main,      /* Pasek wewnętrzny */
#header .header-div,           /* Warstwa środkowa */
#header .bg_main,              /* Tło specyficzne dla podstron */
.header-top.fixed,             /* Pasek przyklejony */
.header-top-main.bg_main {     /* Precyzyjny celownik w podstrony */
    background-color: #2D462F !important; /* Twoja Ciemna Oliwka */
    background-image: none !important;    /* Usuwa ew. tekstury */
    border: none !important;              /* Usuwa ramki */
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;               /* Rozciąga kolor na całą szerokość */
    box-shadow: none !important;
}

/* 2. GÓRNY PASEK (Wąski Top Bar) */
.header-nav {
    background-color: #1b2e1d !important; /* Ciemny Las */
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}
.header-nav a, .header-nav span { color: #f4f1ea !important; }
.header-nav a:hover { color: #D35400 !important; }

/* 3. POZYCJONOWANIE (Naprawa znikającego menu i lupy) */
#header {
    position: relative !important;
    z-index: 10005 !important;
}
#header .header-top-main, 
#header .header-div {
    position: relative !important;
    z-index: 10006 !important;
    overflow: visible !important; /* Kluczowe: pozwala menu "wyjść" poza pasek */
}

/* 4. KOLORY TEKSTÓW I IKON (Mosiądz) */
/* Celujemy we wszystkie możliwe warianty, żeby nadpisać czarny tekst */
#header a,
#header span,
#header p,
#header i,
#header .material-icons,
#header .header-top a, 
#header .header-top span,
.header-top-main.bg_main a,
.header-top-main.bg_main span {
    color: #E5C365 !important;
    transition: color 0.3s;
}

/* 5. EFEKT HOVER (Cegła) */
#header a:hover, 
#header span:hover, 
#header i:hover,
#header .header-top a:hover, 
#header .header-top .material-icons:hover,
.header-top-main.bg_main a:hover {
    color: #D35400 !important;
}

/* 6. NAPRAWA MENU ROZWIJANEGO (Białe tło na wierzchu) */
.top-menu .sub-menu,
.dropdown-menu,
.popover,
.searchtoggle {
    z-index: 99999 !important; /* Musi przykryć wszystko inne */
    background-color: #ffffff !important;
    border-top: 3px solid #D35400 !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3) !important;
    margin-top: 0 !important;
}

/* Linki wewnątrz białego menu (Muszą być Ciemne) */
/* Tutaj nadpisujemy "Mosiądz" z punktu 4 */
.top-menu .sub-menu a, 
.dropdown-menu a,
.search_query {
    color: #2D462F !important; 
}
.top-menu .sub-menu a:hover {
    color: #D35400 !important;
}

/* 7. WYSZUKIWARKA (Naprawa Lupy) */
.searchtoggle {
    display: none; /* Domyślnie ukryta */
    position: absolute;
    right: 0;
    top: 100%;
    width: 320px;
    padding: 15px;
}
/* Pokazujemy ją, gdy jest aktywna */
.searchtoggle.active, 
.search_widget.active .searchtoggle {
    display: block !important;
}

/* 8. LICZNIK KOSZYKA (Cegła) */
.cart-products-count, 
.cart-products-counthome {
    background-color: #D35400 !important;
    color: #FFFFFF !important;
    border-radius: 50%;
}
/* Ujednolicenie koloru całej belki z logo + menu na wszystkich stronach */
header#header .header-top.header-top-main,
header#header .header-top.header-top-main .header-div,
header#header .header-top.header-top-main .sub-container,
header#header .header-top-main.bg_main,
header#header .header-top-main.bg_main .header-left,
header#header .header-top-main.bg_main .header-center {
    background-color: #2D462F !important; /* PODSTAW SWÓJ ZIELONY */
}

/* Gdyby motyw dorzucał jeszcze jakieś cienie / gradienty w tym miejscu */
header#header .header-top-main.bg_main,
header#header .header-top-main.bg_main .header-left,
header#header .header-top.header-top-main {
    background-image: none !important;
    box-shadow: none !important;
}
/* Wzmocnienie i powiększenie ikony tytułu na stronie głównej */
#index .products-section-title::after {
  opacity: 0.35 !important;          /* było 0.2 – teraz dużo wyraźniej */
  transform: scale(3) !important;    /* powiększenie ok. x3 */
  transform-origin: center !important; /* żeby rosło od środka w górę */
}
@media (max-width: 767px) {
  #index .products-section-title::after {
    transform: scale(2) !important;   /* zamiast 3 */
    transform-origin: center !important;
  }
}
/*************************
 *  SEKCJA cpcmsbanner1  *
 *************************/

/* 0. Wszystko w tym bloku jedzie Jostem */
#cpcmsbanner1_block1 .cms-block {
  font-family: "Jost", sans-serif !important;
}

/* 1. Tytuł i podtytuł */
#cpcmsbanner1_block1 .banner-title-main {
  display: block;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.2;
  color: #111;
}

#cpcmsbanner1_block1 .banner-title-sub {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
  color: #444;
  margin-top: 0.25rem;
}

/* 2. STRESZCZENIE – identyczne po lewej i prawej */
#cpcmsbanner1_block1 .banner-desc {
  font-family: "Jost", sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  color: #777 !important;
  margin-top: 0.6rem !important;
  margin-bottom: 0 !important;
}

/* 3. Pod tytułem/podtytułem nie chcemy dodatkowych marginesów,
      żeby odstęp nad streszczeniem był wszędzie taki sam */
#cpcmsbanner1_block1 .offer-text2 {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* 4. Link "Czytaj więcej…" */
#cpcmsbanner1_block1 .banner-readmore {
  margin-top: 0.7rem !important;
  border: none !important;
  padding-top: 0 !important;
}

#cpcmsbanner1_block1 .banner-readmore-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: #2e5c3a;
  text-decoration: none;
  border-bottom: 1px solid rgba(46, 92, 58, 0.4);
  padding-bottom: 2px;
}

/* Bez strzałek / ikonek po tekście */
#cpcmsbanner1_block1 .banner-readmore-link::after {
  content: "";
}

#cpcmsbanner1_block1 .banner-readmore-link:hover {
  color: #23452b;
  border-bottom-color: rgba(35, 69, 43, 0.7);
}

/* 5. Kreski – kasujemy wszystkie ozdobniki motywu,
      zostawiamy tylko jedną linię nad statystykami */

#cpcmsbanner1_block1 .cms-block,
#cpcmsbanner1_block1 .cms-block::before,
#cpcmsbanner1_block1 .cms-block::after,
#cpcmsbanner1_block1 .banner-desc,
#cpcmsbanner1_block1 .banner-readmore {
  border: none !important;
}

/* Jedyna kreska: nad blokiem 5.5K / 99% / 100+ */
#cpcmsbanner1_block1 .offer-text {
  border-top: 1px solid #ddd !important;
  margin-top: 1.5rem !important;
  padding-top: 1.2rem !important;
}
/* Wyrównanie odstępu między streszczeniem a "Czytaj więcej…" w obu kolumnach */
#cpcmsbanner1_block1 .banner-desc {
  margin-bottom: 0.4rem !important;
}

#cpcmsbanner1_block1 .banner-readmore {
  margin-top: 0.4rem !important;
}
/* HARD RESET odstępów między streszczeniem a "Czytaj więcej…" */
#cpcmsbanner1_block1 .banner-desc,
#cpcmsbanner1_block1 .banner-readmore {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Jedyny kontrolowany odstęp między tymi dwoma elementami */
#cpcmsbanner1_block1 .banner-readmore {
  margin-top: 0.6rem !important;   /* możesz zmienić np. na 0.5rem jeśli chcesz ciaśniej */
}

