/* AZ Woo Categories Cards for Elementor */

.az-wcc-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.az-wcc-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    min-height: 420px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.az-wcc-card__link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.az-wcc-card__image {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: inherit;
    transform: scale(1.02);
    transition: transform 0.35s ease;
}

/* Основний оверлей з градієнтом знизу */
.az-wcc-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px 24px 28px 24px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(5,25,46,0.8) 65%);
    border-radius: inherit;
    box-sizing: border-box;
}

.az-wcc-card__content {
    max-width: 90%;
}

.az-wcc-card__title {
    margin: 0 0 8px 0;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
    color: #ffffff;
}

.az-wcc-card__subtitle {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #f3f4f6;
}

/* Кружечок зі стрілкою */
.az-wcc-card__arrow {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ff6b3d;
    opacity: 0;
    transform: translate3d(4px, -4px, 0);
    transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

.az-wcc-card__arrow svg {
    display: block;
}

/* Стан ховеру (як на першій картці на прикладі) */
.az-wcc-card:hover {
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.az-wcc-card:hover .az-wcc-card__image {
    transform: scale(1.06);
}

.az-wcc-card:hover .az-wcc-card__arrow {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* Маленький екран */
@media (max-width: 1024px) {
    .az-wcc-grid {
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .az-wcc-grid {
        gap: 16px;
    }
}
