/* ============================================================
   Ah Product Section — Category Grid 9
   ============================================================ */

.elementor-widget-ah_category_grid_9 {
    flex-shrink: 0 !important;
    height: auto !important;
    min-width: 0;
}

.elementor-widget-ah_category_grid_9 > .elementor-widget-container {
    height: auto !important;
    min-width: 0;
}

.ahcat9-wrap {
    padding: 10px 0;
    background: #fff;
    width: 100%;
}

.ahcat9-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 65px;
    font-family: inherit;
    box-sizing: border-box;
    min-width: 0;
}

.ahcat9-title {
    margin: 0 0 16px;
    font-size: 28px;
    font-weight: 700;
    color: #1c1b1b;
    text-align: center;
}

.ahcat9-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.ahcat9-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 4 / 5;
    text-decoration: none;
    background: #f3f3f3;
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
    transition: transform .35s ease, box-shadow .35s ease;
}

.ahcat9-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0,0,0,.14);
}

.ahcat9-image {
    position: absolute;
    inset: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: transform .7s ease;
}

.ahcat9-card:hover .ahcat9-image {
    transform: scale(1.06);
}

.ahcat9-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.60) 0%, rgba(0,0,0,.16) 34%, rgba(0,0,0,0) 62%);
    pointer-events: none;
}

.ahcat9-label {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: max-content;
    max-width: calc(100% - 28px);
    padding: 8px 14px;
    border-radius: 8px;
    background: #2f80ed;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    box-shadow: 0 6px 18px rgba(47,128,237,.35);
    z-index: 2;
}

@media (max-width: 768px) {
    .ahcat9-wrap { padding: 10px 0 24px; }
    .ahcat9-container { padding: 0 5px; }

    .ahcat9-title {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .ahcat9-grid {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: calc((100% - 6px) / 2);
        grid-template-columns: none;
        gap: 6px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
        scrollbar-width: none;
    }

    .ahcat9-grid::-webkit-scrollbar {
        display: none;
    }

    .ahcat9-card {
        scroll-snap-align: start;
    }
}

@media (max-width: 480px) {
    .ahcat9-label {
        font-size: 12px;
        padding: 7px 12px;
        bottom: 12px;
        max-width: calc(100% - 20px);
    }
}
