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

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

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

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

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

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

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

/* Card */
.ahcat1-card {
    cursor: pointer;
    text-decoration: none;
    display: block;
}

/* Image wrapper */
.ahcat1-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,.12);
    transition: box-shadow .5s ease, transform .5s ease;
}
.ahcat1-card:hover .ahcat1-img-wrap {
    box-shadow: 0 12px 32px rgba(0,0,0,.18);
    transform: translateY(-4px);
}
.ahcat1-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: transform .7s ease;
    backface-visibility: hidden;
}
.ahcat1-card:hover .ahcat1-img {
    transform: scale(1.10);
}
.ahcat1-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.18), transparent);
    pointer-events: none;
}

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

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