
.category-buttons {
    margin: 40px auto;
    max-width: 1200px;
    text-align: center;
    padding:25px;
    border-radius:25px;
    border:1px solid #fff;
    border: 3px solid #ffef00;
    /* زرد داخلی */
    outline: 1.5px solid #ffef00;
    /* سبز خارجی */
    outline-offset: 5px;
    /* فاصله بینشون */

    /* سایه سبز + طلایی ملایم */
    box-shadow:
        0px 0px 35px 5px #29986f,
        0 20px 50px rgba(41, 152, 111, 0.3),
        0 0 0 1px rgba(41, 152, 111, 0.15),
        inset 0 3px 12px rgba(245, 233, 54, 0.3);

}

.category-title {
    font-family: 'Ahang4', sans-serif;
    font-size: 28px;
    margin-bottom: 20px;
    color: #fdffce;
}

.buttons-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.category-btn {
    position: relative;
    display: block;
    width: 250px;
    height: 150px;
    text-decoration: none;
    color: white;
    font-family: 'Ahang4', sans-serif;
    font-size: 18px;
    font-weight: bold;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* عکس ملایم با Opacity */
.category-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.4); /* پوشش نیمه شفاف مشکی روی عکس */
}

.category-btn .btn-text {
    position: relative;
    z-index: 2;
    line-height: 150px; /* وسط‌چین عمودی */
}

.category-btn:hover {
    transform: scale(1.05);
}

/* جایگذاری عکس‌های هر دکمه */

/* ریسپانسیو */
@media (max-width: 768px) {
    .buttons-wrapper {
        flex-direction: column;
        align-items: center;
    }
    .category-btn {
        width: 80%;
        height: 120px;
    }
    .category-buttons {
        margin: 40px 10px;
        padding:20px 0px; 
    }
}



.featured-categories{
    margin:40px 0;
}

.featured-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px;
}

.featured-card{
    position:relative;
    overflow:hidden;
    border-radius:18px;
    text-decoration:none;
    display:block;
    aspect-ratio:1364/912;
}

.featured-card img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:transform .5s ease;
}

.featured-overlay{
    position:absolute;
    inset:0;
    display:flex;
    align-items:flex-end;
    padding:18px;
    background:none !important;
}

.featured-title{
    color:#fff;
    font-size:1rem;
    font-weight:600;
    line-height:1.6;
    text-shadow:0 2px 10px rgba(0,0,0,.5);
}

.featured-card:hover img{
    transform:scale(1.08);
}

.featured-card:hover{
    transform:translateY(-3px);
}

.featured-card{
    transition:.3s ease;
}
@media (max-width:992px){

    .featured-grid{
        grid-template-columns:repeat(3,1fr);
    }

}
@media (max-width:768px){

    .featured-grid{
        grid-template-columns:repeat(2,1fr);
        gap:12px;
    }

    .featured-title{
        font-size:.8rem;
    }

}