﻿.products-page {
    width: 90%;
    margin: auto;
    display: flex;
    gap: 40px;
    padding: 60px 0;
}

/* Sidebar */

.sidebar {
    width: 280px;
}

.sidebar-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
}

.category-list {
    list-style: none;
    padding: 0;
}

    .category-list li {
        margin-bottom: 20px;
    }

    .category-list a {
        text-decoration: none;
        color: #444;
        transition: .3s;
    }

        .category-list a:hover {
            color: #85A541;
        }

/* Product */

.product-area {
    flex: 1;
}

.product-title {
    margin-bottom: 40px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(250px,1fr));
    gap: 30px;
}
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,.1);
    transition: .4s;
}

    .product-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(0,0,0,.2);
    }

.product-image {
    overflow: hidden;
}

    .product-image img {
        width: 100%;
        height: 280px;
        object-fit: cover;
        transition: .5s;
    }

.product-card:hover img {
    transform: scale(1.08);
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}

.product-description {
    color: #666;
    min-height: 50px;
    margin-bottom: 20px;
}

.product-price {
    font-size: 24px;
    color: #85A541;
    font-weight: bold;
    margin-bottom: 20px;
}

.product-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.buy-btn {
    background: #85A541;
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 8px;
    transition: .3s;
}

    .buy-btn:hover {
        background: #6f8b36;
        color: white;
    }

.cart-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background: #f5f5f5;
    font-size: 20px;
    transition: .3s;
}

    .cart-btn:hover {
        background: #85A541;
        color: white;
    }
.category-card {
    width: 320px;
    height:300px;
    border-radius: 15px;
    overflow: hidden;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,.1);
}
.category-card img {
    width: 100%;
    height: auto;
    display: block;
}