/* ================= MAIN BACKGROUND ================= */
body{
    overflow-x: hidden;
    overflow-y:auto
}


main{
    padding: 8% 8% 0 8% ;
    min-height: auto;
    overflow: hidden;

    background: white;
    background-size: 300% 300%;
    animation: gradientMove 18s ease infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating glow */
main::after{
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,180,200,0.18), transparent 45%),
        radial-gradient(circle at 70% 70%, rgba(180,190,255,0.18), transparent 45%);
    animation: glowFloat 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes glowFloat {
    0% { transform: translate(0,0); }
    50% { transform: translate(-30px, -20px); }
    100% { transform: translate(0,0); }
}

/* ================= PRODUCT HEADER ================= */
.product-header{
    background: rgba(247, 246, 246, 0.85);
    padding: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    margin-top: -80px;
}

.product-header .menu-icon{
    display: flex;
    align-items: center;
    font-size: 28px;
    cursor: pointer;
    visibility: hidden;
}

.product-header-right{
    display: flex;
    align-items: center;
    margin-left: -400px;
}

.product-header-right span{
    font-size: 14px;
    font-weight: 600;
    margin-right: 4px;
}

.product-header-right #sort{
    border: none;
    background: transparent;
    font-size: 14px;
    padding: 12px;
    cursor: pointer;
}

#productCount{
    margin-left: 6px;
    
    
}

/* ================= CONTAINER ================= */
main .container{
    position: flex;
}

/* ================= ASIDE FILTER ================= */
.aside{
    width: 250px;
    position:fixed;
    /* top: 100px; */
    margin-top: 60px;
    left: 24px;

    padding: 20px 24px ;
    border-radius: 16px;
    margin-left: 60px;

    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);

    box-shadow: 0 20px 40px rgba(241, 18, 18, 0.12);
    
    z-index: 2;
}

.aside h2{
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 18px;
}

.shop_categories a{
    padding: 8px 9px;
    text-decoration: none;
    font-size: 16px;
    color: #777;
    display: block;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.shop_categories a:hover,
.shop_categories a.active{
    background: linear-gradient(135deg, #e4c7df);
    color: #fff;
}

/* ================= PRODUCTS ================= */
.products{
    width: 100%;
    padding: 16px;
    padding-left: 270px;
    
    overflow-y: auto;
    transition: margin-left 0.5s;
    scrollbar-width: none;
}
.products::-webkit-scrollbar{
    display: none;         /* Chrome / Edge / Safari */
}

.products .content{
    display: grid;
    gap: 20px;
    padding: 16px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* ================= PRODUCT CARD ================= */
.product-card{
    position: relative;
    background: rgba(255,255,255,0.9);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover{
    transform: translateY(-6px);
    box-shadow: 0 25px 45px rgba(0,0,0,0.18)
}

/* Premium shine */
.product-card::before{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.25),
        transparent
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover::before{
    opacity: 1;
}

/* ================= IMAGE ================= */
/* ================= IMAGE FRAME ================= */
.card-img {
    position: relative;
    overflow: hidden;
    padding: 12px;              /* space between image & card */
    background: #fff;
    border-radius: 12px;
}

/* ================= IMAGE ================= */
.card-img img {
    width: 100%;
    height: 220px;              /* fixed visual size */
    object-fit: cover;          /* no stretching */
    display: block;
    border-radius: 8px;         /* inner rounding */
    transition: transform 0.8s ease;
}

/* ================= HOVER EFFECT ================= */
.card-img:hover img {
    transform: scale(1.1);
}


/* ================= CART ICON ================= */
.card-img .addToCart{
    position: absolute;
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-img .addToCart:hover{
    background: #ffffff;
    color: #ec9ddb;
}

/* ================= INFO ================= */
.card-info{
    padding: 16px;
}

.product-name{
    font-size: 14px;
    font-weight: 500;
    color: #222;
    margin-bottom: 6px;
}

.product-price{
    font-size: 14px;
    color: #777;
}

/* ================= RESPONSIVE ================= */
@media screen and (max-width: 768px){
    .product-header .menu-icon{
        visibility: visible;
    }

    .sortBy{
        display: none;
    }

    .aside{
        width: 100%;
        left: -200%;
    }

    .aside.open{
        left: 0;
    }

    .products{
        padding-left: 16px;
    }
}



