:root {
    --bg: #07090f;
    --bg2: #0c0f1a;
    --bg3: #111527;
    --surface: #141828;
    --surface2: #1a1f33;
    --border: rgba(255,255,255,0.07);
    --border2: rgba(255,255,255,0.12);
    --neon: #00d4ff;
    --neon2: #7c3aed;
    --neon3: #f97316;
    --neon-glow: rgba(0,212,255,0.3);
    --neon2-glow: rgba(124,58,237,0.3);
    --text: #f1f5f9;
    --text2: #94a3b8;
    --text3: #475569;
    --green: #10b981;
    --pink: #ec4899;
}

html {
    scroll-behavior: smooth;
}

* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color: transparent; }

button, input, select, textarea {
    font-family: 'Vazirmatn', sans-serif;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 72px;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../vendor/vazir/Vazirmatn.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ═══════════════════════════════════════════
   افکت نویز روی صفحه
═══════════════════════════════════════════ */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.5;
    will-change: transform;
    transform: translateZ(0);
}

/* ═══════════════════════════════════════════
   گوی‌های متحرک پس‌زمینه
═══════════════════════════════════════════ */
.blob-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
    animation: blobFloat 12s ease-in-out infinite;
}
.blob-1 { width: 600px; height: 600px; background: var(--neon); top: -200px; right: -100px; animation-delay: 0s; }
.blob-2 { width: 500px; height: 500px; background: var(--neon2); bottom: 10%; left: -150px; animation-delay: -4s; }
.blob-3 { width: 400px; height: 400px; background: var(--neon3); top: 40%; left: 30%; animation-delay: -8s; opacity: 0.06; }

@keyframes blobFloat {
    0%, 100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(30px,-30px) scale(1.05); }
    66% { transform: translate(-20px,20px) scale(0.95); }
}

/* ═══════════════════════════════════════════
   هدر سایت
═══════════════════════════════════════════ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 40px;
    background: rgba(7,9,15,0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    height: 72px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.6rem;
    font-weight: 900;
    white-space: nowrap;
    letter-spacing: -0.5px;
}
.logo-icon {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--neon), var(--neon2));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    color: #fff;
    box-shadow: 0 0 20px var(--neon-glow);
}
.logo-img {
    width: auto;
    height: 42px;
    max-width: 120px;
    object-fit: contain;
    transition: transform 0.3s;
}
.logo:hover .logo-img {
    transform: scale(1.05);
}
.logo span { background: linear-gradient(90deg, var(--neon), var(--neon2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.search-wrap {
    flex: 1;
    max-width: 480px;
    position: relative;
}
.search-wrap input {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: 14px;
    padding: 11px 48px 11px 20px;
    color: var(--text);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.92rem;
    outline: none;
    transition: 0.3s;
}
.search-wrap input::placeholder { color: var(--text3); }
.search-wrap input:focus {
    border-color: var(--neon);
    box-shadow: 0 0 0 3px rgba(0,212,255,0.1), 0 0 20px rgba(0,212,255,0.05);
}
.search-wrap button {
    position: absolute;
    left: 12px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    color: var(--text3); cursor: pointer;
    font-size: 0.95rem; transition: color 0.2s;
}
.search-wrap button:hover { color: var(--neon); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-right: auto; }
.icon-btn {
    width: 42px; height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text2);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: 0.2s;
    position: relative;
}
.icon-btn:hover { border-color: var(--neon); color: var(--neon); box-shadow: 0 0 15px var(--neon-glow); }
.badge {
    position: absolute;
    top: -6px; left: -6px;
    width: 18px; height: 18px;
    background: var(--neon);
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

/* ═══════════════════════════════════════════
   منوی ناوبری
═══════════════════════════════════════════ */
.nav {
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    position: relative; z-index: 99;
}
.nav-inner {
    max-width: 1400px; margin: 0 auto; padding: 0 40px;
    display: flex; gap: 4px;
}
.nav-link {
    padding: 14px 20px;
    color: var(--text2);
    font-size: 0.93rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
    display: flex; align-items: center; gap: 8px;
}
.nav-link i { font-size: 0.85rem; opacity: 0.7; }
.nav-link:hover, .nav-link.active { color: var(--neon); border-bottom-color: var(--neon); }
.nav-link.active { color: var(--neon); }

/* دکمه منوی موبایل */
.mobile-menu-btn {
    display: none;
    width: 44px; height: 44px;
    border: none;
    background: var(--surface);
    border-radius: 12px;
    color: var(--text);
    font-size: 1.1rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    margin-left: 12px;
}
.mobile-menu-btn:hover {
    background: var(--surface2);
    color: var(--neon);
}
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}

/* ═══════════════════════════════════════════
   کانتینر اصلی
═══════════════════════════════════════════ */
.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; position: relative; z-index: 1; }

/* ═══════════════════════════════════════════
   بخش اصلی سایت
═══════════════════════════════════════════ */
.hero {
    padding: 80px 0 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,212,255,0.1);
    border: 1px solid rgba(0,212,255,0.25);
    color: var(--neon);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 24px;
    animation: fadeUp 0.6s ease both;
}
.hero-badge::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--neon);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon);
    animation: pulse 1.5s ease infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero h1 {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -2px;
    margin-bottom: 20px;
    animation: fadeUp 0.6s ease 0.1s both;
}
.hero h1 .accent { 
    background: linear-gradient(90deg, var(--neon), var(--neon2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p {
    color: var(--text2);
    font-size: 1.1rem;
    max-width: 480px;
    margin-bottom: 36px;
    animation: fadeUp 0.6s ease 0.2s both;
}
.hero-btns {
    display: flex; gap: 14px;
    animation: fadeUp 0.6s ease 0.3s both;
}
.btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    background: linear-gradient(135deg, var(--neon), #0ea5e9);
    color: #000;
    padding: 14px 32px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: 0.25s;
    box-shadow: 0 8px 30px rgba(0,212,255,0.3);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,212,255,0.45); }
.btn-secondary {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--surface);
    color: var(--text);
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 1px solid var(--border2);
    transition: 0.25s;
}
.btn-secondary:hover { border-color: var(--neon); color: var(--neon); transform: translateY(-3px); }

.hero-stats {
    display: flex; gap: 32px; margin-top: 48px;
    animation: fadeUp 0.6s ease 0.4s both;
}
.stat-item { text-align: center; }
.stat-num {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(90deg, var(--neon), var(--neon2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    display: block;
}
.stat-label { font-size: 0.8rem; color: var(--text3); }

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 1s ease 0.3s both;
}
.hero-glow-ring {
    width: 400px; height: 400px;
    border-radius: 50%;
    border: 1px solid rgba(0,212,255,0.15);
    display: flex; align-items: center; justify-content: center;
    position: relative;
    animation: spin 20s linear infinite;
}
.hero-glow-ring::before {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    border-radius: 50%;
    background: conic-gradient(transparent 270deg, rgba(0,212,255,0.4) 360deg);
    animation: spin 3s linear infinite;
}
.hero-glow-ring-inner {
    width: 300px; height: 300px;
    border-radius: 50%;
    border: 1px solid rgba(124,58,237,0.2);
    display: flex; align-items: center; justify-content: center;
    animation: spin 15s linear infinite reverse;
    background: radial-gradient(circle at center, rgba(0,212,255,0.05), transparent);
}
.hero-icon-wrap {
    width: 160px; height: 160px;
    background: linear-gradient(135deg, var(--surface2), var(--surface));
    border-radius: 40px;
    display: flex; align-items: center; justify-content: center;
    font-size: 5rem;
    color: var(--neon);
    box-shadow: 0 0 60px var(--neon-glow), inset 0 1px 0 rgba(255,255,255,0.1);
    border: 1px solid rgba(0,212,255,0.2);
    animation: spinReverse 20s linear infinite;
}
.hero-floating-card {
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: 16px;
    padding: 12px 18px;
    display: flex; align-items: center; gap: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    animation: floatCard 4s ease-in-out infinite;
}
.hero-floating-card:nth-child(2) { top: 30px; left: 0; animation-delay: -1s; }
.hero-floating-card:nth-child(3) { bottom: 50px; right: -10px; animation-delay: -2.5s; }
@keyframes floatCard { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.fc-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.fc-icon.cyan { background: rgba(0,212,255,0.15); color: var(--neon); }
.fc-icon.purple { background: rgba(124,58,237,0.15); color: var(--neon2); }
.fc-icon.orange { background: rgba(249,115,22,0.15); color: var(--neon3); }
.fc-icon.green { background: rgba(16,189,129,0.15); color: var(--green); }
.fc-icon.pink { background: rgba(236,73,153,0.15); color: var(--pink); }
.fc-title { font-size: 0.82rem; color: var(--text2); }
.fc-val { font-size: 1.05rem; font-weight: 700; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinReverse { to { transform: rotate(-360deg); } }
@keyframes fadeUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

/* ═══════════════════════════════════════════
   دسته‌بندی‌ها
═══════════════════════════════════════════ */
.cats-section { padding: 20px 0 40px; }
.cats-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--neon);
    font-weight: 700;
}
.cats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.carousel .cats-grid {
    flex-wrap: nowrap;
    gap: 10px;
}
.cat-pill {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text2);
    display: flex; align-items: center; gap: 8px;
    cursor: pointer;
    transition: 0.2s;
}
.cat-pill i { color: var(--neon); font-size: 0.85rem; }
.cat-pill:hover {
    background: var(--surface2);
    border-color: var(--neon);
    color: var(--text);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,212,255,0.1);
}

/* ═══════════════════════════════════════════
   تیتر بخش‌ها
═══════════════════════════════════════════ */
.sec-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-top: 40px;
}
.sec-title {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.sec-title span { color: var(--neon); }
.see-all {
    font-size: 0.88rem;
    color: var(--neon);
    text-decoration: none;
    display: flex; align-items: center; gap: 6px;
    transition: 0.2s;
    padding-bottom: 4px;
    border-bottom: 1px solid transparent;
}
.see-all:hover { border-bottom-color: var(--neon); }

/* ═══════════════════════════════════════════
   Carousel- حلقه‌
═══════════════════════════════════════════ */
.carousel {
    position: relative;
    width: 100%;
}
/* مشکل - اسکرول گوشی - رفع شد */
.carousel-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    direction: rtl;
    scrollbar-width: none;
    padding: 2px 52px 14px;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
    user-select: none;
    cursor: grab;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.carousel-track.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    scroll-snap-type: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    flex-shrink: 0;
    direction: rtl;
    scroll-snap-align: start;
}

.carousel-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(20,24,40,0.85);
    color: var(--text2);
    position: absolute;
    top: 50%;
    transform: translateY(-55%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.carousel-btn:hover {
    border-color: var(--neon);
    color: var(--neon);
    box-shadow: 0 0 15px var(--neon-glow);
}

.carousel-btn.prev { right: 8px; }
.carousel-btn.next { left: 8px; }

.carousel .cats-grid {
    flex-wrap: nowrap;
    gap: 10px;
}

.carousel .product-grid {
    display: flex;
    grid-template-columns: none;
    gap: 16px;
    margin-bottom: 0;
}

.carousel .product-card {
    flex: 0 0 280px;
}

/* ═══════════════════════════════════════════
   گرید محصولات
═══════════════════════════════════════════ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 16px;
}

.carousel .product-grid {
    display: flex;
    grid-template-columns: none;
    gap: 16px;
    margin-bottom: 0;
}

.carousel .product-card {
    flex: 0 0 280px;
}

@media (max-width: 900px) {
    .carousel .product-card { flex-basis: 240px; }
}

@media (max-width: 600px) {
    .carousel .product-card { flex-basis: 86%; }
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
    display: flex; flex-direction: column;
    position: relative;
}
.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0,212,255,0.04), transparent);
    opacity: 0;
    transition: 0.3s;
}
.product-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(0,212,255,0.3);
    box-shadow: 0 24px 50px -8px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,212,255,0.1);
}
.product-card:hover::before { opacity: 1; }

.product-img {
    padding: 32px 20px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg3);
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}
.product-img::after {
    content: '';
    position: absolute;
    width: 100px; height: 100px;
    background: radial-gradient(circle, rgba(0,212,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
    transition: 0.4s;
    opacity: 0;
}
.product-card:hover .product-img::after { opacity: 1; transform: scale(2); }

.product-img.purple-tint { background: linear-gradient(135deg, #110d1e, #1a1330); }
.product-img.cyan-tint { background: linear-gradient(135deg, #071416, #0c1f22); }
.product-img.orange-tint { background: linear-gradient(135deg, #160e05, #1e1508); }
.product-img.green-tint { background: linear-gradient(135deg, #071510, #0c201a); }

.product-img i { filter: drop-shadow(0 0 20px currentColor); }
.product-img i.cyan { color: var(--neon); }
.product-img i.purple { color: var(--neon2); }
.product-img i.orange { color: var(--neon3); }
.product-img i.green { color: var(--green); }
.product-img i.pink { color: var(--pink); }

.product-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-cat-tag {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(0,212,255,0.08);
    color: var(--neon);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: 10px;
}
.product-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.product-desc { font-size: 0.82rem; color: var(--text3); margin-bottom: 16px; flex: 1; }
.product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.price-label { font-size: 0.72rem; color: var(--text3); }
.price-num { font-size: 1.45rem; font-weight: 800; color: var(--text); direction: ltr; display: block; }
.price-unit { font-size: 0.75rem; color: var(--text3); }
.cart-btn {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(0,212,255,0.1);
    border: 1px solid rgba(0,212,255,0.2);
    color: var(--neon);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: 0.2s;
    font-size: 1rem;
    z-index: 10;
}
.cart-btn:hover {
    background: var(--neon);
    color: #000;
    border-color: var(--neon);
    box-shadow: 0 6px 20px var(--neon-glow);
    transform: scale(1.1);
}

/* نشانه سیستم اسمبل شده */
.assembled-tag {
    position: absolute;
    top: 14px; right: 14px;
    background: linear-gradient(135deg, var(--green), #059669);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
    letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════
   بنر تخفیف
═══════════════════════════════════════════ */
.promo-banner {
    margin: 60px 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 50px 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    position: relative;
    overflow: hidden;
}
.promo-banner::before {
    content: '';
    position: absolute;
    right: -100px; top: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(0,212,255,0.12), transparent 60%);
    pointer-events: none;
}
.promo-banner::after {
    content: '';
    position: absolute;
    left: -50px; bottom: -100px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(124,58,237,0.1), transparent 60%);
    pointer-events: none;
}
.promo-text { position: relative; z-index: 1; }
.promo-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(249,115,22,0.15);
    border: 1px solid rgba(249,115,22,0.3);
    color: var(--neon3);
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 14px;
}
.promo-title { font-size: 2.4rem; font-weight: 900; letter-spacing: -1px; margin-bottom: 8px; }
.promo-sub { color: var(--text2); font-size: 1rem; }
.promo-cta {
    position: relative; z-index: 1;
    flex-shrink: 0;
    text-align: center;
}
.countdown {
    display: flex; gap: 12px; margin-bottom: 20px;
}
.cd-block {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 62px; height: 62px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
}
.cd-num { font-size: 1.5rem; font-weight: 900; color: var(--neon); line-height: 1; }
.cd-label { font-size: 0.65rem; color: var(--text3); margin-top: 2px; }
.promo-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: linear-gradient(135deg, var(--neon3), #ea580c);
    color: white;
    padding: 13px 28px;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
    transition: 0.25s;
    box-shadow: 0 8px 30px rgba(249,115,22,0.3);
}
.promo-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(249,115,22,0.45); }

/* ═══════════════════════════════════════════
   فوتر سایت
═══════════════════════════════════════════ */
footer {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    margin-top: 80px;
    padding: 60px 40px 30px;
}
.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
}
.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { color: var(--text2); font-size: 0.9rem; max-width: 280px; line-height: 1.8; }
.social-row { display: flex; gap: 10px; margin-top: 20px; }
.social-btn {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text2);
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.2s;
}
.social-btn:hover { background: var(--surface2); border-color: var(--neon); color: var(--neon); }

.footer-col h5 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text);
    font-weight: 700;
    margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text2); text-decoration: none; font-size: 0.9rem; transition: 0.2s; }
.footer-col ul li a:hover { color: var(--neon); padding-right: 4px; }
.footer-col ul li a i {
    margin-left: 8px;
    color: var(--neon);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 28px;
    color: var(--text3);
    font-size: 0.85rem;
}
.footer-bottom a { color: var(--text3); text-decoration: none; transition: 0.2s; }
.footer-bottom a:hover { color: var(--neon); }
.footer-bottom-links {
    display: flex;
    gap: 20px;
}

/* ═══════════════════════════════════════════
   صفحات استاتیک (درباره ما، تماس با ما)
═══════════════════════════════════════════ */
.page-section {
    padding: 40px 0 60px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 24px;
}

.page-title .neon {
    color: var(--neon);
}

.page-desc {
    color: var(--text2);
    font-size: 1.1rem;
    line-height: 2;
    margin-bottom: 30px;
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--neon);
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text3);
    font-size: 0.9rem;
}

/* Why List */
.why-list {
    color: var(--text2);
    line-height: 2.2;
    padding-right: 20px;
}

.why-list li {
    margin-bottom: 8px;
}

.section-heading {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 40px 0 20px;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 16px;
}

.contact-info-item i {
    font-size: 1.5rem;
    color: var(--neon);
    margin-top: 4px;
}

.contact-info-item h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.contact-info-item p {
    color: var(--text3);
}

.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    color: var(--text);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.95rem;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--neon);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form button {
    background: linear-gradient(135deg, var(--neon), var(--neon2));
    color: #000;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--neon-glow);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-link {
    width: 44px;
    height: 44px;
    background: var(--surface2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text2);
    transition: 0.3s;
}

.social-link:hover {
    background: var(--neon);
    color: #000;
}

/* About Section (index.html) */
.about-section {
    padding: 60px 0;
    margin-top: 40px;
}

.about-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 24px;
    text-align: center;
}

.about-desc {
    color: var(--text2);
    font-size: 1rem;
    line-height: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 20px;
}

.neon {
    color: var(--neon);
}

/* ═══════════════════════════════════════════
   Breadcrumb
═══════════════════════════════════════════ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    margin-bottom: 20px;
    font-size: 0.9rem;
}
.breadcrumb a {
    color: var(--text3);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb a:hover {
    color: var(--neon);
}
.breadcrumb span {
    color: var(--text3);
}
.breadcrumb .current {
    color: var(--neon);
    font-weight: 500;
}

/* ═══════════════════════════════════════════
   افکت نمایش با اسکرول
═══════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════
   ریسپانسیو
═══════════════════════════════════════════ */
@media (max-width: 1200px) {
    .header { padding: 0 20px; }
    .container { padding: 0 20px; }
    .nav-inner { padding: 0 20px; }
}

@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; padding: 40px 0; }
    .hero-visual { display: none; }
    .hero h1 { font-size: 2.6rem; }
    .hero p { font-size: 1rem; }
    .hero-btns { flex-wrap: wrap; }
    .hero-stats { flex-wrap: wrap; gap: 20px; justify-content: center; }
    
    .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
    .promo-banner { flex-direction: column; text-align: center; padding: 36px 24px; }
    .countdown { justify-content: center; }
    
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg2);
        border-left: 1px solid var(--border);
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        padding: 20px 0;
        z-index: 2000;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    
    .nav.open { right: 0; }
    
    .nav-inner {
        flex-direction: column;
        padding: 0;
        gap: 0;
    }
    
    .nav-link {
        padding: 16px 24px;
        border-bottom: 1px solid var(--border);
        font-size: 1rem;
        transition: background 0.2s;
    }
    
    .nav-link:hover, .nav-link:active {
        background: var(--surface);
        color: var(--neon);
    }
    
    .mobile-nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.6);
        z-index: 1500;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        backdrop-filter: blur(4px);
    }
    
    .mobile-nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .header-inner { 
        justify-content: space-between;
        position: relative;
    }
    .header .search-wrap { display: none; }
    .header .logo-icon { display: none; }
    .header .logo { 
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
    }
    .header .logo span { display: block; font-size: 1.1rem; }
    .header-actions .icon-btn { width: 40px; height: 40px; border: none; background: transparent; }
    .header-actions .icon-btn:nth-child(1), .header-actions .icon-btn:nth-child(2) { display: none; }
    
    .sec-heading { flex-direction: column; align-items: flex-start; gap: 12px; }
    .sec-title { font-size: 1.5rem; }
    
    .cats-grid { gap: 8px; }
    .cat-pill { padding: 10px 20px; font-size: 0.85rem; }
    
    .carousel-track { padding: 2px 16px 12px; }
    .carousel-btn { display: none !important; }
    
    /* Mobile Bottom Navigation */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--bg2);
        border-top: 1px solid var(--border);
        display: flex;
        justify-content: space-around;
        padding: 10px 0;
        z-index: 1000;
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }
    .mobile-bottom-nav a {
        color: var(--text2);
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        font-size: 0.7rem;
    }
    .mobile-bottom-nav a i { font-size: 1.2rem; }
    .mobile-bottom-nav a.active { color: var(--neon); }
    
    /* Mobile Search Bar */
    .mobile-search-bar {
        display: flex;
        padding: 10px 16px;
        background: var(--bg);
        position: sticky;
        top: 64px;
        z-index: 90;
        border-bottom: 1px solid var(--border);
    }
    .mobile-search-bar input {
        width: 100%;
        background: var(--surface);
        border: 1px solid var(--border2);
        border-radius: 10px;
        padding: 10px 40px 10px 16px;
        color: var(--text);
        font-family: 'Vazirmatn', sans-serif;
        font-size: 0.9rem;
        outline: none;
    }
    .mobile-search-bar input:focus { border-color: var(--neon); }
.mobile-search-bar .search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text3);
}
.mobile-search-bar .search-wrap-inner {
    position: relative;
    width: 100%;
}
}

@media (min-width: 769px) {
    .mobile-bottom-nav,
    .mobile-search-bar { display: none !important; }
}

@media (max-width: 600px) {
    .header { padding: 0 16px; }
    .container { padding: 0 16px; padding-bottom: 80px; }
    
    .hero h1 { font-size: 2rem; letter-spacing: -0.5px; line-height: 1.2; }
    .hero p { font-size: 0.95rem; }
    .hero-btns { flex-direction: column; width: 100%; }
    .hero-btns a { width: 100%; justify-content: center; }
    
    /* چیدمان سه ستونه فوتر در موبایل */
    .footer-top { 
        display: grid;
        grid-template-columns: 1fr 1fr 1fr; /* سه ستون در یک ردیف */
        gap: 20px; 
        padding: 0 10px 24px; 
    }
    
    .footer-brand { 
        grid-column: span 3; /* بخش برند کل عرض را بگیرد */
        text-align: center; 
        margin-bottom: 10px;
    }
    .footer-brand .logo { justify-content: center; margin-bottom: 10px; transform: scale(1.1); }
    .footer-brand .logo-icon { display: none; }
    .footer-brand p { margin: 0 auto; font-size: 0.95rem; line-height: 1.8; max-width: 95%; }
    .social-row { justify-content: center; margin-top: 30px; margin-bottom: 30px; gap: 15px; }
    .social-btn { width: 44px; height: 44px; border-radius: 12px; font-size: 1.1rem; }

    .footer-col {
        text-align: right;
    }
    
    .footer-col h5 { font-size: 0.72rem; margin-bottom: 10px; white-space: nowrap; }
    .footer-col ul li { margin-bottom: 6px; }
    .footer-col ul li a { font-size: 0.75rem; display: flex; align-items: center; gap: 4px; }
    .footer-col ul li a i { font-size: 0.7rem; }
    
    .footer-bottom { 
        flex-direction: column; 
        gap: 10px; 
        text-align: center; 
        padding-top: 18px;
        padding-bottom: 80px; /* فضای برای دیده شدن بالای Bottom Nav */
    }
    .footer-bottom div { display: none !important; }
    
    .promo-title { font-size: 1.6rem; }
    
    /* تک‌ستونه فقط برای گرید صفحه اصلی، نه فروشگاه */
    .hero .product-grid,
    .carousel .product-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .promo-banner { margin: 20px 0; padding: 28px 20px; }
    .countdown { gap: 8px; }
    .cd-block { width: 54px; height: 54px; }
    .cd-num { font-size: 1.3rem; }
    
    .stat-num { font-size: 1.6rem; }
    .stat-label { font-size: 0.75rem; }

    footer { margin-top: 20px; padding-bottom: env(safe-area-inset-bottom); }
}

@media (max-width: 480px) {
    .header-inner { height: 64px; }
    .nav { top: 64px; height: calc(100vh - 64px); }
    
    .hero h1 { font-size: 1.7rem; }
    .hero p { font-size: 0.9rem; }
    
    .btn-primary, .btn-secondary { padding: 12px 24px; font-size: 0.95rem; }
    
    .promo-title { font-size: 1.4rem; }
    .promo-sub { font-size: 0.9rem; }
}

/* ═══════════════════════════════════════════
   صفحه محصولات و فیلترها
   ═══════════════════════════════════════════ */
.products-layout {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    align-items: flex-start;
}

.products-main {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.products-layout .filters-sidebar {
    flex-shrink: 0;
}

.products-main .product-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.products-content {
    flex: 1;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.products-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.products-title {
    font-size: 1.8rem;
    font-weight: 800;
}

.sort-select {
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: 8px;
    color: var(--text);
    outline: none;
    cursor: pointer;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
}

.page-btn {
    min-width: 42px;
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    transition: 0.2s;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.92rem;
}

.page-btn--nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: auto;
    padding: 10px 16px;
}

.page-btn-label {
    font-size: 0.88rem;
    font-weight: 600;
}

.page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.page-ellipsis {
    min-width: 28px;
    padding: 0 4px;
    color: var(--text3);
    text-align: center;
    user-select: none;
    font-size: 1rem;
    line-height: 1;
}

.page-btn.active {
    background: var(--neon);
    border-color: var(--neon);
    color: #000;
    font-weight: 700;
}

.page-btn:hover:not(.active):not(:disabled) {
    border-color: var(--neon);
    color: var(--neon);
}

@media (max-width: 600px) {
    .pagination {
        gap: 6px;
    }

    .page-btn {
        min-width: 38px;
        padding: 9px 12px;
        font-size: 0.85rem;
    }

    .page-btn--nav .page-btn-label {
        display: none;
    }

    .page-btn--nav {
        padding: 9px 12px;
    }
}

/* Filter Labels */
.filter-label {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 12px;
cursor: pointer;
}

/* سایدبار فیلتر */
.filters-sidebar {
width: 280px;
flex-shrink: 0;
}

.filters-container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}

.filters-header {
    display: none;
}

.filters-overlay,
.filters-footer {
    display: none;
}

.filter-section {
    margin-bottom: 30px;
}

.filter-title {
    background: var(--surface2);
    color: var(--text);
    padding: 10px 15px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border);
}

.filter-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    color: var(--text2);
    font-size: 0.9rem;
    cursor: pointer;
}

.price-range-slider {
    position: relative;
    height: 4px;
    background: var(--surface2);
    margin: 30px 10px;
    border-radius: 2px;
}

.slider-track {
    position: absolute;
    height: 100%;
    background: var(--neon);
    left: 0;
    right: 0;
    box-shadow: 0 0 10px var(--neon-glow);
}

.slider-handle {
    position: absolute;
    top: 50%;
    width: 18px;
    height: 18px;
    background: var(--text);
    border: 2px solid var(--neon);
    border-radius: 50%;
    transform: translate(50%, -50%);
    cursor: pointer;
    box-shadow: 0 0 10px var(--neon-glow);
}

.slider-handle:hover {
    transform: translate(50%, -50%) scale(1.2);
    box-shadow: 0 0 15px var(--neon-glow);
}

/* Product Page Dynamic Elements */
#short-description {
    color: var(--text2);
    margin-top: 20px;
}

#attributes-section {
    margin-top: 30px;
}

#attributes-section h3 {
    color: var(--neon);
    margin-bottom: 15px;
}

.neon-link {
    color: var(--neon);
}

.hidden {
    display: none !important;
}

/* ═══════════════════════════════════════════
   صفحه سبد خرید
═══════════════════════════════════════════ */

/* پس‌زمینه صفحه سبد */
.page-section::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(0,255,136,0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(0,212,255,0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* سبد خالی */
.cart-empty {
    text-align: center;
    padding: 80px 20px 100px;
    max-width: 450px;
    margin: 0 auto;
}

.cart-empty-icon {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, rgba(0,255,136,0.1), rgba(0,212,255,0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    border: 2px solid rgba(0,255,136,0.2);
}

.cart-empty-icon i {
    font-size: 4rem;
    color: var(--neon);
    opacity: 0.7;
}

.cart-empty h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.cart-empty p {
    color: var(--text2);
    margin-bottom: 36px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.btn-shop {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--neon), #00d4aa);
    color: #000;
    padding: 16px 36px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1.05rem;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 20px rgba(0,255,136,0.3);
}

.btn-shop:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px var(--neon-glow);
}

.btn-shop i {
    font-size: 1.2rem;
}

.cart-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text2);
}

.cart-loading i {
    font-size: 2.5rem;
    color: var(--neon);
    margin-bottom: 16px;
}

.cart-items-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-items-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cart-items-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
}

.btn-clear-cart {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 71, 87, 0.35);
    border-radius: 10px;
    background: rgba(255, 71, 87, 0.08);
    color: #ff6b7a;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-clear-cart:hover {
    background: rgba(255, 71, 87, 0.15);
}

.cart-item--unavailable {
    opacity: 0.75;
    border-color: rgba(255, 71, 87, 0.35);
}

.cart-item-name {
    text-decoration: none;
    color: inherit;
}

.cart-item-name:hover {
    color: var(--neon);
}

.cart-item-stock-badge {
    display: inline-block;
    width: fit-content;
    margin-bottom: 8px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ff6b7a;
    background: rgba(255, 71, 87, 0.12);
    border: 1px solid rgba(255, 71, 87, 0.35);
}

.cart-item-line-total {
    color: var(--text2);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.cart-item-line-total strong {
    color: var(--text);
}

.cart-item-price .current-price {
    color: var(--neon);
}

.cart-item-remove {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cart-item-remove span {
    font-size: 0.85rem;
    font-weight: 600;
}

.summary-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.15);
    color: var(--text2);
    font-size: 0.85rem;
    line-height: 1.6;
}

.summary-note i {
    color: var(--neon);
}

.cart-page-notice {
    position: fixed;
    bottom: calc(90px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s, transform 0.3s;
    max-width: calc(100vw - 32px);
}

.cart-page-notice.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.cart-page-notice--success i {
    color: var(--green);
}

.cart-page-notice--error i {
    color: #ff6b7a;
}

/* محتوای سبد */
.cart-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    margin-top: 30px;
    align-items: start;
}

@media (max-width: 1024px) {
    .cart-content {
        grid-template-columns: 1fr 350px;
        gap: 30px;
    }
}

@media (max-width: 900px) {
    .cart-content {
        grid-template-columns: 1fr;
    }
}

/* لیست محصولات */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* آیتم سبد */
.cart-item {
    display: flex;
    gap: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    position: relative;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.cart-item:hover {
    border-color: rgba(0,212,255,0.3);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* تصویر محصول */
.cart-item-image {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--bg3), var(--bg));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid var(--border);
}

.cart-item-image img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}

.cart-item-image i {
    font-size: 3rem;
    color: var(--neon);
    opacity: 0.6;
}

/* اطلاعات محصول */
.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
    line-height: 1.4;
}

.cart-item-price {
    color: var(--neon);
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.cart-item-price .old-price {
    color: var(--text3);
    text-decoration: line-through;
    font-size: 0.95rem;
    margin-right: 12px;
    font-weight: 400;
}

/* اکشن‌ها */
.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: auto;
}

/* کنترل تعداد */
.cart-item-qty {
    display: flex;
    align-items: center;
    background: var(--bg);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.cart-item-qty button {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: var(--text);
    cursor: pointer;
    font-size: 1.1rem;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-qty button:hover {
    background: rgba(0,255,136,0.1);
    color: var(--neon);
}

.cart-item-qty span {
    width: 50px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
}

/* دکمه حذف */
.cart-item-remove {
    color: var(--text3);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    transition: 0.2s;
    font-size: 1rem;
    border-radius: 8px;
}

.cart-item-remove:hover {
    color: #ff4757;
    background: rgba(255,71,87,0.1);
}

/* خلاصه سفارش */
.cart-summary {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    position: sticky;
    top: 100px;
}

.summary-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    color: var(--text2);
    font-size: 0.95rem;
}

.summary-row span:last-child {
    font-weight: 600;
    color: var(--text);
}

.summary-row.total {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--neon);
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.summary-row.total span:last-child {
    color: var(--neon);
}

.summary-row.discount {
    color: var(--green);
}

.summary-row.discount span:last-child {
    color: var(--green);
}

.summary-divider {
    height: 1px;
    background: var(--border);
    margin: 20px 0;
}

/* کد تخفیف */
.coupon-section {
    display: flex;
    gap: 10px;
    margin: 24px 0;
}

.coupon-section input {
    flex: 1;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 18px;
    color: var(--text);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.coupon-section input:focus {
    border-color: var(--neon);
}

.coupon-section input::placeholder {
    color: var(--text3);
}

.btn-coupon {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 24px;
    color: var(--text);
    cursor: pointer;
    transition: 0.2s;
    font-weight: 600;
    font-family: 'Vazirmatn', sans-serif;
}

.btn-coupon:hover {
    border-color: var(--neon);
    color: var(--neon);
    background: rgba(0,255,136,0.05);
}

/* دکمه‌ها */
.btn-checkout {
    width: 100%;
    background: linear-gradient(135deg, var(--neon), #00d4aa);
    color: #000;
    border: none;
    padding: 18px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 16px;
    font-family: 'Vazirmatn', sans-serif;
}

.btn-checkout:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px var(--neon-glow);
}

.btn-checkout i {
    font-size: 1.2rem;
}

.btn-continue {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text2);
    text-decoration: none;
    padding: 14px;
    transition: color 0.2s;
    font-size: 0.95rem;
}

.btn-continue:hover {
    color: var(--neon);
}

/* ریسپانسیو موبایل */
@media (max-width: 600px) {
    .cart-item {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    
    .cart-item-image {
        width: 100%;
        height: 150px;
    }
    
    .cart-item-actions {
        justify-content: space-between;
    }
    
    .cart-summary {
        position: static;
        padding: 20px;
    }
    
    .cart-items-header {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-clear-cart {
        justify-content: center;
    }

    .cart-item-remove span {
        display: none;
    }
}

/* Cart Notification */
.cart-notification {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--surface);
    border: 1px solid var(--neon);
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.cart-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.cart-notification i {
    color: var(--green);
    font-size: 1.2rem;
}

.cart-notification span {
    color: var(--text);
}

.cart-notification a {
    color: var(--neon);
    font-weight: 600;
    text-decoration: none;
    padding: 6px 12px;
    background: rgba(0,255,136,0.1);
    border-radius: 6px;
    transition: 0.2s;
}

.cart-notification a:hover {
    background: var(--neon);
    color: #000;
}

@media (max-width: 600px) {
    .cart-notification {
        left: 16px;
        right: 16px;
        transform: translateX(0) translateY(100px);
        bottom: 90px;
    }
    
    .cart-notification.show {
        transform: translateX(0) translateY(0);
    }
}

.price-display {
    text-align: center;
    font-size: 0.85rem;
    margin-bottom: 15px;
    direction: rtl;
    color: var(--text2);
}

.price-range-inputs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.price-input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.price-input-group span {
font-size: 0.8rem;
color: var(--text2);
}

.price-input-group input::-webkit-outer-spin-button,
.price-input-group input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}

.price-input-group input[type=number] {
-moz-appearance: textfield;
appearance: textfield;
}

.price-input-group input {
width: 100%;
background: var(--bg3);
border: 1px solid var(--border);
border-radius: 8px;
padding: 8px;
color: var(--text);
font-family: 'Vazirmatn', sans-serif;
text-align: center;
}

.price-input-group input:focus {
border-color: var(--neon);
outline: none;
}

.filter-apply-btn {
    width: 70px;
    height: 35px;
    background: linear-gradient(135deg, var(--neon), var(--neon2));
    color: #000;
    border: none;
    border-radius: 8px;
    margin-right: auto;
    display: block;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 4px 15px var(--neon-glow);
}

.brand-search {
    position: relative;
    margin-bottom: 15px;
}

.brand-search input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid var(--border2);
    border-radius: 12px;
    background: var(--surface2);
    color: var(--text);
    font-family: 'Vazirmatn', sans-serif;
    outline: none;
}

.brand-search i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text3);
}

.brand-list {
    max-height: 300px;
    overflow-y: auto;
    padding-left: 5px;
}

.brand-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
    color: var(--text2);
}

.brand-count {
    min-width: 35px;
    height: 22px;
    background: var(--surface2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    margin-left: 15px;
    border: 1px solid var(--border);
    color: var(--neon);
}

.brand-name {
    flex: 1;
    font-size: 0.9rem;
}

.mobile-filters-btn {
    display: none;
}

body.filters-open {
    overflow: hidden;
    touch-action: none;
}

@media (max-width: 768px) {
    .products-layout {
        flex-direction: column;
        gap: 20px;
        margin-top: 20px;
    }

    .products-main .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .products-header {
        flex-direction: column;
        align-items: stretch;
    }

    .products-toolbar {
        width: 100%;
    }

    .mobile-filters-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        flex: 1;
        min-height: 44px;
        padding: 0 16px;
        background: var(--surface);
        border: 1px solid var(--border2);
        border-radius: 10px;
        color: var(--text);
        font-family: inherit;
        font-size: 0.9rem;
        font-weight: 600;
        cursor: pointer;
        transition: border-color 0.2s, color 0.2s, background 0.2s;
    }

    .mobile-filters-btn i {
        color: var(--neon);
        font-size: 0.95rem;
    }

    .mobile-filters-btn:active {
        background: rgba(0, 255, 136, 0.08);
        border-color: var(--neon);
    }

    .sort-select {
        flex: 1;
        min-height: 44px;
    }

    .filters-sidebar {
        position: fixed;
        inset: 0;
        z-index: 3000;
        width: auto;
        height: auto;
        flex-shrink: unset;
        pointer-events: none;
        visibility: hidden;
        border: none;
    }

    .filters-sidebar.open {
        pointer-events: auto;
        visibility: visible;
    }

    .filters-overlay {
        display: block;
        position: absolute;
        inset: 0;
        background: rgba(7, 9, 15, 0.72);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .filters-sidebar.open .filters-overlay {
        opacity: 1;
    }

    .filters-footer {
        display: block;
    }

    .filters-header {
        display: flex;
    }

    .filters-back-btn {
        display: inline-flex;
    }

    .filters-container {
        position: absolute;
        top: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        width: min(340px, 92vw);
        height: 100%;
        max-height: 100vh;
        max-height: 100dvh;
        margin: 0;
        padding: 0;
        background: var(--bg);
        border-left: 1px solid var(--border);
        border-radius: 0;
        overflow: hidden;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.35);
        z-index: 2;
    }

    .filters-sidebar.open .filters-container {
        transform: translateX(0);
    }

    .filters-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex-shrink: 0;
        padding: 16px 20px;
        border-bottom: 1px solid var(--border);
        background: var(--bg);
    }

    .filters-header h3 {
        margin: 0;
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--text);
    }

    .filters-back-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 44px;
        padding: 0 14px;
        border: 1px solid var(--border);
        border-radius: 10px;
        background: var(--surface);
        color: var(--text);
        font-family: inherit;
        font-size: 0.9rem;
        font-weight: 600;
        cursor: pointer;
        flex-shrink: 0;
    }

    .filters-back-btn i {
        color: var(--neon);
        font-size: 0.85rem;
    }

    .filters-content {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 20px;
        -webkit-overflow-scrolling: touch;
    }

    .filters-footer {
        flex-shrink: 0;
        padding: 16px 20px;
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--border);
        background: var(--bg);
    }

    .filters-done-btn {
        width: 100%;
        min-height: 48px;
        padding: 0 20px;
        border: none;
        border-radius: 12px;
        background: var(--neon);
        color: #000;
        font-family: inherit;
        font-size: 1rem;
        font-weight: 700;
        cursor: pointer;
        box-shadow: 0 4px 16px var(--neon-glow);
    }

    .filters-done-btn:active {
        transform: scale(0.98);
    }

    .products-title {
        font-size: 1.5rem;
    }

    .brand-list {
        max-height: 220px;
    }
}

/* ═══════════════════════════════════════════
   صفحه تکمیل خرید (Checkout)
   ═══════════════════════════════════════════ */
.checkout-page {
    padding-bottom: 100px;
}

.checkout-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
    margin-top: 10px;
}

.checkout-main-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.checkout-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
}

.checkout-panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.checkout-panel-title i {
    color: var(--neon);
    font-size: 1rem;
}

.checkout-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.checkout-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.checkout-field--full {
    grid-column: 1 / -1;
}

.checkout-field label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text2);
}

.checkout-field input,
.checkout-field textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--border2);
    border-radius: 12px;
    background: var(--bg);
    color: var(--text);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.checkout-field input::placeholder,
.checkout-field textarea::placeholder {
    color: var(--text3);
}

.checkout-field input:focus,
.checkout-field textarea:focus {
    border-color: var(--neon);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.checkout-field textarea {
    resize: vertical;
    min-height: 96px;
}

.checkout-payment-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkout-payment-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.checkout-payment-item.is-active {
    border-color: var(--neon);
    background: rgba(0, 255, 136, 0.06);
}

.checkout-payment-item.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.checkout-payment-item input[type="radio"] {
    margin-top: 3px;
    accent-color: var(--neon);
    flex-shrink: 0;
}

.checkout-payment-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.checkout-payment-title {
    font-weight: 700;
    color: var(--text);
    font-size: 0.95rem;
}

.checkout-payment-desc {
    font-size: 0.85rem;
    color: var(--text3);
    line-height: 1.5;
}

.checkout-secure-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.12);
    font-size: 0.85rem;
    color: var(--text2);
}

.checkout-secure-note i {
    color: var(--neon);
}

.checkout-side-summary {
    height: fit-content;
}

.checkout-order-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 22px;
    max-height: 280px;
    overflow-y: auto;
    padding-left: 2px;
}

.checkout-order-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.checkout-order-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.checkout-order-item-img {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.checkout-order-item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.checkout-order-item-img i {
    color: var(--neon);
    opacity: 0.65;
    font-size: 1.4rem;
}

.checkout-order-item-info {
    flex: 1;
    min-width: 0;
}

.checkout-order-item-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 4px;
}

.checkout-order-item-meta {
    display: block;
    font-size: 0.8rem;
    color: var(--text3);
    margin-bottom: 2px;
}

.checkout-order-item-total {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--neon);
}

.checkout-success {
    text-align: center;
    padding: 48px 20px 72px;
    max-width: 520px;
    margin: 0 auto;
}

.checkout-success-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.12);
    border: 2px solid rgba(34, 197, 94, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-success-icon i {
    font-size: 2.8rem;
    color: var(--green);
}

.checkout-success h2 {
    font-size: 1.55rem;
    margin-bottom: 10px;
    color: var(--text);
}

.checkout-success p {
    color: var(--text2);
    margin-bottom: 8px;
    line-height: 1.7;
}

.checkout-success-note {
    margin: 18px 0 28px !important;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.15);
    text-align: center;
}

.checkout-success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.checkout-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface);
    text-decoration: none;
}

.checkout-notice {
    position: fixed;
    bottom: calc(90px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s, transform 0.3s;
    max-width: calc(100vw - 32px);
}

.checkout-notice.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.checkout-notice--error i {
    color: #ff6b7a;
}

.checkout-notice--info i {
    color: var(--neon);
}

@media (max-width: 1024px) {
    .checkout-content {
        grid-template-columns: 1fr 350px;
        gap: 28px;
    }
}

@media (max-width: 900px) {
    .checkout-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .checkout-side-summary {
        position: static;
        order: -1;
    }

    .checkout-form-grid {
        grid-template-columns: 1fr;
    }

    .checkout-field--full {
        grid-column: auto;
    }

    .checkout-panel {
        padding: 22px 20px;
    }
}

@media (max-width: 600px) {
    .checkout-page .page-title {
        font-size: 2rem;
    }

    .checkout-order-items {
        max-height: none;
    }
}

/* ═══════════════════════════════════════════
   صفحه پروفایل / حساب کاربری
   ═══════════════════════════════════════════ */
.profile-page {
    padding-bottom: 100px;
}

.profile-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 60px 20px;
    color: var(--text2);
}

.profile-loading i {
    font-size: 2rem;
    color: var(--neon);
}

.profile-auth {
    max-width: 480px;
    margin: 20px auto 0;
}

.profile-auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
}

.profile-auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
    padding: 6px;
    background: var(--bg);
    border-radius: 14px;
    border: 1px solid var(--border);
}

.profile-auth-tab {
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text2);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.profile-auth-tab.is-active {
    background: rgba(0, 255, 136, 0.12);
    color: var(--neon);
}

.profile-auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-field label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text2);
}

.profile-field input,
.profile-field textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--border2);
    border-radius: 12px;
    background: var(--bg);
    color: var(--text);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.profile-field input:focus,
.profile-field textarea:focus {
    border-color: var(--neon);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.profile-field input:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.profile-field-hint {
    font-size: 0.8rem;
    color: var(--text3);
}

.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.profile-field--full {
    grid-column: 1 / -1;
}

.profile-submit-btn {
    width: 100%;
    margin-top: 4px;
}

.profile-auth-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.12);
    font-size: 0.85rem;
    color: var(--text2);
}

.profile-auth-note i {
    color: var(--neon);
}

.profile-dashboard {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: start;
    margin-top: 10px;
}

.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 100px;
}

.profile-user-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
}

.profile-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 212, 255, 0.15));
    border: 1px solid rgba(0, 255, 136, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--neon);
    overflow: hidden;
    flex-shrink: 0;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-user-info h2 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}

.profile-user-info p {
    font-size: 0.85rem;
    color: var(--text3);
    word-break: break-all;
}

.profile-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
}

.profile-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: var(--text2);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    text-align: right;
    transition: background 0.2s, color 0.2s;
}

.profile-nav-item i {
    width: 18px;
    text-align: center;
    color: var(--text3);
}

.profile-nav-item.is-active,
.profile-nav-item:hover {
    background: rgba(0, 255, 136, 0.08);
    color: var(--text);
}

.profile-nav-item.is-active i,
.profile-nav-item:hover i {
    color: var(--neon);
}

.profile-nav-logout {
    margin-top: 6px;
    border-top: 1px solid var(--border);
    border-radius: 0 0 12px 12px;
    padding-top: 16px;
    color: #ff6b6b;
}

.profile-nav-logout i {
    color: #ff6b6b;
}

.profile-main {
    min-width: 0;
}

.profile-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
}

.profile-panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.profile-panel-title i {
    color: var(--neon);
}

.profile-welcome-text {
    color: var(--text2);
    line-height: 1.7;
    margin-bottom: 22px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}

.profile-stat {
    padding: 18px;
    border-radius: 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    text-align: center;
}

.profile-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--neon);
    margin-bottom: 4px;
}

.profile-stat-label {
    font-size: 0.85rem;
    color: var(--text3);
}

.profile-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.profile-link-btn {
    padding: 12px 18px;
    border: 1px solid var(--border2);
    border-radius: 12px;
    background: transparent;
    color: var(--text2);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.profile-link-btn:hover {
    border-color: var(--neon);
    color: var(--neon);
}

.profile-empty-text {
    color: var(--text3);
    text-align: center;
    padding: 24px 12px;
}

.profile-orders-list,
.profile-recent-orders {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.profile-order-card {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg);
}

.profile-order-card--compact {
    padding: 14px 16px;
}

.profile-order-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.profile-order-number {
    display: block;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}

.profile-order-date {
    font-size: 0.85rem;
    color: var(--text3);
}

.profile-order-status {
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.profile-order-status.is-success {
    background: rgba(0, 255, 136, 0.12);
    color: var(--neon);
}

.profile-order-status.is-info {
    background: rgba(0, 212, 255, 0.12);
    color: #00d4ff;
}

.profile-order-status.is-warning {
    background: rgba(255, 193, 7, 0.12);
    color: #ffc107;
}

.profile-order-status.is-error {
    background: rgba(255, 107, 107, 0.12);
    color: #ff6b6b;
}

.profile-order-status.is-muted {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text3);
}

.profile-order-items {
    color: var(--text2);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.profile-order-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.88rem;
    color: var(--text3);
}

.profile-order-meta strong {
    color: var(--text);
    font-size: 0.95rem;
}

.profile-notice {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    max-width: calc(100vw - 32px);
}

.profile-notice.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.profile-notice--error i {
    color: #ff6b6b;
}

.profile-notice--success i {
    color: var(--neon);
}

@media (max-width: 900px) {
    .profile-dashboard {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        position: static;
    }

    .profile-nav {
        flex-direction: row;
        flex-wrap: wrap;
        overflow-x: auto;
    }

    .profile-nav-item {
        flex: 1 1 auto;
        min-width: fit-content;
        justify-content: center;
    }

    .profile-nav-logout {
        flex: 1 1 100%;
        border-top: 1px solid var(--border);
        margin-top: 4px;
        border-radius: 12px;
    }
}

@media (max-width: 600px) {
    .profile-form-grid {
        grid-template-columns: 1fr;
    }

    .profile-field--full {
        grid-column: auto;
    }

    .profile-panel,
    .profile-auth-card {
        padding: 22px 18px;
    }

    .profile-stats {
        grid-template-columns: 1fr;
    }
}