/* Import base styles from main stylesheet */
@import url('style.css');

/* Breadcrumb */
.breadcrumb {
    background-color: var(--bg-white);
    padding: 1.25rem 5%;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.breadcrumb a:hover {
    color: var(--primary-dark);
}

.breadcrumb span {
    color: var(--text-light);
}

/* Product Detail Layout */
.product-detail {
    padding: 4rem 5%;
    min-height: 60vh;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Product Images */
.product-images {
    position: sticky;
    top: 120px;
    align-self: start;
}

.main-image {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.main-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.thumbnail {
    width: 100%;
    height: 90px;
    object-fit: contain;
    background-color: var(--bg-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid var(--border-color);
    transition: var(--transition);
    padding: 0.75rem;
}

.thumbnail:hover {
    border-color: var(--primary-color);
    transform: scale(1.08);
    box-shadow: var(--shadow-md);
}

/* Product Details */
.product-details {
    padding: 1.5rem 0;
}

.product-category {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: white;
    padding: 0.6rem 1.3rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: 0.03em;
}

.product-title {
    font-size: 2.75rem;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    line-height: 1.25;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.03em;
}

.product-intro {
    font-size: 1.15rem;
    color: var(--text-medium);
    margin-bottom: 2.5rem;
    line-height: 1.9;
}

.product-info-section {
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.product-info-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.75rem;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.75rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.info-content {
    color: var(--text-dark);
    line-height: 2;
    font-size: 1.05rem;
}

.info-content pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    line-height: 2;
    margin: 0;
}

.info-content h3 {
    color: var(--primary-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.info-content ul, 
.info-content ol {
    margin-left: 1.75rem;
    margin-bottom: 1rem;
}

.info-content li {
    margin-bottom: 0.75rem;
    line-height: 1.9;
}

/* CTA Section */
.cta-section {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 1.15rem 2.5rem;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.secondary-button {
    display: inline-block;
    background-color: var(--bg-white);
    color: var(--primary-color);
    padding: 1.15rem 2.5rem;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    transition: var(--transition);
}

.secondary-button:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

/* Responsive Design */
@media (max-width: 992px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .product-images {
        position: static;
    }
    
    .product-title {
        font-size: 2.25rem;
    }
    
    .product-intro {
        font-size: 1.05rem;
    }
}

@media (max-width: 768px) {
    .breadcrumb {
        padding: 1rem;
        font-size: 0.85rem;
    }

    .product-detail {
        padding: 2rem 1rem;
    }

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

    .product-intro {
        font-size: 1.1rem;
    }

    .product-info-section {
        padding: 1.5rem;
    }

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

    .cta-section {
        flex-direction: column;
    }

    .cta-button,
    .secondary-button {
        width: 100%;
        text-align: center;
    }

    .main-image {
        padding: 1rem;
    }

    .thumbnail-gallery {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 0.5rem;
    }

    .thumbnail {
        height: 60px;
    }
}

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

    .product-intro {
        font-size: 1rem;
    }

    .info-content {
        font-size: 0.95rem;
    }

    .cta-button,
    .secondary-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}
