/* ============================================
   هدر و فوتِر جدید با طراحی iOS 26
   ============================================ */

/* ========== هدر iOS 26 Style ========== */
.ios-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 42, 57, 0.8);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-bottom: 1px solid rgba(184, 167, 136, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.ios-header.scrolled {
    background: rgba(26, 42, 57, 0.95);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.ios-header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.ios-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 24px;
}

/* لوگو */
.ios-header-logo {
    flex-shrink: 0;
}

.ios-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.ios-logo-link:hover {
    transform: scale(1.05);
}

.ios-logo-link:active {
    transform: scale(0.98);
}

.ios-logo-text {
    font-size: 22px;
    font-weight: 700;
    color: #E6E7E8;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #E6E7E8 0%, #B8A788 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* منوی ناوبری */
.ios-header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.ios-nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.ios-nav-link {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    text-decoration: none;
    color: rgba(230, 231, 232, 0.8);
    font-weight: 500;
    font-size: 15px;
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.ios-nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(184, 167, 136, 0.15);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.ios-nav-link:hover {
    color: #E6E7E8;
}

.ios-nav-link:hover::before {
    opacity: 1;
}

.ios-nav-link:active {
    transform: scale(0.96);
}

/* Dropdown منوی محصولات */
.ios-nav-dropdown {
    position: relative;
}

.ios-nav-dropdown::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.ios-nav-dropdown.active::before {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ios-nav-link-dropdown {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ios-dropdown-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.ios-nav-dropdown.active .ios-dropdown-arrow {
    transform: rotate(180deg);
}

.ios-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(90vw, 800px);
    min-width: 600px;
    max-width: calc(100vw - 40px);
    background: rgba(26, 42, 57, 0.98);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(184, 167, 136, 0.2);
    border-radius: 20px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5), 0 0 0 0.5px rgba(184, 167, 136, 0.1);
    padding: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    max-height: min(70vh, 600px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ios-nav-dropdown.active .ios-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* اطمینان از اینکه مگا منو از صفحه خارج نشود */
@media (max-width: 1400px) {
    .ios-dropdown-menu {
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
        width: min(90vw, 800px);
        min-width: auto;
    }
    
    .ios-nav-dropdown.active .ios-dropdown-menu {
        transform: translateX(-50%) translateY(0);
    }
}

/* اطمینان از اینکه در صفحات خیلی کوچک از صفحه خارج نشود */
@media (max-width: 768px) {
    .ios-dropdown-menu {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) translateY(-10px) !important;
        width: calc(100vw - 32px) !important;
        min-width: auto !important;
        max-width: calc(100vw - 32px) !important;
    }
    
    .ios-nav-dropdown.active .ios-dropdown-menu {
        transform: translateX(-50%) translateY(0) !important;
    }
}

.ios-mega-menu-header {
    padding: 24px 32px;
    border-bottom: 1px solid rgba(184, 167, 136, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.ios-mega-menu-title {
    font-size: 18px;
    font-weight: 700;
    color: #E6E7E8;
    margin: 0;
}

.ios-mega-menu-all-link {
    font-size: 14px;
    font-weight: 500;
    color: #B8A788;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 10px;
    background: rgba(184, 167, 136, 0.1);
    border: 1px solid rgba(184, 167, 136, 0.2);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ios-mega-menu-all-link:hover {
    background: rgba(184, 167, 136, 0.2);
    border-color: rgba(184, 167, 136, 0.3);
    color: #E6E7E8;
}

.ios-mega-menu-list {
    padding: 24px 32px;
    list-style: none;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    max-height: calc(70vh - 100px);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(184, 167, 136, 0.3) rgba(184, 167, 136, 0.1);
}

.ios-mega-menu-list::-webkit-scrollbar {
    width: 6px;
}

.ios-mega-menu-list::-webkit-scrollbar-track {
    background: rgba(184, 167, 136, 0.1);
    border-radius: 10px;
}

.ios-mega-menu-list::-webkit-scrollbar-thumb {
    background: rgba(184, 167, 136, 0.3);
    border-radius: 10px;
}

.ios-mega-menu-list::-webkit-scrollbar-thumb:hover {
    background: rgba(184, 167, 136, 0.5);
}


.ios-dropdown-link {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    color: rgba(230, 231, 232, 0.85);
    text-decoration: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid transparent;
}

.ios-dropdown-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(184, 167, 136, 0.1) 0%, rgba(184, 167, 136, 0.05) 100%);
    border-radius: 14px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.ios-dropdown-link:hover {
    background: rgba(184, 167, 136, 0.15);
    color: #E6E7E8;
    border-color: rgba(184, 167, 136, 0.3);
    transform: translateX(-4px);
}

.ios-dropdown-link:hover::before {
    opacity: 1;
}

.ios-dropdown-link-disabled {
    color: rgba(230, 231, 232, 0.4);
    cursor: not-allowed;
}

/* Dropdown موبایل */
.ios-mobile-nav-dropdown {
    position: relative;
}

.ios-mobile-nav-link-dropdown {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
}

.ios-mobile-dropdown-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.ios-mobile-nav-dropdown.active .ios-mobile-dropdown-arrow {
    transform: rotate(180deg);
}

.ios-mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 0;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(184, 167, 136, 0.05);
    border-radius: 14px;
    margin-top: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(184, 167, 136, 0.3) rgba(184, 167, 136, 0.1);
}

.ios-mobile-nav-dropdown.active .ios-mobile-dropdown-menu {
    max-height: 60vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.ios-mobile-dropdown-link {
    display: block;
    padding: 12px 20px 12px 60px;
    color: rgba(230, 231, 232, 0.7);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 12px;
    margin: 4px 8px;
}

.ios-mobile-dropdown-link:hover,
.ios-mobile-dropdown-link:active {
    background: rgba(184, 167, 136, 0.15);
    color: #E6E7E8;
}

.ios-mobile-dropdown-link-disabled {
    color: rgba(230, 231, 232, 0.4);
    cursor: not-allowed;
}

/* آیکون‌های اکشن */
.ios-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.ios-action-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(184, 167, 136, 0.1);
    border: 1px solid rgba(184, 167, 136, 0.2);
    color: #E6E7E8;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.ios-action-btn:hover {
    background: rgba(184, 167, 136, 0.2);
    border-color: rgba(184, 167, 136, 0.4);
    transform: scale(1.05);
}

.ios-action-btn:active {
    transform: scale(0.95);
}

.ios-action-btn svg {
    width: 22px;
    height: 22px;
}

.ios-cart-btn {
    position: relative;
}

.ios-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    border: 2px solid rgba(26, 42, 57, 0.9);
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.4);
}

/* دکمه منوی موبایل */
.ios-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 12px;
    border: none;
    border-radius: 12px;
    background: rgba(184, 167, 136, 0.1);
    border: 1px solid rgba(184, 167, 136, 0.2);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1001;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}

.ios-menu-toggle:hover {
    background: rgba(184, 167, 136, 0.2);
    border-color: rgba(184, 167, 136, 0.4);
}

.ios-menu-toggle span {
    width: 100%;
    height: 3px;
    background: #E6E7E8;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ios-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.ios-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.ios-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* منوی موبایل */
.ios-mobile-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(26, 42, 57, 0.98);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    border-bottom: 1px solid rgba(184, 167, 136, 0.2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
    z-index: 999;
}

.ios-mobile-nav.active {
    max-height: calc(100vh - 64px);
    opacity: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.ios-mobile-nav-content {
    padding: 16px 24px;
    min-height: 100%;
}

.ios-mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ios-mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    text-decoration: none;
    color: rgba(230, 231, 232, 0.8);
    font-weight: 500;
    font-size: 17px;
    border-radius: 14px;
    background: rgba(184, 167, 136, 0.05);
    border: 1px solid rgba(184, 167, 136, 0.1);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.ios-mobile-nav-link:hover,
.ios-mobile-nav-link:active {
    background: rgba(184, 167, 136, 0.15);
    border-color: rgba(184, 167, 136, 0.3);
    color: #E6E7E8;
    transform: translateX(-4px);
}

.ios-mobile-nav-link svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.ios-mobile-nav-link span {
    flex: 1;
}

/* فاصله برای محتوا */
body {
    padding-top: 64px;
}

/* ========== فوتِر iOS 26 Style ========== */
.ios-footer {
    background: rgba(26, 42, 57, 0.95);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-top: 1px solid rgba(184, 167, 136, 0.2);
    margin-top: 80px;
    padding: 60px 0 20px;
}

.ios-footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.ios-footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.ios-footer-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ios-footer-title {
    font-size: 24px;
    font-weight: 700;
    color: #E6E7E8;
    margin: 0;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #E6E7E8 0%, #B8A788 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ios-footer-description {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(230, 231, 232, 0.7);
    margin: 0;
}

.ios-footer-heading {
    font-size: 18px;
    font-weight: 600;
    color: #E6E7E8;
    margin: 0 0 12px 0;
}

.ios-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ios-footer-links li a {
    color: rgba(230, 231, 232, 0.7);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s ease;
    display: inline-block;
}

.ios-footer-links li a:hover {
    color: #B8A788;
    transform: translateX(-4px);
}

.ios-footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ios-footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(230, 231, 232, 0.7);
}

.ios-footer-contact li svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #B8A788;
}

.ios-footer-contact li a,
.ios-footer-contact li span {
    color: rgba(230, 231, 232, 0.7);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s ease;
    line-height: 1.6;
}

.ios-footer-contact li a:hover {
    color: #B8A788;
}

.ios-footer-contact li span {
    flex: 1;
    word-wrap: break-word;
}

.ios-footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(184, 167, 136, 0.1);
    text-align: center;
}

.ios-footer-copyright {
    font-size: 13px;
    color: rgba(230, 231, 232, 0.5);
    margin: 0;
}

/* ========== نوار پایین صفحه iOS Style ========== */
.ios-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 500px;
    z-index: 1000;
    background: rgba(26, 42, 57, 0.95);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(184, 167, 136, 0.2);
    border-radius: 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 0.5px rgba(184, 167, 136, 0.1);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    padding-bottom: max(12px, calc(12px + env(safe-area-inset-bottom)));
    direction: rtl;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    gap: 8px;
}

.ios-bottom-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    text-decoration: none;
    color: rgba(230, 231, 232, 0.6);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 16px;
    min-height: 64px;
}

.ios-bottom-item:hover,
.ios-bottom-item:active {
    color: #E6E7E8;
    background: rgba(184, 167, 136, 0.1);
    transform: translateY(-2px);
}

.ios-bottom-item.active {
    color: #B8A788;
}

.ios-bottom-item svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
    transition: all 0.2s ease;
}

.ios-bottom-item.active svg {
    transform: scale(1.1);
}

.ios-bottom-item span {
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.ios-bottom-item-primary {
    background: linear-gradient(135deg, rgba(184, 167, 136, 0.2) 0%, rgba(184, 167, 136, 0.15) 100%);
    color: #B8A788;
    border: 1px solid rgba(184, 167, 136, 0.3);
}

.ios-bottom-item-primary:hover,
.ios-bottom-item-primary:active {
    background: linear-gradient(135deg, rgba(184, 167, 136, 0.3) 0%, rgba(184, 167, 136, 0.2) 100%);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(184, 167, 136, 0.2);
}

.ios-bottom-badge {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(255, 68, 68, 0.4);
    border: 2px solid rgba(26, 42, 57, 0.9);
}

.ios-bottom-badge:empty {
    display: none;
}

/* ========== ریسپانسیو ========== */
@media (max-width: 1024px) {
    .ios-header-container {
        padding: 0 20px;
    }
    
    .ios-header-content {
        gap: 20px;
    }
    
    .ios-nav-link {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .ios-dropdown-menu {
        width: min(85vw, 700px);
        min-width: 500px;
        max-width: calc(100vw - 40px);
        max-height: 60vh;
    }
    
    .ios-mega-menu-list {
        max-height: calc(60vh - 100px);
    }
    
    .ios-mega-menu-header {
        padding: 20px 24px;
    }
    
    .ios-mega-menu-title {
        font-size: 16px;
    }
    
    .ios-mega-menu-list {
        padding: 20px 24px;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 14px;
    }
    
    .ios-footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .ios-header {
        height: 60px;
    }
    
    .ios-header-container {
        padding: 0 16px;
    }
    
    .ios-header-content {
        height: 60px;
        gap: 16px;
    }
    
    .ios-logo-text {
        font-size: 20px;
    }
    
    .ios-header-nav {
        display: none;
    }
    
    .ios-menu-toggle {
        display: flex;
    }
    
    .ios-action-btn {
        width: 40px;
        height: 40px;
    }
    
    .ios-action-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .ios-mobile-nav {
        top: 60px;
    }
    
    body {
        padding-top: 60px;
    }
    
    .ios-dropdown-menu {
        width: min(95vw, 600px);
        min-width: auto;
        max-width: calc(100vw - 32px);
        max-height: 65vh;
    }
    
    .ios-mega-menu-list {
        max-height: calc(65vh - 100px);
    }
    
    .ios-mega-menu-header {
        padding: 16px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .ios-mega-menu-title {
        font-size: 16px;
    }
    
    .ios-mega-menu-all-link {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .ios-mega-menu-list {
        padding: 16px 20px;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .ios-dropdown-link {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .ios-footer {
        padding: 40px 0 100px;
    }
    
    .ios-footer-container {
        padding: 0 20px;
    }
    
    .ios-footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .ios-bottom-bar {
        display: flex !important;
    }
    
    body {
        padding-bottom: 100px !important;
    }
}

@media (max-width: 480px) {
    .ios-header {
        height: 56px;
    }
    
    .ios-header-content {
        height: 56px;
        gap: 12px;
    }
    
    .ios-logo-text {
        font-size: 18px;
    }
    
    .ios-action-btn {
        width: 36px;
        height: 36px;
    }
    
    .ios-action-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .ios-menu-toggle {
        width: 36px;
        height: 36px;
        padding: 10px;
    }
    
    .ios-mobile-nav {
        top: 56px;
    }
    
    body {
        padding-top: 56px;
    }
    
    .ios-dropdown-menu {
        width: min(98vw, 100%);
        min-width: auto;
        max-width: calc(100vw - 32px);
        max-height: 60vh;
    }
    
    .ios-mega-menu-list {
        max-height: calc(60vh - 100px);
    }
    
    .ios-mega-menu-header {
        padding: 14px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .ios-mega-menu-title {
        font-size: 15px;
    }
    
    .ios-mega-menu-all-link {
        font-size: 12px;
        padding: 6px 12px;
        width: 100%;
        text-align: center;
    }
    
    .ios-mega-menu-list {
        padding: 14px 16px;
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .ios-dropdown-link {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .ios-footer {
        padding: 32px 0 96px;
    }
    
    .ios-footer-container {
        padding: 0 16px;
    }
    
    .ios-footer-title {
        font-size: 20px;
    }
    
    .ios-footer-heading {
        font-size: 16px;
    }
    
    .ios-bottom-bar {
        width: calc(100% - 32px);
        max-width: 450px;
        bottom: 16px;
        border-radius: 24px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        padding-bottom: max(10px, calc(10px + env(safe-area-inset-bottom)));
    }
    
    .ios-bottom-item {
        padding: 8px 4px;
        min-height: 60px;
        gap: 4px;
    }
    
    .ios-bottom-item svg {
        width: 22px;
        height: 22px;
    }
    
    .ios-bottom-item span {
        font-size: 10px;
    }
    
    body {
        padding-bottom: 96px !important;
    }
}

/* استایل نوار برای دسکتاپ - کوچک و در پایین صفحه */
@media (min-width: 769px) {
    .ios-bottom-bar {
        display: flex !important;
        max-width: 600px;
        width: auto;
        bottom: 12px;
        padding: 8px 12px;
        border-radius: 20px;
        gap: 6px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 0 0 0.5px rgba(184, 167, 136, 0.1);
    }
    
    .ios-bottom-item {
        min-height: 48px;
        padding: 6px 8px;
        gap: 4px;
        border-radius: 12px;
    }
    
    .ios-bottom-item svg {
        width: 20px;
        height: 20px;
    }
    
    .ios-bottom-item span {
        font-size: 10px;
        font-weight: 500;
    }
    
    .ios-bottom-item-primary {
        padding: 8px 10px;
    }
    
    .ios-bottom-item-primary svg {
        width: 22px;
        height: 22px;
    }
    
    body {
        padding-bottom: 0 !important;
    }
    
    .ios-footer {
        padding-bottom: 0;
    }
    
    /* بهبود hover effect برای دسکتاپ */
    .ios-bottom-item:hover {
        background: rgba(184, 167, 136, 0.15);
        transform: translateY(-2px);
    }
    
    .ios-bottom-item-primary:hover {
        background: linear-gradient(135deg, rgba(184, 167, 136, 0.3) 0%, rgba(184, 167, 136, 0.2) 100%);
        box-shadow: 0 4px 12px rgba(184, 167, 136, 0.25);
        transform: translateY(-2px);
    }
}

/* استایل نوار برای دسکتاپ بزرگ - کمی بزرگ‌تر اما هنوز کوچک */
@media (min-width: 1200px) {
    .ios-bottom-bar {
        max-width: 650px;
        padding: 10px 16px;
        gap: 8px;
        bottom: 15px;
    }
    
    .ios-bottom-item {
        min-height: 52px;
        padding: 8px 10px;
        gap: 5px;
    }
    
    .ios-bottom-item svg {
        width: 22px;
        height: 22px;
    }
    
    .ios-bottom-item span {
        font-size: 11px;
    }
    
    .ios-bottom-item-primary svg {
        width: 24px;
        height: 24px;
    }
}

/* انیمیشن ورود */
@keyframes iosHeaderSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ios-header {
    animation: iosHeaderSlideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* بهبود عملکرد */
.ios-header,
.ios-nav-link,
.ios-action-btn {
    will-change: transform;
}
