/* =========================================
   CATEGORIES & SUB-CATEGORIES STYLES
   ========================================= */

/* Reuse Header Style from other pages */
.page-header {
    background: #f4f4f4;
    padding: 40px 0;
    margin-bottom: 50px;
    text-align: center;
}
.page-header h1 { font-size: 2.5rem; margin-bottom: 10px; font-weight: 700; }
.breadcrumb { color: #666; font-size: 0.9rem; }
.breadcrumb a { color: var(--dark); font-weight: 600; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 5px; color: #ccc; }
.breadcrumb span.current { color: var(--primary); font-weight: 600; margin-left: 0; }

/* --- Grid Layout --- */
.category-section { margin-bottom: 80px; }

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* --- Category Card Design --- */
.cat-box {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    border: 1px solid #eee;
}

.cat-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

/* Image Area */
.cat-img {
    height: 250px;
    overflow: hidden;
    position: relative;
}
.cat-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s ease;
}
.cat-box:hover .cat-img img { transform: scale(1.1); }

/* Overlay Gradient (Optional for better text visibility) */
.cat-img::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
    opacity: 0; transition: 0.3s;
}
.cat-box:hover .cat-img::after { opacity: 1; }

/* Content Area */
.cat-content {
    padding: 20px;
    text-align: center;
    background: #fff;
    position: relative;
    z-index: 2;
}

.cat-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 5px;
}
.cat-box:hover .cat-content h3 { color: var(--primary); }

.cat-content p {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.explore-btn {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    text-transform: uppercase;
    display: inline-flex; align-items: center; gap: 8px;
    transition: 0.3s;
}
.cat-box:hover .explore-btn { color: var(--primary); gap: 12px; }

/* Responsive */
@media (max-width: 500px) {
    .category-grid { grid-template-columns: 1fr; }
    .cat-img { height: 200px; }
}