.hero-banner-section {
    width: 100%;
    position: relative;
    overflow: hidden;
    display: block;
    background-color: var(--renk-banner-arkaplan, #1a1a2e);
    margin-top: 108px !important; /* Navbar yüksekliği kadar margin */
    padding-top: 0;
    margin-bottom: 0;
    z-index: 1;
    aspect-ratio: 3 / 1; /* 3:1 oranı */
}

.hero-banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 1;
    max-width: 100%;
    height: auto;
}

/* Mobil ve tablette banner yanlarının görünmesi için */
@media (max-width: 992px) {
    .hero-banner-image {
        object-fit: contain;
        background-color: var(--renk-banner-arkaplan, #1a1a2e);
    }
}

/* Mobil cihazlarda banner oranı - 3:1 korunur */

/* Resim optimizasyonu */
img {
    max-width: 100%;
    height: auto;
}

.card-img-top {
    max-width: 100%;
    height: auto;
}

.kampanya-hikaye-resim {
    max-width: 100%;
    height: auto;
}

.hero-banner-overlay {
    display: none;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s infinite;
    display: block;
}

.scroll-down {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 24px;
    text-decoration: none;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.scroll-down:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(5px);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--renk-gradient-baslangic, #667eea) 0%, var(--renk-gradient-bitis, #764ba2) 100%);
    color: white;
}

.hero-section h1 {
    color: white;
}

.card {
    transition: none;
}

.card:hover {
    transform: none;
}

/* Sepet sayfasında card hover efektini kaldır */
.sepet-container .card {
    transition: none;
}

.sepet-container .card:hover {
    transform: none;
}

.navbar-brand {
    font-size: 1.5rem;
}

footer {
    margin-top: auto;
}

html {
    scroll-behavior: smooth;
    overflow-y: scroll; /* Her zaman scrollbar alanını rezerve et */
    scrollbar-gutter: stable; /* Scrollbar için alan ayır */
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--renk-body-arkaplan, #ffffff);
    overflow-x: hidden; /* Yatay scroll'u engelle */
    position: relative;
}

.navbar {
    position: relative;
    z-index: 1000;
}

.modern-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1030;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    color: #212529;
    overflow: visible; /* Dropdown menülerin görünmesi için */
}

.modern-navbar .container {
    overflow: visible !important;
    position: relative;
}

.modern-navbar .navbar-nav .nav-link {
    color: #212529 !important;
}

.modern-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.modern-navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 0.5rem 0;
}

.modern-navbar .navbar-brand {
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.modern-navbar.scrolled .navbar-brand {
    padding: 0.25rem 0;
}

.logo-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 8px;
    background: transparent;
    padding: 0;
}

.modern-navbar .logo-container {
    height: 76px;
}

.modern-navbar.scrolled .logo-container {
    height: 60px;
}

.logo-img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.logo-placeholder {
    font-size: 32px;
    color: #212529;
    transition: all 0.3s ease;
}

.modern-navbar.scrolled .logo-placeholder {
    font-size: 28px;
}


.modern-navbar .navbar-nav .nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.modern-navbar .navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #212529;
    transition: width 0.3s ease;
}

.modern-navbar .navbar-nav .nav-link:hover::before,
.modern-navbar .navbar-nav .nav-link.active::before {
    width: 80%;
}

.modern-navbar .navbar-nav .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.modern-navbar .navbar-nav .nav-link.active {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Dropdown menü düzeltmesi */
.modern-navbar .navbar-collapse {
    overflow: visible !important;
}

.modern-navbar .navbar-nav {
    overflow: visible !important;
}

.modern-navbar .dropdown {
    position: static; /* Navbar içinde dropdown için */
}

.modern-navbar .dropdown-menu {
    z-index: 1051 !important;
    position: absolute !important;
    margin-top: 0.5rem;
    top: 100%;
    left: auto;
    right: 0;
    transform: none !important;
}

.modern-navbar .dropdown-menu-end {
    right: 0 !important;
    left: auto !important;
    transform: none !important;
}

/* Dropdown toggle'ın tam altına hizala */
.modern-navbar .nav-item.dropdown {
    position: relative;
}

.modern-navbar .nav-item.dropdown .dropdown-menu {
    right: 0;
    left: auto;
    min-width: 200px;
}

/* Diğer sayfalarda navbar için padding */
body {
    padding-top: 76px;
}

.product-category-card {
    cursor: pointer;
    transition: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-category-card:hover {
    transform: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

.product-category-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.product-category-card .card-img-top {
    transition: none;
    flex-shrink: 0;
    aspect-ratio: 1/1;
    object-fit: cover;
    width: 100%;
}

.product-category-card:hover .card-img-top {
    transform: none;
}

.product-category-card .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Responsive ürün kartları - Kare resimler için aspect-ratio kullanılıyor */

/* Zengin metin içeriği için stil */
.urun-aciklama {
    line-height: 1.8;
}

.urun-aciklama p {
    margin-bottom: 1rem;
}

.urun-aciklama img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.urun-aciklama table {
    width: 100%;
    margin: 1rem 0;
    border-collapse: collapse;
}

.urun-aciklama table td,
.urun-aciklama table th {
    padding: 0.5rem;
    border: 1px solid #dee2e6;
}

.urun-aciklama ul,
.urun-aciklama ol {
    padding-left: 2rem;
    margin: 1rem 0;
}

.urun-aciklama a {
    color: var(--bs-primary, #0d6efd);
    text-decoration: none;
}

.urun-aciklama a:hover {
    text-decoration: underline;
}

.container {
    flex: 1;
    overflow-x: hidden;
}

.badge {
    font-size: 0.85rem;
}

.btn {
    border-radius: 8px;
}

.card {
    border-radius: 12px;
    border: none;
    background-color: var(--renk-card-arkaplan, #ffffff);
    box-shadow: 0 2px 10px var(--renk-card-golge, rgba(0,0,0,0.1));
}

.form-control, .form-select {
    border-radius: 8px;
}

.table {
    border-radius: 8px;
    overflow: hidden;
}

/* ============================================
   RESPONSIVE OPTIMIZASYON - PC, TABLET, MOBİL
   ============================================ */

/* Genel Responsive Ayarlar */
@media (max-width: 1200px) {
    /* Büyük ekranlar için */
    .container {
        max-width: 1140px;
    }
}

@media (max-width: 992px) {
    /* Tablet (landscape) */
    .container {
        max-width: 960px;
    }
    
    /* Navbar optimizasyonu */
    .modern-navbar .navbar-nav {
        padding: 1rem 0;
    }
    
    .modern-navbar .nav-link {
        padding: 0.75rem 1rem;
        margin: 0.25rem 0;
    }
    
    /* Hero banner tablet */
    .hero-banner-section {
        margin-top: 76px !important;
        aspect-ratio: 3 / 1;
    }
    
    /* Kategori butonları */
    .kategori-modern-container {
        gap: 10px;
        padding: 18px 0;
    }
    
    .kategori-modern-link {
        padding: 11px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    /* Tablet (portrait) ve küçük tabletler */
    .container {
        max-width: 720px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Navbar mobil */
    .modern-navbar {
        padding: 0.5rem 0;
    }
    
    .modern-navbar .logo-container {
        height: 60px;
    }
    
    .modern-navbar.scrolled .logo-container {
        height: 50px;
    }
    
    .modern-navbar .navbar-brand {
        font-size: 1.2rem;
    }
    
    .modern-navbar .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    /* Body padding mobil */
    body {
        padding-top: 60px;
    }
    
    /* Hero banner mobil */
    .hero-banner-section {
        margin-top: 60px !important;
        aspect-ratio: 3 / 1;
    }
    
    .hero-scroll-indicator {
        bottom: 20px;
    }
    
    .scroll-down {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    /* Kategori butonları mobil */
    .kategori-modern-container {
        gap: 8px;
        padding: 15px 0;
    }
    
    .kategori-modern-link {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    
    /* Card optimizasyonu */
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Tablo responsive */
    .table-responsive {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Butonlar mobil */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .btn-sm {
        padding: 0.35rem 0.75rem;
        font-size: 0.8rem;
    }
    
    /* Form elemanları */
    .form-control, .form-select {
        font-size: 16px; /* iOS zoom engelleme */
        padding: 0.6rem 0.75rem;
    }
    
    /* Grid sistem optimizasyonu */
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .row > * {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Spacing optimizasyonu */
    .mb-4, .my-4, .mt-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .mb-5, .my-5, .mt-5 {
        margin-bottom: 2rem !important;
    }
    
    /* Text optimizasyonu */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    h4 {
        font-size: 1.1rem;
    }
    
    h5 {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    /* Mobil telefonlar */
    .container {
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }
    
    /* Navbar küçük mobil */
    .modern-navbar {
        padding: 0.4rem 0;
    }
    
    .modern-navbar .logo-container {
        height: 50px;
    }
    
    .modern-navbar.scrolled .logo-container {
        height: 45px;
    }
    
    .modern-navbar .navbar-brand {
        font-size: 1rem;
    }
    
    .logo-placeholder {
        font-size: 24px;
    }
    
    .modern-navbar.scrolled .logo-placeholder {
        font-size: 22px;
    }
    
    /* Body padding küçük mobil */
    body {
        padding-top: 50px;
    }
    
    /* Hero banner küçük mobil */
    .hero-banner-section {
        margin-top: 50px !important;
        aspect-ratio: 3 / 1;
    }
    
    .hero-scroll-indicator {
        bottom: 15px;
    }
    
    .scroll-down {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    /* Kategori butonları küçük mobil */
    .kategori-modern-container {
        gap: 6px;
        padding: 12px 0;
    }
    
    .kategori-modern-link {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    /* Card küçük mobil */
    .card-body {
        padding: 0.75rem;
    }
    
    .card-header {
        padding: 0.75rem;
    }
    
    /* Butonlar küçük mobil */
    .btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.85rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn-group .btn {
        width: auto;
    }
    
    .btn-sm {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    
    /* Form elemanları küçük mobil */
    .form-control, .form-select {
        font-size: 16px;
        padding: 0.55rem 0.7rem;
    }
    
    /* Text küçük mobil */
    h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    h2 {
        font-size: 1.35rem;
        margin-bottom: 0.9rem;
    }
    
    h3 {
        font-size: 1.15rem;
        margin-bottom: 0.8rem;
    }
    
    h4 {
        font-size: 1rem;
        margin-bottom: 0.7rem;
    }
    
    h5 {
        font-size: 0.95rem;
        margin-bottom: 0.6rem;
    }
    
    /* Spacing küçük mobil */
    .mb-4, .my-4, .mt-4 {
        margin-bottom: 1rem !important;
    }
    
    .mb-5, .my-5, .mt-5 {
        margin-bottom: 1.5rem !important;
    }
    
    .py-4, .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    /* Badge küçük mobil */
    .badge {
        font-size: 0.75rem;
        padding: 0.35em 0.65em;
    }
    
    /* Dropdown menü mobil */
    .dropdown-menu {
        font-size: 0.9rem;
        min-width: 100%;
    }
    
    /* Tablo küçük mobil */
    .table {
        font-size: 0.85rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem 0.4rem;
    }
    
    /* Grid sistem küçük mobil */
    .row {
        margin-left: -8px;
        margin-right: -8px;
    }
    
    .row > * {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    /* Ürün kartları mobil */
    .product-category-card .card-img-top {
        aspect-ratio: 1/1;
    }
    
    /* PC'de ürün kartlarını küçült */
    @media (min-width: 992px) {
        .product-category-card {
            max-width: 280px;
            margin: 0 auto;
        }
    }
    
    @media (min-width: 1200px) {
        .product-category-card {
            max-width: 300px;
        }
    }
    
    /* Modal mobil */
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-content {
        border-radius: 8px;
    }
    
    /* Alert mobil */
    .alert {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Çok küçük ekranlar (320px ve altı) */
@media (max-width: 375px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .kategori-modern-link {
        padding: 7px 14px;
        font-size: 0.75rem;
    }
    
    h1 {
        font-size: 1.35rem;
    }
    
    h2 {
        font-size: 1.2rem;
    }
    
    .btn {
        font-size: 0.8rem;
        padding: 0.45rem 0.8rem;
    }
}

/* Landscape mod optimizasyonu */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-banner-section {
        aspect-ratio: 3 / 1;
    }
    
    .hero-banner-image {
        object-fit: contain;
        background-color: var(--renk-banner-arkaplan, #1a1a2e);
    }
    
    .modern-navbar .logo-container {
        height: 55px;
    }
    
    body {
        padding-top: 55px;
    }
}

/* Yüksek çözünürlüklü ekranlar için */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Print stilleri */
@media print {
    .navbar,
    .btn,
    .no-print {
        display: none !important;
    }
    
    body {
        padding-top: 0 !important;
    }
    
    .card {
        border: 1px solid #ddd;
        box-shadow: none;
    }
}

