.gi-hero-slider .hero-products[hidden] { display: none !important; }
/* Banner kontrollerinin konumunu yalnızca banner kutusuna göre hesapla. */
.gi-hero-swiper { position: relative; }
.hero-products {
    position: absolute;
    top: var(--hero-y, 50%);
    left: var(--hero-x, 97%);
    right: auto;
    transform: translate(calc(0% - var(--hero-x, 97%)), calc(0% - var(--hero-y, 50%)));
    z-index: 4;
    width: var(--hero-width, 34%);
    padding: clamp(12px, 1.4vw, 24px) clamp(28px, 2.6vw, 44px);
    border-radius: clamp(22px, 2.5vw, 38px);
    background: #fff;
    box-shadow: 0 8px 30px rgba(31, 41, 55, .07);
}
.hero-products__track {
    display: flex;
    gap: clamp(12px, 1.4vw, 24px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}
.hero-products__track::-webkit-scrollbar { display: none; }
.hero-products__card {
    flex: 0 0 calc((100% - clamp(12px, 1.4vw, 24px)) / 2);
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 2px solid #ededed;
    border-radius: clamp(16px, 1.8vw, 28px);
    background: #fff;
    color: #4b5966;
    scroll-snap-align: start;
    text-decoration: none;
}
.hero-products__card:hover { border-color: #e71483; color: #4b5966; }
.hero-products__card:focus-visible, .hero-products__track:focus-visible, .hero-products__arrow:focus-visible { outline: 2px solid #e71483; outline-offset: -3px; }
.hero-products__image { width: 100%; aspect-ratio: 1; border-bottom: 1px solid #f4f4f4; }
.hero-products__image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hero-products__body { display: flex; flex-direction: column; padding: clamp(10px, 1vw, 18px); flex: 1; }
.hero-products__category { color: #969696; font-size: clamp(9px, .72vw, 12px); line-height: 1.4; margin-bottom: 7px; }
.hero-products__name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.2em;
    font-size: clamp(10px, .78vw, 14px);
    line-height: 1.6;
    letter-spacing: .3px;
    margin-bottom: 10px;
}
.hero-products__price { font-size: clamp(11px, .82vw, 15px); font-weight: 700; line-height: 1.45; margin-top: auto; }
.hero-products__stock { margin-top: 3px; color: #3d923f; font-size: clamp(10px, .78vw, 13px); line-height: 1.5; }
.hero-products__stock--empty { color: #df6382; }
.hero-products__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #151515;
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
}
.hero-products__arrow--prev { left: 8px; }
.hero-products__arrow--next { right: 8px; }
.hero-products__arrow:disabled { color: #c9c9c9; cursor: default; }
.hero-products[data-count="1"] .hero-products__track { justify-content: center; }
.hero-products[data-count="1"] .hero-products__arrow, .hero-products[data-count="2"] .hero-products__arrow { display: none; }
.gi-hero-swiper__nav { z-index: 6; }
/* Banner okları ürün kartlarının oklarından ayrı konumda tutulur. */
@media (min-width: 992px) {
    .gi-hero-slider.has-hero-products .gi-hero-swiper__nav { top: auto; bottom: 12px; transform: none; width: 34px; height: 34px; }
}
@media (max-width: 991.98px) {
    .gi-hero-slider { background: #fff; }
    /* Mobilde bannerın tamamını göster; 16:9 oranıyla kenarları kırpma. */
    .gi-hero-slider .gi-hero-slide img {
        width: 100%;
        height: auto;
        aspect-ratio: auto;
        object-fit: contain;
    }
    .hero-products {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        transform: none;
        width: calc(100% - 24px);
        max-width: 540px;
        margin: 12px auto 0;
        padding: 10px 22px;
        border-radius: 18px;
        border: 1px solid #f0f0f0;
        box-shadow: 0 4px 18px rgba(31, 41, 55, .04);
    }
    .hero-products__track { gap: 6px; }
    .hero-products__card { flex-basis: calc((100% - 18px) / 4); border-width: 1px; border-radius: 10px; }
    .hero-products__body { padding: 5px; }
    .hero-products__image { aspect-ratio: 1; }
    .hero-products__category { font-size: 8px; margin-bottom: 5px; }
    .hero-products__name { font-size: 10px; line-height: 1.4; min-height: 2.8em; margin-bottom: 6px; letter-spacing: 0; }
    .hero-products__price { font-size: 10px; }
    .hero-products__stock { font-size: 8px; }
    .hero-products[data-count="1"] .hero-products__track,
    .hero-products[data-count="2"] .hero-products__track,
    .hero-products[data-count="3"] .hero-products__track { justify-content: center; }
    .hero-products[data-count="3"] .hero-products__arrow,
    .hero-products[data-count="4"] .hero-products__arrow { display: none; }
    .hero-products__arrow { width: 24px; font-size: 30px; }
    .hero-products__arrow--prev { left: 2px; }
    .hero-products__arrow--next { right: 2px; }
}
