/* Shared storefront contract for Design Management S1 sliders. */
section.hero-section {
    overflow: hidden;
}

/* Doğal görsel oranı yalnızca uygun S1 slaytlarında devreye girer.
   Görsel henüz yüklenmediyse mevcut oran korunur. */
section.hero-section .heroSwiper .hero-slide-card[data-hero-image-height="always"] {
    aspect-ratio: var(--hero-image-aspect, var(--hero-aspect-main, 4 / 3)) !important;
    height: auto;
}

@media (max-width: 768px) {
    section.hero-section .heroSwiper .hero-slide-card[data-hero-image-height="mobile"] {
        aspect-ratio: var(--hero-image-aspect, var(--hero-aspect-main, 4 / 3)) !important;
        height: auto;
    }
}

.heroSwiper .ratio-hero {
    aspect-ratio: 4 / 3;
}

@media (min-width: 576px) {
    .heroSwiper .ratio-hero {
        aspect-ratio: 5 / 3;
    }
}

@media (min-width: 768px) {
    .heroSwiper .ratio-hero {
        aspect-ratio: 1296 / 532;
    }
}

.heroSwiper:not(.swiper-initialized) {
    opacity: 0;
}

.heroSwiper.swiper-initialized {
    transition: opacity .35s ease;
}

.heroSwiper.swiper {
    width: 100%;
    margin-inline: auto;
    overflow: visible;
}

.heroSwiper .swiper-wrapper {
    overflow: visible;
}

.heroSwiper .swiper-slide {
    height: auto;
    box-sizing: border-box;
}

.heroSwiper .hero-slide-card {
    overflow: visible !important;
}

.heroSwiper .hero-slide-card .img-cover {
    border-radius: var(--hero-radius, 24px);
}

.heroSwiper .swiper-slide .ratio-hero,
.heroSwiper .swiper-slide .hero-slide-card {
    border-radius: var(--hero-radius, 24px);
    transition: opacity .4s ease;
}

.heroSwiper .swiper-slide:not(.swiper-slide-active) .ratio-hero,
.heroSwiper .swiper-slide:not(.swiper-slide-active) .hero-slide-card {
    opacity: .78;
}

.hero-section--full {
    --hero-radius: 0px;
}

.hero-section--full .heroSwiper .swiper-slide:not(.swiper-slide-active) .ratio-hero,
.hero-section--full .heroSwiper .swiper-slide:not(.swiper-slide-active) .hero-slide-card {
    opacity: 1;
}

.hero-slide-card .hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    z-index: 2;
    pointer-events: none;
}

.hero-slide-card .hero-solid-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    z-index: 0;
}

.hero-slot-swiper-wrap {
    position: relative;
    min-width: 0;
}

.hero-slot-swiper-wrap .heroSwiper--slot {
    height: 100%;
    min-width: 0;
    overflow: hidden !important;
    isolation: isolate;
    border-radius: var(--hero-radius, 12px);
}

.hero-section--grid .hero-group-grid {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    margin: 0;
    row-gap: var(--hero-gap, 12px);
}

.hero-section--grid .hero-group-grid > .hero-group-main,
.hero-section--grid .hero-group-grid > .hero-group-side {
    min-width: 0;
    margin-top: 0;
    padding: 0;
}

.hero-section--grid .hero-group-side {
    gap: var(--hero-gap-effective, var(--hero-gap, 12px)) !important;
}

.hero-nav-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1.5px solid #f2f2f2;
    border-radius: 50%;
    background: #fff;
    color: #111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.hero-nav-btn i,
.hero-nav-btn i::before {
    display: block;
    width: auto;
    height: auto;
    overflow: visible;
    font-size: 18px;
    line-height: 1;
}

.hero-nav-btn.swiper-button-disabled {
    opacity: .5;
    cursor: default;
    pointer-events: none;
}

.hero-nav-prev,
.hero-nav-next,
.hero-nav-btn--slot {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.hero-nav-prev {
    left: 16px;
}

.hero-nav-next {
    right: 16px;
}

.hero-nav-btn--slot {
    z-index: 3;
}

.hero-nav-btn--slot.hero-nav-prev {
    left: 10px;
}

.hero-nav-btn--slot.hero-nav-next {
    right: 10px;
}

.hero-group-side .hero-nav-btn--slot.hero-nav-prev {
    left: 6px;
}

.hero-group-side .hero-nav-btn--slot.hero-nav-next {
    right: 6px;
}

.hero-nav-btn.hero-arrow--minimal {
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: scale(1.35);
}

.hero-nav-prev.hero-arrow-pos--outside {
    left: -8px;
}

.hero-nav-next.hero-arrow-pos--outside {
    right: -8px;
}

.hero-nav-row {
    padding-inline: 4px;
    margin-top: 4px !important;
}

.hero-loading-bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, .3);
    z-index: 20;
    pointer-events: none;
}

.hero-loading-bar--top {
    top: 0;
}

.hero-loading-bar--bottom {
    bottom: 0;
}

.hero-loading-bar > span {
    display: block;
    width: 0;
    height: 100%;
    background: #fff;
    transition: width .1s linear;
}

.hero-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.hero-dots .hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .25);
    cursor: pointer;
}

.hero-dots .hero-dot.active {
    background: #6b7280;
}

@media (min-width: 768px) {
    .hero-nav-btn {
        width: 40px;
        height: 40px;
    }

    .hero-nav-prev {
        left: 24px;
    }

    .hero-nav-next {
        right: 24px;
    }
}

@media (min-width: 1200px) {
    .hero-nav-btn {
        width: 46px;
        height: 46px;
    }
}

@media (min-width: 1400px) {
    .hero-nav-btn {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 575px) {
    .hero-nav-prev,
    .hero-nav-next,
    .hero-nav-row {
        display: none !important;
    }
}

/* Bağımsız içerik görseli: fotoğraf/video/degrade üstünde, metinlerin altında. */
.hero-slide-card .hero-overlay-image {
    position: absolute;
    z-index: 3;
    pointer-events: none;
}
.hero-slide-card .hero-overlay-image > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    user-select: none;
}

/* Yeni ölçü modlarında kutuyu medya/manuel oran belirler; eski şablonlar etkilenmez. */
section.dm-media-frames .dm-bx-row,
section.dm-media-frames .dm-bx-col,
section.dm-media-frames .dm-bx-cell,
section.dm-media-frames .hero-group-grid,
section.dm-media-frames .hero-group-main,
section.dm-media-frames .hero-group-side,
section.dm-media-frames .hero-group-cell,
section.dm-media-frames .hero-slot-swiper-wrap,
section.dm-media-frames .heroSwiper,
section.dm-media-frames .swiper-slide {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    align-self: start;
}
section.dm-media-frames .dm-bx-col { grid-auto-rows:auto; align-content:start; }
section.dm-media-frames .hero-group-side { justify-content:flex-start; }
section.dm-media-frames .hero-group-cell { width:100%; flex:0 0 auto !important; }
section.dm-media-frames .swiper-wrapper { align-items:flex-start; }
section.dm-media-frames .hero-slide-card[data-frame-mode] { width:100%; }

/* Ölçekleme seçimi temanın daha güçlü varsayılan cover kuralını ezer. */
.hero-slide-card .hero-media-box :is(img.img-cover, video.img-cover) {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    object-fit: cover;
    object-position: center;
}
.hero-slide-card .hero-media-box :is(img.img-cover, video.img-cover).hero-media--contain {
    object-fit: contain;
}
.hero-slide-card .hero-media-box :is(img.img-cover, video.img-cover).hero-media--stretch {
    object-fit: fill;
}
.hero-slide-card.hero-slide-card--transparent {
    background-color: transparent !important;
}
.heroSwiper .hero-slide-card.hero-slide-card--transparent::after {
    background: none !important;
}

/* Eski grid kuralları yan alanlara height:100%!important veriyordu. */
section.hero-section.dm-media-frames .hero-group-grid .hero-group-side :is(.hero-slot-swiper-wrap, .heroSwiper, .swiper-wrapper, .swiper-slide),
section.hero-section.dm-media-frames .hero-group-grid :is(.hero-group-main, .hero-group-side) {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}
section.hero-section .hero-slide-card[data-frame-mode],
section.hero-section .hero-slide-card[data-hero-image-height],
section.hero-section.hero-section--responsive-h .hero-slide-card {
    min-height: 0;
    max-height: none;
}
