/* ================================
   CATEGORY SECTION
================================= */
.category-section {
    padding: 60px 20px;
    background-color: var(--ivory);
}

/* ---------- HEADER ---------- */
.cat-header {
    text-align: center;
    margin-bottom: 44px;
}

.cat-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--eerie-black);
    line-height: 1.2;
    margin-bottom: 14px;
}

.section-title span {
    color: var(--accent);
}

.cat-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cat-divider-line {
    width: 48px;
    height: 2px;
    background: #e5e7eb;
    border-radius: 2px;
}

.cat-divider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

/* ---------- GRID ---------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    justify-items: stretch;
}

/* ---------- CARD ---------- */
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    border-radius: 16px;
    border: 1.5px solid #f0f0f0;
    padding: 24px 16px 20px;
    text-align: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #eff6ff 0%, var(--white) 60%);
    opacity: 0;
    transition: opacity 0.25s;
    border-radius: 16px;
}

.category-card:hover {
    border-color: #93c5fd;
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover .cat-img-wrap {
    background: #dbeafe;
}

.category-card:hover .cat-img-wrap img {
    transform: scale(1.15) rotate(6deg);
}

/* ---------- IMAGE WRAP ---------- */
.cat-img-wrap {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    transition: background 0.25s;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.cat-img-wrap img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* ---------- LABEL ---------- */
.category-card span {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gunmetal);
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

/* ---------- SHOW ALL CARD ---------- */
.category-card-all {
    border-style: dashed;
    border-color: #d1d5db;
    background: #fafafa;
}

.category-card-all::before {
    background: linear-gradient(135deg, #f0fdf4 0%, #fafafa 60%);
}

.category-card-all:hover {
    border-color: #86efac;
    box-shadow: 0 12px 28px rgba(22, 163, 74, 0.10);
}

.category-card-all:hover .cat-img-wrap {
    background: #dcfce7;
}

.category-card-all span {
    color: #15803d;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .category-section {
        padding: 40px 14px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
