/* ============================================
   PRODUCT DETAIL PAGE - MODERN DESIGN
   ============================================ */

html {
    scroll-behavior: smooth;
}

.product-detail-page {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    min-height: 100vh;
    padding-bottom: 100px;
}

/* ============================================
   BREADCRUMB NAVIGATION
   ============================================ */

.product-breadcrumb {
    padding: 30px 0 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.product-breadcrumb a {
    color: #4a5568;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.product-breadcrumb a:hover {
    color: #6dc04b;
}

.product-breadcrumb a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #6dc04b;
    transition: width 0.3s ease;
}

.product-breadcrumb a:hover::after {
    width: 100%;
}

.product-breadcrumb .separator {
    margin: 0 12px;
    color: #cbd5e0;
    font-weight: 300;
}

.product-breadcrumb .current {
    color: #1a202c;
    font-weight: 600;
}

/* ============================================
   MAIN PRODUCT SECTION
   ============================================ */

.product-main-section {
    background: #ffffff;
    border-radius: 24px;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.02),
        0 10px 20px rgba(0, 0, 0, 0.03),
        0 20px 40px rgba(0, 0, 0, 0.04);
    padding: 60px;
    margin: 40px 0 80px;
    position: relative;
    overflow: hidden;
}

.product-main-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6dc04b 0%, #5aa93d 100%);
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* ============================================
   PRODUCT IMAGE GALLERY
   ============================================ */

.product-gallery {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-gallery:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(109, 192, 75, 0.15);
    border-color: #6dc04b;
}

.product-gallery img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    padding: 40px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-gallery:hover img {
    transform: scale(1.05) rotate(1deg);
}


/* ============================================
   PRODUCT INFO
   ============================================ */

.product-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.product-category-label {
    display: inline-block;
    align-self: flex-start;
    background: linear-gradient(135deg, rgba(109, 192, 75, 0.15) 0%, rgba(109, 192, 75, 0.05) 100%);
    color: #6dc04b;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid rgba(109, 192, 75, 0.2);
    transition: all 0.3s ease;
}

.product-category-label:hover {
    background: linear-gradient(135deg, rgba(109, 192, 75, 0.25) 0%, rgba(109, 192, 75, 0.15) 100%);
    border-color: rgba(109, 192, 75, 0.4);
    transform: translateX(5px);
}

.product-detail-title {
    font-size: 2.75rem;
    color: #1a202c;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-detail-desc {
    font-size: 1.15rem;
    color: #4a5568;
    line-height: 1.8;
    margin: 0;
    font-weight: 400;
}

/* ============================================
   TECHNICAL SPECIFICATIONS
   ============================================ */

.tech-specs {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 16px;
    padding: 32px;
    border: 2px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.tech-specs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #6dc04b 0%, #5aa93d 100%);
}

.tech-specs h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 24px 0;
    color: #1a202c;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tech-specs h3::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #6dc04b;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(109, 192, 75, 0.2);
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
}

.spec-row:hover {
    padding-left: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
}

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

.spec-label {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.spec-label::before {
    content: '▸';
    color: #6dc04b;
    font-size: 0.8rem;
}

.spec-value {
    color: #4a5568;
    font-weight: 500;
    text-align: right;
}

/* ============================================
   ACTION BUTTONS
   ============================================ */

.product-actions {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.btn-request {
    flex: 1;
    background: linear-gradient(135deg, #6dc04b 0%, #5aa93d 100%);
    color: #ffffff;
    padding: 18px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 12px rgba(109, 192, 75, 0.25),
        0 8px 24px rgba(109, 192, 75, 0.15);
    position: relative;
    overflow: hidden;
}

.btn-request::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-request:hover::before {
    left: 100%;
}

.btn-request:hover {
    background: linear-gradient(135deg, #5aa93d 0%, #4a8c32 100%);
    transform: translateY(-3px);
    box-shadow:
        0 8px 20px rgba(109, 192, 75, 0.35),
        0 12px 32px rgba(109, 192, 75, 0.25);
    color: #ffffff;
}

.btn-request:active {
    transform: translateY(-1px);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #1da851 100%);
    color: #ffffff;
    padding: 18px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow:
        0 4px 12px rgba(37, 211, 102, 0.25),
        0 8px 24px rgba(37, 211, 102, 0.15);
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #1da851 0%, #128c7e 100%);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow:
        0 8px 20px rgba(37, 211, 102, 0.35),
        0 12px 32px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:active {
    transform: translateY(-1px);
}

.btn-whatsapp svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.btn-whatsapp:hover svg {
    transform: scale(1.1) rotate(5deg);
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features-section {
    padding: 60px 0 0;
}

.features-section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.25rem;
    color: #1a202c;
    font-weight: 800;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.features-section h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #6dc04b 0%, #5aa93d 100%);
    border-radius: 2px;
}

.features-grid-detail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.feature-card {
    background: #ffffff;
    padding: 36px 28px;
    border-radius: 16px;
    text-align: center;
    border: 2px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(180deg, rgba(109, 192, 75, 0.05) 0%, transparent 100%);
    transition: height 0.4s ease;
}

.feature-card:hover::before {
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.08),
        0 20px 40px rgba(109, 192, 75, 0.1);
    border-color: #6dc04b;
}

.feature-icon-wrapper {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(109, 192, 75, 0.15) 0%, rgba(109, 192, 75, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #6dc04b;
    border: 3px solid rgba(109, 192, 75, 0.2);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.feature-card:hover .feature-icon-wrapper {
    background: linear-gradient(135deg, rgba(109, 192, 75, 0.25) 0%, rgba(109, 192, 75, 0.15) 100%);
    border-color: rgba(109, 192, 75, 0.4);
    transform: scale(1.1) rotate(5deg);
}

.feature-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: #1a202c;
    position: relative;
    z-index: 1;
}

/* ============================================
   PRODUCT DETAILS IMAGES SECTION
   ============================================ */

.product-details-images-section {
    padding: 80px 0;
    margin: 40px 0;
    scroll-margin-top: 100px;
    background: transparent;
}

.details-section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.25rem;
    color: #1a202c;
    font-weight: 800;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.details-section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #6dc04b 0%, #5aa93d 100%);
    border-radius: 2px;
}

.details-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
}

.detail-image-card {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.detail-image-card:hover {
    transform: translateY(-5px);
}


.detail-image-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.detail-image-card:hover img {
    transform: scale(1.05);
}

.no-details-message {
    text-align: center;
    color: #718096;
    font-size: 1.1rem;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 16px;
    border: 2px dashed #cbd5e0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .product-main-section {
        padding: 40px;
    }

    .product-detail-title {
        font-size: 2.25rem;
    }

    .features-grid-detail {
        grid-template-columns: repeat(2, 1fr);
    }

    .details-images-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-details-images-section {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .product-main-section {
        padding: 30px 20px;
        border-radius: 16px;
    }

    .product-detail-title {
        font-size: 1.85rem;
    }

    .product-detail-desc {
        font-size: 1rem;
    }

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

    .btn-request,
    .btn-whatsapp {
        width: 100%;
    }

    .features-section h2 {
        font-size: 1.75rem;
    }

    .details-images-grid {
        grid-template-columns: 1fr;
    }

    .product-details-images-section {
        padding: 30px 20px;
    }

    .details-section-title {
        font-size: 1.75rem;
    }
}

/* ============================================
   LIGHTBOX MODAL STYLES
   ============================================ */

.product-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 40px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    backdrop-filter: blur(5px);
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    animation: zoom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes zoom {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #ffffff;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.lightbox-close:hover {
    color: #6dc04b;
}

#lightbox-caption {
    margin-top: 20px;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    max-width: 80%;
}

@media (max-width: 768px) {
    .product-lightbox {
        padding: 20px;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 40px;
    }

    .lightbox-content {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .product-breadcrumb {
        font-size: 0.8rem;
        padding: 20px 0 15px;
    }

    .product-main-section {
        margin: 20px 0 50px;
    }

    .product-gallery {
        border-radius: 12px;
    }

    .product-gallery img {
        padding: 20px;
    }

    .tech-specs {
        padding: 24px 20px;
    }

    .features-grid-detail {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 28px 20px;
    }
}