/*=========================================
        NEW DEX INDUSTRY
            SHOP PAGE
==========================================*/
/*=========================================
            HEADER
==========================================*/

header{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    z-index:9999;

    background:rgba(20,83,45,.95);

    backdrop-filter:blur(12px);

    box-shadow:0 8px 25px rgba(0,0,0,.12);

}

.navbar{

    width:90%;

    max-width:1400px;

    height:85px;

    margin:auto;

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.logo img{

    height:65px;

    transition:.35s;

}

.logo img:hover{

    transform:scale(1.05);

}

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

.nav-links{

    display:flex;

    align-items:center;

    list-style:none;

    gap:35px;

}

.nav-links li{

    list-style:none;

}

.nav-links a{

    color:#fff;

    text-decoration:none;

    font-size:16px;

    font-weight:500;

    position:relative;

    transition:.35s;

}

.nav-links a::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-8px;

    width:0;

    height:2px;

    background:#d4af37;

    transition:.35s;

}

.nav-links a:hover{

    color:#d4af37;

}

.nav-links a:hover::after{

    width:100%;

}

/* Active Menu */

.nav-links a.active{

    color:#d4af37;

}

.nav-links a.active::after{

    width:100%;

}

/* Cart Button */

.nav-links li:last-child a{

    background:#d4af37;

    color:#14532d;

    padding:12px 20px;

    border-radius:40px;

    font-weight:600;

}

.nav-links li:last-child a:hover{

    background:#fff;

    color:#14532d;

}

/* Once logged in, the account link becomes the last nav item too -
   make sure it never picks up the gold Cart-button styling above. */
.nav-links li:last-child a#accountNavLink{

    background:none;

    color:#fff;

    padding:0;

    border-radius:0;

}

.nav-links li:last-child a#accountNavLink:hover{

    background:none;

    color:#fff;

}


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

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

/*=========================================
            SHOP HERO
==========================================*/

.shop-hero{

    position:relative;

    padding:170px 8% 110px;

    text-align:center;

    overflow:hidden;

    background:linear-gradient(135deg,#14532d,#1d7a45);

}

/* Gold Circle */

.shop-hero::before{

    content:"";

    position:absolute;

    width:550px;
    height:550px;

    border-radius:50%;

    background:rgba(212,175,55,.08);

    top:-220px;

    right:-180px;

}

/* White Circle */

.shop-hero::after{

    content:"";

    position:absolute;

    width:420px;
    height:420px;

    border-radius:50%;

    background:rgba(255,255,255,.06);

    left:-120px;

    bottom:-180px;

}

.shop-hero h1{

    position:relative;

    z-index:10;

    color:#fff;

    font-size:65px;

    font-weight:700;

    margin-bottom:20px;

}

.shop-hero p{

    position:relative;

    z-index:10;

    max-width:780px;

    margin:auto;

    color:#eee;

    font-size:19px;

    line-height:1.8;

}

/*=========================================
            SEARCH BAR
==========================================*/

.search-area{

    position:relative;

    z-index:10;

    margin-top:45px;

    display:flex;

    justify-content:center;

    gap:20px;

    flex-wrap:wrap;

}

.search-area input{

    width:520px;

    max-width:100%;

    padding:18px 25px;

    border:none;

    outline:none;

    border-radius:50px;

    font-size:16px;

    background:#fff;

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

}

.search-area button{

    padding:18px 35px;

    border:none;

    border-radius:50px;

    background:#d4af37;

    color:#14532d;

    font-weight:600;

    cursor:pointer;

    transition:.35s;

}

.search-area button:hover{

    background:#fff;

    transform:translateY(-4px);

}

/*=========================================
            CATEGORY
==========================================*/

.category{

    width:90%;

    max-width:1400px;

    margin:60px auto;

    display:flex;

    justify-content:center;

    gap:20px;

    flex-wrap:wrap;

}

.category button{

    border:2px solid #14532d;

    background:#fff;

    color:#14532d;

    padding:14px 28px;

    border-radius:40px;

    font-size:15px;

    font-weight:600;

    cursor:pointer;

    transition:.35s;

}

.category button:hover{

    background:#14532d;

    color:#fff;

    transform:translateY(-5px);

    box-shadow:0 15px 25px rgba(20,83,45,.20);

}

/* Active Button (set by shop.js on click) */

.category button.active-category{

    background:#14532d;

    color:#fff;

}

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

.product-grid{

    width:90%;
    max-width:1400px;

    margin:70px auto;

    display:grid;

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

    gap:40px;

}

/*=========================================
            PRODUCT CARD
==========================================*/

.product-card{

    position:relative;

    background:#fff;

    border-radius:25px;

    overflow:hidden;

    padding:30px;

    text-align:center;

    transition:.4s;

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

    border:1px solid #eee;

}

.product-card:hover{

    transform:translateY(-12px);

    box-shadow:0 25px 50px rgba(0,0,0,.15);

}

/* Top Gold Border */

.product-card::before{

    content:"";

    position:absolute;

    left:0;
    top:0;

    width:100%;
    height:5px;

    background:linear-gradient(to right,#14532d,#d4af37);

}

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

.product-card img{

    width:350px;

    height:350px;

    object-fit:contain;

    transition:.45s;

}

.product-card:hover img{

    transform:scale(1.08) rotate(-3deg);

}

/*=========================================
            PRODUCT TITLE
==========================================*/

.product-card h3{

    margin-top:20px;

    color:#14532d;

    font-size:26px;

    font-weight:700;

}

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

.product-card p{

    margin:18px 0;

    color:#666;

    line-height:1.8;

}

/*=========================================
            PRICE
==========================================*/

.product-card h2{

    color:#d4af37;

    font-size:32px;

    margin-bottom:25px;

}

/*=========================================
            STAR RATING
==========================================*/

.rating{

    color:#ffb400;

    font-size:20px;

    margin:12px 0;

    letter-spacing:2px;

}

/*=========================================
            SALE BADGE
==========================================*/

.sale{

    position:absolute;

    top:20px;

    left:20px;

    padding:8px 16px;

    border-radius:30px;

    color:#fff;

    font-size:13px;

    font-weight:600;

    background:#ff3d3d;

}

.sale.new{

    background:#007bff;

}

.sale.best{

    background:#198754;

}

/*=========================================
            BUTTON GROUP
==========================================*/

.btn-group{

    display:flex;

    gap:12px;

}

/* Wishlist */

.wishlist{

    width:55px;

    border:none;

    border-radius:12px;

    background:#f3f3f3;

    cursor:pointer;

    font-size:22px;

    transition:.35s;

}

.wishlist:hover{

    background:#ff4d6d;

    color:#fff;

}

.wishlist.active{

    background:#ff4d6d;

    color:#fff;

}

/* Add To Cart */

.cart-btn{

    flex:1;

    border:none;

    border-radius:12px;

    background:#14532d;

    color:#fff;

    padding:15px;

    font-size:16px;

    font-weight:600;

    cursor:pointer;

    transition:.35s;

}

.cart-btn:hover{

    background:#d4af37;

    color:#111;

    transform:translateY(-3px);

}

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

footer{

    background:linear-gradient(135deg,#0f3d23,#14532d);

    color:#fff;

    margin-top:100px;

    overflow:hidden;

    position:relative;

}

footer::before{

    content:"";

    position:absolute;

    width:350px;
    height:350px;

    background:rgba(212,175,55,.08);

    border-radius:50%;

    top:-120px;
    right:-120px;

}

.footer-container{

    width:90%;
    max-width:1400px;

    margin:auto;

    display:grid;

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

    gap:60px;

    padding:80px 0;

    position:relative;

    z-index:2;

}

.footer-logo img{

    width:190px;

    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{

    color:#d4af37;

    margin-bottom:20px;

    font-size:22px;

}

.footer-links a{

    color:#ddd;

    text-decoration:none;

    margin-bottom:12px;

    transition:.3s;

}

.footer-links a:hover{

    color:#d4af37;

    padding-left:8px;

}

.footer-contact p{

    color:#ddd;

    margin-bottom:14px;

}

.copyright{

    text-align:center;

    padding:22px;

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

    color:#ccc;

}

/*=========================================
        PRODUCT HOVER EFFECT
==========================================*/

.product-card{

    overflow:hidden;

}

.product-card::after{

    content:"";

    position:absolute;

    left:0;

    bottom:0;

    width:0;

    height:4px;

    background:#d4af37;

    transition:.4s;

}

.product-card:hover::after{

    width:100%;

}

/*=========================================
        IMAGE ANIMATION
==========================================*/

.product-card img{

    filter:drop-shadow(0 18px 22px rgba(0,0,0,.18));

}

.product-card:hover img{

    transform:scale(1.08) rotate(-4deg);

}

/*=========================================
        SCROLLBAR
==========================================*/

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#eee;

}

::-webkit-scrollbar-thumb{

    background:#14532d;

    border-radius:30px;

}

::-webkit-scrollbar-thumb:hover{

    background:#d4af37;

}

/*=========================================
        FADE ANIMATION
==========================================*/

.shop-hero,
.category,
.product-card,
footer{

    animation:fadeUp .8s ease;

}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(35px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

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

@media(max-width:992px){

    .footer-container{

        grid-template-columns:1fr;

        text-align:center;

    }

    .footer-logo p{

        margin:auto;

    }

}

@media(max-width:768px){

    .shop-hero{

        padding:140px 20px 90px;

    }

    .shop-hero h1{

        font-size:40px;

    }

    .shop-hero p{

        font-size:16px;

    }

    .search-area{

        flex-direction:column;

    }

    .search-area input{

        width:100%;

    }

    .search-area button{

        width:100%;

    }

    .category{

        gap:12px;

    }

    .category button{

        width:48%;

    }

    .product-grid{

        grid-template-columns:1fr;

    }

    .btn-group{

        flex-direction:column;

    }

}

@media(max-width:480px){

    .product-card{

        padding:20px;

    }

    .product-card img{

        width:100%;

        height:auto;

    }

    .product-card h3{

        font-size:22px;

    }

    .product-card h2{

        font-size:28px;

    }

}

.buy-btn{

    background:#d4af37;
    color:#14532d;

    border:none;
    padding:12px 20px;

    border-radius:8px;

    font-weight:600;

    cursor:pointer;

    transition:.3s;

}

.buy-btn:hover{

    background:#14532d;
    color:#fff;

}

/*==========================================
        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;
    }

}
