﻿:root {
    --brand: #ef3f58;
    --brand-dark: #d92c46;
    --ink: #262931;
    --muted: #747985;
    --line: #e9e9ed;
    --page: #f6f6f8;
    --surface: #fff;
    --cyan: #11b8cb;
    --shadow-soft: 0 10px 35px rgba(31, 35, 48, .075), 0 2px 8px rgba(31, 35, 48, .035);
    --shadow-hover: 0 18px 46px rgba(38, 43, 58, .13), 0 5px 14px rgba(38, 43, 58, .06);
}

.tangol .header-logo a {
    /* height: 110px; */
    background: #f9f9f7;
    border-radius: 8px;
    /* width: 140px; */
    max-width: 85px;
    text-align: center;
}

    .tangol .header-logo a img {
        /* height: 100%; */
    }

.caroluxe .header-logo img {
    max-height: 100px;
    border-radius: 8px;
}

.autocomplete-suggestions {
    background-color: #fff;
    border: 1px solid #efefef;
    overflow: auto
}

    .autocomplete-suggestions .disable-background {
        width: 100%;
        height: 100%;
        background-color: rgba(200,200,200,.2);
        z-index: 999991;
        position: absolute;
        top: 0;
        display: block;
        transition: .2s all ease-in-out
    }

        .autocomplete-suggestions .disable-background:hover {
            cursor: progress
        }

    .autocomplete-suggestions .fa-spin {
        position: absolute;
        top: 49%;
        left: 49%;
        font-size: 18px;
        z-index: 999992
    }

    .autocomplete-suggestions::-webkit-scrollbar {
        width: 10px
    }

    .autocomplete-suggestions::-webkit-scrollbar-thumb {
        -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.4);
        border: 3px solid transparent
    }

.autocomplete-suggestion {
    padding: 10px 15px 10px 10px;
    font-size: 12px;
    transition: .2s all ease-in-out
}

    .autocomplete-suggestion:hover {
        background-color: rgba(100,100,100,.1);
        cursor: pointer
    }

.autocomplete-group {
    padding: 10px;
    font-size: 12px;
    font-weight: bold;
    background-color: #efefef
}

.not-found::after {
    content: " ";
    clear: both;
    display: block
}

.not-found .not-found-icon {
    color: #ff8400;
    font-size: 100px;
    width: 150px;
    height: 150px;
    text-align: center;
    padding-top: 25px;
    float: right;
    border: 1px solid #cfcfcf;
    margin: 15px !important
}

.server-error::after {
    content: " ";
    clear: both;
    display: block
}

.server-error .server-error-icon {
    color: #b53737;
    font-size: 100px;
    width: 150px;
    height: 150px;
    text-align: center;
    padding-top: 25px;
    float: right;
    border: 1px solid #cfcfcf;
    margin: 15px !important
}

#zoom-container {
    right: 0;
    bottom: 0;
    top: 0;
    width: 700px;
    height: 100%;
    position: absolute;
    max-width: 100%;
}

.zoomContainer {
    z-index: 3 !important;
}

@media (max-width: 642px) {
    .zoom-container {
        display: none;
    }
}

.pswp__caption__center {
    text-align: center;
}

.ltr {
    direction: ltr;
    text-align: left;
}

.field-validation-error {
    color: #ef5661;
}

.alert {
    margin-bottom: 20px;
}

.header-logo {
    width: 100%;
    text-align: center;
}

.karen-baby .header-logo img {
    max-height: 100px;
}

.highstore-checkout-payment {
    padding: 9px 12px;
}

.user-credit-box {
    background: #EDF0F5;
    padding: 7px 12px;
}

/*----------------- Box Service -------------------*/
.slider-sidebar {
}

    .slider-sidebar .box-services {
        /* border: 2px solid rgba(0, 0, 0, 0.08); */
        border-radius: 5px;
        padding: 15px;
        /* height: 100%; */
        background: #fff;
        box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
    }

    .slider-sidebar .list-services {
        margin: 0;
        padding: 0;
    }

        .slider-sidebar .list-services .item-sr {
            list-style: none;
            border-bottom: 1px dotted var(--light-color);
            display: flex;
            align-items: center;
            padding: 18px 0;
            transition: all 0.4s;
        }

        .slider-sidebar .list-services:hover .item-sr {
            opacity: 0.3;
            filter: grayscale(1);
        }

        .slider-sidebar .list-services .item-sr:hover {
            opacity: 1;
            filter: grayscale(0);
        }

        .slider-sidebar .list-services .item-sr:last-child {
            border: none;
        }

    .slider-sidebar .item-sr .icon-sr img {
        width: 55px;
        margin-left: 15px;
    }

    .slider-sidebar .item-sr .info-sr {
        text-align: right;
        line-height: 1.8;
    }

    .slider-sidebar .item-sr .title-sr {
        display: block;
        font-size: 14px;
        font-weight: bold;
        color: var(--black-color);
        margin: 0;
        transition: all 0.4s;
    }

    .slider-sidebar .item-sr:hover .title-sr {
        color: var(--orange-color);
    }

    .slider-sidebar .item-sr .desc-sr {
        font-size: 12px;
        margin: 0;
        color: var(--gray-color);
    }


.banner-wrapper {
    display: inline-block;
    padding: 5px;
    border-radius: 8px;
    overflow: hidden;
}

    .banner-wrapper.w-25 {
        width: 25%;
    }

    .banner-wrapper.w-50 {
        width: 50%;
    }

    .banner-wrapper.w-100 {
        width: 100%;
    }

    .banner-wrapper img {
        border-radius: 8px;
    }


.brands-list {
    max-height: 215px;
    overflow-y: scroll;
    margin-top: 10px;
    scroll-behavior: smooth;
}

.bottom-sheet-btn {
    background-color: #f6831f;
    height: 36px;
    align-items: center;
    padding: 0 25px 2px;
    font-size: 14px;
    color: #fff;
    margin: 5px 5px;
    border-radius: 4px;
    border: none;
    transition: all 0.4s;
    cursor: pointer;
}

    .bottom-sheet-btn:hover {
        background-color: #333;
    }

/*------------------popup --------------------------*/
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

    .popup-overlay.active {
        display: flex;
    }

.popup-box {
    position: relative;
    width: 90%;
    max-width: 700px;
    background: #fff;
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
}

    .popup-box img {
        max-width: 100%;
        height: auto;
    }

.popup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

@media only screen and (min-width: 0px) and (max-width: 640px) {
    .popup-box {
        max-width: 95%;
        padding: 15px 10px;
    }
}

.category-wrapper {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;

    .highstore-breadcrumb {
        margin: 0 0 15px;
        padding: 0;
        font-size: 12px;
        color: #767676;
    }

        .highstore-breadcrumb a:hover {
            color: #000;
        }

        .highstore-breadcrumb .delimiter {
            margin: 0 7px;
            color: #CFCFCF;
        }

        .highstore-breadcrumb h1 {
            display: inline-block;
            padding: 0;
            font-size: 12px;
            color: #767676;
        }


    [data-showmore] {
        position: relative;
    }

    .showmore-button {
        cursor: pointer;
        text-align: center;
        font-weight: bold;
        position: absolute;
        bottom: 20px;
        height: 65px;
        /* padding: 15px; */
        line-height: 5;
        z-index: 999;
        width: 100%;
        /* border-radius: 10px 13px; */
    }

        .showmore-button:before {
            content: "";
            width: 100%;
            background-image: linear-gradient(180deg, hsla(0, 0%, 100%, 0.3), #FFF);
            position: absolute;
            /* top: -85px; */
            height: 64px;
            left: 0;
            border-radius: 25px;
        }

        .showmore-button:after {
            font-family: amazon;
            content: "\e0b1︎";
            position: absolute;
            top: 3px;
            margin-left: unset;
            margin-right: 5px;
        }

        .showmore-button.show:after {
            top: -3px;
            transform: rotate(180deg);
        }

    .category-hero {
        position: relative;
        overflow: hidden;
        margin-bottom: 1.25rem;
        padding: 1.6rem 1.7rem;
        border: 1px solid rgba(239, 63, 88, .09);
        border-radius: 18px;
        background: radial-gradient(circle at 3% 12%, rgba(239, 63, 88, .10), transparent 28%), radial-gradient(circle at 75% 0%, rgba(17, 184, 203, .08), transparent 27%), #fff;
        box-shadow: var(--shadow-soft);
        isolation: isolate;
    }

        .category-hero::after {
            content: '';
            position: absolute;
            inset-block-start: -80px;
            inset-inline-end: -55px;
            z-index: -1;
            width: 210px;
            height: 210px;
            border: 34px solid rgba(239, 63, 88, .045);
            border-radius: 50%;
        }

    .hero-kicker {
        display: inline-flex;
        align-items: center;
        gap: .45rem;
        margin-bottom: .55rem;
        color: var(--brand);
        font-size: .75rem;
        font-weight: 800;
    }

        .hero-kicker svg {
            width: 18px;
            height: 18px;
        }

    .category-title {
        margin: 0 0 .65rem;
        font-size: clamp(1.35rem, 1vw, 1.8rem);
        font-weight: 900;
        line-height: 1.5;
    }

    .category-description {
        /* max-width: 970px; */
        color: #666c77;
        line-height: 2;
    }

        .category-description p:last-child {
            margin-bottom: 0;
        }

        .category-description a {
            color: var(--brand-dark);
        }

    .subcategories-head {
        display: flex;
        align-items: end;
        justify-content: space-between;
        gap: 1rem;
        margin: 1.5rem 0 1rem;
    }

        .subcategories-head h2 {
            margin: 0 0 .3rem;
            font-size: 1.05rem;
            font-weight: 900;
        }

        .subcategories-head p {
            margin: 0;
            color: var(--muted);
            font-size: .76rem;
        }

    .all-categories {
        display: inline-flex;
        align-items: center;
        min-height: 42px;
        padding: .45rem .85rem;
        border: 1px solid #e7e7eb;
        border-radius: 10px;
        background: #fff;
        color: #575d67;
        font-size: .76rem;
        text-decoration: none;
        transition: border-color .22s ease, color .22s ease, box-shadow .22s ease;

        @media (max-width: 767px) {
            display: none;
        }
    }

        .all-categories:hover {
            border-color: rgba(239, 63, 88, .35);
            color: var(--brand);
            box-shadow: 0 7px 20px rgba(28, 32, 43, .07);
        }

    .modern-category-card {
        position: relative;
        display: block;
        height: 100%;
        min-height: 230px;
        overflow: hidden;
        border: 1px solid rgba(226, 227, 233, .82);
        border-radius: 16px;
        background: #fff;
        color: var(--ink);
        text-decoration: none;
        box-shadow: var(--shadow-soft);
        transition: box-shadow .24s ease, border-color .24s ease;


        .modern-category-card:hover {
            border-color: rgba(239, 63, 88, .22);
            color: var(--ink);
            box-shadow: var(--shadow-hover);
        }

        .modern-category-card:focus-visible {
            outline: 3px solid rgba(239, 63, 88, .3);
            outline-offset: 3px;
        }

        a {
            display: block;
        }
    }

    .subcategories-box {
        display: flex;
        flex-wrap: nowrap;
        gap: 16px;
        overflow-x: auto;
        overflow-y: hidden;
        width: 100%;
        /* حذف scroll-behavior موقتاً برای تست روان شدن رندر */
        scroll-behavior: auto;
        /* بهینه‌سازی شتاب سخت‌افزاری جهت جلوگیری از هنگ کردن مرورگر */
        transform: translate3d(0, 0, 0);
        will-change: scroll-position;
        /* پشتیبانی بهتر از لمس */
        -webkit-overflow-scrolling: touch;
        padding: 10px 4px;
    }

    .modern-category-card-item {
        flex: 0 0 250px;
        width: 250px;
        max-width: 100%;
        backface-visibility: hidden;

        @media (max-width:767px) {
            flex: 0 0 210px;
            width: 210px;
        }
    }

    .subcategories-box {
        cursor: grab;
        user-select: none; /* جلوگیری از سلکت شدن متن‌ها هنگام درگ کردن */
    }

        .subcategories-box:active {
            cursor: grabbing;
        }


    .card-visual {
        position: relative;
        height: 200px;
        overflow: hidden;
        background: var(--card-bg, #f4eef7);
    }

        .card-visual::after {
            content: '';
            position: absolute;
            inset: auto 0 0;
            height: 45px;
            background: linear-gradient(to top, rgba(255,255,255,.46), transparent);
        }

        .card-visual svg {
            width: 100%;
            height: 100%;
            transition: transform .3s ease;
        }

        .card-visual img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            transition: transform .3s ease;
        }

        .card-visual .category-card-icon {
            position: absolute;
            inset: 0;
            display: grid;
            place-items: center;
            color: rgba(70, 74, 85, .48);
            font-size: 5rem;
        }

    .modern-category-card:hover .card-visual svg {
        transform: scale(1.035);
    }

    .modern-category-card:hover .card-visual img {
        transform: scale(1.035);
    }

    .count-badge {
        position: absolute;
        inset-block-start: .75rem;
        inset-inline-start: .75rem;
        z-index: 2;
        padding: .32rem .58rem;
        border: 1px solid rgba(255,255,255,.68);
        border-radius: 30px;
        background: rgba(255,255,255,.88);
        color: #5e6470;
        box-shadow: 0 5px 18px rgba(32,36,46,.09);
        backdrop-filter: blur(8px);
        font-size: .68rem;
        font-weight: 700;
    }

    .card-copy {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .75rem;
        min-height: 78px;
        padding: .95rem 1rem;
    }

    .card-title-wrap {
        min-width: 0;
    }

        .card-title-wrap h3 {
            overflow: hidden;
            margin: 0 0 .3rem;
            font-size: .94rem;
            font-weight: 900;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .card-title-wrap span {
            color: #8a8f98;
            font-size: .7rem;
        }

    .card-arrow {
        display: grid;
        flex: 0 0 36px;
        width: 36px;
        height: 36px;
        place-items: center;
        border-radius: 50%;
        background: #f6f6f8;
        color: #6f7580;
        transition: background-color .22s ease, color .22s ease;
    }

        .card-arrow svg {
            width: 17px;
            height: 17px;
        }

    .modern-category-card:hover .card-arrow {
        background: var(--button-bg-color, #EF394E);
        color: #fff;
    }
}

aside.sidebar.sidebar-shop {
    padding-right: 0;
}

.shop-container {
    padding-left: 0;
}
