﻿
.highlight-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 50px 0 30px;
    text-align: center;
}

    .highlight-benefits > div {
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 160px;
        font-size: 0.9rem;
        color: var(--color-text-dark);
    }

    .highlight-benefits i {
        font-size: 1.8rem;
        color: var(--color-brand-color-1);
        margin-bottom: 5px;
    }

/* کارت‌های محصولات */
.div-service-product {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

    .div-service-product article {
        width: 250px;
        margin: 30px;
    }

        .div-service-product article img {
            display: block;
            width: 85%;
            border: 2px solid var(--color-brand-color-2);
            border-radius: 100%;
            padding: 10px;
        }

        .div-service-product article h3 {
            display: block;
            width: 100%;
            text-align: center;
            color: var(--color-brand-color-1);
        }

/* لیست قیمت دو ستونه */
.price-list-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.left-column,
.right-column {
    flex-grow: 1;
    flex-shrink: 1;
    list-style-position: inside;
    padding: 0;
    margin: 0;
}

/* جدول مقایسه */
.table-responsive {
    overflow-x: auto;
    margin-top: 30px;
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    position: relative;
}

.scroll-hint {
    font-size: 0.9rem;
    color: var(--color-border-dark);
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

.upvc-compare-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    text-align: center;
    font-size: 0.95rem;
    direction: rtl;
    table-layout: fixed;
}

    .upvc-compare-table thead th {
        background-color: var(--color-bg);
        font-weight: bold;
        padding: 12px 15px;
    }

    .upvc-compare-table th,
    .upvc-compare-table td {
        padding: 12px 15px;
        border: 1px solid var(--color-border-light);
        vertical-align: middle;
        min-height: 50px;
        color: var(--color-text-dark);
    }

    .upvc-compare-table tr:nth-child(even) {
        background-color: var(--color-bg);
    }

/*#div-portfolio {
    display: flex;
    flex-wrap: wrap;
    gap: 30px 40px;
    justify-content:space-around;
}

    #div-portfolio img {
        display: block;
        width: 100%;
        max-width: 270px;
        border-radius:5px;
    }

    #div-portfolio > a > div {
        text-align: center;
        padding-top: 10px;
        font-size: 0.9rem;
    }*/

#div-portfolio {
    display: flex;
    flex-wrap: wrap;
    gap: 30px 40px;
    justify-content: space-around;
}

.a-portfolio {
   cursor:zoom-in;
}

.a-portfolio img {
    display: block;
    width: 100%;
    max-width: 450px;
    border-radius: 5px;
}

        .a-portfolio img:hover {
            transform: scale(1.03);
        }

.a-portfolio div {
    text-align: center;
    padding-top: 10px;
    font-size: 0.9rem;
}

/* === لایت‌باکس === */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
}

    .lightbox.active {
        display: flex;
    }

    .lightbox img {
        max-width: 90%;
        max-height: 90%;
        border-radius: 8px;
        cursor: zoom-out;
    }


/* === جدول مقایسه (جهت راست‌به‌چپ) === */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    direction: rtl;
    background: #fff;
    border: 1px solid #eee;
    font-size: 0.95rem;
    line-height: 1.9;
}

    .compare-table caption {
        caption-side: top;
        text-align: center;
        font-weight: 700;
        margin-bottom: 12px;
        color: #c71c1c; /* هماهنگ با رنگ تیترهای تو */
    }

    .compare-table thead th {
        background: #f8f8f8;
        color: #333;
        padding: 12px 14px;
        border-bottom: 1px solid #eee;
        white-space: nowrap;
    }

    .compare-table td {
        padding: 12px 14px;
        border-bottom: 1px solid #f1f1f1;
        vertical-align: top;
        color: #333;
    }

    .compare-table tbody tr:nth-child(even) td {
        background: #fcfcfc;
    }

    /* تیک و ضربدر */
    .compare-table .yes {
        color: #149c3a;
        font-weight: 700;
        margin-left: 6px;
    }

    .compare-table .no {
        color: #e54747;
        font-weight: 700;
        margin-left: 6px;
    }

/* نشانِ «ستون» روی موبایل */
@media (max-width: 768px) {
    .compare-table thead {
        display: none;
    }

    .compare-table,
    .compare-table tbody,
    .compare-table tr,
    .compare-table td {
        display: block;
        width: 100%;
    }

        .compare-table tr {
            border: 1px solid #eee;
            border-radius: 10px;
            padding: 8px 10px;
            margin-bottom: 14px;
            background: #fff;
            box-shadow: 0 1px 2px rgba(0,0,0,.03);
        }

        .compare-table td {
            border: none;
            padding: 8px 6px;
            position: relative;
            text-align: right;
        }

            .compare-table td::before {
                content: attr(data-label);
                display: inline-block;
                color: #666;
                font-weight: 600;
                margin-left: 8px;
                min-width: 9rem; /* برچسب ستون */
            }
}

/* ریسپانسیو عمومی */
@media (max-width: 768px) {
    .div-service-product {
        justify-content: center;
    }

        .div-service-product article {
            width: 90%;
            margin: 15px 0;
        }

    .upvc-compare-table {
        font-size: 0.85rem;
    }

    .price-list-container {
        flex-direction: column;
    }

    .scroll-hint {
        display: block;
    }

    
}
