
/*new*/
 .ads-wrapper {
     height: 600px;
     overflow: hidden;
     position: relative;
 }

.ad-item {
    position: relative;
    margin-bottom: 15px;
}

.ad-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
}

.ad-subject {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
}

.ad-desc {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0 0 6px 6px;
    font-size: 12px;
}

.ad-item:hover .ad-desc {
    opacity: 1;
}

#right .ui-layout-unit-content {
    overflow: hidden !important;
}



 .ads-viewport {
     height: 600px;
     overflow: hidden;
     position: relative;
 }

/* fade بالا */
.ads-viewport:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, white, transparent);
    z-index: 2;
}

/* fade پایین */
.ads-viewport:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, white, transparent);
    z-index: 2;
}

.ads-track {
    position: absolute;
    width: 100%;
}

.ad-card {
    position: relative;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.ad-card:hover {
    transform: scale(1.03);
}

.ad-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.ad-title {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.65);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
}

.ad-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.65);
    color: white;
    padding: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 12px;
}

.ad-card:hover .ad-overlay {
    opacity: 1;
}

/*header*/
.modern-header {
    height: 90px;
    background: linear-gradient(to left,#f8f9fb,#eef1f4);
    background:white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* ستون‌ها */
.header-right,
.header-center {
    display: flex;
    align-items: center;
}

.header-right{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:nowrap;
    overflow:hidden;
}

.modern-user-btn{

    white-space: nowrap;

}

.modern-user-btn .ui-button{

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

}

/* لوگو */
.header-logo {
    height: 75px;
}

/* آواتار */
.header-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    margin-left: 15px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

/* Dropdown */
.user-dropdown {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* کلیک روی نام */
.user-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: bold;
    color: #333;
    transition: 0.3s;
}

.user-trigger:hover {
    color: #007ad9;
}

/* فلش کوچک */
.arrow-down {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #555;
    transition: transform 0.3s ease;
}

/* منو */
.user-menu {
    position: absolute;
    top: 20px;
    right: 0;
    background: #ffffff;
    min-width: 160px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    display: none;
    animation: dropdownFade 0.2s ease;
    z-index: 10000 !important;
    border: 1px solid #eee;
}

.menu-item {
    display: block;
    padding: 10px 18px;
    font-size: 13px;
    color: #333 !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.menu-item:hover {
    background: #f5f7fa;
    padding-right: 22px;
}

.logout-item {
    color: #e74c3c !important;
    font-weight: bold;
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* تاریخ */
.date-text {
    font-size: 12px;
    color: #777;
}

/* انیمیشن */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/*footer*/
.modern-footer {
    background: linear-gradient(to right,#f5f7fa,#e4e8eb);
    background: white;
    padding: 12px;
    border-top: 1px solid #ddd;
}

.footer-content {
    text-align: center;
    font-size: 12px;
    color: #555;
}

.footer-divider {
    margin: 0 8px;
    color: #aaa;
}

body, .ui-widget {
    font-family: IRANSans, Tahoma, sans-serif !important;
}

/* دکمه اصلی */
.modern-user-btn .ui-button {
    background: linear-gradient(135deg,#667eea,#764ba2) !important;
    border: none !important;
    border-radius: 25px !important;
    padding: 8px 18px !important;
    font-size: 14px !important;
    font-weight: bold !important;
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    transition: all 0.3s ease !important;
}

/* هاور دکمه */
.modern-user-btn.ui-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* فلش سمت راست */
.modern-user-btn .ui-button-text {
    padding-right: 8px !important;
}

/* منوی باز شده */
.ui-menu.ui-menu-dynamic {
    border-radius: 12px !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18) !important;
    padding: 6px 0 !important;
}

/* آیتم‌ها */
.modern-menu-item .ui-menuitem-link {
    padding: 10px 20px !important;
    font-size: 14px !important;
    transition: background 0.2s ease !important;
}

/* هاور آیتم */
.modern-menu-item .ui-menuitem-link:hover {
    background: #f3f4f8 !important;
}

/* خروج قرمز */
.logout-item .ui-menuitem-link {
    color: #e74c3c !important;
    font-weight: bold;
}

/* ===== دکمه مدیر ===== */
.modern-user-btn .ui-button {
    background: linear-gradient(135deg,#4facfe,#00f2fe) !important;
    border: none !important;
    border-radius: 30px !important;
    padding: 8px 20px !important;
    font-size: 14px !important;
    font-weight: bold !important;
    color: #fff !important;
    box-shadow: 0 8px 22px rgba(0,0,0,0.2);
    transition: all 0.3s ease !important;
}

/* هاور */
.modern-user-btn.ui-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.3);
}

/* فلش */
.modern-user-btn .ui-icon {
    margin-right: 6px;
}

/* ===== منو ===== */
.ui-menu.ui-menu-dynamic {
    border-radius: 14px !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25) !important;
    padding: 8px 0 !important;
    animation: scaleIn 0.2s ease;
}

/* انیمیشن باز شدن */
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* آیتم‌ها */
.modern-menu-item .ui-menuitem-link {
    padding: 12px 22px !important;
    font-size: 14px !important;
    transition: background 0.2s ease !important;
}

/* هاور آیتم */
.modern-menu-item .ui-menuitem-link:hover {
    background: #f3f6fb !important;
}

/* خروج قرمز */
.logout-item .ui-menuitem-link {
    color: #e74c3c !important;
    font-weight: bold;
}

.brands-container{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
}

.brands-slider{
    overflow:hidden;
    width:1200px;   /* هر عددی که مناسب است */
}

.brands-track{
    display:flex;
    transition:transform .4s ease;
}

.brand-box{
    min-width:70px;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:2px;
}

.brand-nav{
    width:40px;
    height:40px;
    border:none;
    border-radius:50%;
    cursor:pointer;
    font-size:22px;
}








