/* ANA KAPSAYICI */
.main-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.slide-wrapper {
    display: flex;
    /* gap: 24px; */
    width: 100%;
    background-color: #f6f6f6;
    border-radius: 20px;
}

/* SOL TARAFTAKİ HERO KART */
.hero-card {
    flex: 1.25;
    display: flex;
    background-color: #0d73ba;
    border-radius: 16px;
    overflow: hidden;
    min-height: 480px;
    position: relative;
}

/* SABİT SOL METİN (Artık Sadece Hero Kartın Üzerinde Çakılı) */
.fixed-overlay-text {
    position: absolute;
    top: 100px;
    left: 30px;
    transform: translateY(-50%);
    width: calc(100% - 40px);
    z-index: 10;
    color: #ffffff;
    font-size: 1.5rem;
    line-height: 1.4;
    font-weight: 500;
    pointer-events: none;
}

.fixed-overlay-text span {
    position: relative;
}

.fixed-overlay-text span::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #e63946;
}

/* DİNAMİK ARKA PLAN GÖRSELİ KAPSAYICISI */
.hero-bg-container {
    flex: 1.1;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    display: none;
    /* animation: fadeLeft 0.5s ease; */
}

.hero-bg.active {
    display: block
}

.hero-bg-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

/* DİNAMİK SAĞ PANEL (Kategori Başlığı & Butonlar) */
.hero-panel {
    flex: 0.9;
    background-color: #0d73ba;
    color: #fff;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
    overflow: hidden;
}

.panel-content {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    overflow: hidden;
    /* animation: fadeLeft 0.5s ease; */
}

.panel-content.active {
    display: flex;
}

.panel-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    margin-bottom: 40px;
}

.panel-top h3 {
    font-size: 30px;
    font-weight: 700;
    margin: 0;
}

.nav-arrows {
    display: flex;
    gap: 12px;
}

.arrow-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    opacity: 0.7;
    transition: transform 0.2s, opacity 0.2s;
}

.arrow-btn:hover {
    opacity: 1;
    transform: scale(1.2);
}

.panel-bottom {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.panel-bottom span {
    font-size: 18px;
    color: #7fa8d8;
}

.icon-group {
    display: none;
    gap: 8px;
}

.icon-box {
    width: 20px;
    height: 28px;
    border: 2px solid #7fa8d8;
    border-radius: 4px;
}

.icon-box.small {
    width: 14px;
}

.icon-box.circle {
    border-radius: 50%;
}

/* SAĞ TARAFTAKİ ÜRÜNLER KARTI (Dinamik Değişen) */
.products-card-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    background-color: #f6f6f6;
    padding: 24px;
    border-radius: 0 20px 20px 0;
}

.products-card {
    display: none;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    overflow: hidden;
    /* animation: fadeLeft 0.5s ease; */
}

.products-card.active {
    display: flex;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #666;
}

.btn-all {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #0066ff;
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.btn-all span {
    background: #0066ff;
    color: #fff;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.75rem;
    width: 32px;
    text-align: center;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    flex: 1;
}

.product-item {
    position: relative;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    height: 235px;
    overflow: hidden;
    transition: all .5s ease;
}

.product-item:hover {
    border-color: #cc1d1d
}

.product-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: left 0.75s ease;
    pointer-events: none;
    z-index: 1;
}

.product-item:hover::before {
    left: 125%;
}

.product-item .img-wrapper {
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-item .img-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transform: scale(1);
    transition: all .5s ease;
}

.product-item:hover .img-wrapper img {
    transform: scale(1.1);
}

.product-item .code {
    font-size: 0.75rem;
    color: #a0a0a0;
    margin-top: 8px;
    display: block;
}

.product-item h4 {
    font-size: 0.95rem;
    color: #111;
    font-weight: 600;
    margin: 4px 0 0 0;
}

.fade-left {
    animation: fadeLeft 2s ease forwards;
}

.fade-right {
    animation: fadeRight 2s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeRight {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobil / Tablet Uyumu */
@media (max-width: 992px) {
    .slide-wrapper {
        flex-direction: column;
    }

    .fixed-overlay-text {
        position: static;
        transform: none;
        width: 100%;
        padding: 20px;
        color: #fff;
    }

    .hero-card {
        flex-direction: column;
    }

    .hero-panel {
        flex: 0;
    }
    .panel-top {
        display: none;
    }
    .panel-bottom {
        margin-top: 10px;
    }
}