/* ============================================================
   Ah Product Section — Category Grid 7 (Editorial Hero)
   ============================================================ */

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

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

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

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

.ahcat7-title {
    font-size: 28px;
    font-weight: 700;
    color: #190053;
    margin-bottom: 32px;
}

/* Masonry grid */
.ahcat7-grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 24px;
    width: 100%;
    min-width: 0;
}

/* Side column */
.ahcat7-side {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ── Card base ── */
.ahcat7-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    display: block;
    text-decoration: none;
    transition: transform .4s cubic-bezier(.2,0,.2,1), box-shadow .4s ease;
    will-change: transform;
}
.ahcat7-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0,0,0,.12);
}

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

/* Overlay */
.ahcat7-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
}
.ahcat7-hero .ahcat7-overlay {
    background: linear-gradient(to top, rgba(25,0,83,.80) 0%, rgba(25,0,83,0) 60%);
}
.ahcat7-side-card .ahcat7-overlay {
    background: linear-gradient(to top, rgba(25,0,83,.60) 0%, transparent 60%);
}

/* Text */
.ahcat7-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    color: #fff;
}

/* Hero card */
.ahcat7-hero {
    height: 700px;
}
.ahcat7-hero .ahcat7-text {
    padding: 40px;
}
.ahcat7-hero .ahcat7-label {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.2;
    display: block;
    margin-bottom: 8px;
}
.ahcat7-hero .ahcat7-desc {
    font-size: 16px;
    color: rgba(255,255,255,.80);
    max-width: 420px;
    margin-bottom: 24px;
    line-height: 1.5;
}
.ahcat7-btn {
    display: inline-block;
    background: #fff;
    color: #190053;
    padding: 12px 32px;
    border-radius: 999px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: .02em;
    text-decoration: none;
    transition: background .2s ease, transform .1s ease;
}
.ahcat7-btn:hover {
    background: #e7deff;
}
.ahcat7-btn:active {
    transform: scale(.97);
}

/* Side cards */
.ahcat7-side-card {
    flex: 1;
    min-height: 320px;
}
.ahcat7-side-card .ahcat7-text {
    padding: 24px;
}
.ahcat7-side-card .ahcat7-label {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.2;
    display: block;
    margin-bottom: 4px;
}
.ahcat7-side-card .ahcat7-desc {
    font-size: 15px;
    color: rgba(255,255,255,.80);
}

/* Responsive */
@media (max-width: 900px) {
    .ahcat7-grid { grid-template-columns: 1fr; }
    .ahcat7-hero { height: 480px; }
    .ahcat7-side-card { min-height: 280px; }
    .ahcat7-hero .ahcat7-label { font-size: 36px; }
}
@media (max-width: 768px) {
    .ahcat7-container { padding: 0 5px; }
    .ahcat7-grid { gap: 12px; }
    .ahcat7-side { gap: 12px; }
}
@media (max-width: 480px) {
    .ahcat7-hero { height: 380px; }
    .ahcat7-hero .ahcat7-label { font-size: 28px; }
    .ahcat7-hero .ahcat7-text { padding: 24px; }
    .ahcat7-side-card .ahcat7-label { font-size: 24px; }
}
