#calfert_ikony {
    display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 20px;
}

#calfert_ikony div {
    text-align: center;
	flex: 1 1 calc(33.333% - 20px);
	max-width: 160px;
}

#calfert_ikony img {
    width: 100%;
	display: inline-block;
	height: auto;
	max-width: 60px;
}

/* Mega menu: zezwól na zawijanie nagłówków do następnej linii */
@media (min-width: 1024px) {
	/* Większy odstęp na dole całego dropdownu mega menu */
	.rbb-main-navigation ul li.level-1 > ul.mega-menu {
		padding-bottom: 28px !important;
	}
	.rbb-main-navigation ul li.level-1 > ul.mega-menu .mega-menu-content h2.elementor-heading-title,
	.rbb-main-navigation ul li.level-1 > ul.mega-menu .mega-menu-content h2.elementor-heading-title a {
		white-space: normal !important; /* resetuje nowrap z motywu */
		color: #962d66 !important; /* kolor nazw kategorii */
	}
	.rbb-main-navigation ul li.level-1 > ul.mega-menu .mega-menu-content h2.elementor-heading-title a:hover {
		color: #962d66 !important; /* stały kolor także w hover */
	}

	/* Mega menu: usuń cień tekstu */
	.rbb-main-navigation ul li.level-1 > ul.mega-menu,
	.rbb-main-navigation ul li.level-1 > ul.mega-menu * {
		text-shadow: none !important;
	}

	/* Mega menu: powiększ i pogrub nagłówki */
	.rbb-main-navigation ul li.level-1 > ul.mega-menu .mega-menu-content h2.elementor-heading-title {
		font-size: 1.1em; /* nieco większe */
		font-weight: 700;
		margin: 0 0 8px 0;
		line-height: 1.25;
		padding-bottom: 10px; /* dodatkowy odstęp pod nagłówkiem */
	}
}

#calfert_sklepy {
    background-color: #fff;
    border-radius: 10px;
    position: fixed;
    top: 10vh; /* odsunięcie od górnej krawędzi bez użycia transform */
    right: 0;
    bottom: auto; /* nie rozciągaj na całą wysokość */
    left: 0;
    padding: 40px;
    margin: 0 auto; /* wyśrodkuj horyzontalnie bez transform */
    display: none;
    z-index: 101;
    max-width: 600px;
    width: 90%;
    max-height: 80vh; /* ogranicz wysokość modala */
    overflow: auto; /* przewijanie zawartości, jeśli wyższa niż viewport */
}

#calfert_sklepy h3 {
    text-align: center;
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.elementor-element-340d535, .elementor-element-4921fb2, .elementor-element-4ca8aed {
  display: none !important; 
}

.e-n-tabs-heading {
  background-color: #f4f4f4;
  position: relative;
}

.e-n-tabs-heading:before {
  border-bottom: 3px solid #962c66;
  position: absolute;
  left: 0;
  right:0;
  top: 0;
  bottom: 2px;
  content: " " ;
}

@media all and (max-width: 800px) {
  .e-n-tabs-heading:before {
    display: none;
  }
}

@media (max-width: 800px) {
  /* Kontener nadrzędny - upewnij się, że nie ogranicza szerokości */
  .e-n-tabs {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    position: relative !important;
  }
  
  .e-n-tabs-heading {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 100% !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    scroll-snap-type: x proximity !important;
    scroll-behavior: smooth !important;
    overscroll-behavior-x: contain !important;
    overscroll-behavior-y: none !important;
    position: relative !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    touch-action: pan-x !important;
    will-change: scroll-position !important;
    scroll-padding-left: 0 !important;
    scroll-padding-inline-start: 0 !important;
  }
  
  .e-n-tabs-heading::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }
  
  .e-n-tabs-heading .e-n-tab-title {
    flex: 0 0 auto !important;
    min-width: 90px !important;
    max-width: none !important;
    width: auto !important;
    text-align: center;
    margin: 0 8px 0 0 !important;
    display: block !important;
    box-sizing: border-box;
    float: none !important;
    position: relative !important;
    white-space: normal !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    scroll-snap-align: start !important;
    touch-action: manipulation !important;
  }
  
  /* Ostatni element - dodaj padding po prawej aby można było przewinąć do końca */
  .e-n-tabs-heading .e-n-tab-title:last-child {
    margin-right: 0 !important;
    padding-right: 16px !important;
  }
  
  /* Upewnij się, że kontenery nadrzędne nie ograniczają szerokości */
  .elementor-widget-n-tabs,
  .elementor-widget-n-tabs > .elementor-widget-container,
  #tab-description .e-n-tabs {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }
  
  #tab-description .e-n-tabs > .e-n-tabs-heading {
    width: 100% !important;
    max-width: 100vw !important;
  }
  
  /* Ukryj globalny horizontal scroll */
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
  
  /* Napis pod menu zakładek */
  .e-n-tabs-heading-hint {
    display: block !important;
    text-align: center;
    padding: 8px 16px;
    font-size: 13px;
    color: #666;
    font-style: italic;
    opacity: 1;
    transition: opacity 0.3s ease;
    margin-top: 4px;
  }
  
  .e-n-tabs-heading-hint.hidden {
    opacity: 0;
    pointer-events: none;
    display: none !important;
  }
}

#tab-description .e-n-tabs > .e-n-tabs-heading > .e-n-tab-title {
    padding: 18px 24px;
    background-color: transparent;
    color: #000;
    background-image: none;
    border-radius: 0;
    border-bottom: 6px solid transparent;
    font-weight: 400;
    text-transform: none;
    font-size: 18px;
    letter-spacing: 0.5px;
}

#tab-description .e-n-tabs > .e-n-tabs-heading > .e-n-tab-title:hover, #tab-description .e-n-tabs > .e-n-tabs-heading > .e-n-tab-title[aria-selected=true] {
  color: #962c66;
  border-bottom: 6px solid #962c66;
  box-shadow: none;
  transform: none;
}

@media all and (max-width: 600px) {
  #calfert_sklepy {
    left: 20px;
    right: 20px;
  }
}

#calfert_sklepy .close {
    display: inline-block;
    width: 30px;
    height: 30px;
    position: absolute;
    top: 6px;
    right: 6px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#calfert_sklepy .close:before,
#calfert_sklepy .close:after {
    content: '';
    position: absolute;
    width: 2px;
    height: 20px;
    background-color: #666;
    top: 5px;
    left: 14px;
}

#calfert_sklepy .close:before {
    transform: rotate(45deg);
}

#calfert_sklepy .close:after {
    transform: rotate(-45deg);
}

#calfert_sklepy .close:hover {
    transform: rotate(90deg);
}

#calfert_sklepy div {
    text-align: center;
}

#calfert_sklepy img {
    width: auto;
	display: inline-block;
	height: auto;
	max-width: 80px;
	max-height: 80px;
	object-fit: contain;
}

.calfert_stationary_content {
    text-align: center;
    padding: 20px;
    color: #666;
    width: 100%;
    height: 500px;
}

/* Responsywność mapy w popupie */
@media (max-width: 640px) {
    .calfert_stationary_content {
        padding: 10px;
        height: 400px;
    }
    
    #calfert-map-host {
        width: 100% !important;
        height: 400px !important;
    }
    
    #calfert-map {
        width: 100% !important;
        height: 400px !important;
    }
}

.calfert_sklepy_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.calfert_sklep_item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.calfert_sklep_item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.calfert_sklep_item a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
}

.calfert_sklep_item img {
    max-width: 120px !important;
    max-height: 120px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.calfert_sklep_item:hover img {
    transform: scale(1.05);
}

.calfert_sklep_item br {
    display: none;
}

/* Strzałka z animacją */
.calfert_sklep_item:after {
    content: '→';
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    color: #666;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.calfert_sklep_item:hover:after {
    transform: translateX(-50%) translateX(5px);
    opacity: 1;
    color: #962c66;
}

/* Style dla zakładek */
.calfert_tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.calfert_tab {
    padding: 12px 24px;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.calfert_tab:hover {
    color: #333;
}

.calfert_tab.active {
    color: #333;
    border-bottom-color: #962c66;
}

/* Style dla zawartości zakładek */
.calfert_tab_content {
    display: none;
}

.calfert_tab_content.active {
    display: block;
}


#calfert_sklepy_ov {
    position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba( 0, 0, 0, 0.5 );
	display: none;
	z-index: 100;
}

#calfert-zamow {
    background-color: #962c66;
    border-radius: 50px;
    padding: 7px 7px 7px 32px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    height: 56px;
    width: 180px;
    margin: 0px 30px 0px 0px;
}

#calfert-zamow span {
    vertical-align: middle;
    color: #fff;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    letter-spacing: 0.5px;
}

#calfert-zamow:after {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
    width: 32px;
    height: 32px;
    content: "";
    background-color: #a6db45;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3Cpolyline points='12 5 19 12 12 19'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 16px;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
    box-shadow: none;
    margin: 0;
}

#calfert-zamow:hover {
    transform: translateY(-1px);
}

#calfert-zamow:hover:after {
    transform: translateX(3px);
}

.rbb-header-sticky, body.single-product header.header-3 {
    z-index: 99 !important;
}

.rbb_woo_products .rbb-slick-carousel{opacity:0;transition:opacity .2s ease}
.rbb_woo_products .rbb-slick-carousel.slick-initialized{opacity:1}
.rbb_woo_products .rbb-slick-carousel:not(.slick-initialized) .item{width:25% !important;display:inline-block !important}
.rbb_woo_products .item-product img{object-fit:contain;max-height:340px}

@media (max-width: 1024px) {
  /* Zadbaj o identyczne boxy produktów na mobile */
  .rbb_woo_products.layout-9 .rbb-slick-carousel .item {
    padding: 0 10px 24px !important;
  }

  .rbb_woo_products.layout-9 .item-product {
    width: 100%;
  }

  .rbb_woo_products.layout-9 .item-product .bg-product {
    display: block;
    opacity: 1;
    border-radius: 22px;
    box-shadow: 10px 12px 26px rgba(0, 0, 0, 0.12);
  }

  .rbb_woo_products.layout-9 .item-product > .relative {
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(150, 44, 102, 0.08);
    box-shadow: 10px 12px 26px rgba(0, 0, 0, 0.12);
  }
}

@media (max-width: 767px) {
  /* Dołóż oddech nad zdjęciem i zmniejsz cień kafli produktów */
  .rbb_woo_products.layout-9 .item-product .thumbnail-container {
    padding-top: 14px;
  }

  .rbb_woo_products.layout-9 .item-product .bg-product,
  .rbb_woo_products.layout-9 .item-product > .relative {
    box-shadow: 6px 8px 18px rgba(0, 0, 0, 0.08);
  }
}

.single-product .woocommerce-product-details__short-description li {
    list-style-type: none;
    background-image: url(https://calfert.pl/wp-content/uploads/sygnet-calfert-96x96.png) !important;
    background-size: 20px 20px !important;
    background-position: left 4px top 7px !important;
    background-repeat: no-repeat !important;
    padding-left: 32px !important;
    margin-bottom: 8px;
    display: block;
}

.elementor-widget-text-editor ul li,
.e-con-inner ul li,
ul li {
    list-style-type: disc;
    list-style-position: inside;
    background: none !important;
    display: list-item;
    padding-left: 0;
    color: inherit;
}

/* Wyłącz standardowy marker listy w treści bloga, gdzie motyw używa własnego punktora przez ::before */
body:not(.elementor-editor-active) .post-content ul li {
    list-style-type: none !important;
}

/* Widget: kategorie w sidebarze używają własnego punktora przez a::before – usuń marker listy */
.wp-block-categories li,
.wp-block-categories-list li {
    list-style-type: none !important;
}

.rbb-main-navigation ul,
.rbb-main-navigation ul li {
	list-style: none !important;
}
.rbb-main-navigation ul li {
	background: none !important;
	padding-left: 0 !important;
}
.rbb-main-navigation ul li::before,
.rbb-main-navigation ul li::marker {
	content: none !important;
}

.product-summary .rbb-social, .product-summary .tagged_as, .product-summary .posted_in, .product-template-default .woosw-btn, .single-product .product-summary .woosw-btn, .elementor-element-d200382 {
   display: none !important; 
}

.single-product .woocommerce-tabs {
   padding-top: 30px;
}

.single-product woocommerce-product-details__short-description {
   display: block;
}

.single-product .woocommerce-product-details__short-description ul,
.single-product .woocommerce-product-details__short-description ol {
    margin-left: 0;
    padding-left: 0;
}

@media all and (max-width: 601px) {
   #tab-description .e-n-tabs > .e-n-tabs-heading > .e-n-tab-title {
       background-color: #f4f4f4;	
   }	
}

[class*="woosc"] {
  display: none !important;
}

/* Ukryj kalkulator darmowej dostawy (motyw Botanica) */
.rbb-free-shipping-calculator {
    display: none !important;
}

.single-product .woocommerce-product-details__short-description sub,
.single-product .woocommerce-product-details__short-description sup {
	line-height: 0;
	font-size: 75%;
}
.single-product .woocommerce-product-details__short-description sub {
	vertical-align: sub !important;
}
.single-product .woocommerce-product-details__short-description sup {
	vertical-align: super !important;
}

.special-offer > .bg {
    background-color: #f6f6f6 !important;
}
.special-offer > .bg::after {
    background-color: #f6f6f6 !important;
}

/* Testimonial background skew block */
.rbb-testimonial > .bg {
    background-color: #f6f6f6 !important;
}

/* Firmowe zielone punktory - klasa ogólna do użycia w dowolnym miejscu */
ul.lista-calfert li,
.lista-calfert ul li,
.lista-calfert li {
	list-style-type: none !important;
	/* Przechodzimy na pseudo-element dla lepszego wyrównania w pionie */
	background: none !important;
	position: relative;
	padding-left: 32px !important;
	margin-bottom: 8px;
	display: block;
}

/* Ikona jako pseudo-element wyliczana od pierwszej linii tekstu */
.lista-calfert li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%; /* wyśrodkowanie w pionie dla jednoliniowych pozycji (Elementor) */
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	background-image: url(https://calfert.pl/wp-content/uploads/sygnet-calfert-96x96.png);
	background-size: 20px 20px;
	background-repeat: no-repeat;
}

/* Ujednolicenie w skróconym opisie produktu */
.single-product .woocommerce-product-details__short-description li {
	background: none !important;
	position: relative;
	padding-left: 32px !important;
}
.single-product .woocommerce-product-details__short-description li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	background-image: url(https://calfert.pl/wp-content/uploads/sygnet-calfert-96x96.png);
	background-size: 20px 20px;
	background-repeat: no-repeat;
}

/* Ukryj element Social Share na blogu */
.social-share {
	display: none !important;
}

/* Blog pagination: remove list bullets and hide ellipsis item */
.nav-links ul.page-numbers,
.nav-links .page-numbers {
	list-style: none !important;
	padding-left: 0 !important;
	margin-left: 0 !important;
}
.nav-links ul.page-numbers > li,
.nav-links .page-numbers > li {
	list-style: none !important;
}
.nav-links ul.page-numbers > li::marker,
.nav-links .page-numbers > li::marker {
	content: none !important;
}
.nav-links .page-numbers .dots {
	display: inline-block !important; /* przywróć wielokropek */
	margin: 0 8px;
	opacity: .7;
}

.nav-links a.prev.page-numbers,
.nav-links a.next.page-numbers {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50% !important;
	padding: 0 !important;
}

.nav-links a.prev.page-numbers i.rbb-icon-direction-39,
.nav-links a.prev.page-numbers i.rbb-icon-direction-39:before {
    transform: rotate(180deg) !important;
}

.nav-links a.next.page-numbers i.rbb-icon-direction-36,
.nav-links a.next.page-numbers i.rbb-icon-direction-36:before {
    transform: rotate(180deg) !important;
}