/* ========================================
   استایل مدرن هدر و فوتر - آسیا سلمان
   بر اساس مگا پرامپت JSON
   ======================================== */

/* متغیرهای CSS */
:root {
    --primary-color: #dc3545;
    --primary-dark: #c82333;
    --primary-light: #f5c6cb;
    --secondary-color: #28a745;
    --secondary-dark: #20c997;
    --bg-dark: #1a1a2e;
    --bg-dark-2: #16213e;
    --bg-dark-3: #0f3460;
    --text-light: rgba(255, 255, 255, 0.9);
    --text-muted: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-bg-dark: rgba(255, 255, 255, 0.1);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-glow-red: 0 0 20px rgba(220, 53, 69, 0.5);
    --shadow-glow-green: 0 0 20px rgba(40, 167, 69, 0.5);
}

/* ========================================
   TOP BAR - نوار بالایی
   ======================================== */
.top-bar {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-2) 50%, var(--bg-dark-3) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 1001;
    animation: slideInDown 0.5s ease-out;
    transition: var(--transition-smooth);
}

.top-bar.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.top-bar .container {
    padding: 12px 0;
}

.top-bar small {
    color: var(--text-light);
    font-size: 0.875rem;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
}

.top-bar small i {
    margin-left: 0.5rem;
    color: var(--primary-color);
    transition: var(--transition-smooth);
}

.top-bar small:hover {
    color: #ffffff;
    transform: scale(1.05);
}

.top-bar small:hover i {
    color: var(--primary-color);
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px var(--primary-color));
}

.top-bar .social-links a {
    color: var(--text-light);
    font-size: 1.2rem;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin: 0 0.5rem;
}

.top-bar .social-links a:hover {
    transform: scale(1.3) rotate(360deg);
    color: #ffffff;
}

.top-bar .social-links a[title="تلگرام"]:hover {
    background: rgba(0, 136, 204, 0.2);
    box-shadow: 0 0 20px rgba(0, 136, 204, 0.5);
}

.top-bar .social-links a[title="اینستاگرام"]:hover {
    background: rgba(228, 64, 95, 0.2);
    box-shadow: 0 0 20px rgba(228, 64, 95, 0.5);
}

.top-bar .social-links a[title="واتساپ"]:hover {
    background: rgba(37, 211, 102, 0.2);
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
}

.top-bar .social-links a[title="لینکدین"]:hover {
    background: rgba(0, 119, 181, 0.2);
    box-shadow: 0 0 20px rgba(0, 119, 181, 0.5);
}

/* ========================================
   MAIN NAVBAR - نوار ناوبری اصلی
   ======================================== */
.modern-navbar {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid rgba(220, 53, 69, 0.2);
    padding: 1rem 0;
    transition: var(--transition-smooth);
    animation: fadeInDown 0.6s ease-out;
    will-change: transform, background-color, box-shadow;
}

.modern-navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    padding: 0.75rem 0;
    border-bottom-color: rgba(220, 53, 69, 0.4);
}

/* Brand Logo */
.navbar-brand {
    text-decoration: none !important;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.navbar-brand img {
    height: 50px;
    width: auto;
    transition: var(--transition-smooth);
}

.navbar-brand:hover img {
    transform: scale(1.1) rotate(5deg);
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

/* Navigation Links */
.modern-nav-link {
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    font-weight: 500;
    color: #212529 !important;
}

.modern-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 2px;
    transition: width 0.3s ease-out;
}

.modern-nav-link:hover::after,
.modern-nav-link.active::after {
    width: 80%;
}

.modern-nav-link:hover {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.05) 100%);
    transform: translateY(-2px);
    color: var(--primary-color) !important;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.modern-nav-link.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

.modern-nav-link i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.modern-nav-link:hover i {
    transform: rotate(360deg) scale(1.2);
}

/* Dropdown Menu */
.modern-dropdown {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px);
    border: none !important;
    border-radius: 12px !important;
    box-shadow: var(--shadow-lg) !important;
    padding: 0.5rem !important;
    margin-top: 0.5rem !important;
    min-width: 220px;
    animation: fadeInDown 0.3s ease-out;
}

.modern-dropdown .dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: var(--transition-smooth);
    margin-bottom: 0.25rem;
    color: #212529;
}

.modern-dropdown .dropdown-item:hover {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.05) 100%);
    transform: translateX(-5px);
    color: var(--primary-color);
    padding-right: 1.25rem;
}

.modern-dropdown .dropdown-item i {
    margin-left: 0.75rem;
    color: var(--primary-color);
    transition: var(--transition-smooth);
}

.modern-dropdown .dropdown-item:hover i {
    transform: translateX(-3px);
}

/* Action Buttons */
.modern-cart-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 0.75rem 1.5rem !important;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.modern-cart-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out, opacity 0.6s ease-out;
}

.modern-cart-btn:active::before {
    width: 300px;
    height: 300px;
    opacity: 0;
}

.modern-cart-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.5);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%) !important;
}

.modern-cart-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.modern-cart-btn .badge {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%) !important;
    color: #000 !important;
    border-radius: 50% !important;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.4);
    top: -8px;
    left: -8px;
}

.modern-wallet-btn {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 0.75rem 1.5rem !important;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    transition: var(--transition-smooth);
}

.modern-wallet-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.5);
}

.modern-user-btn {
    background: rgba(220, 53, 69, 0.1) !important;
    border: 2px solid rgba(220, 53, 69, 0.3) !important;
    border-radius: 12px !important;
    padding: 0.5rem 1rem !important;
    color: var(--primary-color) !important;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.modern-user-btn:hover {
    background: rgba(220, 53, 69, 0.2) !important;
    border-color: rgba(220, 53, 69, 0.5) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.modern-auth-btn {
    border-radius: 12px !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-outline-danger.modern-auth-btn:hover {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

.btn-danger.modern-auth-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-danger.modern-auth-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.5);
}

/* Mobile Toggle Button */
.navbar-toggler {
    border: none !important;
    background: transparent !important;
    padding: 0.5rem !important;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.navbar-toggler:hover {
    background: rgba(220, 53, 69, 0.1) !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Mobile Menu */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        border-radius: 0 0 20px 20px;
        padding: 1.5rem;
        margin-top: 1rem;
        animation: slideInDown 0.4s ease-out;
    }

    .navbar-nav {
        gap: 0.5rem;
    }

    .modern-nav-link {
        padding: 1rem !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .modern-nav-link:hover {
        padding-right: 1.5rem;
        background: rgba(220, 53, 69, 0.1);
    }

    .action-buttons-mobile {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1rem;
    }

    .action-buttons-mobile .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   FOOTER - فوتر
   ======================================== */
.footer-enhanced {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-2) 50%, var(--bg-dark-3) 100%);
    color: #ffffff;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

.footer-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(220, 53, 69, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.footer-section {
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }

.footer-section h5,
.footer-section h6 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-section h5::after,
.footer-section h6::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 2px;
}

.footer-section h5 i,
.footer-section h6 i {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.footer-section p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* Footer Social Links */
.footer-section .social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-section .social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.footer-section .social-links a[href*="telegram"] {
    background: rgba(0, 136, 204, 0.2);
    border: 2px solid rgba(0, 136, 204, 0.5);
    color: #0088cc;
}

.footer-section .social-links a[href*="telegram"]:hover {
    background: #0088cc;
    color: #ffffff;
    transform: translateY(-5px) scale(1.1) rotate(360deg);
    box-shadow: 0 8px 20px rgba(0, 136, 204, 0.4);
}

.footer-section .social-links a[href*="instagram"] {
    background: rgba(228, 64, 95, 0.2);
    border: 2px solid rgba(228, 64, 95, 0.5);
    color: #E4405F;
}

.footer-section .social-links a[href*="instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
    transform: translateY(-5px) scale(1.1) rotate(360deg);
    box-shadow: 0 8px 20px rgba(228, 64, 95, 0.4);
}

.footer-section .social-links a[href*="whatsapp"] {
    background: rgba(37, 211, 102, 0.2);
    border: 2px solid rgba(37, 211, 102, 0.5);
    color: #25D366;
}

.footer-section .social-links a[href*="whatsapp"]:hover {
    background: #25D366;
    color: #ffffff;
    transform: translateY(-5px) scale(1.1) rotate(360deg);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.footer-section .social-links a[href*="linkedin"] {
    background: rgba(0, 119, 181, 0.2);
    border: 2px solid rgba(0, 119, 181, 0.5);
    color: #0077B5;
}

.footer-section .social-links a[href*="linkedin"]:hover {
    background: #0077B5;
    color: #ffffff;
    transform: translateY(-5px) scale(1.1) rotate(360deg);
    box-shadow: 0 8px 20px rgba(0, 119, 181, 0.4);
}

/* Footer Links */
.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.footer-section ul li a:hover {
    color: #ffffff;
    transform: translateX(-10px);
    border-bottom-color: var(--primary-color);
}

.footer-section ul li a i {
    margin-left: 0.75rem;
    width: 20px;
    color: var(--primary-color);
    transition: var(--transition-smooth);
}

.footer-section ul li a:hover i {
    transform: scale(1.2) rotate(-10deg);
}

/* Footer Contact Info */
.footer-section .contact-info {
    margin-bottom: 1.5rem;
}

.footer-section .contact-info p,
.footer-section .contact-info a {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-section .contact-info a:hover {
    color: var(--primary-color);
    transform: translateX(-5px);
}

.footer-section .contact-info i {
    margin-left: 0.75rem;
    width: 20px;
    color: var(--primary-color);
}

.footer-section .contact-info .fa-map-marker-alt {
    margin-top: 0.25rem;
    align-self: flex-start;
}

/* Newsletter */
.newsletter-signup {
    margin-top: 1.5rem;
}

.newsletter-signup h6 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.newsletter-signup p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.newsletter-signup form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    background: var(--glass-bg-dark);
    color: #ffffff;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-input:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    outline: none;
}

.newsletter-signup button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 25px;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.newsletter-signup button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.5);
}

/* Bottom Footer */
.footer-enhanced hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

.footer-bottom p,
.footer-bottom small {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-bottom a:hover {
    color: #ffffff;
}

.enamad-logo {
    height: 80px;
    width: auto;
    transition: var(--transition-smooth);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.enamad-logo:hover {
    transform: scale(1.1) translateY(-5px);
}

/* ========================================
   FLOATING ELEMENTS - عناصر شناور
   ======================================== */

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 100px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.4);
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: none;
}

.scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(220, 53, 69, 0.6);
}

/* Live Chat Widget */
.live-chat-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50px;
    padding: 1rem 1.5rem;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    cursor: pointer;
    animation: pulse 2s infinite;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.live-chat-widget:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

/* ========================================
   KEYFRAMES - انیمیشن‌ها
   ======================================== */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* ========================================
   RESPONSIVE - واکنش‌گرا
   ======================================== */

/* Action Buttons Wrapper */
.action-buttons-wrapper {
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* موبایل */
@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .modern-navbar {
        padding: 0.75rem 0;
    }

    .navbar-brand img {
        height: 40px;
    }

    .brand-text {
        font-size: 1.2rem;
    }

    .action-buttons-wrapper {
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
        gap: 0.75rem;
    }

    .action-buttons-wrapper > * {
        width: 100%;
    }

    .modern-cart-btn,
    .modern-wallet-btn,
    .modern-user-btn,
    .modern-auth-btn {
        padding: 0.75rem 1rem !important;
        font-size: 0.875rem;
        width: 100%;
        justify-content: center;
    }

    .modern-cart-btn .d-none,
    .modern-wallet-btn .d-none,
    .modern-user-btn .d-none {
        display: inline !important;
    }

    .cart-container,
    .wallet-container {
        width: 100%;
        margin: 0 !important;
    }

    .cart-points-display {
        text-align: center;
        margin-top: 0.5rem;
    }

    .footer-enhanced {
        padding: 3rem 0 1.5rem;
    }

    .footer-section {
        margin-bottom: 2rem;
        text-align: center;
    }

    .footer-section h5,
    .footer-section h6 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
        justify-content: center;
    }

    .footer-section p {
        font-size: 0.9rem;
    }

    .footer-section .social-links {
        justify-content: center;
    }

    .footer-section ul {
        text-align: center;
    }

    .footer-section ul li a {
        justify-content: center;
    }

    .contact-info {
        text-align: center;
    }

    .contact-info p,
    .contact-info a {
        justify-content: center;
    }

    .newsletter-signup {
        text-align: center;
    }

    .newsletter-signup form {
        flex-direction: column;
    }

    .newsletter-signup button {
        width: 100%;
    }

    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 80px;
        left: 20px;
        font-size: 1rem;
    }

    .live-chat-widget {
        bottom: 20px;
        left: 20px;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .live-chat-widget span {
        display: none;
    }

    .footer-bottom {
        text-align: center;
    }

    .footer-bottom .col-md-4 {
        margin-bottom: 1rem;
        text-align: center !important;
    }

    .enamad-logo {
        height: 60px;
    }
}

/* تبلت */
@media (min-width: 769px) and (max-width: 991.98px) {
    .top-bar small {
        font-size: 0.75rem;
    }

    .top-bar .social-links a {
        font-size: 1rem;
        width: 30px;
        height: 30px;
    }

    .action-buttons-wrapper {
        flex-wrap: wrap;
    }

    .modern-cart-btn,
    .modern-wallet-btn {
        padding: 0.6rem 1.2rem !important;
        font-size: 0.9rem;
    }

    .footer-section {
        margin-bottom: 2.5rem;
    }

    .navbar-brand img {
        height: 45px;
    }

    .brand-text {
        font-size: 1.3rem;
    }
}

/* کاهش حرکت برای کاربران حساس */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.3s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.3s !important;
    }
}

/* بهینه‌سازی عملکرد */
.modern-navbar,
.footer-enhanced,
.scroll-to-top,
.live-chat-widget {
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

