/* ===== Section ===== */

.categories-section {
    background: #fff7fa;
    border-radius: 30px;
    padding: 30px 0;
}

/* ===== Header ===== */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    padding: 0 16px;
}

.section-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
}

.section-header a {
    text-decoration: none;
    font-size: 14px;
    color: #ec4899;
}

/* ===== Desktop Grid ===== */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

/* ===== Card ===== */

.category-card {
    display: block;
    text-decoration: none;
    background: #f8f8f8;
    border: 1px solid #ececec;
    border-radius: 20px;
    overflow: hidden;
    transition: .25s;
    margin: 16px;
}

.category-card:hover {
    border-color: #ff9fcf;
    background: #fff;
}

/* ===== Image ===== */
.category-image {
    background: #fff;
}

.category-image img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 14px;
}

/* ===== Title ===== */
.category-title {
    padding: 12px 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #222;
}

/* ===== Mobile ===== */
@media (max-width:768px) {
    .categories-grid {
        display: flex;
        overflow-x: auto;
        padding-bottom: 6px;
        scrollbar-width: none;
    }

    .categories-grid::-webkit-scrollbar {
        display: none;
    }

    .category-card {
        flex: 0 0 105px;
        margin: 8px;
    }

    .category-title {
        font-size: 13px;
        padding: 10px;
    }

    .categories-section {
        margin: 30px 0 0 0;
        padding: 0;
    }
}