﻿.products-page {
    background: linear-gradient(135deg, var(--background-dark), var(--background-gradient-end));
    color: white;
    margin: 0;
    padding: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.6;
}

/* عنوان اصلی صفحه */
.main-title {
    font-size: clamp(1.2rem, 3vw, 2rem); /* واکنش‌گرایی فونت بدون مدیا کوئری */
    margin-bottom: 40px;
    text-align: center;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* گالری */
.gallery-section {
    width: 100%;
    max-width: 600px;
    margin-bottom: 10px;
    position: relative;
    height: 350px;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: rgba(255,255,255,0.8);
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

    .slide.active {
        opacity: 1;
    }

/* نمایش تصاویر واقعی */
.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* برای پوشاندن کل منطقه گالری */
    display: block; /* حذف فضای اضافه زیر تصویر */
}

.dots-container {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 14px;
    height: 14px;
    background: radial-gradient(circle at 70% 30%, #4f46e5, #0f172a 60%);
    border-radius: 50%;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.3s ease;
    border: 2px solid rgba(255,255,255,0.7);
}

    .dot.active {
        opacity: 1;
        transform: scale(1.2);
        box-shadow: 0 0 5px white;
        background: radial-gradient(circle at 70% 30%, #f0309d, #0f172a 60%);
    }

/* بخش دکمه‌ها و تب‌ها */
.features-section {
    width: 100%;
    max-width: 800px;
    margin-top: 40px;
    text-align: center;
}

    .features-section h3 {
        font-size: 1.6rem;
        margin-bottom: 25px;
        color: white;
        text-shadow: 0 1px 3px rgba(0,0,0,0.4);
    }

.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 25px;
}

.tab-button {
    padding: 12px 25px;
    border-radius: 12px;
    border: none;
    background: var(--glass);
    color: white;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

    .tab-button:hover {
        background: rgba(255,255,255,0.25);
        transform: translateY(-2px);
    }

    .tab-button.active {
        background: radial-gradient(circle at 70% 30%, #f0309d, #0f172a 60%);
        font-weight: bold;
        transform: translateY(0);
        box-shadow: 0 6px 20px var(--primary);
    }

.content-box {
    background: var(--glass);
    border-radius: 15px;
    padding: 30px;
    min-height: 120px;
    border: 1px solid var(--glass-border);
    box-shadow: inset 0 4px 15px rgba(0,0,0,0.1);
    text-align: right; /* برای راست‌چین کردن متن پاراگراف‌ها */
}

.tab-content {
    display: none; /* مخفی پیش‌فرض */
    animation: fadeIn 0.5s ease-in-out;
}

    .tab-content.active {
        display: block; /* نمایش وقتی فعال است */
    }

    .tab-content h4 {
        font-size: 1.3rem;
        margin-bottom: 15px;
        color: white;
        text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    }

    .tab-content p {
        font-size: 1rem;
        color: rgba(255,255,255,0.9);
        margin-bottom: 0; /* برای جلوگیری از فضای اضافه */
    }

/* استایل باکس خدمات فیدار پلیمر (بخش ششم) */
.technical-service-box {
    margin-top: 25px;
    padding: 20px;
    border: 3px dashed #333;
    border-radius: 10px;
    background-color: var(--glass);
}

    .technical-service-box h5 {
        margin: 0 0 10px 0;
        color: #f0309d;
        font-size: 1.2em;
    }

    .technical-service-box a {
        display: inline-block;
        margin-top: 15px;
        color: #f0309d;
        text-decoration: none;
        font-weight: bold;
        border-bottom: 2px solid #f0309d;
        transition: 0.3s;
    }

        .technical-service-box a:hover {
            opacity: 0.8;
        }

/* استایل عمومی تیترها در تمام تب‌ها */
.tab-content h4 {
    color: #f0309d;
    margin-top: 0;
}

.tab-content p {
    line-height: 1.7;
    color: ghostwhite;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.95em;
}

    .specs-table th {
        background-color: #f0309d; /* رنگ صورتی */
        color: white;
        padding: 12px;
        text-align: right;
    }

    .specs-table td {
        padding: 12px;
        border: 1px solid #f0309d;
        text-align: right;
        color: black;
    }

    .specs-table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .specs-table tr:hover {
        background-color: #fdf0f5; /* کمی صورتی ملایم هنگام هاور */
    }


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .gallery-section {
        height: 300px;
    }

    .slide {
        font-size: 2rem;
    }

    .features-section h3 {
        font-size: 1.4rem;
    }

    .tab-button {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .content-box {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .gallery-section {
        height: 250px;
    }

    .slide {
        font-size: 1.8rem;
    }

    .tab-buttons {
        gap: 8px;
    }

    .tab-button {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .features-section h3 {
        font-size: 1.3rem;
    }
}
