.products-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    user-select: none;
}
.product-shop-container,
.product-profile-container,
.product-bookmark-container{
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
}

/*--------product box-------*/
.product-shop-container .product-box,.product-bookmark-container .product-box{
    width: calc(100% / 5);
}
.product-profile-container .product-box{
    width: calc(100% / 4);
}
.product-box {
    padding: 0.2rem;
    transition: all 400ms;
    border-radius: 0.5rem;
    background-color: transparent;
    border: 1px solid #e4e5e7;
    box-shadow: 0 .25rem 1.5rem 0 rgba(37, 51, 203, .08);
}
.product-box:hover{
    transition: all 400ms ease;
    border: 0.1rem solid var(--text-5);
}

/*-----image----*/
.product-img-container {
    position: relative;
    width: 100%;
    border-radius: 0.5rem;
}
.product-img-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    transition: all 400ms ease;
}
.product-img-cover img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: opacity 0.5s ease;
    border-radius: 0.5rem;
    overflow: hidden;
}
.cover-image {
    width: 100%;
    height: 100%;
    cursor: pointer;
    background-color: rgba(41, 41, 41, 0.37);
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0;
    transition: all 400ms;
    border-radius: 0.5rem;
}
.product-box:hover .cover-image {
    display: block;
    opacity: 1;
}
/*-----mobile image----*/
.product-img-container-mobile {
    position: relative;
    width: 100%;
    border-radius: 0.5rem;
    display: none;
}
.product-img-cover-mobile {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    transition: all 400ms ease;
}
.product-img-cover-mobile img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    transition: opacity 0.5s ease;
    border-radius: 0.5rem;
    overflow: hidden;
    display: none;
}
.product-img-cover-mobile img.active {
    display: block;
}
.product-mobile-arrow{
    width: 1.5rem;
    height: 1.5rem;
    fill: var(--text-4);
    position: absolute;
    top: calc(50% - 2rem);
    z-index: 10;
    cursor: pointer;
    transition: all 400ms;
}
.product-mobile-arrow:hover{
    fill: var(--text-6);
}
.product-mobile-arrow#right{
    transform: rotate(90deg);
    right: 0;
}
.product-mobile-arrow#left{
    transform: rotate(-90deg);
    left: 0;
}
/*-----detail----*/
.product-box-detail {
    margin-top: 0.5rem;
}
.product-box-icon{
    width: 2rem;
    height: 2rem;
    fill: var(--text-4);
    cursor: pointer;
    transition: all 400ms;
    margin-left: 0.5rem;
}
.product-box-icon:last-child{
    margin-left: 0;
}
.product-box-icon.bookmark-fill{
    fill: var(--text-2);
}
.product-box-icon.bookmark-fill:hover{
    fill: var(--text-1);
}
.product-box-icon.heart-fill{
    fill: var(--error);
}
.product-box-icon.heart-fill:hover{
    fill: var(--error-hover);
}
.product-box-icon:hover{
    fill: var(--text-3);
}
.heart-count{
    font-size: 1.2rem;
    font-weight: 600;
    margin-right: 0.2rem;
    text-wrap: nowrap;
}
.heart-count.hide{
    display: none;
}
.product-box-title{
    width: 70%;
    font-size: 1.6rem;
    color: var(--text-2);
    direction: ltr;
}
.product-box-price{

}
.product-box-price span{
    font-size: 1.4rem;
    color: var(--text-3);
}
.product-box-price .price{
    font-size: 1.4rem;
}
.product-box-price .old-price{
    text-decoration: line-through;
    color: var(--text-4);
    margin-left: 0.3rem;
}
.product-box-price .discount,
.product-box-price .discount span{
    color: var(--error);

}
.product-box-price .discount span{
    font-size: 1.2rem;
}
/*--------product modal-------*/
.shop-modal {
    width: 100%;
    height: 60rem;
    padding: 1rem;
    background-color: #1a1a1a;
    position: fixed;
    top: 26.5rem;
    right: 0;
    left: 0;
    display: flex;
    opacity: 0;
    visibility: hidden;
    transition: all 250ms ease-in-out;
    z-index: 9999;
    user-select: none;
    backdrop-filter: blur(10px);
}
.modal-active {
    opacity: 1;
    visibility: visible;
}
.shop-modal-rgt {
    width: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.shop-modal-lft {
    width: 30%;
    padding: 1rem;
}
.modal-owner{
    flex-wrap: wrap;
    gap: 0.5rem;
}
.modal-more-detail{
    padding: 0.4rem 1rem;
    margin-top: 1rem;
    background-color: var(--primary);
    border-radius: 0.4rem;
}
.images-container {
    width: 59rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    transition: all 400ms ease;
}
.images-container::-webkit-scrollbar {
    display: none;
}
.images-container img {
    display: none;
}
.images-container img.active {
    display: block;
}
/*----box modal icon----*/
.modal-icon {
    cursor: pointer;
    fill: var(--text-3);
    transform: translate(0%, -50%);
    position: absolute;
    top: 50%;
}
.modal-icon:hover {
    fill: var(--text-6);
}
.modal-icon.close{
    width: 3rem;
    height: 3rem;
    top: 2rem;
    right: 2rem;
}
.modal-icon.right, .modal-icon.left{
    width: 5rem;
    height: 10rem;
    padding: 1rem;
    background-color: #6363630f;
}
.modal-icon.right {
    border-top-left-radius: 2rem;
    border-bottom-left-radius: 2rem;
    right: 0;
}
.modal-icon.left {
    border-top-right-radius: 2rem;
    border-bottom-right-radius: 2rem;
    left: 0;
}
/*----box modal detail----*/
.modal-owner-picture-cover{
    width: 5rem;
    height: 5rem;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    padding: 0.2rem;
    border: 2px solid #3e3e3e;
}
.modal-owner-picture-cover img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    overflow: hidden;
}
.modal-owner-name-wrapper {
    margin-right: 1rem;
}
.modal-owner-name {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-6);
    text-wrap: nowrap;
}
.modal-owner-star-wrapper {
    margin-top: 1rem;
}
.modal-owner-star-wrapper svg {
    width: 1.2rem;
    height: 1.2rem;
    margin-left: 0.4rem;
    fill: #ff8108;
    stroke: #ff8108;
}
.icon-star-f{
    transform: rotateY(180deg);
}
/*-----------------*/
.modal-product-name{
    max-width: 100%;
    font-size: 2.4rem;
    text-align: end;
    font-weight: 600;
    color: var(--text-5);
    margin: 1rem 0;
    direction: ltr;
}
.modal-download{
    font-size: 1.6rem;
    text-align: center;
    font-weight: 600;
    border: 1px solid var(--success);
    border-radius: 5rem;
    padding: 0.5rem;
    margin-bottom: 1rem;
}
.modal-download:last-child{
    margin-bottom: 0;
}
.buy-box-submit{
    background-color: var(--error);
    padding: 0.6rem 1rem;
    border-radius: 0.3rem;
    font-size: 1.3rem;
    color: var(--text-6);
    text-wrap: nowrap;
}
.buy-box-submit svg{
    margin-left: 0.2rem;
    fill: var(--text-6);
}

.detail-key {
    font-size: 1.6rem;
    color: var(--text-5);
    text-wrap: nowrap;
}
.detail-value {
    font-weight: 500;
    font-size: 1.6rem;
    color: var(--text-6);
    text-wrap: nowrap;
}
/*------price------*/
.detail-price-container {
    width: 100%;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.detail-price {
    width: fit-content;
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--text-4);
    text-decoration: line-through;
    margin: 0 0.5rem 0 0;
    padding: 0;
    border: none;
}
.detail-final-price {
    font-size: 1.4rem;
    margin: 0;
    padding: 0;
    border: none;
    color: var(--text-6);
    margin-left: 1rem;
    text-wrap: nowrap;
}
.modal-more-detail{

}
.modal-more-detail a{
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-6);
    margin-left: 0.7rem;
    text-wrap: nowrap;
}
.modal-more-detail svg{
    width: 0.9rem;
    height: 0.9rem;
    fill: var(--text-6);
    transform: rotate(-90deg);
}
/*------render------*/
.render-wrapper {
    height: 3rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.render-default, .render-v-ray, .render-corona {
    height: 100%;
    padding: 0.2rem 1rem;
    border-radius: 3px;
}
.render-default {
    background-color: var(--bg-2);
}
.render-v-ray {
    background-color: #E1EFFF;
}
.render-corona {
    background-color: #FFE6CE;
}
.render-v-ray img, .render-corona img {
    width: 2rem;
    height: 2rem;
    margin-left: 0.5rem;
}
.render-corona img {
    width: 2.3rem;
    height: 2.3rem;
    margin-left: 0.5rem;
}
.render-default span, .render-v-ray span, .render-corona span {
    font-size: 1.4rem;
    color: var(--text-1);
    text-wrap: nowrap;
}
/*------format------*/
.format {
    width: 100%;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 1rem;
}
.format::-webkit-scrollbar {
    width: 0.5rem
}
.format-content {
    width: 100%;
}
.format-content-top {
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-5);
}
/*------other------*/
.other .icon-cover {
    width: 2rem;
    height: 2rem;
}
.success-icon svg {
    fill: var(--success);
}
.error-icon svg {
    fill: var(--error);
}

/*------detail item------*/
.detail-title {
    width: 100%;
    font-size: 1.8rem;
    font-weight: 500;
    padding-bottom: 2rem;
    color: var(--text-5);
}
.product-name {
    text-align: end;
    font-size: 2.6rem;
    font-weight: 700;
}
.detail-item {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex: 1;
}
.detail-key {
    font-size: 1.6rem;
    color: var(--text-5);
    text-wrap: nowrap;
}
.detail-key span.span-primary {
    color: var(--primary);
}
.detail-value {
    font-weight: 500;
    font-size: 1.4rem;
    color: var(--text-6);
    text-wrap: nowrap;
    width: fit-content;
}
.detail-value-format{
    font-weight: 500;
    font-size: 1.4rem;
    color: var(--text-6);
    text-wrap: nowrap;
    margin-right: 0.4rem;
    background-color: #311B92;
    padding: 0.3rem 1rem;
    border-radius: 0.3rem;
    width: fit-content;
}
/*-------------------------------------profıle*/
.product-info-box {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1rem;
    background: #fff;
    box-shadow: 0 1px 4px rgb(0 0 0 / 0.1);
    font-family: "Vazir", sans-serif;
    width: 100%;
    margin: auto;
    position: absolute;
    top: 4.2rem;
    right: 0;
    left: 0;
    z-index: 99;
    display: none;
    opacity: 0;
    visibility: hidden;
}

.stats-column {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.stats-row {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.75rem;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 0.25rem;
}


.product-details-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #34495e;
}

.product-details-table th,
.product-details-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #eee;
    text-wrap: nowrap;
    font-size: 1.2rem;
}

.product-details-table th {
    text-align: right;
    width: 35%;
    color: #2c3e50;
    font-weight: 600;
}

.product-details-table td {
    max-width: 12rem;
    display: block;
}

.status-active {
    background-color: #2ecc71;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
}

.status-pending {
    background-color: #f39c12;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.btn {
    padding: 0.5rem 0;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    color: white;
    text-align: center;
    width: calc(100% / 3);
}

.btn-primary {
    background-color: #3498db;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-danger {
    background-color: #e74c3c;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-disabled {
    background-color: #bdc3c7;
    cursor: default;
    color: #7f8c8d;
}

.product-info-box.show-detail {
    display: block;
    opacity: 1;
    visibility: visible;
}

 .profile-product-box {
     position: relative;
 }

.profile-product-img-container-mobile {
    display: flex;
}

.profile-product-mobile-arrow {
    cursor: pointer;
}

/* وضعیت‌ها */
.profile-status {
    padding: 0 0.8rem;
    border-radius: 7px;
    vertical-align: middle;
    text-align: center;
    height: 100%;
    font-size: 1rem;
    margin: 1rem 0 0.5rem 0;
}
.profile-status.success {
    color: var(--text-6);
    background-color: var(--success);
}
.profile-status.warning {
    color: var(--text-6);
    background-color: var(--warning);
}
.profile-status.free {
    background-color: #e6e6e6;
}
.profile-status.paid {
    background-color: var(--success);
    color: var(--text-6);
}
.profile-status.discount {
    background-color: var(--error);
    color: var(--text-6);
}
.profile-status.editable {
    background-color: var(--success);
    color: var(--text-6);
}

/* ردیف وضعیت بالا */
.profile-status-row {
    width: 100%;
    padding: 0 1rem;
    margin: 0.4rem 0;
}
.profile-status-group {
    gap: 0.4rem;
    height: 3rem;
}

/* دکمه مشاهده جزئیات */
.profile-product-info-btn {
    width: 100%;
    background-color: var(--bg-1);
    height: 4rem;
    margin: 0.5rem auto;
    border-radius: 3px;
    border: 1px solid var(--text-5);
}
.profile-product-info-btn svg {
    width: 1rem;
    height: 1rem;
    fill: var(--text-1);
    margin-right: 1rem;
}

/* باکس اطلاعات محصول */
.profile-product-info-box {
    position: relative;
    width: 100%;
    margin: 0.5rem auto;
}

/* جدول جزئیات */
.profile-product-details-table th {
    text-align: right;
    padding: 0.3rem 0.5rem;
}
.profile-product-details-table td {
    padding: 0.3rem 0.5rem;
}

/* وضعیت فعال/غیرفعال */
.status-active {
    color: var(--success);
}
.status-pending {
    color: var(--warning);
}
.status-pending.danger {
    color: var(--error);
}
.profile-container .product-box{
    position: relative;
}
.profile-container.user .product-img-container-mobile{
    display: flex
}
.product-detail-container{
    width: 100%;
    padding: 0 1rem;
    margin: 0.4rem 0;
}
.product-detail-btn-container{
    gap: 0.4rem;
    height: 3rem;
}
.status-btn{
    padding:0 0.8rem;
    border-radius: 7px;
    vertical-align:middle;
    text-align:center;
    height:100%;
    font-size: 1rem;
    margin: 1rem 0 0.5rem 0;
    background-color: var(--bg-cg);
    color: var(--text-2) ;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-menu-container{
    position: relative;
    width: 100%;
    margin: 0.5rem auto;
}
.product-menu-container .product-info-btn{
    width: 100%;
    background-color: var(--bg-1);
    height: 4rem;
    margin: 0.5rem auto;
    border-radius: 3px;
    border: 1px solid var(--text-5);
}
.product-menu-container .detail-btn{
    width: 1rem;
    height: 1rem;
    fill: var(--text-1);
    margin-right: 1rem;
}
.can-edit-btn{
    background-color: #2ecc71;
    color: white;
    padding: 0.25rem 0.5rem;
    font-weight: 500;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    vertical-align: center;
    text-align: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
}
.edit-btn{
    background-color: #2ecc71;
    color: white;
    padding: 0.25rem 0.5rem;
    font-weight: 500;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    vertical-align: center;
    text-align: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
}
.edit-text{
    margin-right: 1rem;
    font-size: 1.2rem;
    color: var(--text-6);
    text-wrap: nowrap;
}
.whatsapp-text{
    margin-right: 1rem;
    font-size: 1.4rem;
    color: var(--text-6);
    background-color: var(--success);
    border-radius: 4px;
    padding: 0.4rem 1rem;
    text-align: center;
    vertical-align: middle;
}
.modal-detail{
    margin-top: 2rem;
}
