﻿ 
:root {
    --main-bg-color: #F5A623;
    --cream-bg: #fff6e9;
    --send-bg: #83C764;
}

html, body {
    height: auto !important; 
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto !important; 
}


/*html, body {
    height: 100%;
    margin: 0;
}*/

.app-wrapper {
    width: 100%;
    max-width: 430px;
    min-height: 110vh;
    /*padding-bottom: calc(100px + env(safe-area-inset-bottom));*/
    margin: 0 auto;
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

* {
    box-sizing: border-box;
    font-family: "IRANSansWeb";
}


body {
    margin: 0;
    padding: 0;
    direction: rtl;
    padding-bottom: 85px;
    height: 100%;
    display: flex;
    justify-content: center;
    background-color: #f7f7f7;
}

.site-header {
    padding: 10px;
    /*margin: 10px;*/
}

.header-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
}


.logo img {
    width: auto;
    height: 100px;
    max-width: 100%;
    object-fit: contain;
    display: block;
    /*margin: 0 auto; */
}


.selected-province {
    display: inline-block;
    background: #fff;
    color: #333;
    border: 1px solid #F5A623;
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 14px;
    margin: 10px;
    cursor: pointer;
    position: relative;
}


    .selected-province .close-btn {
        color: #000;
        border-radius: 50%;
        padding: 6px 13px 6px 0;
        cursor: pointer;
        position: relative;
        top: 3px;
    }



.province-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    width: 408px;
    max-width: 100%;
    text-align: center;
    max-height: 400px;
    display: flex;
    flex-direction: column;
}

.province-list {
    list-style: none;
    padding: 0;
    text-align: right;
    margin: 15px 0;
    flex-grow: 1;
    overflow-y: auto;
    max-height: 300px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .province-list::-webkit-scrollbar {
        display: none;
    }



.modal-content h3 {
    font-size: 16px;
    font-weight: 500;
    text-align: right;
}




.province-list li {
    padding: 8px 0;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}


    .province-list li:last-child {
        padding: 8px 0;
        cursor: pointer;
        border-bottom: none !important;
    }

.modal-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.modal-button {
    padding: 5px 71px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.confirm-btn {
    background: #F5A623;
    color: #000;
}

.cancel-btn {
    border: 1px solid #F5A623;
    background: transparent;
    color: #F5A623;
   
}

.city-list {
    display: none;
    margin-right: 15px;
    list-style: circle;
}

li.open > .city-list {
    display: block;
}

.arrow {
    float: left;
    cursor: pointer;
    margin-right: 8px;
    font-size: 16px;
}

.city-list {
    list-style: none;
    padding: 0;
    margin: 0;
}



    .city-list li {
        margin: 6px 0;
        cursor: pointer;
    }



    .city-list input[type="radio"] {
        margin-left: 6px;
    }


    .city-list label {
        display: flex;
        align-items: center;
        cursor: pointer;
        position: relative;
        padding-left: 28px;
    }


    .city-list input[type="radio"] {
        display: none;
    }

    /*  .city-list label:hover::before {
            box-shadow: 0 0 8px 4px rgba(245, 166, 35, 0.5);
        }*/

    .city-list label::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 18px;
        height: 18px;
        border: 1px solid #888;
        border-radius: 4px;
        background: #fff;
    }

    .city-list input[type="radio"]:checked + span::after {
        content: "";
        position: absolute;
        left: 9px;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 17px;
        height: 16px;
        background-color: #F5A623;
        background: #F5A623 url('/assets/Site/images/check.png') center/contain no-repeat;
        border-radius: 4px;
    }

.cart-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #000;
    padding: 12px;
    position: relative;
}

    .cart-item .item-img img {
        width: 75px;
        height: 75px;
        /*object-fit: cover;*/
        margin-top: -15px;
        margin-left: 20px;
        border: 2px solid #000;
    }

    .cart-item .item-details {
        flex: 1;
        font-size: 13px;
        line-height: 1.6;
    }

    .cart-item .remove-item {
        position: absolute;
        top: 8px;
        left: 8px;
        border: none;
        background: transparent;
        font-size: 18px;
        color: #000;
        cursor: pointer;
    }


    .cart-item .item-title {
        font-size: 9px;
        width: 200px;
    }


    .cart-item .item-info {
        font-size: 10px;
    }

.search-bar {
    position: relative;
    background: #f1f1f1;
    border: 1px solid #000;
    border-radius: 10px;
    height: 34px;
    margin-right: 7px;
    width: 297px;
}

    .search-bar input {
        border: none;
        outline: none;
        font-size: 13px;
        background: white;
        color: #333;
        padding: 6px 36px 6px 12px;
        width: 100%;
        border-radius: 20px;
        box-sizing: border-box;
    }

    .search-bar .search-btn {
        position: absolute;
        top: 50%;
        right: 6px;
        transform: translateY(-50%);
        border: none;
        background: transparent;
        padding: 0;
        margin: 0;
        cursor: pointer;
        color: #555;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
    }

        .search-bar .search-btn:hover {
            background-color: rgba(0, 0, 0, 0.05);
            border-radius: 50%;
        }

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: 85px;
    background: var(--cream-bg);
    border: 3px solid #F5A623;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 10;
    overflow: visible;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}



    .bottom-nav::before {
        content: "";
        position: absolute;
        top: -2.7px;
        left: var(--circle-x, 50%);
        transform: translateX(-50%);
        width: 88px;
        height: 44px;
        background: white;
        border: 3px solid var(--main-bg-color);
        border-top: none;
        z-index: 1;
        transition: left 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), clip-path 0.5s ease;
        border-radius: 0 0 100px 100px;
    }


    .bottom-nav.brand-active::before {
        clip-path: path("M0,0 C22,-209 66,-38 88,16 L88,44 L0,44 Z");
    }


    .bottom-nav.cart-active::before {
        clip-path: path("M0,12 C22,-25 66,1 88,0 L88,44 L0,44 Z");
    }

.nav-wrapper {
    position: relative;
    width: 100%;
    display: flex;
}

.nav-item {
    position: relative;
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: #333;
    cursor: pointer;
    padding-top: 10px;
    transition: all 0.3s ease;
}

.icon-container {
    width: 24px;
    height: 24px;
    margin: 0 auto;
    transition: all 0.4s ease;
    z-index: 3;
    position: relative;
}



.nav-item img {
    width: 40%;
    height: 40%;
}

.nav-item:not(.active) img {
    margin-top: 8px;
    width: 22px;
    height: 22px;
}

.nav-item.active .icon-container {
    position: absolute;
    top: -37px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    background: var(--cream-bg);
    border: 3px solid #F5A623;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    animation: popUpMotion 0.4s ease forwards;
    transition: left 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}


/*            .nav-item.active .icon-container::before,
                    .nav-item.active .icon-container::after {
                        content: '';
                        position: absolute;
                        width: 10px;
                        height: 10px;
                        background: var(--cream-bg);
                        top: 30px;
                        z-index: 1;
                    }

                    .nav-item.active .icon-container::before {
                        right: -23.9px;
                        border-top-left-radius: 60%;
                        border: 1px solid var(--main-bg-color);
                        border-bottom: none;
                        border-right: none;
                    }

                    .nav-item.active .icon-container::after {
                        left: -23.9px;
                        border-top-right-radius: 70%;
                        border: 1px solid var(--main-bg-color);
                        border-left: none;
                        border-bottom: none;
                    }*/





.cart-dropdown {
    position: fixed;
    left: 33.3%;
    top: 0;
    height: 100vh;
    width: 320px;
    background-color: white;
    z-index: 100000;
    transform: translateX(-100%);
    direction: rtl;
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    padding-bottom: 100px;
}


.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding-bottom: 100px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .cart-items::-webkit-scrollbar {
        display: none;
    }

.cart-dropdown.show {
    display: block;
    display: flex;
    transform: translateX(0);
    transition: transform 0.3s ease;
}


#cart-summary {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: white;
    text-align: center;
    padding: 20px 0;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
}

    #cart-summary p {
        margin: 0;
        font-weight: bold;
    }


.overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.2);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 99999;
}

    .overlay.active {
        opacity: 1;
        pointer-events: auto;
    }


.cart-dropdown.show {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: transparent;
    font-weight: bold;
    font-size: 16px;
    color: #333;
    border-bottom: 1px solid #ddd;
}

.cart-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #aaa;
    background-color: white;
    font-size: 16px;
    font-weight: bold;
}

.cart-empty {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    text-align: center;
}

    .cart-empty img {
        position: relative;
        bottom: 130px;
        width: 200px;
        height: auto;
        margin-bottom: 6px;
        opacity: 0.7;
    }

    .cart-empty p {
        font-size: 16px;
        position: relative;
        bottom: 152px;
        color: #000;
        margin-bottom: 5px;
        font-weight: 500;
    }

.close-btn {
    cursor: pointer;
    font-size: 20px;
}

.bottom-nav.no-circle::before {
    display: none;
}


@@keyframes popUpMotion {
    0% {
        transform: translateX(-50%) scale(0.7);
        opacity: 0.5;
    }

    50% {
        transform: translateX(-50%) scale(1.1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) scale(1);
    }
}

.nav-item .label {
    font-size: 15px;
    margin-top: 37px;
    z-index: 4;
    position: relative;
}

.nav-item:not(.active) .label {
    position: relative;
    margin-top: 1px;
    color: #333;
    font-size: 14px;
    font-weight: normal;
    z-index: 4;
    margin-bottom: 14px;
}

.icon-container:not(.active) {
    width: 45px;
    height: 35px;
    margin-bottom: 1px;
    /*margin: 0 auto;*/
}


.back-to-shop {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

    .back-to-shop a {
        position: relative;
        bottom: 185px;
        /*right: 15px;*/
        background: var(--main-bg-color);
        width: 205px;
        height: 45px;
        border: none;
        border-radius: 10px;
        color: #000;
        font-size: 17px;
        font-weight: 500;
        cursor: pointer;
        transition: background 0.3s ease;
        text-decoration: none;
        display: flex;
        justify-content: center;
        align-items: center;
    }

/*                .back-to-shop a:hover {
                            background: #7f8c8d;
                        }*/




@media (max-width: 780px) {
    .cart-dropdown {
        left: 173px;
    }
}


@media (min-width: 781px) and (max-width: 1025px) {
    .cart-dropdown {
        left: 192px;
    }
}


@media (min-width: 1026px) and (max-width: 1399px) {
    .cart-dropdown {
        left: 33.3%;
    }
}


@media (min-width: 1400px) {
    .cart-dropdown {
        left: 33.3%;
    }
}

@media screen and (min-width: 1024px) {
    .nav-item .label {
        font-size: 17px;
        /*font-weight: bold;*/
    }
}


@media (max-width: 750px) {

    .cart-dropdown {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 320px;
        background-color: white;
        z-index: 100000;
        transform: translateX(-100%);
        direction: rtl;
        display: none;
        flex-direction: column;
        justify-content: flex-start;
        padding-bottom: 100px;
    }

    .cart-item .item-title {
        font-size: 8.5px;
    }

    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 430px;
        height: 85px;
        background: var(--cream-bg);
        border: 3px solid #F5A623;
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 10;
        overflow: visible;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
    }



        .bottom-nav::before {
            content: "";
            position: absolute;
            top: -3.3px;
            left: var(--circle-x, 50%);
            transform: translateX(-50%);
            width: 88px;
            height: 44px;
            background: white;
            border-radius: 0 0 100px 100px;
            border: 3px solid var(--main-bg-color);
            border-top: none;
            z-index: 1;
            transition: left 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

    .search-bar {
        position: relative;
        background: #f1f1f1;
        border: 1px solid #000;
        border-radius: 10px;
        height: 34px;
        margin-right: 7px;
        width: 297px;
    }

        .search-bar input {
            border: none;
            outline: none;
            font-size: 13px;
            background: white;
            color: #333;
            padding: 6px 36px 6px 12px;
            width: 100%;
            border-radius: 20px;
            box-sizing: border-box;
        }

        .search-bar .search-btn {
            position: absolute;
            top: 50%;
            right: 6px;
            transform: translateY(-50%);
            border: none;
            background: transparent;
            padding: 0;
            margin: 0;
            cursor: pointer;
            color: #555;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 24px;
            height: 24px;
        }

            .search-bar .search-btn:hover {
                background-color: rgba(0, 0, 0, 0.05);
                border-radius: 50%;
            }

    .cart-empty {
        padding: 20px 10px;
    }

        .cart-empty img {
            width: 181px;
            bottom: 164px;
            margin-bottom: 4px;
            position: relative;
            left: 9px
        }

        .cart-empty p {
            font-weight: 700;
            font-size: 17px;
            bottom: 135px;
        }

    .back-to-shop a {
        width: 185px;
        height: 40px;
        font-size: 15px;
        bottom: 162px;
    }
}

@media (max-width: 400px) {
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 430px;
        height: 85px;
        background: var(--cream-bg);
        border: 3px solid #F5A623;
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 10;
        overflow: visible;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
    }



        .bottom-nav::before {
            content: "";
            position: absolute;
            top: -3px;
            left: var(--circle-x, 50%);
            transform: translateX(-50%);
            width: 88px;
            height: 44px;
            background: white;
            border-radius: 0 0 100px 100px;
            border: 3px solid var(--main-bg-color);
            border-top: none;
            z-index: 1;
            transition: left 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

    .cart-empty img {
        width: 180px;
        bottom: 140px;
        position: relative;
        left: 8px
    }

    .cart-empty p {
        font-weight: 700;
        font-size: 17px;
        bottom: 121px;
    }

    .back-to-shop a {
        width: 175px;
        height: 36px;
        font-size: 13px;
        bottom: 151px;
    }
    .app-wrapper {
        min-height: 145vh;
    }
}

@media(max-width: 380px) {
    .cart-empty {
        padding: 15px 5px;
    }

        .cart-empty img {
            width: 160px;
            bottom: 59px;
            margin-bottom: 3px;
            left: 5px;
        }

        .cart-empty p {
            font-size: 15px;
            bottom: 60px;
        }

    .back-to-shop a {
        width: 160px;
        height: 36px;
        font-size: 14px;
        bottom: 104px;
    }
}

 
