﻿:root {
    --topbar-h: 30px;
    --middle-h: 60px;
    --bottom-nav-h: 60px;
    --primary: #692CA2;
    --primary-dark: #4B167E;
    --primary-light: #f4ecff;
    --pink: #C04CFD;
    --royal-red: #C93B6A;
    --danger-soft: #d63384;
    --danger-light: #fff1f6;
    --gray-border: #e9e9ef;
    --gray-muted: #8b8b95;
    --silver: #D9D9E3;
    --silver-dark: #8E8EA0;
    --gray-dark: #455A64;
    --black: #111111;
    --white: #FFFFFF;
    --bg-soft: #faf8ff;
    --bg-light: #F5F5F8;
    --radiusBk-1: 5px;
    --radiusBk-2: 10px;
    --radiusBk-3: 20px;
}


body {
    direction: rtl;
    text-align: right;
}


.top-bar {
    background: radial-gradient(circle, rgba(75,22,126,1) 0%, rgba(105,44,162,1) 52%, rgba(192,76,253,1) 93%, rgba(217,217,227,1) 100%);
    font-size: 13px;
    overflow: hidden;
    max-height: 50px;
    opacity: 1;
    transition: max-height .35s ease, opacity .25s ease, padding .25s ease;
}

    /* حالت مخفی */
    .top-bar.hide {
        max-height: 0;
        opacity: 0;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

#topBarCarousel .carousel-item {
    transition: opacity 0.5s ease-in-out;
}

/* Middle */
.middle-bar {
    background: var(--bg-soft);
    border-bottom: 1px solid var(--gray-border);
}
#mainHeader {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: white;
}
    #mainHeader.compact .top-bar {
        display: none;
    }
/* منو */
.main-nav {
    background: white;
    border-bottom: 1px solid var(--gray-border);
}
.header-logo {
    height: 40px;
}

html {
    scroll-behavior: smooth;
}

.scroll-top-btn {
    transition: all .25s ease;
}

    .scroll-top-btn:hover {
        transform: translateY(-3px);
    }



#toWhatsApp {
    left: auto;
    right: 6px;
    font-size: 38px;
    line-height: 33px;
    position: fixed;
    height: 35px;
    width: 40px;
    bottom: 6px;
    text-align: center;
    text-transform: uppercase;
    opacity: 0.9;
    filter: alpha(opacity=90);
    text-decoration: none;
    z-index: 1000;
    -webkit-border-radius: 2px !important;
    -moz-border-radius: 2px !important;
    border-radius: 2px !important;
    -webkit-transition: all 0.2s;
    -moz-transition: all 0.2s;
    -o-transition: all 0.2s;
    transition: all 0.2s;
}


/*search*/
.search-input-group {
    border: 2px solid var(--primary);
    border-radius: var(--radiusBk-3) ;
    background-color: var(--bg-light);
}
#searchInput {
    border-top-right-radius: var(--radiusBk-3) !important;
    border-bottom-right-radius: var(--radiusBk-3) !important;
}
.searchBtn {
    border-top-left-radius: var(--radiusBk-3) !important;
    border-bottom-left-radius: var(--radiusBk-3) !important;
}

.search-result-box {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: white;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    z-index: 2000;
    max-height: 500px;
    overflow-y: auto;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    text-decoration: none;
    transition: .2s;
    border-bottom: 1px solid #f1f1f1;
}

    .search-item:hover {
        background: #f7f2ff;
    }

    .search-item img {
        width: 70px;
        height: 70px;
        object-fit: cover;
        border-radius: 12px;
    }

.search-item-title {
    color: #222;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.7;
}

.search-item-price {
    color: #0D47A1;
    font-weight: 700;
    font-size: 15px;
}

.search-item-price0 {
    color: #999;
    text-decoration: line-through;
    font-size: 12px;
}

.search-item-discount {
    background: #D50000;
    color: white;
    border-radius: 8px;
    padding: 2px 7px;
    font-size: 12px;
}

.search-out {
    color: #D50000;
    font-weight: bold;
    font-size: 13px;
}


.profile-card,
.content-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 22px;
    box-shadow: 0 4px 20px rgba(0,0,0,.03);
}

.content-card {
    padding: 20px;
}

.profile-card {
    position: sticky;
    top: 90px;
}

.profile-edit-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #f7f1ff;
    color: #7e22ce;
    transition: .2s ease;
}

    .profile-edit-btn:hover {
        background: #efe4ff;
        color: #6b21a8;
    }

.profile-section-title {
    font-size: .95rem;
    font-weight: 600;
    color: #212529;
}

.wallet-link,
.club-link,
.show-all-link {
    color: #c026d3;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
}

    .wallet-link:hover,
    .club-link:hover,
    .show-all-link:hover {
        color: #a21caf;
    }

.profile-menu .list-group-item {
    border: 0;
    border-bottom: 1px solid #f1f1f1;
    padding: 1rem 0.25rem;
    color: #495057;
    font-weight: 500;
    background: transparent;
    transition: .2s ease;
}

    .profile-menu .list-group-item:last-child {
        border-bottom: 0;
    }

    .profile-menu .list-group-item:hover {
        color: #7e22ce;
        padding-right: .6rem;
    }

.profile-menu .active {
    color: #7e22ce !important;
    background: rgba(126, 34, 206, 0.08);
    border-radius: 14px;
    border-bottom-color: transparent !important;
    padding-right: .8rem !important;
}

@media (max-width: 768px) {
    .profile-card {
        position: static;
    }
}

.btn-profile{
    color:var(--primary-dark);
    background-color:var(--primary-light);
    cursor:pointer;
}
    .btn-profile:hover {
        color: var(--primary-light);
        background-color: var(--primary-dark);
        
    }



@media (max-width: 768px) {
    .hidden-md {
        display: none !important;
    }

}
@media (max-width: 450px) {
 
    .search-input-group{
        min-width:300px!important;
    }

}
@media (max-width: 350px) {
 
    .search-input-group{
        min-width:250px!important;
    }

}