/* Ürün Tanıtım Resmi */
.product-hero {
    width: 100%;
    aspect-ratio: 16/4;
    background-image: url('/img/hero/LIVIA200_hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-hero.gradient-hero {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.product-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.85), rgba(15, 23, 42, 0.85));
    z-index: 1;
}

.product-hero.gradient-hero::before {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Ürün Detayları ve Carousel */
.product-details-container {
    display: flex;
    gap: 4rem;
    padding: 4rem 6rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: flex-start;

}

.product-carousel {
    flex: 0 0 auto;
    position: relative;
    width: 50%;
    max-width: 600px;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    overflow: hidden;
    padding: 1rem;
    transition: height 0.3s ease-in-out;
    margin: auto;
}

.product-carousel::before,
.product-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(20px);
    opacity: 0;
    z-index: 0;
    transition: opacity 0.7s ease-in-out;
}

.product-carousel::before.active {
    opacity: 0.3;
}

.product-carousel::after.active {
    opacity: 0.3;
}

.product-carousel img,
.product-carousel video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.7s ease-in-out;
}

.product-carousel img.active,
.product-carousel video.active {
    opacity: 1;
}

.product-carousel .prev,
.product-carousel .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #555;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    z-index: 10;
    border-radius: 50%;
}

.product-carousel .next {
    right: 0.5rem;
}

.product-carousel .prev {
    left: 0.5rem;
}

.product-carousel .prev:hover,
.product-carousel .next:hover {
    color: #000;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
}

.product-description {
    padding: 2rem;
    flex: 1;
}

.product-description h2 {
    font-size: 2.5rem;
    margin-top: 0;
}

.product-description h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: #555;
}

.product-description ul {
    list-style: disc;
    padding-left: 20px;
}


/* Dokümanlar Bölümü */
.documents-section {
    /* padding: 4rem 6rem; */
    background-color: transparent;
    max-width: 1400px;
    margin: 4rem auto;
    box-sizing: border-box;
}

.documents-section h3 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

.document-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 32.666%)); /* Kartlar için maksimum genişlik belirler */
    gap: 1%;
    justify-content: left; /* Kartları yatayda ortalar */
}

.card {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 2rem;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.card h4 {
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.card p {
    color: #555;
    margin-bottom: 1.5rem;
}

.card a {
    text-decoration: none;
    font-weight: 600;
    color: #000;
    background-color: #e8e8e8;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    transition: background-color 0.3s ease;
}

.card a:hover {
    background-color: #d8d8d8;
}

/* Responsive Ayarlamalar */
@media (max-width: 768px) {
    .product-hero {
        min-height: 300px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-content {
        padding: 1rem;
    }

    .product-details-container {
        flex-direction: column;
        padding: 2rem;
    }

    .product-carousel {
        flex: none;
        width: 100%;
        max-width: none;
    }

    .documents-section {
        padding: 2rem;
    }

    .document-cards {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 100%)); /* Kartlar için maksimum genişlik belirler */
        gap: 1%;
        justify-content: left; /* Kartları yatayda ortalar */
    }
}

/* İlgili Ürünler Owl Carousel Bölümü */
.related-products {
    padding: 4rem 2rem;
    background-color: #f8f9fa;
}

.related-products h3 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

#products-carousel .item .product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: auto;
    display: flex;
    flex-direction: column;
    margin: 0 5px;
}

#products-carousel .item .product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

#products-carousel .product-thumbnail {
    aspect-ratio: 1 / 1;
}

#products-carousel .product-card-content {
    padding: 0.75rem;
}

#products-carousel .product-title {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

#products-carousel .product-subtitle {
    font-size: 0.8rem;
    line-height: 1.2;
}

#products-carousel .details-link {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .related-products {
        padding: 2rem 1rem;
    }
    
    .related-products h3 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .product-hero {
        height: 40vh;
        min-height: 250px;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }
}
