.filtered-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.filtered-products-grid .products {
    max-width: 350px; /* lub inny rozmiar */
    width: 100%;
}


.popular-products ul {
grid-template-columns: repeat(4, 1fr) !important;
}

#popularne .single_add_to_cart_button, .popular-products .add_to_cart_button {
	display: none !important;
}

@media (max-width: 768px) {
    .filtered-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

.filtered-products-grid .products {
    max-width: 250px; /* lub inny rozmiar */
    width: 100%;
}

.popular-products ul {
grid-template-columns: repeat(2, 1fr) !important;
}

}

@media (max-width: 468px) {
.popular-products ul {
grid-template-columns: repeat(1, 1fr) !important;
}
}


.pagination {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-top: 20px;
   
}

.pagination-links {
	display: flex;
	align-items: center;
	gap: 5px;
}


.pagination-links a {
	color: black;
}

.pagination-links .current {
	background: hsla(0, 0%, 0%, 0.06);
	padding: 10px;
        border-radius: 10px;
}

.prev-next {
	padding: 12px 18px;
	background: white;
        border-radius: 999px;
	color: var(--primary);
}


.products {

    position: relative;
}

.products li img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: contain;
    border-radius: 20px;
    background: white;
}

.products li h5 {
    font-weight: 500;
    color: #000000;
}

.products li {
    display: flex;
    flex-direction: column;
}

.single-product-prices .label {
	background: var(--primary);
	color: white;
	padding: 5px 12px;
	border-radius: 1000px;
	font-weight: 500;
	font-size: 12px;
	transition: all 0.5s ease;
	z-index: 99;
}

.single-product-prices {
	flex-direction: column !important;
}

.product-labels {
    display: flex;

    justify-content: left !important;
	margin-bottom: 10px;
    gap: 5px;
}

.products .label {
	position: absolute;
	top: 10px;
	right: 10px;
	background: var(--primary);
	color: white;
	padding: 5px 12px;
	border-radius: 1000px;
	font-weight: 500;
	font-size: 12px;
	transition: all 0.5s ease;
}

.products:hover .label {
	opacity: 0;
}


.products img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: contain;
    border-radius: 20px;
    background: white;
}

.products h5 {
    margin-top: 10px;
    font-weight: 500;
    color: #000000;
}

.products {
    display: flex;
    flex-direction: column;
}



.products .woocommerce-Price-amount {
    color: hsla(0, 0%, 0%, 0.7);
}


.brak-produktow {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brak-produktow p {
    margin-bottom: 0px;
}

.brak-produktow img {
    margin-bottom: 15px;
}

.brak-produktow h3, 
.proponowane-produkty h3 {
    margin-bottom: 15px;
    color: #577C8E;
    font-weight: 600;
}


.woocommerce-product-gallery__image {
    background-color: white;
    border-radius: 20px;
}

.woocommerce-product-gallery__image img {
	max-height: 500px;
        object-fit: contain;
}


.woocommerce-no-products-found {
    display: none;
}

.have_to_see_products ul {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px; 
    margin: 0px;
    padding: 0px;
}

.have_to_see_products ul li {
    justify-content: space-between;
    list-style: none;
}

.products li .woocommerce-loop-product__title {
    font-weight: 500;
    font-size: 18px;
    color: #000000;
}

.products .woocommerce-Price-amount bdi {
    color: hsla(0, 0%, 0%, 0.7);
}


.have_to_see_products img {
    width: 100%;
    margin-bottom: 10px;
}

.have_to_see_products .add_to_cart_button {
    margin-top: 10px !important;
}

.single_add_to_cart_button,
.have_to_see_products .add_to_cart_button {
    display: inline-flex;
    flex: 0 0 auto;        
    align-self: flex-start;
    justify-content: center;
    align-items: center;
    margin: 0;
    border-radius: 1000px;
    padding: 12px 24px;
    font-family: 'Poppins';
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    border: 1px solid var(--primary);

    background-color: var(--primary);
    color: white;
    transition: all 0.5s ease;
}

.single_add_to_cart_button:hover,
.have_to_see_products .add_to_cart_button:hover {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

p.price {
    display: flex;
    flex-direction: column;
}

p.price del {
    font-size: 18px;
    color: #A7A7A7;
    margin-bottom: -10px;
}

.singel-product_discount {
    border: 1px solid #2F4157;
    color: #2F4157;
    padding: 8px 12px;
    border-radius: 1000px;
    font-size: 18px;
    font-weight: 500;
}



/* CHECKOUTS AND OTHER SECTIONS */

.woocommerce-cart-form__contents thead th {
    color: #2F4157;
    font-weight: 500 !important; 
    font-size: 20px;
}

.woocommerce-cart-form__contents tbody th {
    color: #2F4157;
}

.woocommerce-cart-form__contents tbody th .product-name {
    font-weight: 400 !important;
}

.product-price {
    text-wrap: nowrap;

}

.wc-proceed-to-checkout a {
    background-color: var(--primary);
    color: white;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    line-height: normal;
    border-radius: 99px;
    border: 1px solid var(--primary);
    transition: all 0.4s ease;
}

.wc-proceed-to-checkout a:hover {
    background-color: transparent;
    color: var(--primary);
}

button[name="woocommerce_checkout_place_order"] {
    background-color: var(--primary);
    color: white;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    line-height: normal;
    border-radius: 99px;
    border: 1px solid var(--primary);
    transition: all 0.4s ease;
}

button[name="woocommerce_checkout_place_order"]:hover {
    background-color: transparent;
    color: var(--primary);
}

button[name="update_cart"] {
    display: none;
}



.kategorie-hierarchiczne ul {
    list-style: none;
    padding-left: 20px;
}

.cat-level-0 {
    padding-right: 20px;
}

.kategorie-hierarchiczne li {
    margin: 5px 0;
    position: relative;
}

.kategorie-hierarchiczne li > a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    display: inline-block;
}

.kategorie-hierarchiczne li > .toggle-icon {
    cursor: pointer;
    margin-left: 10px;
    font-weight: bold;
    display: inline-block;
    transition: transform 0.3s;
}

.kategorie-hierarchiczne li.open > .toggle-icon {
    transform: rotate(45deg); /* np. + -> x */
}

.kategorie-hierarchiczne li ul {
    display: none;
    padding-left: 20px;
}

.kategorie-hierarchiczne li.open > ul {
    display: block;
}



.kategorie-hierarchiczne a.active-cat {
  font-weight: bold;
  color: var(--primary);
}

.kategorie-hierarchiczne a.active-parent {
  font-weight: bold;
  color: var(--primary);
  opacity: 0.8;
}


form input[name="s"] {
    border: 1px solid #a7a7a7;
    background: transparent;
    border-radius: 99px;
    color: var(--primary);
}


.custom-price-slider-form {
    margin-bottom: 20px;
}

#price-slider {
    margin: 10px 0;
}

.custom-price-slider-form button {
    padding: 6px 12px;
    background-color: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.custom-price-slider-form button:hover {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}


.brxe-product-content img {
   display: none;
}


#price-slider {
    margin: 10px 0;

}

#price-slider .noUi-base {
    height: 8px;
    background: #e0e0e0; /* tło paska */
    border-radius: 4px;
}

#price-slider .noUi-connect {
    background: var(--primary); /* kolor wypełnienia między uchwytami */
}

#price-slider .noUi-handle {
    background: #fff;
    border: 2px solid var(--primary);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    top: -6px;
}

.noUi-target {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

#price-slider .noUi-tooltip {
    background: var(--primary);
    color: #fff;
    font-weight: 500;
    border-radius: 4px;
}


.stock.in-stock {
	margin-bottom: 10px;
}

.single-product-prices div {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.single-product-prices .brxe-product-price  {
	width: 100%;
}
