.ap-main-carousel {
    border-radius: 18px;
    overflow: hidden;
    background: #f5f2ec;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.ap-main-carousel .carousel-inner {
    aspect-ratio: 16 / 7;
    min-height: 210px;
    max-height: 520px;
}

.ap-main-carousel .carousel-item,
.ap-main-carousel form {
    height: 100%;
}

.ap-carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: 0;
}

.ap-main-carousel .carousel-caption {
    left: 5%;
    right: auto;
    bottom: 8%;
    width: min(420px, 48%);
    text-align: left;
    padding: 22px 26px;
    border-radius: 16px;
    background: linear-gradient(90deg,
            rgba(0, 0, 0, 0.62),
            rgba(0, 0, 0, 0.38),
            rgba(0, 0, 0, 0.06));
}

.ap-main-carousel .carousel-caption h5 {
    font-size: clamp(24px, 3vw, 44px);
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.ap-main-carousel .carousel-caption p {
    font-size: clamp(14px, 1.6vw, 18px);
    color: #fff;
}


.ap-carousel-shop-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    min-width: 145px;

    min-height: 46px;

    padding: 10px 18px;

    border: none;

    border-radius: 999px;

    background: linear-gradient(135deg,
            #83b83c,
            #5f8f29);

    color: #fff;

    font-size: 16px;

    font-weight: 700;

    cursor: pointer;

    box-shadow: 0 8px 20px rgba(60, 100, 30, .35);

    transition: all .2s ease;
}

.ap-carousel-shop-btn:hover {

    transform: translateY(-2px);

    box-shadow: 0 12px 24px rgba(60, 100, 30, .45);
}

.ap-carousel-shop-btn i,
.ap-carousel-shop-btn span {

    pointer-events: none;
}

.ap-carousel-shop-btn i,
.ap-carousel-shop-btn span {
    pointer-events: none;
}

.ap-main-carousel .carousel-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            rgba(0, 0, 0, 0.25),
            rgba(0, 0, 0, 0.05),
            rgba(0, 0, 0, 0));
    pointer-events: none;
}

.ap-main-carousel .carousel-caption {

    left: 5%;
    right: auto;

    bottom: 10%;

    width: min(420px, 48%);

    text-align: left;

    padding: 22px 26px;

    border-radius: 18px;

    background: linear-gradient(135deg,
            rgba(20, 35, 24, .78),
            rgba(35, 70, 40, .52),
            rgba(255, 255, 255, .10));

    backdrop-filter: blur(6px);

    box-shadow: 0 12px 30px rgba(0, 0, 0, .22);

    z-index: 2;
}

.ap-main-carousel .carousel-caption h5 {

    color: #fff;

    font-size: 44px;

    font-weight: 700;

    margin-bottom: 12px;
}

.ap-main-carousel .carousel-caption p {

    color: #fff;

    font-size: 18px;

    margin-bottom: 12px;
}

@media (max-width:1200px) {

    .ap-main-carousel .carousel-caption {

        width: 50%;

        padding: 18px 22px;
    }

    .ap-main-carousel .carousel-caption h5 {

        font-size: 34px;
    }

    .ap-main-carousel .carousel-caption p {

        font-size: 16px;
    }
}

@media (max-width:992px) {

    .ap-main-carousel .carousel-caption {

        width: 46%;

        bottom: 8%;

        padding: 16px 18px;
    }

    .ap-main-carousel .carousel-caption h5 {

        font-size: 28px;

        margin-bottom: 8px;
    }

    .ap-main-carousel .carousel-caption p {

        font-size: 14px;
    }

    .ap-carousel-shop-btn {

        min-height: 40px;

        min-width: 130px;

        font-size: 14px;
    }
}

@media (max-width:768px) {

    .ap-main-carousel .carousel-caption {

        width: 42%;

        bottom: 7%;

        padding: 12px 14px;
    }

    .ap-main-carousel .carousel-caption h5 {

        font-size: 22px;

        margin-bottom: 6px;
    }

    .ap-main-carousel .carousel-caption p {

        display: none;
    }

    .ap-carousel-shop-btn {

        min-width: 115px;

        min-height: 36px;

        font-size: 13px;

        padding: 7px 12px;
    }
}

@media (max-width:576px) {

    .ap-main-carousel .carousel-caption {

        width: 38%;

        left: 4%;

        bottom: 6%;

        padding: 10px 12px;
    }

    .ap-main-carousel .carousel-caption h5 {

        font-size: 18px;

        margin-bottom: 4px;
    }

    .ap-carousel-shop-btn {

        min-width: unset;

        min-height: 32px;

        font-size: 12px;

        padding: 6px 10px;

        gap: 4px;
    }
}

@media (max-width:400px) {

    .ap-main-carousel .carousel-caption {

        width: 34%;

        padding: 8px;
    }

    .ap-main-carousel .carousel-caption h5 {

        font-size: 15px;

        line-height: 1.1;
    }

    .ap-carousel-shop-btn {

        font-size: 11px;

        padding: 5px 8px;
    }
}