@media screen and (max-width: 1400px) {
   .product-home-wrapper .shop-products ul.products {
       grid-template-columns: repeat(3, 1fr);
   }
   .single-product .related ul.products {
       grid-template-columns: repeat(3, 1fr);
   }
}

@media screen and (max-width: 1200px) {

    /*** LISTANJE ***/
    .product-subcategories-wrapper {
        padding-bottom: 0;
    }

    .shop-layout-wrapper {
        flex-direction: column;
    }

    .shop-sidebar {
        width: 100%;
    }

    .product-filters-wrapper {
        display: flex;
        justify-content: start;
        align-items: start;
        gap: 50px;
    }

    .berocket_single_filter_widget {
        min-width: 150px;
    }

    .shop-products ul.products {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .shop-sidebar {
        position: relative;
        margin-top: -40px;
    }

    /*** SINGLE ***/
    .single-product div.product .fs-single__top {
        flex-direction: column;
    }

    .single-product div.product .fs-single__gallery {
        flex: unset;
        width: 100%;
    }

    .single-product .woocommerce-product-gallery {
        flex-direction: column;
    }

    .single-product .woocommerce-product-gallery .flex-control-nav.flex-control-thumbs {
        width: 100%;
        min-width: 0;
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .single-product .woocommerce-product-gallery .flex-control-nav.flex-control-thumbs li {
        width: 72px !important;
        min-width: 72px;
    }

    .single-product .fs-single-delivery-info :where(ul, .fs-delivery-grid, .delivery-grid),
    .single-product .info-single-del-wrapper :where(ul, .fs-delivery-grid, .delivery-grid) {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 991px) {

    /*** KATEGORIJE LISTANJE ***/
    .product-subcategories {
        padding-bottom: 10px;
    }

    .subcategory-item {
        min-width: 300px;
    }

    .product-subcategories {
        display: flex;
        justify-content: start;
        overflow-x: scroll;
    }
    .wp-block-woocommerce-checkout-order-summary-block {
        display: none;
    }
    .wp-block-woocommerce-checkout {
        padding-top: 0 !important;
    }
}

@media screen and (max-width: 768px) {

    /*** HEADER - HOME ***/
    .content-left {
        width: 90%;
        margin: 0 auto;
        left: 8%;
        top: 65%;
        transform: translate(0%, -50%);
        position: absolute;
    }
    .menu-header ul {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 10px 30px;
        text-align: center;
    }

    .menu-header>ul>li>a {
        font-size: 30px;
    }

    .free-delivery {
        font-size: 10px;
    }

    .main-home-banner-wrapper .desktop-image {
        display: none;
    }

    .main-home-banner-wrapper .mobile-image {
        display: block;
    }

    header {
        padding-bottom: 5px;
    }

    .main-logo {
        max-width: 120px;
    }

    .right-menu-icon-wrapper {
        gap: 10px;
    }

    .category-home-holder {
        grid-template-columns: repeat(1, 1fr);
    }

    .category-link {
        font-size: 30px;
    }

    .content-left h2 {
        font-size: 36px;
    }

    .banner-links .banner-first {
        font-size: 16px;
    }

    .menu-close {
        top: 30px;
        right: 30px;
    }

    .category-menu {
        font-size: 12px;
    }

    .product-home-wrapper {
        padding-bottom: 50px;
        position: relative;
    }

    .category-home-wrapper {
        padding: 50px 0 50px 0;
    }

    .product-home-wrapper h2 {
        font-size: 26px;
        margin: 0;
        padding: 0;
    }

    .see-all-home {
        position: absolute;
        bottom: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .faq-wrapper {
        padding: 40px 0 60px;
    }

    .faq-wrapper h2 {
        font-size: 26px;
        padding-bottom: 20px;
    }

    .faq-question {
        padding: 16px 0;
        gap: 12px;
    }

    .faq-question p {
        font-size: 14px;
    }

    /*** FOOTER ***/
    .footer-links {
        flex-direction: column;
        padding: 50px 0;
    }

    .footer-links div {
        width: 100%;
    }

    .footer-links h3 {
        font-size: 16px;
    }

    .footer-links ul li {
        padding-bottom: 5px;
    }

    .footer-links h3 {
        padding: 10px 0;
        margin: 0;
    }

    /*** 0 NAMA ***/
    .o-nama-wrapper {
        max-width: 100%;
    }

    .page-o-nama h1,
    .woocommerce-cart .container h1,
    .woocommerce-checkout .container h1,
    .page-kontakt h1,
    .page-politika-privatnosti h1,
    .page-uslovi-kupovine h1 {
        font-size: 40px;
        padding: 30px 0;
    }

    .page-o-nama .container {
        padding-bottom: 50px;
    }

    /*** KONTAKT ***/
    .contact-wrapper {
        flex-direction: column;
        gap: 30px;
        padding-bottom: 50px;
    }

    .contact-form-wrapper,
    .contact-info-wrapper {
        width: 100%;
    }

    /*** LISTANJE ***/
    .shop-products ul.products,
    .single-product .related.products ul {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .subcategory-item {
        min-width: 225px;
    }
	
	.product-subcategories {
		gap: 10px;
	}

    .woocommerce-products-header__title {
        font-size: 40px;
    }

    .shop-sidebar {
        display: none;
    }

    /* Mobile filters drawer (<= 768px) */
    .fs-mobile-filters-toggle {
        width: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 7px;
        margin: 0 0 16px 0;
        border: 2px solid #fe6601;
        background: #fe6601;
        color: #ffffff;
        border-radius: 8px;
        font-weight: 900;
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 0.6px;
        cursor: pointer;
        transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
    }

    .fs-mobile-filters-toggle:hover,
    .fs-mobile-filters-toggle:focus {
        background: #1a1a1a;
        border-color: #1a1a1a;
        outline: none;
    }

    .shop-sidebar {
        width: 0;
    }

    .product-filters-wrapper {
        position: fixed !important;
        top: 0;
        left: 0;
        height: 100vh;
        width: min(86vw, 360px);
        background: #ffffff;
        z-index: 10001;
        transform: translateX(-110%);
        transition: transform 280ms ease;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 18px 16px 22px 16px;
        display: block !important;
        justify-content: unset !important;
        align-items: unset !important;
        gap: 0 !important;
        pointer-events: auto;
    }

    body.fs-filters-open .product-filters-wrapper {
        transform: translateX(0);
    }

    .fs-mobile-filters-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 220ms ease;
        z-index: 10000;
    }

    body.fs-filters-open .fs-mobile-filters-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .fs-mobile-filters-close {
        width: 30px;
        height: 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 2px solid #fe6601;
        background: #ffffff;
        color: #fe6601;
        font-size: 26px;
        font-weight: 900;
        cursor: pointer;
        margin: 0 0 12px 0;
        transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
    }

    .fs-mobile-filters-close:hover,
    .fs-mobile-filters-close:focus {
        background: #fe6601;
        color: #ffffff;
        outline: none;
    }

    body.fs-filters-open {
        overflow: hidden;
    }
	.berocket_single_filter_widget .bapf_sfilter.bapf_ckbox .bapf_body ul {
        grid-template-columns: repeat(4, 1fr);
    }
	.product-home-wrapper .shop-products ul.products {
       grid-template-columns: repeat(2, 1fr);
   }
	.shop-products ul.products li.product .fs-product-card__body {
		min-height: 130px;
	}
    .delivery-home-wrapper {
        height: 95px;
    }
    .delivery-home-wrapper img {
        object-fit: cover;
    }
}

@media screen and (max-width: 540px) {

    /*** LISTANJE ***/
    .woocommerce-breadcrumb {
        font-size: 10px;
    }

    .woocommerce-result-count,
    .woocommerce-ordering {
        position: relative;
        left: unset;
        right: unset;
        margin: 0px !important;
    }

    .shop-products ul.products {
        margin-top: 20px;
        gap: 10px;
    }

    .shop-products {
        padding: 0;
        background: none;
        border: none;
    }

    .shop-layout-wrapper {
        gap: 20px;
    }

    .shop-products ul.products li.product .fs-product-card__badge,
    .single-product .related ul.products li.product .fs-product-card__badge {
        font-size: 10px;
        top: 5px;
        left: 5px;
        font-weight: 700;
        padding: 3px 5px;
    }

    .shop-products ul.products li.product .fs-product-card__title,
    .single-product .related ul.products li.product .fs-product-card__title {
        font-size: 14px;
        font-weight: 700;
        margin: 0 0 5px 0;
    }

    .shop-products ul.products li.product .fs-product-card__title,
    .shop-products ul.products li.product .fs-product-card__price,
    .single-product .related ul.products li.product .fs-product-card__price {
        margin-bottom: 5px;
    }

    .shop-products ul.products li.product .price,
    .single-product .related ul.products li.product .price {
        font-size: 12px;
    }

    .shop-products ul.products li.product .price del,
    .single-product .related ul.products li.product .price del {
        margin: 0;
        font-size: 12px;
    }

    .shop-products ul.products li.product .fs-product-card__body,
    .single-product .related ul.products li.product .fs-product-card__body {
        padding: 10px;
    }

    .shop-products ul.products li.product .fs-loop-quickview,
    .single-product .related ul.products li.product .fs-loop-quickview {
        gap: 5px;
        font-size: 12px;
    }

    .shop-products ul.products li.product .fs-loop-quickview__icon,
    .single-product .related ul.products li.product .fs-loop-quickview__icon {
        width: 15px;
        height: 15px;
        border: 1px solid #fe6601;
        padding: 1px;
        border-radius: 0;
    }

    .woocommerce-products-header__title {
        padding: 0;
    }

    /*** SINGLE ***/
    .single-product div.product .product_title {
        font-size: 22px;
    }

    .single-product div.product p.price,
    .single-product div.product span.price {
        font-size: 18px;
    }

    .woocommerce-variation-add-to-cart {
        gap: 10px;
    }

    .fs-quantity__box {
        width: 100px;
    }

    .woocommerce-variation-add-to-cart .single_add_to_cart_button {
        height: 45px;
        font-size: 14px;
    }

    .info-single-del-wrapper {
        gap: 10px;
    }

    .info-single-del-wrapper .usp-item p {
        font-size: 10px;
    }

    .info-single-del-wrapper .usp-item i {
        font-size: 16px;
    }

    .info-single-del-wrapper .usp-item {
        padding: 10px;
    }

    .fs-quantity__box input {
        width: 50px;
    }

    .related.products h2 {
        font-size: 22px;
    }

    .napomena-broj-wrapper h4 {
        font-size: 12px;
    }

    /*** CART i CHECKOUT ***/
    .is-medium table.wc-block-cart-items .wc-block-cart-items__row,
    .is-mobile table.wc-block-cart-items .wc-block-cart-items__row,
    .is-small table.wc-block-cart-items .wc-block-cart-items__row {
        grid-template-columns: 75px !important;
    }
    .wc-block-components-totals-item__label {
        font-size: 12px;
    }
    .wp-block-woocommerce-checkout-order-summary-block.checkout-order-summary-block-fill-wrapper .wc-block-components-title {
        text-align: center;
        padding: 10px 0;
        margin: 0 !important;
    }
}