/* Product Detail Styles */
.product-hero {
    height: 60vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
}

.product-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.product-hero .container {
    position: relative;
    z-index: 10;
}

.product-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.product-detail-section {
    padding: 80px 0;
}

/* Product Overview Section */
.product-overview {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 50px;
    margin-bottom: 60px;
}

.product-overview h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.product-overview h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.overview-text {
    color: var(--text-light);
    line-height: 1.8;
    margin-top: 30px;
    font-size: 1.1rem;
    text-align: justify;
}

/* Product Gallery Section */
.product-gallery {
    margin-bottom: 60px;
}

.product-gallery h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.product-gallery h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.gallery-carousel {
    position: relative;
    margin-top: 40px;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.carousel-slide img:hover {
    transform: scale(1.05);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.carousel-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
    left: 20px;
}

.carousel-btn-next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Back to Home Section */
.back-home {
    text-align: center;
    margin-top: 60px;
}

.back-home .btn {
    margin: 0 10px;
}

/* Responsive Design */
@media (max-width: 1199px) {
    .carousel-container {
        height: 400px;
    }
}

@media (max-width: 767px) {
    .product-hero h1 {
        font-size: 2.5rem;
    }
    .product-overview {
        padding: 30px 20px;
    }
    .product-overview h2,
    .product-gallery h2 {
        font-size: 1.8rem;
    }
    .overview-text {
        font-size: 1rem;
        line-height: 1.6;
    }
    .carousel-container {
        height: 300px;
    }
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .carousel-btn-prev {
        left: 10px;
    }
    .carousel-btn-next {
        right: 10px;
    }
    .back-home .btn {
        display: block;
        margin: 10px auto;
        width: 80%;
    }
}
