﻿@media screen and (max-width:761px) {
    .hide-mobile {
        display: none;
    }

    .page-header {
        padding-inline: 0;
        min-height: 300px;
    }

    .header-background-image {
        background: url(../assets/header_mobile.jpg) no-repeat;
        background-position: top !important;
    }

    .page-header-container {
        padding-left: 0;
        padding-right: 0;
    }

    .card-pesquisa {
        padding: 0.5rem !important;
    }

        .card-pesquisa .searchbar-button {
            height: 100%;
            padding: 0 0.75rem;
        }

    .floating-bottom-nav {
        position: fixed;
        bottom: 0.5rem;
        left: 0;
        width: 100%;
        padding: 0 0.75rem;
        z-index: 50;
        box-shadow: rgba(0, 0, 0, 0.04) 0px 3px 5px;
    }

    .bottom-navbar {
        display: flex;
        justify-content: space-evenly;
        width: 100%;
        backdrop-filter: blur(8px);
        background: hsla(214 45.7% 13.7% / 0.95);
        border-radius: 50rem;
        padding: 0.5rem 0.25rem;
        border: 1px solid hsl(214 45.7% 23.7%);
    }

    .bottom-navbar-button {
        background: transparent;
        border: none !important;
        display: flex;
        flex-direction: column;
        row-gap: 0.25rem;
        width: 100%;
        color: rgb(255,255,255);
    }

        .bottom-navbar-button .icon {
            width: 100%;
            background: transparent;
            display: flex;
            justify-content: center;
            align-items: center;
            width: 50%;
            border-radius: 50rem;
            margin: 0 auto;
            color: rgba(255,255,255,0.5);
            transition: all 150ms ease;
        }

        .bottom-navbar-button i {
            font-size: 1.25rem;
        }

        .bottom-navbar-button .text {
            font-size: 0.635rem;
            text-transform: uppercase;
            font-weight: 200;
            color: rgba(255,255,255,0.5);
            transition: all 150ms ease;
        }

        .bottom-navbar-button:active .text {
            color: rgba(255,255,255,1);
        }

        .bottom-navbar-button:active .icon {
            background: hsl(214 45.7% 23.7%);
            color: rgba(255,255,255,1);
        }

        .bottom-navbar-button .counter {
            position: absolute;
            top: -8px;
            right: 5px;
            padding: 2px 6px;
            font-size: 0.635rem;
            background-color: red;
            border-radius: 100%;
        }


    .bottom-navbar-item {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

        .bottom-navbar-item .bottom-navbar-button{
            position: relative;
            width: auto;
        }

            .bottom-navbar-item .bottom-navbar-button .counter{

            }

            .bottom-navbar-item:nth-child(2) {
                border-width: 0 1px 0 1px;
                border-style: solid;
                border-color: hsl(214 45.7% 23.7%);
            }

        .bottom-navbar-item .btn {
            background:blue;
        }


        .offcanvas.siderbar-categories {
            width: 100%;
            max-width: calc(100dvw - 1rem);
            height: calc(100dvh - 1rem);
            margin: auto 0.5rem auto 0.5rem;
            border-radius: 1rem;
        }


    #mobileFiltersModal:open {
        opacity: 1;
        transform: translateY(0);
    }

    #mobileFiltersModal {
        opacity: 0;
        transform: translateY(50px);
        margin: auto;
        padding: 0;
        width: 100%;
        height: 100%;
        max-height: 100dvh;
        max-width: none;
        border: 0;
        overflow-y: auto;
        display: flex;
        background-color: transparent !important;
        transition: opacity 0.3s ease-out, transform 0.3s ease-out, overlay 0.3s ease-out allow-discrete, display 0.3s ease-out allow-discrete
    }

    @starting-style {
        #mobileFiltersModal:open {
            opacity: 0;
            transform: translateY(50px);
        }
    }

    #mobileFiltersModal::backdrop {
        background-color: rgba(0,0,0,0);
        transition: display 0.3s allow-discrete, overlay 0.3s allow-discrete, background-color 0.3s
    }

    #mobileFiltersModal:open::backdrop {
        background-color: rgba(0,0,0,0.75);
    }

    @starting-style {
        #mobileFiltersModal:open::backdrop {
            background-color: rgba(0,0,0,0);
        }
    }

    #mobileFiltersModal .filters-modal {
        position: relative;
        max-height: calc(100% - 100px);
        width: 100%;
        margin-top: auto;
        overflow-y: auto;
    }

    .filters-modal h5{
        margin: 0;
        font-size: 1.25rem;
        font-weight: 700;
    }

    .filters-modal .btn-close {
        padding: 0;
        margin: 0;
        border: none;
        width: 2rem;
        height: 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .filters-modal-header {
        position: sticky;
        top: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        z-index: 1;
    }
    
    .filters-modal .filters-list {
        position: relative;
        z-index: 0;
    }

    .filters-modal {
        background-color: #FFF;
        border-radius:1.5rem 1.5rem 0 0;
    }

    .filters-modal .filters-modal-header,
    .filters-modal .filters-list {
        background-color: #FFF;
        padding: 1rem;
    }

        .filters-modal .filters-modal-header {
            border-radius: 1.5rem 1.5rem 0 0;
        }

        .filters-modal .filters-list i {
            font-size: 1.25rem;
        }

            .filters-modal .filters-list .filter-title {
                font-size: 1.1rem;
            }

        .filters-modal .filters-list li label {
            font-size:1rem;
        }

        .filters-modal .submit-filters-container{
            position: sticky;
            bottom: 0;
            width: 100%;
        }

    .sidebar-cart .offcanvas-footer .btn i {
        display: none;
    }
}
