.variantTypeLabel {
    color: #212529;
    font-size: 1rem;
    font-weight: 500
}

.product-details {
    padding-top: 10rem
}

.variant-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    margin: 18px 0 0
}

.variant-btn {
    border: 1.5px solid #dee2e6;
    background: #fff;
    color: #212529;
    font-weight: 500;
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    transition: border-color .2s, color .2s;
    min-width: 80px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    white-space: nowrap
}

.variant-btn.active {
    border-color: #dc3545;
    color: #dc3545;
    outline: 0
}

.variant-btn .color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: border-color .2s;
}

.variant-btn.has-color {
    padding: 10px 14px;
}

.variant-btn .variant-text {
    display: inline-block;
}

@media (max-width: 991px) {
    .variantTypeLabel {
        font-size: .875rem
    }
}

.breadcrumb-container {
    background: #fff;
    padding: 10px 0;
    border-radius: 0;
    box-shadow: none;
}

.custom-breadcrumb {
    font-size: 12px;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap
}

.custom-breadcrumb::-webkit-scrollbar,
.custom-list::-webkit-scrollbar {
    display: none
}

.custom-breadcrumb,
.custom-list {
    scrollbar-width: none
}

.breadcrumb-separator {
    display: inline-flex;
    align-items: center;
    color: #9b9b9b;
    margin: 0 8px
}

.custom-breadcrumb .breadcrumb-item a {
    color: #9b9b9b;
    font-weight: 500;
}

.discount-badge {
    background: #d32f2f;
    color: #fff;
    border-radius: 20px;
    padding: 1px 6px;
    font-size: .75rem;
    font-weight: 700;
    width: auto;
    height: auto;
    display: inline-block;
    line-height: 1.6
}

.custom-list {
    margin-top: 0;
    margin-bottom: 0;
    padding-right: 15px;
    list-style: none;
    font-weight: 400
}

.custom-list li {
    position: relative;
    padding-right: 1.2rem;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.7;
    color: #000
}

.custom-list li::before {
    content: "";
    position: absolute;
    right: 0;
    top: .7em;
    width: 6px;
    height: 6px;
    background-color: #d32f2f;
    border-radius: 50%
}

.price-info p {
    margin: .5rem 0;
    font-size: .875rem;
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #9b9b9b;
    gap: 5px
}

.price-info p i {
    color: #9b9b9b;
    font-size: 1rem;
    flex-shrink: 0
}

.price-layout {
    text-align: center
}


.table-responsive {
    line-height: 180%;
    font-size: .875rem;
    text-align: right;
    padding-left: 0;
    margin-right: -20px;
    padding-right: 0
}

.align-baseline {
    align-self: baseline
}

.mobile-add-to-cart,
.single-row-title::after {
    display: none
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 100%, 0)
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0)
    }
}

.product-title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 2;
    color: #0c0c0c
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: .9rem;
    font-weight: 500;
    gap: 6px
}

.pill-badge-light {
    background-color: #fafafa;
    color: #424750
}

.pill-badge i {
    font-size: 1rem
}

.product-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap
}

.price-layout .old-price-discount {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .5rem
}

.price-layout .old-price-discount del {
    margin-left: .5rem;
    color: #c3c3ce
}

.price-layout .final-price {
    font-weight: 700;
    color: #0c0c0c;
    font-size: 1.1rem
}

.no-vertical-borders td,
.no-vertical-borders th {
    border-left: none !important;
    border-right: none !important;
    padding: .9rem 1rem !important
}

.no-vertical-borders td {
    color: #3f4064;
    font-weight: 500
}

.modal-body {
    padding: 1rem 1.5rem;
    overflow-y: auto
}

.mobile-title {
    font-size: .8125rem;
    color: #888;
    font-weight: 500
}

#mainProductImage {
    transition: opacity .2s
}

.price-info {
    line-height: 2
}

.btn-add-to-cart {
    background: #dc3545 !important;
    color: #fff !important;
    border: none !important;
    line-height: 2.17;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    width: 100% !important;
    min-width: 100% !important
}

.btn-add-to-cart:focus,
.btn-add-to-cart:hover {
    background: #d63046 !important;
    color: #fff !important
}

.product-gallery {
    display: flex;
    flex-direction: column;
    align-items: center
}

.product-gallery .main-image {
    position: relative
}

.product-gallery .main-image-link {
    display: block;
    position: relative;
    text-decoration: none;
    color: inherit
}

.product-gallery .main-image-link:focus {
    outline: 0
}

.product-gallery .main-image img {
    max-width: 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 12px;
    background: #fff
}

.product-gallery .thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    overflow-x: auto;
    justify-content: center
}

.product-gallery .thumbnail {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    border: 1.5px solid rgba(0, 0, 0, .08);
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    padding: 0;
    overflow: hidden;
    display: inline-flex;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
    flex-shrink: 0;
    font: inherit
}

.product-gallery .thumbnail:hover {
    border-color: rgba(0, 0, 0, .15);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08)
}

.product-gallery .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block
}

.product-gallery .thumbnail.active {
    border-color: #dc3545;
    box-shadow: 0 1px 3px rgba(220, 53, 69, .25)
}

@media screen and (min-width:992px) {
    .custom-breadcrumb .breadcrumb-item a {
        font-size: 0.8rem;
    }

    .desktop-add-to-cart,
    .image-column {
        border: 1px solid #e0e0e0;
        border-radius: 4px;
    }

}

@media (min-width:576px) and (max-width:991.98px) {

    .d-none.d-sm-block,
    .desktop-add-to-cart,
    .desktop-title,
    .image-column {
        display: none !important
    }

    .d-block.d-sm-none,
    .mobile-add-to-cart {
        display: block !important
    }

    .image-column {
        display: block !important;
        width: 100% !important
    }

    .mobile-title {
        display: flex !important
    }

    .d-block.d-sm-none.mb-2 .d-flex.align-items-center.justify-content-between,
    .d-block.d-sm-none.mb-2 .d-flex.justify-content-between,
    .d-block.d-sm-none.mb-2>.d-flex.justify-content-between {
        flex-wrap: nowrap !important
    }

    .d-block.d-sm-none.mb-2 .mobile-title {
        flex: 1 1 auto;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis
    }

    .d-block.d-sm-none.mb-2>.d-flex.justify-content-between>.d-flex.align-items-center {
        flex: 0 0 auto
    }
}

@media (max-width:991.98px) {
    .image-column {
        height: auto;
        display: block;
        border-bottom: 1px solid #eee;
        margin-bottom: 15px;
        padding: 15px
    }

    .product-gallery {
        display: flex;
        flex-direction: column;
        align-items: center
    }

    .product-gallery .main-image img {
        width: 280px;
        height: 280px;
        object-fit: contain;
        border-radius: 12px;
        background: #fff
    }

    .product-gallery .thumbnails {
        display: flex;
        gap: 8px;
        margin-top: 12px;
        overflow-x: auto;
        justify-content: center;
        padding-bottom: 5px;
        width: 100%
    }

    .product-gallery .thumbnail {
        width: 56px;
        height: 56px;
        object-fit: contain;
        border: 1.5px solid rgba(0, 0, 0, .08);
        border-radius: 8px;
        cursor: pointer;
        background: #fff;
        transition: border-color .2s, box-shadow .2s;
        flex-shrink: 0;
        box-shadow: 0 1px 2px rgba(0, 0, 0, .05)
    }

    .product-gallery .thumbnail:hover {
        border-color: rgba(0, 0, 0, .15);
        box-shadow: 0 1px 3px rgba(0, 0, 0, .08)
    }

    .product-gallery .thumbnail.active {
        border-color: #dc3545;
        box-shadow: 0 1px 3px rgba(220, 53, 69, .25)
    }

    .modal-dialog {
        max-width: 100%;
        margin: 0
    }

    .modal-content {
        height: 100vh;
        border: 0;
        border-radius: 0
    }

}



.cart-counter-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 10px;
    padding: 8px 16px;
    width: 100%;
    gap: 12px;
    border: 1px solid rgba(220, 53, 69, 0.4);
    box-sizing: border-box
}

.cart-counter-box button {
    background: #fff;
    border: none;
    outline: 0;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s
}

.cart-counter-box button:active {
    background: #f8f8f8
}

.cart-counter-box .cart-qty {
    font-size: 1.3rem;
    font-weight: 700;
    color: #d32f2f;
    min-width: 24px;
    text-align: center
}

.cart-counter-box i {
    color: #d32f2f;
    font-size: 1.5rem;
    vertical-align: middle
}

.swal2-confirm-button,
.swal2-deny-button {
    font-size: 12px !important;
    font-weight: 500 !important;
    padding: 8px 16px !important;
    border-radius: 8px !important
}

.swal2-confirm-button {
    background-color: #dc3545 !important
}

.swal2-deny-button {
    background-color: #fff !important;
    color: #dc3545 !important;
    border: 1.5px solid #dc3545 !important
}

.swal2-confirm-button:focus,
.swal2-deny-button:focus {
    box-shadow: none !important;
    outline: 0 !important
}

@media (max-width:991.98px) {
    .swal2-popup-mobile {
        font-size: .75rem !important
    }

    .swal2-content-mobile {
        font-weight: 500 !important
    }

    .cart-counter-box .cart-qty {
        font-size: 1rem
    }

    .cart-counter-box i {
        font-size: 1.3rem
    }

    .swal2-popup-mobile .swal2-actions button,
    .swal2-popup-mobile .swal2-content-mobile {
        font-size: 12px !important;
        font-weight: 500 !important
    }
}

.swal2-deny-button:focus-visible,
.swal2-deny-button:hover {
    background-color: #dc3545 !important;
    color: #fff !important;
    border-color: #dc3545 !important
}

@media (min-width:992px) {
    .no-vertical-borders td {
        text-align: right !important
    }

    .product-gallery {
        display: flex;
        flex-direction: column;
        align-items: center
    }

    .product-gallery .main-image img {
        max-width: 320px;
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        object-fit: contain;
        border-radius: 0;
        background: 0 0;
        border: none
    }

    .product-gallery .thumbnails {
        display: flex;
        gap: 10px;
        margin-top: 16px;
        overflow-x: auto;
        justify-content: center
    }

    .product-gallery .thumbnail {
        width: 64px;
        height: 64px;
        object-fit: contain;
        border: 1.5px solid rgba(0, 0, 0, .08);
        border-radius: 8px;
        cursor: pointer;
        background: #fff;
        transition: border-color .2s, box-shadow .2s;
        box-shadow: 0 1px 2px rgba(0, 0, 0, .05)
    }

    .product-gallery .thumbnail:hover {
        border-color: rgba(0, 0, 0, .15);
        box-shadow: 0 1px 3px rgba(0, 0, 0, .08)
    }

    .product-gallery .thumbnail.active {
        border-color: #dc3545;
        box-shadow: 0 1px 3px rgba(220, 53, 69, .25)
    }


    .swal2-popup-mobile .swal2-actions button {
        font-size: 15px !important;
        font-weight: 500 !important;
        padding: 12px 28px !important;
        border-radius: 10px !important
    }

}

.single-row-section {
    margin-top: 0;
    margin-bottom: 0
}

.product-description-content {
    text-align: justify;
    line-height: 2;
    color: #3f4064;
    font-size: 0.875rem;
    font-weight: 500;
}

.product-description-content strong {
    color: #212529;
}

/* مشاهده بیشتر / مشاهده کمتر - بخش توضیحات و مشخصات */
.product-description-inner,
.product-specs-inner {
    overflow: hidden;
    transition: max-height 0.3s ease;
    position: relative;
}

.product-description-inner.collapsed::after,
.product-specs-inner.collapsed::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4em;
    background: linear-gradient(to top, #fff, transparent);
    pointer-events: none;
}

.product-description-inner.collapsed {
    max-height: 7.5em;
}

.product-specs-inner.collapsed {
    max-height: 12rem;
}

@media (min-width: 992px) {
    .product-description-inner.collapsed {
        max-height: 14em;
    }

    .product-specs-inner.collapsed {
        max-height: 20rem;
    }
}

.product-view-more-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.5rem 0;
    border: none;
    background: transparent;
    color: #212529;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
}

.product-view-more-toggle .product-view-more-icon {
    font-size: 1.125rem;
    font-weight: normal;
}

.product-view-more-toggle.product-view-more-toggle--hidden {
    display: none;
}

.product-specs-list {
    padding: 0;
    list-style: none;
}

.product-spec-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0;
    line-height: 2;
}

.product-spec-row:not(:last-child) {
    margin-bottom: 0.25rem;
}

.product-spec-key {
    display: flex;
    align-items: flex-start;
    background-color: #fafafa;
    padding: 0.5rem 0.875rem;
    border-radius: 6px;
    text-align: right;
    color: #3f4064;
    width: 130px;
    min-width: 130px;
    max-width: 130px;
    flex-shrink: 0;
}

.product-spec-value {
    width: calc(100% - 130px);
    min-width: 0;
    padding: 0.5rem 0;
    text-align: right;
    color: #212529;
}

@media (max-width: 991px) {
    .product-description-content {
        font-size: 0.8125rem;
    }

    .product-spec-row {
        font-size: 0.8125rem;
    }
}

.single-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between
}



.single-row-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 12px 0 14px;
    text-align: right;
    width: 100%;
    position: relative;
    padding-bottom: .5rem
}

.single-row-header-related .single-row-title {
    margin-bottom: 1rem
}

#reviewsSection .single-row-header {
    flex-wrap: nowrap
}

#reviewsSection .single-row-title {
    width: auto
}

.pagination,
.products-grid {
    -ms-overflow-style: none;
    scrollbar-width: none
}

.products-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-behavior: smooth
}

.products-grid::-webkit-scrollbar {
    display: none
}

#relatedProductsCarousel>a {
    flex: 0 0 calc(20% - 6.4px);
    max-width: calc(20% - 6.4px)
}

/* Related products carousel nav (desktop only) */
.carousel-nav-buttons {
    display: none;
    align-items: center;
    gap: 8px;
    flex-shrink: 0
}

@media screen and (min-width:992px) {
    .product-details .row .col-md-3.image-column,
    .product-details .row .col-md-6,
    .product-details .row .col-md-3.desktop-add-to-cart {
        min-width: 0;
    }
    .product-details .single-row-header.single-row-header-related {
        margin-bottom: 1rem
    }

    .single-row-header-related .carousel-nav-buttons {
        display: flex
    }

    .single-row-header-related .single-row-title {
        width: auto;
        margin-bottom: 0
    }
}

.carousel-nav-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, .25);
    border-radius: 8px;
    background: #fff;
    color: #333;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color .2s, color .2s, background-color .2s
}

.carousel-nav-btn i {
    font-size: 1.25rem
}

.carousel-nav-btn:hover:not(:disabled) {
    border-color: rgba(0, 0, 0, .4);
    color: #000;
    background: #fff
}

.carousel-nav-btn:disabled {
    border-color: rgba(0, 0, 0, .12);
    color: rgba(0, 0, 0, .35);
    cursor: default
}

@media screen and (max-width:991.98px) {
    #relatedProductsCarousel {
        -ms-overflow-style: auto;
        scrollbar-width: thin;
        padding-bottom: 16px
    }

    #relatedProductsCarousel::-webkit-scrollbar {
        display: block;
        height: 8px
    }

    #relatedProductsCarousel::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, .06);
        border-radius: 4px
    }

    #relatedProductsCarousel::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, .2);
        border-radius: 4px
    }

    #relatedProductsCarousel::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 0, 0, .35)
    }
}

@media screen and (min-width:601px) and (max-width:991.98px) {
    #relatedProductsCarousel>a {
        flex: 0 0 calc(33.3333% - 5.33px);
        max-width: calc(33.3333% - 5.33px)
    }

    .single-row-title {
        font-size: 1rem;
        padding-right: 1rem
    }
}

.single-row-section .product-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 12px;
    height: 100%;
    display: flex;
    flex-direction: column
}

@media screen and (max-width:600px) {
    .products-grid {
        gap: 6px
    }

    #relatedProductsCarousel>a {
        flex: 0 0 calc(50% - 3px);
        max-width: calc(50% - 3px)
    }

    .single-row-title {
        font-size: 1rem
    }
}

@media screen and (max-width:480px) {
    .products-grid {
        gap: 4px
    }

    #relatedProductsCarousel>a {
        flex: 0 0 calc(50% - 2px);
        max-width: calc(50% - 2px)
    }
}


@media (max-width:991.98px) {

    .container,
    main {
        overflow-x: hidden;
        max-width: 100%;
        box-sizing: border-box
    }


    .product-details {
        padding-top: 5rem
    }

    .price-layout .final-price,
    .product-title {
        font-size: 1rem
    }

    .pill-badge {
        font-size: .75rem;
        padding: 6px 10px
    }

    .price-info p {
        font-size: .8125rem
    }


    .pagination .page-item .page-link {
        font-size: .875rem
    }

    .custom-list li {
        font-size: 14px;
        margin-right: 0
    }

    .custom-list {
        margin-right: 0
    }

    .mobile-add-to-cart .cart-btn-container {
        order: 1
    }

    .mobile-add-to-cart .price-info-container {
        order: 2
    }

    .cart-btn-container .btn {
        font-size: .75rem;
        padding: .75rem 2rem;
        font-weight: 500;
        line-height: 2.17;
        border-radius: 10px
    }

    .desktop-add-to-cart {
        display: none !important
    }

    .mobile-add-to-cart {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: #fff;
        z-index: 999;
        padding: 15px 0;
        animation: .5s ease-out fadeInUp;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, .1);
        border-top: 1px solid #e9ecef
    }

    footer {
        margin-bottom: 90px
    }

    .d-block.d-sm-none::after {
        content: none !important
    }

    .price-layout .old-price-discount del,
    .variant-btn {
        font-size: .75rem
    }

    .variant-btn {
        padding: 8px 12px;
        min-width: 60px;
        min-height: 36px
    }


    .table-responsive {
        font-weight: 400;
        margin-top: -15px;
        font-size: .8125rem
    }
}

.pagination {
    flex-wrap: nowrap !important;
    overflow-x: auto
}

.pagination::-webkit-scrollbar {
    display: none
}

.pagination .page-item {
    flex-shrink: 0
}

.pagination .page-item .page-link {
    border: none;
    color: #212529bf;
    white-space: nowrap;
    font-weight: 500
}


.pagination .page-item.active .page-link {
    background-color: transparent;
    border: 1px solid #dc3545;
    color: #dc3545;
    border-radius: 6px
}

.pagination .page-item.disabled .page-link {
    background-color: transparent !important;
    color: #888;
    opacity: .6;
    cursor: not-allowed
}

.inline-margin-right-02 {
    margin-right: .2rem
}

.inline-font-size-14-weight-500 {
    font-size: 14px;
    font-weight: 500
}

.inline-margin-left-6 {
    margin-left: 6px
}

.inline-hr-border-top {
    border-top: 1px solid #ddd;
    margin: 1rem 0
}

.inline-hr-separator {
    border: none;
    height: 3px;
    background-color: #ccc;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 992px) {
    .inline-hr-separator {
        padding-right: 0;
        padding-left: 0;
    }
}

@media (max-width: 375px) {
    .inline-hr-separator {
        padding-right: 0.5rem;
        padding-left: 0.5rem;
    }
}

.inline-btn-border-radius {
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 500;
    white-space: nowrap
}


.inline-separator-color {
    color: #ddd;
    margin: 0 8px
}

.inline-color-81858b {
    color: #9b9b9b
}


.inline-pagination-gap {
    gap: .25rem;
    flex-wrap: nowrap;
    overflow-x: auto
}

.inline-modal-header-min-height {
    min-height: 60px
}

.inline-text-center-padding {
    padding: 5px 40px
}

.inline-modal-title-font {
    font-size: 1rem;
    font-weight: 600
}

.inline-modal-close-btn {
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%)
}


.inline-btn-border-radius-10 {
    border-radius: 10px;
    font-size: .875rem;
    padding: .9rem 0
}


.inline-display-none {
    display: none
}

.inline-color-212529 {
    color: #212529
}

/* Review Section Styles */
.rating-summary {
    border-radius: .5rem;
    text-align: right
}

.review-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 0 0 10px;
    align-items: stretch
}

.no-reviews-message {
    width: 100%;
    overflow: auto;
    margin-right: 1.5rem;
}

.no-reviews-card {
    display: flex;
    flex-direction: column;
}

.no-reviews-content-wrapper {
    display: flex;
    align-items: center;
    flex-direction: column;
    margin-right: 1.5rem;
}

.no-reviews-icon {
    margin-bottom: 0;
    flex-shrink: 0;
}

.no-reviews-icon i {
    font-size: 3rem;
    color: #e0e0e0;
    display: block;
}

.no-reviews-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.no-reviews-text {
    font-size: 1rem;
    color: #424242;
    font-weight: 600;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.no-reviews-subtext {
    font-size: 0.875rem;
    color: #757575;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* no-reviews-message: یکسان در همه سایزها (دسکتاپ، تبلت، موبایل) */
.review-container .no-reviews-message {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    text-align: center;
    margin: 0;
    box-sizing: border-box;
}

.review-container .no-reviews-message .no-reviews-card {
    width: 100%;
    max-width: 100%;
    border-radius: 0.625rem;
    display: flex;
    flex-direction: column;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.review-container .no-reviews-message .no-reviews-content-wrapper {
    flex-direction: column;
    align-items: center;
    margin-right: 0;
    padding: 0.75rem 0.5rem;
    box-sizing: border-box;
}

.review-container .no-reviews-message .no-reviews-icon {
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.review-container .no-reviews-message .no-reviews-icon i {
    font-size: 3rem !important;
    width: 60px;
    height: 60px;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-container .no-reviews-message .no-reviews-text-wrapper {
    align-items: center;
    margin-top: 0.25rem;
    width: 100%;
    box-sizing: border-box;
}

.review-container .no-reviews-message .no-reviews-text {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
    line-height: 1.4;
    padding: 0 0.5rem;
    box-sizing: border-box;
}

.review-container .no-reviews-message .no-reviews-subtext {
    font-size: 0.75rem !important;
    color: #757575 !important;
    margin-top: 0.25rem !important;
    line-height: 1.4;
    padding: 0 0.5rem;
    box-sizing: border-box;
}

.review-container .no-reviews-message .no-reviews-button-wrapper {
    padding: 0.75rem 1rem;
    border-top: none;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

.review-container .no-reviews-message .no-reviews-add-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    user-select: none;
    width: auto;
    min-width: 8.5rem;
    height: 40px;
    margin-top: 8px;
    padding: 8px 1.25rem;
    background-color: transparent;
    color: #ef4056;
    border: 1px solid #ef4056;
    border-radius: 8px;
    font-size: 0.8125rem;
    line-height: 2;
    box-sizing: border-box;
    cursor: pointer;
    outline: none;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    justify-content: center;
}

.review-container .no-reviews-message .no-reviews-add-button:hover,
.review-container .no-reviews-message .no-reviews-add-button:focus {
    background-color: transparent;
    border-color: #ef4056;
    color: #ef4056;
}

.review-container .no-reviews-message .no-reviews-add-button:active {
    opacity: 0.8;
}

.review-container::-webkit-scrollbar {
    display: none
}

.review-container {
    scrollbar-width: none
}

.review-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #fff;
    padding: 12px;
    margin-bottom: 0;
    font-size: .85rem;
    width: 100%;
    border-bottom: 1px solid #f0f0f0
}

.review-box:last-child {
    border-bottom: none;
    margin-bottom: 0
}

.review-header,
.review-username {
    margin-bottom: 5px
}

.review-username {
    display: inline-flex;
    align-items: center;
    font-size: .9rem;
    font-weight: 500
}

.review-username i {
    margin-right: .5rem;
    color: var(--bs-success);
    vertical-align: middle
}

.review-text {
    flex: 1;
    margin-bottom: 10px;
    text-align: right;
    line-height: 2;
    font-weight: 500;
    font-size: 0.875rem;
    color: #212529bf;
}

.review-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 40px
}

.review-date {
    font-size: .75rem;
    color: #666;
    font-weight: 500
}

.review-icons i {
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 10px;
    color: #888
}

.review-icons i:hover {
    color: #000
}

.review-icons i.ri-thumb-up-line:hover {
    color: #198754
}

.review-icons i.ri-thumb-down-line:hover {
    color: #dc3545
}

.review-icons {
    display: flex;
    align-items: center
}

.thumb-group {
    display: inline-flex;
    align-items: center
}

.thumb-down-count,
.thumb-up-count {
    font-size: .85rem;
    color: #888
}

.buyer-badge {
    background: #e7f6e7;
    color: #388e3c;
    font-size: .625rem;
    border-radius: 8px;
    padding: 0 8px;
    margin-right: 6px;
    line-height: 2.17;
    font-weight: 500
}

.custom-review-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem .5rem;
    border-bottom: 1px solid #eee;
    background: #fff
}

@media screen and (min-width:992px) {
    #writeReviewModal .modal-content {
        border-radius: 0.5rem;
        overflow: hidden;
    }

    #writeReviewModal .custom-review-modal-header {
        border-radius: 0.5rem 0.5rem 0 0;
    }
}

.custom-review-modal-header .close {
    background: 0 0;
    border: none;
    font-size: 1.5rem;
    color: #222;
    padding: 0;
    margin-left: .5rem
}

.review-submit-btn,
.review-submit-btn:hover {
    background: #dc3545
}

.custom-review-modal-header .modal-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 auto 0 0;
    text-align: center;
    flex: 1
}

.review-textarea-label {
    display: block;
    font-size: 0.875rem;
    color: #212529;
    margin-bottom: .5rem;
    font-weight: 500
}

.review-textarea {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 8px;
    padding: .75rem 1rem;
    font-size: .95rem;
    margin-bottom: .75rem;
    outline: 0;
    transition: border .2s
}

.review-textarea:active,
.review-textarea:focus {
    border: 1px solid #9b9b9b;
    outline: 0
}

.review-textarea {
    min-height: 70px;
    resize: none
}

.review-textarea::placeholder {
    font-weight: 500;
    line-height: 2;
    opacity: .9
}

.review-stars-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1.2rem 0
}

.review-stars-row .review-stars {
    display: flex;
    gap: 32px;
    margin-bottom: .25rem;
    justify-content: center
}

.review-stars-row .review-stars-labels {
    display: flex;
    gap: 32px;
    justify-content: center;
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: .5rem
}

.review-stars-row .review-stars-labels span {
    width: 1.4rem;
    text-align: center
}

.review-stars-row .review-stars i {
    font-size: 1.4rem !important;
    color: #d3d3d3;
    cursor: pointer;
    transition: color .2s;
    vertical-align: middle
}

.review-stars-row .review-stars i.active,
.review-stars-row .review-stars i.selected {
    color: #ffc107 !important;
    text-shadow: 0 0 2px #e1b90033
}

.review-submit-btn {
    width: 100%;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: .9rem 0;
    font-size: .875rem;
    font-weight: 500;
    margin-top: 1.2rem;
    margin-bottom: .2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    transition: background .2s
}

.text-right {
    text-align: right !important;
    width: 100%;
    display: block
}

@media screen and (min-width:992px) {
    .review-container .no-reviews-message .no-reviews-text {
        font-size: 1.125rem !important;
        line-height: 1.5;
    }

    .review-container .no-reviews-message .no-reviews-subtext {
        font-size: 0.9375rem !important;
        line-height: 1.5;
    }

    .review-layout {
        width: 100%;
        box-sizing: border-box
    }

    .review-right-col {
        overflow: hidden
    }

    .review-container {
        display: block !important;
        overflow-x: visible !important;
        overflow-y: visible !important
    }

    .review-box .review-actions,
    .review-box .review-header,
    .review-box .review-text {
        padding: 5px 0
    }
}

@media (max-width:991.98px) {
    .review-container {
        display: block !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
    }

    .review-container .review-box {
        width: 100%;
    }

    .review-container .no-reviews-message {
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
        text-align: center;
        margin: 0;
        box-sizing: border-box;
    }

    .review-container .no-reviews-message .no-reviews-card {
        width: 100%;
        max-width: 100%;
        border-radius: 0.625rem;
        display: flex;
        flex-direction: column;
        padding: 0;
        box-sizing: border-box;
        overflow: hidden;
    }

    .review-container .no-reviews-message .no-reviews-content-wrapper {
        flex-direction: column;
        align-items: center;
        margin-right: 0;
        padding: 0.75rem 0.5rem;
        box-sizing: border-box;
    }

    .review-container .no-reviews-message .no-reviews-icon {
        margin-bottom: 0.5rem;
        flex-shrink: 0;
    }

    .review-container .no-reviews-message .no-reviews-icon i {
        font-size: 3rem !important;
        width: 60px;
        height: 60px;
        color: #e0e0e0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .review-container .no-reviews-message .no-reviews-text-wrapper {
        align-items: center;
        margin-top: 0.25rem;
        width: 100%;
        box-sizing: border-box;
    }

    .review-container .no-reviews-message .no-reviews-subtext {
        font-size: 0.75rem !important;
        color: #757575 !important;
        margin-top: 0.25rem !important;
        line-height: 1.4;
        padding: 0 0.5rem;
        box-sizing: border-box;
    }

    .review-container .no-reviews-message .no-reviews-button-wrapper {
        padding: 0.75rem 1rem;
        border-top: none;
        box-sizing: border-box;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    @media (min-width: 768px) {
        .review-container .no-reviews-message {
            width: 100%;
            max-width: 100%;
        }

        .review-container .no-reviews-message .no-reviews-content-wrapper {
            padding: 0.75rem 0.5rem 0.75rem 0;
            flex-direction: row;
            align-items: center;
            margin-right: 1rem;
        }

        .review-container .no-reviews-message .no-reviews-icon i {
            font-size: 3.5rem !important;
            width: 70px;
            height: 70px;
        }

        .review-container .no-reviews-message .no-reviews-text-wrapper {
            align-items: flex-start;
            margin-right: 1rem;
            margin-top: 0;
        }

        .review-container .no-reviews-message .no-reviews-text {
            font-size: 0.9375rem !important;
            padding: 0;
        }

        .review-container .no-reviews-message .no-reviews-subtext {
            font-size: 0.8125rem !important;
            padding: 0;
        }

        .review-container .no-reviews-message .no-reviews-button-wrapper {
            padding: 0.75rem 1rem 0.75rem 1.5rem;
        }
    }

    .review-container .no-reviews-message .no-reviews-add-button {
        width: auto;
        min-width: 8.5rem;
        display: inline-flex;
        padding: 8px 1.25rem;
    }

    .review-box .review-actions,
    .review-box .review-header,
    .review-box .review-text {
        padding: 5px 0
    }

    .review-date,
    .review-username {
        font-size: .8125rem
    }

    .thumb-down-count,
    .thumb-up-count {
        font-size: .8125rem
    }

    #reviewsSection .review-text {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        cursor: pointer;
        transition: max-height .3s
    }

    .review-text {
        font-size: 0.8125rem
    }

    #reviewsSection .single-row-header .btn {
        font-size: .75rem;
        padding: 6px 12px
    }

    #reviewsSection .single-row-header {
        flex-wrap: nowrap;
        gap: 10px
    }

    #reviewsSection .single-row-header,
    #reviewsSection .single-row-title {
        margin-bottom: 0
    }

    #reviewsSection .single-row-title {
        width: auto
    }
}

@media (min-width:768px) {

    .review-text,
    .table-responsive {
        text-align: justify
    }
}

.inline-modal-footer-border {
    border-top: 1px solid #ddd
}

.inline-btn-border-radius-10 {
    border-radius: 10px;
    font-size: .875rem;
    padding: .9rem 0
}

.inline-modal-body-bg {
    background: #fff
}

.inline-textarea-font {
    font-size: .8125rem;
    padding-bottom: 5rem;
    resize: none
}

.inline-text-right-font {
    margin-bottom: .5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.inline-anonymous-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .5rem 0
}

.inline-label-font {
    margin: 0;
    cursor: pointer;
    color: #212529;
    font-weight: 500;
    font-size: .875rem
}

.inline-checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    background: #fff;
    transition: .2s
}

.inline-checkbox-custom.checked {
    background: #dc3545;
    border-color: #dc3545
}

.inline-checkbox-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    opacity: 0;
    transition: opacity .2s
}

.inline-checkbox-custom.checked .inline-checkbox-icon {
    opacity: 1
}

/* توست موفقیت افزودن به سبد خرید */
.cart-success-toast {
    --color-neutral-650: #424242;
    position: fixed;
    bottom: 70px;
    left: 0;
    z-index: 1030;
    width: 100%;
    padding: 12px;
    padding-top: 32px;
    touch-action: none;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease-out, visibility 0.15s ease-out;
}

.cart-success-toast.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cart-success-toast-card {
    display: flex;
    flex-direction: column;
    max-width: 351px;
    margin-left: auto;
    margin-right: auto;
    padding: 12px 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.25s ease-out, opacity 0.2s ease-out;
    overflow: visible;
}

.cart-success-toast.is-visible .cart-success-toast-card {
    transform: translateY(0);
    opacity: 1;
}

.cart-success-toast-message {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 4px;
    padding-right: 4px;
}

.cart-success-toast-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    margin: -8px 4px -8px 0;
    border: none;
    background: transparent;
    color: var(--color-neutral-650);
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.cart-success-toast-close:hover {
    background: rgba(0, 0, 0, 0.06);
}

.cart-success-toast-close:focus {
    outline: 2px solid #ef4056;
    outline-offset: 2px;
}

.cart-success-toast-text {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: visible;
}

.cart-success-toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 24px;
    color: #4caf50;
}

.cart-success-toast-icon-inner {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.cart-success-toast-icon i {
    position: relative;
    z-index: 1;
    font-size: inherit;
    color: inherit;
}

.cart-success-toast-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0c0c0c;
    margin-top: 2px;
}

@media (max-width: 991px) {
    .cart-success-toast-title {
        font-size: 0.8125rem;
    }

    .cart-success-toast {
        bottom: 80px;
        padding: 12px 12px 16px;
    }
}

@media (min-width: 992px) {
    .cart-success-toast {
        bottom: 0;
        padding: 24px;
        padding-top: 32px;
    }
}