* {
    margin: 0;
    padding: 0;
    font-family: 'vazir';
}

.contain {
    padding: 40px;
    background-color: #f5f6f8;
}

/* هدر و دسته‌بندی‌ها */
.hea {
    padding: 15px;
    background: #ffffff;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 15px;
    border: 5px solid #777;
}

.hea .h2-products {
    font-size: 2.2em;
    color: #333333;
    font-weight: bold;
    margin-bottom: 20px;
}

/* دکمه‌های دسته‌بندی */
.category-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cat-btn {
    padding: 10px 25px;
    border: 2px solid #777;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #555555;
}

.cat-btn:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

.cat-btn.active {
    background: #777;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

/* چیدمان محصولات */
.products-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.product-card {
    border: 5px solid #777;
    /* box-shadow: 0 5px 15px #dbdbdb; */
    background-color: #dbdbdb;
    border-radius: 15px;
    padding: 30px 20px 20px;
    text-align: center;
    flex: 1 1 300px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px #dbdbdb;
}

/* مخفی‌سازی */
.hide {
    display: none;
}

.image-circle {
    width: 200px;
    height: 200px;
    background-color: #f1f1f1;
    border-radius: 50%;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 5px solid #777;
}

.image-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.total-image {
    color: #444444;
    margin-bottom: 20px;
}

/* دکمه‌ها */
.buttons {
    display: flex;
    justify-content: space-around;
    margin-top: auto;
}

.btn {
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: background-color 0.2s;
    flex-grow: 1;
    margin: 0 5px;
}

.btn-price,
.btn-spec {
    background-color: #555555;
    color: #ffffff;
}

.btn:hover {
    background-color: #777777;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .buttons {
        flex-direction: column;
    }
    .btn {
        margin-bottom: 10px;
    }
    .category-buttons {
        flex-direction: column;
    }
    .cat-btn {
        width: 100%;
    }
}
