/* FLOATING NAV*/
.floating-nav{
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;

    display: flex;
    gap: 10px;

    padding: 6px;

    background: rgba(15,15,15,0.85);
    backdrop-filter: blur(12px);

    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;

    transition: all 0.4s ease;
}

.floating-nav.hidden{
    opacity: 0;
    transform: translate(-50%, -30px);
    pointer-events: none;
}

.floating-nav a{
    color: #bbb;
    text-decoration: none;

    padding: 12px 24px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;

    transition: all .3s ease;
}

.floating-nav a:hover{
    color: #fff;
}

.floating-nav a.active{
    background: #f0a500;
    color: black;
}


/* PAGE WRAPPER */
.product-area{
    padding: 2rem 5%;
    padding-left: 10%;
    background: #000;
}

/* SECTION TITLE */
.section-title{
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    padding-top: 3rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title a{
    color: white;
    text-decoration: none;
    transition: all .3s ease;
    display: inline-block;
}

.section-title a:hover{
    color: #f0a500;

    text-shadow:
        0 0 6px rgba(240,165,0,0.15);

    transform: scale(1.05);
}


.section-subtitle{
    color: #aaa;
    font-size: 1rem;
    margin-bottom: 3rem;
}

.product-container{
    width: 100%;
    margin: 0 auto;
}

.product-list{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    width: 100%;
}

.product{
    background: #111;
    border: 1px solid transparent;
    border-radius: 18px;
    overflow: hidden;
    color: white;
    width: 100%;
    min-height: 430px;
    padding: 1.5rem;
    box-sizing: border-box;
    cursor: pointer;
    opacity: 0;
    transform: translateY(35px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.product.show{
    opacity: 1;
    transform: translateY(0);
}

.product.show:hover{
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(240,165,0,0.55);
    background: #151515;
    box-shadow:
        0 12px 35px rgba(0,0,0,0.55),
        0 0 25px rgba(240,165,0,0.12);
}

.product img{
    width: 100%;
    height: 220px;
    object-fit: contain;
    display: block;
    margin-bottom: 1.5rem;

    transition:
        transform 0.35s ease,
        filter 0.35s ease;
}

.product:hover img{
    transform: scale(1.06);
    filter: drop-shadow(0 0 14px rgba(240,165,0,0.25));
}

.product-name h3{
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: 1px;
}

.product-name h3,
.product-name p,
.price,
.product-learn-more{
    transition:
        color 0.3s ease,
        opacity 0.3s ease,
        transform 0.3s ease,
        letter-spacing 0.3s ease;
}

.product:hover .product-name h3{
    color: #f0a500;
}

.product-name p{
    font-size: 0.9rem;
    color: #aaa;
    letter-spacing: 0.5px;
    margin-bottom: 1.2rem;
}

.price-divider{
    width: 0;
    height: 4px;
    background: #f0a500;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    transition: width 0.4s ease;
}

.product:hover .price-divider{
    width: 50px;
}

.product-bottom{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 1rem -1rem 0;
}

.price{
    display: block;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.product-learn-more{
    display: inline-block;
    color: #f0a500;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    padding-bottom: 0.3rem;
    transition: 0.3s ease;
    opacity: 0;
}

.product:hover .product-learn-more{
    opacity: 1;
    letter-spacing: 1px;
    transform: translateY(0);
}

/* GRID FOR PRODUCTS */
.hot-selling-list,
.new-products-list,
.cases-list,
.coolers-list,
.monitors-list{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7rem;
    width: 90%;
}

/* VIEW ALL BUTTON */
.view-all-btn{
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.view-all-btn:hover{
    border-color: #ffc700;
    color: #ffc700;
    transform: translateY(-2px);
}

html{
    scroll-behavior: smooth;
}

#hot-selling,
#new-arrivals,
#cases,
#cooling,
#monitor{
    scroll-margin-top: 50px;
}

.view-more-circle{
    display: flex;
    align-items: center;
    gap: 12px;

    cursor: pointer;
    user-select: none;

    flex-shrink: 0;

    transition: .3s ease;
}

.view-more-circle span{
    color: #777;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;

    opacity: 0;
    transform: translateX(10px);

    transition: .3s ease;
}

.view-arrow{
    width: 60px;
    height: 60px;

    border-radius: 50%;

    display: flex;
    justify-content: center;
    align-items: center;

    border: 2px solid grey;

    background: rgba(255,255,255,0.02);

    color: white;

    font-size: 2rem;
    font-weight: 300;

    transition: .3s ease;
}

.view-more-circle:hover span{
    opacity: 1;
    transform: translateX(0);

    color: #f0a500;
}

.view-more-circle:hover .view-arrow{
    color: #f0a500;

    border-color: rgba(240,165,0,0.35);

    box-shadow:
        0 0 12px rgba(240,165,0,0.12);

    transform: scale(1.08);
}

.section-row{
    display: flex;
    align-items: center;
    gap: 40px;
}

@media (max-width:768px){

    /* Floating Navigation */
     .floating-nav{
        top: 75px;
        width: calc(100% - 24px);
        left: 50%;
        transform: translateX(-50%);
        overflow-x: auto;
        justify-content: flex-start;
        padding: 6px;
        gap: 6px;

        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .floating-nav::-webkit-scrollbar{
        display:none;
    }

    .floating-nav a{
        white-space: nowrap;
        padding: 10px 18px;
        font-size: .72rem;
    }

    /* Wrapper */
    .product-area{
        padding: 1.5rem 20px;
    }

    /* Section Header */
    .section-row{
        display:flex;
        justify-content:space-between;
        align-items:center;
        gap:15px;
    }

    .section-title{
        font-size:1.8rem;
        padding-top:4rem;
        margin-bottom:.6rem;
    }

    .section-subtitle{
        font-size:.9rem;
        margin-bottom:2rem;
    }

    /* Product Grid */
    .product-list,
    .hot-selling-list,
    .new-products-list,
    .cases-list,
    .coolers-list,
    .monitors-list {

        display: grid !important;

        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap: 16px !important;

        width: 100% !important;

        max-width: none !important;

        margin: 0 !important;

        padding: 0 8px !important;

        overflow: visible !important;

        box-sizing: border-box;

    }

    .product-list > *,
    .hot-selling-list > *,
    .new-products-list > *,
    .cases-list > *,
    .coolers-list > *,
    .monitors-list > * {

        width: 100% !important;

        min-width: 0 !important;

        max-width: none !important;

        flex: none !important;

        box-sizing: border-box;

    }


    /* Product Card */
    .product{
        min-height:auto;
        padding:18px;
        border-radius:16px;
    }

    .product img{
        height:140px;
        margin-bottom:18px;
    }

    .product-name h3{
        font-size:1.15rem;
        margin-bottom:12px;
    }

    .product-name p{
        font-size:.8rem;
        margin-bottom:12px;
    }

    .price{
        font-size:1rem;
        margin-bottom:0;
    }

    .product-bottom{
        margin:0;
    }

    /* View More */
    .view-more-circle span{
        display:none;
    }

    .view-arrow{
        width:44px;
        height:44px;
        font-size:1.3rem;
    }

}

/* 1. RESET PRODUCT SECTION WRAPPER */
.product-section {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 auto;
    box-sizing: border-box;
}

/* 2. MATCH GRID DIMENSIONS EXACTLY */
.hot-selling-list,
.new-products-list,
.cases-list,
.coolers-list,
.monitors-list {
    width: 95% !important;
    max-width: 1250px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

/* 3. PRODUCT GRID SPECIFIC STYLES */
.hot-selling-list,
.new-products-list,
.cases-list,
.coolers-list,
.monitors-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-bottom: 90px !important;
    padding: 0;
}

/* Moves the content down ONLY on the page with .all-products-page */
body.all-products-page {
    padding-top: 150px; /* Adjust this value to shift content down as needed */
}

/* Container: Reduces top spacing to move the button UP */
.view-more-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: -50px; /* Negative margin pulls the button UP towards the products */
    margin-bottom: 20px;
}

/* Button: Increased vertical padding for more height */
.view-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    
    width: 100%;
    max-width: 130px;
    
    /* Increase 18px to 24px if you want it even taller vertically */
    padding: 8px 0; 
    
    border-radius: 50px;
    background: rgba(35, 35, 35, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.25);
    
    color: #ffffff;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
}

/* Hover state */
.view-more-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
}

/* PRODUCT CARD FONTS */
.product-name h3 {
    font-size: 1rem;          /* Product title size (e.g., "THE VIEW 5") */
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.product-name p {
    font-size: 0.55rem;         /* Category & Variation text size */
    color: #888888;
    margin: 4px 0;
}

/* --- HERO BANNER ANIMATIONS --- */

/* Initial state for background image: slightly scaled down */
.hero-banner-section .hero-banner-bg {
    transform: scale(1);
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Initial state for product image: scaled down and slightly offset */
.hero-banner-section .hero-banner-product img {
    transform: scale(0.85) translateY(20px);
    opacity: 0;
    transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1),
                opacity 1s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- ANIMATED ACTIVE STATES (Triggered on Scroll) --- */

/* Zoom-in effect for the background image */
.hero-banner-section.animate-hero .hero-banner-bg {
    transform: scale(1.08); /* Adjust scale factor for deeper/subtler zoom */
}

/* Pop-in and zoom effect for the featured product image */
.hero-banner-section.animate-hero .hero-banner-product img {
    transform: scale(1) translateY(0);
    opacity: 1;
    transition-delay: 0.2s; /* Slight delay after background starts zooming */
}

/* Initial hidden state for hero text */
.hero-banner-content h2,
.hero-banner-content p {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Active animated state on scroll */
.hero-banner-section.animate-hero .hero-banner-content h2 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.hero-banner-section.animate-hero .hero-banner-content p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

#coolers-hero,
#monitors-hero {
    margin-top: 80px; /* Adjust this pixel value to increase or decrease the gap */
}

.hero-banner-section {
    scroll-margin-top: 120px; /* Increase this number to push the section lower on click */
}

@media (max-width: 768px) {
     .hero-banner-product {
        width: 100% !important;
        height: 350px !important;
    }

     .hero-banner-product img {
        width: 350px !important;
        height: 350px !important;
        max-width: none !important;
        max-height: none !important;
        object-fit: contain !important;
        transform: none !important;
    }

        #cases-hero {
    margin-top: -80px !important;
}

#coolers-hero,
#monitors-hero {
    margin-top: -30px !important;
}
}


    #new-arrivals,
    #cases-list,
    #coolers-list,
    #monitors-list {
        position: relative;
        top: -50px;
    }

    #cases-hero,
#coolers-hero,
#monitors-hero {
    margin-top: -30px;
}

#cases .view-more-container,
#cooling .view-more-container,
#monitor .view-more-container {
    position: relative;
    top: -50px;
}