﻿.store-header-container {
    border: solid 2px #EBF4FC;
    border-radius: 15px;
    padding: 5px;
    box-shadow: 0px 0px 14px #00000026;
    /*    position: sticky;
    top: 69px;*/
    z-index: 2;
    background: #EBF4FC;
}

    .store-header-container img {
        width: 40px;
        height: 40px;
    }

.store-header {
    display: grid;
    grid-template-columns: 2fr 9fr 1fr;
    gap: 10px;
}

.store-center-div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 34px;
}

    .store-center-div label {
        margin-bottom: 0px !important;
    }

.store-branch-logo {
    /*font-family: 'lalezar';*/
    font-size: 30px;
    text-shadow: 0px 2px 0px white;
    color: var(--dark);
    font-weight: bold;
    text-align: center;
}

.store-cart {
    font-size: 33px;
    color: var(--dark);
}

    .store-cart:hover {
        cursor: pointer;
    }

.store-header-side {
    text-align: center !important;
    height: 77px !important;
}

.store-body {
    padding: 5px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.store-product-box {
    height: 320px;
    background-color: #EBF4FC !important;
    border-radius: 15px;
    margin: 5px;
    display: flex;
    flex-direction: column;
    position: relative;
}

    .store-product-box .store-img-box {
        height: 80%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: all 0.3s;
    }

        .store-product-box .store-img-box img {
            height: 200px;
            width: 200px;
            border-radius: 7px;
        }

    .store-product-box:hover {
        box-shadow: 0px 0px 8px var(--dark);
        transition: all 0.3s;
        cursor: pointer;
    }

        .store-product-box:hover label:hover {
            cursor: pointer;
        }

        .store-product-box:hover .store-cart-plus {
            opacity: 1;
            transition: all 0.3s;
        }

        .store-product-box:hover .store-product-type {
            opacity: 1;
            transition: all 0.3s;
        }

    .store-product-box.in-cart .store-cart-plus {
        display: block !important;
        opacity: 1 !important;
    }

        .store-product-box.in-cart .store-cart-plus img {
            filter: hue-rotate(70deg);
        }

    .store-product-box.in-cart .store-add-product {
        color: #2E7D32 !important;
    }

    .store-product-box .store-title {
        height: 10%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        white-space: nowrap;
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
    }

    .store-product-box .store-price {
        height: 10%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        font-size: 15px;
    }

.badge-cart {
    display: inline-block;
    min-width: 10px;
    padding: 3px 6px;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    background-color: #ff0505;
    border-radius: 37px;
    margin-left: -15px;
    position: relative;
    z-index: 1;
}

.not-product {
    height: 200px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    color: var(--dark);
}

.store-add-product {
    font-size: 30px;
    margin-top: 5px;
    color: #909090;
}

.store-cart-plus {
    opacity: 0;
    position: absolute;
    left: 10px;
    bottom: 0px;
    transition: all 0.3s;
}

    .store-cart-plus :hover {
        color: #2E7D32;
    }

    .store-cart-plus img {
        width: 40px;
        height: 40px;
    }

.store-product-type {
    opacity: 0;
    position: absolute;
    right: 10px;
    bottom: 0px;
    transition: all 0.3s;
}

.store-header-center {
    height: 77px !important;
    display: grid;
    grid-template-columns: 2fr 6fr 1fr 3fr;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.searchOption {
    align-items: baseline;
}

.store-product-details {
    margin-top: 20px;
}

.store-product-details-header {
    border: 1px solid #90909090;
    border-radius: 10px;
    margin-bottom: 10px;
    background: #EBF4FC;
}

.store-product-img-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    background-color: white;
    padding-right: 0 !important;
    padding-left: 10px;
}

.sp-large-img {
    margin: 10px 0px;
    height: auto;
    width: 100%;
    border-radius: 7px;
}

    .sp-large-img:hover {
        cursor: pointer;
    }

.store-product-title {
    font-weight: bold;
    font-size: 17px;
    border-bottom: solid 2px var(--dark);
    padding: 10px;
}

.store-product-tools {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /*height: 100%;*/
    margin-top: 50px;
}

    .store-product-tools .store-price {
        margin-bottom: 15px;
        font-size: 1.9rem;
    }

    .store-product-tools button {
        border-radius: 7px;
        background-color: #ef4056;
        color: white;
    }

.store-product-op {
    margin-top: 5px;
    height: 100%;
}

.sp-more-img {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    width: 100%;
    padding-bottom: 5px;
    overflow: hidden;
}

.sp-img {
    border-radius: 7px;
    /*border: solid 1px var(--gray);*/
    margin: 0px 3px;
    padding: 5px;
    background: #EBF4FC;
}

    .sp-img img {
        height: 72px;
        width: 72px;
        border-radius: 7px;
    }

    .sp-img:hover {
        cursor: pointer;
        box-shadow: 4px 4px 14px 0px #00000050
    }

.has-more-img {
    position: relative;
    display: inline-block;
    overflow: hidden; /* برای جلوگیری از بیرون‌زدگی */
    border-radius: 7px;
    /*border: solid 1px var(--gray);*/
    margin: 0px 3px;
    padding: 5px;
}

    .has-more-img img {
        height: 72px;
        width: 72px;
        filter: blur(5px);
    }

    .has-more-img:hover {
        cursor: pointer;
    }

    .has-more-img .overlay {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: white;
        font-size: 2rem;
        font-weight: bold;
        text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.7);
    }

.product-more-img-viewer-container {
    display: grid;
    grid-template-rows: auto auto;
    /*gap: 20px;*/
    /*max-width: 800px;*/
    border: 1px solid #ccc;
    border-radius: 10px;
    background: #EBF4FC;
}

.product-more-img-viewer-list {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    width: 100%;
    overflow: auto;
    padding: 5px;
    /*border: 1px solid #90909090;
    border-radius: 5px;*/
}

    .product-more-img-viewer-list::-webkit-scrollbar {
        height: 8px;
    }

    .product-more-img-viewer-list::-webkit-scrollbar-thumb {
        background-color: #888;
        border-radius: 4px;
    }

.product-more-img-viewer-img {
    border-radius: 7px;
    /*border: solid 1px var(--gray);*/
    margin: 0px 3px;
    padding: 5px;
    user-select: none;
}

    .product-more-img-viewer-img img {
        height: 72px;
        width: 72px;
        border-radius: 7px;
    }

    .product-more-img-viewer-img:hover {
        cursor: pointer;
        box-shadow: 4px 4px 14px 0px #00000050
    }

.product-more-img-viewer-largImg {
    text-align: center;
    padding: 10px;
    height: 430px;
}

    .product-more-img-viewer-largImg img {
        max-width: 100%;
        height: 410px;
        border-radius: 5px;
    }

.sp-similar-body {
    border: solid 1px #f0f0f1;
    border-radius: 7px;
    padding: 10px 10px;
    margin: 20px 0px;
    box-shadow: 1px 1px 4px -1px
}

.sp-similar-products {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    overflow: auto;
    user-select: none;
}

    .sp-similar-products::-webkit-scrollbar {
        height: 8px;
    }

    .sp-similar-products::-webkit-scrollbar-thumb {
        background-color: #888;
        border-radius: 4px;
    }

.sp-similar-products-title {
    border-bottom: solid 3px var(--gray);
    margin: 0px 20px 5px 0px;
    font-size: 15px;
    padding: 0px 10px 10px 10px;
}

.similar-product-box {
    height: 270px !important;
    /*background-color: white !important;*/
    width: 190px;
    padding: 5px 15px;
}

    .similar-product-box .store-img-box img {
        height: 160px !important;
        width: 160px !important;
        border-radius: 7px;
    }

.cart-box:hover {
    cursor: pointer;
}

.cart-box img {
    height: 40px;
    width: 40px;
}

.spd-body {
    background-color: white;
}

#itemDescription p {
    padding: 0 10px;
    line-height: 30px;
    text-align: justify;
}

.sessions-container {
    border: 1px dashed #4b87e1;
    min-height: 65px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.session-header {
    border-radius: 10px;
    text-align: right;
    width: 100%;
    margin-right: 15px;
    margin-top: 20px;
}

    .session-header a {
        display: grid;
        grid-template-columns: 3fr 1.6fr;
        gap: 10px;
        padding-left: 20px;
    }

        .session-header a label {
            cursor: pointer;
            text-align: left;
        }

.session-number {
    border: 2px solid #4b87e1;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #556167;
    position: absolute;
    right: -15px;
    top: 17px;
    background-color: #fff;
    border-radius: 100%;
}

.session-content {
    border: 1px solid var(--gray);
    border-radius: 10px;
    box-shadow: 0px 0px 3px 0px;
    margin: 15px 5px;
    padding: 15px;
    min-height: 65px;
}

.not-free-in-store {
    width: 100%;
    display: grid;
    grid-template-columns: 4fr 2fr;
    align-items: center;
}

.mo-ba-icon-file-body {
    height: 100px;
    width: 100px;
    border-radius: 25px;
    box-shadow: 0px 0px 8px #00000038;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    background-color: #ffffff96;
}

    .mo-ba-icon-file-body:hover {
        box-shadow: 0px 0px 8px #00000095;
        border-radius: 25px;
        cursor: pointer;
        transform: scale(1.02,1.02);
        transition: all 0.3s;
    }

    .mo-ba-icon-file-body label:hover {
        cursor: pointer;
    }

    .mo-ba-icon-file-body img {
        height: 50px;
        width: 50px;
    }

.session-detail {
    display: flex;
    flex-direction: row-reverse;
    gap: 25px;
}

.session-content-title {
    padding: 0 10px;
    display: grid;
    grid-template-columns: 4fr 2fr;
    grid-column-gap: 10px;
    align-items: center;
}

    .session-content-title label {
        text-align: left;
    }

        .session-content-title label span {
            font-weight: bold;
        }

.multi-media-content {
    border-radius: 5px;
    padding: 10px;
    width: 100%;
}

    .multi-media-content img {
        border-radius: 5px;
        width: 100%;
    }

    .multi-media-content audio {
        width: 100%;
    }

    .multi-media-content video {
        width: 100%;
        border-radius: 5px;
    }

.panel {
    border: none;
    margin-bottom: 20px;
    box-shadow: 0 0px 8px 0 rgba(0, 0, 0, 0.06), 0 1px 0px 0 rgba(0, 0, 0, 0.02);
}

    .panel .panel-heading {
        background-color: #2fb1a4 !important;
        border-radius: 10px 10px 0 0;
        color: #fff !important;
        text-align: center;
    }

    .panel .panel-title {
        font-weight: 600;
        margin-bottom: 0;
        margin-top: 0;
    }

    .panel .panel-body {
        border-radius: 0 0 10px 10px !important;
        border: 1px solid #2fb1a4 !important;
        padding: 20px;
    }



.table-mo-ba {
    border-collapse: separate;
    border-spacing: 0 10px;
    width: 99%;
    margin: 0px 6px;
    table-layout: fixed;
}

    .table-mo-ba tr {
        height: 35px;
    }

    .table-mo-ba th {
        background-color: var(--dark);
        color: white;
    }

    .table-mo-ba > thead > tr > th {
        border-bottom: none !important;
        text-align: center !important;
    }

    .table-mo-ba > tbody > tr > th {
        border-bottom: none !important;
        text-align: center !important;
    }

    .table-mo-ba > tbody > tr {
        height: 90px !important;
    }

    .table-mo-ba .radius-right {
        border-top-right-radius: 5px;
        border-bottom-right-radius: 5px;
    }

    .table-mo-ba .radius-left {
        border-top-left-radius: 5px;
        border-bottom-left-radius: 5px;
    }

    .table-mo-ba td {
        border-top: none !important;
        padding: 5px 15px;
        color: black;
        font-weight: bold;
        text-align: center;
    }

    .table-mo-ba tr {
        box-shadow: 0px 1px 4px #00000047;
        border-radius: 5px;
        transition: all 0.5s;
    }

        .table-mo-ba tr:hover {
            background-color: var(--light);
            transition: all 0.5s;
        }

    .table-mo-ba .title {
        text-align: start;
        padding-right: 20px;
    }

    .table-mo-ba .price {
        min-width: 120px;
    }

.table-mo-ba-th-min-with {
    min-width: 80px;
}

.table-mo-ba-btn-inc-count {
    color: var(--success);
    float: right;
    transition: all 0.2s;
}

.table-mo-ba-btn-dec-count {
    color: #ff0505;
    float: left;
    transition: all 0.2s;
}

.table-mo-ba-btn-del {
    color: #ff0505;
    font-size: 20px;
    float: left;
    transition: all 0.2s;
}

.table-mo-ba-btn-del, .table-mo-ba-btn-dec-count, .table-mo-ba-btn-inc-count:hover {
    cursor: pointer;
    transition: all 0.2s;
}

.store-cart-body {
    border: solid 2px var(--dark);
    border-radius: 8px 8px 10px 10px;
}

.empty-cart {
    display: flex;
    justify-content: center;
    min-height: 50px;
    align-items: center;
}
/********* media queries ********/
@media screen and (max-width : 694px) {
    .not-free-in-store {
        display: flex;
        flex-direction: column;
    }

        .not-free-in-store label {
            text-align: right;
        }

    .session-header a {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding-left: 20px;
    }

        .session-header a label {
            cursor: pointer;
            text-align: right;
        }

    .session-content-title {
        padding: 0 10px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

        .session-content-title label {
            text-align: right;
        }

    .multi-media-content {
        border-radius: 5px;
        padding: 0px !important;
    }
}

@media(max-width:991px) {
    .store-product-larg-img img {
        height: auto;
        width: 70%;
    }

    .store-header-container {
        position: relative;
        top: 0;
    }

    .store-header-side {
        height: 190px !important;
    }

    .store-header-center {
        display: flex;
        flex-direction: column;
        height: 190px !important;
        gap: 10px;
    }

        .store-header-center label {
            text-align: center !important;
        }

        .store-header-center #FindProductByTitle {
            width: 100%;
        }

    .searchOption {
        text-align: center;
    }

    .product-more-img-viewer-largImg {
        height: unset;
    }

        .product-more-img-viewer-largImg img {
            height: unset;
        }
}

@media(max-width:767px) {
    .store-header-container {
        position: relative;
        top: 0;
    }

    .store-header {
        display: flex;
        flex-direction: column;
    }

    .store-header-side {
        height: 50px !important;
    }

    .store-header-center {
        display: flex;
        flex-direction: column;
        height: 180px !important;
        gap: 10px;
    }

        .store-header-center label {
            text-align: center !important;
        }

        .store-header-center #FindProductByTitle {
            width: 100%;
        }

    .searchOption {
        text-align: center;
    }
}

@media (max-width: 375px) {
    .store-product-larg-img img {
        height: auto;
        width: 100%;
    }
}


/**************storeCart************/
#cartModal .modal-dialog {
    max-width: 900px !important;
}

#cartModal .modal-body {
    padding: 0px !important;
}

#cartModal .modal-header {
    justify-content: center;
}

#cartModal .close {
    left: 10px;
    right: unset !important;
}

.cart-item {
    display: grid;
    grid-template-rows: auto auto;
    gap: 10px;
    border: 1px solid #ddd;
    background: #EBF4FC;
    padding: 5px;
    border-radius: 10px;
    margin: 5px;
}

.cart-item-base {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    gap: 10px;
}

    .cart-item-base img {
        width: 60px;
        height: 60px;
        border-radius: 5px;
    }

.cart-item-total {
    display: grid;
    grid-template-columns: auto auto;
    align-items: baseline;
    justify-content: space-between;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    margin-left: 10px;
}

.cart-item-actions button {
    background: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
}

    .cart-item-actions button:disabled {
        background: #ccc;
        cursor: not-allowed;
    }

#removeProductBtnId {
    color: #ccc !important;
}

    #removeProductBtnId:hover {
        color: #ff0505 !important;
    }


.checkout-btn {
    width: 100%;
    background: #28a745;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 0px 0px 8px 8px !important;
    cursor: pointer;
    margin-top: 10px;
}

.modal-header h5 > img {
    width: 35px;
}

#cartContainer img {
    cursor: pointer;
}

#cartContainer .table-mo-ba img {
    width: 60px;
    height: 60px;
    border-radius: 5px;
}

.table-mo-ba-col-count {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    align-items: baseline;
}