:root {
    --primary-font: 'Vazirmatn', sans-serif;
    --secondary-font: 'Playfair Display', serif;
    --primary-color: #333;
    --secondary-color: #f4f4f4;
    --accent-color: #C5BBAE;
}

/* ================== PAGE LAYOUT ================== */
.page-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.breadcrumbs {
    padding: 1rem 0;
    color: #888;
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-header {
    text-align: center;
    margin: 2rem 0 3rem;
}

.page-header h1 {
    font-family: var(--secondary-font);
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    color: #666;
}

/* ================== CATEGORY GRID LAYOUT ================== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* ================== CATEGORY CARD DESIGN ================== */
.category-card {
    display: block;
    text-decoration: none;
    border-radius: 8px;
    background-color: #fff;
    overflow: hidden;
    border: 1px solid #eee;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.category-card-image {
    width: 100%;
    /* CHANGED: From 4 / 3 to make the image taller and more dominant */
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover .category-card-image img {
    transform: scale(1.05);
}

.category-card-content {
    color: var(--primary-color);
    /* CHANGED: Reduced padding for a more compact look */
    padding: 1rem;
    text-align: center;
}

.category-card-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.category-card-content span {
    font-size: 0.9rem;
    color: #777;
}


/* ================== RESPONSIVE STYLES ================== */
@media (max-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-container {
        padding: 0 1rem;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }
}