﻿.product-details {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.upper-section {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    height: 600px;
}

.image-slider {
    flex: 1;
    position: relative;
    max-height: 100%;
}

.image-container {
    height: 100%;
    overflow: hidden;
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

    .slider-image:first-child {
        display: block;
    }

.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.2em;
}

    .slider-button:first-child {
        left: 10px;
    }

    .slider-button:last-child {
        right: 10px;
    }

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

    .product-info h2 {
        margin: 0 0 10px;
        font-size: 1.8em;
    }

.product-description {
    flex: 1;
    max-height: 100%;
    overflow-y: auto;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    white-space: normal;
    line-height: 1.6;
    font-size: 1em;
}

    .product-description p {
        margin: 0.5em 0;
    }

    .product-description ul {
        margin: 0.5em 0;
        padding-right: 20px;
    }

.lower-section {
    display: flex;
    gap: 20px;
}

.specifications, .documents {
    flex: 1;
}

    .specifications ul, .documents ul {
        list-style: none;
        padding: 0;
    }

    .specifications li, .documents li {
        margin: 10px 0;
    }

@media (max-width: 1024px) {
    .upper-section {
        height: 500px;
    }

    .product-info h2 {
        font-size: 1.6em;
    }

    .product-description {
        font-size: 0.95em;
    }

    .slider-button {
        padding: 8px 12px;
    }
}

@media (max-width: 768px) {
    .product-details {
        padding: 10px;
    }

    .upper-section {
        flex-direction: column;
        height: auto;
        gap: 15px;
    }

    .image-slider {
        max-height: 400px;
        width: 100%;
    }

    .image-container {
        height: 400px;
    }

    .product-info {
        width: 100%;
    }

        .product-info h2 {
            font-size: 1.4em;
        }

    .product-description {
        max-height: 250px;
        font-size: 0.9em;
        padding: 10px;
    }

    .lower-section {
        flex-direction: column;
        gap: 15px;
    }

    .specifications, .documents {
        width: 100%;
    }

    .slider-button {
        padding: 6px 10px;
        font-size: 1em;
    }
}

.product-description::-webkit-scrollbar {
    width: 6px;
}

.product-description::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

    .product-description::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
