/**
 * DiamondTire - Components Part 2
 * فوتر، مقالات، مودال‌ها
 */

/* ============================================
   Article Card - کارت مقاله
   ============================================ */
.article-card {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all var(--transition);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.article-image {
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: var(--space-4);
}

.article-category {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--secondary);
    background: rgba(52, 152, 219, 0.1);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-2);
}

.article-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

/* ============================================
   Footer - فوتر
   ============================================ */
.footer {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--text-white);
    margin-top: var(--space-16);
}

.footer-main {
    padding: var(--space-12) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-8);
    }
}

@media (min-width: 1280px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-8);
    }
}

.footer-col h4 {
    color: var(--text-white);
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-2);
    border-bottom: 2px solid var(--secondary);
    display: inline-block;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: var(--space-2);
}

.footer-col ul a {
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-fast);
}

.footer-col ul a:hover {
    color: var(--text-white);
    padding-right: var(--space-2);
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: var(--space-4);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-top: var(--space-4);
}

.trust-badge {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast);
}

.trust-badge:hover {
    transform: scale(1.05);
}

.trust-badge img {
    max-width: 60px;
    max-height: 60px;
}

/* Footer Bottom */
.footer-bottom {
    padding: var(--space-4) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--font-size-sm);
    margin: 0;
}

/* ============================================
   Modal - مودال
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    width: 95%;
    max-width: 500px;
    max-height: 85vh;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    transform: scale(0.9) translateY(20px);
    transition: all var(--transition);
    overflow: hidden;
}

@media (min-width: 768px) {
    .modal {
        width: 90%;
        max-height: 90vh;
    }
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--gray-100);
}

.modal-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--gray-200);
}

.modal-body {
    padding: var(--space-6);
    overflow-y: auto;
    max-height: calc(90vh - 140px);
}

.modal-footer {
    display: flex;
    gap: var(--space-3);
    justify-content: flex-end;
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--gray-100);
}

/* Toast styles moved to style.css */

/* ============================================
   Chatbot - چت‌بات هوشمند
   ============================================ */
.chatbot-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
    font-family: 'Vazirmatn', sans-serif;
}

.chatbot-toggle {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(52, 152, 219, 0.5);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .chatbot-toggle {
        width: 64px;
        height: 64px;
    }
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(52, 152, 219, 0.6);
}

.chatbot-toggle i {
    font-size: 1.3rem;
}

@media (min-width: 768px) {
    .chatbot-toggle i {
        font-size: 1.6rem;
    }
}

.chatbot-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 22px;
    height: 22px;
    background: #e74c3c;
    color: white;
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.chatbot-panel {
    position: fixed;
    bottom: 80px;
    left: 12px;
    right: 12px;
    width: auto;
    max-height: 65vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .chatbot-panel {
        bottom: 100px;
        left: 24px;
        right: auto;
        width: 380px;
        max-height: 550px;
    }
}

.chatbot-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chatbot-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: white;
}

.chatbot-avatar {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.chatbot-avatar.large {
    width: 70px;
    height: 70px;
    font-size: 2rem;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.chatbot-name {
    font-weight: 600;
    font-size: 1rem;
}

.chatbot-status {
    font-size: 0.8rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.chatbot-close {
    margin-right: auto;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.chatbot-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #f8f9fa;
    max-height: 350px;
    min-height: 250px;
}

.chatbot-welcome {
    text-align: center;
    padding: 20px;
}

.chatbot-welcome h4 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    color: #1e3a5f;
}

.chatbot-welcome p {
    color: #666;
    margin: 0;
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    justify-content: center;
}

.quick-reply {
    padding: 8px 14px;
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Vazirmatn', sans-serif;
}

.quick-reply:hover {
    background: #1976d2;
    color: white;
    border-color: #1976d2;
}

.chat-message {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
}

.chat-message.user {
    align-items: flex-start;
}

.chat-message.bot {
    align-items: flex-end;
}

.message-content {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.chat-message.user .message-content {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-bottom-left-radius: 4px;
}

.chat-message.bot .message-content {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-time {
    font-size: 0.7rem;
    color: #999;
    margin-top: 4px;
}

.typing-indicator {
    display: flex;
    align-items: flex-end;
}

.typing-dots {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 16px;
    border-bottom-right-radius: 4px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }

    50% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

.chatbot-input {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #eee;
    background: white;
}

.chatbot-input input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.chatbot-input input:focus {
    border-color: #3498db;
}

.chatbot-input button {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

.chatbot-input button:hover {
    transform: scale(1.05);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .chatbot-container {
        bottom: 16px;
        left: 16px;
        right: 16px;
    }

    .chatbot-panel {
        left: 16px;
        right: 16px;
        width: auto;
        bottom: 90px;
        max-height: 70vh;
    }

    .chatbot-toggle {
        width: 56px;
        height: 56px;
    }
}

/* ============================================
   Maintenance Mode - حالت تعمیر
   ============================================ */
.maintenance-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    text-align: center;
}

.maintenance-content {
    max-width: 500px;
    padding: var(--space-8);
}

.maintenance-icon {
    font-size: 5rem;
    margin-bottom: var(--space-6);
    animation: bounce 2s infinite;
}

.maintenance-title {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-4);
}

.maintenance-text {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-6);
}

/* Admin bypass form */
.admin-bypass {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-bypass input {
    padding: var(--space-3) var(--space-4);
    border: none;
    border-radius: var(--radius);
    margin-left: var(--space-2);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

/* Footer Contact */
.footer-contact {
    margin-top: 16px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.9);
}

.footer-contact a:hover {
    color: white;
}

/* Loading Placeholder */
.loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #999;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e0e0e0;
    border-top-color: #3498db;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 12px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   Floating Buttons - دکمه‌های شناور
   ============================================ */
.floating-buttons {
    position: fixed;
    left: 12px;
    bottom: 16px;
    z-index: 9990;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

@media (min-width: 768px) {
    .floating-buttons {
        left: 20px;
        bottom: 24px;
        gap: 12px;
    }
}

.floating-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }

    .dev-credit-btn {
        width: 50px;
        height: 50px;
    }
}

.floating-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    opacity: 0;
    transition: opacity 0.3s;
}

.floating-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.floating-btn:active {
    transform: scale(0.95);
}

.floating-theme-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.floating-contact-btn {
    width: 40px;
    height: 40px;
    font-size: 15px;
    background: linear-gradient(135deg, var(--success), #1e8449);
}

@keyframes floatPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); }
    50% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35); }
}

.floating-btn {
    animation: floatPulse 3s ease-in-out infinite;
}

/* ============================================
   Developer Credit - کردیت توسعه‌دهنده
   ============================================ */
.developer-credit {
    position: fixed;
    left: 20px;
    bottom: 140px;
    z-index: 9991;
}

.dev-credit-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--bg-primary);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.dev-credit-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.1) rotate(-5deg);
    box-shadow: var(--shadow-md);
}

.dev-credit-popup {
    position: absolute;
    bottom: 50px;
    left: 0;
    background: var(--bg-primary);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    text-align: center;
    direction: ltr;
}

.developer-credit:hover .dev-credit-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dev-credit-content p {
    margin: 0 0 4px;
    font-size: 13px;
    color: var(--text-secondary);
}

.dev-credit-content .heart-icon {
    color: #e74c3c;
    animation: heartbeat 1.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.dev-name {
    display: block;
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.dev-telegram {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: #0088cc;
    color: white !important;
    border-radius: var(--radius-full);
    font-size: 12px;
    text-decoration: none;
    transition: background 0.3s;
}

.dev-telegram:hover {
    background: #006da3;
}

/* ============================================
   Mobile Navigation - منوی موبایل
   ============================================ */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius);
    transition: background 0.2s;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn:hover {
    background: var(--gray-100);
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-nav-overlay.active {
    opacity: 1;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: var(--bg-primary);
    z-index: 9999;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
    background: var(--bg-secondary);
}

.mobile-nav-title {
    font-weight: 700;
    font-size: 18px;
    color: var(--text-primary);
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius);
    transition: color 0.2s;
}

.mobile-nav-close:hover {
    color: var(--accent);
}

.mobile-nav-list {
    list-style: none;
    padding: 8px 0;
}

.mobile-nav-list li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s;
    border-right: 3px solid transparent;
}

.mobile-nav-list li a:hover,
.mobile-nav-list li a.active {
    background: var(--gray-50);
    color: var(--primary);
    border-right-color: var(--primary);
}

/* ============================================
   Dark Mode - حالت تاریک
   ============================================ */
.dark {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-light: #64748b;
    --gray-50: #1e293b;
    --gray-100: #334155;
    --gray-200: #475569;
    --gray-300: #64748b;
    --gray-400: #94a3b8;
    --gray-500: #cbd5e1;
    --gray-600: #e2e8f0;
    --gray-700: #f1f5f9;
    --gray-800: #f8fafc;
    --gray-900: #ffffff;
}

.dark body,
.dark .header,
.dark .nav,
.dark .footer,
.dark .footer-main,
.dark .footer-bottom,
.dark .checkout-section,
.dark .auth-container,
.dark .product-card,
.dark .category-card,
.dark .article-card,
.dark .order-summary,
.dark .modal-content,
.dark .chatbot-panel {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.dark .header {
    background: linear-gradient(135deg, #1a2332, #0f172a);
}

.dark .nav {
    background: #1a2332;
}

.dark .footer {
    background: linear-gradient(135deg, #1a2332, #0f172a);
}

.dark .footer-main {
    background: #1a2332;
}

.dark .footer-bottom {
    background: #0d1320;
}

.dark .form-input,
.dark .form-select,
.dark input[type="text"],
.dark input[type="email"],
.dark input[type="tel"],
.dark input[type="password"],
.dark input[type="number"],
.dark textarea,
.dark select {
    background: var(--gray-100);
    border-color: var(--gray-200);
    color: var(--text-primary);
}

.dark .form-input:focus,
.dark input:focus,
.dark textarea:focus,
.dark select:focus {
    border-color: var(--secondary);
    background: var(--gray-50);
}

.dark .product-card {
    border: 1px solid var(--gray-200);
}

.dark .checkout-section {
    border: 1px solid var(--gray-200);
}

.dark .address-card {
    border-color: var(--gray-200);
}

.dark .auth-container {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.dark .dev-credit-btn {
    background: var(--gray-100);
    border-color: var(--gray-200);
    color: var(--text-secondary);
}

.dark .dev-credit-popup {
    background: var(--bg-secondary);
    border-color: var(--gray-200);
}

.dark .mobile-nav {
    background: var(--bg-primary);
}

.dark .mobile-nav-header {
    background: var(--gray-100);
    border-color: var(--gray-200);
}

.dark img:not([src*="placeholder"]) {
    filter: brightness(0.9);
}

.dark .banner-content h2,
.dark .banner-content p {
    color: white;
}

/* Theme transition */
body,
.header,
.nav,
.footer,
.product-card,
.checkout-section,
.auth-container,
.form-input,
input,
textarea,
select {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ============================================
   Price Range Slider - اسلایدر بازه قیمت
   ============================================ */
.price-range-slider {
    position: relative;
    width: 100%;
    height: 36px;
    margin: 8px 0;
    direction: ltr;
}

.price-range-track {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
}

.price-range-track-active {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 6px;
    background: var(--secondary);
    border-radius: 3px;
}

.price-range-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    background: var(--bg-primary);
    border: 3px solid var(--secondary);
    border-radius: 50%;
    cursor: grab;
    z-index: 2;
    transition: box-shadow 0.2s ease, transform 0.1s ease;
    box-shadow: var(--shadow-sm);
    touch-action: none;
    user-select: none;
}

.price-range-handle:hover,
.price-range-handle.active {
    box-shadow: 0 0 0 6px rgba(52, 152, 219, 0.15), var(--shadow);
    transform: translate(-50%, -50%) scale(1.15);
}

.price-range-handle:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.2);
}

.dark .price-range-handle {
    background: var(--gray-100);
    border-color: var(--secondary);
}

.price-range-values {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    gap: 8px;
}

.price-range-value {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    direction: rtl;
}

.dark .price-range-value {
    background: var(--gray-100);
    border-color: var(--gray-200);
}

.price-range-label {
    font-size: 11px;
    color: var(--text-secondary);
}

.price-range-separator {
    color: var(--text-light);
    font-weight: 500;
}