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

}
.product_container{            
    margin: 0rem;
    padding: 3rem 20px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.877);

}

.product_container h2{
    font-family: AileronThin;
    font-size: 56px;
    margin-bottom: 0;
    
}
.product_container h3{
    font-family: AileronThin;
    font-size: 56px;
    margin-bottom: 6rem;
}
.productCard_container{
    margin: 15px auto;
    width: fit-content;
    padding: 0 6rem;
    height: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-column-gap: 30px;
    grid-row-gap: 45px;
}
/* Container for the individual card */
.productCard {
    width: 280px;
    height: 520px;
    padding: 10px;
    background-color: rgba(248, 248, 248, 0.712);
    border-radius: 5px;
    box-shadow: 3px 7px 15px 0px rgba(166,166,166,1);
    
    /* --- NEW FLEXBOX LAYOUT --- */
    display: flex;
    flex-direction: column; /* Stack items vertically */
    justify-content: flex-start;
}

/* Image styling */
.cardImage {
    width: 100%;
    height: auto;
    max-height: 280px; /* Limit image height so text fits */
    object-fit: contain; /* Ensures image doesn't stretch */
    margin: 0 auto;
}

/* Data wrapper (Text + Button) */
.cardData {
    padding-top: 1rem;
    
    /* This makes the data area fill all remaining space */
    flex-grow: 1; 
    
    /* Make this internal area a flex column too */
    display: flex;
    flex-direction: column;
}

/* Text Styling */
.cardData .productNO {
    font-family: AileronReg;
    font-size: 16px;
    font-weight: 600;
}

.cardData .productInfo {
    padding-top: 5px;
    font-family: AileronReg;
    font-size: 16px;
    font-weight: 100;
    color: #555;
}

/* --- THE BUTTON STICKY FIX --- */
/* Selects the button inside cardData */
.cardData button {
    margin-top: auto; /* This magic command pushes the button to the bottom */
    width: 100%;
    padding: 8px 0;
    font-weight: bold;
}
.anchor_container {
    display: flex;
    justify-content: center;
    background-color: white;
    padding: 0.5rem 1rem;
    align-items: center;
    font-family: AileronReg;
    margin-top:50px;
}
.anchor_container li {
    list-style: none;
}
.anchor_container .anchor_tab {
    color: rgb(216, 216, 216);
    display: block;
    text-decoration: none;
    padding: 0.5rem 0.5rem;
    gap: 1rem;
    cursor: pointer;
    border-radius: 0.5rem;
    border-color: black;
}
.anchor_container .anchor_tab:hover{
    color: black;
}
@media only screen and (max-width: 500px) {
    .product_container .productCard_container{
        grid-template-columns: repeat(1, 1fr);
        padding: 0;
    }
}
@media only screen and (min-width: 501px) {
    .product_container .productCard_container{
        grid-template-columns: repeat(2, 1fr);
        padding: 0;
    }
}
@media only screen and (min-width: 1025px){
    .product_container .productCard_container{
        grid-template-columns: repeat(3, 1fr);
        padding: 0;
    }
}
@media only screen and (min-width: 1366px){
    .product_container .productCard_container{
        grid-template-columns: repeat(4, 1fr);
        grid-column-gap: 45px;
        grid-row-gap: 55px;
    }
}
/* --- PRODUCT PAGE CATEGORY GRID --- */
.category-grid-container {
    text-align: center;
    padding: 2rem 5%;
    margin-bottom: 4rem;
    background-color: #fff;
}

.category-grid-container h3 {
    font-family: 'AileronThin', sans-serif;
    font-size: 42px;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.cat-card {
    position: relative;
    height: 400px; /* Makes them tall and visible */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
}

.cat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.cat-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    transition: background 0.3s ease;
}

.cat-overlay h2 {
    font-family: 'AileronThin', sans-serif;
    font-size: 36px;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.cat-overlay span {
    font-family: 'AileronReg', sans-serif;
    font-size: 18px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    background: white;
    color: black;
    padding: 8px 20px;
    border-radius: 20px;
}

/* Hover Effects */
.cat-card:hover img {
    transform: scale(1.1);
}

.cat-card:hover .cat-overlay {
    background: rgba(0,0,0,0.5);
}

.cat-card:hover .cat-overlay span {
    opacity: 1;
    transform: translateY(0);
}
/* --- PRODUCT CARD ANIMATIONS --- */

/* 1. Define the Fade In Up Keyframe */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px); /* Start lower */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* End in place */
    }
}

/* 2. Base Card State */
.productCard {
    /* Existing styles remain... */
    
    /* Animation Setup */
    opacity: 0; /* Start hidden */
    animation: fadeInUp 0.6s cubic-bezier(0.2, 1, 0.4, 1) forwards; /* Run animation */
    
    /* Smooth transition for hover effects */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* Ensures zoomed image stays inside corners */
}

/* 3. Card Hover Effect (Lift & Shadow) */
.productCard:hover {
    transform: translateY(-8px); /* Moves up */
    box-shadow: 0 15px 30px rgba(0,0,0,0.15); /* Deeper shadow */
}

/* 4. Image Hover Effect (Subtle Zoom) */
.cardImage {
    transition: transform 0.5s ease;
}

.productCard:hover .cardImage {
    transform: scale(1.05); /* Zooms image by 5% */
}

/* 5. Button Hover Effect */
.custom-add-btn {
    transition: background-color 0.2s, transform 0.1s;
}

.custom-add-btn:active {
    transform: scale(0.98); /* Click press effect */
}