
.logo-box-header img {
    max-width: 150px;
    width: 100%;

}

.main-header {
    box-shadow: 0px 0px 8px 0px #0000001f;
    background: white;

}


.main-header-child {
    max-width: 1400px;
    width: 100%;
    margin: 0px auto;
    gap: 20px;
    padding: 22px 0px;
    position: relative;
    z-index: 20;
    background: white;
}

.search-box-header {
    width: 60%;
}

.search-box-header input {
    width: 450px;
    padding-right: 50px;
    background-image: url(/static/svg/search-1.svg);
    background-repeat: no-repeat;
    background-position: calc(100% - 18px) center;
    border-radius: 8px;
}

.logo-box-header {
    width: 15%;
}

.button-login {
    background: none;
    color: var(--rico-color-1);
}

.button-logout {
    background: none;
    color: red;
}

.bottom-header {
    padding: 14px 10px;
}

.bottom-header-child {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}

.menu-right {
    gap: 24px;
    padding: 10px 20px;
}

.menu-left {
    gap: 24px;
    padding: 10px 20px;
    background: var(--rico-color-3);
    border-radius: 8px;
}


.menu-item a {
    color: var(--rico-color-5);
    gap: 8px;
}


.button-dashboard {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding-right: 20px;
    padding-left: 20px;
    color: var(--rico-color-2);
}

.button-register , .button-login , .button-dashboard {
    padding: 12px 20px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media screen and (max-width: 1024px) {

    .main-header-child {
        justify-content: space-between;
        padding: 14px 10px;
    }
    
    .search-box-header{
        width: 100%;
    }
    .search-box-header input {
        width: 100%;
    }

    .bottom-header {
        padding-top: 0;
    }

    .logo-box-header {
        width: auto;
    }

    .logo-box-header img {
        width: 130px;
    }

    .button-login {
        padding: 12px 12px;
    }

    .child-bottom-header {
        display: flex;
        gap: 15px;
        width: 100%;
    }

    .main-bottom-header {
        background: white;
        padding: 5px 10px;
        padding-bottom: 15px;
    }

    .menu-item a {
        font-size: 16px;
    }

    .menu-left {
        align-items: center;
    }
}


.main-bottom-header {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}


@media screen and (min-width: 1024px) {

    header {
        position: sticky;
        top: 0;
        z-index: 10;
      }
      
      .main-header-child {
        position: relative;
        background: white;
        z-index: 6;
      }
      
      .child-bottom-header {
        left: 0;
        right: 0;
        background: white;
        z-index: 5;
        transition: transform 0.4s ease, opacity 0.4s ease;
        transform-origin: bottom center;
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
        bottom: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
    }
      
      header.sticky .child-bottom-header {
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
      }
}

@media screen and (max-width: 1024px){

    .rico-hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 35px;
        height: 26px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 100;
        margin-right: 10px;
      }
    
      .rico-hamburger span {
        width: 100%;
        height: 2px;
        background-color: var(--rico-color-2);
        border-radius: 4px;
        transition: all 0.3s linear;
      }
    
      .rico-sidebar {
        display: block;
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background-color: var(--rico-color-8);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        transition: right 0.4s ease-in-out;
        padding: 60px 20px 20px;
        overflow-y: auto;
      }
    
      .rico-sidebar.active {
        right: 0;
      }
    
      .rico-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
      }
    
      .rico-overlay.active {
        opacity: 1;
        visibility: visible;
      }

      button#rico-close-btn {
        position: absolute;
        top: 20px;
        left: 20px;
    }
}