body {
    background-image: url('../../images/bg.png');
    background-repeat: repeat;
    background-size: 400px 400px;
    background-color: #ffffff;
    overflow-y: scroll;
    scrollbar-width: thin;
    scrollbar-color: #EFE7DA transparent;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #EFE7DA;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e8dfd0;
}

header {
    width: 100%;
    padding: 0;
    position: relative;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    background-color: #fff;
    position: relative;
    z-index: 1001;
}

.logo {
    height: 50px;
    width: auto;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.divider {
    width: 1px;
    height: 25px;
    background: linear-gradient(to bottom, transparent, #11111133, transparent);
}

.action-item {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: #111111;
}

.action-item svg {
    width: 25px;
    height: 25px;
    flex-shrink: 0;
    display: block;
    padding: 8px;
    border-radius: 50%;
    box-sizing: content-box;
    transition: background-color 0.3s;
}

.action-item svg:hover {
    background-color: #11111111;
}

.action-item.wishlist:hover svg {
    fill: #E74C3C;
    stroke: #E74C3C;
}

.action-item.basket {
    color: #927664;
}

.action-item span {
    font-size: 14px;
    margin-top: 3px;
    opacity: 0.6;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.menu-toggle svg {
    width: 32px;
    height: 32px;
    stroke: #111;
}

.search-form {
    display: flex;
    align-items: center;
    background-color: #EAE9E7;
    overflow: hidden;
    border: 1px solid transparent;
    cursor: pointer;
}

.search-head,
.search-results {
    display: none;
}

.search-panel,
.search-bar,
.search-pill {
    display: contents;
}

.search-form button {
    background: none;
    border: none;
    padding: 8px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    border-radius: 50%;
    pointer-events: none;
}

.search-form button svg {
    width: 25px;
    height: 25px;
    color: #333;
}

.search-form input {
    border: none;
    background-color: #EAE9E7;
    font-family: Vazirmatn, Arial, sans-serif;
    outline: none;
    font-size: 13px;
    width: 275px;
    padding: 20px 20px 15px 0;
    margin: 0;
    pointer-events: none;
}

.search-form.active {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
    overflow-y: auto;
}

.search-form.active .search-panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 800px;
    background: #fff;
    margin-top: 20px;
    overflow: hidden;
    padding-top: 25px;
    z-index: 100;
}

.search-form.active .search-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
}

.search-label {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #111;
    padding: 0 30px;
}

.search-form .search-close {
    background: none;
    border: none;
    padding: 0 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    border-radius: 50%;
    color: #111;
    pointer-events: auto;
    transition: background-color 0.3s;
}

.search-form .search-close svg {
    width: 25px;
    height: 25px;
}

.search-form.active .search-bar {
    display: block;
    padding: 10px 25px;
    padding-bottom: 25px;
}

.search-form.active .search-pill {
    display: flex;
    align-items: center;
    background-color: #EAE9E7;
    border-radius: 8px;
    overflow: hidden;
}

.search-form.active .search-pill button,
.search-form.active input {
    pointer-events: auto;
}

.search-form.active input {
    width: 100%;
    font-size: 15px;
    padding: 16px 20px 16px 0;
}

.search-form.active .search-results {
    display: block;
    padding: 0 40px;
}

.main-nav {
    width: 100%;
    background-color: #fff;
    position: relative;
    z-index: 99;
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 30px;
    padding: 10px;
    margin: 0;
}

.nav-list>li {
    position: static;
}

.nav-list>li>a {
    text-decoration: none;
    color: #111;
    font-size: 18px;
    font-weight: 400;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    border-radius: 4px;
}

.nav-list>li>a:hover {
    background-color: #92766425;
}

.arrow-icon {
    display: inline-block;
    width: 30px;
    height: 30px;
    margin-bottom: 2px;
}

.mobile-arrow {
    display: inline-block;
    width: 25px;
    height: 25px;
    margin-left: 8px;
}

.dropdown.active .arrow-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 10px;
    display: none;
    z-index: 1002;
    list-style: none;
    border-top: 1px solid #e5e5e5;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.dropdown-menu.active {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dropdown-menu li {
    flex: 0 0 auto;
}

.dropdown-menu li a {
    display: block;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    text-align: right;
    white-space: nowrap;
    transition: border-color 0.2s;
    border: 1px solid transparent;
    border-radius: 4px;
}

.dropdown-menu li a:hover {
    border-color: #92766425;
    background: #f5f5f5;
}

body:has(.dropdown.active)::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.300);
    z-index: 999;
    pointer-events: none;
}

.color-dot {
    display: inline-block;
    width: 22px;
    height: 25px;
    flex-shrink: 0;
    border: 1px solid rgb(0, 0, 0);
    border-radius: 4px;
}

.dropdown-menu li:has(.color-dot) {
    position: relative;
    flex: 0 0 auto;
    height: 41px;
    overflow: hidden;
    isolation: isolate;
}

.dropdown-menu li:has(.color-dot) a {
    background-color: #f5f5f5;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 100%;
    box-sizing: border-box;
    padding-inline-start: 40px;
    padding-inline-end: 12px;
    white-space: nowrap;
    border-radius: 4px;
}

.dropdown-menu li:has(.color-dot) .label {
    flex-shrink: 0;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
    margin-top: 5px;
    margin-right: 3px;
    margin-left: 3px;
    transition: opacity 0.25s ease;
}

.dropdown-menu li:has(.color-dot) .color-dot {
    position: absolute;
    top: 8px;
    inset-inline-start: 10px;
    width: 25px;
    height: 25px;
    margin: 0;
    border-radius: 4px;
    z-index: 1;
    border: 1px solid rgb(0, 0, 0);
    transition: width 0.25s ease;
}

.dropdown-menu li:has(.color-dot):hover .label {
    opacity: 0;
}

.dropdown-menu li:has(.color-dot):hover .color-dot {
    width: calc(100% - 20px);
}

.color-green {
    background-color: #88ad78;
}

.color-pink {
    background-color: #E8A0BF;
}

.color-orange {
    background-color: #fa5e00;
}

.color-blue {
    background-color: #2a5d96;
}

.color-black_white {
    background: linear-gradient(135deg, #2C2C2C 50%, #F5F5F5 50%);
}

.color-gold {
    background: radial-gradient(ellipse farthest-corner at right bottom, #fedb37 0, #fdb931 8%, #9f7928 30%, #8a6e2f 40%, transparent 80%), radial-gradient(ellipse farthest-corner at left top, #fff 0, #ffffac 8%, #d1b464 25%, #5d4a1f 62.5%, #5d4a1f 100%);
}

.color-gray {
    background-color: #bebebe;
}

.color-yellow {
    background-color: #F6D330;
}

.color-red {
    background-color: #de1a21;
}

.color-multi_color {
    background: linear-gradient(30deg, #833ab4 17%, #fd1d1d 53%, #fcd745 96%);
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu-panel {
    position: fixed;
    top: 105px;
    right: -100%;
    width: 100%;
    max-width: 100%;
    height: calc(100% - 70px);
    background: #fff;
    z-index: 99;
    padding: 20px;
    overflow-y: auto;
}

.mobile-menu-panel.active {
    right: 0;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.250);
}

.mobile-nav-list>li {
    border-bottom: 1px solid #f5f5f5;
}

.mobile-nav-list>li>a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    text-decoration: none;
    color: #111;
    font-size: 16px;
    font-weight: 400;
    word-break: break-word;
}

.mobile-nav-list>li>a:hover {
    color: #927664;
}

.mobile-nav-list .mobile-arrow {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 10px;
}

.mobile-nav-list .mobile-arrow.active {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    list-style: none;
    padding: 0 0 10px 15px;
    margin: 0;
    display: none;
}

.mobile-dropdown-menu.active {
    display: block;
}

.mobile-dropdown-menu li a {
    display: block;
    padding: 12px 0;
    text-decoration: none;
    color: #555;
    font-size: 14px;
    border-bottom: 1px solid #f8f8f8;
    word-break: break-word;
}

.mobile-dropdown-menu li a:hover {
    color: #927664;
}

.mobile-dropdown-menu li:last-child a {
    border-bottom: none;
}

.mobile-dropdown-menu .mobile-color-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f8f8f8;
    word-break: break-word;
}

.mobile-dropdown-menu .mobile-color-item .color-dot {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-dropdown-menu .mobile-color-item .label {
    font-size: 14px;
    color: #555;
}

.mobile-menu-actions {
    display: none;
    flex-direction: column;
    gap: 0;
    padding-top: 10px;
}

.mobile-action-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    text-decoration: none;
    color: #111;
    font-size: 15px;
    border-bottom: 1px solid #f5f5f5;
}

.mobile-action-item:last-child {
    border-bottom: none;
}

.mobile-action-item .left-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-action-item .left-content span {
    order: 1;
}

.mobile-action-item .left-content .count {
    order: 2;
    font-size: 13px;
    color: #888;
}

.mobile-action-item svg {
    width: 25px;
    height: 25px;
    stroke: #111;
    flex-shrink: 0;
    order: 3;
}

@media (max-width: 1080px) {
    .mobile-menu-actions {
        display: flex;
    }
}

.menu-toggle .close-icon {
    display: none;
}

.menu-toggle.active .menu-icon {
    display: none;
}

.menu-toggle.active .close-icon {
    display: block;
}

@media (max-width: 1080px) {
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        order: 2;
    }

    .header-top {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        padding: 0px 0;
        gap: 8px;
    }

    .logo {
        height: 35px;
        order: 1;
    }

    .header-actions {
        display: none;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 6px;
        order: 3;
        width: 100%;
        flex: 0 0 100%;
        margin-top: 4px;
    }

    .search-form.mobile-search {
        order: 4;
        width: 100%;
        flex: 0 0 100%;
        display: flex !important;
    }

    .search-form.mobile-search input {
        width: 100%;
        font-size: 13px;
        padding: 14px 12px 12px 0;
    }

    .search-form.mobile-search button svg {
        width: 20px;
        height: 20px;
    }

    .header-group {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .header-group .action-item {
        display: flex !important;
    }

    .action-item svg {
        width: 25px;
        height: 25px;
        padding: 5px;
    }

    .action-item span {
        font-size: 12px;
    }

    .divider {
        display: block !important;
        height: 20px;
        width: 1px;
        background: linear-gradient(to bottom, transparent, #11111133, transparent);
    }

    .main-nav {
        display: none;
    }

    .search-form.active .search-panel {
        width: 100%;
        width: calc(100% - 30px);
    }
}