/* Product Detail Page Styles */

/* Back Button */
.back-button {
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.back-button a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 300;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.back-button a:hover {
    opacity: 0.7;
}

/* Product Showcase */
.product-showcase {
    min-height: 100vh;
    padding: 0 var(--spacing-md) var(--spacing-xxl);
}

.product-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: start;
}

/* Product Gallery */
.product-gallery {
    position: sticky;
    top: 100px;
}

.main-image {
    width: 100%;
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    background: #111;
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.5s ease;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-sm);
}

.thumbnail {
    cursor: pointer;
    overflow: hidden;
    background: #111;
    transition: opacity 0.3s ease;
}

.thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.thumbnail:hover img {
    transform: scale(1.05);
}

.thumbnail.active {
    opacity: 1;
}

.thumbnail:not(.active) {
    opacity: 0.5;
}

/* Product Info */
.product-info {
    padding-top: var(--spacing-md);
}

.product-title {
    font-size: 3rem;
    font-weight: 100;
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.02em;
}

.product-meta {
    margin-bottom: var(--spacing-lg);
}

.product-category {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.product-code {
    font-size: 0.9rem;
    opacity: 0.7;
    font-weight: 300;
}

.product-description {
    margin-bottom: var(--spacing-xl);
}

.product-description h2 {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.02em;
}

.product-description h3 {
    font-size: 1.3rem;
    font-weight: 300;
    margin: var(--spacing-lg) 0 var(--spacing-sm);
    letter-spacing: 0.02em;
}

.product-description p {
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.product-description ul {
    list-style: none;
    padding: 0;
    margin-bottom: var(--spacing-lg);
}

.product-description ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 300;
    line-height: 1.6;
}

.product-description ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--white);
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.inquire-btn,
.download-btn {
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 300;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    display: inline-block;
}

.inquire-btn {
    background: var(--white);
    color: var(--black);
    border: 1px solid var(--white);
}

.inquire-btn:hover {
    background: transparent;
    color: var(--white);
}

.download-btn {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--white);
}

.download-btn:hover {
    background: var(--white);
    color: var(--black);
}

/* Related Products */
.related-products {
    padding: var(--spacing-xxl) var(--spacing-md);
    background: var(--black);
}

.related-products .section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 100;
    margin-bottom: var(--spacing-xl);
    letter-spacing: 0.02em;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.related-item {
    position: relative;
    overflow: hidden;
}

.related-image {
    position: relative;
    overflow: hidden;
    background: #111;
}

.related-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.related-item:hover .related-overlay {
    opacity: 1;
}

.related-item:hover .related-image img {
    transform: scale(1.05);
}

.related-overlay h3 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.related-overlay p {
    font-size: 0.9rem;
    font-weight: 300;
    opacity: 0.8;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .product-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .product-gallery {
        position: static;
    }
}

@media (max-width: 768px) {
    .product-showcase {
        padding: 0 var(--spacing-sm) var(--spacing-xl);
    }

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

    .product-description h2 {
        font-size: 1.5rem;
    }

    .thumbnail-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }

    .product-actions {
        flex-direction: column;
    }

    .inquire-btn,
    .download-btn {
        width: 100%;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .related-products .section-title {
        font-size: 2rem;
    }
}