/* ============================================================
   Ah Product Section — Category Grid 8 (Carousel Slider)
   ============================================================ */

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

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

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

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

/* Header */
.ahcat8-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
}
.ahcat8-title {
    font-size: 32px;
    font-weight: 700;
    color: #190053;
    letter-spacing: -.01em;
    line-height: 1.2;
}
.ahcat8-nav {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.ahcat8-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid #cac4d4;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #1c1b1b;
    transition: background .2s ease, color .2s ease;
    line-height: 1;
}
.ahcat8-nav-btn:hover {
    background: #190053;
    color: #fff;
    border-color: #190053;
}

/* Carousel track */
.ahcat8-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.ahcat8-track::-webkit-scrollbar { display: none; }

/* Card wrapper */
.ahcat8-item {
    flex: none;
    width: 280px;
    scroll-snap-align: start;
}

/* Card */
.ahcat8-card {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 1px solid #cac4d4;
    display: block;
    text-decoration: none;
    transition: box-shadow .5s ease, transform .5s ease;
}
.ahcat8-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,.12);
    transform: translateY(-8px);
}

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

/* Gradient overlay */
.ahcat8-overlay {
    position: absolute;
    inset-x: 0;
    bottom: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,.60) 0%, transparent 100%);
    z-index: 2;
}

/* Label */
.ahcat8-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    z-index: 3;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: .02em;
}

/* Below-card row */
.ahcat8-meta {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 4px;
    min-height: 24px;
}
.ahcat8-view-more {
    font-size: 12px;
    font-weight: 700;
    color: #190053;
    text-decoration: none;
    transition: text-decoration .2s;
}
.ahcat8-view-more:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .ahcat8-container { padding: 0 5px; }
    .ahcat8-title { font-size: 24px; }
    .ahcat8-item { width: 75vw; }
}
@media (max-width: 480px) {
    .ahcat8-item { width: 82vw; }
}
