/* =========================
   CATEGORY PAGE STYLE
========================= */

body{
    background:#f6f7fb;
    font-family: Arial, Helvetica, sans-serif;
}

.category-container{
max-width:1300px;
margin:auto;
padding:40px 20px;
}

.category-title{
margin-bottom:30px;
font-size:28px;
font-weight:600;
}

/* Page Title */

.category-title{
    font-size:28px;
    font-weight:600;
    margin:30px 0;
    color:#222;
    animation:fadeDown 0.6s ease;
}

/* Product Grid */

.product-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:30px;
}

/* Product Card */

.product-card{
    background:#fff;
    border-radius:10px;
    padding:18px;
    text-align:center;
    border:1px solid #eee;
    transition:all 0.3s ease;
    animation:fadeUp 0.6s ease;
}

/* Hover Animation */

.product-card:hover{
    transform:translateY(-8px);
    box-shadow:0 12px 25px rgba(0,0,0,0.1);
}

/* Product Image */
.product-img img {
    width: 100%;
    height: auto !important;   /* ✅ keeps full image ratio */
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

/* Image Zoom */

.product-card:hover img{
    transform:scale(1.1);
}

/* Product Name */

.product-card h4{
    font-size:15px;
    margin:10px 0;
    color:#333;
}

/* Price */

.price{
    font-size:18px;
    font-weight:700;
    color:#2e7d32;
    margin:8px 0;
}

/* Button */

.view-btn{
    display:inline-block;
    padding:8px 16px;
    background:#1976d2;
    color:#fff;
    text-decoration:none;
    border-radius:6px;
    font-size:14px;
    transition:all 0.3s;
}

.view-btn:hover{
    background:#0f4fa8;
}

/* =========================
   Animations
========================= */

@keyframes fadeUp{
    from{
        opacity:0;
        transform:translateY(20px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

@keyframes fadeDown{
    from{
        opacity:0;
        transform:translateY(-20px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* Responsive */

@media(max-width:768px){

.product-grid{
    grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
}

.product-img{
    height:150px;
}

}

