.variantTypeLabel {
    color: #101010;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.6;
    display: inline;
    margin: 0;
}

.variant-label-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.variant-value-label {
    display: inline;
}

.variant-value-text {
    font-weight: 600;
}

.variant-label-row .label-color-swatch {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(238, 41, 41, 0.08);
    margin-right: 4px;
    vertical-align: middle;
}

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

.variant-picker-wrap {
    position: relative;
}

.variant-picker {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: flex-start;
    margin: 0.5rem 0 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-inline-end: 8px;
}

.variant-picker::-webkit-scrollbar {
    display: none;
}

.variant-picker-nav {
    display: none;
    position: absolute;
    top: 0.875rem;
    z-index: 2;
    width: 16px;
    height: 16px;
    padding: 0;
    border: none;
    background: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.variant-picker-wrap.is-scrollable .variant-picker-nav {
    display: flex;
}

.variant-picker-prev {
    right: -0.7rem;
}

.variant-picker-next {
    left: -0.7rem;
}

.variant-picker-nav svg {
    width: 16px;
    height: 16px;
    display: block;
}

.variant-picker-next svg {
    transform: translateX(-1px);
}

.variant-picker-prev svg {
    transform: rotate(180deg) translateX(-1px);
}

.variant-picker-nav.is-disabled {
    opacity: .35;
    pointer-events: none;
}

.variant-btn {
    flex: 0 0 auto;
    border: 1px solid #ddd;
    background: #fff;
    color: #101010;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 4px;
    padding: 12px;
    cursor: pointer;
    min-width: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
}

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

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

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

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

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

.custom-breadcrumb::-webkit-scrollbar {
    display: none;
}

.custom-breadcrumb {
    scrollbar-width: none;
}

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

.breadcrumb-separator svg {
    width: 12px;
    height: 12px;
    display: block;
    color: #81858b;
    fill: #81858b;
    flex-shrink: 0;
}

.custom-breadcrumb .breadcrumb-item a {
    color: #81858b;
    font-weight: 500;
    text-decoration: none;
    padding: 3px 0;
    white-space: nowrap;
    display: inline-block;
}

/* ===== موبایل و تبلت: فعال کردن آندرلاین برای breadcrumb ===== */
@media screen and (max-width: 991.98px) {
    .custom-breadcrumb .breadcrumb-item a {
        text-decoration: underline;
        text-decoration-thickness: 1px;
        text-underline-offset: 6px;
        text-decoration-color: #81858b;
    }
}

/* ===== END Breadcrumb Styles ===== */

.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;
}

.price-layout {
    text-align: center;
}

.align-baseline {
    self-align: baseline;
}

.product-mobile-cart {
    display: none;
}

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

/* ===== PRODUCT META (برند و دسته) ===== */

/* ===== دسکتاپ (حالت قبلی) ===== */
.show-on-desktop {
    display: block;
}

.show-on-mobile-tablet {
    display: none;
}

.product-meta-text {
    font-size: 0.875rem;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    color: #81858b;
}

.product-meta-text a {
    font-size: 0.875rem;
    color: #81858b;
    font-weight: 500;
    text-decoration: none;
    padding: 3px 0;
    display: inline-block;
    transition: color 0.2s ease;
}

.product-meta-text a:hover {
    color: #101010;
}

.product-meta-separator {
    display: inline-flex;
    align-items: center;
    margin: 0 4px;
    color: #888;
}

.product-action-buttons,
.product-purchase-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-shrink: 0;
}

.product-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #424750;
    border-radius: 50%;
}

.product-action-btn svg {
    width: 20px;
    height: 20px;
    display: block;
    color: #424750;
}

.product-action-btn.is-favorited,
.product-action-btn.is-favorited svg {
    color: #ef4056;
}

/* ===== موبایل و تبلت (نسخه جدید با آیکون‌ها و آندرلاین) ===== */
@media screen and (max-width: 991.98px) {
    .show-on-desktop {
        display: none !important;
    }

    .show-on-mobile-tablet {
        display: flex !important;
    }

    .product-meta-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding: 8px 0 0 0;
        width: 100%;
    }

    .product-meta-links {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        overflow: hidden;
        min-width: 0;
        flex: 1;
    }

    .product-meta-link {
        font-size: 0.75rem;
        font-weight: 500;
        color: #81858b;
        text-decoration: underline;
        text-decoration-thickness: 1px;
        text-underline-offset: 6px;
        text-decoration-color: #81858b;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
        flex-shrink: 1;
        min-width: 0;
    }

    .product-meta-separator {
        display: inline-flex;
        align-items: center;
        flex-shrink: 0;
        margin: 0 4px;
        color: #81858b;
    }

    .product-meta-separator svg {
        width: 12px;
        height: 12px;
        display: block;
        color: #81858b;
        fill: #81858b;
        flex-shrink: 0;
    }
}

/* ===== دسکتاپ: استایل لینک‌های برند و دسته ===== */
@media screen and (min-width: 992px) {
    .product-meta-link {
        text-decoration: none !important;
    }

    .product-meta-text a {
        text-decoration: none !important;
        color: #008eb2;
        font-size: 0.875rem;
    }

    .product-meta-text a:hover {
        color: #006b8a;
    }

    .product-meta-text {
        font-size: 0.875rem;
    }
}
/* ===== END PRODUCT META ===== */

.product-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.8;
    color: #101010;
    margin: 0;
}

.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: #AFAFAF;
    font-weight: 500;
}

.price-layout .final-price {
    font-weight: 600;
    color: #000;
    font-size: 1rem;
}

@media screen and (min-width: 992px) {
    .price-layout .final-price {
        font-size: 1.25rem;
    }

    .price-layout .old-price-discount del {
        font-size: 0.875rem;
    }

    .price-layout .toman-icon {
        width: 24px;
        height: 24px;
        display: inline-block;
        vertical-align: middle;
        margin-right: 2px;
    }

    .product-title {
        font-size: 1.1875rem;
    }
}

/* ===== استایل عمومی برای آیکون تومان (تمام اندازه‌ها) ===== */
.toman-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 2px;
    flex-shrink: 0;
}

/* ===== تنظیمات موبایل ===== */
@media screen and (max-width: 991.98px) {
    .price-layout .final-price {
        font-size: 1rem;
        font-weight: 600;
    }

    .price-layout .old-price-discount del {
        font-size: 0.75rem;
    }

    .product-title {
        font-size: 1rem;
    }
}

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

#mainProductImage {
    transition: opacity .2s;
}

.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-main-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.product-info-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.product-detail-column {
    min-width: 0;
}

.product-purchase-panel {
    display: none;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
}

.product-gallery-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fff;
}

.product-gallery-main {
    position: relative;
    width: 100%;
    background: #fff;
    overflow: hidden;
}

.product-gallery-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.product-gallery-track::-webkit-scrollbar {
    display: none;
}

.product-gallery-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    background: #fff;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.product-gallery-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.product-gallery-dots {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}

.product-gallery-dot {
    pointer-events: auto;
    width: 8px;
    height: 8px;
    padding: 0;
    border: 1px solid #101010;
    border-radius: 50%;
    background: #00000099;
    opacity: 1;
    cursor: pointer;
}

.product-gallery-dot.active {
    background: #fff;
}

.product-gallery-thumbs {
    display: none;
}

.product-gallery-thumbs-inner {
    position: relative;
    width: 100%;
}

.product-gallery .thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 0;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.product-gallery .thumbnails::-webkit-scrollbar {
    display: none;
}

.product-gallery .thumbnail {
    width: 78px;
    height: 93px;
    min-width: 78px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
    padding: 0;
    overflow: hidden;
    display: inline-flex;
    flex-shrink: 0;
    font: inherit;
}

.product-gallery .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    pointer-events: none;
    user-select: none;
}

.product-gallery .thumbnail.active {
    border-color: #ef4056;
}

.product-gallery-thumbs-nav {
    display: none;
    position: absolute;
    top: 40%;
    z-index: 2;
    width: 16px;
    height: 16px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
}

.product-gallery-thumbs-nav svg {
    width: 16px;
    height: 16px;
    display: block;
}

.product-gallery-thumbs-prev {
    right: -8px;
}

.product-gallery-thumbs-next {
    left: -8px;
}

.product-gallery-thumbs-prev svg {
    transform: rotate(180deg) translateX(-1px);
}

.product-gallery-thumbs-next svg {
    transform: translateX(-1px);
}

.product-gallery-thumbs-nav.is-disabled {
    opacity: .35;
    pointer-events: none;
}

.product-gallery-thumbs-inner.is-scrollable .product-gallery-thumbs-nav {
    display: flex;
}

/* ===== تنظیمات کارت قیمت و گالری در دسکتاپ ===== */
@media screen and (min-width: 992px) {
    .product-main-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 2rem;
    }

    .product-gallery-column {
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 2rem;
    }

    .product-info-row {
        flex: 1;
        flex-direction: row;
        align-items: flex-start;
        gap: 2rem;
        min-width: 0;
    }

    .product-detail-column {
        flex: 1;
        min-width: 0;
    }

    .product-purchase-panel {
        display: flex !important;
        flex-direction: column;
        width: 316px;
        flex-shrink: 0;
        gap: 0.5rem;
        align-self: flex-start;
    }

    .product-purchase-actions {
        justify-content: flex-end;
        width: 316px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .product-purchase-panel .product-purchase-card {
        width: 316px;
        box-sizing: border-box;
        border: 1px solid #e5e5e5 !important;
        background-color: #fafafa;
        border-radius: 4px;
        padding: 1.25rem 0.75rem;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 0;
    }

    .product-purchase-sale-cart {
        display: flex;
        width: 100%;
        margin-top: 1rem;
    }

    .product-purchase-panel .price-layout {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.375rem;
        text-align: center;
        width: fit-content;
    }

    .product-purchase-panel .old-price-discount {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
    }

    .product-purchase-panel .old-price-discount del {
        margin-left: 0;
        font-size: 0.875rem;
    }

    .specs-key,
    .specs-value,
    .product-description-content {
        font-size: 0.875rem;
    }

    .product-gallery-card {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 1rem;
        overflow: visible;
        border-radius: 0;
        background: transparent;
    }

    .product-gallery {
        gap: 0;
        width: auto;
    }

    .product-gallery-main {
        width: 316px;
        flex-shrink: 0;
        overflow: hidden;
        background: #fff;
        border-radius: 4px;
    }

    .product-gallery-track {
        gap: 0;
    }

    .product-gallery-slide {
        width: 316px;
        height: 316px;
        min-height: 316px;
        aspect-ratio: auto;
        background: #fff;
    }

    .product-gallery-slide img {
        border-radius: 4px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    }

    .product-gallery-dots {
        display: none;
    }

    .product-gallery-thumbs {
        display: block;
        width: 44px;
        flex-shrink: 0;
        padding: 0;
    }

    .product-gallery-thumbs-inner {
        position: relative;
        height: 316px;
    }

    .product-gallery .thumbnails {
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: auto;
        max-height: 316px;
        gap: 8px;
        justify-content: flex-start;
        scrollbar-width: none;
    }

    .product-gallery .thumbnails::-webkit-scrollbar {
        display: none;
    }

    .product-gallery .thumbnail {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        border-radius: 4px;
        border: 1px solid transparent;
    }

    .product-gallery-thumbs-nav {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: 20px;
        height: 20px;
    }

    .product-gallery-thumbs-prev {
        top: -4px;
        bottom: auto;
    }

    .product-gallery-thumbs-next {
        top: auto;
        bottom: -4px;
    }

    .product-gallery-thumbs-prev svg,
    .product-gallery-thumbs-next svg {
        transform: rotate(90deg);
    }

    .product-gallery-thumbs-next svg {
        transform: rotate(-90deg);
    }
}

@media (max-width: 991.98px) {
    .product-purchase-panel {
        display: none !important;
    }

    .product-gallery-column {
        height: auto;
        display: block;
        border-bottom: none;
        margin-bottom: 0;
        padding: 0 !important;
        width: 100vw !important;
        max-width: 100vw;
        margin-right: calc(50% - 50vw);
        margin-left: calc(50% - 50vw);
    }

    .product-gallery-card {
        flex-direction: column;
    }

    .product-gallery-thumbs {
        display: none;
    }

    .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: none;
    border-radius: 8px;
    padding: 6px 18px;
    width: 100%;
    min-height: 48px;
    max-height: 48px;
    gap: 12px;
    background-color: #fff;
    box-shadow: 0 1px 5px #0003;
}

.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;
}

.product-description-content {
    line-height: 2;
    color: #101010;
    font-size: 0.75rem;
}

.product-description-content h1,
.product-description-content h2,
.product-description-content h3,
.product-description-content h4 {
    text-align: right;
    line-height: 1.5;
    font-weight: 700;
    color: #212529;
    margin: 1rem 0 0.5rem;
}

.product-description-content h1 {
    font-size: 1.5rem;
}

.product-description-content h2 {
    font-size: 1.25rem;
}

.product-description-content h3 {
    font-size: 1.1rem;
}

.product-description-content h4 {
    font-size: 1rem;
}

.product-description-content p {
    margin-bottom: 0.75rem;
}

.product-description-content ul,
.product-description-content ol {
    padding-right: 1.5rem;
    margin-bottom: 0.75rem;
}

.product-description-content a {
    color: #0d6efd;
    text-decoration: underline;
}

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

@media (max-width: 991.98px) {
    .cart-counter-box .cart-qty {
        font-size: 1rem;
    }

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

#reviewsSection .single-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-wrap: nowrap;
}

.view-all-reviews-link {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    margin-block: auto;
    margin-inline-start: auto;
    margin-inline-end: 0;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    user-select: none;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 2.17;
    color: #424242;
}

.view-all-reviews-link svg {
    width: 18px;
    height: 18px;
    fill: #424750;
    flex-shrink: 0;
}

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

.product-mobile-header {
    display: none;
}

@media (max-width: 991.98px) {
    .desktop-header,
    .mobile-header {
        display: none !important;
    }

    .product-mobile-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1030;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        background: #fff;
        -webkit-tap-highlight-color: transparent;
    }

    .product-mobile-header__row {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        background: #fff;
        position: relative;
        z-index: 1;
        padding: 4px 8px;
        padding-top: calc(4px + env(safe-area-inset-top, 0px));
    }

    .product-section-tabs {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: -1;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        background: #fff;
        border-bottom: 1px solid #e0e0e2;
        scrollbar-width: none;
        opacity: 0;
        pointer-events: none;
        transition: opacity .1s;
        user-select: none;
    }

    .product-section-tabs::-webkit-scrollbar {
        display: none;
    }

    .product-section-tabs.is-visible {
        opacity: 1;
        pointer-events: auto;
    }

    .product-section-tabs__inner {
        display: flex;
        position: relative;
        width: fit-content;
        min-width: 100%;
    }

    .product-section-tabs__spacer {
        flex: 0 0 16px;
    }

    .product-section-tabs__item {
        position: relative;
        appearance: none;
        border: 0;
        background: transparent;
        padding: 8px 12px;
        font-family: inherit;
        font-size: .75rem;
        font-weight: 600;
        line-height: 1.7;
        color: #81858b;
        white-space: nowrap;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .product-section-tabs__item.is-active {
        color: #424750;
    }

    .product-section-tabs__indicator {
        position: absolute;
        bottom: 0;
        height: 4px;
        background: #0c0c0c;
        border-radius: 4px 4px 0 0;
        transition: right .1s, width .1s;
        pointer-events: none;
    }

    .product-mobile-header__start,
    .product-mobile-header__actions {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .product-mobile-header__spacer {
        flex: 1;
        min-height: 12px;
    }

    .product-mobile-header__btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 8px;
        border: none;
        background: transparent;
        border-radius: 8px;
        color: #424750;
        cursor: pointer;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }

    .product-mobile-header__btn:active {
        transform: scale(0.92);
    }

    .product-mobile-header__btn svg {
        width: 24px;
        height: 24px;
        fill: #424750;
    }

    .product-mobile-header__icon-wrap {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .product-mobile-header__badge {
        position: absolute;
        left: 15px;
        bottom: 0;
        min-width: 20px;
        height: 20px;
        padding: 0 4px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #dc3545;
        color: #fff;
        border: 2px solid #fff;
        border-radius: 6px;
        font-size: .625rem;
        font-weight: 600;
        line-height: 1;
        z-index: 2;
    }

    .product-mobile-header__more-wrap {
        position: relative;
    }

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

    .product-details {
        padding-top: calc(52px + env(safe-area-inset-top, 0px));
    }

    .breadcrumb-container {
        overflow: visible;
        padding-bottom: 4px;
    }

    .custom-breadcrumb {
        overflow-y: visible;
        padding-bottom: 4px;
    }

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

    .product-mobile-cart .cart-btn-container {
        order: 1;
    }

    .product-mobile-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;
    }

    .product-mobile-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;
    }

    .price-layout .old-price-discount del {
        font-size: .75rem;
    }
}

.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: #9b9b9b;
    white-space: nowrap;
    font-weight: 500;
}

.pagination .page-item .page-link:hover {
    color: #dc3545;
}

.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;
}

footer.border-top {
    border-top: 0 !important;
}

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

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

.reviews-empty-state {
    display: none;
}

.reviews-empty-desktop {
    display: none;
}

.reviews-desktop-summary {
    display: none;
}

.reviews-write-cta {
    display: none;
}

@media (min-width: 992px) {
    /* overflow-x:hidden روی html/body باعث از کار افتادن position:sticky می‌شود */
    html,
    body {
        overflow-x: clip;
    }

    #reviewsSection .rating-summary {
        display: none;
    }

    #reviewsSection,
    #reviewsSection > .container,
    .review-layout,
    .reviews-empty-desktop {
        overflow: visible;
    }

    .reviews-empty-desktop {
        display: flex;
        align-items: flex-start;
        gap: 0;
        padding-top: 0.75rem;
        user-select: none;
    }

    .reviews-desktop-summary {
        display: block;
        flex: 0 0 auto;
        width: 260px;
        min-width: 260px;
        margin-left: 48px;
        position: sticky;
        top: var(--shop-desktop-sticky-top, 138px);
        align-self: flex-start;
        height: fit-content;
        z-index: 2;
        user-select: none;
    }

    .reviews-desktop-status {
        margin: 0;
        font-size: 0.75rem;
        font-weight: 400;
        line-height: 2.15;
        color: #81858b;
    }

    .reviews-desktop-score {
        display: flex;
        align-items: center;
    }

    .reviews-desktop-score-value {
        margin: 0 0 0 0.25rem;
        font-size: 1.5rem;
        font-weight: 700;
        line-height: 1;
        color: #0c0c0c;
    }

    .reviews-desktop-score-max {
        margin: 0;
        font-size: 0.875rem;
        font-weight: 400;
        line-height: 1;
        color: #0c0c0c;
    }

    .reviews-desktop-rating-row {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        margin-top: 0.25rem;
    }

    .reviews-desktop-stars {
        position: relative;
        display: inline-flex;
        height: 20px;
        margin-top: 0.25rem;
    }

    .reviews-desktop-stars-base {
        display: flex;
        flex-wrap: nowrap;
    }

    .reviews-desktop-stars-fill {
        position: absolute;
        right: 0;
        top: 0;
        overflow: hidden;
        height: 20px;
    }

    .reviews-desktop-stars-fill-inner {
        position: absolute;
        right: 0;
        top: 0;
        display: flex;
        flex-wrap: nowrap;
    }

    .reviews-desktop-star {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
        display: block;
    }

    .reviews-desktop-star--muted {
        color: #a1a3a8;
    }

    .reviews-desktop-star--filled {
        color: #f9a825;
    }

    .reviews-desktop-count {
        margin: 0 0.5rem 0 0;
        font-size: 0.75rem;
        font-weight: 400;
        line-height: 2.15;
        color: #a1a3a8;
    }

    .reviews-desktop-cta-hint {
        margin: 1rem 0 0.75rem;
        font-size: 0.75rem;
        font-weight: 400;
        line-height: 2.15;
        color: #3f4064;
    }

    .reviews-desktop-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin-top: 0.5rem;
        padding: 0.625rem 1rem;
        border: 1px solid #ef4056;
        border-radius: 0.5rem;
        background: transparent;
        color: #ef4056;
        font-size: 0.875rem;
        font-weight: 500;
        line-height: 1.5;
        cursor: pointer;
        transition: background-color 0.15s ease, color 0.15s ease;
    }

    .reviews-desktop-btn:hover {
        background: rgba(239, 64, 86, 0.04);
    }

    .reviews-empty-desktop-prompt {
        flex: 1 1 auto;
        min-width: 0;
        padding: 0.75rem 0;
    }

    .reviews-empty-desktop-prompt-title {
        margin: 0 0 0.5rem;
        font-size: 0.875rem;
        font-weight: 600;
        line-height: 2.15;
        color: #0c0c0c;
    }

    .reviews-empty-desktop-prompt-text {
        margin: 0;
        font-size: 0.75rem;
        font-weight: 400;
        line-height: 2.15;
        color: #81858b;
    }
}

@media (max-width: 991.98px) {
    .reviews-empty-state {
        display: block;
        user-select: none;
    }

    .reviews-empty-rating {
        display: flex;
        align-items: center;
        margin-bottom: 8px;
        color: #767981;
        font-size: 0.6875rem;
        line-height: 1.8;
    }

    .reviews-empty-rating svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

    .reviews-empty-rating span {
        margin-right: 6px;
    }

    .reviews-empty-cta {
        display: flex;
        align-items: center;
        width: calc(100% + (2 * var(--product-page-inset, 1rem)));
        margin: 0 calc(var(--product-page-inset, 1rem) * -1);
        padding: 1rem var(--product-page-inset, 1rem);
        border: none;
        border-top: 1px solid #e0e0e2;
        background: none;
        text-align: right;
        cursor: pointer;
        color: inherit;
        font: inherit;
    }

    .reviews-empty-cta-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 8px;
        margin-left: 12px;
        border-radius: 50%;
        background: #f0f0f1;
        flex-shrink: 0;
        color: #424750;
    }

    .reviews-empty-cta-icon svg {
        width: 24px;
        height: 24px;
        display: block;
    }

    .reviews-empty-cta-text {
        flex: 1 1 auto;
        font-size: 0.75rem;
        font-weight: 600;
        color: #424242;
        line-height: 1.8;
        text-align: right;
    }

    .reviews-empty-cta-chevron {
        width: 24px;
        height: 24px;
        margin-right: 16px;
        flex-shrink: 0;
        color: #424750;
    }

    .reviews-write-cta {
        display: flex;
        border-top-color: #f0f0f1;
        margin-top: 8px;
    }

    .reviews-write-cta .reviews-empty-cta-icon svg {
        width: 20px;
        height: 20px;
    }
}

.rating-summary {
    border-radius: .5rem;
    text-align: right;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 991.98px) {
    #reviewsSection .rating-summary {
        padding-inline: 0 !important;
    }
}

.rating-summary .reviews-summary-star {
    margin-left: 4px;
    flex-shrink: 0;
    color: #f9bc00;
}

.rating-summary .reviews-summary-star:not(.is-filled) {
    color: #d3d3d3;
}

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

.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;
    border: none;
    border-bottom: 1px solid #e9ecef;
    border-radius: 0;
    padding: 16px 12px;
    margin-bottom: 0;
    font-size: .85rem;
    width: 100%;
}

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

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

.review-header-top {
    display: flex;
    align-items: center;
    min-width: 0;
}

.review-header-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #e0e0e2;
    margin: 0 6px;
    flex-shrink: 0;
}

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

.review-text {
    flex: 1;
    margin-bottom: 10px;
    line-height: 2;
    font-weight: 600;
    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: #212529bf;
    font-weight: 500;
}

.review-vote-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    margin-left: 10px;
    cursor: pointer;
    color: #888;
}

.review-vote-btn svg {
    width: 1.2rem;
    height: 1.2rem;
    display: block;
}

.review-vote-btn:hover {
    color: #000;
}

.review-like-btn:hover {
    color: #198754;
}

.review-dislike-btn: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;
    }
}

#writeReviewModal .custom-review-modal-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    min-height: 57px;
    padding: 12px 20px;
    border-bottom: 4px solid #f0f0f1;
    box-sizing: border-box;
}

#writeReviewModal .custom-review-modal-header .close {
    margin: 0;
    color: #424750;
}

#writeReviewModal .custom-review-modal-header .modal-title {
    flex: none;
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 2.15;
    color: #424242;
}

#writeReviewModal .review-product-preview {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#writeReviewModal .review-product-preview-inner {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

#writeReviewModal .review-product-thumb {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    line-height: 0;
}

#writeReviewModal .review-product-thumb img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    display: inline-block;
}

#writeReviewModal .review-product-info {
    margin-right: 12px;
    min-width: 0;
    flex: 1;
}

#writeReviewModal .review-product-name {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.7;
    color: #212529;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#writeReviewModal .border-complete-b {
    border-bottom: 1px solid #f0f0f1;
    margin: 1.25rem 0;
}

#writeReviewModal .review-quality-rating {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #fff;
    padding: 0;
}

#writeReviewModal .review-quality-rating-title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: #212529;
    user-select: none;
}

#writeReviewModal .review-quality-rating-stars {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
}

#writeReviewModal .review-quality-star {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

#writeReviewModal .review-quality-star-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

#writeReviewModal .review-quality-star-btn svg {
    width: 28px;
    height: 28px;
    display: block;
    pointer-events: none;
    color: #d3d3d3;
}

#writeReviewModal .review-quality-star.is-selected .review-quality-star-btn svg {
    color: #f9bc00;
}

#writeReviewModal .review-quality-star-label {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 325;
    color: #888;
    user-select: none;
    line-height: 1.4;
}

#writeReviewModal .review-quality-star.is-selected .review-quality-star-label {
    font-weight: 450;
    color: #101010;
}

#writeReviewModal .review-comment-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

#writeReviewModal .review-comment-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: #212529;
}

#writeReviewModal .review-comment-label--required::after {
    content: " *";
    color: #d32f2f;
}

#writeReviewModal .review-comment-frame {
    width: 100%;
}

#writeReviewModal .review-comment-input-wrap {
    background: #f2f2f2;
    border: 1px solid #c0c2c5;
    border-radius: 8px;
    padding: 0 8px;
}

#writeReviewModal .review-comment-input-wrap .review-textarea {
    width: 100%;
    min-height: 116px;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 12px 4px;
    font-size: 0.875rem;
    line-height: 1.7;
    color: #212529;
    resize: vertical;
    outline: 0;
    box-shadow: none;
}

#writeReviewModal .review-comment-input-wrap .review-textarea:focus,
#writeReviewModal .review-comment-input-wrap .review-textarea:active {
    border: none;
    outline: 0;
    box-shadow: none;
}

#writeReviewModal .review-comment-input-wrap .review-textarea::placeholder {
    color: #a1a3a8;
}

.custom-review-modal-header .close {
    background: 0 0;
    border: none;
    color: #222;
    padding: 0;
    margin-left: .5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.custom-review-modal-header .close svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    display: block;
}

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

.review-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.review-stars .review-star {
    width: 18px;
    height: 18px;
    color: #d3d3d3;
    flex-shrink: 0;
    display: block;
}

.review-stars .review-star.is-filled {
    color: #f9bc00;
}

.review-submit-btn {
    width: 100%;
    background: #dc3545;
    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;
}

.review-submit-btn:hover {
    background: #d63046;
}

@media screen and (min-width: 992px) {
    .review-layout {
        display: flex;
        align-items: flex-start;
        width: 100%;
        box-sizing: border-box;
        margin-top: 0.75rem;
    }

    .review-right-col {
        flex: 1 1 auto;
        min-width: 0;
        overflow: visible;
    }

    .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: flex !important;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 8px;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0 0 10px;
    }

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

    .review-container .review-box {
        display: flex;
        flex-direction: column;
        flex-shrink: 0;
        width: 240px;
        height: auto;
        margin: 0;
        padding: 12px;
        border: 1px solid #e0e0e2;
        border-radius: 8px;
        background: #fff;
        box-sizing: border-box;
        user-select: none;
    }

    .review-container .review-box:last-child {
        border-bottom: 1px solid #e0e0e2;
    }

    .review-container [data-pagination-container] {
        display: none !important;
    }

    .review-container .review-header,
    #allReviewsModal .review-header {
        margin-bottom: 0;
        padding: 0;
    }

    .review-container .review-username,
    #allReviewsModal .review-username {
        margin-bottom: 0;
        font-size: 0.75rem;
        font-weight: 600;
        color: #424242;
        line-height: 1.8;
    }

    .review-container .review-username {
        max-width: 8rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: block;
    }

    .review-container .buyer-badge,
    #allReviewsModal .buyer-badge {
        background: rgba(76, 175, 80, 0.1);
        color: #2e7b32;
        font-size: 0.625rem;
        font-weight: 600;
        border-radius: 8px;
        padding: 2px 8px;
        margin-right: 0;
        line-height: 1.6;
        white-space: nowrap;
    }

    .review-container .review-stars,
    #allReviewsModal .review-stars {
        display: flex;
        align-items: center;
        gap: 2px;
        margin-top: 8px;
    }

    .review-container .review-stars svg,
    #allReviewsModal .review-stars svg {
        width: 18px;
        height: 18px;
        color: #d3d3d3;
        flex-shrink: 0;
        display: block;
    }

    .review-container .review-stars svg.is-filled,
    #allReviewsModal .review-stars svg.is-filled {
        color: #f9bc00;
    }

    .review-container .review-text,
    #allReviewsModal .review-text {
        margin: 8px 0 0;
        padding: 0;
        font-size: 0.75rem;
        font-weight: 500;
        color: #0c0c0c;
        line-height: 1.8;
        text-align: right;
        cursor: default;
    }

    .review-container .review-text {
        flex: none;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        overflow: hidden;
        text-overflow: ellipsis;
        min-height: calc(1.8em * 3);
        max-height: calc(1.8em * 3);
        overflow-wrap: anywhere;
    }

    .review-container .review-actions {
        margin-top: 12px;
        min-height: 0;
        padding: 0 !important;
    }

    .review-container .review-date,
    #allReviewsModal .review-date {
        font-size: 0.75rem;
        font-weight: 400;
        color: #a1a3a8;
    }

    .review-container .review-icons,
    #allReviewsModal .review-icons {
        gap: 0;
    }

    .review-container .thumb-group,
    #allReviewsModal .thumb-group {
        flex-direction: row-reverse;
        gap: 4px;
        padding: 0 8px;
    }

    .review-container .view-all-reviews-container {
        flex-shrink: 0;
        height: auto;
        align-self: stretch;
        margin: 0;
        padding: 0 40px;
    }

    .review-container .review-vote-btn,
    #allReviewsModal .review-vote-btn {
        margin-left: 0;
        color: #424750;
    }

    .review-container .review-vote-btn svg,
    #allReviewsModal .review-vote-btn svg {
        width: 16px;
        height: 16px;
    }

    .review-container .thumb-down-count,
    .review-container .thumb-up-count,
    #allReviewsModal .thumb-down-count,
    #allReviewsModal .thumb-up-count {
        font-size: 0.75rem;
        color: #424242;
    }

    @media (min-width: 360px) {
        .review-container .review-box {
            width: 280px;
        }
    }
}

@media (min-width: 768px) {
    .review-text {
        text-align: justify;
    }
}

.view-all-reviews-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    margin: 1rem 0;
    user-select: none;
    cursor: pointer;
}

.view-all-reviews-btn {
    position: relative;
    display: flex;
    align-items: center;
    user-select: none;
    background: transparent;
    border: 1px solid #0c0c0c;
    border-radius: 50%;
    padding: 8px;
    width: 48px;
    height: 48px;
    cursor: pointer;
    outline: none;
}

.view-all-btn-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-grow: 1;
}

.view-all-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.view-all-btn-icon svg {
    width: 24px;
    height: 24px;
    color: #0c0c0c;
    display: block;
}

.view-all-reviews-text {
    white-space: nowrap;
    margin-top: 8px;
    font-size: 10px;
    font-weight: 600;
    color: #0c0c0c;
    text-align: center;
}

@media (min-width: 992px) {
    .view-all-reviews-container {
        display: none !important;
    }
}

#allReviewsModal .modal-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

#allReviewsModal .custom-review-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 80px;
    padding: 16px 20px;
    border-bottom: none;
    box-sizing: border-box;
}

#allReviewsModal .all-reviews-header-start {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
}

#allReviewsModal .custom-review-modal-header .close {
    flex-shrink: 0;
    margin: 0;
    color: #424750;
}

#allReviewsModal .custom-review-modal-header .modal-title {
    flex: 1 1 auto;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 2.25;
    color: #0c0c0c;
}

#allReviewsModal .all-reviews-sort-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    color: #424750;
    cursor: pointer;
}

#allReviewsModal .all-reviews-sort-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    display: block;
}

.reviews-sort-sheet {
    position: absolute;
    inset: 0;
    z-index: 20;
}

.reviews-sort-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.reviews-sort-sheet-panel {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    background: #fff;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    transform: translateY(100%);
    transition: transform .25s ease-out;
}

.reviews-sort-sheet.is-open .reviews-sort-sheet-panel {
    transform: translateY(0);
}

.reviews-sort-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.reviews-sort-sheet-title {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 2.17;
    color: #0c0c0c;
}

.reviews-sort-sheet-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    color: #424750;
    cursor: pointer;
}

.reviews-sort-sheet-close svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    display: block;
}

.reviews-sort-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #e0e0e2;
    background: none;
    cursor: pointer;
    text-align: right;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 2.17;
    color: #3f4064;
}

.reviews-sort-option:last-child {
    border-bottom: none;
}

.reviews-sort-check {
    width: 24px;
    height: 24px;
    fill: #424750;
    display: none;
    flex-shrink: 0;
}

.reviews-sort-option.is-active .reviews-sort-check {
    display: block;
}

#allReviewsModal .modal-body {
    flex: 1 1 auto;
    padding: 0 1rem 88px;
    overflow-y: auto;
}

#allReviewsModal .all-reviews-modal-footer {
    position: absolute;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    left: 16px;
    z-index: 5;
    padding: 0;
    background: none;
    border: none;
    width: auto;
}

.all-reviews-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    gap: 8px;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 12px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(3, 10, 22, 0.16);
}

.all-reviews-add-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    flex-shrink: 0;
}

.all-reviews-add-btn:hover,
.all-reviews-add-btn:focus {
    background: #d63046;
    color: #fff;
}

#allReviewsModal .all-reviews-sentinel {
    height: 32px;
    margin: 8px 0 16px;
}

#allReviewsModal .all-reviews-sentinel.is-loading {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='9' stroke='%23c0c2c5' stroke-width='2' opacity='0.35'/%3E%3Cpath d='M21 12a9 9 0 0 0-9-9' stroke='%23dc3545' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 24px no-repeat;
    animation: all-reviews-spin 0.7s linear infinite;
}

@keyframes all-reviews-spin {
    to {
        transform: rotate(360deg);
    }
}

#allReviewsModal .all-reviews-list {
    display: block !important;
    overflow: visible !important;
}

#allReviewsModal .review-box {
    width: 100%;
    height: auto;
    flex-shrink: 1;
    border: none;
    border-bottom: 1px solid #e9ecef;
    border-radius: 0;
    padding: 16px 0;
    margin: 0;
}

#allReviewsModal .review-box:last-child {
    border-bottom: none;
}

#allReviewsModal .review-username {
    max-width: none;
    display: inline-block;
}

#allReviewsModal .review-text {
    display: block;
    overflow: visible;
    flex: none;
}

#allReviewsModal .review-actions {
    margin-top: 12px;
    min-height: 40px;
    padding: 0;
}

#allReviewsModal .view-all-reviews-container,
#allReviewsModal [data-pagination-container] {
    display: none !important;
}

.product-specs-table {
    width: 100%;
}

.specs-row {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0.875rem 0;
    gap: 1rem;
}

.specs-key {
    flex: 0 0 12%;
    font-size: 0.75rem;
    color: #888;
    background: transparent;
    padding: 0;
    border-radius: 0;
    text-align: right;
}

.specs-value {
    flex: 0 0 calc(88% - 1rem);
    font-size: 0.75rem;
    color: #101010;
    text-align: right;
    word-break: break-word;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid #f0f0f0;
}

.specs-row:last-child .specs-value {
    border-bottom: none;
    padding-bottom: 0;
}

@media (max-width: 992px) {
    .specs-key {
        flex: 0 0 35%;
    }

    .specs-value {
        flex: 0 0 calc(65% - 1rem);
    }

    .specs-row {
        padding: 0.75rem 0;
    }

    .specs-value {
        padding-bottom: 0.75rem;
    }
}

@media (max-width: 768px) {
    .specs-row {
        padding: 0.75rem 0;
    }

    .specs-key {
        flex: 0 0 35%;
    }

    .specs-value {
        flex: 0 0 calc(65% - 1rem);
        padding-bottom: 0.75rem;
    }
}

.custom-toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.custom-toast {
    min-width: 320px;
    max-width: 400px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
    direction: rtl;
}

.custom-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.custom-toast.hiding {
    transform: translateY(100%);
    opacity: 0;
}

.custom-toast-content {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    gap: 12px;
}

.custom-toast-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.custom-toast-close i {
    font-size: 18px;
    color: #9e9e9e;
}

.custom-toast-close:hover {
    background: #f5f5f5;
}

.custom-toast-close:hover i {
    color: #616161;
}

.custom-toast-icon {
    flex-shrink: 0;
}

.custom-toast-icon i {
    font-size: 22px;
    color: #24d50c;
}

.custom-toast-message {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 600;
    color: #212529;
}

.custom-toast-view-cart {
    background: #f0f0f1;
    color: #212529;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 8px;
    transition: background 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.custom-toast-view-cart:hover {
    background: #e4e4e5;
    color: #212529;
}

.custom-toast-view-cart svg {
    width: 14px;
    height: 14px;
    stroke: #212529;
    stroke-width: 2;
    flex-shrink: 0;
}

.custom-toast-view-cart:hover svg {
    stroke: #212529;
}

@media (max-width: 991.98px) {
    .custom-toast-container {
        position: fixed;
        bottom: auto !important;
        top: auto !important;
        bottom: 100px !important;
        left: 16px;
        right: 16px;
        transform: none !important;
        z-index: 10000;
    }

    .custom-toast {
        min-width: auto;
        max-width: 100%;
        width: 100%;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    .custom-toast-content {
        padding: 12px 14px;
    }

    .custom-toast-message {
        font-size: 0.8125rem;
    }

    .custom-toast-view-cart {
        font-size: 0.75rem;
        padding: 5px 10px;
    }

    .custom-toast-view-cart svg {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 576px) {
    .custom-toast-container {
        left: 16px;
        right: 16px;
        bottom: 90px !important;
    }

    .custom-toast {
        min-width: auto;
        max-width: 100%;
        width: 100%;
    }

    .custom-toast-content {
        padding: 12px 14px;
    }

    .custom-toast-message {
        font-size: 0.8125rem;
    }

    .custom-toast-view-cart {
        font-size: 0.75rem;
        padding: 5px 10px;
    }

    .custom-toast-view-cart svg {
        width: 12px;
        height: 12px;
    }
}