/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

* {
  --gs-row-column-padding: 0px !important;
}

html {
  font-size: clamp(14px, 1.2vw, 16px);
}

html body h1, h2 {
   white-space: normal;
    word-break: normal;        /* nie łamie słów w środku */
    overflow-wrap: break-word; /* łamie tylko całe słowa */
    hyphens: none;             /* nie dodaje kresek */
}

 /* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 350px) {
  html {
    font-size: 12px;
  }
  /* html body h2 {
    font-size: 30px;
  } */
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (max-width: 600px) {
      /* html body h2 {
    font-size: 38px;
  } */
}
	
/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {} 


/* -------------------- STRONA GŁÓWNA ------------------ */
/* odstępy sekcji blog*/
body.home .ct-query-template-grid {
  gap: 20px;
}

.ct-query-template-grid div.wp-block-cover.ct-dynamic-cover {
  margin-bottom: 0;
}

/* --------- HEADER TOP --------------- */

div#header-contact {
  min-height: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-block-end: 0;
}

div.contact-group {
  display: flex;
  gap: 1.5rem;
}

div#header-contact a {
  color: var(--theme-palette-color-8);
  font-family: 'Open Sans', Helvetica, sans-serif;
  font-weight: 500;
  font-size: 0.8rem;
}

#header-contact a {
  display: inline-flex;      /* ikona + tekst obok siebie */
  align-items: center;
  gap: 0.4rem;        
}

#header-contact a:hover {
  color: var(--theme-palette-color-2);    
}

#header-contact .icon {
  width: 1.2em;
  height: 1.2em;
  fill: var(--theme-palette-color-1);        /* kolor ikony taki jak tekst */
}

/* ---- czerwone kreski przy nagłowkach ------- */

.home h2.red-heading-line[id^="gspb_heading-id-"] {
  position: relative; 
    padding-left: 1rem; 
}

.home h2.red-heading-line[id^="gspb_heading-id-"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);  
  width: 6px;                 
  height: 80%;             
  border-radius: 4px;       
  background: var(--theme-palette-color-1)
}

 /* --------------- STYLE KART PRODUKTÓW------------------- */

 ul.products li.product {
    border-radius: 8px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    justify-content: space-between;
    background-color: var(--theme-palette-color-8);
}

 ul.products li.product figure a {
  align-items: center;
  justify-content: center;
 }

 ul.products li.product figure img {
    object-fit: contain;
    max-height: 200px; 
    margin: 0 auto;
  align-items: center;
 }

 @media only screen and (max-width: 570px) {
  ul.products li.product figure img {
    max-height: 300px; 
  }
}
	

li .custom-product-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0 1rem 1rem 1rem;
}

/* nazwa produktu */
.custom-product-content h2 {
  font-size: 16px;
  line-height: 130%;
	color: var(--theme-palette-color-3);
	font-weight: 400;
  margin-bottom: 4px;
}

/* cena */
.bkf-price-wrap {
  display: flex;
  flex-direction: column;
}

.bkf-price-wrap > span:first-child {
  font-size: 20px;
  font-weight: 600;
  color: var(--theme-palette-color-1);
}

.bkf-price-wrap > span:last-child {
  font-size: 14px;
  font-weight: 300;
  color: var(--theme-palette-color-3);
}

.xoo-wsc-smr-ptotal > .bkf-price-wrap > span:last-child, .xoo-wsc-smr-ptotal > .bkf-price-wrap > span:last-child bdi {
  font-size: 12px;
  font-weight: 300;
  color: var(--theme-palette-color-3);
}

p.price:empty {
  display: none;
}

/* wybieranie ilości */
form .cart-inline-inner {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.8rem;
}

form div.quantity {
    max-width: 50px;
    height: 40px;
}

div.quantity .input-text.qty.text {
    font-size: 14px;
    font-weight: 300;
    border: 1px solid grey;
    text-align: center;
}

div.quantity .input-text.qty.text:focus {
    font-size: 1rem;
    border: 1px solid var(--theme-palette-color-1);
}

li .wc-block-components-product-image {
    margin: 0;
}

div .wc-block-components-product-price {
  margin-bottom: 0 !important;
}

.ct-cart-actions {
  align-items: center;
  margin-top: auto;
}

/* przycisk wybierz opcje */
.ct-woo-card-actions form.cart, .ct-woo-card-actions a {
  display: flex;
	margin-top: 0.8rem;
  font-size: 14px;
  min-height: 20px;
}


/* przycisk dodaj do koszyka */
html body .cart-inline-inner .add_to_cart_button,
html body .cart-inline-inner .single_add_to_cart_button {
  font-size: 14px;
  min-height: 20px;
}

	
/* Animacja powiększania zdjęcia */

.wc-block-components-product-image {
    overflow: hidden;
}

.wc-block-components-product-image img {
    transition: transform 0.4s ease;
    will-change: transform;
}

li.wc-block-product:hover .wc-block-components-product-image img {
    transform: scale(1.1);
}



/* --------------- STYLE PRODUKTÓW W SKLEPIE------------------- */

/* ------- ZMNIEJSZONA ILOŚĆ KOLUMN PRODUKTÓW NA MNIEJSZYCH EKRANACH --------- */

@media (min-width: 1000px) and (max-width: 1145px) {

  .woocommerce ul.products[class*="columns-"][data-products],
  .woocommerce-page ul.products[class*="columns-"][data-products]{
    --shop-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 878px) and (max-width: 999px) {

  .woocommerce ul.products[class*="columns-"][data-products],
  .woocommerce-page ul.products[class*="columns-"][data-products]{
    --shop-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 560px) and (max-width: 877px) {

  .woocommerce ul.products[class*="columns-"][data-products],
  .woocommerce-page ul.products[class*="columns-"][data-products]{
    --shop-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --------------- STYLE SLAJDERA PRODUKTÓW (SHORTCODE) ------------------- */

.bkf-shortcode-swiper {
  display: flex;
  flex-direction: column;
}

.bkf-shortcode-swiper .swiper-wrapper {
  order: 1;
}

/* Przyciski i paginacja – pod spodem, statycznie */
.bkf-shortcode-swiper .swiper-pagination,
.bkf-shortcode-swiper .swiper-button-prev,
.bkf-shortcode-swiper .swiper-button-next {
  position: static !important;
  order: 2;
  margin-top: 1rem;
}

/* Kontener kontrolek (przyciski + paginacja) */
.bkf-shortcode-swiper .swiper-controls-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Grupa przycisków (prev/next) */
.bkf-shortcode-swiper .swiper-button-group {
  display: flex;
  gap: 0.5rem;
  order: 2;
}

/* Paginacja z lewej, przed przyciskami */
.bkf-shortcode-swiper .swiper-controls-container .swiper-pagination {
  margin: 0;
  order: 1;
}

/* Aktywny bullet w kolorze motywu */
.bkf-shortcode-swiper .swiper-pagination-bullet.swiper-pagination-bullet-active {
  background: var(--theme-palette-color-1);
}

/* style kart produktów */

/* .bkf-shortcode-swiper .swiper-wrapper .swiper-slide {
  display: flex;
} */

.bkf-shortcode-swiper ul.products {
  --grid-columns-gap: 0px;  
  --grid-rows-gap: 0px;
}

.bkf-shortcode-swiper ul.products > li.product {
  background: #fff;                           
  border-radius: 8px;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 2px 6px;
  height: auto;
  display: flex;
  justify-content: space-between;
}

/* Styl przycisków slidera (SHORTCODE) */
.bkf-shortcode-swiper .swiper-controls-container .swiper-button-prev::after,
.bkf-shortcode-swiper .swiper-controls-container .swiper-button-next::after {
  color: var(--theme-palette-color-1); 
}

/* .custom-shop-header {
	margin-bottom: 2rem;
	background: var(--theme-palette-color-7);
	padding: 1.5rem;
	border-radius: 10px;
}
.custom-shop-header h1 {
	font-size: 2rem;
	font-weight: bold;
}
.custom-shop-header p {
	color: var(--theme-palette-color-3);
	margin-top: 0.5rem;
} */

.wc-block-product-categories-list-item-count {
  display: none;
}

/* --------------- NAZWY KATEGORII W ARCHIWACH PRODUKTÓW ------------------------ */

/* Cała sekcja sklepu grupowana kategoriami */
.bkf-shop-by-category { display: block; }

/* Blok pojedynczej kategorii */
.bkf-category-block { margin: 2.5rem 0 1.5rem; }


/* === Separator kategorii: pełna szerokość siatki produktów === */
ul.products .bkf-category-separator {
  list-style: none;
  margin: 20px 0 14px;     
  padding: 0;
  grid-column: 1 / -1;      
  flex: 0 0 100%;        
  width: 100%;
  display: block;        
}

ul.products > li.bkf-category-separator:first-child {
  margin: 0px 0 12px; 
}

/* === „Kafelek” nagłówka (tło, cień, zaokrąglenia) === */
.bkf-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between; 
  gap: 16px;
  padding: 12px 16px;
  background: var(--theme-palette-color-7);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 12px;
  box-shadow: rgba(149,157,165,.15) 0 6px 18px;
  width: 100%;
}

/* Tytuł – wolna szerokość, by przycisk został w 1. wierszu */
#bkf-category-title, .bkf-category-title {
  margin: 0;
  margin-block-end: 0;
  padding-left: 12px;              
  font-weight: 800;
  line-height: 1.2;
  font-size: 2rem;
  flex: 1 1 auto;                   /* tytuł może się kurczyć/rosnąć */
  position: relative;
  color: var(--theme-palette-color-4);
}

/* Pasek akcentowy po lewej (zamiast border-left, lepiej wygląda w „kafelku”) */
#bkf-category-title::before, .bkf-category-title::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 70%;
  border-radius: 4px;
  background: var(--theme-palette-color-1);
}

/* Przycisk po prawej */
.bkf-category-button {
  white-space: nowrap;        
  display: inline-block;
  padding: 10px 14px;
  background: var(--theme-palette-color-1);
  color: var(--theme-palette-color-8);
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  box-shadow: rgba(149,157,165,.18) 0 8px 22px;
  transition: background .2s ease, transform .15s ease, box-shadow .15s ease;
}
.bkf-category-button:hover {
  background: var(--theme-palette-color-2);
  color: var(--theme-palette-color-8);
  transform: translateY(-1px);
  box-shadow: rgba(149,157,165,.26) 0 10px 28px;
}

/* Mobile: przycisk pod tytułem, wyrównany do lewej */
@media (max-width: 545px) {
  .bkf-category-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .bkf-category-button { margin-top: 8px; }
}


/* -------------- FILTRY PRODUKTÓW----------------- */

aside .ct-sidebar {
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  border-radius: 8px;
}

div.bapf_head h3 {
  font-size: 1rem;   
  margin: 0 0 10px 0;    
  line-height: 1.3;     
  font-weight: 400; 
}

/* Nagłówek grupy filtrów w sidebarze (BeRocket) */
.ct-sidebar h3.berocket_ajax_group_filter_title{
  position: relative;      
  display: inline-block;    
  padding-left: 12px;     
  margin: 0 0 14px 0;
  line-height: 1.2;
  font-size: 1.5rem; 
  font-weight: 600;
}

/* Czerwony pasek po lewej */
.ct-sidebar h3.berocket_ajax_group_filter_title::before{
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);   
  width: 6px;                    
  height: 70%;                   
  border-radius: 4px;   
  background: var(--theme-palette-color-1); 
}

/* -------- SIDE BASKET ------------ */
/* kolory przycisków */
.xoo-wsc-ft-buttons-cont > a:first-child,
.xoo-wsc-ft-buttons-cont > a:nth-child(2)  { 
  background-color: var(--theme-palette-color-3);
  color: var(--theme-palette-color-8);
}

.xoo-wsc-ft-buttons-cont > a:first-child:hover,
.xoo-wsc-ft-buttons-cont > a:nth-child(2):hover  { 
  background-color: #0c3a6bd3;
}

html body div.xoo-wsc-sm-info div.xoo-wsc-sm-left {
	justify-content: center;
}

/* FOOTER */
footer#footer div.ct-widget h2 {
	font-size: 1.5rem;
	margin-bottom: 1rem;
}

footer#footer div.ct-widget a {
	color: var(--theme-palette-color-4);
}

footer#footer div.ct-widget a:hover {
	color: var(--theme-palette-color-2);
}


.ct-footer-copyright p{
  color: var(--theme-palette-color-8);
}

.woocommerce-breadcrumb {
  text-align: center;
  margin-top: 1.5rem;
}

/* CART PAGE */
button[name='update_cart'] {
   display: none !important;
}