/* ========================================
   فایل استایل اصلی سایت کیف‌لند
   نسخه Glassmorphism Pro — ارتقا یافته
   ======================================== */

/* ========================================
   ۱. CSS VARIABLES & GLASS SYSTEM
   ======================================== */
:root {
    --bg-primary: #060d1f;
    --bg-secondary: #0d1930;
    --text-primary: #f0f6ff;
    --text-secondary: #94a3b8;
    --border-color: rgba(255,255,255,0.1);

    --primary: #8b5cf6;
    --primary-hover: #7c3aed;
    --primary-glow: rgba(139,92,246,0.35);
    --primary-light: rgba(139,92,246,0.12);
    --danger: #ef4444;
    --danger-light: rgba(239,68,68,0.12);
    --warning: #f59e0b;
    --success: #10b981;
    --info: #8b5cf6;

    /* شیشه‌ای پیشرفته */
    --glass-bg: rgba(255,255,255,0.04);
    --glass-bg-light: rgba(255,255,255,0.08);
    --glass-bg-medium: rgba(255,255,255,0.11);
    --glass-border: rgba(255,255,255,0.12);
    --glass-border-hover: rgba(139,92,246,0.5);
    --glass-blur: 20px;
    --glass-blur-heavy: 32px;
    --glass-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
    --glass-shadow-hover: 0 16px 48px rgba(139,92,246,0.18), inset 0 1px 0 rgba(255,255,255,0.12);
    --glass-shimmer: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 40%, rgba(255,255,255,0.03) 100%);
    --glass-hover: rgba(255,255,255,0.07);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    --header-height: 72px;

    --transition-fast: 0.2s cubic-bezier(0.4,0,0.2,1);
    --transition-normal: 0.35s cubic-bezier(0.4,0,0.2,1);
    --transition-slow: 0.5s cubic-bezier(0.4,0,0.2,1);
    --font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
}

[data-theme="light"] {
    /* پس‌زمینه بنفش-لاوندر روشن */
    --bg-primary: #f3f0ff;
    --bg-secondary: #faf8ff;
    --text-primary: #1e1b4b;
    --text-secondary: #6b7280;
    --border-color: rgba(0,0,0,0.07);

    --primary: #7c3aed;
    --primary-hover: #6d28d9;
    --primary-glow: rgba(124,58,237,0.25);
    --primary-light: rgba(124,58,237,0.1);

    --glass-bg: rgba(255,255,255,0.45);
    --glass-bg-light: rgba(255,255,255,0.65);
    --glass-bg-medium: rgba(255,255,255,0.82);
    --glass-border: rgba(255,255,255,0.75);
    --glass-border-hover: rgba(124,58,237,0.5);
    --glass-blur: 28px;
    --glass-blur-heavy: 40px;
    --glass-shadow: 0 8px 32px rgba(109,40,217,0.1), inset 0 1px 0 rgba(255,255,255,0.95);
    --glass-shadow-hover: 0 16px 48px rgba(109,40,217,0.18), inset 0 1px 0 rgba(255,255,255,0.98);
    --glass-shimmer: linear-gradient(135deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.2) 40%, rgba(255,255,255,0.5) 100%);
    --glass-hover: rgba(255,255,255,0.5);
}

/* ========================================
   ۲. RESET & BASE
   ======================================== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; -webkit-font-smoothing:antialiased; }
html { scroll-behavior:smooth; font-size:16px; }
body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: scroll; /* جلوگیری از جابجایی layout هنگام اسکرول */
    scrollbar-gutter: stable;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* پس‌زمینه زنده چند لایه */
body::before {
    content: '';
    position: fixed;
    inset: -20%;
    width: 140%; height: 140%;
    background:
        radial-gradient(ellipse at 15% 25%, rgba(139,92,246,0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 75%, rgba(59,130,246,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 5%,  rgba(139,92,246,0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(236,72,153,0.08) 0%, transparent 40%);
    z-index: -2;
    pointer-events: none;
    animation: bgShift 25s ease-in-out infinite alternate;
}

/* پس‌زمینه زنده حالت روز */
[data-theme="light"] body::before,
[data-theme="light"]::before {
    background:
        radial-gradient(ellipse at 15% 25%, rgba(139,92,246,0.22) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 75%, rgba(99,102,241,0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 0%,  rgba(236,72,153,0.12) 0%, transparent 45%),
        radial-gradient(ellipse at 20% 90%, rgba(59,130,246,0.15) 0%, transparent 40%),
        linear-gradient(160deg, #c7dffe 0%, #dde8f8 40%, #e8d5f8 100%);
}

/* ذرات شناور */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.15) 0%, transparent 100%),
        radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.1) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 80% 20%, rgba(139,92,246,0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 40% 90%, rgba(59,130,246,0.15) 0%, transparent 100%);
    z-index: -1;
    pointer-events: none;
    animation: particleFloat 30s ease-in-out infinite alternate;
}

@keyframes bgShift {
    0%   { transform: translate(0,0) scale(1); }
    50%  { transform: translate(-2%,-1.5%) scale(1.02); }
    100% { transform: translate(-3%,-2%) rotate(1deg); }
}
@keyframes particleFloat {
    0%   { transform: translate(0,0); }
    100% { transform: translate(-10px,-15px); }
}

a { color:inherit; text-decoration:none; transition:color var(--transition-fast); }
a:hover { color:var(--primary); }
ul,ol { list-style:none; }
img { max-width:100%; height:auto; display:block; }
button,input,select,textarea { font-family:inherit; }

/* اسکرول‌بار */
::-webkit-scrollbar { width:8px; }
::-webkit-scrollbar-track { background:rgba(255,255,255,0.02); }
::-webkit-scrollbar-thumb { background:var(--glass-border); border-radius:var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background:var(--primary); }
::selection { background:var(--primary); color:#fff; }

/* ========================================
   ۳. GLASS UTILITY CLASSES
   ======================================== */
.glass,
.navbar,
.product-card,
.category-card,
.feature-card,
.review-card,
.order-card,
.cart-summary,
.checkout-summary,
.auth-box,
.filter-sidebar,
.modal,
.toast,
footer,
.profile-sidebar,
.checkout-section,
.profile-section,
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}

/* لایه شیمر روی همه کارت‌های شیشه‌ای */
.glass::before,
.product-card::before,
.category-card::before,
.feature-card::before,
.auth-box::before,
.profile-section::before,
.checkout-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--glass-shimmer);
    pointer-events: none;
    z-index: 0;
}

/* خط نور بالایی */
.glass::after,
.product-card::after,
.auth-box::after,
.profile-section::after {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    pointer-events: none;
    z-index: 1;
}

.glass > *, .product-card > *, .category-card > *,
.feature-card > *, .auth-box > *, .profile-section > *,
.checkout-section > * { position: relative; z-index: 2; }

/* ========================================
   ۴. NAVBAR
   ======================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(6,13,31,0.6);
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    border-bottom: 1px solid var(--glass-border);
    transition: all var(--transition-normal);
}

[data-theme="light"] .navbar {
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(32px) saturate(200%);
    -webkit-backdrop-filter: blur(32px) saturate(200%);
    border-bottom: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 4px 24px rgba(109,40,217,0.08), inset 0 1px 0 rgba(255,255,255,0.95);
}

.navbar.scrolled {
    background: rgba(6,13,31,0.85);
    border-bottom-color: rgba(139,92,246,0.2);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(36px) saturate(220%);
    border-bottom-color: rgba(139,92,246,0.25);
    box-shadow: 0 8px 32px rgba(100,130,200,0.18), inset 0 1px 0 rgba(255,255,255,0.95);
}

.logo {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary), #8b5cf6, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 12px var(--primary-glow));
}

.nav-links { display:flex; gap:24px; align-items:center; }
.nav-links a {
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    color: var(--text-secondary);
    font-size: 0.92rem;
}
.nav-links a:hover, .nav-links a.active {
    background: var(--glass-bg-light);
    color: var(--primary);
    box-shadow: 0 0 0 1px var(--glass-border);
}

.nav-actions { display:flex; gap:10px; align-items:center; }

.search-box { position:relative; width:220px; }
.search-box input {
    width: 100%;
    padding: 9px 38px 9px 14px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    transition: all var(--transition-fast);
    font-size: 0.9rem;
}
.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow), 0 0 20px var(--primary-glow);
    background: var(--glass-bg-light);
}
.search-box button {
    position: absolute;
    left: 4px; top: 50%;
    transform: translateY(-50%);
    width: 30px; height: 30px;
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}
.search-box button:hover { color:var(--primary); }

.theme-toggle, .cart-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items:center; justify-content:center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    transition: all var(--transition-fast);
    position: relative;
}
.theme-toggle:hover, .cart-icon:hover {
    background: var(--glass-bg-light);
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.08);
    box-shadow: 0 0 16px var(--primary-glow);
}

#cart-count {
    position: absolute;
    top: -5px; right: -5px;
    background: var(--danger);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 8px rgba(239,68,68,0.5);
    animation: cartPop 0.3s cubic-bezier(0.175,0.885,0.32,1.275);
}
@keyframes cartPop { from { transform:scale(0); } to { transform:scale(1); } }

.mobile-menu-btn { display:none; flex-direction:column; gap:5px; padding:8px; z-index:1002; }
.mobile-menu-btn span { width:24px; height:2px; background:var(--text-primary); border-radius:2px; transition:all var(--transition-fast); }
.mobile-menu-btn.active span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity:0; transform:translateX(-10px); }
.mobile-menu-btn.active span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

.mobile-nav {
    position: fixed;
    top: var(--header-height); left: 0; width: 100%;
    background: rgba(6,13,31,0.92);
    backdrop-filter: blur(28px);
    border-bottom: 1px solid var(--glass-border);
    padding: 20px 5%;
    transform: translateY(-100%);
    opacity: 0; visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 999;
}
[data-theme="light"] .mobile-nav {
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(32px) saturate(200%);
    border-bottom: 1px solid rgba(255,255,255,0.7);
}
.mobile-nav.active { transform:translateY(0); opacity:1; visibility:visible; }
.mobile-nav a { display:block; padding:14px 0; border-bottom:1px solid var(--glass-border); font-weight:500; color:var(--text-secondary); }
.mobile-nav a:last-child { border-bottom:none; }
.mobile-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.6); backdrop-filter:blur(4px); z-index:998; }
.mobile-overlay.active { display:block; }

/* ========================================
   ۵. HERO
   ======================================== */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 5% 60px;
    min-height: 95vh;
    position: relative;
    gap: 40px;
}

.hero-content {
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--glass-blur-heavy)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--glass-blur-heavy)) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 48px;
    max-width: 540px;
    box-shadow: var(--glass-shadow), 0 0 60px rgba(139,92,246,0.08);
    position: relative;
    overflow: hidden;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
}

.hero-content::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, var(--primary-glow), transparent 70%);
    filter: blur(30px);
    z-index: 0;
}

.badge-new {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #fff;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 22px;
    box-shadow: 0 4px 16px var(--primary-glow), 0 0 30px var(--primary-glow);
    position: relative; z-index: 2;
    letter-spacing: 0.3px;
}

.hero h1 {
    font-size: 3.4rem;
    line-height: 1.15;
    margin-bottom: 18px;
    background: linear-gradient(160deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative; z-index: 2;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 30px;
    line-height: 1.75;
    position: relative; z-index: 2;
}

.hero-btns { display:flex; gap:14px; flex-wrap:wrap; position:relative; z-index:2; }

.hero-visual { position:relative; flex:1; display:flex; justify-content:center; align-items:center; }

.circle-bg {
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(139,92,246,0.2) 0%, rgba(59,130,246,0.1) 40%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    z-index: -1;
    filter: blur(50px);
    animation: pulse 5s ease-in-out infinite;
}
@keyframes pulse {
    0%,100% { transform:translate(-50%,-50%) scale(1); opacity:1; }
    50%      { transform:translate(-50%,-50%) scale(1.1); opacity:0.7; }
}

.floating-img {
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius-xl);
    box-shadow: var(--glass-shadow), 0 0 60px rgba(139,92,246,0.15);
    border: 1px solid var(--glass-border);
    animation: float 7s ease-in-out infinite;
    will-change: transform;
}
.hero-visual { overflow: hidden; padding: 10px; }
@keyframes float {
    0%,100% { transform:translateY(0) rotate(0deg); }
    33%      { transform:translateY(-18px) rotate(0.8deg); }
    66%      { transform:translateY(-8px) rotate(-0.5deg); }
}

/* ========================================
   ۶. BUTTONS
   ======================================== */
.btn {
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}
.btn:hover::before { opacity: 1; }
.btn:active { transform: scale(0.97); }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #fff;
    border: none;
    box-shadow: 0 4px 20px var(--primary-glow), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary:hover {
    box-shadow: 0 8px 30px var(--primary-glow), 0 0 40px var(--primary-glow);
    transform: translateY(-2px);
    color: #fff;
}

.btn-outline {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-color: var(--primary);
    color: var(--primary);
}
.btn-outline:hover { background:var(--primary); color:#fff; box-shadow:0 6px 20px var(--primary-glow); }

.btn-danger { background:linear-gradient(135deg, var(--danger), #dc2626); color:#fff; box-shadow:0 4px 16px rgba(239,68,68,0.3); }
.btn-danger:hover { box-shadow:0 8px 24px rgba(239,68,68,0.4); transform:translateY(-2px); }
.btn-success { background:linear-gradient(135deg, var(--success), #15803d); color:#fff; }
.btn-ghost {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    backdrop-filter: blur(12px);
}
.btn-ghost:hover { background:var(--glass-bg-light); border-color:var(--primary); color:var(--primary); }

.btn-sm { padding:8px 16px; font-size:0.85rem; border-radius:var(--radius-sm); }
.btn-lg { padding:16px 36px; font-size:1.05rem; border-radius:var(--radius-lg); }
.btn-block { width:100%; }
.btn:disabled { opacity:0.4; cursor:not-allowed; transform:none !important; box-shadow:none !important; }

/* ========================================
   ۷. PRODUCT & CATEGORY CARDS
   ======================================== */
.products-section, .categories-section, .features-section, .reviews-section, .related-products { padding:60px 5%; }

.section-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:36px; flex-wrap:wrap; gap:20px; }
.section-title { font-size:2.2rem; font-weight:800; }
.highlight { color:var(--primary); }

.category-grid, .feature-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(200px,1fr)); gap:20px; }

.category-card, .feature-card {
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    transition: all var(--transition-normal);
    cursor: pointer;
}
.category-card:hover, .feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--glass-shadow-hover);
    border-color: var(--glass-border-hover);
    background: var(--glass-bg-light);
}

.cat-icon, .feature-card i {
    width: 72px; height: 72px;
    background: var(--glass-bg-light);
    border-radius: 50%;
    display: flex; align-items:center; justify-content:center;
    margin: 0 auto 18px;
    font-size: 1.8rem;
    color: var(--primary);
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 20px var(--primary-glow);
    transition: all var(--transition-normal);
}
.category-card:hover .cat-icon,
.feature-card:hover i {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px var(--primary-glow);
    background: var(--primary-light);
}

.product-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px,1fr)); gap:24px; }

.product-card {
    border-radius: var(--radius-lg);
    padding: 0;
    transition: all var(--transition-normal);
    overflow: hidden;
}
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--glass-shadow-hover);
    border-color: var(--glass-border-hover);
}

.product-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    transition: transform var(--transition-slow);
    display: block;
}
.product-card:hover img { transform: scale(1.06); }

.product-info { padding: 16px; }

.product-category {
    font-size: 0.72rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    font-weight: 600;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 6px 0 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-title a:hover { color:var(--primary); }

.product-price { display:flex; justify-content:space-between; align-items:center; }
.price { font-size:1.1rem; font-weight:700; color:var(--primary); }
.old-price { text-decoration:line-through; color:var(--text-secondary); font-size:0.85rem; margin-right:8px; }

.btn-add-cart {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    display: flex; align-items:center; justify-content:center;
    transition: all var(--transition-fast);
    cursor: pointer;
}
.btn-add-cart:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 4px 14px var(--primary-glow);
}

/* ========================================
   ۸. FILTERS & PAGINATION
   ======================================== */
.products-page { padding:40px 5%; min-height:85vh; }
.page-header { text-align:center; margin-bottom:36px; }
.page-header h1 { font-size:2.4rem; margin-bottom:10px; }

.products-layout { display:grid; grid-template-columns:280px 1fr; gap:28px; }

.filter-sidebar {
    border-radius: var(--radius-lg);
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 90px;
}
.filter-section { margin-bottom:28px; padding-bottom:28px; border-bottom:1px solid var(--glass-border); }
.filter-section h3 { font-size:1.05rem; margin-bottom:18px; display:flex; align-items:center; gap:8px; }
.filter-form { display:flex; flex-direction:column; gap:16px; }
.filter-group { display:flex; flex-direction:column; gap:6px; }
.filter-group label { font-size:0.9rem; color:var(--text-secondary); }
.filter-group input, .filter-group select {
    padding: 10px 14px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}
.filter-group input:focus, .filter-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: var(--glass-bg-light);
}
.category-list li { margin-bottom:6px; }
.category-list a {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}
.category-list a:hover, .category-list a.active {
    background: var(--glass-bg-light);
    color: var(--primary);
    border: 1px solid var(--glass-border);
}
.category-list span { background:var(--glass-bg); padding:2px 8px; border-radius:var(--radius-full); font-size:0.75rem; }

.pagination { display:flex; justify-content:center; gap:10px; margin-top:40px; flex-wrap:wrap; }
.pagination .btn { min-width:42px; background:var(--glass-bg); border:1px solid var(--glass-border); }
.pagination .btn.active { background:var(--primary); border-color:var(--primary); color:#fff; box-shadow:0 4px 14px var(--primary-glow); }

/* ========================================
   ۹. PRODUCT DETAIL
   ======================================== */
.product-detail-page { padding:30px 5%; }
.breadcrumb { display:flex; gap:8px; align-items:center; color:var(--text-secondary); font-size:0.9rem; padding-bottom:20px; flex-wrap:wrap; }
.product-detail-layout { display:grid; grid-template-columns:1fr 1fr; gap:40px; padding:20px 0; }
.product-gallery .main-image { border-radius:var(--radius-lg); padding:10px; border:1px solid var(--glass-border); background:var(--glass-bg); }
.product-gallery .main-image img { width:100%; border-radius:var(--radius-md); }
.product-info-detail { padding:20px 0; }
.product-info-detail h1 { font-size:2rem; margin:16px 0 12px; }
.product-rating-large { display:flex; align-items:center; gap:8px; margin-bottom:20px; color:var(--warning); }
.product-price-large { display:flex; align-items:center; gap:12px; margin-bottom:20px; font-size:1.6rem; font-weight:800; color:var(--primary); }
.discount-badge { background:var(--danger); color:#fff; padding:4px 10px; border-radius:var(--radius-full); font-size:0.8rem; font-weight:600; }
.product-meta, .product-features, .review-form, .checkout-section, .profile-section { border-radius:var(--radius-lg); padding:22px; margin-bottom:24px; }
.product-meta p, .product-features li, .form-group { margin-bottom:12px; }
.product-features ul { list-style:none; }
.product-features li { display:flex; align-items:center; gap:10px; padding:6px 0; }
.product-features li i { color:var(--success); }
.quantity-selector { display:inline-flex; align-items:center; border-radius:var(--radius-md); overflow:hidden; border:1px solid var(--glass-border); }
.quantity-selector button { width:40px; height:40px; background:var(--glass-bg); font-size:1.2rem; transition:background var(--transition-fast); }
.quantity-selector button:hover { background:var(--glass-bg-medium); }
.quantity-selector input { width:50px; height:40px; text-align:center; background:var(--glass-bg-light); border:none; color:var(--text-primary); }
.reviews-list { display:flex; flex-direction:column; gap:16px; margin-bottom:30px; }
.review-header { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:12px; }
.reviewer-info { display:flex; align-items:center; gap:12px; }
.reviewer-avatar { width:44px; height:44px; background:var(--glass-bg-light); border-radius:50%; display:flex; align-items:center; justify-content:center; border:1px solid var(--glass-border); }
.star-rating { display:flex; flex-direction:row-reverse; justify-content:flex-end; gap:4px; margin:10px 0; }
.star-rating input { display:none; }
.star-rating label { font-size:1.8rem; color:var(--text-secondary); cursor:pointer; transition:color 0.2s; }
.star-rating input:checked ~ label, .star-rating label:hover, .star-rating label:hover ~ label { color:#fbbf24; }

/* ========================================
   ۱۰. CART & CHECKOUT
   ======================================== */
.cart-page, .checkout-page { padding:40px 5%; min-height:85vh; }
.cart-page h1, .checkout-page h1 { font-size:2rem; margin-bottom:28px; }
.cart-layout, .checkout-layout { display:grid; grid-template-columns:1fr 390px; gap:24px; }
.cart-summary, .checkout-summary { border-radius:var(--radius-lg); padding:24px; height:fit-content; position:sticky; top:90px; }
.cart-summary h3, .checkout-summary h3 { font-size:1.3rem; margin-bottom:18px; padding-bottom:12px; border-bottom:1px solid var(--glass-border); }
.cart-table th { padding:14px; text-align:right; font-weight:600; color:var(--text-secondary); border-bottom:1px solid var(--glass-border); background:var(--glass-bg); }
.cart-table td { padding:16px 14px; border-bottom:1px solid var(--glass-border); vertical-align:middle; }
.cart-product { display:flex; align-items:center; gap:14px; }
.cart-product img { width:70px; height:70px; object-fit:cover; border-radius:var(--radius-md); border:1px solid var(--glass-border); }
.cart-actions { padding:16px 0; display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.summary-row { display:flex; justify-content:space-between; padding:12px 0; border-bottom:1px dashed var(--glass-border); }
.summary-row:last-child { border-bottom:none; }
.summary-row.total { font-size:1.2rem; font-weight:700; border-top:2px solid var(--glass-border); margin-top:14px; padding-top:14px; }
.empty-cart { text-align:center; padding:60px 20px; }
.empty-cart i { font-size:5rem; color:var(--text-secondary); margin-bottom:20px; }
.form-row { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.payment-methods { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; margin:16px 0; }
.payment-option { cursor:pointer; }
.payment-option input { display:none; }
.payment-card { padding:18px; border-radius:var(--radius-md); text-align:center; transition:all var(--transition-fast); background:var(--glass-bg); border:2px solid transparent; }
.payment-option input:checked + .payment-card { border-color:var(--primary); background:var(--glass-bg-light); box-shadow:0 0 0 2px var(--primary-glow), 0 0 24px var(--primary-glow); }
.payment-card i { font-size:1.6rem; color:var(--primary); margin-bottom:8px; display:block; }
.order-items { max-height:250px; overflow-y:auto; margin-bottom:16px; }
.order-item { display:flex; justify-content:space-between; padding:12px 0; border-bottom:1px solid var(--glass-border); }
.secure-checkout { text-align:center; padding:12px; background:rgba(139,92,246,0.08); border-radius:var(--radius-md); margin-top:16px; color:var(--success); display:flex; align-items:center; justify-content:center; gap:8px; border:1px dashed var(--success); }
.free-shipping-progress { margin:16px 0; padding:14px; background:rgba(139,92,246,0.06); border-radius:var(--radius-md); border:1px solid var(--glass-border); }
.progress-bar { width:100%; height:6px; background:var(--glass-bg); border-radius:var(--radius-full); overflow:hidden; margin-top:8px; }
.progress-fill { height:100%; background:linear-gradient(90deg, var(--primary), #8b5cf6); border-radius:var(--radius-full); transition:width 0.4s ease; box-shadow:0 0 10px var(--primary-glow); }
.trust-badges { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:16px; padding-top:16px; border-top:1px solid var(--glass-border); }
.badge-item { text-align:center; }
.badge-item i { font-size:1.4rem; color:var(--primary); margin-bottom:6px; display:block; }
.badge-item span { font-size:0.8rem; color:var(--text-secondary); }

/* ========================================
   ۱۱. ORDER SUCCESS
   ======================================== */
.order-success-page { padding:60px 5%; min-height:85vh; display:flex; align-items:center; justify-content:center; }
.success-container { border-radius:var(--radius-xl); padding:44px; max-width:620px; width:100%; text-align:center; }
.success-icon { font-size:5rem; color:var(--success); margin-bottom:18px; animation:popIn 0.6s cubic-bezier(0.175,0.885,0.32,1.275); filter:drop-shadow(0 0 20px var(--primary-glow)); }
@keyframes popIn { 0%{transform:scale(0) rotate(-20deg);opacity:0;} 100%{transform:scale(1) rotate(0);opacity:1;} }
.success-container h1 { font-size:2rem; margin-bottom:12px; }
.success-message { color:var(--text-secondary); margin-bottom:24px; font-size:1rem; }
.order-info-box { background:var(--glass-bg-light); border-radius:var(--radius-lg); padding:20px; margin-bottom:24px; text-align:right; border:1px solid var(--glass-border); }
.info-row { display:flex; justify-content:space-between; padding:10px 0; border-bottom:1px solid var(--glass-border); }
.info-row:last-child { border-bottom:none; }
.info-row span { color:var(--text-secondary); }
.info-row strong { color:var(--text-primary); }
.success-actions { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.payment-alert { background:rgba(245,158,11,0.1); border:1px solid var(--warning); color:var(--warning); padding:14px; border-radius:var(--radius-md); display:flex; align-items:center; gap:10px; text-align:right; }

/* ========================================
   ۱۲. AUTH & PROFILE
   ======================================== */
.auth-section { min-height:85vh; display:flex; align-items:center; justify-content:center; padding:40px 5%; }
.auth-box { border-radius:var(--radius-xl); padding:40px; max-width:460px; width:100%; }
.auth-box h2 { text-align:center; margin-bottom:20px; font-size:1.8rem; }
.auth-form { display:flex; flex-direction:column; gap:16px; }
.form-group label { font-size:0.9rem; color:var(--text-secondary); margin-bottom:4px; display:block; }
.form-group input, .form-group select, .form-group textarea {
    width:100%;
    padding:12px 14px;
    background:var(--glass-bg);
    border:1px solid var(--glass-border);
    border-radius:var(--radius-md);
    color:var(--text-primary);
    transition:all var(--transition-fast);
}
.form-group textarea { resize:vertical; min-height:100px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color:var(--primary);
    box-shadow:0 0 0 3px var(--primary-glow), 0 0 20px rgba(139,92,246,0.1);
    background:var(--glass-bg-light);
    outline:none;
}
.form-group.error input { border-color:var(--danger); }
.auth-divider { text-align:center; margin:20px 0; position:relative; }
.auth-divider::before { content:''; position:absolute; top:50%; left:0; right:0; height:1px; background:var(--glass-border); }
.auth-divider span { background:var(--bg-primary); padding:0 12px; color:var(--text-secondary); position:relative; font-size:0.9rem; }
.social-login { margin-bottom:20px; }
.auth-link { text-align:center; margin-top:16px; color:var(--text-secondary); }
.auth-link a { color:var(--primary); font-weight:600; }

/* پروفایل */
.profile-page { padding:32px 5%; min-height:85vh; }
.profile-layout { display:grid; grid-template-columns:280px 1fr; gap:24px; align-items:start; }
.profile-sidebar { border-radius:var(--radius-lg); overflow:hidden; height:fit-content; position:sticky; top:90px; }
.profile-user-card {
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    padding: 28px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.profile-user-card::before { content:''; position:absolute; top:-30px; right:-30px; width:120px; height:120px; background:rgba(255,255,255,0.1); border-radius:50%; }
.profile-user-card::after  { content:''; position:absolute; bottom:-20px; left:-20px; width:80px; height:80px; background:rgba(255,255,255,0.07); border-radius:50%; }
.profile-avatar { width:84px; height:84px; background:rgba(255,255,255,0.2); border-radius:50%; display:flex; align-items:center; justify-content:center; margin:0 auto 14px; font-size:2.2rem; color:#fff; border:3px solid rgba(255,255,255,0.4); position:relative; z-index:1; box-shadow:0 8px 24px rgba(0,0,0,0.2); }
.profile-user-card h3 { color:#fff; font-size:1.1rem; font-weight:700; margin-bottom:4px; position:relative; z-index:1; }
.profile-user-card p  { color:rgba(255,255,255,0.75); font-size:0.82rem; position:relative; z-index:1; }
.profile-user-badge { display:inline-flex; align-items:center; gap:4px; background:rgba(255,255,255,0.18); border:1px solid rgba(255,255,255,0.3); color:#fff; padding:3px 10px; border-radius:20px; font-size:0.75rem; font-weight:600; margin-top:8px; position:relative; z-index:1; }
.profile-nav { display:flex; flex-direction:column; padding:12px; gap:2px; }
.profile-nav a { padding:10px 14px; border-radius:var(--radius-sm); color:var(--text-secondary); transition:all var(--transition-fast); display:flex; align-items:center; gap:10px; font-size:0.88rem; font-weight:500; text-decoration:none; position:relative; }
.profile-nav a i { width:18px; text-align:center; flex-shrink:0; }
.profile-nav a:hover { background:var(--glass-bg-light); color:var(--primary); padding-right:18px; }
.profile-nav a.active { background:linear-gradient(135deg, rgba(139,92,246,0.15), rgba(139,92,246,0.05)); color:var(--primary); border:1px solid rgba(139,92,246,0.25); font-weight:600; }
.profile-nav a.active::before { content:''; position:absolute; right:0; top:20%; bottom:20%; width:3px; background:var(--primary); border-radius:0 3px 3px 0; }
.profile-nav .nav-divider { height:1px; background:var(--glass-border); margin:8px 0; }
.profile-nav .nav-badge { background:var(--primary); color:#fff; font-size:10px; padding:1px 6px; border-radius:10px; margin-right:auto; }
.profile-main { display:flex; flex-direction:column; gap:20px; }
.profile-section { background:var(--glass-bg); backdrop-filter:blur(20px); border:1px solid var(--glass-border); border-radius:var(--radius-lg); padding:24px; }
.profile-section h2 { display:flex; align-items:center; gap:10px; font-size:1.1rem; margin-bottom:20px; padding-bottom:14px; border-bottom:1px solid var(--glass-border); }
.profile-section h2 i { color:var(--primary); }
.orders-list { display:flex; flex-direction:column; gap:14px; }
.order-card { background:var(--glass-bg-light); border:1px solid var(--glass-border); border-radius:var(--radius-md); overflow:hidden; transition:all var(--transition-fast); }
.order-card:hover { border-color:rgba(139,92,246,0.3); box-shadow:0 4px 20px rgba(139,92,246,0.12); transform:translateY(-1px); }
.order-header { display:flex; align-items:center; justify-content:space-between; padding:14px 18px; border-bottom:1px solid var(--glass-border); flex-wrap:wrap; gap:10px; }
.order-number-tag { display:flex; align-items:center; gap:8px; }
.order-number-tag .order-num { font-weight:700; font-size:0.95rem; font-family:monospace; }
.order-number-tag .order-date { font-size:0.78rem; color:var(--text-secondary); background:var(--glass-bg); padding:2px 8px; border-radius:6px; border:1px solid var(--glass-border); }
.order-body { padding:14px 18px; display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.order-products { display:flex; flex-direction:column; gap:4px; flex:1; }
.order-product-item { display:flex; align-items:center; gap:8px; font-size:0.85rem; color:var(--text-secondary); }
.order-product-item::before { content:'•'; color:var(--primary); font-size:1rem; }
.order-footer { padding:10px 18px; background:rgba(0,0,0,0.06); display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.order-price-tag { font-weight:700; font-size:1.05rem; color:var(--primary); }
.order-actions { display:flex; gap:6px; }
.order-status { display:inline-flex; align-items:center; gap:5px; padding:4px 10px; border-radius:20px; font-size:0.75rem; font-weight:700; white-space:nowrap; }
.order-status::before { content:''; width:6px; height:6px; border-radius:50%; background:currentColor; animation:pulseDot 2s infinite; }
@keyframes pulseDot { 0%,100%{opacity:1;} 50%{opacity:0.3;} }
.status-pending    { background:rgba(245,158,11,0.12); color:#D97706; }
.status-processing { background:rgba(59,130,246,0.12); color:#2563EB; }
.status-shipped    { background:rgba(139,92,246,0.12); color:#7C3AED; }
.status-delivered  { background:rgba(139,92,246,0.12); color:#6d28d9; }
.status-cancelled  { background:rgba(239,68,68,0.12); color:#DC2626; }

/* ========================================
   ۱۳. SEARCH
   ======================================== */
.search-page { padding:40px 5%; min-height:85vh; text-align:center; }
.search-page h1 { margin-bottom:28px; font-size:2.2rem; }
.search-form-large { max-width:650px; margin:0 auto 36px; }
.search-input-large { display:flex; background:var(--glass-bg-light); backdrop-filter:blur(var(--glass-blur)); border:1px solid var(--glass-border); border-radius:var(--radius-full); overflow:hidden; transition:all var(--transition-fast); }
.search-input-large:focus-within { border-color:var(--primary); box-shadow:0 0 0 3px var(--primary-glow), 0 0 30px rgba(139,92,246,0.15); }
.search-input-large input { flex:1; padding:14px 20px; background:transparent; color:var(--text-primary); }
.search-input-large button { padding:14px 28px; background:linear-gradient(135deg, var(--primary), var(--primary-hover)); color:#fff; font-size:1.1rem; }
.search-input-large button:hover { filter:brightness(1.1); }
.no-results { max-width:600px; margin:0 auto; }
.no-results i { font-size:4rem; color:var(--text-secondary); margin-bottom:16px; }
.search-suggestions { text-align:right; background:var(--glass-bg); padding:18px; border-radius:var(--radius-lg); margin:24px auto 0; border:1px solid var(--glass-border); max-width:600px; }
.search-suggestions ul { padding-right:20px; list-style:disc; color:var(--text-secondary); }
.search-suggestions li { margin-bottom:6px; }

/* ========================================
   ۱۴. FOOTER
   ======================================== */
footer {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 50px 5% 24px;
    margin-top: 60px;
    border-top: 1px solid var(--glass-border);
}
.footer-content { display:grid; grid-template-columns:repeat(auto-fit, minmax(250px,1fr)); gap:32px; margin-bottom:32px; }
.footer-info h3 { font-size:1.4rem; margin-bottom:12px; }
.footer-info p { margin-bottom:8px; color:var(--text-secondary); display:flex; align-items:center; gap:8px; }
.footer-links h4, .footer-social h4 { margin-bottom:16px; color:var(--text-primary); }
.footer-links a { display:block; color:var(--text-secondary); margin-bottom:10px; transition:all var(--transition-fast); }
.footer-links a:hover { color:var(--primary); transform:translateX(-4px); }
.socials { display:flex; gap:12px; }
.socials a { width:40px; height:40px; display:flex; align-items:center; justify-content:center; background:var(--glass-bg); border:1px solid var(--glass-border); border-radius:50%; transition:all var(--transition-fast); }
.socials a:hover { background:var(--primary); border-color:var(--primary); color:#fff; transform:translateY(-3px); box-shadow:0 6px 20px var(--primary-glow); }
.footer-bottom { text-align:center; padding-top:20px; border-top:1px solid var(--glass-border); color:var(--text-secondary); font-size:0.9rem; }

.scroll-to-top { position:fixed; bottom:24px; right:24px; width:46px; height:46px; background:var(--glass-bg-light); backdrop-filter:blur(16px); border:1px solid var(--glass-border); border-radius:50%; display:flex; align-items:center; justify-content:center; color:var(--text-primary); opacity:0; visibility:hidden; transform:translateY(20px); transition:all var(--transition-normal); z-index:999; box-shadow:var(--glass-shadow); }
.scroll-to-top.show { opacity:1; visibility:visible; transform:translateY(0); }
.scroll-to-top:hover { background:var(--primary); color:#fff; border-color:var(--primary); box-shadow:0 6px 20px var(--primary-glow); }

/* ========================================
   ۱۵. ALERTS, BADGES, TOAST
   ======================================== */
.alert { padding:14px 18px; border-radius:var(--radius-md); margin-bottom:20px; display:flex; align-items:center; gap:10px; background:var(--glass-bg-light); backdrop-filter:blur(16px); border:1px solid var(--glass-border); animation:slideIn 0.3s ease; }
@keyframes slideIn { from{opacity:0;transform:translateY(-10px);} to{opacity:1;transform:translateY(0);} }
.alert-success { border-color:var(--success); color:var(--success); background:rgba(139,92,246,0.08); }
.alert-danger  { border-color:var(--danger); color:var(--danger); background:rgba(239,68,68,0.08); }
.alert-warning { border-color:var(--warning); color:var(--warning); background:rgba(245,158,11,0.08); }
.alert-info    { border-color:var(--info); color:var(--info); background:rgba(59,130,246,0.08); }

.badge { padding:4px 10px; border-radius:var(--radius-full); font-size:0.75rem; font-weight:600; display:inline-flex; align-items:center; gap:4px; background:var(--glass-bg); border:1px solid var(--glass-border); }
.badge-success { border-color:var(--success); color:var(--success); }
.badge-warning { border-color:var(--warning); color:var(--warning); }
.badge-danger  { border-color:var(--danger); color:var(--danger); }
.badge-info    { border-color:var(--info); color:var(--info); }

.toast-container { position:fixed; bottom:20px; left:50%; transform:translateX(-50%); z-index:10001; display:flex; flex-direction:column; gap:10px; pointer-events:none; }
.toast { pointer-events:auto; background:var(--glass-bg-medium); backdrop-filter:blur(24px) saturate(180%); border:1px solid var(--glass-border); padding:14px 20px; border-radius:var(--radius-md); display:flex; align-items:center; gap:10px; min-width:280px; max-width:420px; box-shadow:var(--glass-shadow); opacity:0; transform:translateY(20px) scale(0.95); transition:all 0.3s cubic-bezier(0.175,0.885,0.32,1.275); }
.toast.show { opacity:1; transform:translateY(0) scale(1); }
.toast i { font-size:1.2rem; }

/* ========================================
   ۱۶. MODAL
   ======================================== */
.modal {
    position: fixed; inset: 0; z-index: 2000;
    display: none; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    padding: 20px;
}
.modal.active { display:flex; }
.modal-dialog {
    background: var(--glass-bg-medium);
    backdrop-filter: blur(var(--glass-blur-heavy)) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    width: 100%; max-width: 560px;
    max-height: 90vh; overflow-y: auto;
    box-shadow: var(--glass-shadow), 0 0 60px rgba(139,92,246,0.1);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s ease;
}
.modal.active .modal-dialog { transform:scale(1) translateY(0); }
.modal-header { padding:20px; border-bottom:1px solid var(--glass-border); display:flex; align-items:center; justify-content:space-between; }
.modal-title { margin:0; font-size:18px; font-weight:700; }
.modal-close { width:36px; height:36px; border-radius:50%; border:none; background:var(--glass-bg); cursor:pointer; font-size:18px; color:var(--text-primary); display:flex; align-items:center; justify-content:center; transition:all var(--transition-fast); }
.modal-close:hover { background:var(--danger-light); color:var(--danger); }
.modal-body { padding:24px; }
.modal-footer { padding:16px 20px; border-top:1px solid var(--glass-border); display:flex; justify-content:flex-end; gap:10px; }

/* ========================================
   ۱۷. ANIMATIONS & LOADING
   ======================================== */
@keyframes fadeIn { from{opacity:0;transform:translateY(15px);} to{opacity:1;transform:translateY(0);} }
.scrolled { animation:fadeIn 0.5s ease both; }
.loading-spinner { width:24px; height:24px; border:3px solid var(--glass-border); border-top-color:var(--primary); border-radius:50%; animation:spin 0.8s linear infinite; }
@keyframes spin { to{transform:rotate(360deg);} }
.skeleton { background:linear-gradient(90deg, var(--glass-bg) 25%, var(--glass-bg-light) 50%, var(--glass-bg) 75%); background-size:200% 100%; animation:shimmer 1.5s infinite; border-radius:var(--radius-md); }
@keyframes shimmer { 0%{background-position:200% 0;} 100%{background-position:-200% 0;} }

/* افکت گلو روی hover المان‌های مهم */
.product-card:hover,
.category-card:hover,
.feature-card:hover {
    box-shadow: var(--glass-shadow-hover), 0 0 0 1px var(--glass-border-hover);
}

/* ========================================
   ۱۸. RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .hero { flex-direction:column; padding-top:80px; text-align:center; }
    .hero-content { max-width:100%; }
    .hero-visual { width:100%; }
    .floating-img { max-width:400px; }
    .products-layout { grid-template-columns:1fr; }
    .filter-sidebar { position:static; }
    .cart-layout, .checkout-layout { grid-template-columns:1fr; }
    .cart-summary, .checkout-summary { position:static; }
    .product-detail-layout { grid-template-columns:1fr; }
    .profile-layout { grid-template-columns:1fr; }
    .profile-sidebar { position:static; }
    .nav-links { display:none; }
    .mobile-menu-btn { display:flex; }
}

@media (max-width: 768px) {
    html { font-size:15px; }
    .navbar { padding:0 4%; }
    .hero h1 { font-size:2.4rem; }
    .hero-content { padding:28px; }
    .hero-btns { justify-content:center; }
    .product-grid { grid-template-columns:repeat(2,1fr); gap:16px; }
    .product-card img { height:180px; }
    .category-grid, .feature-grid { grid-template-columns:repeat(2,1fr); }
    .footer-content { grid-template-columns:1fr; text-align:center; }
    .form-row { grid-template-columns:1fr; }
    .payment-methods { grid-template-columns:1fr; }
    .success-actions { flex-direction:column; }
    :root { --glass-blur:14px; --glass-blur-heavy:20px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size:2rem; }
    .hero-content { padding:20px; }
    .product-grid { grid-template-columns:1fr; }
    .product-card img { height:220px; }
    .category-grid, .feature-grid { grid-template-columns:1fr; }
    .theme-toggle, .cart-icon { width:36px; height:36px; }
    .search-box { width:100%; order:3; margin-top:8px; }
    .toast-container { width:90%; left:5%; transform:none; }
}

/* ========================================
   LIGHT THEME — استایل‌های اضافی شیشه‌ای
   ======================================== */

/* کارت‌ها در حالت روز */
[data-theme="light"] .product-card,
[data-theme="light"] .category-card,
[data-theme="light"] .feature-card,
[data-theme="light"] .review-card,
[data-theme="light"] .glass,
[data-theme="light"] .glass-panel,
[data-theme="light"] .filter-sidebar,
[data-theme="light"] .cart-summary,
[data-theme="light"] .checkout-summary,
[data-theme="light"] .auth-box,
[data-theme="light"] .profile-section,
[data-theme="light"] .checkout-section {
    background: rgba(255,255,255,0.35);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.75);
    box-shadow: 0 8px 32px rgba(100,130,200,0.12),
                inset 0 1px 0 rgba(255,255,255,0.95),
                inset 0 -1px 0 rgba(255,255,255,0.4);
}

[data-theme="light"] .product-card:hover,
[data-theme="light"] .category-card:hover,
[data-theme="light"] .feature-card:hover {
    background: rgba(255,255,255,0.55);
    box-shadow: 0 16px 48px rgba(5,150,105,0.15),
                inset 0 1px 0 rgba(255,255,255,0.98);
    border-color: rgba(139,92,246,0.4);
}

/* shimmer روشن‌تر در حالت روز */
[data-theme="light"] .product-card::before,
[data-theme="light"] .category-card::before,
[data-theme="light"] .feature-card::before,
[data-theme="light"] .auth-box::before,
[data-theme="light"] .profile-section::before,
[data-theme="light"] .checkout-section::before {
    background: linear-gradient(135deg,
        rgba(255,255,255,0.8) 0%,
        rgba(255,255,255,0.1) 40%,
        rgba(255,255,255,0.5) 100%);
}

/* خط نور بالایی پررنگ‌تر */
[data-theme="light"] .product-card::after,
[data-theme="light"] .auth-box::after,
[data-theme="light"] .profile-section::after {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,1), transparent);
}

/* فرم‌ها در حالت روز */
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea,
[data-theme="light"] .filter-group input,
[data-theme="light"] .filter-group select,
[data-theme="light"] .search-box input {
    background: rgba(255,255,255,0.5);
    border-color: rgba(255,255,255,0.8);
    color: #0f172a;
}
[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group select:focus,
[data-theme="light"] .form-group textarea:focus,
[data-theme="light"] .filter-group input:focus,
[data-theme="light"] .search-box input:focus {
    background: rgba(255,255,255,0.75);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow), 0 0 20px rgba(139,92,246,0.08);
}

/* دکمه‌ها در حالت روز */
[data-theme="light"] .btn-ghost {
    background: rgba(255,255,255,0.45);
    border-color: rgba(255,255,255,0.75);
    color: #0f172a;
}
[data-theme="light"] .btn-ghost:hover {
    background: rgba(255,255,255,0.7);
    border-color: var(--primary);
}
[data-theme="light"] .btn-outline {
    background: rgba(255,255,255,0.35);
    border-color: var(--primary);
}

/* profile sidebar در حالت روز */
[data-theme="light"] .profile-sidebar {
    background: rgba(255,255,255,0.35);
    backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.75);
    box-shadow: 0 8px 32px rgba(100,130,200,0.12), inset 0 1px 0 rgba(255,255,255,0.95);
}
[data-theme="light"] .profile-nav a:hover {
    background: rgba(255,255,255,0.5);
}
[data-theme="light"] .profile-nav a.active {
    background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(139,92,246,0.04));
    border-color: rgba(139,92,246,0.3);
}

/* order card در حالت روز */
[data-theme="light"] .order-card {
    background: rgba(255,255,255,0.4);
    border-color: rgba(255,255,255,0.7);
}
[data-theme="light"] .order-card:hover {
    background: rgba(255,255,255,0.6);
    border-color: rgba(139,92,246,0.3);
}
[data-theme="light"] .order-footer {
    background: rgba(255,255,255,0.3);
}

/* footer در حالت روز */
[data-theme="light"] footer {
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(28px) saturate(180%);
    border-top: 1px solid rgba(255,255,255,0.75);
}

/* modal در حالت روز */
[data-theme="light"] .modal { background: rgba(100,130,200,0.25); }
[data-theme="light"] .modal-dialog {
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid rgba(255,255,255,0.85);
    box-shadow: 0 20px 60px rgba(100,130,200,0.2), inset 0 1px 0 rgba(255,255,255,0.98);
}

/* toast در حالت روز */
[data-theme="light"] .toast {
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.85);
    box-shadow: 0 8px 32px rgba(100,130,200,0.15);
    color: #0f172a;
}

/* اسکرول‌بار در حالت روز */
[data-theme="light"]::-webkit-scrollbar-track { background: rgba(0,0,0,0.03); }
[data-theme="light"]::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); }

/* hero content در حالت روز */
[data-theme="light"] .hero-content {
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: 0 8px 40px rgba(100,130,200,0.15), inset 0 1px 0 rgba(255,255,255,0.98);
}

/* circle bg در حالت روز */
[data-theme="light"] .circle-bg {
    background: radial-gradient(circle, rgba(139,92,246,0.25) 0%, rgba(99,102,241,0.15) 40%, transparent 70%);
}

/* alert‌ها در حالت روز */
[data-theme="light"] .alert {
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.75);
}

/* payment card در حالت روز */
[data-theme="light"] .payment-card {
    background: rgba(255,255,255,0.4);
    border-color: rgba(255,255,255,0.7);
}
[data-theme="light"] .payment-option input:checked + .payment-card {
    background: rgba(255,255,255,0.65);
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow), 0 0 24px rgba(139,92,246,0.12);
}

/* category list در حالت روز */
[data-theme="light"] .category-list a:hover,
[data-theme="light"] .category-list a.active {
    background: rgba(255,255,255,0.55);
    border-color: rgba(255,255,255,0.8);
}

/* scroll to top در حالت روز */
[data-theme="light"] .scroll-to-top {
    background: rgba(255,255,255,0.5);
    border-color: rgba(255,255,255,0.8);
    box-shadow: 0 4px 20px rgba(100,130,200,0.15);
}

/* ========================================
   BOTTOM NAVIGATION — پنل شناور پایین
   ======================================== */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(10,15,30,0.75);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 30px;
    padding: 10px 20px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.08);
    gap: 4px;
    align-items: center;
    justify-content: space-around;
    width: calc(100% - 40px);
    max-width: 400px;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.35s ease;
}

[data-theme="light"] .bottom-nav {
    background: rgba(255,255,255,0.45);
    border-color: rgba(255,255,255,0.75);
    box-shadow: 0 8px 40px rgba(100,130,200,0.2), inset 0 1px 0 rgba(255,255,255,0.9);
}

.bottom-nav.hidden {
    transform: translateX(-50%) translateY(100px);
    opacity: 0;
    pointer-events: none;
}

.bn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 14px;
    border-radius: 20px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    min-width: 52px;
    font-size: 0.7rem;
    font-weight: 500;
}

.bn-item i {
    font-size: 1.2rem;
    transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}

.bn-item:hover {
    color: var(--primary);
}

.bn-item:hover i {
    transform: translateY(-3px) scale(1.1);
}

.bn-item.active {
    color: var(--primary);
    background: rgba(139,92,246,0.12);
}

.bn-item.active i {
    transform: translateY(-2px) scale(1.05);
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.bn-badge {
    position: absolute;
    top: 4px;
    right: 8px;
    background: var(--danger);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 20px;
    min-width: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(239,68,68,0.5);
    animation: cartPop 0.3s cubic-bezier(0.175,0.885,0.32,1.275);
}

/* فقط روی موبایل نشون بده */
@media (max-width: 768px) {
    .bottom-nav { display: flex; }
    /* فضای پایین صفحه برای bottom nav */
    body { padding-bottom: 90px; }
    footer { margin-bottom: 80px; }
    /* مطمئن از نمایش روی index */
    .hero { min-height: calc(100vh - 68px); padding-bottom: 100px; }
}

/* ========================================
   DARK MODE — حالت شب کامل
   ======================================== */

/* body تاریک */
[data-theme="dark"] body {
    background: #0c0a1e;
    color: #ede9fe;
}

/* navbar در حالت شب */
[data-theme="dark"] .navbar {
    background: rgba(5,10,20,0.55);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 4px 24px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(5,10,20,0.88);
    border-bottom-color: rgba(139,92,246,0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

/* منوی موبایل در حالت شب */
[data-theme="dark"] .mobile-nav {
    background: rgba(5,10,20,0.92);
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* کارت‌ها در حالت شب */
[data-theme="dark"] .product-card,
[data-theme="dark"] .category-card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .review-card,
[data-theme="dark"] .glass,
[data-theme="dark"] .glass-panel,
[data-theme="dark"] .filter-sidebar,
[data-theme="dark"] .cart-summary,
[data-theme="dark"] .checkout-summary,
[data-theme="dark"] .auth-box,
[data-theme="dark"] .profile-section,
[data-theme="dark"] .checkout-section,
[data-theme="dark"] .profile-sidebar {
    background: rgba(255,255,255,0.035);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
}

[data-theme="dark"] .product-card:hover,
[data-theme="dark"] .category-card:hover,
[data-theme="dark"] .feature-card:hover {
    background: rgba(255,255,255,0.065);
    border-color: rgba(139,92,246,0.35);
    box-shadow: 0 16px 48px rgba(0,0,0,0.6), 0 0 0 1px rgba(139,92,246,0.2);
}

/* shimmer تیره */
[data-theme="dark"] .product-card::before,
[data-theme="dark"] .category-card::before,
[data-theme="dark"] .feature-card::before,
[data-theme="dark"] .auth-box::before,
[data-theme="dark"] .profile-section::before,
[data-theme="dark"] .checkout-section::before {
    background: linear-gradient(135deg,
        rgba(255,255,255,0.06) 0%,
        transparent 40%,
        rgba(255,255,255,0.02) 100%);
}

/* خط نور بالا در تاریکی */
[data-theme="dark"] .product-card::after,
[data-theme="dark"] .auth-box::after,
[data-theme="dark"] .profile-section::after {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
}

/* فرم‌ها در حالت شب */
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .filter-group input,
[data-theme="dark"] .filter-group select,
[data-theme="dark"] .search-box input {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
    color: #e8f0fe;
}
[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder,
[data-theme="dark"] .search-box input::placeholder { color: rgba(255,255,255,0.3); }

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group select:focus,
[data-theme="dark"] .form-group textarea:focus,
[data-theme="dark"] .filter-group input:focus,
[data-theme="dark"] .search-box input:focus {
    background: rgba(255,255,255,0.07);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139,92,246,0.2), 0 0 20px rgba(139,92,246,0.1);
}

/* دکمه‌ها در حالت شب */
[data-theme="dark"] .btn-ghost {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.09);
    color: #e8f0fe;
}
[data-theme="dark"] .btn-ghost:hover {
    background: rgba(255,255,255,0.09);
    border-color: var(--primary);
    color: var(--primary);
}
[data-theme="dark"] .btn-outline {
    background: rgba(139,92,246,0.06);
    border-color: rgba(139,92,246,0.5);
    color: var(--primary);
}

/* hero در حالت شب */
[data-theme="dark"] .hero-content {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(40px) saturate(160%);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
}

/* modal در حالت شب */
[data-theme="dark"] .modal { background: rgba(0,0,0,0.7); }
[data-theme="dark"] .modal-dialog {
    background: rgba(10,15,30,0.85);
    backdrop-filter: blur(40px) saturate(160%);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.06);
}

/* footer در حالت شب */
[data-theme="dark"] footer {
    background: rgba(255,255,255,0.025);
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* alert در حالت شب */
[data-theme="dark"] .alert {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
}

/* order card در حالت شب */
[data-theme="dark"] .order-card {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.07);
}
[data-theme="dark"] .order-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(139,92,246,0.25);
}
[data-theme="dark"] .order-footer {
    background: rgba(0,0,0,0.2);
}

/* profile nav در حالت شب */
[data-theme="dark"] .profile-nav a:hover {
    background: rgba(255,255,255,0.06);
}
[data-theme="dark"] .profile-nav a.active {
    background: rgba(139,92,246,0.1);
    border-color: rgba(139,92,246,0.2);
}

/* payment card در حالت شب */
[data-theme="dark"] .payment-card {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.07);
}
[data-theme="dark"] .payment-option input:checked + .payment-card {
    background: rgba(139,92,246,0.08);
    border-color: rgba(139,92,246,0.5);
    box-shadow: 0 0 0 2px rgba(139,92,246,0.15), 0 0 24px rgba(139,92,246,0.1);
}

/* toast در حالت شب */
[data-theme="dark"] .toast {
    background: rgba(10,15,30,0.9);
    border-color: rgba(255,255,255,0.08);
    color: #e8f0fe;
}

/* scroll to top در حالت شب */
[data-theme="dark"] .scroll-to-top {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.09);
}

/* اسکرول‌بار تاریک */
[data-theme="dark"]::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); }
[data-theme="dark"]::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); }
[data-theme="dark"]::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ========================================
   HEADER بازطراحی‌شده
   ======================================== */

/* ریست header قبلی */
.navbar { display: none !important; }
.mobile-nav { display: none !important; }
.mobile-overlay { display: none !important; }

/* هدر اصلی */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 4%;
    height: 66px;
    background: rgba(5,10,20,0.6);
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
    transition: all 0.35s ease;
}

[data-theme="light"] .navbar-inner {
    background: rgba(255,255,255,0.32);
    border-bottom: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 4px 24px rgba(100,130,200,0.1), inset 0 1px 0 rgba(255,255,255,0.9);
}

.site-header.scrolled .navbar-inner {
    background: rgba(5,10,20,0.9);
    border-bottom-color: rgba(139,92,246,0.15);
}
[data-theme="light"] .site-header.scrolled .navbar-inner {
    background: rgba(255,255,255,0.7);
}

/* لوگو */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-icon {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--primary), #6d28d9);
    border-radius: 10px;
    display: flex; align-items:center; justify-content:center;
    font-size: 1rem;
    color: #fff;
    box-shadow: 0 4px 14px var(--primary-glow);
    flex-shrink: 0;
}
.logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

/* منوی دسکتاپ */
.nav-menu {
    display: flex;
    gap: 2px;
    list-style: none;
    margin: 0 auto;
}
.nav-link {
    display: block;
    padding: 8px 16px;
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.nav-link:hover { background: var(--glass-bg-light); color: var(--text-primary); }
.nav-link.active {
    background: rgba(139,92,246,0.12);
    color: var(--primary);
    font-weight: 600;
}

/* سمت چپ */
.nav-end {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* دکمه‌های آیکونی */
.nav-icon-btn {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    display: flex; align-items:center; justify-content:center;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    position: relative;
    flex-shrink: 0;
}
.nav-icon-btn:hover {
    background: var(--glass-bg-light);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--primary-glow);
}

/* badge سبد */
.cart-bubble {
    position: absolute;
    top: -5px; left: -5px;
    background: var(--danger);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 18px; height: 18px;
    border-radius: 20px;
    padding: 0 4px;
    display: flex; align-items:center; justify-content:center;
    box-shadow: 0 2px 8px rgba(239,68,68,0.5);
    animation: popIn 0.3s cubic-bezier(0.175,0.885,0.32,1.275);
}
@keyframes popIn { from{transform:scale(0)} to{transform:scale(1)} }

/* avatar کاربر */
.nav-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    display: flex; align-items:center; justify-content:center;
    text-decoration: none;
    box-shadow: 0 4px 14px var(--primary-glow);
    border: 2px solid rgba(255,255,255,0.2);
    transition: all 0.2s;
    flex-shrink: 0;
}
.nav-avatar:hover { transform: scale(1.08); box-shadow: 0 6px 20px var(--primary-glow); }

/* دکمه ورود */
.nav-login-btn {
    display: flex; align-items:center; gap:6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary), #6d28d9);
    color: #fff;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 14px var(--primary-glow);
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.nav-login-btn:hover { transform:translateY(-1px); box-shadow:0 6px 20px var(--primary-glow); color:#fff; }

/* سرچ دسکتاپ */
.nav-search {
    position: relative;
    width: 0;
    overflow: hidden;
    transition: width 0.35s cubic-bezier(0.4,0,0.2,1);
}
.nav-search.open { width: 220px; overflow: visible; }
.nav-search form {
    display: flex;
    align-items: center;
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    white-space: nowrap;
}
.nav-search input {
    flex: 1;
    padding: 9px 14px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.88rem;
    font-family: inherit;
    min-width: 0;
}
.nav-search input::placeholder { color: var(--text-secondary); }
.nav-search input:focus { outline: none; }
.nav-search button {
    padding: 9px 12px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.nav-search button:hover { color: var(--primary); }
.search-suggest {
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    background: var(--glass-bg-medium);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    display: none;
    z-index: 200;
}
.search-suggest.open { display: block; }
.suggest-item {
    padding: 12px 16px;
    display: flex; align-items:center; gap:10px;
    color: var(--text-primary);
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
}
.suggest-item:hover { background: var(--glass-bg-light); }
.suggest-item i { color: var(--primary); font-size: 0.8rem; }

/* ========================================
   سرچ موبایل (full-screen)
   ======================================== */
.mobile-search-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1100;
    background: rgba(5,10,20,0.97);
    backdrop-filter: blur(32px) saturate(200%);
    padding: 16px 4% 12px;
    transform: translateY(-110%);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    border-bottom: 1px solid var(--glass-border);
}
[data-theme="light"] .mobile-search-bar {
    background: rgba(248,250,255,0.97);
}
.mobile-search-bar.open { transform: translateY(0); }

.msb-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 4px 6px 4px 4px;
    margin-bottom: 14px;
}
.msb-inner input {
    flex: 1;
    padding: 10px 14px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
}
.msb-inner input::placeholder { color: var(--text-secondary); }
.msb-inner input:focus { outline: none; }
.msb-inner button {
    width: 40px; height: 40px;
    border-radius: 12px;
    border: none;
    display: flex; align-items:center; justify-content:center;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
#msbClose {
    background: var(--glass-bg);
    color: var(--text-secondary);
}
#msbClose:hover { color: var(--danger); }
.msb-inner [type="submit"] {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* تگ‌های جستجوی پیشنهادی */
.msb-tags {
    display: flex; gap: 8px; flex-wrap: wrap;
}
.msb-tag {
    padding: 7px 14px;
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.msb-tag:hover {
    background: rgba(139,92,246,0.12);
    border-color: rgba(139,92,246,0.35);
    color: var(--primary);
}

/* ========================================
   BOTTOM NAV — موبایل بازطراحی
   ======================================== */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(8,14,28,0.82);
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 32px;
    padding: 8px 10px;
    gap: 2px;
    align-items: center;
    justify-content: space-around;
    width: calc(100% - 32px);
    max-width: 380px;
    box-shadow:
        0 8px 40px rgba(0,0,0,0.5),
        0 0 0 0.5px rgba(255,255,255,0.04),
        inset 0 1px 0 rgba(255,255,255,0.07);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.35s ease;
}
[data-theme="light"] .bottom-nav {
    background: rgba(255,255,255,0.52);
    border-color: rgba(255,255,255,0.8);
    box-shadow: 0 8px 40px rgba(100,130,200,0.2), inset 0 1px 0 rgba(255,255,255,0.95);
}
.bottom-nav.hide {
    transform: translateX(-50%) translateY(110px);
    opacity: 0;
    pointer-events: none;
}
.bn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 16px;
    border-radius: 24px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
    position: relative;
    min-width: 56px;
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}
.bn i {
    font-size: 1.25rem;
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
    display: block;
}
.bn:hover { color: var(--text-primary); }
.bn:hover i { transform: translateY(-3px) scale(1.12); }
.bn.on {
    background: rgba(139,92,246,0.13);
    color: var(--primary);
}
.bn.on i {
    transform: translateY(-2px) scale(1.08);
    filter: drop-shadow(0 0 6px var(--primary-glow));
}
.bn-dot {
    position: absolute;
    top: 5px; left: 12px;
    background: var(--danger);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 16px; height: 16px;
    border-radius: 20px;
    padding: 0 3px;
    display: flex; align-items:center; justify-content:center;
    box-shadow: 0 2px 6px rgba(239,68,68,0.5);
}

/* ========================================
   OVERLAY
   ======================================== */
.site-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    z-index: 999;
    opacity: 0; visibility: hidden;
    transition: all 0.3s ease;
}
.site-overlay.show { opacity: 1; visibility: visible; }

/* ========================================
   TOAST
   ======================================== */
.toast-wrap {
    position: fixed;
    bottom: 90px; left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex; flex-direction: column;
    gap: 8px; align-items: center;
    pointer-events: none;
    width: 90%; max-width: 360px;
}
.toast-item {
    background: rgba(10,15,30,0.92);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    padding: 13px 18px;
    border-radius: 14px;
    font-size: 0.88rem;
    display: flex; align-items:center; gap:10px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(12px) scale(0.96);
    transition: all 0.3s cubic-bezier(0.175,0.885,0.32,1.275);
    pointer-events: auto;
}
[data-theme="light"] .toast-item { background: rgba(255,255,255,0.95); color: #0f172a; }
.toast-item.show { opacity:1; transform:translateY(0) scale(1); }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .nav-menu { display: none; }
    .nav-search { display: none; }
    .nav-login-btn span { display: none; }
    .nav-login-btn { padding: 8px 12px; }
    .bottom-nav { display: flex; }
    body { padding-bottom: 88px; }
    footer { margin-bottom: 76px; }
    .hero { min-height: calc(100vh - 66px); }
    main#pageMain { padding-top: 66px; }
}

@media (min-width: 769px) {
    main#pageMain { padding-top: 66px; }
}

/* ========================================
   HAMBURGER MENU — بازطراحی
   ======================================== */

/* دکمه همبرگری */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px; height: 42px;
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    cursor: pointer;
    padding: 0 10px;
    transition: all 0.2s;
    z-index: 1002;
    order: -1;
}
.mobile-menu-btn:hover {
    background: var(--glass-bg-medium);
    border-color: var(--primary);
    box-shadow: 0 0 16px var(--primary-glow);
}
.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
    transform-origin: center;
}

/* انیمیشن X شدن */
.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: var(--primary);
}
.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background: var(--primary);
}

/* منوی کشویی موبایل */
.mobile-nav {
    position: fixed;
    top: 0; right: 0;
    width: 280px;
    height: 100vh;
    background: rgba(5,10,20,0.97);
    backdrop-filter: blur(32px) saturate(200%);
    -webkit-backdrop-filter: blur(32px) saturate(200%);
    border-left: 1px solid rgba(255,255,255,0.08);
    box-shadow: -8px 0 40px rgba(0,0,0,0.5);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 80px 0 30px;
}
[data-theme="light"] .mobile-nav {
    background: rgba(248,250,255,0.97);
    border-left-color: rgba(255,255,255,0.7);
    box-shadow: -8px 0 40px rgba(100,130,200,0.2);
}
.mobile-nav.active {
    transform: translateX(0);
}

/* هدر منو */
.mobile-nav::before {
    content: 'منو';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 66px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--glass-border);
    letter-spacing: 1px;
    font-family: inherit;
}

/* لینک‌های منو */
.mobile-nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 24px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    position: relative;
}
.mobile-nav a i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: all 0.2s;
}
.mobile-nav a:hover {
    background: rgba(255,255,255,0.04);
    color: var(--text-primary);
    padding-right: 30px;
}
.mobile-nav a:hover i { color: var(--primary); }
.mobile-nav a.active {
    color: var(--primary);
    background: rgba(139,92,246,0.08);
    border-right: 3px solid var(--primary);
}
.mobile-nav a.active i { color: var(--primary); }

/* overlay */
.mobile-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 992px) {
    .mobile-menu-btn { display: flex; }
    .nav-links { display: none !important; }
}

/* ========================================
   BOTTOM NAV — بازطراحی مدرن شیشه‌ای
   ======================================== */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0; right: 0;
    z-index: 1000;
    background: rgba(6,10,20,0.78);
    backdrop-filter: blur(32px) saturate(200%) brightness(1.1);
    -webkit-backdrop-filter: blur(32px) saturate(200%) brightness(1.1);
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 8px 0 calc(env(safe-area-inset-bottom) + 6px);
    align-items: stretch;
    justify-content: space-around;
    gap: 0;
    box-shadow: 0 -1px 0 rgba(255,255,255,0.04), 0 -8px 32px rgba(0,0,0,0.4);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.35s ease;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    transform: none;
    left: 0;
}
[data-theme="light"] .bottom-nav {
    background: rgba(255,255,255,0.82);
    border-top: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 -8px 24px rgba(0,0,0,0.06);
}
.bottom-nav.hide {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}
.bn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 4px 2px;
    flex: 1;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.62rem;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.34,1.56,0.64,1);
    position: relative;
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    letter-spacing: 0.2px;
}
.bn i {
    font-size: 1.2rem;
    transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
    display: block;
}
.bn:hover { color: var(--text-primary); }
.bn:hover i { transform: translateY(-2px) scale(1.1); }
.bn.on {
    color: var(--primary);
}
.bn.on i {
    transform: translateY(-2px) scale(1.1);
    filter: drop-shadow(0 0 8px var(--primary-glow));
}
/* خط indicator بالای آیتم active */
.bn.on::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 24px; height: 3px;
    background: var(--primary);
    border-radius: 0 0 3px 3px;
    box-shadow: 0 0 12px var(--primary-glow);
}
.bn-dot {
    position: absolute;
    top: 4px; right: calc(50% - 18px);
    background: var(--danger);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    min-width: 15px; height: 15px;
    border-radius: 20px;
    padding: 0 3px;
    display: flex; align-items:center; justify-content:center;
    box-shadow: 0 2px 6px rgba(239,68,68,0.5);
    border: 1.5px solid rgba(6,10,20,0.8);
}
[data-theme="light"] .bn-dot {
    border-color: rgba(255,255,255,0.9);
}

/* ========================================
   ENHANCED NAVBAR — شیشه‌ای خفن
   ======================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    background: rgba(6,13,31,0.75);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}
[data-theme="light"] .site-header {
    background: rgba(243,240,255,0.75);
    border-bottom-color: rgba(0,0,0,0.06);
}
.site-header.scrolled {
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.95rem;
    box-shadow: 0 4px 16px rgba(139,92,246,0.4);
    transition: transform 0.3s;
}
.nav-logo:hover .logo-icon {
    transform: rotate(-8deg) scale(1.08);
}
.logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.nav-menu {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.25s;
    position: relative;
    white-space: nowrap;
}
.nav-link:hover {
    background: var(--glass-bg-light);
    color: var(--text-primary);
}
.nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 25%;
    right: 25%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}
.nav-end {
    display: flex;
    gap: 8px;
    align-items: center;
}
.nav-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
    font-size: 0.9rem;
    text-decoration: none;
}
.nav-icon-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--primary-glow);
}
.cart-btn { position: relative; }
.cart-bubble {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #ef4444;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(239,68,68,0.5);
    border: 1.5px solid rgba(6,13,31,0.8);
}
.nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s;
    border: 2px solid transparent;
}
.nav-avatar:hover {
    transform: scale(1.1);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}
.nav-login-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s;
    border: none;
    cursor: pointer;
}
.nav-login-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--primary-glow);
    color: #fff;
}

/* ========================================
   ENHANCED BOTTOM NAV — موبایل
   ======================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(6,13,31,0.92);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-top: 1px solid rgba(255,255,255,0.06);
    display: none;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    z-index: 99;
}
[data-theme="light"] .bottom-nav {
    background: rgba(243,240,255,0.92);
    border-top-color: rgba(0,0,0,0.06);
}
.bn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.65rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 12px;
    transition: all 0.25s;
    position: relative;
    min-width: 52px;
}
.bn i {
    font-size: 1.15rem;
    transition: all 0.25s;
}
.bn:hover, .bn.on {
    color: var(--primary);
}
.bn.on {
    background: var(--primary-light);
}
.bn.on i {
    transform: scale(1.15);
}
.bn-dot {
    position: absolute;
    top: 2px;
    right: 8px;
    background: #ef4444;
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    min-width: 15px;
    height: 15px;
    border-radius: 20px;
    padding: 0 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(239,68,68,0.5);
    border: 1.5px solid rgba(6,13,31,0.8);
}
@media (max-width: 768px) {
    .bottom-nav { display: flex; }
    .nav-menu { display: none; }
    .nav-login-btn span { display: none; }
    .nav-end { gap: 6px; }
}

/* ========================================
   ENHANCED SEARCH — جستجوی شیشه‌ای
   ======================================== */
.nav-search {
    position: relative;
}
.nav-search form {
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}
.nav-search form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: var(--glass-bg-light);
}
.nav-search input {
    background: transparent;
    border: none;
    padding: 8px 14px;
    color: var(--text-primary);
    font-size: 0.85rem;
    width: 200px;
    outline: none;
    font-family: inherit;
}
.nav-search input:focus {
    width: 260px;
}
.nav-search input::placeholder {
    color: var(--text-secondary);
}
.nav-search button {
    background: transparent;
    border: none;
    padding: 8px 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
}
.nav-search button:hover {
    color: var(--primary);
}

/* Mobile Search Bar */
.mobile-search-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    z-index: 200;
    transform: translateY(-100%);
    transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
    padding: 12px 16px;
    padding-top: max(12px, env(safe-area-inset-top));
    border-bottom: 1px solid var(--glass-border);
}
.mobile-search-bar.open {
    transform: translateY(0);
}
.msb-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 4px 4px 4px 14px;
}
.msb-inner input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    padding: 10px 0;
    outline: none;
    font-family: inherit;
}
.msb-inner input::placeholder {
    color: var(--text-secondary);
}
.msb-inner button {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.msb-inner button[type="submit"] {
    background: var(--primary);
    color: #fff;
}
.msb-inner button[type="button"] {
    background: var(--glass-bg);
    color: var(--text-secondary);
}
.msb-suggest {
    padding: 16px 4px 4px;
}
.msb-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.msb-tag {
    padding: 6px 14px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}
.msb-tag:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}
.search-suggest {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 8px;
    display: none;
    box-shadow: 0 16px 48px rgba(0,0,0,0.3);
    z-index: 10;
}
.search-suggest.show { display: block; }

/* ========================================
   ENHANCED PROFILE — پروفایل شیشه‌ای خفن
   ======================================== */
.profile-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 20px 4% 100px;
}
.user-hero-card {
    background: linear-gradient(135deg, #8b5cf6, #4f46e5, #06b6d4);
    border-radius: 24px;
    padding: 28px;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(139,92,246,0.3);
}
.user-hero-card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}
.user-hero-card::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.uhc-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}
.uhc-avatar {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    border: 3px solid rgba(255,255,255,0.35);
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}
.uhc-info h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.uhc-info p {
    font-size: 0.85rem;
    opacity: 0.8;
}
.uhc-stats {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 16px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}
.uhc-stat {
    text-align: center;
}
.uhc-stat-num {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
}
.uhc-stat-lbl {
    display: block;
    font-size: 0.72rem;
    opacity: 0.75;
    margin-top: 3px;
}
.uhc-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.2);
}

/* Quick Access Cards */
.quick-access {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.qa-item {
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 16px 10px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(16px);
}
.qa-item:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.qa-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: transform 0.3s;
}
.qa-item:hover .qa-icon {
    transform: scale(1.1);
}
.qa-item span {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
}
.qa-item small {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    gap: 6px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 6px;
    margin-bottom: 20px;
    backdrop-filter: blur(16px);
}
.ptab {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.ptab:hover {
    color: var(--text-primary);
    background: var(--glass-bg-light);
}
.ptab.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 16px var(--primary-glow);
}
.ptab i {
    font-size: 1rem;
}

/* Profile Forms */
.profile-card {
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 16px;
    backdrop-filter: blur(16px);
    transition: all 0.3s;
}
.profile-card:hover {
    border-color: var(--glass-border-hover);
    box-shadow: var(--glass-shadow-hover);
}
.profile-card h3 {
    margin: 0 0 20px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}
.profile-card h3 i {
    color: var(--primary);
}
.pf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}
.pf-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pf-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.pf-group input {
    padding: 12px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--text-primary);
    transition: all 0.25s;
}
.pf-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: var(--glass-bg-light);
}
.pf-group input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.pass-wrap {
    position: relative;
}
.pass-wrap input {
    width: 100%;
    padding-left: 48px;
}
.pass-wrap button {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.pass-wrap button:hover {
    color: var(--primary);
}

/* Order Cards */
.order-mob-card {
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    margin-bottom: 14px;
    overflow: hidden;
    transition: all 0.3s;
    backdrop-filter: blur(16px);
}
.order-mob-card:hover {
    border-color: rgba(139,92,246,0.3);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}
.omc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 18px;
    border-bottom: 1px solid var(--glass-border);
}
.omc-num {
    font-family: monospace;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
}
.omc-date {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.omc-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
}

/* Timeline */
.omc-timeline {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 18px 14px;
    gap: 0;
}
.tl-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    flex: 1;
}
.tl-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
    background: var(--glass-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    color: var(--text-secondary);
    transition: all 0.3s;
    z-index: 1;
}
.tl-step.done .tl-dot {
    background: rgba(139,92,246,0.15);
    border-color: var(--primary);
    color: var(--primary);
}
.tl-step.active .tl-dot {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 0 4px var(--primary-glow);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px var(--primary-glow); }
    50% { box-shadow: 0 0 0 8px rgba(139,92,246,0.1); }
}
.tl-lbl {
    font-size: 0.68rem;
    color: var(--text-secondary);
    text-align: center;
}
.tl-step.done .tl-lbl,
.tl-step.active .tl-lbl {
    color: var(--primary);
    font-weight: 600;
}
.tl-line {
    position: absolute;
    top: 17px;
    right: calc(50% + 17px);
    left: calc(-50% + 17px);
    height: 2px;
    background: var(--glass-border);
    z-index: 0;
}
.tl-line.done {
    background: var(--primary);
}

/* Order Products & Footer */
.omc-products {
    padding: 0 18px 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.omc-product-tag {
    font-size: 0.78rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 5px 12px;
    border-radius: 20px;
    color: var(--text-secondary);
}
.omc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: rgba(0,0,0,0.04);
    border-top: 1px solid var(--glass-border);
}
[data-theme="dark"] .omc-footer {
    background: rgba(255,255,255,0.02);
}
.omc-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.05rem;
}

/* Empty State */
.empty-tab {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}
.empty-tab i {
    font-size: 4rem;
    opacity: 0.15;
    display: block;
    margin-bottom: 16px;
}
.empty-tab h3 {
    margin-bottom: 8px;
    color: var(--text-primary);
}
.empty-tab p {
    margin-bottom: 20px;
}

/* ========================================
   BUTTONS — دکمه‌های شیشه‌ای
   ======================================== */
.btn {
    padding: 10px 20px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    text-decoration: none;
    white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 16px var(--primary-glow);
}
.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--primary-glow);
    color: #fff;
}
.btn-ghost {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}
.btn-ghost:hover {
    background: var(--glass-bg-light);
    border-color: var(--primary);
    color: var(--primary);
}
.btn-sm { padding: 7px 14px; font-size: 0.82rem; }
.btn-danger {
    background: #ef4444;
    color: #fff;
}
.btn-danger:hover { opacity: 0.9; }

/* ========================================
   ALERTS
   ======================================== */
.alert {
    padding: 14px 18px;
    border-radius: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    backdrop-filter: blur(16px);
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.alert-success {
    background: rgba(52,199,89,0.12);
    color: #10b981;
    border: 1px solid rgba(52,199,89,0.25);
}
.alert-danger {
    background: rgba(239,68,68,0.12);
    color: #ef4444;
    border: 1px solid rgba(239,68,68,0.25);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .nav-menu { display: none; }
    .quick-access { grid-template-columns: repeat(2, 1fr); }
    .pf-grid { grid-template-columns: 1fr; }
    .ptab span { display: none; }
    .ptab { font-size: 1.1rem; padding: 10px; }
    .profile-wrap { padding: 16px 4% 100px; }
    .user-hero-card { padding: 20px; border-radius: 20px; }
    .uhc-avatar { width: 52px; height: 52px; font-size: 1.4rem; }
    .uhc-stats { padding: 12px; }
    .uhc-stat-num { font-size: 1.1rem; }
}
@media (max-width: 480px) {
    .quick-access { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .qa-item { padding: 12px 8px; }
    .qa-icon { width: 40px; height: 40px; font-size: 1rem; }
    .profile-card { padding: 18px; }
}

/* ========================================
   GLASS BOTTOM NAV — نوار شیشه‌ای شناور موبایل
   ======================================== */
.glass-bottom-nav {
    display: none;
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(12,16,32,0.85);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 28px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.06);
    animation: glassNavSlideUp 0.5s cubic-bezier(0.16,1,0.3,1);
}
[data-theme="light"] .glass-bottom-nav {
    background: rgba(255,255,255,0.85);
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 8px 40px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.8);
}
@keyframes glassNavSlideUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.gnav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 16px;
    text-decoration: none;
    color: rgba(255,255,255,0.45);
    font-size: 0.62rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
    position: relative;
    min-width: 48px;
}
[data-theme="light"] .gnav-item {
    color: rgba(0,0,0,0.35);
}
.gnav-item:hover {
    color: rgba(255,255,255,0.8);
}
[data-theme="light"] .gnav-item:hover {
    color: rgba(0,0,0,0.7);
}
.gnav-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
    position: relative;
}
.gnav-item.active {
    color: #fff;
}
[data-theme="light"] .gnav-item.active {
    color: var(--primary, #7c3aed);
}
.gnav-item.active .gnav-icon-wrap {
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    color: #fff;
    box-shadow: 0 4px 16px rgba(139,92,246,0.4);
    transform: scale(1.08);
}
.gnav-item.active::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #06b6d4);
    border-radius: 3px;
}
.gnav-search-btn {
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    color: #fff;
    box-shadow: 0 4px 16px rgba(139,92,246,0.3);
    transform: scale(1.05);
}
.gnav-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(239,68,68,0.5);
    border: 1.5px solid rgba(12,16,32,0.8);
}
[data-theme="light"] .gnav-badge {
    border-color: rgba(255,255,255,0.9);
}
.gnav-admin {
    margin-right: 4px;
}
.gnav-admin-icon {
    background: linear-gradient(135deg, #f59e0b, #ef4444) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(245,158,11,0.3);
}
.gnav-admin span {
    color: #f59e0b;
    font-weight: 700;
}

/* نمایش فقط در موبایل */
@media (max-width: 768px) {
    .glass-bottom-nav { display: flex !important; }
    .bottom-nav { display: none !important; }
    #pageMain { padding-bottom: 100px; }
}
@media (min-width: 769px) {
    .glass-bottom-nav { display: none !important; }
}