/********************************************************
			Ratui 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: wrap;
}
.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;
  height: auto;
}
.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: 48%;
}
.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: #757575;
}
.customNavigation a.next::before {
	content: "\E315";
	font-family: "Material Icons";
	position: absolute;
	font-size: 20px;
	position: absolute;
	right: 3px;
	top: -1px;
	color: #757575;
}
#tmtestimonialcmsblock .customNavigation {
  top: -24px;
  z-index: 5;
  right: 15px;
}
#index #tmtestimonialcmsblock .customNavigation {
  top: -40px;
  right: 0;
}
.special-products .customNavigation {
	top: 52%;
}
.homepage-latest-blog:hover .customNavigation, 
.sidebar-latest-blog:hover .customNavigation, 
.ets-blog-related-posts:hover .customNavigation, 
.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;
}
.sidebar-latest-blog .customNavigation i.prev{
  left: 2px;
}
.sidebar-latest-blog .customNavigation i.next{
  right: 2px;
}

.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,
.btn.prev.accessories_prev {
	left: -20px;
}
.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: -20px;
}
.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%;
  border-radius: 5px;
}
#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,
  .btn.prev.accessories_prev {
    left: -15px;
  }
  .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: -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;
  }
}
@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;
  }
  .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) {
}

/* ===== MENU RESPONSIVE FIXES ===== */

/* ----------------------------------------------------------------
   PASEK GÓRNY – wyśrodkowanie i płynne skalowanie
   ---------------------------------------------------------------- */

/* Nadpisuje ręczne margin-inline-start: 23%/27% z theme.css */
#header .header-top .menu {
  margin-inline-start: 0 !important;
  width: auto !important;
}

/* Menu wypełnia środkową kolumnę headera */
.header-top .header-center .header-top-main.bg_main {
  width: 100%;
}

#header { min-height: 0 !important; }


/* Środkuje inline-block li wewnątrz menu */
#_top_main_menu {
  text-align: center;
  width: 100%;
}

/* Płynna zmiana rozmiaru fontu z szerokością ekranu */
.header-top-main.bg_main #_top_main_menu li a[data-depth="0"] {
  padding: 14px 0;
  font-size: clamp(9px, 0.82vw, 14px);
}

/* Płynna zmiana marginesów */
.header-top-main.bg_main #_top_main_menu li {
  margin-inline: clamp(1px, 0.35vw, 10px);
}

/* ----------------------------------------------------------------
   SUB-MENU PANEL
   ---------------------------------------------------------------- */

.top-menu .sub-menu {
  padding: 20px 28px;
  max-height: 80vh;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Główna lista kolumn (depth=1) – flex, żeby kolumny nie nachodziły */
#_top_main_menu .top-menu .sub-menu ul[data-depth="1"] {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}

/* Każda kolumna: równa szerokość, blokada overflow */
#_top_main_menu .top-menu .sub-menu ul[data-depth="1"] > li {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  padding-inline-end: 0;
  padding-bottom: 8px;
  display: block !important;
}

/* Reset min-width: 170px z theme.css który powodował overflow */
#header .header-top-main.bg_main .menu .sub-menu a {
  min-width: 0;
  padding-bottom: 4px;
  margin-bottom: 4px;
  white-space: normal;
  word-break: break-word;
}

/* Nagłówki kolumn (Obróbka termiczna, Piece, itd.) */
#_top_main_menu .top-menu .sub-menu a[data-depth="1"] {
  display: block;
  padding: 0 0 8px 0;
  font-size: 13px;
  font-weight: 700;
  word-break: break-word;
  white-space: normal;
}

/* Podkategorie (depth=2) – auto-wielokolumnowość:
   krótkie listy = 1 kolumna, długie = 2 kolumny */
#_top_main_menu .top-menu .sub-menu ul[data-depth="2"] {
  column-width: 130px;
  column-gap: 10px;
  margin: 0;
  padding: 0;
}
#_top_main_menu .top-menu .sub-menu ul[data-depth="2"] > li {
  break-inside: avoid;
  page-break-inside: avoid;
  display: block;
}
#_top_main_menu .top-menu .sub-menu a[data-depth="2"] {
  display: block;
  padding: 0 0 4px 0;
  font-size: 12px;
  word-break: break-word;
  white-space: normal;
}

/* Głębszy poziom (depth=3) – mały, szary, wcięty */
#_top_main_menu .top-menu .sub-menu a[data-depth="3"] {
  display: block;
  padding: 0 0 3px 10px;
  font-size: 11px;
  color: #888;
  word-break: break-word;
  white-space: normal;
}

/* Hover na podkategoriach */
#_top_main_menu .top-menu .sub-menu a[data-depth="2"]:hover,
#_top_main_menu .top-menu .sub-menu a[data-depth="3"]:hover {
  color: #f15252;
  text-decoration: none;
}

/* ----------------------------------------------------------------
   HAMBURGER OD 1199px
   theme.css ukrywa go przy min-width:992px – nadpisujemy to
   żeby był widoczny w zakresie 992px–1199px
   ---------------------------------------------------------------- */
@media (min-width: 992px) and (max-width: 1199px) {
  .container.text-xs-center.mobile {
    display: inline-flex !important;
    align-items: center;
    align-self: center;
  }
  /* Usuwa margin-inline-start: 30px który odpycha ikonkę od reszty */
  .container.text-xs-center.mobile .material-icons.menu-open {
    margin-inline-start: 0;
    font-size: 24px;
    line-height: 1;
  }
}

/* Mobile: hamburger */
@media (max-width: 991px) {
  #mobile_top_menu_wrapper .top-menu a[data-depth="0"] {
    padding: 12px 0;
    font-size: 14px;
  }
}


.product_item:hover img.img_1,
.product-item:hover img.img_1 {
    opacity: 1 !important;
    transform: scaleX(1) !important;
}

/* Hover drugie zdjęcie */
.thumbnail-container {
    position: relative;
    overflow: hidden;
}

.product-miniature .thumbnail-container img.img_1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0 !important;
    transition: opacity 0.4s ease-in-out !important;
    -webkit-transition: opacity 0.4s ease-in-out !important;
}

.product-miniature .thumbnail-container img.img_1 {
    opacity: 0 !important;
    transform: none !important;
    transition: opacity 0.4s ease-in-out !important;
}

.product-miniature:hover .thumbnail-container img.img_1 {
    opacity: 1 !important;
    transform: none !important;
}

/* ===== SEARCH MODAL ===== */

/* Hide the legacy ps_searchbar (redundant with rt_blocksearch modal) */
#header #search_widget { display: none !important; }

/* Modal root – hidden by default */
#rt_search_modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
}
#rt_search_modal.is-open {
  display: block;
}

/* Backdrop */
.rt-search-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

/* Prevent page scroll while modal open */
body.search-modal-open {
  overflow: hidden;
}

/* Modal box */
.rt-search-box {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  width: min(660px, calc(100vw - 32px));
  background: #fff;
  border-radius: 14px;
  padding: 20px 20px 24px;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.28);
  z-index: 1;
  animation: rtModalSlideIn 0.2s ease;
}

@keyframes rtModalSlideIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Input row: form + close button */
.rt-search-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Form resets inside modal */
#rt_search_modal #searchbox {
  flex: 1;
  display: flex;
  align-items: stretch;
  background: #f4f4f4;
  border-radius: 10px;
  overflow: hidden;
  position: static;
  padding: 0;
  min-width: 0;
}

#rt_search_modal #searchbox input.search_query {
  flex: 1 1 0;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 13px 16px;
  font-size: 16px;
  outline: none;
  color: #222;
  border-radius: 10px 0 0 10px;
  width: 100%;
  height: auto;
  box-shadow: none;
}
#rt_search_modal #searchbox input.search_query::placeholder {
  color: #aaa;
  font-size: 15px;
}

/* Submit button */
.rt-search-submit {
  background: #f15252;
  border: none;
  color: #fff;
  padding: 0 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  border-radius: 0 10px 10px 0;
  transition: background 0.2s;
  flex-shrink: 0;
}
.rt-search-submit:hover { background: #e04040; }
.rt-search-submit .material-icons { font-size: 20px; }

/* Close button */
.rt-search-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #777;
  border-radius: 50%;
  display: flex;
  align-items: center;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.rt-search-close:hover { background: #f5f5f5; color: #f15252; }
.rt-search-close .material-icons { font-size: 22px; }

/* AJAX results inside modal — now a sibling of .rt-search-input-row, NOT inside #searchbox */
#rt_search_modal #cpsearch_content_result {
  position: static !important;
  display: none;
  margin-top: 12px;
  box-shadow: none !important;
  border: 1px solid #eee;
  border-radius: 10px;
  max-height: 55vh;
  overflow-y: auto;
  padding: 10px;
  width: 100% !important;
  top: auto !important;
  left: auto !important;
}
#rt_search_modal #cpsearch_eccept_data {
  max-height: none !important;
  overflow-y: visible !important;
}

/* Results list layout fixes */
#rt_search_modal #cpsearch_eccept_data .items-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
#rt_search_modal #cpsearch_eccept_data .items-list > li {
  display: flex !important;
  align-items: center;
  gap: 12px;
  float: none !important;
  width: 100% !important;
  padding: 8px 4px;
  border-bottom: 1px solid #f0f0f0;
}
#rt_search_modal #cpsearch_eccept_data .items-list > li:last-child {
  border-bottom: none;
}
/* Image column */
#rt_search_modal #cpsearch_eccept_data .items-list li .image {
  flex-shrink: 0;
  width: 70px !important;
  text-align: center;
}
#rt_search_modal #cpsearch_eccept_data .items-list li .image img {
  max-width: 70px;
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
/* Content column */
#rt_search_modal #cpsearch_eccept_data .items-list li .cpsearch-content {
  flex: 1;
  min-width: 0;
  width: auto !important;
  padding: 0 !important;
  position: static !important;
}
#rt_search_modal #cpsearch_eccept_data .items-list li .product-name a {
  font-size: 14px;
  color: #222;
  text-decoration: none;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#rt_search_modal #cpsearch_eccept_data .items-list li .product-name a:hover {
  color: #f15252;
}
#rt_search_modal #cpsearch_eccept_data .items-list li .price {
  font-size: 14px;
  font-weight: 700;
  color: #f15252;
}
/* Search summary row */
#rt_search_modal #cpsearch_eccept_data .search-title {
  float: none;
  text-align: center;
  padding: 8px 0 4px;
  font-size: 13px;
  color: #888;
  border-top: 1px solid #f0f0f0;
  margin-top: 6px;
  width: 100%;
}

@media (max-width: 640px) {
  .rt-search-box {
    top: 60px;
    padding: 14px 14px 18px;
    border-radius: 10px;
  }
  #rt_search_modal #searchbox input.search_query {
    font-size: 15px;
    padding: 11px 12px;
  }
  .rt-search-submit { padding: 0 14px; }
}

/* ===== SIDE MENU FIXES ===== */

/* Bigger expand/collapse icons */
#cp_sidevertical_menu_top .material-icons.add,
#cp_sidevertical_menu_top .material-icons.remove {
  font-size: 22px;
  width: 28px;
  height: 28px;
  line-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Bottom static links */
.sidemenu-bottom-links {
  border-top: 1px solid rgba(0,0,0,0.1);
  margin-top: 12px;
  padding-top: 8px;
}
.sidemenu-bottom-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidemenu-bottom-links ul li a {
  display: block;
  padding: 9px 20px;
  font-size: 14px;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.sidemenu-bottom-links ul li a:hover {
  color: #f15252;
}

/* ── Share trigger button ── */
.rt-product-title-row {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .5rem;
}
.rt-product-title-row .productpage_title {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}
.rt-share-trigger {
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: .35rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .85rem;
  border: 1.5px solid #e0e0e0;
  border-radius: 20px;
  background: #fff;
  color: #555;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s, color .15s, background .15s;
  line-height: 1;
}
.rt-share-trigger:hover {
  border-color: #d32f2f;
  color: #d32f2f;
  background: #fff8f8;
}

/* ── Share modal overlay ── */
.rt-share-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.48);
  z-index: 99990;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: rtOverlayIn .18s ease;
}
.rt-share-overlay.is-open {
  display: flex;
}
@keyframes rtOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Modal card ── */
.rt-share-modal {
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 420px;
  padding: 1.75rem;
  box-shadow: 0 24px 60px rgba(0,0,0,.22);
  animation: rtModalIn .22s cubic-bezier(.34,1.3,.64,1);
}
@keyframes rtModalIn {
  from { transform: translateY(24px) scale(.97); opacity: 0; }
  to   { transform: translateY(0) scale(1);      opacity: 1; }
}
.rt-share-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.rt-share-modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
}
.rt-share-modal-close {
  background: #f4f4f4;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #555;
  transition: background .15s;
  flex-shrink: 0;
  padding: 0;
}
.rt-share-modal-close:hover { background: #e8e8e8; color: #111; }

.rt-share-modal-product-name {
  font-size: .83rem;
  color: #888;
  margin: 0 0 1.35rem;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Platform buttons ── */
.rt-share-modal-platforms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
  margin-bottom: 1.25rem;
}
.rt-sm-platform {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .75rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  color: #fff;
  transition: transform .15s, opacity .15s;
}
.rt-sm-platform:hover { transform: translateY(-2px); opacity: .9; text-decoration: none; color: #fff; }
.rt-sm-platform > svg { width: 20px !important; height: 20px !important; display: block !important; flex-shrink: 0 !important; }
.rt-sm-copy-btn svg { width: 15px !important; height: 15px !important; display: block !important; flex-shrink: 0 !important; }
.rt-share-modal-close svg { width: 20px !important; height: 20px !important; display: block !important; }
.rt-share-trigger svg { width: 17px !important; height: 17px !important; display: block !important; }
.rt-sm-fb   { background: #1877f2; }
.rt-sm-x    { background: #000; }
.rt-sm-wa   { background: #25d366; }
.rt-sm-mail { background: #6c757d; }

/* ── Copy link row ── */
.rt-share-modal-copy {
  display: flex;
  gap: .5rem;
  background: #f6f6f6;
  border-radius: 10px;
  padding: .45rem .45rem .45rem .9rem;
  align-items: center;
}
.rt-sm-copy-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: .82rem;
  color: #555;
  outline: none;
  min-width: 0;
}
.rt-sm-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .9rem;
  border-radius: 7px;
  border: none;
  background: #1a1a1a;
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
  flex-shrink: 0;
}
.rt-sm-copy-btn:hover  { background: #333; }
.rt-sm-copy-btn.copied { background: #198754; }

@media (max-width: 480px) {
  .rt-share-modal-platforms { grid-template-columns: 1fr 1fr; }
  .rt-share-modal { padding: 1.25rem; border-radius: 14px 14px 0 0; margin-bottom: 0; align-self: flex-end; }
  .rt-share-overlay { align-items: flex-end; padding: 0; }
}

/* ── Contact page inline numbers ── */
.ct-inline {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .75rem;
  margin: .6rem 0 1.5rem;
}
.ct-inline-item {
  font-size: .88rem;
  font-weight: 600;
  color: #555;
  text-decoration: none;
  border-bottom: 1px dashed #ccc;
  padding-bottom: 1px;
  transition: color .15s, border-color .15s;
}
.ct-inline-item:hover { color: #d32f2f; border-color: #d32f2f; text-decoration: none; }

/* ── Contact CTA on product page (price >= 1000 zl) ── */
.rt-contact-cta {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 22px 0 8px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
}
.rt-contact-cta__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fdecec;
  color: #d32f2f;
}
.rt-contact-cta__body { flex: 1; min-width: 0; }
#product .rt-contact-cta p.rt-contact-cta__title {
  margin: 2px 0 6px;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
  color: #1f1f1f;
}
#product .rt-contact-cta p.rt-contact-cta__text {
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #666;
}
#product .rt-contact-cta .rt-contact-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .2px;
  color: #fff;
  background: #d32f2f;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(211, 47, 47, .25);
  transition: background .15s, box-shadow .15s, transform .15s;
}
#product .rt-contact-cta .rt-contact-cta__btn svg { width: 16px; height: 16px; flex: 0 0 16px; transition: transform .15s; }
#product .rt-contact-cta .rt-contact-cta__icon svg { width: 22px; height: 22px; }
#product .rt-contact-cta .rt-contact-cta__btn:hover,
#product .rt-contact-cta .rt-contact-cta__btn:focus {
  background: #b71c1c;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(183, 28, 28, .3);
}
#product .rt-contact-cta .rt-contact-cta__btn:hover svg { transform: translateX(3px); }
@media (max-width: 480px) {
  .rt-contact-cta { flex-direction: column; gap: 12px; padding: 18px; }
}

/* ── Product page: finance row (eRaty + LeaseLink) ── */
#product .product-actions .product-additional-info {
  clear: both;
  float: none;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 14px;
  margin: 8px 0 0;
  padding-top: 16px;
  border-top: 1px solid #ececec;
}
#product .product-additional-info > .tabs,
#product .product-additional-info > .rt-finance-label { flex: 0 0 100%; }
.rt-finance-label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #888;
  margin: 0;
}
#product .product-additional-info .ll-anchor { display: none !important; margin: 0 !important; }
#product .product-additional-info #eraty { margin: 0; line-height: 0; float: none; }
#product .product-additional-info #eraty a { display: inline-block; }
#product .product-additional-info #eraty img { height: 40px; width: auto; display: block; }
#product .product-additional-info .LLBWr { width: auto !important; padding: 0 !important; margin: 0 !important; float: none !important; }
#product .product-additional-info .LLBCn { padding: 0 !important; max-width: 300px; min-width: 0 !important; text-align: left !important; }
#product .product-additional-info .LLBCn > a {
  height: 40px;
  box-sizing: border-box;
  padding: 0 44px 0 16px !important;
  line-height: 40px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: #1f1f1f !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: .02em;
  text-transform: none !important;
  white-space: nowrap;
  transition: border-color .15s, color .15s;
}
#product .product-additional-info .LLBCn > a:after {
  content: "\203A";
  background: #eee !important;
  border-left: 0;
  border-radius: 0 6px 6px 0;
  width: 30px;
  right: 0;
  color: #822a85;
  font-size: 22px;
  font-weight: 400;
  line-height: 40px;
  text-align: center;
}
#product .product-additional-info .LLBCn > a:hover { background: #000 !important; color: #fff !important; }
#product .product-additional-info .LLBCn span {
  font-size: 11px !important;
  line-height: 1.45 !important;
  color: #8a8a8a;
  margin-top: 6px !important;
}
#product .product-additional-info .LLBCn span br { display: none; }
#product .product-additional-info .LLBCn span a { color: #555; font-weight: 600; text-decoration: none; }
#product .product-additional-info .LLBCn span a[href^="mailto"] { text-transform: lowercase; }
#product .product-additional-info .LLBCn span a:hover { color: #822a85; }

/* ── Free shipping info ── */
.rt-cart-free-ship {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f6f6f6;
  font-size: .88rem;
  color: #333;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}
.rt-cart-free-ship .material-icons { color: #d32f2f; font-size: 22px; }
.rt-cart-free-ship.is-free { background: #edf7ee; }
.rt-cart-free-ship.is-free .material-icons { color: #2e7d32; }
.rt-cart-free-ship__bar { flex: 0 0 100%; height: 6px; border-radius: 3px; background: #e2e2e2; overflow: hidden; }
.rt-cart-free-ship__bar span { display: block; height: 100%; background: #d32f2f; border-radius: 3px; }
.rt-cart-free-ship.is-free .rt-cart-free-ship__bar span { background: #2e7d32; }

/* ── Product title actions: wishlist heart + share ── */
.rt-title-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .35rem;
}
.rt-title-actions .rt-share-trigger { margin-top: 0; }
.rt-wish-icon .wishlist { margin: 0 !important; float: none !important; }
.rt-wish-icon .st-wishlist-button.btn {
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #e0e0e0 !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: #9a9a9a !important;
  box-shadow: none !important;
  transition: border-color .15s, color .15s, background .15s;
}
.rt-wish-icon .st-wishlist-bt-content { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.rt-wish-icon .st-wishlist-bt-content .fa { font-size: 15px !important; color: inherit !important; margin: 0 !important; }
.rt-wish-icon .st-wishlist-title { display: none !important; }
.rt-wish-icon .st-wishlist-button.btn:hover { border-color: #d32f2f !important; color: #d32f2f !important; background: #fff8f8 !important; }
.rt-wish-icon .st-wishlist-button.btn.added { border-color: #d32f2f !important; color: #d32f2f !important; }
.rt-title-actions .rt-share-trigger { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 50%; }

/* ── Square product thumbnails (mixed 277x272 / 333x398 thumbs) ── */
.product-miniature .thumbnail-container .product-thumbnail {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
}
.product-miniature .thumbnail-container .product-thumbnail picture { display: block; width: 100%; height: 100%; }
.product-miniature .thumbnail-container .product-thumbnail img {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: contain;
}
.product-miniature .thumbnail-container .product-thumbnail img.img_1 { object-fit: contain; background: #fff; }

/* ── "Jak pracujemy" CTA (Realizacje, O nas, Kontakt) ── */
.rt-hww-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin: 2.5rem 0 1rem;
  padding: 1.5rem 1.75rem;
  border-radius: 12px;
  background: #fafafa;
  border: 1px solid #ececec;
  border-left: 4px solid #d32f2f;
  clear: both;
}
.rt-hww-cta__body { flex: 1 1 380px; min-width: 0; }
.rt-hww-cta__eyebrow {
  margin: 0 0 .3rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #d32f2f;
}
.rt-hww-cta__title { margin: 0 0 .35rem; font-size: 1.15rem; font-weight: 800; color: #1a1a1a; line-height: 1.35; }
.rt-hww-cta__text { margin: 0; font-size: .92rem; color: #555; line-height: 1.6; }
.rt-hww-cta__btn {
  flex-shrink: 0;
  display: inline-block;
  padding: .7rem 1.4rem;
  border-radius: 7px;
  background: #d32f2f;
  color: #fff;
  font-weight: 700;
  font-size: .93rem;
  text-decoration: none;
  transition: background .15s;
}
.rt-hww-cta__btn:hover, .rt-hww-cta__btn:focus { background: #b71c1c; color: #fff; text-decoration: none; }
@media (max-width: 575px) {
  .rt-hww-cta { padding: 1.2rem; }
  .rt-hww-cta__btn { width: 100%; text-align: center; }
}

/* Finance label: "lub w leasingu" only when LeaseLink button is actually visible */
.rt-finance-label__lease { display: none; }
#product .product-additional-info:has(.LLBWr:not([style*="none"]) .btn-leaselink:not([style*="none"])) .rt-finance-label__lease { display: inline; }

/* Contact: contain floated form so the CTA below keeps its top margin */
#contact .contact-form { display: flow-root; }
#contact .rt-hww-cta { margin-top: 2.5rem; }

/* Topbar center link without underline */
#cpheadercms1 .topbar-center a, #cpheadercms1 .topbar-center a:hover, #cpheadercms1 .topbar-center a:focus { text-decoration: none !important; }
#cpheadercms1 .topbar-center a:hover { opacity: .8; }

/* ── Homepage SEO section (H1) ── */
.rt-home-seo { padding: 2.5rem 0 1rem; }
.rt-home-seo .container { max-width: 980px; }
.rt-home-seo__title { font-size: 1.6rem; font-weight: 800; color: #1a1a1a; margin: 0 0 .9rem; text-align: center; }
.rt-home-seo p { font-size: .95rem; line-height: 1.75; color: #555; text-align: center; margin: 0 auto .7rem; max-width: 820px; }
.rt-home-seo__links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem .6rem; list-style: none; padding: 0; margin: 1.2rem 0 0; }
.rt-home-seo__links a { display: inline-block; padding: .45rem .9rem; border: 1px solid #e3e3e3; border-radius: 20px; font-size: .85rem; font-weight: 600; color: #333; text-decoration: none; transition: border-color .15s, color .15s; }
.rt-home-seo__links a:hover { border-color: #d32f2f; color: #d32f2f; text-decoration: none; }

/* ── Landing pages (CMS .lp) ── */
.lp { max-width: 980px; margin: 0 auto; color: #444; }
.lp p { font-size: .95rem; line-height: 1.75; }
.lp a { color: #d32f2f; }
.lp-lead { font-size: 1.05rem !important; color: #444; margin: 0 0 1.25rem; }
.lp-intro { margin-bottom: 2.25rem; }
.lp-h2 { font-size: 1.3rem; font-weight: 800; color: #1a1a1a; margin: 2.5rem 0 1.1rem; padding-bottom: .55rem; border-bottom: 2px solid #f0f0f0; }
.lp h3 { font-size: 1rem; font-weight: 700; color: #1a1a1a; margin: 0 0 .4rem; }
.lp-btns { display: flex; flex-wrap: wrap; gap: .7rem; }
.lp-btn { display: inline-block; padding: .65rem 1.35rem; border-radius: 7px; font-weight: 700; font-size: .92rem; text-decoration: none !important; transition: background .15s, color .15s; }
.lp-btn--red { background: #d32f2f; color: #fff !important; }
.lp-btn--red:hover { background: #b71c1c; }
.lp-btn--line { border: 1.5px solid #d32f2f; color: #d32f2f !important; }
.lp-btn--line:hover { background: #d32f2f; color: #fff !important; }
.lp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lp-card { position: relative; display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: #eee; text-decoration: none !important; }
.lp-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.lp-card:hover img { transform: scale(1.04); }
.lp-card__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem .85rem .7rem; font-size: .85rem; font-weight: 700; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.72)); }
.lp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lp-feature { padding: 1.1rem 1.15rem; border: 1px solid #ececec; border-radius: 10px; background: #fafafa; }
.lp-feature p { margin: 0; font-size: .88rem; line-height: 1.6; }
.lp-list { padding-left: 1.1rem; margin: 0; }
.lp-list li { margin: 0 0 .55rem; line-height: 1.65; font-size: .95rem; }
.lp-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.lp-steps li { counter-increment: s; position: relative; padding: .8rem 1rem .8rem 3.3rem; border: 1px solid #ececec; border-radius: 10px; }
.lp-steps li::before { content: counter(s); position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); width: 1.8rem; height: 1.8rem; border-radius: 50%; background: #d32f2f; color: #fff; font-weight: 800; font-size: .85rem; display: flex; align-items: center; justify-content: center; }
.lp-steps strong { display: block; color: #1a1a1a; font-size: .95rem; }
.lp-steps span { font-size: .87rem; color: #666; }
.lp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: center; margin: 1rem 0 1.5rem; }
.lp-split--rev .lp-split__img { order: 2; }
.lp-split .lp-h2 { margin-top: 0; }
.lp-more { margin-top: 1rem; }
.lp-faq { display: grid; gap: 8px; }
.lp-faq__item { border: 1px solid #ececec; border-radius: 8px; padding: .75rem 1rem; background: #fff; }
.lp-faq__item summary { cursor: pointer; font-weight: 700; color: #1a1a1a; font-size: .95rem; }
.lp-faq__item p { margin: .6rem 0 0; font-size: .9rem; }
.lp-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; margin: 2.75rem 0 1rem; padding: 1.5rem 1.75rem; border-radius: 12px; background: #1f1f1f; }
.lp-cta__title { margin: 0 0 .3rem; font-size: 1.15rem !important; font-weight: 800; color: #fff; }
.lp-cta__text { margin: 0; color: #cfcfcf; font-size: .92rem !important; }
@media (max-width: 767px) {
  .lp-grid, .lp-features { grid-template-columns: 1fr 1fr; }
  .lp-split { grid-template-columns: 1fr; }
  .lp-split--rev .lp-split__img { order: 0; }
}
@media (max-width: 480px) {
  .lp-grid, .lp-features { grid-template-columns: 1fr; }
  .lp-btn { width: 100%; text-align: center; }
}
