/* Product Page Styles */
.product-page {
    padding: 100px 0 80px;
    background-color: transparent;
    min-height: 100vh;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--dark-color);
}

.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Product Carousel */
.product-carousel {
    position: relative;
}

.carousel-container {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background-color: var(--light-color);
}

.carousel-slides {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

.carousel-btn:hover {
    background-color: var(--light-color);
    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: 2;
}

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

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

.dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Product Content */
.product-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.product-name {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.product-description,
.product-specifications {
    background-color: transparent;
    padding: 0;
}

.product-description h2,
.product-specifications h2 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.product-description p {
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.product-description p:last-child {
    margin-bottom: 0;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table tr {
    border-bottom: none;
}

.spec-label {
    padding: 0.5rem 1rem 0.5rem 0;
    font-weight: 600;
    color: var(--dark-color);
    width: 60%;
    vertical-align: top;
}

.spec-value {
    padding: 0.5rem 0;
    color: var(--text-light);
    vertical-align: top;
}

/* Responsive Design */
@media (max-width: 968px) {
    .product-details {
        grid-template-columns: 1fr;
    }

    .carousel-slides {
        aspect-ratio: 3 / 4;
    }
}

@media (max-width: 768px) {
    .product-page {
        padding: 90px 0 60px;
    }

    .product-name {
        font-size: 2rem;
    }

    .product-description,
    .product-specifications {
        padding: 0;
    }

    .carousel-slides {
        aspect-ratio: 3 / 4;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

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

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

    .products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .product-name {
        font-size: 1.8rem;
    }

    .carousel-slides {
        aspect-ratio: 3 / 4;
    }
}

