
/* Shop Header Styles */
.shop-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1030;
    /* min-height: 100px; */
    /* position: relative; */

}

/* Top Bar */
.shop-top-bar {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 7px 0;
    font-size: 13px;
}

.shop-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.shop-top-bar .shop-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shop-top-bar-left {
    display: flex;
    gap: 20px;
}

.shop-contact-info {
    display: flex;
    align-items: center;
    gap: 5px;
}

.shop-contact-info a {
    color: #ecf0f1;
    text-decoration: none;
}

.shop-contact-info i {
    font-size: 12px;
    color: #3498db;
}

.shop-top-bar-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.shop-lang-select,
.shop-currency-select {
    background: transparent;
    border: 1px solid #34495e;
    color: #ecf0f1;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

.shop-lang-select option,
.shop-currency-select option {
    background: #2c3e50;
    color: #ecf0f1;
}

/* Main Header */
.shop-main-header {
    padding: 10px 0;
    background: #ffffff;
}

.shop-header-top {
    display: flex;
    align-items: center;
    gap: 30px;

}

.shop-logo-section {
    flex-shrink: 0;
}

.shop-logo {
    height: 50px;
    transition: all 0.3s ease;
}

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

.shop-search-section {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.shop-search-wrapper {
    display: flex;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.shop-search-wrapper:focus-within {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.shop-search-input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    background: transparent;
    font-size: 14px;
    outline: none;
}

.shop-category-select {
    border: none;
    background: #e9ecef;
    padding: 12px 15px;
    font-size: 14px;
    cursor: pointer;
    border-left: 1px solid #dee2e6;
}

.shop-search-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shop-search-btn:hover {
    background: #2980b9;
}

.shop-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.shop-user-menu {
    position: relative;
}

.shop-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid #e9ecef;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #495057;
}

.shop-user-btn:hover {
    background: #f8f9fa;
    border-color: #3498db;
}

.shop-user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.shop-user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.shop-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f8f9fa;
}

.shop-dropdown-item:last-child {
    border-bottom: none;
}

.shop-dropdown-item:hover {
    background: #f8f9fa;
    color: #3498db;
}

.shop-cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.shop-cart-btn:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.shop-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #2c3e50;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

/* Navigation */
.shop-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
}

.shop-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 30px;
}

.shop-nav > ul > li {
    position: relative;
}

.shop-nav > ul > li > a {
    display: block;
    padding: 10px 0;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.shop-nav > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #3498db;
    transition: width 0.3s ease;
}

.shop-nav > ul > li > a:hover {
    color: #3498db;
}

.shop-nav > ul > li > a:hover::after {
    width: 100%;
}

.shop-nav .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 1002;
}

.shop-nav .has-submenu:hover > .submenu {
    display: block;
}

.shop-nav .submenu li a {
    display: block;
    padding: 10px 20px;
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.shop-nav .submenu li a:hover {
    background: #f8f9fa;
    color: #3498db;
    padding-left: 25px;
}

/* Shop Menu Styles */
.shop-menu-list {
    display: flex;
    align-items: center;
    gap: 25px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.shop-menu-item {
    position: relative;
}

.shop-menu-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.shop-menu-link:hover {
    background: #f8f9fa;
    color: #3498db;
    transform: translateY(-1px);
}

.shop-menu-link i:first-child {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.shop-menu-arrow {
    font-size: 12px;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.shop-menu-has-submenu:hover .shop-menu-arrow {
    transform: rotate(180deg);
}

.shop-menu-badge {
    background: #e74c3c;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
    margin-left: 8px;
}

.shop-menu-badge-new {
    background: #27ae60;
}

.shop-menu-deals {
    background: linear-gradient(45deg, #e74c3c, #f39c12);
    color: white;
}

.shop-menu-deals:hover {
    background: linear-gradient(45deg, #c0392b, #e67e22);
    color: white;
}

/* Submenu Styles */
.shop-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 250px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 12px 0;
    z-index: 1002;
    border: 1px solid #e9ecef;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.shop-menu-has-submenu:hover .shop-submenu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: fadeInUp 0.3s ease;
}

.shop-submenu-item {
    position: relative;
}

.shop-submenu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.shop-submenu-link:hover {
    background: #f8f9fa;
    color: #3498db;
    padding-left: 25px;
}

.shop-submenu-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.shop-menu-has-submenu:hover .shop-submenu-arrow {
    transform: rotate(90deg);
}

/* Sub-submenu Styles */
.shop-sub-submenu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 12px 0;
    z-index: 1003;
    border: 1px solid #e9ecef;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.shop-submenu-item:hover .shop-sub-submenu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    animation: fadeInLeft 0.3s ease;
}

.shop-sub-submenu-link {
    display: block;
    padding: 10px 20px;
    color: #495057;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.shop-sub-submenu-link:hover {
    background: #f8f9fa;
    color: #3498db;
    padding-left: 25px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.shop-nav-actions {
    display: flex;
    gap: 15px;
}

.shop-deals-btn,
.shop-new-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.shop-deals-btn {
    background: #e74c3c;
    color: white;
}

.shop-deals-btn:hover {
    background: #c0392b;
    color: white;
}

.shop-new-btn {
    background: #f39c12;
    color: white;
}

.shop-new-btn:hover {
    background: #e67e22;
    color: white;
}

/* Mobile Menu Toggle */
.shop-mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.shop-mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #2c3e50;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.shop-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.shop-overlay.active {
    display: block;
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .shop-header-top {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .shop-search-section {
        order: 3;
        max-width: 100%;
        width: 100%;
    }
    
    .shop-actions {
        margin-left: auto;
    }
}

@media (max-width: 768px) {
    .shop-top-bar {
        display: none;
    }
    
    .shop-mobile-menu-toggle {
        display: block;
    }
    
    .shop-header-top {
        justify-content: space-between;
    }
    
    .shop-search-section {
        display: none;
    }
    
    .shop-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        padding: 80px 20px 20px;
        transition: left 0.3s ease;
        overflow-y: auto;
        z-index: 1000;
    }
    
    .shop-nav.active {
        left: 0;
    }
    
    .shop-nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .shop-nav > ul > li {
        width: 100%;
        border-bottom: 1px solid #e9ecef;
    }
    
    .shop-nav > ul > li > a {
        padding: 15px 0;
        border-bottom: none;
    }
    
    .shop-nav .submenu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        background: #f8f9fa;
        margin-left: 20px;
    }
    
    .shop-nav .has-submenu.active .submenu {
        display: block;
    }
    
    /* Shop Menu Mobile Styles */
    .shop-menu-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .shop-menu-item {
        width: 100%;
        border-bottom: 1px solid #e9ecef;
    }
    
    .shop-menu-link {
        padding: 15px 0;
        border-radius: 0;
        justify-content: space-between;
    }
    
    .shop-menu-link:hover {
        transform: none;
        background: #f8f9fa;
    }
    
    .shop-submenu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        background: #f8f9fa;
        margin-left: 20px;
        border: none;
        padding: 0;
    }
    
    .shop-menu-has-submenu.active .shop-submenu {
        display: block;
    }
    
    .shop-sub-submenu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        background: #e9ecef;
        margin-left: 20px;
        border: none;
        padding: 0;
    }
    
    .shop-submenu-item.active .shop-sub-submenu {
        display: block;
    }
    
    .shop-nav-actions {
        display: none;
    }
    
    .shop-mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .shop-mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .shop-mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

@media (max-width: 480px) {
    .shop-container {
        padding: 0 15px;
    }
    
    .shop-logo {
        height: 40px;
    }
    
    .shop-actions {
        gap: 15px;
    }
    
    .shop-user-text {
        display: none;
    }
}

#shopNavigation {
    /* transition: max-height 0.4s ease, opacity 0.3s ease; */
    transform: translateY(0);
    /* opacity: 1; */
    display: flex;
    pointer-events: auto;
    position: relative;
}

#shopNavigation.hidden {
    transform: translateY(-100%);
    /* visibility: hidden; */
    display: none;
    pointer-events: none; /* تا وقتی مخفیه، کلیک‌پذیر نباشه */
}

.shop-search-result {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    z-index: 1000;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    padding: 10px;
    display: none;
}
.shop-search-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.shop-search-result-item-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.shop-search-result-item-title {
    text-align: start;
    font-size: 14px;
    font-weight: 500;
}