/* =========================
   PRODUCT DETAIL PAGE STYLES
   Bar Scrap Cutting Machine
========================= */

/* PRODUCT HERO SECTION */
.product-hero{
    position: relative;
    padding: 180px 0 120px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    overflow: hidden;
}

h1{
    color: white;
}

.product-hero::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(249, 115, 22, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(249, 115, 22, 0.08) 0%, transparent 40%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}

.hero-bg-pattern{
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.05));
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
}

.product-hero .container{
    position: relative;
    z-index: 2;
}

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

.product-hero-image{
    position: relative;
}

.image-badge{
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--color-accent);
    color: var(--color-white);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 3;
}

.product-hero-image img{
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.4));
    animation: floatImage 6s ease-in-out infinite;
}

.image-glow{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
    opacity: 0.15;
    filter: blur(40px);
    z-index: -1;
}

@keyframes floatImage{
    0%, 100%{ transform: translateY(0); }
    50%{ transform: translateY(-15px); }
}

.product-hero-content{
    color: var(--color-white);
}

.product-category{
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-accent);
    margin-bottom: 20px;
    padding: 10px 20px;
    background: var(--color-accent-subtle);
    border-radius: 50px;
}

.product-hero-content h1{
    font-size: clamp(36px, 4vw, 54px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 25px;
}

.product-hero-content h1 span{
    color: var(--color-accent);
}

.product-tagline{
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-gray-300);
    margin-bottom: 35px;
    max-width: 550px;
}

.product-highlights{
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.highlight-item{
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: var(--color-gray-200);
}

.highlight-item svg{
    width: 22px;
    height: 22px;
    stroke: var(--color-accent);
    flex-shrink: 0;
}

.product-hero-buttons{
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* PRODUCT OVERVIEW */
.product-overview{
    padding: var(--section-padding) 0;
    background: var(--color-white);
}

.overview-content{
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.overview-text p{
    font-size: 17px;
    line-height: 1.9;
    color: var(--color-gray-600);
    margin-bottom: 25px;
}

.overview-text p strong{
    color: var(--color-primary);
    font-weight: 600;
}

.overview-stats{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card{
    background: var(--color-gray-50);
    padding: 25px 30px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--color-gray-100);
    transition: var(--transition-smooth);
}

.stat-card:hover{
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-5px);
}

.stat-card:hover .stat-number,
.stat-card:hover .stat-label{
    color: var(--color-white);
}

.stat-number{
    display: block;
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label{
    font-size: 14px;
    color: var(--color-gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* PRODUCT FEATURES SECTION */
.product-features-section{
    padding: var(--section-padding) 0;
    background: var(--color-gray-50);
}

.features-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card{
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--color-gray-100);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.feature-card:hover{
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.feature-card:hover::before{
    transform: scaleX(1);
}

.feature-icon{
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    background: var(--color-accent-subtle);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon{
    background: var(--color-accent);
}

.feature-icon svg{
    width: 32px;
    height: 32px;
    stroke: var(--color-accent);
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon svg{
    stroke: var(--color-white);
}

.feature-card h3{
    font-size: 18px;
    color: var(--color-primary);
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-card p{
    font-size: 14px;
    color: var(--color-gray-500);
    line-height: 1.7;
}

/* SPECIFICATIONS SECTION */
.specifications-section{
    padding: var(--section-padding) 0;
    background: var(--color-white);
}

.specs-container{
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.specs-main{
    background: var(--color-gray-50);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--color-gray-100);
}

.specs-header{
    background: var(--color-primary);
    padding: 25px 30px;
}

.specs-header h3{
    color: var(--color-white);
    font-size: 22px;
    font-weight: 600;
}

.specs-table{
    padding: 10px;
}

.spec-row{
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    border-bottom: 1px solid var(--color-gray-100);
}

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

.spec-label{
    padding: 20px 25px;
    font-weight: 600;
    color: var(--color-primary);
    font-size: 15px;
    background: var(--color-white);
}

.spec-value{
    padding: 20px 25px;
    color: var(--color-gray-600);
    font-size: 15px;
    background: var(--color-gray-50);
}

.specs-sidebar{
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.specs-download{
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    color: var(--color-white);
}

.download-icon{
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-icon svg{
    width: 32px;
    height: 32px;
    stroke: var(--color-accent);
}

.specs-download h4{
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--color-white);
}

.specs-download p{
    font-size: 14px;
    color: var(--color-gray-300);
    margin-bottom: 25px;
}

.specs-download .btn{
    width: 100%;
}

.specs-note{
    background: var(--color-gray-50);
    padding: 25px;
    border-radius: 16px;
    border-left: 4px solid var(--color-accent);
}

.specs-note p{
    font-size: 14px;
    color: var(--color-gray-600);
    line-height: 1.7;
}

.specs-note strong{
    color: var(--color-primary);
}

/* INDUSTRIES SECTION */
.industries-section{
    padding: var(--section-padding) 0;
    background: var(--color-gray-50);
}

.industries-grid{
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 25px;
}

.industry-card{
    background: var(--color-white);
    padding: 35px 20px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--color-gray-100);
    transition: var(--transition-smooth);
}

.industry-card:hover{
    background: var(--color-primary);
    transform: translateY(-8px);
    border-color: var(--color-primary);
}

.industry-card:hover .industry-icon{
    background: var(--color-accent);
}

.industry-card:hover .industry-icon svg{
    stroke: var(--color-white);
}

.industry-card:hover h3,
.industry-card:hover p{
    color: var(--color-white);
}

.industry-icon{
    width: 65px;
    height: 65px;
    margin: 0 auto 20px;
    background: var(--color-gray-100);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.industry-icon svg{
    width: 28px;
    height: 28px;
    stroke: var(--color-accent);
}

.industry-card h3{
    font-size: 16px;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.industry-card p{
    font-size: 13px;
    color: var(--color-gray-500);
    line-height: 1.5;
}

/* MACHINE GALLERY */
.machine-gallery{
    padding: var(--section-padding) 0;
    background: var(--color-white);
}

.gallery-grid{
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 15px;
}

.gallery-item{
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item.large{
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.gallery-overlay{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
    opacity: 0;
    transition: var(--transition-smooth);
}

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

.gallery-overlay span{
    color: var(--color-white);
    font-size: 14px;
    font-weight: 500;
}

/* PRODUCT VIDEO SECTION */
.product-video-section{
    padding: var(--section-padding) 0;
    background: var(--color-gray-50);
}

.product-video-section .section-desc{
    margin-bottom: 40px;
}

.product-video-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.product-video-grid .video-container{
    border-radius: 16px;
    overflow: hidden;
}

.video-container{
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: var(--color-primary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.video-container iframe{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* WHY CHOOSE SECTION */
.why-choose-section{
    padding: var(--section-padding) 0;
    background: var(--color-gray-50);
}

.why-choose-content{
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    align-items: center;
}

.why-choose-list{
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.why-item{
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.why-number{
    width: 50px;
    height: 50px;
    background: var(--color-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-white);
    flex-shrink: 0;
}

.why-text h4{
    font-size: 18px;
    color: var(--color-primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.why-text p{
    font-size: 15px;
    color: var(--color-gray-500);
    line-height: 1.7;
}

.why-choose-image{
    position: relative;
}

.why-choose-image img{
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.why-choose-image::before{
    content: "";
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border-top: 3px solid var(--color-accent);
    border-right: 3px solid var(--color-accent);
    border-radius: 20px;
    z-index: -1;
}

.why-choose-image::after{
    content: "";
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    border-bottom: 3px solid var(--color-accent);
    border-left: 3px solid var(--color-accent);
    border-radius: 20px;
    z-index: -1;
}

/* FAQ SECTION */
.faq-section{
    padding: var(--section-padding) 0;
    background: var(--color-white);
}

.faq-container{
    max-width: 900px;
    margin: 0 auto;
}

.faq-item{
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-gray-200);
    background: var(--color-gray-50);
}

.faq-question{
    width: 100%;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 600;
    color: var(--color-primary);
    transition: var(--transition-base);
}

.faq-question:hover{
    background: var(--color-gray-100);
}

.faq-icon{
    width: 30px;
    height: 30px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 20px;
    font-weight: 400;
    transition: var(--transition-base);
}

.faq-item.active .faq-icon{
    transform: rotate(45deg);
}

.faq-answer{
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer{
    max-height: 500px;
}

.faq-answer p{
    padding: 0 30px 25px;
    font-size: 15px;
    color: var(--color-gray-600);
    line-height: 1.8;
}

/* CTA SECTION */
.product-cta{
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    position: relative;
    overflow: hidden;
}

.cta-bg-pattern{
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, transparent 50%);
    animation: rotateGradient 20s linear infinite;
}

@keyframes rotateGradient{
    from{ transform: rotate(0deg); }
    to{ transform: rotate(360deg); }
}

.cta-content{
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2{
    font-size: 42px;
    color: var(--color-white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-content h2 span{
    color: var(--color-accent);
}

.cta-content p{
    font-size: 18px;
    color: var(--color-gray-300);
    margin-bottom: 40px;
}

.cta-buttons{
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* RELATED PRODUCTS */
.related-products{
    padding: var(--section-padding) 0;
    background: var(--color-gray-50);
}

.related-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.related-card{
    background: var(--color-white);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--color-gray-100);
    transition: var(--transition-smooth);
}

.related-card:hover{
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.related-image{
    height: 250px;
    background: var(--color-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.related-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.related-content{
    padding: 30px;
}

.related-content h3{
    font-size: 22px;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.related-content p{
    font-size: 15px;
    color: var(--color-gray-500);
    margin-bottom: 20px;
    line-height: 1.6;
}

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

@media(max-width: 1200px){
    .features-grid{
        grid-template-columns: repeat(3, 1fr);
    }
    
    .industries-grid{
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-grid{
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, 200px);
    }
    
    .gallery-item.large{
        grid-column: span 2;
        grid-row: span 2;
    }
}

@media(max-width: 992px){
    .product-hero-grid{
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .product-hero-image{
        order: -1;
    }
    
    .product-hero-image img{
        max-width: 450px;
        margin: 0 auto;
    }
    
    .overview-content{
        grid-template-columns: 1fr;
    }
    
    .overview-stats{
        flex-direction: row;
    }
    
    .stat-card{
        flex: 1;
    }
    
    .features-grid{
        grid-template-columns: repeat(2, 1fr);
    }
    
    .specs-container{
        grid-template-columns: 1fr;
    }
    
    .industries-grid{
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid{
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 200px);
    }
    
    .gallery-item.large{
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .product-video-grid{
        grid-template-columns: 1fr;
    }
    
    .why-choose-content{
        grid-template-columns: 1fr;
    }
    
    .why-choose-image{
        order: -1;
    }
    
    .related-grid{
        grid-template-columns: 1fr;
    }
}

@media(max-width: 768px){
    .product-hero{
        padding: 140px 0 80px;
    }
    
    .product-hero-content h1{
        font-size: 32px;
    }
    
    .product-tagline{
        font-size: 16px;
    }
    
    .product-hero-buttons{
        flex-direction: column;
    }
    
    .product-hero-buttons .btn{
        width: 100%;
    }
    
    .stat-card{
        padding: 20px;
    }
    
    .stat-number{
        font-size: 32px;
    }
    
    .features-grid{
        grid-template-columns: 1fr;
    }
    
    .feature-card{
        padding: 30px 20px;
    }
    
    .spec-row{
        grid-template-columns: 1fr;
    }
    
    .industries-grid{
        grid-template-columns: 1fr;
    }
    
    .industry-card{
        padding: 25px 15px;
    }
    
    .gallery-grid{
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .gallery-item.large{
        grid-column: span 1;
    }
    
    .gallery-item{
        height: 200px;
    }
    
    .why-item{
        flex-direction: column;
        gap: 15px;
    }
    
    .why-choose-image{
        display: none;
    }
    
    .cta-content h2{
        font-size: 28px;
    }
    
    .cta-buttons{
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn{
        width: 100%;
        max-width: 280px;
    }
}

@media(max-width: 480px){
    .product-highlights{
        gap: 12px;
    }
    
    .highlight-item{
        font-size: 14px;
    }
    
    .overview-text p{
        font-size: 15px;
    }
    
    .faq-question{
        font-size: 15px;
        padding: 20px;
    }
    
    .faq-answer p{
        padding: 0 20px 20px;
        font-size: 14px;
    }
}