/* ============================================================
   Ah Product Section — Category Grid 5 (Bento Layout)
   ============================================================ */

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

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

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

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

.ahcat5-title {
    font-size: 28px;
    font-weight: 700;
    color: #1c1b1b;
    margin-bottom: 8px;
}

.ahcat5-subtitle {
    font-size: 15px;
    color: #484552;
    margin-bottom: 32px;
}

/* Bento grid */
.ahcat5-bento {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 5px;
    min-height: 700px;
    width: 100%;
    min-width: 0;
}

/* Right column */
.ahcat5-right {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    min-width: 0;
}

/* ── Card base ── */
.ahcat5-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,.1);
    transition: box-shadow .5s ease;
    text-decoration: none;
    display: block;
}
.ahcat5-card:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,.2);
}

/* Background image */
.ahcat5-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform .6s cubic-bezier(.22,1,.36,1);
    z-index: 1;
}
.ahcat5-card:hover .ahcat5-bg {
    transform: scale(1.05);
}

/* Overlay */
.ahcat5-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(25,0,83,.60) 0%, rgba(25,0,83,0) 50%);
    transition: background .3s ease;
    z-index: 2;
}
.ahcat5-card:hover .ahcat5-overlay {
    background: linear-gradient(to top, rgba(25,0,83,.80) 0%, rgba(25,0,83,.10) 70%);
}

/* Text */
.ahcat5-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
    z-index: 3;
}
.ahcat5-label {
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
}

/* Featured — large left card */
.ahcat5-featured {
    grid-row: 1 / -1; /* full height */
}
.ahcat5-featured .ahcat5-label {
    font-size: 32px;
    letter-spacing: -.01em;
}

/* Last item alone in a row → full width */
.ahcat5-right > .ahcat5-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

/* Wide card — same as regular (no full span) */
.ahcat5-wide .ahcat5-label {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: .02em;
}

/* Regular cards */
.ahcat5-regular .ahcat5-label {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: .02em;
}
.ahcat5-regular .ahcat5-text {
    padding: 24px;
}

/* Responsive */
@media (max-width: 900px) {
    .ahcat5-bento {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 5px;
    }
    .ahcat5-featured {
        height: 420px;
        grid-row: auto;
    }
    /* right: 2-col grid, last odd = full width */
    .ahcat5-right {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        gap: 5px;
    }
    .ahcat5-right > .ahcat5-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
    .ahcat5-regular,
    .ahcat5-wide { min-height: 200px; }
}
@media (max-width: 768px) {
    .ahcat5-container { padding: 0 5px; }
}
@media (max-width: 480px) {
    .ahcat5-featured { height: 300px; }
    .ahcat5-regular,
    .ahcat5-wide { min-height: 150px; }
    .ahcat5-text { padding: 16px; }
    .ahcat5-label { font-size: 14px; }
    .ahcat5-featured .ahcat5-label { font-size: 22px; }
}
