﻿:root {
    --gold-primary: #d4af37;
    --gold-grad: linear-gradient(135deg, #d4af37 0%, #f2d27a 50%, #b8962e 100%);
    --dark-bg: #1a1a1a;
}

.main-header-lux {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* --- ردیف بالا --- */
.top-row {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

/* باکس جستجو */
.search-container {
    flex-grow: 1;
    position: relative;
    max-width: 600px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.05));
}

.search-input-lux {
    width: 100%;
    padding: 12px 25px 12px 60px;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    background: #fdfdfd;
    outline: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: #444;
}

    .search-input-lux:focus {
        border-color: var(--gold-primary);
        background: #fff;
        box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
    }

.search-btn-lux {
    position: absolute;
    left: 6px;
    top: 5px;
    bottom: 5px;
    width: 45px;
    background: var(--gold-grad);
    border: none;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

    .search-btn-lux:hover {
        transform: scale(1.05);
        filter: brightness(1.1);
    }

    .search-btn-lux i {
        font-size: 1.1rem;
    }

/* --- ردیف پایین (فقط دسکتاپ) --- */
.bottom-nav {
    background: #fff;
    padding: 10px 0;
    border-top: 1px solid #f9f9f9;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

    .nav-menu a {
        text-decoration: none;
        color: #444;
        font-weight: 600;
        font-size: 0.95rem;
        transition: 0.3s;
    }

        .nav-menu a:hover {
            color: var(--gold-primary);
        }

/* دراپ داون دسکتاپ */
.nav-dropdown {
    position: relative;
}

.dropdown-menu-custom {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    min-width: 200px;
    display: none;
    list-style: none;
    padding: 10px 0;
    z-index: 100;
}

.nav-dropdown:hover .dropdown-menu-custom {
    display: block;
}

.dropdown-menu-custom li a {
    display: block;
    padding: 10px 20px;
    border-bottom: 1px solid #f9f9f9;
}

/* استایل شاخص لینک پنل مدیریت در دسکتاپ */
.nav-menu li.admin-nav-item a {
    color: var(--gold-primary);
    border: 1px dashed var(--gold-primary);
    padding: 4px 12px;
    border-radius: 6px;
    background-color: #fffdf5;
}

    .nav-menu li.admin-nav-item a:hover {
        background-color: #fcf6e3;
    }

/* --- لوگو و دکمه‌ها --- */
.logo-gold {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #000;
    font-weight: 800;
    font-size: 1.2rem;
}

.logo-icon {
    background: var(--gold-grad);
    color: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    margin-left: 8px;
}

.header-actions-group {
    display: flex;
    gap: 8px;
}

.auth-btn, .cart-btn-lux {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.auth-btn {
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary) !important;
    background: #fff;
}

.auth-text {
    font-size: 0.85rem;
    white-space: nowrap;
}

.cart-btn-lux {
    background: var(--dark-bg);
    color: #fff;
}

.cart-badge-gold {
    background: var(--gold-grad);
    color: #fff;
    padding: 2px 6px;
    border-radius: 50px;
    font-size: 0.7rem;
}

/* --- 📱 استایل‌های اختصاصی موبایل و تبلت --- */
@media (max-width: 991.98px) {
    .bottom-nav {
        display: none !important;
    }

    .header-wrapper {
        gap: 8px;
    }

    .search-container {
        max-width: none;
        flex-grow: 1;
        order: 2;
    }

    .mobile-menu-btn {
        order: 1;
        background: none;
        border: none;
        font-size: 1.8rem;
        color: var(--gold-primary);
        padding: 0;
    }

    .header-actions-group {
        order: 3;
    }

    .auth-text {
        font-size: 11px;
    }

    .auth-btn {
        padding: 6px 8px;
    }

    .search-input-lux {
        padding: 10px 15px 10px 50px;
        font-size: 0.85rem;
    }

    .search-btn-lux {
        width: 38px;
        top: 4px;
        bottom: 4px;
        left: 5px;
    }
}

/* --- 📱 منوی موبایل (سفید و طلایی لوکس) --- */
.mobile-menu {
    display: none;
    background: #ffffff; /* تغییر از مشکی به سفید */
    border-top: 1px solid #f0f0f0;
    border-bottom: 2px solid var(--gold-primary);
    padding: 5px 0 15px 0;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
}

    .mobile-menu.active {
        display: block;
    }

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .mobile-nav-menu li {
        border-bottom: 1px solid #f7f7f7;
        width: 100%;
    }

        .mobile-nav-menu li a {
            display: flex;
            align-items: center;
            padding: 14px 20px;
            color: #444; /* رنگ متن تیره روی پس‌زمینه سفید */
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 600;
            transition: 0.3s;
        }

            .mobile-nav-menu li a i {
                margin-left: 10px;
                color: var(--gold-primary);
                font-size: 1.1rem;
            }

            /* دکمه اختصاصی ادمین در منوی موبایل */
            .mobile-nav-menu li a[href*="Admin"] {
                color: var(--gold-primary);
                background-color: #fffdf2;
                font-weight: 700;
            }

/* --- 🔽 ساختار آکاردئونی دسته‌بندی در موبایل --- */
.mobile-dropdown {
    position: relative;
}

    /* دکمه اصلی دسته‌بندی */
    .mobile-dropdown > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
    }

        /* افزودن فلش جهت باز شدن آکاردئون */
        .mobile-dropdown > a::after {
            content: "\F282"; /* کد آیکون Chevron Down بوت‌استرپ */
            font-family: "bootstrap-icons";
            font-size: 0.8rem;
            transition: transform 0.3s ease;
            color: #888;
        }

    /* انیمیشن چرخش فلش وقتی کلاس فعال روی آن قرار گیرد */
    .mobile-dropdown.active > a::after {
        transform: rotate(180deg);
        color: var(--gold-primary);
    }

    /* زیرمنو (لیست محصولات) در ابتدا کاملاً بسته و پنهان است */
    .mobile-dropdown ul {
        list-style: none;
        margin: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        background: #fafafa;
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1); /* افکت حرکتی نرم */
    }

    /* وقتی کلاس active روی والد باشد، باز می‌شود */
    .mobile-dropdown.active ul {
        max-height: 350px; /* فضای کافی برای آیتم‌های فرزند */
        border-top: 1px solid #f0f0f0;
    }

    .mobile-dropdown ul li {
        border-bottom: 1px solid #f2f2f2;
    }

        .mobile-dropdown ul li a {
            padding: 12px 35px; /* هدایت بیشتر به سمت راست جهت ایجاد تو رفتگی بصری */
            font-size: 0.85rem;
            color: #666;
            font-weight: 500;
        }

            .mobile-dropdown ul li a:hover {
                color: var(--gold-primary);
                background-color: #fffdf5;
            }

/* --- استایل نتایج جستجوی زنده --- */
.live-search-results-container {
    position: absolute;
    top: 105%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 99999;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f5f5f5;
    transition: 0.3s;
    text-decoration: none !important;
}

    .search-result-item:hover {
        background: #fffdf5;
    }

    .search-result-item img {
        width: 45px;
        height: 45px;
        object-fit: cover;
        border-radius: 8px;
        margin-left: 12px;
    }

.search-result-title {
    display: block;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.search-result-price {
    color: #d4af37;
    font-size: 13px;
}

/* --- نوار اعلان --- */
.top-announcement-ultra {
    background: linear-gradient(-45deg, #ffffff, #fff7e0, #fffcf0, #f7eecf);
    background-size: 400% 400%;
    animation: gradientBG 10s ease infinite;
    height: 48px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(184, 134, 11, 0.2);
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.ultra-slider {
    width: 100%;
    height: 48px;
    position: relative;
}

.ultra-track {
    height: 100%;
}

.ultra-slide {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 100%;
    opacity: 0;
    animation: luxuryFade 12s infinite;
}

    .ultra-slide:nth-child(1) {
        animation-delay: 0s;
    }

    .ultra-slide:nth-child(2) {
        animation-delay: 4s;
    }

    .ultra-slide:nth-child(3) {
        animation-delay: 8s;
    }

@keyframes luxuryFade {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    5%, 28% {
        opacity: 1;
        transform: translateY(0);
    }

    33% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 0;
    }
}

.content-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.gold-icon-circle {
    background: linear-gradient(135deg, #bf953f, #b38728);
    color: white;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.85rem;
    box-shadow: 0 3px 8px rgba(179, 135, 40, 0.3);
}

.ultra-text {
    margin: 0;
    font-size: 0.95rem;
    color: #3d3d3d;
    font-weight: 500;
    letter-spacing: -0.2px;
}

.text-glow-gold {
    color: #946b00;
    font-weight: 800;
    position: relative;
    padding: 0 2px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

    .text-glow-gold::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, transparent, #b8860b, transparent);
    }

.announcement-glass-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(255,255,255,0.4), rgba(255,255,255,0));
    pointer-events: none;
}

@media (max-width: 768px) {
    .ultra-text {
        font-size: 0.8rem;
    }

    .gold-icon-circle {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
    }

    .top-announcement-ultra {
        height: 42px;
    }
}
/* Bottom Navigation */

.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 68px;
    display: none;
    background: #fff;
    border-top: 1px solid #ececec;
    box-shadow: 0 -5px 20px rgba(0,0,0,.08);
    z-index: 99999;
    justify-content: space-around;
    align-items: center;
}

    .mobile-bottom-nav a {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        color: #555;
        text-decoration: none;
        font-size: 11px;
        transition: .3s;
    }

        .mobile-bottom-nav a i {
            font-size: 21px;
            margin-bottom: 5px;
        }

        .mobile-bottom-nav a:hover {
            color: #f9bc06;
        }

@media(max-width:991px) {

    .mobile-bottom-nav {
        display: flex;
    }

    body {
        padding-bottom: 75px;
    }
}
.category-sheet {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: none;
}

    .category-sheet.active {
        display: block;
    }

.category-sheet-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(2px);
}

.category-sheet-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 25px 25px 0 0;
    padding: 20px;
    animation: sheetUp .25s;
}

.sheet-handle {
    width: 55px;
    height: 5px;
    background: #ddd;
    margin: auto;
    border-radius: 20px;
    margin-bottom: 15px;
}

.category-sheet-content h5 {
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.category-sheet-content a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    text-decoration: none;
    color: #333;
    font-size: 15px;
    border-radius: 12px;
    transition: .3s;
}

    .category-sheet-content a:hover {
        background: #fff7df;
        color: #f9bc06;
    }

.category-sheet-content i {
    font-size: 22px;
    width: 30px;
    text-align: center;
    color: #f9bc06;
}

@keyframes sheetUp {

    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}
@media(max-width:991px) {

    .header-actions-group .auth-btn {
        display: none;
    }
}
.mobile-bottom-nav a {
    font-size: 10px;
}
    .mobile-bottom-nav a i {
        font-size: 19px;
    }