/* --- Merged from comparison_index_css.blade.php --- */
.disclaimer-subtle-box {
        background: rgba(248, 249, 250, 0.75) !important;
        backdrop-filter: blur(8px);
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        font-size: 13px !important;
        color: #64748b !important;
        padding: 12px 18px !important;
        transition: all 0.3s ease;
    }
    .disclaimer-report-btn {
        font-size: 13px !important;
        color: #475569 !important;
        font-weight: 600;
        transition: all 0.2s ease;
        padding: 0;
        border: none;
        background: none;
    }
    .disclaimer-report-btn:hover {
        color: #0f2b5b !important;
        text-decoration: underline !important;
    }

    .comparison-header {
        padding: 1rem;
        background: #f8f9fa;
        border-radius: 12px;
        margin: 1rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .comparison-header:hover {
        background: #e9ecef;
        transform: translateY(-2px);
    }

    .comparison-title {
        font-size: 1.5rem; /* 24px - standard premium title */
        font-weight: 700;  /* Bold and premium, not overwhelming */
        color: #0f172a;    /* Slate-900 */
        margin: 2rem 0 1.25rem 0;
        padding: 0 1rem;
        width: 100%;
        line-height: 1.3;
        text-align: start;
        letter-spacing: -0.015em;
        display: block !important;
    }

    .comparison-title span,
    .comparison-title .product-title {
        display: inline !important;
        white-space: normal !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
    }

    .comparison-title .comparison-separator {
        display: inline-block !important;
        white-space: nowrap !important;
        margin: 0 0.45rem !important;
        padding: 0.18rem 0.65rem !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 50px !important;
        background: #f1f5f9 !important;
        font-size: 0.75em !important;
        color: #64748b !important;
        line-height: 1 !important;
        vertical-align: middle !important;
    }

    .comparison-title .text-danger {
        color: var(--versus-accent) !important; /* Unified branding red */
    }

    .comparison-title .text-primary {
        color: var(--versus-primary) !important; /* Unified branding blue */
    }

    .comparison-label {
        background: transparent;
        padding: 0;
        border-radius: 0;
        color: inherit;
        font-weight: inherit;
        font-size: 1em;
    }

    .comparison-separator {
        font-size: 0.75em;
        color: #64748b; /* slate-500 */
        margin: 0 0.45rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        display: inline-block;
        vertical-align: middle;
        background: #f1f5f9; /* slate-100 */
        padding: 0.18rem 0.65rem;
        border-radius: 50px;
        border: 1px solid #e2e8f0; /* slate-200 */
        line-height: 1;
        flex-shrink: 0;
    }

    .product-title {
        display: inline;
        font-size: 1em;
        font-weight: 700;
    }

    .product-score {
        font-size: 0.75em;
        padding: 0.1rem 0.4rem;
        background: #f8f9fa;
        border-radius: 12px;
        color: #495057;
        margin-inline-start: 0.35rem;
        display: inline-block;
        vertical-align: middle;
    }

    .product-card {
        background: transparent;
        box-shadow: none;
        overflow: visible;
        transition: transform 0.3s ease;
        margin-bottom: 0;
        padding: 1rem;
        border: 1px solid #f1f3f5;
        border-radius: 12px;
    }

    .product-card:hover {
        transform: translateY(-5px);
        border-color: #d00707;
    }

    .product-image-container {
        position: relative;
        background: #fff;
        border-radius: 12px;
        transition: all 0.3s ease;
        width: 100%;
        aspect-ratio: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .product-image-container>a {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1rem;
        box-sizing: border-box;
    }

    .product-image {
        max-width: 100%;
        max-height: 100%;
        height: auto;
        width: auto;
        object-fit: contain;
        border-radius: 8px;
        transition: transform 0.3s ease;
    }

    .product-image:hover {
        transform: scale(1.05);
    }

    .product-price {
        position: absolute;
        bottom: 1rem;
        inset-inline-end: 1rem;
        background: rgba(255, 255, 255, 0.95);
        padding: 0.5rem 1rem;
        border-radius: 20px;
        font-weight: 600;
        color: #d00707;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(4px);
    }

    .currency {
        font-size: 0.8em;
        margin-left: 0.25rem;
    }

    .product-info {
        padding: 1.5rem;
    }

    .product-name {
        font-size: 1.25rem;
        margin-bottom: 1rem;
        color: #212529;
    }

    .storage-variants {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .variant-chip {
        background: #e9ecef;
        padding: 0.25rem 0.75rem;
        border-radius: 15px;
        font-size: 0.875rem;
        color: #495057;
    }

    @media (max-width: 1200px) {
        .comparison-title {
            font-size: 1.6rem;
            margin: 1.75rem 0 1.25rem 0;
            padding: 0 0.75rem;
        }

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

    @media (max-width: 992px) {
        .comparison-title {
            font-size: 1.45rem;
            margin: 1.5rem 0 1rem 0;
            padding: 0 0.5rem;
        }

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

    @media (max-width: 768px) {
        .comparison-title {
            font-size: 1.35rem;
            margin: 1.25rem 0 1rem 0;
            padding: 0 0.5rem;
            line-height: 1.32;
        }

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

        .product-score {
            font-size: 0.75em;
            padding: 0.1rem 0.35rem;
        }
    }

    @media (max-width: 576px) {
        .comparison-title {
            font-size: 1.2rem;
            margin: 1rem 0 0.75rem 0;
            padding: 0 0.25rem;
            line-height: 1.35;
        }

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

        .comparison-label {
            padding: 0;
            font-size: 1em;
        }

        .comparison-separator {
            font-size: 0.7em;
            padding: 0.12rem 0.45rem;
            margin: 0 0.25rem;
        }
    }

    .versus-products-container {
        display: grid;
        grid-template-columns: minmax(200px, 1fr) 40px minmax(200px, 1fr) 40px minmax(200px, 1fr) 40px minmax(200px, 1fr);
        align-items: center;
        justify-content: flex-start;
        gap: 0;
        padding: 2rem;
        width: 100%;
        margin: 0 auto;
        position: relative;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    .versus-divider {
        font-size: 1.2rem;
        font-weight: 600;
        color: #6c757d;
        background: #f8f9fa;
        border: 1px solid #dee2e6;
        padding: 0;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        aspect-ratio: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 2;
        line-height: 1;
        margin: 0 -20px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    }

    .versus-divider.gray {
        background: #e9ecef;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .imagePlaceholder {
        position: relative;
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        background: #f8f9fa;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        text-decoration: none;
        border: 2px dashed #dee2e6;
    }

    .imagePlaceholder::before {
        content: '+';
        position: absolute;
        width: 40px;
        height: 40px;
        border: 2px solid #6c757d;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
        color: #6c757d;
        background: transparent;
        line-height: 1;
        padding-bottom: 2px;
    }

    .imagePlaceholder::after {
        display: none;
    }

    .imagePlaceholder:hover {
        background: #f1f3f5;
        border-color: #d00707;
    }

    .imagePlaceholder:hover::before {
        border-color: #495057;
        color: #495057;
        transform: translate(50%, -50%) scale(1.1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    @media (max-width: 1200px) {
        .versus-products-container {
            grid-template-columns: minmax(150px, 1fr) 35px minmax(150px, 1fr) 35px minmax(150px, 1fr) 35px minmax(150px, 1fr);
            padding: 1rem;
        }

        .versus-product:last-child {
            margin-inline-start: 0;
        }

        .versus-divider {
            font-size: 0.85rem;
            width: 28px;
            height: 28px;
            margin: 0 -14px;
        }
    }

    @media (max-width: 992px) {
        .versus-products-container {
            grid-template-columns: minmax(130px, 1fr) 30px minmax(130px, 1fr) 30px minmax(130px, 1fr) 30px minmax(130px, 1fr);
        }

        .versus-product:last-child {
            margin-inline-start: 0;
        }

        .versus-divider {
            font-size: 0.8rem;
            width: 26px;
            height: 26px;
            border-width: 1.5px;
            margin: 0 -13px;
        }
    }

    @media (max-width: 768px) {
        .versus-products-container {
            grid-template-columns: minmax(130px, 42vw) 24px minmax(130px, 42vw) 24px minmax(130px, 42vw) 24px minmax(130px, 42vw);
            gap: 0;
            padding: 0.5rem;
        }

        .versus-product:last-child {
            margin-inline-start: 0;
        }

        .versus-divider {
            margin: 0 -14px;
            width: 28px;
            height: 28px;
        }
    }

    @media (max-width: 576px) {
        .versus-products-container {
            grid-template-columns: minmax(130px, 42vw) 24px minmax(130px, 42vw) 24px minmax(130px, 42vw) 24px minmax(130px, 42vw);
            padding: 0.5rem;
            scroll-snap-type: x mandatory;
            justify-content: flex-start;
        }

        .versus-product:last-child {
            margin-inline-start: 0;
        }

        .versus-divider {
            margin: 0 -12px;
            width: 24px;
            height: 24px;
            font-size: 0.75rem;
        }

        .product-card {
            padding: 0.25rem;
            scroll-snap-align: center;
        }

        .product-image-container>a {
            padding: 0.5rem;
        }

        .product-info {
            padding: 0.5rem;
        }

        .product-price {
            bottom: 0.25rem;
            inset-inline-end: 0.25rem;
            padding: 0.2rem 0.4rem;
            font-size: 0.75rem;
            border-radius: 8px;
        }
    }

    .sticky-product-nav {
        position: fixed;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        background: white;
        padding: 1rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        z-index: 998;
        transition: all 0.3s ease;
        border-radius: 12px;
        width: 90%;
        max-width: 1400px;
        opacity: 0;
        visibility: hidden;
    }

    .sticky-product-nav.show {
        opacity: 1;
        visibility: visible;
    }

    .sticky-products-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        align-items: center;
        gap: 0.5rem;
    }

    /* استایل برای 2 محصول */
    .sticky-products-container.products-2 {
        grid-template-columns: 37.5% 25px 37.5%;
    }

    /* استایل برای 3 محصول */
    .sticky-products-container.products-3 {
        grid-template-columns: 25% 25px 25% 25px 25%;
    }

    /* استایل برای 4 محصول */
    .sticky-products-container.products-4 {
        grid-template-columns: 18.75% 25px 18.75% 25px 18.75% 25px 18.75%;
    }

    .sticky-product {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        padding: 0.35rem;
        border-radius: 8px;
        background: #f8f9fa;
        transition: all 0.2s ease;
        min-height: 50px;
        height: auto;
        overflow: hidden;
        min-width: 0;
    }

    .sticky-product-image {
        width: 30px;
        height: 30px;
        object-fit: cover;
        border-radius: 4px;
        border: 1px solid #dee2e6;
        flex-shrink: 0;
    }

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

    .sticky-product-title {
        font-size: 0.75rem;
        font-weight: 600;
        margin: 0;
        padding-right: 4px;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .sticky-product-specs {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.15rem;
        font-size: 0.65rem;
        color: #6c757d;
        width: 100%;
        overflow: hidden;
    }

    .spec-title {
        cursor: pointer;
        color: #495057;
        max-width: 100%;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
        font-weight: 600;
        font-size: 0.8rem;
    }

    .spec-value {
        color: inherit;
        font-size: 0.65rem !important;
        font-weight: 700;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .spec-title::after {
        content: ":";
        margin: 0 0.15rem;
        color: #6c757d;
        display: inline;
    }

    .sticky-versus {
        font-size: 0.8rem;
        font-weight: 600;
        color: #6c757d;
        text-align: center;
        padding: 0 0.25rem;
        width: 25px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* رنگ‌بندی محصولات در منوی استیکی */
    /* استایل برای 2 محصول */
    .sticky-products-container.products-2 .sticky-product:nth-child(1) .sticky-product-title {
        color: #dc3545;
    }

    .sticky-products-container.products-2 .sticky-product:nth-child(3) .sticky-product-title {
        color: #0d6efd;
    }

    /* استایل برای 3 محصول */
    .sticky-products-container.products-3 .sticky-product:nth-child(1) .sticky-product-title {
        color: #dc3545;
    }

    .sticky-products-container.products-3 .sticky-product:nth-child(3) .sticky-product-title {
        color: #0d6efd;
    }

    .sticky-products-container.products-3 .sticky-product:nth-child(5) .sticky-product-title {
        color: #198754;
    }

    /* استایل برای 4 محصول */
    .sticky-products-container.products-4 .sticky-product:nth-child(1) .sticky-product-title {
        color: #dc3545;
    }

    .sticky-products-container.products-4 .sticky-product:nth-child(3) .sticky-product-title {
        color: #0d6efd;
    }

    .sticky-products-container.products-4 .sticky-product:nth-child(5) .sticky-product-title {
        color: #198754;
    }

    .sticky-products-container.products-4 .sticky-product:nth-child(7) .sticky-product-title {
        color: #6f42c1;
    }

    /* حذف رنگ‌های قبلی که با کلاس‌های text-danger و text-primary اعمال می‌شدند */
    .sticky-product-title.text-danger,
    .sticky-product-title.text-primary {
        color: inherit;
    }

    /* Sticky navigation styles removed - unified in sticky_features_nav_css.blade.php */

    .search-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        z-index: 9999;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .search-overlay.is-open {
        display: block;
        opacity: 1;
    }

    .search-overlay-content {
        max-width: 800px;
        margin: 2rem auto;
        padding: 2rem;
    }

    .search-overlay-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
    }

    .search-overlay-title {
        font-size: 1.5rem;
        font-weight: 600;
        color: #212529;
    }

    .search-overlay-close {
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #6c757d;
        cursor: pointer;
        padding: 0.5rem;
    }

    .search-overlay-input {
        width: 100%;
        padding: 1rem;
        font-size: 1.25rem;
        border: 2px solid #e9ecef;
        border-radius: 8px;
        margin-bottom: 2rem;
        transition: border-color 0.3s ease;
    }

    .search-overlay-input:focus {
        outline: none;
        border-color: #0d6efd;
    }

    .search-overlay-results {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    .search-result-item {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .search-result-item:hover {
        background: #f8f9fa;
        transform: translateY(-2px);
    }

    .search-result-image {
        width: 60px;
        height: 60px;
        object-fit: contain;
        border-radius: 4px;
    }

    .search-result-info {
        flex: 1;
    }

    .search-result-title {
        font-weight: 600;
        margin-bottom: 0.25rem;
    }

    .search-result-price {
        color: #dc3545;
        font-weight: 600;
    }

    .table th,
    .table td {
        padding: 0.75rem 1rem;
    }

    .table th {
        font-weight: 600;
        vertical-align: middle;
        font-size: 0.8rem;
        color: #7a7a7a;
        text-align: start;
        width: 25%;
        border-bottom: 1px solid #f5f5f5;
        line-height: 1.5;
        background-color: rgba(250, 250, 250, 0.5);
    }

    .table td {
        vertical-align: middle;
        font-size: 0.92rem;
        font-weight: 500;
        color: #222;
        text-align: start;
        border-bottom: 1px solid #f5f5f5;
        transition: all 0.3s ease;
        line-height: 1.5;
    }

    @media (max-width: 768px) {
        .table th {
            width: 35% !important;
            max-width: none !important;
            font-size: 0.65rem;
            padding: 0.35rem 0.25rem;
            font-weight: 500;
        }

        .table td {
            font-size: 0.75rem;
            padding: 0.35rem 0.25rem;
        }

        .table.products-2 td {
            width: 32.5% !important;
        }

        .table.products-3 td {
            min-width: 110px !important;
        }

        .table.products-4 td {
            min-width: 110px !important;
        }

        .table th {
            min-width: 100px !important;
        }
    }

    /* استایل برای 2 محصول */
    .table.products-2 td {
        width: 37.5%;
        /* (100% - 25%) / 2 */
    }

    /* استایل برای 3 محصول */
    .table.products-3 td {
        width: 25%;
        /* (100% - 25%) / 3 */
    }

    /* استایل برای 4 محصول */
    .table.products-4 td {
        width: 17.5%;
        /* (100% - 30%) / 4 */
    }

    /* رنگ‌بندی محصولات */
    .table td:nth-child(2) {
        color: #dc3545;
    }

    /* قرمز */
    .table td:nth-child(3) {
        color: #0d6efd;
    }

    /* آبی */
    .table td:nth-child(4) {
        color: #198754;
    }

    /* سبز */
    .table td:nth-child(5) {
        color: #6f42c1;
    }

    /* بنفش */

    .table-responsive {
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        margin-bottom: 2rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table {
        margin-bottom: 0;
        width: 100%;
        table-layout: fixed;
    }

    .anchor_tags {
        scroll-margin-top: 100px;
    }

    .box-title-cart {
        margin-bottom: 2rem;
    }

    .box-title-cart h2 {
        font-size: 1.35rem;
        font-weight: 700;
        color: #1e293b; /* Premium slate-800 */
        letter-spacing: -0.01em;
    }

    .box-properties {
        margin-bottom: 1.5rem;
    }

    .item-spec {
        padding: 1rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .item-spec:hover {
        background-color: #e9ecef;
        transform: translateY(-2px);
    }

    .item-spec object {
        width: 32px;
        height: 32px;
        margin-bottom: 0.5rem;
    }

    .item-spec p {
        margin: 0;
        font-weight: 600;
        color: #495057;
    }

    #details_box {
        padding-top: 0px;
        /* فاصله برای جلوگیری از پوشیده شدن محتوا توسط منوهای چسبان */
    }

    .card.shadow-lg {
        overflow: visible;
    }

    .versus-product {
        min-width: 0;
        width: 100%;
        position: relative;
    }

    .versus-product:last-child {
        margin-right: 0;
        margin-left: -50%;
        overflow: hidden;
    }

    .comparison-nav-wrapper {
        width: 100%;
        max-width: 1400px;
        padding: 0.5rem 35px;
        /* فضا برای دکمه‌ها */
        margin: 1rem auto;
        position: relative;
    }

    .comparison-nav-items {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.5rem;
        padding: 0.5rem;
        max-width: 1200px;
        margin: 0 auto;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-behavior: smooth;
    }

    .comparison-nav-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: #fff;
        border: 1px solid #ddd;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        color: #555;
        transition: all 0.2s;
    }

    .comparison-nav-btn:hover {
        background: #f8f9fa;
        color: #d00707;
        border-color: #d00707;
    }

    [dir="rtl"] .comparison-nav-btn.nav-prev {
        right: 5px;
    }

    [dir="rtl"] .comparison-nav-btn.nav-next {
        left: 5px;
    }

    [dir="ltr"] .comparison-nav-btn.nav-prev {
        left: 5px;
    }

    [dir="ltr"] .comparison-nav-btn.nav-next {
        right: 5px;
    }

    .comparison-nav-items::-webkit-scrollbar {
        display: none;
    }

    .comparison-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0.75rem 0.5rem;
        background: #f8f9fa;
        border-radius: 8px;
        text-decoration: none;
        color: #495057;
        transition: all 0.2s ease;
        min-height: 90px;
        justify-content: center;
        flex: 1;
        min-width: 80px;
        max-width: 100px;
    }

    .comparison-nav-item:hover {
        background: #e9ecef;
        color: #d00707;
        transform: translateY(-2px);
    }

    .comparison-nav-icon {
        width: 24px;
        height: 24px;
        margin-bottom: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .comparison-nav-icon object {
        width: 100%;
        height: 100%;
    }

    .comparison-nav-title {
        font-size: 0.7rem;
        font-weight: 500;
        margin: 0;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        height: 28px;
    }

    @media (max-width: 768px) {
        .comparison-nav-wrapper {
            padding: 0.25rem 30px;
            margin: 0.5rem auto;
        }

        .comparison-nav-btn {
            width: 28px;
            height: 28px;
        }

        [dir="rtl"] .comparison-nav-btn.nav-prev {
            right: 0px;
        }

        [dir="rtl"] .comparison-nav-btn.nav-next {
            left: 0px;
        }

        [dir="ltr"] .comparison-nav-btn.nav-prev {
            left: 0px;
        }

        [dir="ltr"] .comparison-nav-btn.nav-next {
            right: 0px;
        }

        .comparison-nav-items {
            padding: 0.25rem;
            margin: 0;
            gap: 0.25rem;
        }

        .comparison-nav-item {
            padding: 0.5rem;
            min-width: 70px;
            max-width: 80px;
            min-height: 80px;
        }

        .comparison-nav-icon {
            width: 20px;
            height: 20px;
            margin-bottom: 0.35rem;
        }

        .comparison-nav-title {
            font-size: 0.65rem;
            height: 24px;
        }
    }

    /* استایل‌های اعلان و مودال */
    .alert-warning {
        background-color: #fff3cd;
        border: 1px solid #ffeeba;
        color: #856404;
        margin: 1rem;
        border-radius: 8px;
    }

    .btn-outline-warning {
        color: #856404;
        border-color: #ffeeba;
        background-color: transparent;
        transition: all 0.3s ease;
    }

    .btn-outline-warning:hover {
        color: #856404;
        background-color: #ffeeba;
        transform: translateY(-2px);
    }

    #reportModal .modal-content {
        border-radius: 12px;
        border: none;
    }

    #reportModal .modal-header {
        border-bottom: 1px solid #eee;
        background-color: #f8f9fa;
        border-radius: 12px 12px 0 0;
    }

    #reportModal .modal-footer {
        border-top: 1px solid #eee;
        background-color: #f8f9fa;
        border-radius: 0 0 12px 12px;
    }

    #reportForm .form-control {
        border-radius: 8px;
        border: 1px solid #dee2e6;
        transition: all 0.3s ease;
    }

    #reportForm .form-control:focus {
        border-color: #80bdff;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .25);
    }

    /* استایل‌های جدید برای details/summary */
    .specification-details {
        background: #fff;
        border-radius: 12px;
        border: 1px solid #eee;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
        margin-bottom: 0.65rem;
        padding-inline-start: 0;
    }

    .specification-summary {
        padding: 0.75rem 1.25rem;
        cursor: pointer;
        user-select: none;
        border-bottom: 1px solid #dee2e6;
        transition: background-color 0.3s ease;
        list-style: none;
    }

    .specification-summary::-webkit-details-marker,
    .specification-summary::marker {
        display: none;
    }

    .toggle-icon {
        width: 20px;
        height: 20px;
        position: relative;
        margin-inline-end: 0.5rem;
    }

    .toggle-icon::before,
    .toggle-icon::after {
        content: '';
        position: absolute;
        background-color: #6c757d;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .toggle-icon::before {
        width: 2px;
        height: 12px;
        top: 4px;
        inset-inline-start: 9px;
    }

    .toggle-icon::after {
        width: 12px;
        height: 2px;
        top: 9px;
        inset-inline-start: 4px;
    }

    details[open] .toggle-icon::before {
        transform: rotate(90deg);
        opacity: 0;
    }

    .spec-icon {
        margin-inline-end: 0.75rem;
        /* Better RTL/LTR handling */
        color: #555;
    }

    .spec-title {
        margin: 0;
        font-size: 1.1rem;
        /* Smaller font, same as product page */
        font-weight: 700;
        color: #111;
        letter-spacing: -0.01em;
        line-height: 1.4;
    }

    /* اصلاح استایل‌های جدول */
    .table-responsive {
        border-radius: 0 0 8px 8px;
        box-shadow: none;
        margin: 0;
        padding-inline-start: 0 !important;
    }

    .specifications-section {
        margin-bottom: 0.35rem;
        padding-inline-end: 15px;
    }

    .table th,
    .table td {
        padding: 0.45rem 1rem;
        border: none !important;
    }

    /* Zebra and Table hygiene From Product Page */
    .table-striped tbody tr {
        background-color: transparent !important;
        border-bottom: 1px solid #f8f8f8;
    }

    .table-striped tbody tr:hover {
        background-color: #fafafa !important;
    }

    /* استایل‌های دکمه‌های باز/بسته کردن */
    .toggle-buttons .btn {
        font-size: 0.8rem;
        padding: 0.25rem 0.75rem;
        background: white;
    }

    .toggle-buttons .btn-outline-secondary {
        color: #6c757d;
        border-color: #dee2e6;
    }

    .toggle-buttons .btn-outline-secondary:hover {
        background-color: #f8f9fa;
        color: #495057;
    }

    .toggle-buttons .btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        pointer-events: none;
    }

    @media (max-width: 768px) {
        .box-title-cart h2 {
            font-size: 1rem;
        }

        .box-title-cart {
            padding-inline-start: calc(5% + 0.5rem);
        }

        .specification-details {
            padding-inline-start: calc(1% + 0.1rem);
        }

        .toggle-buttons .btn {
            font-size: 0.75rem;
            padding: 0.2rem 0.5rem;
        }
    }

    /* استایل‌های عکس */
    .gallery {
        max-width: 450px;
        margin: 0 auto;
        padding: 0;
    }



    .main-image {
        position: relative;
        width: 100%;
        padding-bottom: 100%;
        margin-bottom: 1rem;
    }

    /* استایل برای 3 محصول */
    .sticky-products-container.products-3 .sticky-product {
        height: 32px;
        padding: 0.2rem;
        gap: 0.25rem;
    }

    .sticky-products-container.products-3 .sticky-product-image {
        width: 22px;
        height: 22px;
    }

    .sticky-products-container.products-3 .sticky-product-info {
        gap: 0.1rem;
    }

    .sticky-products-container.products-3 .sticky-product-title {
        font-size: 0.65rem;
        line-height: 1.1;
    }

    .sticky-products-container.products-3 .sticky-product-specs {
        display: none;
    }

    /* استایل برای 4 محصول */
    .sticky-products-container.products-4 .sticky-product {
        height: 28px;
        padding: 0.15rem;
        gap: 0.2rem;
    }

    .sticky-products-container.products-4 .sticky-product-image {
        width: 20px;
        height: 20px;
    }

    .sticky-products-container.products-4 .sticky-product-info {
        gap: 0.05rem;
    }

    .sticky-products-container.products-4 .sticky-product-title {
        font-size: 0.6rem;
        line-height: 1;
    }

    .sticky-products-container.products-4 .sticky-product-specs {
        display: none;
    }

    /* تنظیم فاصله بین محصولات برای حالت‌های مختلف */
    .sticky-products-container.products-3 .sticky-versus {
        width: 20px;
        font-size: 0.7rem;
    }

    .sticky-products-container.products-4 .sticky-versus {
        width: 18px;
        font-size: 0.65rem;
    }

    @media (max-width: 768px) {

        .sticky-products-container.products-3 .sticky-product,
        .sticky-products-container.products-4 .sticky-product {
            height: 28px;
            padding: 0.15rem;
        }

        .sticky-products-container.products-3 .sticky-product-image,
        .sticky-products-container.products-4 .sticky-product-image {
            width: 20px;
            height: 20px;
        }

        .sticky-products-container.products-3 .sticky-product-title,
        .sticky-products-container.products-4 .sticky-product-title {
            font-size: 0.6rem;
        }

        .sticky-products-container.products-3 .sticky-versus,
        .sticky-products-container.products-4 .sticky-versus {
            width: 18px;
            font-size: 0.65rem;
        }
    }

    /* رنگ‌بندی محصولات در منوی استیکی */
    /* استایل برای 2 محصول */
    .sticky-products-container.products-2 .sticky-product:nth-child(1) .sticky-product-title {
        color: #dc3545;
    }

    .sticky-products-container.products-2 .sticky-product:nth-child(3) .sticky-product-title {
        color: #0d6efd;
    }

    /* استایل برای 3 محصول */
    .sticky-products-container.products-3 .sticky-product:nth-child(1) .sticky-product-title {
        color: #dc3545;
    }

    .sticky-products-container.products-3 .sticky-product:nth-child(3) .sticky-product-title {
        color: #0d6efd;
    }

    .sticky-products-container.products-3 .sticky-product:nth-child(5) .sticky-product-title {
        color: #198754;
    }

    /* استایل برای 4 محصول */
    .sticky-products-container.products-4 .sticky-product:nth-child(1) .sticky-product-title {
        color: #dc3545;
    }

    .sticky-products-container.products-4 .sticky-product:nth-child(3) .sticky-product-title {
        color: #0d6efd;
    }

    .sticky-products-container.products-4 .sticky-product:nth-child(5) .sticky-product-title {
        color: #198754;
    }

    .sticky-products-container.products-4 .sticky-product:nth-child(7) .sticky-product-title {
        color: #6f42c1;
    }

    /* حذف رنگ‌های قبلی که با کلاس‌های text-danger و text-primary اعمال می‌شدند */
    .sticky-product-title.text-danger,
    .sticky-product-title.text-primary {
        color: inherit;
    }

    .text-success {
        color: #198754 !important;
    }

    .text-purple {
        color: #6f42c1 !important;
    }

    /* استایل‌های جدید برای گرید محصولات */
    .row {
        display: grid;

    }

    /* برای 2 محصول */
    .row:has(.col:nth-child(2)) {
        grid-template-columns: 1fr auto 1fr;
    }

    /* برای 3 محصول */
    .row:has(.col:nth-child(4)) {
        grid-template-columns: 1fr auto 1fr auto 1fr;
    }

    /* برای 4 محصول */
    .row:has(.col:nth-child(6)) {
        grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    }

    @media (max-width: 1200px) {

        /* برای 3 محصول */
        .row:has(.col:nth-child(4)) {
            grid-template-columns: 1fr auto 1fr auto 1fr;
        }

        /* برای 4 محصول */
        .row:has(.col:nth-child(6)) {
            grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
        }
    }

    @media (max-width: 992px) {

        /* برای 3 محصول */
        .row:has(.col:nth-child(4)) {
            grid-template-columns: 1fr auto 1fr auto 1fr;
        }

        /* برای 4 محصول */
        .row:has(.col:nth-child(6)) {
            grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
        }
    }

    @media (max-width: 768px) {
        .row {
            grid-template-columns: 1fr !important;
        }

        .col-auto {
            display: none;
        }

        .col {
            margin-bottom: 1rem;
        }
    }

    /* استایل‌های جدید برای بخش نظرات */
    .comments-grid {
        display: grid;
        gap: 1rem;
    }

    /* برای 2 محصول */
    .comments-grid.products-2 {
        grid-template-columns: 1fr 1fr;
    }

    /* برای 3 محصول */
    .comments-grid.products-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    /* برای 4 محصول */
    .comments-grid.products-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .comment-card {
        background: #fff;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        padding: 1rem;
        height: 100%;
    }

    .comment-header {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .comment-product-image {
        width: 48px;
        height: 48px;
        object-fit: contain;
        border-radius: 4px;
    }

    .comment-product-title {
        font-size: 0.9rem;
        font-weight: 600;
        margin: 0;
        line-height: 1.4;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        max-width: 200px;
    }

    .comment-content {
        font-size: 0.85rem;
        color: #495057;
        margin-bottom: 1rem;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }

    .comment-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 0.8rem;
        color: #6c757d;
    }

    .view-all-comments {
        display: block;
        text-align: center;
        padding: 0.75rem;
        background: #f8f9fa;
        border-radius: 8px;
        color: #495057;
        text-decoration: none;
        margin-top: 1rem;
        transition: all 0.3s ease;
    }

    .view-all-comments:hover {
        background: #e9ecef;
        color: #d00707;
        transform: translateY(-2px);
    }

    @media (max-width: 992px) {

        .comments-grid.products-3,
        .comments-grid.products-4 {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 576px) {
        .comments-grid {
            grid-template-columns: 1fr !important;
        }

        .comment-product-title {
            font-size: 0.85rem;
            max-width: 160px;
        }
    }

    /* رنگ‌بندی عناوین محصولات در نظرات */
    .comment-card:nth-child(1) .comment-product-title {
        color: #dc3545;
    }

    .comment-card:nth-child(2) .comment-product-title {
        color: #0d6efd;
    }

    .comment-card:nth-child(3) .comment-product-title {
        color: #198754;
    }

    .comment-card:nth-child(4) .comment-product-title {
        color: #6f42c1;
    }

    /* رنگ‌بندی عناوین در بخش امتیازات */
    .score-card:nth-child(1) .score-product-title {
        color: #dc3545;
    }

    .score-card:nth-child(2) .score-product-title {
        color: #0d6efd;
    }

    .score-card:nth-child(3) .score-product-title {
        color: #198754;
    }

    .score-card:nth-child(4) .score-product-title {
        color: #6f42c1;
    }

    /* حذف استایل‌های قبلی رنگ‌بندی */
    .comments-grid.products-2 .comment-product-title:nth-child(1),
    .comments-grid.products-2 .comment-product-title:nth-child(2),
    .comments-grid.products-3 .comment-product-title:nth-child(1),
    .comments-grid.products-3 .comment-product-title:nth-child(2),
    .comments-grid.products-3 .comment-product-title:nth-child(3),
    .comments-grid.products-4 .comment-product-title:nth-child(1),
    .comments-grid.products-4 .comment-product-title:nth-child(2),
    .comments-grid.products-4 .comment-product-title:nth-child(3),
    .comments-grid.products-4 .comment-product-title:nth-child(4) {
        color: inherit;
    }

    /* استایل‌های بردکرامپ */
    .breadcrumb {
        display: flex;
        flex-wrap: wrap;
        padding: 0.75rem 1rem;
        margin-bottom: 0;
        list-style: none;
        background-color: transparent !important;
    }

    .breadcrumb-item {
        display: flex;
        align-items: center;
        font-size: 0.85rem;
    }

    .breadcrumb-item+.breadcrumb-item {
        padding-right: 0.5rem;
    }

    .breadcrumb-item+.breadcrumb-item::before {
        display: inline-block;
        padding-left: 0.5rem;
        color: #6c757d;
        content: "/";
    }

    .breadcrumb-item a {
        color: #495057;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .breadcrumb-item a:hover {
        color: #d00707;
        text-decoration: none;
    }

    .breadcrumb-item.active {
        color: #6c757d;
    }

    @media (max-width: 768px) {
        .breadcrumb {
            padding: 0.5rem;
            font-size: 0.8rem;
        }

        .breadcrumb-item {
            font-size: 0.8rem;
        }
    }

    .sticky-products-container.products-2 .sticky-product-specs {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.35rem;
        font-size: 0.65rem;
        color: #6c757d;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    .sticky-products-container.products-2 .spec-title,
    .sticky-products-container.products-2 .spec-value {
        max-width: none;
        overflow: visible;
        text-overflow: unset;
        white-space: normal;
    }

    @media (max-width: 768px) {
        .sticky-products-container.products-2 .sticky-product-specs {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .sticky-products-container.products-2 .spec-title {
            font-size: 0.6rem;
            font-weight: 500;
            color: #6c757d;
            max-width: 60px;
        }

        .sticky-products-container.products-2 .spec-value {
            font-size: 0.7rem !important;
            font-weight: 700;
            color: inherit;
            max-width: 80px;
        }



        .specification-summary {
            padding: 0.65rem 0.75rem;
        }

        .specification-summary>div {
            gap: 0.5rem;
        }

        .sticky-feature-icon {
            font-size: 10px !important;
        }

        h3.spec-title {
            font-size: 0.72rem;
            white-space: normal;
            line-height: 1.3;
            margin: 0;
            font-weight: 700;
        }

        .spec-icon {
            margin-inline-end: 0.35rem;
            font-size: 0.85rem !important;
        }



        .buy-button {
            padding: 0.25rem 0.75rem;
            font-size: 0.75rem;
        }
    }

    .buy-button {
        padding: 0.35rem 1rem;
        background: #d00707;
        color: white;
        border-radius: 6px;
        font-size: 0.8rem;
        text-decoration: none !important;
        transition: all 0.2s ease;
    }

    .buy-button:hover {
        color: white;
        background: #b00606;
        transform: translateY(-2px);
    }

    @media (min-width: 992px) {

        .comparison-page .pr-lg-5,
        .comparison-page .pl-lg-5,
        .comparison-page .px-lg-5 {
            padding-inline-start: 0 !important;
            padding-inline-end: 2rem !important;
        }
    }

/* --- Merged from sticky_features_nav_css.blade.php --- */
/* Compact Sticky Features Navigation */
    .sticky-features-nav {
        position: fixed;
        left: 5px;
        bottom: 5rem;
        background: transparent;
        padding: 0;
        z-index: 997;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        box-shadow: none;
        border: none;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .sticky-features-nav.show {
        opacity: 1;
        visibility: visible;
    }

    .sticky-features-container {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin: 0;
        padding: 0;
    }

    .sticky-feature-item {
        width: 25px;
        height: 25px;
        border-radius: 50%;
        background: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        border: 1px solid #e2e8f0;
        text-decoration: none;
        cursor: pointer;
    }

    .sticky-feature-item:hover {
        transform: scale(1.1);
        background: #f8fafc;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
        border-color: #cbd5e1;
    }

    .sticky-feature-item.active {
        background: var(--versus-accent);
        border-color: var(--versus-accent);
        box-shadow: 0 2px 8px rgba(208, 7, 7, 0.3);
    }

    .sticky-feature-item.active .sticky-feature-icon {
        color: #ffffff !important;
        filter: brightness(10);
    }

    .sticky-feature-icon {
        font-size: 13px !important;
        color: #334155;
        transition: all 0.3s ease;
        pointer-events: none;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sticky-feature-item span {
        display: none;
    }

    @media (max-width: 768px) {
        .sticky-features-nav {
            bottom: 4rem;
            left: 5px;
        }

        .sticky-feature-item {
            width: 20px;
            height: 20px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        }

        .sticky-feature-icon {
            font-size: 10px !important;
        }
    }

/* --- Merged from sticky_product_nav_css.blade.php --- */
.sticky-product-nav {
        position: fixed;
        bottom: 1rem;
        left: 30%;
        transform: translateX(-50%);
        background: white;
        padding: 0.75rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        z-index: 998;
        transition: all 0.3s ease;
        border-radius: 12px;
        width: 60%;
        max-width: 600px;
        opacity: 0;
        visibility: hidden;
    }

    .sticky-product-nav.show {
        opacity: 1;
        visibility: visible;
    }

    .sticky-products-container {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: start;
        gap: 1rem;
    }

    .sticky-product {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem;
        border-radius: 8px;
        background: #f8f9fa;
        transition: all 0.2s ease;
        height: 60px;
        overflow: hidden;
    }

    .sticky-product-image {
        width: 50px;
        height: 50px;
        object-fit: cover;
        border-radius: 4px;
        border: 1px solid #dee2e6;
        flex-shrink: 0;
    }

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

    .sticky-product-title {
        font-size: 0.85rem;
        font-weight: 600;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 50ch;
        padding-right: 4px;
    }

    .sticky-product-specs {
        font-size: 0.75rem;
        color: #64748b; /* slate-500 */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: flex;
        align-items: center;
        gap: 0.4rem;
        padding-right: 4px;
    }

    .sticky-product-specs .spec-title {
        color: #334155; /* slate-700 */
        font-weight: 600;
        font-size: 0.7rem; /* ~11px - neat & compact */
        padding: 2px 6px;
        background: #f1f5f9; /* slate-100 */
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.2s ease;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 95px; /* Ensures long specs like 'Package width' never wrap or break */
        display: inline-block;
        vertical-align: middle;
    }

    .sticky-product-specs .spec-title:hover {
        background: #e2e8f0; /* slate-200 */
        color: #d00707;
    }

    .sticky-product-specs .spec-value {
        color: #475569; /* slate-600 */
        font-weight: 700;
        font-size: 0.72rem; /* Bold & clear value */
    }

    .sticky-versus {
        font-size: 0.7rem;
        font-weight: 700;
        color: #64748b; /* slate-500 */
        background: #f1f5f9; /* slate-100 */
        width: 26px;
        height: 26px;
        border-radius: 50%;
        border: 1px solid #e2e8f0; /* slate-200 */
        display: flex;
        align-items: center;
        justify-content: center;
        align-self: center;
        flex-shrink: 0;
    }

    @media (max-width: 768px) {
        .sticky-product-nav {
            width: 95%;
            padding: 0.5rem;
            bottom: 0.5rem;
            left: 50%;
        }

        .sticky-products-container {
            gap: 0.5rem;
        }

        .sticky-product {
            height: 50px;
        }

        .sticky-product-image {
            width: 40px;
            height: 40px;
        }

        .sticky-product-title {
            max-width: 35ch;
        }

        .sticky-versus {
            width: 20px;
            height: 20px;
            font-size: 0.7rem;
        }
    }

/* --- Merged from comparison_comments_css.blade.php --- */
.comparison-comments-section {
        background: #fff;
        border-radius: 12px;
        padding: 2rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .product-comments-card {
        background: #f8f9fa;
        border-radius: 8px;
        padding: 1.5rem;
        height: 100%;
        transition: all 0.3s ease;
    }

    .product-comments-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .top-comments {
        background: #fff;
        border-radius: 8px;
        padding: 1rem;
    }

    .top-comments h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
        color: #212529;
    }

    .comment-item {
        border-bottom: 1px solid #dee2e6;
        padding: 1rem 0;
    }

    .comment-item:last-child {
        border-bottom: none;
    }

    .comment-header {
        display: flex;
        justify-content: space-between;
        margin-bottom: 0.5rem;
    }

    .comment-author {
        font-weight: 600;
        color: #212529;
    }

    .comment-date {
        color: #6c757d;
        font-size: 0.9rem;
    }

    .comment-content {
        color: #495057;
        margin-bottom: 0.5rem;
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .comment-rating {
        display: flex;
        gap: 0.5rem;
    }

    .rating-item {
        padding: 0.25rem 0.75rem;
        border-radius: 15px;
        font-size: 0.9rem;
    }

    .rating-item.positive {
        background: #d4edda;
        color: #155724;
    }

    .rating-item.negative {
        background: #f8d7da;
        color: #721c24;
    }

    .no-comments {
        text-align: center;
        color: #6c757d;
        padding: 2rem;
    }

    .view-all-comments {
        text-align: center;
    }

    @media (max-width: 768px) {
        .comparison-comments-section {
            padding: 1rem;
        }

        .product-comments-card {
            margin-bottom: 1rem;
        }

        .comment-header {
            flex-direction: column;
        }
    }

/* --- Merged from comparison_faqs_css.blade.php --- */
/* استایل‌های بخش امتیازات کاربران */
    .ratings-overview {
        padding: 1rem;
        background: #fff;
        border-radius: 8px;
    }

    .rating-stats {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .overall-rating {
        text-align: center;
        padding: 1rem;
        background: #f8f9fa;
        border-radius: 8px;
    }

    .rating-value {
        font-size: 2.5rem;
        font-weight: bold;
        color: #212529;
        line-height: 1;
    }

    .rating-stars {
        color: #ffc107;
        font-size: 1.25rem;
        margin: 0.5rem 0;
    }

    .rating-count {
        color: #6c757d;
        font-size: 0.9rem;
    }

    .rating-bars {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .rating-bar-item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .rating-label {
        min-width: 60px;
        color: #495057;
        font-size: 0.9rem;
    }

    .rating-bar {
        flex: 1;
        height: 8px;
        background: #e9ecef;
        border-radius: 4px;
        overflow: hidden;
    }

    .rating-fill {
        height: 100%;
        background: #ffc107;
        border-radius: 4px;
        transition: width 0.3s ease;
    }

    .rating-categories {
        border-top: 1px solid #dee2e6;
        padding-top: 1.5rem;
    }

    .rating-categories h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
        color: #212529;
    }

    .category-ratings {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .category-rating-item {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .category-name {
        min-width: 120px;
        color: #495057;
        font-size: 0.9rem;
    }

    .category-rating {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .category-rating .rating-bar {
        flex: 1;
    }

    .category-rating .rating-value {
        min-width: 40px;
        text-align: right;
        font-size: 0.9rem;
        color: #495057;
    }

    @media (max-width: 768px) {
        .rating-stats {
            gap: 1rem;
        }

        .overall-rating {
            padding: 0.75rem;
        }

        .rating-value {
            font-size: 2rem;
        }

        .rating-stars {
            font-size: 1rem;
        }

        .category-rating-item {
            flex-direction: column;
            align-items: flex-start;
            gap: 0.5rem;
        }

        .category-name {
            min-width: auto;
        }
    }

    /* استایل‌های بخش پرسش و پاسخ محصولات */
    .comparison-faqs-section {
        background: #fff;
        border-radius: 12px;
        padding: 2rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .product-faqs-card {
        background: #f8f9fa;
        border-radius: 8px;
        padding: 1.5rem;
        height: 100%;
        transition: all 0.3s ease;
    }

    .product-faqs-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .score-box {
        background: #fff;
        border-radius: 8px;
        margin-bottom: 1rem;
    }

    .score-circle {
        margin-bottom: 1rem;
    }

    .score-number {
        font-size: 2.5rem;
        font-weight: bold;
        color: #212529;
    }

    .score-max {
        font-size: 1.2rem;
        color: #6c757d;
    }

    .score-stars {
        font-size: 1.25rem;
        margin-right: 0.5rem;
    }

    .score-stars .fa {
        margin: 0 1px;
    }

    .view-all-ratings {
        text-align: center;
    }

    /* استایل‌های بخش پرسش و پاسخ صفحه مقایسه */
    .questions-box {
        background: #fff;
        border-radius: 12px;
        padding: 2rem;
        margin-top: 1rem;
    }

    .questions-form {
        background: #f8f9fa;
        border-radius: 8px;
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .questions-form .form-control {
        border: 1px solid #dee2e6;
        border-radius: 8px;
        resize: none;
    }

    .questions-form .btn-primary {
        margin-top: 1rem;
    }

    .questions-list {
        margin-top: 2rem;
    }

    .question-answer-item {
        border-bottom: 1px solid #dee2e6;
        padding: 1.5rem 0;
    }

    .question-answer-item:last-child {
        border-bottom: none;
    }

    .question-section, .answer-section {
        margin-bottom: 1rem;
    }

    .user-info {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .user-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
    }

    .user-details {
        display: flex;
        flex-direction: column;
    }

    .user-name {
        font-weight: 600;
        color: #212529;
    }

    .question-date, .answer-date {
        color: #6c757d;
        font-size: 0.9rem;
    }

    .question-content, .answer-content {
        color: #212529;
        line-height: 1.6;
        margin: 1rem 0;
        padding: 0 1rem;
    }

    .q-badge, .a-badge {
        display: inline-block;
        padding: 0.25rem 0.75rem;
        border-radius: 15px;
        font-size: 0.85rem;
        margin-left: 0.5rem;
    }

    .q-badge {
        background: #e9ecef;
        color: #495057;
    }

    .a-badge {
        background: #d4edda;
        color: #155724;
    }

    .question-actions, .answer-actions {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 0 1rem;
    }

    .btn-like {
        background: none;
        border: none;
        color: #6c757d;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
        transition: all 0.2s ease;
    }

    .btn-like:hover {
        background: #f8f9fa;
    }

    .btn-like.active {
        color: #d00707;
    }

    .answer-form {
        flex: 1;
        display: flex;
        gap: 1rem;
        align-items: flex-start;
    }

    .answer-form textarea {
        flex: 1;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        padding: 0.5rem;
        resize: none;
        height: 38px;
    }

    .no-questions {
        text-align: center;
        padding: 3rem 1rem;
        color: #6c757d;
    }

    .no-questions-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    @media (max-width: 768px) {
        .questions-box {
            padding: 1rem;
        }

        .questions-form {
            padding: 1rem;
        }

        .user-info {
            flex-direction: column;
            align-items: flex-start;
        }

        .answer-form {
            flex-direction: column;
        }

        .answer-form textarea {
            width: 100%;
        }
    }

/* --- Merged from related_comparison_css.blade.php --- */
.versus-related-comparisons {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        padding: 24px;
    }

    .versus-comparison-card {
        background: white;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

    .versus-comparison-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    }

    .versus-comparison-link {
        text-decoration: none;
        color: inherit;
        display: block;
    }

    .versus-comparison-dual-images {
        position: relative;
        display: flex;
        background: #f8f9fa;
        aspect-ratio: 16/9;
        overflow: hidden;
    }

    .versus-dual-image {
        flex: 1;
        position: relative;
        overflow: hidden;
    }

    .versus-dual-image.first-product::after,
    .versus-dual-image.second-product::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 1px;
        background: rgba(0, 0, 0, 0.1);
        z-index: 2;
    }

    .versus-dual-image.first-product::after {
        right: 0;
    }

    .versus-dual-image.second-product::before {
        left: 0;
    }

    .versus-dual-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 5px;
        box-sizing: border-box;
        transition: transform 0.3s ease;
    }

    .versus-comparison-card:hover .versus-dual-image img {
        transform: scale(1.1);
    }

    .versus-vs-badge {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        background: #f8f9fa;
        color: #6c757d;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        font-weight: bold;
        font-size: 0.85rem;
        z-index: 3;
        border: 1px solid #dee2e6;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    }

    .versus-comparison-content {
        padding: 16px;
        background: white;
    }

    .versus-comparison-title {
        font-size: 15px;
        font-weight: 600;
        margin: 0;
        line-height: 1.5;
        color: #333;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-align: center;
        height: 48px;
    }

    .versus-comparison-card:hover .versus-comparison-title {
        color: #d00707;
    }

    @media (max-width: 1200px) {
        .versus-related-comparisons {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    @media (max-width: 992px) {
        .versus-related-comparisons {
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
            padding: 20px;
        }
    }

    @media (max-width: 576px) {
        .versus-related-comparisons {
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
            padding: 12px;
        }

        .versus-comparison-dual-images {
            aspect-ratio: 3/2;
        }

        .versus-vs-badge {
            width: 24px;
            height: 24px;
            font-size: 0.72rem;
        }

        .versus-comparison-title {
            font-size: 11px;
            height: auto;
            line-height: 1.4;
        }
    }