/* =========================================================
   Nozhan Language Switcher
   Desktop + Mobile
   ========================================================= */


/* =========================================================
   Desktop Language Switcher
   ========================================================= */

.nozhan-language-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    direction: rtl;
    z-index: 1000;
}


/* Main Toggle */

.nozhan-language-toggle {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 40px;

    padding: 8px 10px;

    border: 0;
    border-radius: 10px;

    background: transparent;

    color: inherit;

    font-family: inherit;
    font-size: inherit;

    cursor: pointer;

    white-space: nowrap;
}


/* Flag */

.nozhan-language-flag {
    width: 24px;
    height: 18px;

    object-fit: cover;

    flex-shrink: 0;

    display: block;
}


/* Current Language */

.nozhan-language-current {
    display: inline-flex;

    align-items: center;

    white-space: nowrap;
}


/* Arrow */

.nozhan-language-arrow {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    font-size: 14px;

    line-height: 1;

    transition: transform 0.2s ease;
}


/* Rotate Arrow */

.nozhan-language-switcher.open
.nozhan-language-arrow {
    transform: rotate(180deg);
}


/* Desktop Dropdown */

.nozhan-language-dropdown {
    position: absolute;

    top: calc(100% + 8px);

    right: 0;

    width: 150px;

    padding: 6px;

    display: none;

    flex-direction: column;

    gap: 2px;

    border-radius: 10px;

    background: #fff;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.12);

    box-sizing: border-box;
}


/* Open */

.nozhan-language-switcher.open
.nozhan-language-dropdown {
    display: flex;
}


/* Desktop Item */

.nozhan-language-item {
    display: flex;

    align-items: center;

    gap: 10px;

    width: 100%;

    padding: 10px 12px;

    border-radius: 8px;

    box-sizing: border-box;

    text-decoration: none;

    color: inherit;

    white-space: nowrap;

    transition:
        background 0.2s ease;
}


/* Desktop Item Flag */

.nozhan-language-item .nozhan-language-flag {
    width: 24px;
    height: 18px;

    flex-shrink: 0;
}


/* Hover */

.nozhan-language-item:hover {
    background: rgba(0, 0, 0, 0.05);
}


/* Active */

.nozhan-language-item.active {
    background: rgba(0, 0, 0, 0.05);
}


/* Dark */

.dark .nozhan-language-dropdown {
    background: #030A1B;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.30);
}


.dark .nozhan-language-item:hover,
.dark .nozhan-language-item.active {
    background: rgba(255, 255, 255, 0.08);
}


/* =========================================================
   Mobile Language Switcher
   ========================================================= */

.nozhan-mobile-language-box {
    position: relative;

    width: 100%;

    margin-top: 10px;

    direction: rtl;

    box-sizing: border-box;
}


/* Mobile Toggle */

.nozhan-mobile-language-toggle {
    width: 100%;

    min-height: 48px;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 12px 14px;

    margin: 0;

    border: 0;

    border-radius: 10px;

    background: transparent;

    color: inherit;

    font-family: inherit;

    font-size: inherit;

    line-height: 1.5;

    cursor: pointer;

    text-align: right;

    box-sizing: border-box;
}


/* Mobile Flag */

.nozhan-mobile-language-toggle
.nozhan-language-flag {
    width: 24px;

    height: 18px;

    object-fit: cover;

    flex-shrink: 0;

    display: block;
}


/* Mobile Current Language */

.nozhan-mobile-language-toggle > span:not(
    .nozhan-mobile-language-arrow
) {
    flex: 1;

    text-align: right;
}


/* Mobile Arrow */

.nozhan-mobile-language-arrow {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    font-size: 14px;

    line-height: 1;

    flex-shrink: 0;

    transition:
        transform 0.2s ease;
}


/* Rotate Mobile Arrow */

.nozhan-mobile-language-box.open
.nozhan-mobile-language-arrow {
    transform: rotate(180deg);
}


/* =========================================================
   Mobile Dropdown
   ========================================================= */

.nozhan-mobile-language-dropdown {
    display: none;

    width: 100%;

    margin-top: 4px;

    padding: 6px;

    border-radius: 10px;

    background: #fff;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.10);

    box-sizing: border-box;
}


/* Open */

.nozhan-mobile-language-box.open
.nozhan-mobile-language-dropdown {
    display: block;
}


/* =========================================================
   Mobile Language Item
   ========================================================= */

.nozhan-mobile-language-item {
    display: flex;

    align-items: center;

    gap: 10px;

    width: 100%;

    min-height: 42px;

    padding: 10px 12px;

    margin: 0;

    border-radius: 8px;

    box-sizing: border-box;

    text-decoration: none;

    color: inherit;

    font-family: inherit;

    font-size: inherit;

    line-height: 1.5;

    text-align: right;

    transition:
        background 0.2s ease;
}


/* Mobile Item Flag */

.nozhan-mobile-language-item img {
    width: 24px;

    height: 18px;

    object-fit: cover;

    flex-shrink: 0;

    display: block;
}


/* Mobile Item Text */

.nozhan-mobile-language-item span {
    flex: 1;

    text-align: right;
}


/* Mobile Hover */

.nozhan-mobile-language-item:hover {
    background: rgba(0, 0, 0, 0.05);
}


/* =========================================================
   Mobile Dark Mode
   ========================================================= */

.dark .nozhan-mobile-language-dropdown {
    background: #030A1B;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.30);
}


.dark .nozhan-mobile-language-item:hover {
    background: rgba(255, 255, 255, 0.08);
}


/* =========================================================
   Desktop / Mobile Visibility
   ========================================================= */

@media (min-width: 769px) {

    .nozhan-mobile-language-box {
        display: none !important;
    }

}


@media (max-width: 768px) {

    .nozhan-language-switcher {
        display: none !important;
    }

    .nozhan-mobile-language-box {
        display: block;
    }

}


/* =========================================================
   Small Phones
   ========================================================= */

@media (max-width: 480px) {

    .nozhan-mobile-language-toggle {
        min-height: 46px;

        padding: 11px 12px;
    }

    .nozhan-mobile-language-item {
        min-height: 40px;

        padding: 9px 10px;
    }

}

.nozhan-cart{
    z-index: 1 !important;
}