/* Product Page Specific Styles */

/* Breadcrumb */
.breadcrumb {
    background: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
    align-items: center;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: #6c757d;
}

.breadcrumb-list a {
    color: rgba(219, 188, 144, 1);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-list a:hover {
    color: rgba(199, 168, 124, 1);
    text-decoration: underline;
}

.breadcrumb-list li[aria-current="page"] {
    color: #6c757d;
    font-weight: 500;
}

/* Product Hero Section */
.product-hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.product-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.product-title {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(100,100,100,1);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.product-subtitle {
    font-size: 1.5rem;
    color: rgba(219, 188, 144, 1);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.product-intro {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.product-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.product-hero-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Product Overview */
.product-overview {
    padding: 4rem 0;
}

.overview-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.overview-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #495057;
    margin-bottom: 1.5rem;
}

.features-list {
    margin-top: 2rem;
}

.features-list h3 {
    color: rgba(100,100,100,1);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.features-list ul {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 0.5rem 0;
    color: #495057;
    font-size: 1rem;
    border-bottom: 1px solid #f1f3f4;
}

.features-list li:last-child {
    border-bottom: none;
}

.overview-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    loading: lazy;
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.gallery-overlay p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Image Loading States */
.gallery-item img[data-loading="true"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.lightbox img {
    width: 100%;
    height: auto;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(0,0,0,0.9);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: rgba(0,0,0,0.9);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 30px 20px 20px;
}

.lightbox-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.3rem;
}

.lightbox-info p {
    margin: 0;
    opacity: 0.9;
}

/* Gallery Filter */
.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.filter-btn {
    background: white;
    border: 2px solid rgba(219, 188, 144, 1);
    color: rgba(219, 188, 144, 1);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(219, 188, 144, 1);
    color: white;
    border: 2px solid rgba(219, 188, 144, 1);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(219, 188, 144, 0.3);
}

.gallery-item.hidden {
    display: none;
}

/* Technical Specifications */
.tech-specs {
    padding: 4rem 0;
}

.specs-container {
    max-width: 1000px;
    margin: 0 auto;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.spec-category {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.spec-category h3 {
    color: rgba(100,100,100,1);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
}

.spec-table {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 600;
    color: #495057;
    flex: 1;
}

.spec-value {
    color: rgba(219, 188, 144, 1);
    font-weight: 500;
    text-align: right;
    flex: 1;
}

/* Certifications */
.certifications {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.certifications h3 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
}

.cert-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.cert-item img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
}

.cert-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.cta-buttons .btn-primary {
    background: rgba(219, 188, 144, 1);
    color: white;
    border: 2px solid rgba(219, 188, 144, 1);
    font-weight: 600;
}

.cta-buttons .btn-primary:hover {
    background: rgba(199, 168, 124, 1);
    color: white;
    border: 2px solid rgba(199, 168, 124, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(219, 188, 144, 0.3);
}

.cta-buttons .btn-secondary {
    background: transparent;
    color: rgba(219, 188, 144, 1);
    border-color: rgba(219, 188, 144, 1);
}

.cta-buttons .btn-secondary:hover {
    background-color: rgba(219, 188, 144, 1);
    color: #fff;
}

/* Image Error States */
.gallery-item img.error {
    opacity: 0.6;
    filter: grayscale(100%);
}

.gallery-item img[data-loading="true"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    min-height: 200px;
}

/* Performance Optimizations */
.gallery-item {
    will-change: transform;
    backface-visibility: hidden;
}

.gallery-item img {
    will-change: transform;
    backface-visibility: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .product-title {
        font-size: 2.5rem;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .spec-category {
        padding: 1.5rem;
    }
    
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-info {
        padding: 20px 15px 15px;
    }
    
    .lightbox-info h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .product-hero {
        padding: 2rem 0;
    }
    
    .product-title {
        font-size: 2rem;
    }
    
    .product-subtitle {
        font-size: 1.2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-filter {
        display: none;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .spec-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .spec-value {
        text-align: left;
    }
    
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Print Styles */
@media print {
    .header,
    .breadcrumb,
    .gallery-filter,
    .cta-section,
    .footer,
    .whatsapp-btn {
        display: none;
    }
    
    .gallery-overlay {
        position: static;
        transform: none;
        background: #f8f9fa;
        color: #333;
        padding: 1rem;
        margin-top: 0.5rem;
    }
    
    .spec-category {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Grid layouts for single row display on desktop */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-top: 2rem;
}

.wood-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-top: 2rem;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .benefits-grid,
    .wood-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .benefits-grid,
    .wood-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
}

.contact-section .section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.contact-section .section-subtitle {
    text-align: center;
    color: #6c757d;
    margin-bottom: 3rem;
}

.contact-buttons {
    display: flex;
    justify-content: center;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Wood Types Section */
.wood-types {
    padding: 4rem 0;
    margin-bottom: 2rem;
}

.wood-overview {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
    margin-top: 2rem;
}

.wood-image-container {
    position: relative;
}

.wood-image-container img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.wood-content {
    padding-left: 1rem;
}

.wood-intro {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.wood-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.wood-essence {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid rgba(219, 188, 144, 1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wood-essence:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.wood-essence h3 {
    color: rgba(100,100,100,1);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.wood-essence p {
    color: #6c757d;
    line-height: 1.5;
    margin: 0;
}

/* Responsive adjustments for wood overview */
@media (max-width: 1024px) {
    .wood-overview {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .wood-content {
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .wood-list {
        grid-template-columns: 1fr;
    }
    
    .wood-essence {
        padding: 1rem;
    }
    
    .wood-essence h3 {
        font-size: 1.2rem;
    }
}