/* ==========================================
        NEW DEX INDUSTRY
            PRODUCT PAGE
========================================== */

/* ===========================
      RESET
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Poppins',sans-serif;
    background:#faf9f6;
    color:#222;
    overflow-x:hidden;
}

/* ===========================
      HEADER
=========================== */

header{
    position:sticky;
    top:0;
    z-index:999;
    background:#14532d;
    box-shadow:0 5px 20px rgba(0,0,0,.12);
}

.navbar{
    width:90%;
    max-width:1400px;
    margin:auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 0;
}

.logo img{
    width:180px;
}

.nav-links{
    display:flex;
    gap:35px;
    list-style:none;
}

.nav-links a{
    color:#fff;
    text-decoration:none;
    font-size:17px;
    transition:.3s;
}

.nav-links a:hover{
    color:#d4af37;
}

/* ===========================
      PRODUCT DETAILS
=========================== */

.product-details{

    width:90%;
    max-width:1400px;
    margin:80px auto;

    display:grid;
    grid-template-columns:1fr 1fr;
    gap:70px;
    align-items:center;

}

.product-image{

    background:#fff;

    border-radius:20px;

    padding:40px;

    text-align:center;

    box-shadow:0 15px 35px rgba(0,0,0,.08);

}

.product-image img{

    width:100%;
    max-width:450px;

    transition:.4s;

}

.product-image img:hover{

    transform:scale(1.08);

}

.product-info h1{

    font-size:48px;

    color:#14532d;

    margin-bottom:15px;

}

.rating{

    color:#f4b400;

    font-size:22px;

    margin-bottom:20px;

}

.product-info h2{

    color:#d4af37;

    font-size:40px;

    margin-bottom:20px;

}

.product-info p{

    color:#666;

    line-height:1.9;

    margin-bottom:30px;

}

/* Quantity */

.quantity{

    display:flex;

    align-items:center;

    gap:15px;

    margin-bottom:35px;

}

.quantity button{

    width:45px;

    height:45px;

    border:none;

    background:#14532d;

    color:#fff;

    font-size:22px;

    border-radius:8px;

    cursor:pointer;

}

.quantity input{

    width:80px;

    height:45px;

    text-align:center;

    border:1px solid #ddd;

    border-radius:8px;

    font-size:18px;

}

/* Buttons */

.product-buttons{

    display:flex;

    flex-wrap:wrap;

    gap:20px;

}

.product-wishlist-btn{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:10px;

    background:#fff;

    color:#14532d;

    border:2px solid #14532d;

    padding:14px 30px;

    border-radius:10px;

    cursor:pointer;

    font-size:16px;

    font-weight:600;

    font-family:'Poppins',sans-serif;

    transition:.35s;

}

.product-wishlist-btn:hover{

    background:#14532d;

    color:#fff;

}

.product-wishlist-btn.active{

    background:#ff4d6d;

    border-color:#ff4d6d;

    color:#fff;

}

.cart-btn{

    background:#14532d;

    color:#fff;

    border:none;

    padding:16px 35px;

    border-radius:10px;

    cursor:pointer;

    font-size:17px;

    font-weight:600;

    transition:.35s;

}

.buy-btn{

    background:#d4af37;

    color:#14532d;

    border:none;

    padding:16px 35px;

    border-radius:10px;

    cursor:pointer;

    font-size:17px;

    font-weight:600;

    transition:.35s;

}

.cart-btn:hover{

    background:#d4af37;

    color:#14532d;

}

.buy-btn:hover{

    background:#14532d;

    color:#fff;

}
/* ===========================
      DESCRIPTION
=========================== */

.description{

    width:90%;

    max-width:1400px;

    margin:80px auto;

    background:#fff;

    padding:50px;

    border-radius:20px;

    box-shadow:0 15px 30px rgba(0,0,0,.08);

}

.description h2{

    color:#14532d;

    font-size:38px;

    margin-bottom:25px;

}

.description p{

    color:#666;

    line-height:1.9;

    font-size:17px;

}

/* ===========================
      BENEFITS
=========================== */

.benefits{

    width:90%;

    max-width:1400px;

    margin:90px auto;

}

.benefits h2{

    text-align:center;

    font-size:42px;

    color:#14532d;

    margin-bottom:50px;

}

.benefit-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

    gap:30px;

}

.benefit-card{

    background:#fff;

    padding:40px 30px;

    border-radius:20px;

    text-align:center;

    box-shadow:0 15px 30px rgba(0,0,0,.08);

    transition:.35s;

    font-size:18px;

}

.benefit-card:hover{

    transform:translateY(-10px);

    background:#14532d;

    color:#fff;

}

.benefit-card h3{

    margin:20px 0;

    font-size:24px;

}

.benefit-card p{

    line-height:1.8;

}

/* ===========================
      RELATED PRODUCTS
=========================== */

.related-products{

    width:90%;

    max-width:1400px;

    margin:100px auto;

}

.related-products h2{

    text-align:center;

    color:#14532d;

    font-size:42px;

    margin-bottom:50px;

}

.product-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));

    gap:35px;

}

.product-card{

    background:#fff;

    border-radius:20px;

    padding:30px;

    text-align:center;

    box-shadow:0 15px 30px rgba(0,0,0,.08);

    transition:.35s;

}

.product-card:hover{

    transform:translateY(-10px);

}

.product-card img{

    width:100%;

    max-width:250px;

    margin:auto;

    transition:.35s;

}

.product-card:hover img{

    transform:scale(1.08);

}

.product-card h3{

    color:#14532d;

    margin:20px 0 10px;

}

.product-card h4{

    color:#d4af37;

    font-size:24px;

}

/* ===========================
      FOOTER
=========================== */

footer{

    background:#14532d;

    color:#fff;

    margin-top:100px;

}

.footer-container{

    width:90%;

    max-width:1400px;

    margin:auto;

    display:grid;

    grid-template-columns:2fr 1fr 1fr;

    gap:40px;

    padding:70px 0;

}

.footer-logo img{

    width:180px;

    margin-bottom:20px;

}

.footer-logo p{

    color:#ddd;

    line-height:1.8;

}

.footer-links{

    display:flex;

    flex-direction:column;

}

.footer-links h3,
.footer-contact h3{

    margin-bottom:20px;

    color:#d4af37;

}

.footer-links a{

    color:#ddd;

    text-decoration:none;

    margin-bottom:12px;

    transition:.3s;

}

.footer-links a:hover{

    color:#d4af37;

}

.footer-contact p{

    color:#ddd;

    margin-bottom:12px;

}

.copyright{

    text-align:center;

    padding:20px;

    border-top:1px solid rgba(255,255,255,.15);

    color:#ccc;

}

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

@media(max-width:992px){

.product-details{

    grid-template-columns:1fr;

    text-align:center;

}

.product-buttons{

    justify-content:center;

}

.quantity{

    justify-content:center;

}

.footer-container{

    grid-template-columns:1fr;

    text-align:center;

}

.footer-links{

    align-items:center;

}

}

@media(max-width:768px){

.nav-links{

    flex-wrap:wrap;

    justify-content:center;

    gap:18px;

}

.product-info h1{

    font-size:34px;

}

.product-info h2{

    font-size:30px;

}

.description{

    padding:30px;

}

.description h2{

    font-size:30px;

}

.benefits h2,

.related-products h2{

    font-size:34px;

}

.product-buttons{

    flex-direction:column;

}

.cart-btn,

.buy-btn{

    width:100%;

}

}

@media(max-width:480px){

.quantity{

    flex-direction:column;

}

.quantity input{

    width:100%;

}

.product-image{

    padding:20px;

}

.description{

    padding:20px;

}

}

/*==========================================
        MOBILE HAMBURGER MENU
==========================================*/

.menu-toggle{
    display:none;
    flex-direction:column;
    justify-content:center;
    gap:6px;
    cursor:pointer;
    z-index:1001;
}

.menu-toggle span{
    width:30px;
    height:3px;
    background:#fff;
    border-radius:2px;
    transition:.3s;
}

.menu-toggle.active span:nth-child(1){
    transform:rotate(45deg) translate(7px,7px);
}

.menu-toggle.active span:nth-child(2){
    opacity:0;
}

.menu-toggle.active span:nth-child(3){
    transform:rotate(-45deg) translate(7px,-7px);
}

@media(max-width:992px){

    .navbar{
        position:relative;
    }

    .menu-toggle{
        display:flex;
    }

    .nav-links{
        position:absolute;
        top:100%;
        left:0;
        width:100%;
        background:#14532d;
        flex-direction:column;
        align-items:center;
        gap:0;
        max-height:0;
        overflow:hidden;
        transition:.4s;
    }

    .nav-links.active{
        max-height:500px;
        padding:15px 0;
        box-shadow:0 15px 25px rgba(0,0,0,.2);
    }

    .nav-links li{
        width:100%;
        text-align:center;
    }

    .nav-links a{
        display:block;
        padding:14px 0;
    }

}
