/* ============================================================
   Ah Product Section — Category Grid 4 (Landscape Overlay)
   ============================================================ */

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

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

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

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

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

/* Grid */
.ahcat4-grid {
    display: grid;
    grid-template-columns: repeat( var(--ahcat4-cols, 3), minmax(0, 1fr) );
    gap: 8px;
    width: 100%;
    min-width: 0;
}

/* Card */
.ahcat4-card {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 3;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(0,0,0,.1);
    transition: box-shadow .5s ease;
}
.ahcat4-card:hover {
    box-shadow: 0 16px 40px rgba(0,0,0,.22);
}

/* Background image */
.ahcat4-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform .7s ease-out;
    z-index: 1;
}
.ahcat4-card:hover .ahcat4-bg {
    transform: scale(1.05);
}

/* Overlay */
.ahcat4-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.30);
    transition: background .3s ease, backdrop-filter .3s ease;
    z-index: 2;
}
.ahcat4-card:hover .ahcat4-overlay {
    background: rgba(25,0,83,.60);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Label */
.ahcat4-label-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 32px;
    z-index: 3;
}
.ahcat4-label {
    background: rgba(25,0,83,.90);
    padding: 8px 26px;
    transition: background .3s ease;
}
.ahcat4-card:hover .ahcat4-label {
    background: rgba(46,14,126,.95);
}
.ahcat4-label span {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-family: inherit;
}

/* Responsive */
@media (max-width: 900px) {
    .ahcat4-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 768px) {
    .ahcat4-container { padding: 0 5px; }
}
@media (max-width: 480px) {
    .ahcat4-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .ahcat4-label span { font-size: 15px; }
}
