.a4w-home-category {
    background-color: transparent;
    padding: 80px 0;
    text-align: center;
    width: 100% !important;
    overflow: hidden;
}

.a4w-home-category__subtitle {
    font-size: var(--font-size-small);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.a4w-home-category__title {
    font-size: var(--font-size-h2);
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 60px;
}

.a4w-home-category__grid {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 50px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    flex-wrap: wrap;
}

@media (min-width: 1200px) {
    .a4w-home-category__grid {
        flex-wrap: nowrap;
    }
}

.a4w-home-category__item {
    position: relative;
    overflow: visible;
    border-radius: 0;
    background-color: #FFF5FB;
    transition: transform 0.3s ease;
    padding: 20px;
}

.a4w-home-category__item:hover {
    transform: translateY(-5px);
}

.a4w-home-category__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.a4w-home-category__image-wrapper {
    width: 100%;
    height: 250px;
    overflow: visible;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.a4w-home-category__image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.a4w-home-category__name {
    margin-top: 20px;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-color);
    background: transparent;
    text-align: center;
    border: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.a4w-home-category__item:hover .a4w-home-category__name {
    color: var(--primary-color);
}

.a4w-home-category__button-wrapper {
    margin-top: 40px;
}

.a4w-home-category__button-wrapper .btn {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-color);
    text-decoration: none;
    font-size: var(--font-size-small);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.a4w-home-category__button-wrapper .btn:hover {
    background: var(--text-color);
    color: var(--background-color);
}

/* Swiper Carousel styles */
.a4w-home-category__carousel-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto 00px;
    padding: 0 0px;
    box-sizing: border-box;
}

.a4w-home-category__swiper {
    overflow: hidden;
    width: 100%;
}

.a4w-home-category__swiper .swiper-wrapper {
    align-items: flex-end;
}

.a4w-home-category__swiper .swiper-slide {
    height: auto;
}

.a4w-home-category__nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
    padding: 0 10px;
}

.a4w-home-category__prev,
.a4w-home-category__next {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    font-size: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.a4w-home-category__prev:hover,
.a4w-home-category__next:hover {
    background: #000;
    transform: scale(1.1);
}

@media (max-width: 1200px) {
    .a4w-home-category__grid {
        gap: 20px;
    }

    .a4w-home-category__image-wrapper {
        height: 200px;
    }
}

@media (max-width: 991px) {
    .a4w-home-category__carousel-wrapper {
        padding: 0 50px;
    }

    .a4w-home-category__image-wrapper {
        height: 180px;
        padding: 15px;
    }
}

@media (max-width: 767px) {
    .a4w-home-category {
        padding: 50px 0;
    }

    .a4w-home-category__title {
        font-size: var(--font-size-xl);
        margin-bottom: 40px;
        padding: 0 15px;
    }

    .a4w-home-category__subtitle {
        padding: 0 15px;
    }

    .a4w-home-category__grid {
        gap: 15px;
        justify-content: center;
        padding: 0 15px;
    }

    .a4w-home-category__item {
        padding: 15px;
    }

    .a4w-home-category__image-wrapper {
        height: 180px;
        padding: 10px;
    }

    .a4w-home-category__name {
        white-space: normal;
        font-size: 11px;
        letter-spacing: 1px;
        margin-top: 12px;
    }

    .a4w-home-category__carousel-wrapper {
        padding: 0 40px;
    }

    .a4w-home-category__prev,
    .a4w-home-category__next {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .a4w-home-category__button-wrapper {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .a4w-home-category {
        padding: 40px 0;
    }

    .a4w-home-category__title {
        margin-bottom: 30px;
    }

    .a4w-home-category__carousel-wrapper {
        padding: 0 25px;
    }

    .a4w-home-category__image-wrapper {
        height: 160px;
    }

    .a4w-home-category__name {
        font-size: 10px;
        letter-spacing: 0.5px;
        margin-top: 10px;
    }

    .a4w-home-category__prev,
    .a4w-home-category__next {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
}
