﻿.field-validation-error {
    color: red !important;
}

.SumOrderInBasket {
    font-size: 22px !important;
    color: blue;
}

.Edit-UserStar {
    color: red !important;
}


/* =========================================
   SHOP HEADER
========================================= */

.shop-header {
    width: 100%;
    background: #fff;
    position: relative;
    z-index: 9999;
    direction: rtl;
}


/* TOP BAR */

.shop-topbar {
    background: #151515;
    color: #fff;
    height: 42px;
}

.shop-topbar-inner {
    max-width: 1400px;
    height: 100%;
    margin: auto;
    padding: 0 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-item {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .topbar-item i {
        color: #6c2cff;
        font-size: 15px;
    }


/* HEADER MAIN */

.shop-header-main {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.shop-header-inner {
    max-width: 1400px;
    height: 115px;
    margin: auto;
    padding: 0 25px;
    display: flex;
    align-items: center;
    gap: 35px;
}


/* LOGO */

.shop-logo {
    width: 220px;
    flex-shrink: 0;
}

    .shop-logo a {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .shop-logo img {
        max-width: 190px;
        max-height: 75px;
        object-fit: contain;
    }


/* SEARCH */

.shop-search {
    flex: 1;
}

    .shop-search form {
        height: 58px;
        display: flex;
        border: 1px solid #e5e5e5;
        border-radius: 18px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 5px 20px rgba(0,0,0,.06);
    }

    .shop-search input {
        flex: 1;
        border: 0;
        outline: none;
        padding: 0 25px;
        font-family: inherit;
        font-size: 14px;
        color: #333;
        text-align: right;
    }

        .shop-search input::placeholder {
            color: #999;
        }

    .shop-search button {
        width: 68px;
        border: 0;
        background: #6c2cff;
        color: #fff;
        font-size: 22px;
        cursor: pointer;
        transition: .2s;
    }

        .shop-search button:hover {
            background: #5520d9;
        }


/* ACTIONS */

.shop-actions {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-shrink: 0;
}

.shop-account {
    position: relative;
}

.shop-account-btn,
.shop-cart-login {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    white-space: nowrap;
}

    .shop-account-btn > i:first-child,
    .shop-cart-login > i {
        font-size: 22px;
        color: #555;
    }

.account-arrow {
    font-size: 12px !important;
}


/* ACCOUNT DROPDOWN */

.account-dropdown {
    position: absolute;
    top: calc(100% + 20px);
    right: 0;
    width: 230px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(0,0,0,.12);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: .2s;
}

.shop-account:hover .account-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.account-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    color: #444;
    text-decoration: none;
    border-radius: 8px;
    font-size: 13px;
    transition: .2s;
}

    .account-dropdown a:hover {
        background: #f5f2ff;
        color: #6c2cff;
    }

.account-dropdown i {
    width: 18px;
    text-align: center;
}

.account-divider {
    height: 1px;
    background: #eee;
    margin: 7px 0;
}

.logout-link {
    color: #d62828 !important;
}


/* NAVIGATION */

.shop-navigation {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.shop-navigation-inner {
    max-width: 1400px;
    height: 62px;
    margin: auto;
    padding: 0 25px;
    display: flex;
    align-items: center;
    gap: 40px;
}


/* CATEGORY BUTTON */

.category-menu-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.category-menu-button {
    height: 46px;
    min-width: 210px;
    border: 0;
    border-radius: 12px;
    background: #6c2cff;
    color: #fff;
    padding: 0 18px;
    font-family: inherit;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
}

    .category-menu-button i:first-child {
        font-size: 18px;
    }

.category-arrow {
    font-size: 12px;
}


/* MAIN LINKS */

.main-navigation-links {
    display: flex;
    align-items: center;
    gap: 35px;
    height: 100%;
}

    .main-navigation-links a {
        color: #333;
        text-decoration: none;
        font-size: 14px;
        white-space: nowrap;
        position: relative;
    }

        .main-navigation-links a::after {
            content: "";
            position: absolute;
            right: 0;
            bottom: -20px;
            width: 0;
            height: 2px;
            background: #6c2cff;
            transition: .2s;
        }

        .main-navigation-links a:hover {
            color: #6c2cff;
        }

            .main-navigation-links a:hover::after {
                width: 100%;
            }


/* =========================================
   MEGA MENU
========================================= */

.mega-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: min(1100px, 90vw);
    background: #fff;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 18px 40px rgba(0,0,0,.13);
    padding: 25px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: .2s;
    z-index: 99999;
}

.category-menu-wrapper:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


.mega-categories {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}


.mega-category-column {
    min-width: 0;
    padding: 0 18px;
    border-left: 1px solid #eee;
}

    .mega-category-column:last-child {
        border-left: 0;
    }


.mega-category-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #222;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 15px;
}

    .mega-category-title i {
        color: #6c2cff;
        font-size: 12px;
    }

    .mega-category-title:hover {
        color: #6c2cff;
    }


.mega-category-item {
    display: block;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    padding: 7px 0;
    transition: .2s;
}

    .mega-category-item:hover {
        color: #6c2cff;
        padding-right: 5px;
    }


.mega-category-subitem {
    display: block;
    color: #888;
    text-decoration: none;
    font-size: 12px;
    padding: 4px 10px;
}

    .mega-category-subitem:hover {
        color: #6c2cff;
    }


.mega-show-all {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    color: #6c2cff !important;
    text-decoration: none;
    font-size: 12px;
}


/* =========================================
   MOBILE
========================================= */

.mobile-header,
.mobile-search,
.mobile-menu {
    display: none;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 992px) {

    .shop-topbar {
        display: none;
    }

    .shop-header-main,
    .shop-navigation {
        display: none;
    }

    .mobile-header {
        height: 70px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 18px;
        border-bottom: 1px solid #eee;
        background: #fff;
    }

    .mobile-menu-button,
    .mobile-cart {
        width: 42px;
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 0;
        background: transparent;
        color: #333;
        font-size: 21px;
        text-decoration: none;
    }

    .mobile-logo img {
        max-width: 145px;
        max-height: 50px;
        object-fit: contain;
    }

    .mobile-search {
        display: block;
        padding: 12px 18px;
        background: #fff;
        border-bottom: 1px solid #eee;
    }

        .mobile-search form {
            height: 48px;
            display: flex;
            border: 1px solid #ddd;
            border-radius: 12px;
            overflow: hidden;
        }

        .mobile-search input {
            flex: 1;
            border: 0;
            outline: none;
            padding: 0 15px;
            font-family: inherit;
        }

        .mobile-search button {
            width: 52px;
            border: 0;
            background: #6c2cff;
            color: #fff;
        }


    /* MOBILE MENU */

    .mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        right: -330px;
        width: 320px;
        max-width: 90%;
        height: 100vh;
        background: #fff;
        z-index: 100001;
        transition: .3s;
        overflow-y: auto;
    }

        .mobile-menu.active {
            right: 0;
        }

    .mobile-menu-header {
        height: 65px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 18px;
        background: #6c2cff;
        color: #fff;
        font-size: 15px;
        font-weight: bold;
    }

    .mobile-menu-close {
        border: 0;
        background: transparent;
        color: #fff;
        font-size: 20px;
    }

    .mobile-menu-content {
        padding: 10px;
    }

    .mobile-category {
        border-bottom: 1px solid #eee;
    }

        .mobile-category > a {
            display: inline-block;
            padding: 14px 8px;
            color: #333;
            text-decoration: none;
            font-size: 14px;
        }

        .mobile-category > i {
            float: left;
            padding: 15px;
            cursor: pointer;
        }

    .mobile-subcategories {
        display: none;
        padding: 0 20px 10px;
    }

    .mobile-category.open
    .mobile-subcategories {
        display: block;
    }

    .mobile-subcategories a {
        display: block;
        padding: 8px;
        color: #777;
        text-decoration: none;
        font-size: 13px;
    }

    .mobile-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.45);
        z-index: 100000;
    }

        .mobile-overlay.active {
            display: block;
        }
}
@media (max-width: 768px) {

    /* سبد خرید موبایل */
    .mobile-cart {
        position: relative;
        width: 42px;
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: visible;
    }


        /* ساختار داخلی Component */
        .mobile-cart .divider-space-card {
            display: block !important;
            margin: 0 !important;
            padding: 0 !important;
            list-style: none !important;
        }


        .mobile-cart .header-cart-basket {
            position: static !important;
            width: auto !important;
            height: auto !important;
            margin: 0 !important;
            padding: 0 !important;
        }


        /* خود دکمه سبد */
        .mobile-cart .cart-basket-box {
            position: relative !important;
            display: flex !important;
            width: 42px !important;
            height: 42px !important;
            align-items: center !important;
            justify-content: center !important;
            padding: 0 !important;
            margin: 0 !important;
            text-decoration: none !important;
        }


        /* آیکون */
        .mobile-cart .icon-cart {
            display: flex !important;
            width: 42px !important;
            height: 42px !important;
            align-items: center !important;
            justify-content: center !important;
            margin: 0 !important;
            padding: 0 !important;
        }


            .mobile-cart .icon-cart i {
                display: block !important;
                font-size: 23px !important;
                line-height: 1 !important;
            }


        /* عنوان سبد خرید */
        .mobile-cart .title-cart {
            display: none !important;
        }


        /* قیمت */
        .mobile-cart .price-cart {
            display: none !important;
        }


        /* تعداد محصولات */
        .mobile-cart .count-cart {
            position: absolute !important;
            top: -3px !important;
            right: -4px !important;
            display: flex !important;
            min-width: 18px !important;
            height: 18px !important;
            padding: 0 4px !important;
            align-items: center !important;
            justify-content: center !important;
            border-radius: 50% !important;
            font-size: 11px !important;
            line-height: 18px !important;
            background: #ff3b30 !important;
            color: #fff !important;
            z-index: 20 !important;
        }


}