/* 
****

filemenu: 
    * imports
    * globals
    * ui
    * toggle button
    * fucntional  
    * breadcrumds  
****
*/  

/* 
---------------------------------
-----        import         -----
---------------------------------
 */  


@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Hebrew:wght@100..900&display=swap.css"); /* Using a url */


/* 
---------------------------------
-----        globals         -----
---------------------------------
 */  


html {
    font-family: var(--font-family);
}

h3{
    font-size: 1.1rem;
    margin: 0;
}

p{
    font-size: 16px;
    margin: 0;
}

body{
    margin: 0;
    font-family: "Noto Sans Hebrew", sans-serif;
    direction: rtl;
}

header{

    width: 100%;
}

::-webkit-scrollbar {
    width: 4px; 
}

::-webkit-scrollbar-track {

    background: #E0E0E0; 
    margin: .25rem; 
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {

    background: #000; 

}

::-webkit-scrollbar-thumb:hover {

    background: #a9a9a9; 
}

/* 
---------------------------------
-----          ui           -----
---------------------------------
 */  


.indicator{

    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.htmx-request.indicator::after{

    content: "";
    width: 1em;
    height: 1em;
    border: 5px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: inherit;
    border-top: 5px solid currentColor;
    animation: spin 1s linear infinite;
    position: absolute;
    


}
.htmx-request.indicator span, .htmx-request.indicator img{

    opacity: 0.3;
    transform: scale(0.9);

    transition: opacity 0.2s, transform 0.2s;
}

.htmx-request.indicator-submit {

    pointer-events: none;
    opacity: 0.8;
}


.indicator{

    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.request.indicator::after{

    content: "";
    width: 1em;
    height: 1em;
    border: 5px solid lightgray;
    border-radius: 50%;
    color: inherit;
    border-top: 5px solid currentColor;
    animation: spin 1s linear infinite;
    position: absolute;

}
.request span{

    opacity: 0.3;
    transform: scale(0.9);

    transition: opacity 0.2s, transform 0.2s;
}

@keyframes spin {

    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.padding-bottom{

    padding-bottom: 2rem;
}

.padding-top{

    padding-top: 2rem;
}

.btn_underline {
    
    background: none;
    border: none;
    width: fit-content;
    padding: 0;
    text-decoration: underline;
    font-size: 0.8rem;
    font-family: 'Noto Sans Hebrew';
    text-align: right;
}

.icon{

    fill: #000;
    width: 0.75rem;
    height: 0.75rem;
}

.btn{
    
    width: fit-content;
    padding: 0.725rem 2.5rem;
    display: grid;
    align-items: center;
    justify-content: center;

    border-radius: 3rem;
    background: var(--black);
    color: var(--white);
    border: none;

    font-weight: bold;
    font-size: 1.1rem;

    cursor: pointer;
}

input,textarea{

    width: 100%;
    border-radius: 1.5rem;
    border: none;
    background: #F5F5F5;
    padding: 0.75rem 1rem;
    text-align: right;
    font-size: var(--font-base);
    
}

input{

    box-sizing: border-box;
}

textarea,
input,
textarea::placeholder{
    font-family: var(--font-family);
}

.contianer_small{

    max-width: 1200px;
    padding: 0 2.7rem;
    margin: 0 auto;
}

.contianer_xsmall{

    max-width: 980px;
    padding: 0 2.7rem;
    margin: 0 auto;
}

.container{

    max-width: 1400px;
    margin: 0 auto;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    
  -webkit-appearance: none;
  margin: 0;
}

a{
    color: var(--black);
}

/* Firefox */
input[type=number] {

  -moz-appearance: textfield;
}

.error_msg{
    font-size: 0.7rem;
    color: red;
    padding: 0.5rem;
    display: block;
}

.w_third{
    width: calc((100% / 3) - 2rem);
}

.w_half{
    width: calc(100% / 2);
}

.flex{
    display: flex;
}

.bold{
    font-weight: bold;
}

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

    .m_w_half{

        width: calc((100% / 2) - 1rem);
    }

    .m_w_full{
    
        width: 100%;
    }

    .header_logo, .header_orders{

        order: 1;

    }

    .header_orders img{

        display: none;
    }

    .header_logo img{

        width: 10.5rem;
    }
    
    .contianer_small{

        padding: 0 1rem;
    }

    input{

        width: 100%;
        box-sizing: border-box;
    }
    
}


/* 
---------------------------------
-----     toggle button     -----
---------------------------------
 */  

.toggle_input{

    display: none;
}

.toggle_input_button {
    
    font-size: .8rem;
    text-decoration: underline;
    cursor: pointer;
}

.toggle_input:checked ~ .toggle_input_item{

    height: auto;
    opacity: 1;
    visibility: visible;

    transition: height 0.3s, visibility 0.3s;
}

.toggle_input_item{

    height: 0;
    opacity: 0;
    visibility: hidden;

    transition: height 0.3s, visibility 0.3s;
}



/* 
---------------------------------
-----      fucntional       -----
---------------------------------
 */  

.w100{

    width: 100%;
}

.w50{

    width: 50%;
}
 

.hide_btn{
     
    opacity: 0;
    visibility: hidden;
    position: absolute;
}
    
.show{
    
    display: block;
}
    
    
.show_flex{
    
    display: flex;
}

.hide {

    display: none;
}

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

        display: block;
    }

    .show_desktop{

        display: none !important;
    }

}

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

    .show_mobile{

        display: none !important;
    }

    .show_desktop{

        display: block ;
    }

}



/* 
---------------------------------
-----      breadcurmbs      -----
---------------------------------
 */  

.breadcrumbs{

    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    padding: 0 1rem;
}

.breadcrumbs a{

    color: var(--highlights);
    text-decoration: none;
}

.breadcrumbs_current{

    color: #000;
}