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

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

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

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

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

.ahcat3-container > * {
    min-width: 0;
}

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

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

/* Card */
.ahcat3-card {
    display: block;
    height: auto;
    text-decoration: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    transition: box-shadow .3s ease, transform .3s ease;
    cursor: pointer;
}
.ahcat3-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.16);
    transform: translateY(-3px);
}

/* Image */
.ahcat3-img-wrap {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    position: relative;
    line-height: 0;
    font-size: 0;
}
.ahcat3-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: transform .6s ease;
    backface-visibility: hidden;
    transform: translateZ(0);
}
.ahcat3-card:hover .ahcat3-img {
    transform: translateZ(0) scale(1.06);
}

/* Label bar */
.ahcat3-label {
    background: #190053;
    padding: 6px 8px;
    text-align: center;
    transition: background .3s ease;
}
.ahcat3-card:hover .ahcat3-label {
    background: #2e0e7e;
}
.ahcat3-label span {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: .01em;
}

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