.loading-overlay {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    display: flex; /* تغییر از none به flex */
    z-index: 1000;
    backdrop-filter: blur(10px);
    justify-content: center; /* افقی وسط */
    align-items: center;      /* عمودی وسط */
    text-align: center;
}

.loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 0.5rem solid #607d8b;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


.btn-add-cart{
    font-size: 18px;
    line-height: 1.222;
    border-radius: 8px;
    color: #fff;
    overflow: hidden;
    text-align: center;
    min-height: 55px;
    background-color: #ef394e;
    border: none;
    padding: 16px 18px;
    border: 0;
    width: 90% !important;
    margin-left: 5%!important;
    margin-right: 5%!important;
    margin-bottom: 10px;
    margin-top: 10px;
}

.btn-add-cart:hover{
    background-color: #ef394e;
    color: #fff;
    border: 0;
}

.stack-menu-lite{
    background-color: #f6f5f5;
    border: 1px solid #f6f5f5;
    border-radius: 5px;
    -webkit-box-shadow: unset;
    box-shadow: unset;

}


.search-result-list {
    border: 2px solid #edf0f5;
    border-radius: 8px;
    background-color: #0a6aa1 !important;
    max-height: 300px;
    overflow-y: auto;
    right: 0;
    left: 0;
    margin: 10px;
}
.search-result-list ul{
    line-height: 10px;
    font-size: 13px;
}



.P-loader {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 10000;
    background-color: rgba(250, 250, 250, 0.97);
}

.P-loader .P-loader-content .logo-loader {
    width: auto;
    margin-bottom: 10px;
    display: block;
}


.contact-bar{
    position: fixed;
    left: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    z-index: 99999;
    font-family: "Vazirmatn", "IRANSans", system-ui, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

.contact-item,
.contact-toggle{
    display: flex;
    align-items: center;
    gap: 12px;
    width: 80px;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    margin: 0;
    outline: none;
    flex-direction: row;
    direction: ltr;
}

.ci-icon{
    flex: 0 0 56px;
    height: 56px;
    border-radius: 999px;
    background: #607d8b;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
    margin-left: 0;
}
.ci-icon i{ color: #fff; font-size: 20px; }

.contact-item{
    pointer-events: none;
    transform: translateX(-6px) translateY(8px);
    opacity: 0;
    transition: transform .32s cubic-bezier(.2,.9,.2,1), opacity .32s cubic-bezier(.2,.9,.2,1);
}

.contact-bar:hover .contact-item,
.contact-bar.open .contact-item{
    transform: translateX(0) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.contact-bar:hover .contact-item:nth-of-type(1),
.contact-bar.open .contact-item:nth-of-type(1){ transition-delay: .05s; }
.contact-bar:hover .contact-item:nth-of-type(2),
.contact-bar.open .contact-item:nth-of-type(2){ transition-delay: .12s; }

@media (max-width: 680px){
    .ci-icon{ flex: 0 0 48px; height: 48px; }  /* قبلاً --icon-size: 48px */
    .contact-item, .contact-toggle{ width: 200px; } /* قبلاً --bar-width: 200px */
    .contact-bar{ left: 14px; bottom: 14px; }       /* قبلاً --left-offset / --bottom-offset */
}

body .contact-bar{ z-index: 99999; }

