.owl-item .item .gallery-item {
    border-radius: 15px;
    overflow: hidden;
}

.product-carousel .owl-stage-outer {
    overflow: hidden;
}

.product-carousel .item.carphotos-all {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
    max-height: 420px;
}

.product-carousel .item.carphotos-all .gallery-item {
    display: block;
    width: 100%;
    height: 100%;
}

.product-carousel .item.carphotos-all img {
    width: 100% !important;
    object-fit: fill;
    object-position: center;
    display: block;
    max-width: none !important;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-item a {
    color: var(--primary-color);
}

.icon-box {
    padding: 0.5rem;
    border-radius: 0.5rem;
    display: flex;
    color: var(--primary-color);
}

.carproduct-title {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    padding: 1rem;
    overflow-x: auto;
}

.product-info .product-title {
    border: none;
    margin-bottom: 0;
}

.info-content p {
    margin: 0;
    color: black;
}

.info-content span {
    color: black;
}

.info-content {
    font-size: 16px;
}

.merg-twodiv {
    display: flex;
    align-items: end;
    /* justify-content: space-between; */
    justify-content: end;
    width: 100%;
}

.merg-twodiv-btn-parent {
    width: 50%;
    align-items: start;
    display: flex;
    justify-content: end;
}

@media (max-width: 468px) {
    .merg-twodiv {
        flex-direction: column;
        align-items: start;
        gap: 1.5rem;
    }

    .btn-primary-cm {
        font-size: 13px;
    }

    .merg-twodiv-btn-parent {
        width: 100%;
        justify-content: start;
    }
}

.info-content a {
    text-decoration: none;
    color: black;
    transition:
        filter 220ms ease,
        color 220ms ease;
}

.info-content a:hover,
.info-content a:focus-visible {
    background: linear-gradient(90deg, var(--primary-color), #06b6d4, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 6px 14px rgba(59, 130, 246, 0.35));
}

.swiper {
    position: relative;
    overflow: hidden;
}

.swiper-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
}

.swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
}

.bama-gallery {
    width: 100%;
    /* max-width: 600px; */
}

.bama-main-swiper {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 3 / 2;
    /* 600x400 */
    border-radius: 14px;
    overflow: hidden;
    background: #f3f3f3;
    position: relative;
}

.bama-media {
    width: 100%;
    height: 100%;
}

.bama-media img {
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
    object-fit: contain;
    display: block;
    cursor: zoom-in;
    user-select: none;
    -webkit-user-drag: none;
}

/* ناوبری روی اسلایدر صفحه */
.bama-main-swiper .swiper-button-next,
.bama-main-swiper .swiper-button-prev {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    top: 50%;
    transform: translateY(-50%);
}

.bama-main-swiper .swiper-button-next::after {
    font-size: 26px;
    line-height: 42px;
    position: absolute;
    left: 14px;
}

.bama-main-swiper .swiper-button-prev::after {
    font-size: 26px;
    line-height: 42px;
    position: absolute;
    right: 14px;
}

.bama-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
}

.bama-lightbox.is-open {
    display: block;
}

.bama-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.bama-lightbox__dialog {
    position: relative;
    width: min(1100px, calc(100% - 32px));
    height: min(86vh, 780px);
    margin: 16px auto;
    border-radius: 16px;
    overflow: hidden;

    top: 50%;
    transform: translateY(-50%);
}

.bama-lightbox__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 0;
    background: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    font-size: 26px;
    line-height: 40px;
}

.bama-lightbox__body {
    width: 100%;
    height: 100%;
    padding: 12px;
}

.bama-modal-swiper {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
}

.bama-modal-media {
    width: 100%;
    height: 100%;
}

.bama-modal-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.bama-modal-swiper .swiper-button-next,
.bama-modal-swiper .swiper-button-prev {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    top: 50%;
    transform: translateY(-50%);
}

.bama-modal-swiper .swiper-button-next::after {
    font-size: 26px;
    line-height: 42px;
    position: absolute;
    left: 14px;
}

.bama-modal-swiper .swiper-button-prev::after {
    font-size: 26px;
    line-height: 42px;
    position: absolute;
    right: 14px;
}

.bg-showswiper-btn {
    background: transparent;
    box-shadow: none;
}

.car-access-notice {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 14px 16px;

    background: color-mix(in srgb, var(--primary-color) 7%, #ffffff);

    border: 1px solid color-mix(in srgb, var(--primary-color) 18%, #ffffff);

    border-radius: 14px;
}

.car-access-notice__icon {
    width: 44px;
    height: 44px;

    flex: 0 0 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    color: var(--primary-color);

    background: color-mix(in srgb, var(--primary-color) 12%, #ffffff);
}

.car-access-notice__icon i {
    font-size: 23px;
}

.car-access-notice__content {
    min-width: 0;
    flex: 1;
}

.car-access-notice__title {
    display: block;

    margin-bottom: 4px;

    font-size: 14px;
    font-weight: 600;

    color: #1e293b;
}

.car-access-notice__content p {
    margin: 0;

    font-size: 13px;
    font-weight: 400;
    line-height: 1.8;

    color: #64748b;
}

.car-access-notice__action {
    flex-shrink: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;

    min-height: 38px;

    padding: 7px 12px;

    border-radius: 10px;

    background: var(--primary-color);
    color: #ffffff !important;

    font-size: 12px;
    font-weight: 500;

    text-decoration: none !important;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.car-access-notice__action i {
    font-size: 18px;
}

.car-access-notice__action:hover {
    color: #ffffff !important;

    transform: translateY(-1px);

    box-shadow: 0 6px 16px
        color-mix(in srgb, var(--primary-color) 24%, transparent);
}

/* Mobile */
@media (max-width: 576px) {
    .car-access-notice {
        align-items: flex-start;
        flex-wrap: wrap;

        padding: 13px;
        gap: 10px;
    }

    .car-access-notice__icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .car-access-notice__icon i {
        font-size: 21px;
    }

    .car-access-notice__content {
        width: calc(100% - 50px);
    }

    .car-access-notice__title {
        font-size: 13px;
    }

    .car-access-notice__content p {
        font-size: 12px;
        line-height: 1.7;
    }

    .car-access-notice__action {
        width: 100%;
        min-height: 40px;

        margin-top: 2px;

        font-size: 12px;
    }
}
