/* 
SIZES

1024px = tablet
967px = tablet big
767px = tablet
575px = mobile
480px = mobile small

*/

@media screen and (max-width: 1024px) {
    .filters-backdrop {
        background: #fff;
        display: none;
        inset: 0;
        opacity: 0;
        position: fixed;
        z-index: 99999;
    }
    .homepage_title {
        font-size: 22px;
    }
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .bodyRow .w-6-10 {
        width: 50%;
    }
    .bodyRow .w-4-10 {
        width: 50%;
    }
    .product-chart {
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: unset;
    }
    .products-grid .product:hover, .page-products .product:hover {
        border-color: #e5e7eb;
    }

    .page-product-info {
        border: unset;
        padding: 0;
        margin-bottom: 10px;
    }
    .breadcrumb {
        margin-bottom: 20px;
    }
    .page-products-title {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .page-products-title div {
        display: none !important;
    }
    .page-products-title div:last-child {
        display: flex !important;
    }
    .filters .mobile-title {
        display: flex;
    }
    .filters-backdrop.open {
        display: block;
        opacity: 1;
    }
    .filters #mobile-title {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
        font-size: 23px;
        font-weight: 600;
        margin-top: 15px;
    }
    .filters #mobile-filtering {
        display: flex;
        justify-content: space-between;
    }
    .filters #mobile-filtering div {
        border: 1px solid #e2e8f0;
        border-radius: 7px;
        padding: 10px 15px;
        font-weight: 600;
        font-size: 14px;
    }
    .filters #mobile-filtering div.erase {
        background-color: #e2e8f0;
    }
    .filters #mobile-filtering div.submit {
        color: #fff;
        background-color: #020617;
    }
    .filters.open {
        display: block;
        max-width: 360px;
        margin: 0 auto;
        padding: 0 1rem;
    }
    .hide-mobile {
        display: none !important;
    }

    .products-results {
        padding-top: 1rem;
    }
    .products-results .right {
        padding-right: 15px;
    }
    .products-results .left {
        padding-left: 15px;
    }

    .bodyRow {
        flex-wrap: wrap;
    }
    .noflex {
        flex-wrap: nowrap;
        column-gap: 0px;
    }
    .bodyRow .w-1-4 {
        width: 100%;
    }
    .bodyRow .w-3-4 {
        width: 100%;
    }

    .products-grid .product {
       border-radius: unset; 
    }
    .filters {
        display: none;
    }
    .filters-button {
        display: flex;
        width: 100%;
        padding: 0 15px;
        align-content: center;
    }
    .filters-button .button {
        padding: 12px 0;
        background-color: #000;
        border-radius: 7px;
        color: #fff;
        width: 100%;
        justify-content: center;
        display: flex;
    }
    .filters-button .button i {
        padding-top: 2px;
        margin-right: 15px;
    }
    .breadcrumb .product, .breadcrumb .overview {
        display: none;
    }
    .products-grid .product:nth-child(odd) {
        border-left: 0;
        border-right: 0;
        border-top: 0;
    }
    .products-grid .product:nth-child(even) {
        border-right: 0;
        border-top: 0;
    }
    .products-grid .product:last-child:nth-child(odd) {
        border-right: 1px solid #e5e7eb;
    }
    .products-grid .product:nth-child(1), .products-grid .product:nth-child(2) {
        border-top: 1px solid #e5e7eb;
    }
    .page-product-info .product-name {
        display: block;
        font-weight: 600;
        font-size: 18px;
        margin-top: 10px;
    }
    .searchbar {
        margin: 20px 0;
    }
    .bodyOuterMobile {
        padding: 0 15px;
    }
    .bodyOuterMobileNone {
        padding: 0;
    }
    .homepage_banner .overlay h2 {
        margin-left: auto;
        margin-right: auto;
    }
}

@media screen and (max-width:967px) {
    .page-products .product {
        padding: 10px 15px;
    }
    .page-products .product .right {
        gap: 15px;
    }
}
@media screen and (max-width:767px) {
    .page-products .product .info .info-grid {
        display: flex;
        flex-direction: column-reverse;
    }
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .homepage_title {
        font-size: 18px;
    }
    .bodyRow .w-6-10, .bodyRow .w-4-10 {
        width: 100%;
        padding: 0;
    }
    .page-products .product .prices .bottom {
        font-size: 12px;
    }
    .page-products .product .prices .normal {
        font-size: 17px;
    }
    .page-products .product .prices .old {
        font-size: 12px;
    }
    .page-products .product .productBuy {
        font-size: 10px;
    }
    #pricesBest {
        border-radius: 0;
        margin-top: 30px;
    }
    .homepage_banner .overlay h2 {
        font-size: 30px;
    }
    .homepage_banner {
        height: 200px;;
    }
    .page-product-image {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    margin-top: 20px;
}
.page-products-subtitle {
    padding: 0 15px;
    font-size: 18px;
    margin-bottom: 15px;
}
.page_subtitle {
    font-size: 18px;
}
.page-products .notfound {
    padding: 0 15px;
}
    .noflex {
        flex-wrap: wrap;
    }
    #pricesFamily .page-products .product .units {
        margin-top: 5px;
    }

    #pricesFamily.bodyOuterMobile {
        padding: 0;
    }
    .page-product-info .product-name {
        line-height: 22px;
    }
    .page-product-image img {
        max-height: 200px;
    }
    .page-products .product .pill {
        font-size: 10px;
    }

    #pricesFamily .page-products {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 0;
    }

    .products-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    .products-grid .product .image-container {
        margin-bottom: unset;
    }
    .products-grid .product {
        flex-direction: row;
        align-items: center;
        padding: 15px 10px;
        border-left: 0 !important;
        border-right: 0 !important;
    }
    .products-grid .content-container .product-start {
        width: 100%;
    }
    .page-products .product .discount {
        margin-bottom: 7px;
    }
    .page-products .product .discount span {
        padding: 3px 7px;
        font-size: 11px;
    }
    .products-grid .content-container .discount {
        bottom: unset;
        left: 10px;
        top: 11px;
    }
    .products-grid .product:nth-child(2) {
        border-top: 0;
    }
    
    .bodyRow .w-center {
        display: block;
    }
    .products-grid .product img {
        width: 105px;
        height: 105px;
    }
    .products-grid .content-container .brand {
        margin-top: unset;
    }
    .products-grid .content-container {
        padding-left: 15px;
        width: 100%;
        align-content: space-between;
        display: flex;
        flex-wrap: wrap;
        height: 100%;
        flex-direction: unset;
        position: unset;
    }
    .page-products.loading .product .prices {
        margin-top: 5px;
    }
    .page-products .product .info {
        grid-column: 4 span;
    }
    .page-products {
        gap: 0;
    }
    .page-products .product .price-unit {
        grid-column: 2 span;
    }
    .page-products .product .price-unit {
        grid-column: 2 span;
    }
    .page-products .product {
        padding: 10px 10px;
        grid-template-columns: repeat(8, minmax(0, 1fr));
        border-radius: 0;
        border: 0;
        border-top: 1px solid #e5e7eb;
    }
    .page-products .product:last-child {
        border-bottom: 1px solid #e5e7eb;
    }
    .products-grid .content-container .name {
        margin-top: 5px;
    }
    .products-grid .content-container .unit {
        margin-top: 5px;
    }
    .page-products .product .unit {
        margin-top: 5px;
        font-style: italic;
    }
}


@media screen and (max-width:575px) {
    .homepage_banner .overlay h2 {
        font-size: 24px;
    }
    .homepage_banner {
        height: 175px;
    }
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width:480px) {
    .category-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}