/* ==================================================
   SMOOTH DOWN ANIMATION
================================================== */
@keyframes smoothDown {
    0% {
        opacity: 0;
        transform: translateY(-40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-down {
    opacity: 0; /* Starts hidden */
    /* cubic-bezier gives it a snappy, professional easing rather than a linear slide */
    animation: smoothDown 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards; 
}

/* Staggered load-in delays */
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }


/* ==================================================
   GLOBAL & BACKGROUND
================================================== */
body {
    margin: 0;
    min-height: 100vh;
    
    /* BACKGROUND SETUP:
        We overlay your beautiful purple/pink gradient on top of an image.
        Replace 'background-colognes.jpg' with a dark, moody picture of cologne bottles or water.
        The '0.85' opacity on the gradient ensures the image peeks through subtly.
    */
    background-color: #1a0a24;
    background-image: linear-gradient(to bottom, rgba(121, 20, 141, 0.85), rgba(175, 126, 126, 0.9)), url("../products/pics/clothing.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-blend-mode: overlay; 
    
    font-family: 'Montserrat', sans-serif; /* Clean, modern base font */
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

/* ==================================================
   BLURRY GRAY HEADER BANNER
================================================== */
.glass-banner {
    width: 100%;
    /* Increased padding top and bottom so you can actually see the photo */
    padding: 100px 0 80px 0; 
    margin-bottom: 20px;
    
    /* This puts the image behind the text box! 
        The 'linear-gradient' acts as a dark, tinted window over the photo 
        so your white text stays crisp and easy to read.
    */
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 600;
    margin: 0;
    color: white;
    letter-spacing: 3px;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 10px;
}

/* ==================================================
   SECTION SEPARATOR
================================================== */
.section-header {
    width: 310%;
    max-width: 2100px;
    margin: 30px 0 40px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 15px;
    text-align: center;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-style: italic;
    font-size: 1.8rem;
    color: white;
    margin: 0;
    transform: translateY(-50%);
    letter-spacing: 1px;
}

/* ==================================================
   PRODUCTS GRID & DESIGN
================================================== */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 60px;
    width: 85%;
    max-width: 1100px;
    justify-items: center;
    margin-bottom: 80px; 
}

.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    width: 100%;
    transition: transform 0.4s ease;
}

.product-card:hover {
    transform: translateY(-8px); 
}

.img-wrap-square {
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.212) 0%, rgba(94, 89, 89, 0.15) 100%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px; 
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.img-wrap-square img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    padding: 25px; 
    box-sizing: border-box;
    transition: transform 0.6s ease;
}

.product-card:hover .img-wrap-square {
    border-color: rgba(134, 128, 128, 0.9); 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.product-card:hover .img-wrap-square img {
    transform: scale(1.08); 
}

/* Product Typography */
.product-info {
    width: 240px;
    text-align: center;
    margin-top: 20px;
}

.product-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: #ffffff;
    margin-bottom: 6px;
    text-shadow: 1px 2px 4px rgba(0,0,0,0.2);
}

.product-details {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem; 
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 2px; 
    margin-bottom: 10px;
}

.product-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

/* ==================================================
   BUTTONS
================================================== */
#important {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 60px;
}

.impbutton {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 110px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    font-size: 0.85rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #ffffff;
    background-color: rgba(151, 119, 161, 0.4); 
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.impbutton:hover {
    border-color: #ffffff;
    background-color: rgba(151, 119, 161, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ==================================================
   MOBILE RESPONSIVENESS
================================================== */
@media (max-width: 768px) {
    .glass-banner {
        padding: 40px 0 30px 0;
    }

    .page-title {
        font-size: 2.8rem;
    }

    .page-subtitle {
        font-size: 0.8rem;
        letter-spacing: 2px;
    }

    /* FIXES THE MOBILE SCROLL BUG WITHOUT BREAKING DESKTOP */
    .section-header {
        width: 90%;
        max-width: 100%;
        margin: 20px 0 30px 0;
    }

    .section-header h2 {
        font-size: 1.4rem;
        transform: none; /* Keeps text inside bounds naturally on mobile */
    }

    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        width: 95%;
    }

    .img-wrap-square {
        width: 160px;
        height: 160px;
    }

    .img-wrap-square img {
        padding: 15px; 
    }

    .product-info {
        width: 150px;
    }

    .product-title {
        font-size: 1.2rem;
    }

    .product-details {
        font-size: 0.55rem;
        letter-spacing: 1px;
    }

    .product-price {
        font-size: 0.95rem;
    }
}