/* mumdukkanim.com E-ticaret CSS - Modern Design - FIXED VERSION */

/* ============================================
   BLOK 5: PRODUCT BLOCKS (Diğer Ürün Blokları)
   ============================================ */
/* NOT: Featured products için ayrı kurallar var, bu kurallar onları etkilemez */
.product-section:not(.featured-products-section) .product-grid .row {
    margin-left: -5px;
    margin-right: -5px;
}

.product-section:not(.featured-products-section) .product-grid .row > div {
    padding-left: 5px;
    padding-right: 5px;
    margin-bottom: 30px;
}

/* ============================================
   BLOK 2: FEATURED PRODUCTS SECTION - Grid Layout
   ============================================ */
.featured-products-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 1rem !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.featured-product-item {
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
}

/* Mobile: 2 kart yan yana */
@media (max-width: 575px) {
    .featured-products-grid {
        gap: 0.5rem !important; /* Mobilde daha az boşluk */
    }
    
    .featured-product-item {
        flex: 0 0 calc(50% - 0.25rem) !important;
        max-width: calc(50% - 0.25rem) !important;
        width: calc(50% - 0.25rem) !important;
    }
}

/* Tablet: 2 kart */
@media (min-width: 576px) and (max-width: 767px) {
    .featured-product-item {
        flex: 0 0 calc(50% - 0.5rem) !important;
        max-width: calc(50% - 0.5rem) !important;
        width: calc(50% - 0.5rem) !important;
    }
}

/* Desktop: 3 kart */
@media (min-width: 768px) and (max-width: 991px) {
    .featured-product-item {
        flex: 0 0 calc(33.333% - 0.67rem) !important;
        max-width: calc(33.333% - 0.67rem) !important;
        width: calc(33.333% - 0.67rem) !important;
    }
}

/* Large Desktop: 5 kart yan yana - ORTALANMIŞ */
@media (min-width: 992px) {
    .featured-product-item {
        flex: 0 0 calc(20% - 0.8rem) !important;
        max-width: calc(20% - 0.8rem) !important;
        width: calc(20% - 0.8rem) !important;
    }
}

@media (min-width: 1200px) {
    .featured-product-item {
        flex: 0 0 calc(20% - 0.8rem) !important;
        max-width: calc(20% - 0.8rem) !important;
        width: calc(20% - 0.8rem) !important;
    }
}

@media (min-width: 1400px) {
    .featured-product-item {
        flex: 0 0 calc(20% - 0.8rem) !important;
        max-width: calc(20% - 0.8rem) !important;
        width: calc(20% - 0.8rem) !important;
    }
}

/* Normal Bootstrap spacing'i koru */
.mb-4 {
    margin-bottom: 1.5rem !important;
}

/* Container padding'i sadece ürün bölümlerinde ayarla */
.product-section .container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 1500px;
}

/* Header ve footer için normal padding */
.main-header .container,
.top-bar .container,
.footer .container {
    padding-left: 15px;
    padding-right: 15px;
}

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --light-color: #f8fafc;
    --dark-color: #1f2937;
    --border-radius: 16px;
    --box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Global Styles */
html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #374151;
    background: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Header Styles */
.top-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 0;
    font-size: 0.9rem;
}

/* Top Bar Layout Fix */
.top-bar .row {
    align-items: center !important;
}

.top-bar .col-md-6 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
}

.top-bar .col-md-6:last-child {
    text-align: right !important;
}

/* Main Header - Responsive */
.main-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0;
    z-index: 1020;
    overflow: visible;
}

.main-header .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    overflow: visible;
}

@media (min-width: 768px) {
    .main-header .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Desktop Logo */
.navbar-brand {
    padding: 0;
    margin: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    max-width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.navbar-brand .site-logo {
    max-height: 100%;
    height: auto;
    width: auto;
    max-width: 100%;
    display: block;
    transition: transform 0.2s ease;
    object-fit: contain;
    position: relative;
}

.navbar-brand:hover .site-logo {
    transform: scale(1.02);
}

/* Mobile Logo */
.navbar-brand-mobile {
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
}

.site-logo-mobile {
    max-height: 50px;
    height: auto;
    width: auto;
    object-fit: contain;
}

/* Desktop Header Layout */
@media (min-width: 768px) {
    .main-header .d-none.d-md-flex {
        height: 110px;
        min-height: 110px;
        max-height: 110px;
        align-items: center;
        overflow: visible;
    }
    
    .main-header .col-lg-2,
    .main-header .col-lg-3,
    .main-header .col-md-3,
    .main-header .col-md-4 {
        display: flex;
        align-items: center;
        overflow: visible;
        height: 110px;
    }
    
    /* Header actions column - dropdown için overflow visible */
    .main-header .header-actions {
        overflow: visible !important;
    }
}

/* Mobile Header Actions */
.header-action-link {
    color: #333;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.3rem;
    transition: color 0.2s ease;
    white-space: nowrap;
    flex-direction: row;
    font-size: 0.9rem;
}

.header-action-link i {
    display: inline-block;
}

.header-action-link span {
    display: inline-block;
}

.header-action-link:hover {
    color: #007bff;
    text-decoration: none;
}

.header-actions {
    gap: 0.3rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
}

@media (min-width: 992px) {
    .header-actions {
        gap: 0.5rem;
    }
}

/* Search Form */
.header-search-form {
    width: 100%;
}

.header-search-form .form-control {
    border-radius: 25px;
    border: 1px solid #dee2e6;
    padding: 0.5rem 1rem;
}

.header-search-form .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.header-search-form .btn {
    border-radius: 25px;
    padding: 0.5rem 1.2rem;
    white-space: nowrap;
}

/* Mobile Menu Offcanvas */
.offcanvas-header {
    background: #f8f9fa;
}

.offcanvas-body .nav-link {
    color: #333;
    transition: background-color 0.2s ease;
}

.offcanvas-body .nav-link:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

.accordion-button {
    font-weight: 500;
}

.accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    color: #007bff;
}

/* Cart Badge */
.badge {
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .main-header {
        padding: 0;
    }
    
    .header-search-form .form-control {
        font-size: 0.9rem;
    }
    
    .header-search-form .btn {
        padding: 0.4rem 1rem;
    }
}

.main-header .col-md-6 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
}

.main-header .col-md-3:last-child {
    flex: 0 0 25% !important;
    max-width: 25% !important;
    text-align: right !important;
}

/* Header Form and Buttons */
.main-header .form-control {
    border-radius: 25px;
    border: 2px solid #e2e8f0;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    width: 100%;
}

.main-header .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.main-header .btn {
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

.main-header .btn-outline-primary {
    border-color: #667eea;
    color: #667eea;
}

.main-header .btn-outline-primary:hover {
    background-color: #667eea;
    border-color: #667eea;
    color: white;
}

/* Header Action Links (Hesabım, Favorilerim, Sepetim) */
.header-action-link {
    display: flex;
    align-items: center;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.header-action-link i {
    font-size: 1.1rem;
}

.header-action-link:hover {
    color: #667eea;
    background-color: rgba(102, 126, 234, 0.1);
}

.header-action-link .badge {
    font-size: 0.65rem;
    padding: 0.25em 0.5em;
}

.header-action-link.dropdown-toggle::after {
    margin-left: 0.5rem;
    vertical-align: 0.2em;
}

/* Dropdown menu z-index fix for sticky header */
.main-header .dropdown {
    position: relative;
    z-index: 1030;
}

.main-header .dropdown-menu {
    z-index: 1030 !important;
    position: absolute;
    top: 100%;
    margin-top: 0.125rem;
    min-width: 220px;
    max-width: 280px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
}

.main-header .dropdown-menu .dropdown-item {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.main-header .dropdown-menu .dropdown-item:hover {
    background-color: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.main-header .dropdown-menu .dropdown-item i {
    width: 20px;
    text-align: center;
}

.main-header .dropdown-menu.dropdown-menu-end {
    right: 0;
    left: auto;
}

/* Header actions container - dropdown için overflow visible */
.main-header .header-actions {
    overflow: visible !important;
    position: relative;
    z-index: 1030;
}

/* Add safe spacing between search area and account actions */
.main-header .header-actions { 
    margin-left: 48px; 
    gap: 0.5rem !important; /* Butonları birbirlerine yaklaştır */
}
.main-header .header-search-form { margin-right: 48px; }

/* Navigation */
.navbar {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.25rem 0; /* üst-alt boşluk azaltıldı */
}

/* Category menu look (Trendy style) */
.navbar .navbar-nav { gap: 8px; }
.navbar .nav-link {
    font-weight: 600;
    font-size: 0.94rem; /* 1 punto küçültüldü (16px -> 15px) */
    color: #111827;
    padding: 0.5rem 1.25rem;
}
.navbar .nav-link:hover {
    color: #111827;
    text-decoration: underline;
    text-underline-offset: 6px;
}

/* Small red NEW badge for menu items */
.badge-new {
    display: inline-block;
    background-color: #dc2626;
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 9999px;
    margin-left: 6px;
}

.navbar-nav .nav-link {
    font-weight: 600;
    font-size: 0.94rem; /* 1 punto küçültüldü (16px -> 15px) */
    padding: 0.4rem 1rem; /* üst-alt boşluk azaltıldı */
    position: relative;
    transition: all 0.3s ease;
    margin: 0 0.25rem; /* öğeler arası mesafe azaltıldı */
    color: #4b5563;
    border-radius: 10px;
}

.navbar-nav .nav-link:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

/* Navbar dropdown: open on hover for desktop */
@media (min-width: 992px) {
    .navbar .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }
    .navbar .dropdown-toggle::after {
        transition: transform 0.2s ease;
    }
    .navbar .dropdown:hover .dropdown-toggle::after {
        transform: rotate(180deg);
    }
}

/* Navbar dropdown menu items font size */
.navbar .dropdown-menu .dropdown-item {
    font-size: 0.94rem; /* 1 punto küçültüldü (16px -> 15px) */
}

/* Category page - subcategory cards */
.subcategory-card .thumb {
    width: 100%;
    height: 140px; /* larger, consistent viewport */
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
    margin-bottom: 8px;
}
.subcategory-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Vertical separator between menu items */
.navbar-nav .nav-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -0.5rem;
    top: 20%;
    bottom: 20%;
    width: 2px;
    background: #adb5bd;
    z-index: 1;
    border-radius: 1px;
}

/* Breadcrumb */
.breadcrumb-container {
    background: #ffffff;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.breadcrumb {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Modern Product Cards - Düzgün boyutlandırma */
.product-card-modern {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    height: 100%;
    border: 1px solid #e5e7eb;
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.product-card-modern > .stretched-link {
    position: absolute;
    inset: 0;
    z-index: 10; /* En üstte olmalı */
}

.product-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.08) 0%, 
        rgba(118, 75, 162, 0.08) 50%, 
        rgba(255, 107, 107, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
}

.product-card-modern:hover::before {
    opacity: 1;
}

.product-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #d1d5db;
}

/* Product Image Container - Yeni Tasarım */
.product-image-container {
    position: relative;
    height: 220px; /* Sabit yükseklik - tüm fotoğraflar aynı boyutta */
    overflow: hidden;
    background: #ffffff;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; /* Padding kaldırıldı - fotoğraf kutusunu tamamen doldurması için */
    margin-bottom: 0;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fotoğraf kutusunu tamamen doldurur, boşluk kalmaz */
    object-position: center; /* Fotoğraf merkezde */
    transition: transform 0.3s ease;
}

.product-card-modern:hover .product-image {
    transform: scale(1.05);
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.product-image-placeholder i {
    font-size: 3rem;
    color: #94a3b8;
    opacity: 0.7;
}

/* Quick action icons on product card - Hover'da göster */
.quick-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    z-index: 4; /* above stretched-link (z:2) and other elements */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.product-card-modern:hover .quick-actions {
    opacity: 1;
    visibility: visible;
}

.quick-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    background: #667eea;
    color: #fff;
}

.quick-action-btn.favorite:hover { background: #ef4444; }
.quick-action-btn.compare:hover { background: #10b981; }
.quick-action-btn.share:hover { background: #3b82f6; }

/* Product Detail Page Alert Messages - Kalıcı Uyarılar */
#productTabsContent .alert,
#productTabsContent .tab-pane .alert,
.alert-permanent {
    animation: none !important;
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
}

#productTabsContent .alert.alert-dismissible,
#productTabsContent .tab-pane .alert.alert-dismissible,
.alert-permanent.alert-dismissible {
    position: relative;
}

#productTabsContent .alert .btn-close,
#productTabsContent .tab-pane .alert .btn-close,
.alert-permanent .btn-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
}

/* Alert permanent class - otomatik kapanmayı engelle */
.alert-permanent {
    pointer-events: auto !important;
}

/* Tab pane içindeki alert'lerin görünür olmasını sağla */
#productTabsContent .tab-pane:not(.active) .alert {
    display: none !important;
}

#productTabsContent .tab-pane.active .alert {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Product Detail Page Tabs */
#productTabs {
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 2rem;
}

#productTabs .nav-link {
    color: #6b7280;
    font-weight: 500;
    padding: 12px 24px;
    border: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

#productTabs .nav-link:hover {
    color: #667eea;
    border-bottom-color: #667eea;
    background-color: #f8fafc;
}

#productTabs .nav-link.active {
    color: #667eea;
    background-color: transparent;
    border-bottom-color: #667eea;
    font-weight: 600;
}

#productTabs .nav-link i {
    margin-right: 8px;
}

#productTabsContent .tab-pane {
    padding: 0;
}

#productTabsContent .product-description {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#productTabsContent .description-content {
    line-height: 1.8;
    color: #374151;
    font-size: 0.95rem;
}

/* Product Detail Page Image Overrides */
.detail-image-container {
    height: 520px !important;
    overflow: visible !important;
    background: #f8fafc;
    border-radius: 16px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-image-container img.img-fluid {
    max-height: 100%;
    max-width: 100%; /* 60% -> 80%: detay sayfada görsel daha okunur boyut */
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Product Overlay */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.8) 0%, 
        rgba(0, 0, 0, 0.4) 50%, 
        rgba(0, 0, 0, 0.8) 100%);
    opacity: 0;
    transition: all 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.product-card-modern:hover .product-overlay {
    opacity: 1;
}

.product-actions {
    display: flex;
    gap: 10px;
    transform: translateY(20px);
    transition: transform 0.5s ease 0.2s;
}

.product-card-modern:hover .product-actions {
    transform: translateY(0);
}

.action-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(20px);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.15);
    font-size: 0.8rem;
}

.action-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-4px) scale(1.15);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.wishlist-btn:hover {
    background: #ef4444;
    box-shadow: 0 12px 35px rgba(239, 68, 68, 0.4);
}

.quick-view-btn:hover {
    background: #10b981;
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.4);
}

.compare-btn:hover {
    background: #f59e0b;
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.4);
}

/* Badges - Yeni Tasarım (Görseldeki gibi kare şeklinde) */
.sale-badge-new {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff6b35; /* Turuncu */
    color: white;
    padding: 8px 12px;
    border-radius: 6px; /* Daha kare görünüm için */
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.4);
    z-index: 3;
    line-height: 1.2;
    white-space: nowrap;
}

.badge-percent-new {
    font-size: 0.7rem;
    font-weight: 700;
}

/* Free Shipping Badge - Yeşil Arka Plan */
.free-shipping-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: #10b981; /* Yeşil */
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
    z-index: 2;
    white-space: nowrap;
}

.badge-free-shipping {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Free Shipping Badge - Ürün Detay Sayfası */
.free-shipping-badge-detail {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: #10b981; /* Yeşil */
    color: white;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
    z-index: 10;
    white-space: nowrap;
}

.badge-free-shipping-detail {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Category Filter Styles - Kompakt Tasarım */
.filter-card {
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.filter-header {
    background: #f9fafb;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.filter-header h6 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

.filter-body {
    padding: 1rem;
}

.filter-body .form-label {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.filter-body .form-control-sm,
.filter-body .form-select-sm {
    font-size: 0.85rem;
    padding: 0.35rem 0.5rem;
}

.filter-body .btn-sm {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
}

/* Mobile'da filtreler collapse ile gizli */
@media (max-width: 991.98px) {
    .filter-card {
        margin-top: 0;
    }
    
    #filterCollapse {
        margin-bottom: 1rem;
    }
}

/* Quantity Badge - Yeşil Altıgen */
.quantity-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #10b981; /* Yeşil */
    color: white;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
    z-index: 3;
    transform: rotate(45deg);
}

.quantity-badge span {
    transform: rotate(-45deg);
    font-weight: 700;
}

.quantity-badge span {
    font-weight: 700;
}

/* Eski Badge Stilleri (Geriye dönük uyumluluk için) */
.sale-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.badge-text {
    font-size: 0.65rem;
}

.badge-percent {
    font-size: 0.8rem;
    font-weight: 800;
}

.stock-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
}

.stock-badge.out-of-stock {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

.stock-badge.low-stock {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* Product Info - Büyük kartlar için */
.product-info {
    padding: 4px 15px 6px 15px; /* Üst-alt padding daha da azaltıldı (kart yüksekliği düşürüldü) */
    position: relative;
    z-index: 1; /* stretched-link'in altında olmalı */
    pointer-events: none; /* Tıklamaları stretched-link'e ilet */
}

.product-info * {
    pointer-events: auto; /* İçerideki elementler normal davranış göstersin */
}

.product-name {
    margin: 0 0 8px 0; /* 4px -> 8px (fiyat ile çakışmayı önlemek için) */
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4; /* 1.3 -> 1.4 (satırlar arası boşluk artırıldı) */
    height: 2.4rem; /* 1.8rem -> 2.4rem (2 satır için yeterli alan: 0.85rem * 1.4 * 2 = 2.38rem) */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: center;
}

.product-name a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.4s ease;
}

.product-name a:hover {
    color: #667eea;
}

/* Rating - Yeni Tasarım (Fotoğrafın hemen altında) */
.product-rating-new {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px; /* 6px -> 4px (yazı alanı küçültüldü) */
    padding: 0 15px;
    justify-content: center;
}

.stars-new {
    display: flex;
    gap: 2px;
}

.stars-new i {
    color: #fbbf24; /* Sarı yıldız */
    font-size: 0.9rem;
}

.stars-new .far {
    color: #d1d5db; /* Boş yıldız gri */
}

.rating-count {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
}

/* Eski Rating Stilleri (Geriye dönük uyumluluk için) */
.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.stars {
    display: flex;
    gap: 3px;
}

.stars i {
    color: #fbbf24;
    font-size: 0.7rem;
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3));
}

.rating-text {
    font-size: 0.65rem;
    color: #6b7280;
    font-weight: 500;
}

/* Price - Yeni Tasarım */
.product-price-new {
    margin-bottom: 4px; /* 6px -> 4px (yazı alanı küçültüldü) */
    text-align: center;
}

.price-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.original-price-new {
    font-size: 0.85rem;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 500;
}

.price-discount-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.current-price-new {
    font-size: 1rem; /* 1.2rem -> 1rem (2 punto düşürüldü) */
    font-weight: 700;
    color: #ff6b35; /* Turuncu */
}

.discount-percent-badge {
    background: #ff6b35;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}

/* Eski Price Stilleri (Geriye dönük uyumluluk için) */
.product-price {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.current-price {
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.original-price {
    font-size: 0.7rem;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 500;
}

/* Add to Cart Button - Sürekli görünür, yan yana */
.product-actions-bottom {
    margin-top: auto;
    position: relative;
    z-index: 11; /* stretched-link'in üstünde olmalı (butonlar için) */
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    transform: translateY(0);
    display: flex;
    flex-direction: row;
    gap: 6px; /* 8px -> 6px */
    padding: 0 15px 8px 15px; /* 12px -> 8px (kart yüksekliği düşürüldü) */
    pointer-events: auto; /* Butonlar tıklanabilir olmalı */
}

.product-card-modern:hover .product-actions-bottom {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Sepete Ekle - Yazı butonu */
.add-to-cart-text-btn {
    flex: 1;
    padding: 8px 12px; /* 10px 16px -> 8px 12px */
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem; /* 0.85rem -> 0.8rem */
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.add-to-cart-text-btn:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.add-to-cart-text-btn.disabled {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    cursor: not-allowed;
}

.add-to-cart-text-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Hemen Al - İkon butonu (Market sepeti) */
.buy-now-icon-btn {
    width: 40px; /* 44px -> 40px */
    height: 40px; /* 44px -> 40px */
    padding: 0;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    flex-shrink: 0;
}

.buy-now-icon-btn i {
    font-size: 1.1rem;
}

.buy-now-icon-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

/* Eski add-to-cart-btn (Geriye dönük uyumluluk) */
.add-to-cart-btn {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.add-to-cart-btn:hover::before {
    left: 100%;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.add-to-cart-btn:active {
    transform: translateY(-1px);
}

.add-to-cart-btn.disabled {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    cursor: not-allowed;
}

.add-to-cart-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Hemen Al Butonu */
.buy-now-btn {
    background: linear-gradient(135deg, #10b981, #059669) !important;
}

.buy-now-btn:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4);
}

/* Buttons */
.btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-outline-primary {
    border-color: #667eea;
    color: #667eea;
    background: transparent;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Footer */
.footer {
    background: #212529; /* Navbar bg-dark rengi ile aynı */
    color: #ffffff; /* Beyaz yazı rengi */
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer h5,
.footer h6 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-text {
    color: #d1d5db; /* Açık gri metin rengi */
}

.footer a {
    color: #d1d5db; /* Açık gri link rengi */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #ffffff; /* Hover'da beyaz */
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.1); /* Açık gri çizgi */
}

/* BLOK 5: PRODUCT BLOCKS - Responsive Design */
/* NOT: Featured products için ayrı kurallar var */
.product-section:not(.featured-products-section) .product-grid .row {
    justify-content: center;
    align-items: flex-start;
}

.product-section:not(.featured-products-section) .product-grid .row > div {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
}

@media (min-width: 576px) {
    .product-section:not(.featured-products-section) .product-grid .row > div {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
        width: 33.333333% !important;
    }
}

@media (min-width: 768px) {
    .product-section:not(.featured-products-section) .product-grid .row > div {
        flex: 0 0 25% !important;
        max-width: 25% !important;
        width: 25% !important;
    }
}

@media (min-width: 992px) {
    .product-section:not(.featured-products-section) .product-grid .row > div {
        flex: 0 0 22% !important;
        max-width: 22% !important;
        width: 22% !important;
        padding-left: 0.5%;
        padding-right: 0.5%;
    }
}

@media (min-width: 1200px) {
    .product-section:not(.featured-products-section) .product-grid .row > div {
        flex: 0 0 22% !important;
        max-width: 22% !important;
        width: 22% !important;
        padding-left: 0.5%;
        padding-right: 0.5%;
    }
}

@media (min-width: 1400px) {
    .product-section:not(.featured-products-section) .product-grid .row > div {
        flex: 0 0 22% !important;
        max-width: 22% !important;
        width: 22% !important;
        padding-left: 0.5%;
        padding-right: 0.5%;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

/* ============================================
   BLOK 1: MAIN SLIDER SECTION (3 Bloklu Slider)
   ============================================ */
.main-slider-section {
    margin: 20px auto;
    max-width: 1500px;
    padding: 0 15px;
}

.main-slider-section .carousel {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.main-slider-section .carousel-inner {
    border-radius: 20px;
}

.main-slider-section .carousel-item {
    border-radius: 20px;
    min-height: 450px;
}

.main-slider-section .slider-content {
    border-radius: 20px;
    min-height: 450px !important;
}

/* ============================================
   BLOK 2: FEATURED PRODUCTS SECTION (Öne Çıkan Ürünler)
   ============================================ */
/* Featured Products Wrapper - Çerçeve ve Gradient Arka Plan */
.featured-products-wrapper {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 1.5rem 1rem; /* 2.5rem -> 1.5rem (yükseklik azaltıldı) */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 2rem auto;
    width: calc(100% - 30px); /* Slider ile aynı genişlik (15px padding x 2) */
    max-width: 1290px; /* Slider ile aynı max-width */
    position: relative;
    left: auto;
    right: auto;
}

/* Featured Products Container */
.featured-products-section .container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

.featured-products-section {
    margin-bottom: 3rem;
}

/* Featured Products - Tümünü Gör butonu font boyutu */
.featured-products-section .btn-outline-primary {
    font-size: calc(1rem - 3px); /* 3 punto düşürüldü */
}

/* ============================================
   BLOK 5: PRODUCT DETAIL PAGE (Ürün Detay Sayfası)
   ============================================ */

/* Ürün Detay Sayfası - Genel */
.product-details {
    padding: 0;
}

/* Ürün Rozetleri */
.product-badges .badge {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    font-weight: 600;
}

/* Ürün Başlığı */
.product-title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
}

/* Ürün Rating */
.product-rating .fa-star {
    font-size: 1rem;
}

/* Ürün Fiyat */
.product-price .final-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #dc3545;
}

/* Kargo Bilgisi */
.shipping-info {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

/* İlginizi Çekebilir Bölümü */
.suggested-products {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.suggested-products .carousel-control-prev,
.suggested-products .carousel-control-next {
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.suggested-products .carousel-control-prev {
    left: -15px;
}

.suggested-products .carousel-control-next {
    right: -15px;
}


/* Sepete Ekle ve Hemen Al Butonları - Aynı Ölçü */
.product-action-btn {
    height: 48px !important;
    padding: 0.75rem 1rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Adet Seçici */
.quantity-selector .btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.quantity-selector input {
    height: 40px;
}

/* Ürün Görseli Carousel */
.product-detail-image {
    height: 350px !important;
    width: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

.product-detail-placeholder {
    height: 350px !important;
}

/* Carousel container'ı küçült */
#productImageCarousel .carousel-inner {
    height: 350px;
    overflow: hidden;
    border-radius: 8px;
}

#productImageCarousel .carousel-item {
    height: 350px;
}

#productImageCarousel .carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.product-image-container.detail-image-container {
    height: 350px;
    overflow: hidden;
    border-radius: 8px;
}

.product-image-container.detail-image-container img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

#productImageCarousel .carousel-control-prev,
#productImageCarousel .carousel-control-next {
    background: rgba(0, 0, 0, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

#productImageCarousel .carousel-control-prev {
    left: 15px;
}

#productImageCarousel .carousel-control-next {
    right: 15px;
}

/* Thumbnail Görselleri */
.product-thumbnail {
    transition: all 0.3s;
}

.product-thumbnail:hover {
    border-color: #0d6efd !important;
    transform: scale(1.05);
}

/* Kampanya Kartları */
.campaign-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.campaign-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.campaign-item i {
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 991.98px) {
    .product-title {
        font-size: 1.3rem;
    }
    
    .product-price .final-price {
        font-size: 1.5rem;
    }
    
    .product-action-btn {
        height: 44px !important;
        font-size: 0.9rem !important;
    }
}

/* ============================================
   BLOK 3: BANNER SLIDER SECTION
   ============================================ */
.banner-slider-section {
    margin: 1.5rem 0;
}

.banner-slider-section .container {
    width: calc(100% - 120px); /* Featured products ile aynı genişlik */
    max-width: 1310x; /* Featured products ile aynı max-width */
    padding-left: 15px; /* Featured products container ile aynı */
    padding-right: 15px; /* Featured products container ile aynı */
    margin: 0 auto; /* Ortala */
}

.banner-slider-section .row {
    margin-left: -10px;
    margin-right: -10px;
}

.banner-slider-section .row > div {
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 20px;
}

.banner-box {
    display: block;
    overflow: hidden;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.banner-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.banner-box img {
    width: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

@media (max-width: 768px) {
    .banner-slider-section .container {
        width: calc(100% - 40px); /* Featured products mobil ile aynı */
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .banner-slider-section .row > div {
        margin-bottom: 15px;
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .banner-box img {
        height: auto !important;
        min-height: 120px;
        max-height: 180px;
    }
    
    /* Mobile'da banner'lar daha küçük */
    .banner-image-responsive {
        height: 150px !important;
        object-fit: cover;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .banner-slider-section .container {
        width: calc(100% - 80px); /* Featured products tablet ile aynı */
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* ============================================
   BLOK 4: PRODUCT BLOCKS SECTION (Ürün Blokları)
   ============================================ */
/* Product Blocks Wrapper - Öne Çıkan Ürünler ile Aynı Tasarım */
.product-blocks-wrapper {
    background: transparent; /* Şeffaf arka plan */
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 1.5rem 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 2rem auto;
    width: calc(100% - 30px); /* Öne çıkan ürünler ile aynı genişlik */
    max-width: 1290px; /* Öne çıkan ürünler ile aynı max-width */
    position: relative;
    left: auto;
    right: auto;
}

/* Product Blocks Container */
.product-block-section .container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

.product-block-section {
    margin-bottom: 3rem;
}

/* Product Blocks - Tümünü Gör butonu font boyutu */
.product-block-section .btn-outline-primary {
    font-size: calc(1rem - 3px); /* 3 punto düşürüldü */
}

/* Product Blocks Grid - Flexbox Layout (Öne Çıkan Ürünler ile Aynı) */
.product-blocks-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 1rem !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.product-block-item {
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
}

/* Mobile: 2 kart yan yana */
@media (max-width: 575px) {
    .product-blocks-wrapper {
        width: calc(100% - 30px);
        margin: 1rem auto;
        padding: 1rem 0.75rem;
    }
    
    .product-blocks-grid {
        gap: 0.5rem !important;
    }
    
    .product-block-item {
        flex: 0 0 calc(50% - 0.25rem) !important;
        max-width: calc(50% - 0.25rem) !important;
        width: calc(50% - 0.25rem) !important;
    }
}

/* Tablet: 2 kart */
@media (min-width: 576px) and (max-width: 767px) {
    .product-blocks-wrapper {
        width: calc(100% - 30px);
        padding: 1.25rem 1rem;
    }
    
    .product-block-item {
        flex: 0 0 calc(50% - 0.5rem) !important;
        max-width: calc(50% - 0.5rem) !important;
        width: calc(50% - 0.5rem) !important;
    }
}

/* Desktop: 3 kart */
@media (min-width: 768px) and (max-width: 991px) {
    .product-block-item {
        flex: 0 0 calc(33.333% - 0.67rem) !important;
        max-width: calc(33.333% - 0.67rem) !important;
        width: calc(33.333% - 0.67rem) !important;
    }
}

/* Large Desktop: 5 kart yan yana - ORTALANMIŞ */
@media (min-width: 992px) {
    .product-block-item {
        flex: 0 0 calc(20% - 0.8rem) !important;
        max-width: calc(20% - 0.8rem) !important;
        width: calc(20% - 0.8rem) !important;
    }
}

@media (min-width: 1200px) {
    .product-block-item {
        flex: 0 0 calc(20% - 0.8rem) !important;
        max-width: calc(20% - 0.8rem) !important;
        width: calc(20% - 0.8rem) !important;
    }
}

@media (min-width: 1400px) {
    .product-block-item {
        flex: 0 0 calc(20% - 0.8rem) !important;
        max-width: calc(20% - 0.8rem) !important;
        width: calc(20% - 0.8rem) !important;
    }
}

/* ============================================
   BLOK 5: CUSTOM SLIDER SECTION
   ============================================ */
.custom-slider-section {
    margin: 1.5rem 0;
}

.custom-slider-section .container {
    max-width: 1000px;
    padding-left: 15px;
    padding-right: 15px;
}

.custom-slider-section .row {
    margin-left: -10px;
    margin-right: -10px;
}

.custom-slider-section .row > div {
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 20px;
}

.custom-slider-box {
    display: block;
    overflow: hidden;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.custom-slider-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.custom-slider-box img {
    width: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

@media (max-width: 768px) {
    .custom-slider-section .row > div {
        margin-bottom: 15px;
    }
}

/* Auth (Login/Register) */
.auth-hero {
    padding: 4rem 0 6rem;
    background: linear-gradient(135deg, #f0f4ff 0%, #fdf7ff 100%);
    min-height: calc(100vh - 220px);
    display: flex;
    align-items: center;
}

.auth-card {
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
}

.auth-card-visual {
    background: linear-gradient(135deg, #2962ff 0%, #512da8 100%);
    color: #fff;
    min-height: 100%;
}

.auth-card-visual.register {
    background: linear-gradient(135deg, #ff6a00 0%, #ee0979 100%);
}

.auth-form .input-group-text {
    border-color: #e0e0e0;
    background-color: transparent;
}

.auth-form .form-control {
    border-color: #e0e0e0;
    box-shadow: none;
}

.auth-form .form-control:focus {
    border-color: #2962ff;
    box-shadow: 0 0 0 0.2rem rgba(41, 98, 255, 0.15);
}

.password-field .password-toggle {
    border-color: #e0e0e0;
    color: #6c757d;
}

.password-field .password-toggle:hover,
.password-field .password-toggle:focus {
    border-color: #2962ff;
    color: #2962ff;
    box-shadow: none;
}

.auth-form .form-control-lg {
    border-radius: 14px;
    padding: 0.85rem 1.1rem;
}

.auth-card .list-unstyled li i {
    width: 18px;
    text-align: center;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-modern {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, #667eea, #764ba2) 1;
}

.clickable-area { 
    position: relative; 
    z-index: 1; 
    cursor: pointer; 
}

.clickable-area > .stretched-link { 
    position: absolute; 
    inset: 0; 
    z-index: 10; /* En üstte olmalı, tüm tıklamaları yakalamalı */
    display: block; 
}
.product-actions-bottom { 
    position: relative; 
    z-index: 11; /* stretched-link'in üstünde olmalı */
    pointer-events: auto; /* Butonlar tıklanabilir olmalı */
}

/* ============================================
   BLOK 1: PROMO SLIDER SECTION (3 Bölümlü Tasarım)
   ============================================ */
.promo-slider-section {
    margin-bottom: 3rem;
}

.promo-main-banner {
    border-radius: 25px;
    position: relative;
}

#mainSliderCarousel {
    border-radius: 25px;
    overflow: hidden;
}

#mainSliderCarousel .carousel-inner {
    border-radius: 25px;
}

#mainSliderCarousel .carousel-item {
    border-radius: 25px;
}

#mainSliderCarousel .carousel-control-prev,
#mainSliderCarousel .carousel-control-next {
    z-index: 10;
    width: 50px;
    opacity: 0.8;
}

#mainSliderCarousel .carousel-control-prev:hover,
#mainSliderCarousel .carousel-control-next:hover {
    opacity: 1;
}

.promo-main-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}

.promo-main-content {
    position: relative;
    z-index: 2;
}

.promo-product-image {
    position: absolute;
    bottom: 0;
    right: 20px;
    z-index: 1;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.promo-bonus-banner {
    border-radius: 25px;
    position: relative;
}

.promo-bonus-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.promo-bonus-content {
    position: relative;
    z-index: 2;
}

.promo-shipping-banner {
    border-radius: 25px;
    position: relative;
}

.promo-shipping-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.promo-shipping-content {
    position: relative;
    z-index: 2;
}

/* Responsive Tasarım */
@media (max-width: 991.98px) {
    .promo-main-banner {
        border-radius: 20px;
        width: 100% !important; /* Mobilde her zaman tam genişlik */
        min-height: 250px !important; /* Mobile'da daha küçük yükseklik */
    }
    
    .promo-main-content {
        padding: 20px !important; /* Mobilde daha az padding */
    }
    
    .promo-main-content h2 {
        font-size: 1.5rem !important; /* Mobile'da daha küçük başlık */
    }
    
    .promo-main-content p {
        font-size: 0.9rem !important; /* Mobile'da daha küçük metin */
    }
    
    .promo-bonus-banner {
        border-radius: 20px;
        width: 100% !important; /* Mobilde her zaman tam genişlik */
        flex: 1 1 50%; /* Yan yana geldiğinde eşit genişlik */
        min-height: 120px !important; /* Mobile'da daha küçük yükseklik */
    }
    
    .promo-bonus-content {
        padding: 15px !important; /* Mobile'da daha az padding */
    }
    
    .promo-bonus-content h3 {
        font-size: 1rem !important; /* Mobile'da daha küçük başlık */
        margin-bottom: 0.5rem !important;
    }
    
    .promo-bonus-content p {
        font-size: 0.8rem !important; /* Mobile'da daha küçük metin */
        margin-bottom: 0.5rem !important;
    }
    
    .promo-shipping-banner {
        border-radius: 20px;
        width: 100% !important; /* Mobilde her zaman tam genişlik */
        flex: 1 1 50%; /* Yan yana geldiğinde eşit genişlik */
        min-height: 120px !important; /* Mobile'da daha küçük yükseklik */
    }
    
    .promo-shipping-content {
        padding: 15px !important; /* Mobile'da daha az padding */
    }
    
    .promo-shipping-content h4 {
        font-size: 1rem !important; /* Mobile'da daha küçük başlık */
        margin-bottom: 0.5rem !important;
    }
    
    .promo-shipping-content p {
        font-size: 0.8rem !important; /* Mobile'da daha küçük metin */
        margin-bottom: 0.5rem !important;
    }
    
    .promo-product-image {
        position: relative;
        right: auto;
        text-align: center;
        margin-top: 20px;
    }
    
    .promo-product-image img {
        max-height: 200px !important;
    }
    
    #mainSliderCarousel .carousel-control-prev,
    #mainSliderCarousel .carousel-control-next {
        width: 40px;
    }
    
    /* Featured Products Section - Mobil */
    .featured-products-wrapper {
        width: calc(100% - 30px); /* Slider ile aynı genişlik (mobil) */
        margin: 1rem auto;
        padding: 1rem 0.75rem; /* 1.5rem -> 1rem (yükseklik azaltıldı) */
    }
    
    /* Ürün kartı fotoğrafları - Mobilde de aynı boyut */
    .product-image-container {
        height: 200px !important; /* Mobilde biraz daha küçük ama yine sabit */
    }
}

/* Tablet ve orta boy ekranlar için */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .featured-products-wrapper {
        width: calc(100% - 30px); /* Slider ile aynı genişlik (tablet) */
        padding: 1.25rem 1rem; /* 2rem -> 1.25rem (yükseklik azaltıldı) */
    }
}

/* ============================================
   ÇEREZ İZİN BANNER'I
   ============================================ */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-text strong {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

.cookie-consent-text p {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.95;
}

.cookie-consent-text a {
    color: #ffd700;
    text-decoration: underline;
    font-weight: 600;
}

.cookie-consent-text a:hover {
    color: #fff;
}

.cookie-consent-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-consent-buttons .btn {
    white-space: nowrap;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
}

.cookie-consent-buttons .btn-outline-secondary {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.cookie-consent-buttons .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.cookie-consent-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.cookie-consent-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.cookie-consent-buttons .btn-primary {
    background: #ffd700;
    border-color: #ffd700;
    color: #333;
}

.cookie-consent-buttons .btn-primary:hover {
    background: #ffed4e;
    border-color: #ffed4e;
    color: #333;
}

/* Çerez Ayarları Modal */
.cookie-category {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.cookie-category h6 {
    font-size: 1rem;
    font-weight: 600;
}

.cookie-category .form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.cookie-category .form-check-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Mobil için çerez banner'ı */
@media (max-width: 767.98px) {
    .cookie-consent-banner {
        padding: 1rem;
    }
    
    .cookie-consent-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cookie-consent-text {
        min-width: 100%;
    }
    
    .cookie-consent-buttons {
        width: 100%;
        justify-content: stretch;
    }
    
    .cookie-consent-buttons .btn {
        flex: 1;
        min-width: 0;
    }
}