/* ==========================================================================
   Değişkenler ve Temel Ayarlar
   ========================================================================== */
:root {
   --primary-color: #c22a00;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary-color: #1e293b;
    --secondary-light: #f8fafc;
    --secondary-dark: #0f172a;
    --accent-color: #f59e0b;
    --accent-light: #fef3c7;
    --accent-dark: #d97706;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    --text-color: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --container-width: 1300px;
    --header-height: 80px;
    --transition-base: all 0.3s ease;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* Smooth scroll & reset scrollbar colors */
html { scroll-behavior: smooth; }

/* Reset custom scrollbar colors to browser defaults */
::-webkit-scrollbar,
::-webkit-scrollbar-track,
::-webkit-scrollbar-thumb,
::-webkit-scrollbar-button,
::-webkit-scrollbar-corner {
    background: initial !important;
    width: initial !important;
    height: initial !important;
}
/* ==========================================================================
   Reset ve Genel Stiller
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--secondary-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1536px !important;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    width: 100%;
}

/* ==========================================================================
   Header Stilleri
   ========================================================================== */
.header {
    background-color: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header-top {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.header-main {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

/* ==========================================================================
   Navigasyon ve Mega Menü
   ========================================================================== */
.nav-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    font-weight: 500;
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: var(--primary-light);
}

.mega-menu {
    position: absolute;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-base);
}

.mega-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ==========================================================================
   Form Elemanları
   ========================================================================== */
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    font-size: 0.875rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-light);
    outline: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-base);
    font-size: 0.875rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

/* ==========================================================================
   Ürün Kartları
   ========================================================================== */
.product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-base);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Kategori sayfası - sıralama select'i ve başlık taşmalarını engelleme */
#sortSelect,
select[name="sort"] {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 2.5rem;
    background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%), linear-gradient(to right, var(--border-color), var(--border-color));
    background-position: calc(100% - 1rem) calc(1em + 2px), calc(100% - .6rem) calc(1em + 2px), 100% 0;
    background-size: .45em .45em, .45em .45em, 1px 1.5em;
    background-repeat: no-repeat;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
}

.product-title, .text-ellipsis {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

/* Minimal select for category header */
.minimal-sort {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border: 1px solid rgba(0,0,0,0.06);
    padding: .4rem .75rem;
    border-radius: 8px;
    min-width: 150px;
    color: var(--text-color);
    box-shadow: none;
}
.minimal-sort:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(37,99,235,0.06);
    border-color: var(--primary-color);
}

/* Header embedded filter styles */
.header-filter-btn {
    position: absolute;
    right: 1rem;
    bottom: 0.5rem;
    background: white;
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    cursor: pointer;
    z-index: 60;
}
.header-filter-btn i { color: var(--text-color); }

.header-filter-panel {
    position: absolute;
    right: 1rem;
    bottom: 3.6rem;
    background: white;
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    z-index: 59;
    min-width: 320px;
}

@media (max-width: 768px) {
    .header-filter-panel { right: 0.75rem; left: 0.75rem; bottom: 3.6rem; min-width: auto; }
    .header-filter-btn { right: 0.75rem; }
}

/* SEO keywords list styles */
.seo-keywords-nav { margin-top: 10px; margin-bottom: 10px; }
.seo-keywords { list-style: none; display:flex; flex-wrap:wrap; gap:8px; padding:0; margin:0; }
.seo-keywords li { display:inline-block; }
.seo-keyword-link {
    display:inline-block;
    padding:6px 10px;
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 999px;
    font-size: 13px;
    text-decoration: none;
    transition: all .15s ease;
}
.seo-keyword-link:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.06); color: var(--primary-color); border-color: rgba(37,99,235,0.12); }

.product-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition-base);
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

/* Minimal filter button & panel */
.filter-btn {
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    gap: 0.5rem;
}

.filter-panel {
    background: white;
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(20,20,20,0.05);
}

/* Responsive: show filter button on small screens (inline near total count) */
@media (max-width: 768px) {
    .filter-btn {
        display: inline-flex !important;
    }
    #filterPanel.hidden {
        display: none !important;
    }
    #filterPanel {
        display: block;
    }
}

@media (min-width: 769px) {
    /* On larger screens keep filter panel inline but hidden by default */
    .filter-btn { display: inline-flex; }
    #filterPanel { display: none; }
    #filterPanel.show { display: block; }
}

/* ==========================================================================
   Animasyonlar
   ========================================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.3s ease-out;
}

/* ==========================================================================
   Medya Sorguları
   ========================================================================== */
@media (max-width: 1024px) {
    :root {
        --container-width: 100%;
        --header-height: 70px;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 768px) {
    .header {
        height: auto;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .mega-menu {
        position: static;
        box-shadow: none;
    }
    
    .product-card {
        margin-bottom: 1rem;
    }
    
    .product-actions {
        opacity: 1;
        transform: none;
        position: static;
        margin-top: 1rem;
    }
}

/* ==========================================================================
   Yardımcı Sınıflar
   ========================================================================== */
.text-primary { color: var(--primary-color); }
.bg-primary { background-color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.bg-secondary { background-color: var(--secondary-color); }
.text-accent { color: var(--accent-color); }
.bg-accent { background-color: var(--accent-color); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }

/* ==========================================================================
   Özel Scroll Bar
   ========================================================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ==========================================================================
   Özel Seçim Rengi
   ========================================================================== */
::selection {
    background: var(--primary-color);
    color: white;
}

/* ==========================================================================
   Loading Animasyonu
   ========================================================================== */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid var(--primary-color);
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 1;
}

@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Genel Stiller */
.header-top {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.header-main {
    background-color: var(--white);
    box-shadow: var(--header-shadow);
    padding: 1rem 0;
}

/* Mega Menü */
.mega-menu {
    position: absolute;
    left: 0;
    width: 100%;
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.mega-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Butonlar */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Kartlar */
.card {
    background-color: var(--white);
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Animasyon Sınıfları */
.animate-slide-down {
    animation: slideDown 0.3s ease-out;
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

.animate-scale-up {
    animation: scaleUp 0.3s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .header-main {
        padding: 0.5rem 0;
    }
    
    .mega-menu {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        transform: translateX(-100%);
    }
    
    .mega-menu.show {
        transform: translateX(0);
    }
}

/* Ürün Kartı */
.product-card {
    position: relative;
    overflow: hidden;
}

.product-card .product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.product-card .product-image img {
    transition: transform 0.3s ease;
}

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

.product-card .product-actions {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

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

/* Yardımcı Sınıflar */
.text-primary { color: var(--primary-color); }
.bg-primary { background-color: var(--primary-color); }
.border-primary { border-color: var(--primary-color); }
.hover-primary:hover { color: var(--primary-color); }
.hover-bg-primary:hover { background-color: var(--primary-color); }

/* Loading Animasyonu */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    z-index: 1;
}

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

/* Header Stiller */
header {
    background: var(--white);
    color: var(--text-color);
    font-size: 13px;
    box-shadow: var(--header-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    padding: 8px 0;
    background: var(--primary-color);
    font-size: 12px;
}

.top-bar a {
    color: var(--medium-gray);
    text-decoration: none;
    transition: color 0.2s ease;
}

.top-bar a:hover {
    color: var(--white);
}

.main-header {
    padding: 15px 0;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color) !important;
    letter-spacing: -0.5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0;
    position: relative;
}

.navbar-brand .logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.navbar-brand img {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.navbar-brand .highlight {
    color: var(--accent-color);
    position: relative;
}

.navbar-brand .highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.navbar-brand:hover .highlight::after {
    transform: scaleX(1);
}

.navbar-brand .slogan {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 400;
    letter-spacing: 0;
    margin-top: -5px;
    display: block;
}

@media (max-width: 768px) {
    .navbar-brand .slogan {
        display: none;
    }
}

/* Konum Seçici */
.location-picker {
    display: flex;
    align-items: center;
    color: var(--white);
    padding: 0.5rem;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.location-picker:hover {
    background: rgba(255,255,255,0.1);
}

.location-picker i {
    font-size: 1.1rem;
    margin-right: 0.5rem;
    opacity: 0.9;
}

.location-picker div {
    line-height: 1.1;
}

.location-picker small {
    display: block;
    font-size: 12px;
    opacity: 0.7;
}

.location-picker span {
    font-weight: 700;
}

/* Arama Çubuğu */
.search-bar {
    width: 100%;
}

.search-bar .input-group {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.2s ease;
    height: 40px;
}

.search-bar .input-group:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.category-dropdown .btn {
    background: var(--light-gray);
    color: var(--text-color);
    font-size: 13px;
    padding: var(--btn-padding);
    border: none;
    border-right: 1px solid var(--border-color);
    height: 40px;
}

.category-dropdown .btn i {
    font-size: var(--icon-size-sm);
    margin-right: 8px;
}

.search-bar .form-control {
    padding: 0 16px;
    font-size: 13px;
    border: none;
    height: 40px;
}

.search-btn {
    background: var(--primary-color);
    color: var(--white);
    padding: var(--btn-padding);
    font-size: 13px;
    transition: all 0.2s ease;
    height: 40px;
}

.search-btn:hover {
    background: var(--primary-dark);
}

.search-btn i {
    font-size: var(--icon-size-sm);
}

/* Dil Seçici */
.language-picker {
    display: flex;
    align-items: center;
    color: var(--white);
    padding: 0.5rem;
    border-radius: 2px;
    cursor: pointer;
}

.language-picker:hover {
    background: rgba(255,255,255,0.1);
}

.flag-icon {
    width: 24px;
    height: 16px;
    margin-right: 0.5rem;
}

/* Kullanıcı Menüsü ve Sepet Yeni Stiller */
.user-cart-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-menu {
    position: relative;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.user-menu:hover {
    background: var(--light-gray);
}

.user-menu .user-icon {
    color: var(--accent-color);
    font-size: 24px;
    margin-right: 10px;
}

.user-menu .user-info {
    display: flex;
    flex-direction: column;
}

.user-menu .user-info small {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: -2px;
}

.user-menu .user-info span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
}

.user-menu .dropdown-menu {
    padding: 0;
    border: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    min-width: 220px;
    margin-top: 10px;
}

.user-menu .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: var(--white);
    transform: rotate(45deg);
    border-left: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
}

.user-menu .dropdown-header {
    background: var(--light-gray);
    padding: 12px 15px;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    border-radius: 8px 8px 0 0;
}

.user-menu .dropdown-item {
    padding: 12px 15px;
    font-size: 13px;
    display: flex;
    align-items: center;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.user-menu .dropdown-item:last-child {
    border-bottom: none;
}

.user-menu .dropdown-item i {
    width: 20px;
    margin-right: 10px;
    color: var(--accent-color);
}

.user-menu .dropdown-item:hover {
    background: var(--light-gray);
}

/* Sepet Stiller */
.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cart-link:hover {
    background: var(--light-gray);
}

.cart-link .cart-icon {
    position: relative;
    color: var(--accent-color);
    font-size: 24px;
    margin-right: 10px;
}

.cart-link .cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger-color);
    color: var(--white);
    font-size: 10px;
    font-weight: 600;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.cart-link .cart-info {
    display: flex;
    flex-direction: column;
}

.cart-link .cart-info small {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: -2px;
}

.cart-link .cart-info span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
}

/* Alt Menü */
.bottom-nav {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    font-size: 13px;
    position: relative;
}

.bottom-nav .nav-link {
    color: var(--text-color) !important;
    padding: 12px 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
}

.bottom-nav .nav-link i {
    font-size: var(--icon-size-sm);
}

.bottom-nav .nav-link:hover {
    color: var(--accent-color) !important;
}

.bottom-nav .nav-link:hover i {
    color: var(--accent-color);
}

.bottom-nav .dropdown-menu.mega-menu {
   width: 1200px !important;
    left: 0px;
    padding: 0.5rem;
    border: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    margin-top: 0;
    border-radius: 0 0 8px 8px;
    border-top: 1px solid var(--border-color);
    position: absolute;
    top: 100%;
    background: var(--white);
    display: none;
    margin-left: -30px;
}

.bottom-nav .nav-item.dropdown.show .mega-menu {
    display: block;
}

.bottom-nav .mega-menu .container {
    max-width: 100% !important;
}

/* Dropdown Menüler */
.dropdown-menu {
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-radius: 4px;
    padding: 8px 0;
    margin-top: 5px;
    min-width: 200px;
}

.dropdown-item {
    padding: 8px 16px;
    font-size: 13px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
    height: 36px;
}

.dropdown-item i {
    font-size: var(--icon-size-sm);
    width: 16px;
}

.dropdown-item:hover {
    background: var(--light-gray);
    color: var(--accent-color);
}

.dropdown-item:hover i {
    color: var(--accent-color);
}

/* Mega Menü */
.mega-menu {
    width: 100% !important;
    left: 0;
    right: 0;
    transform: none;
    padding: 1rem 0;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 0;
    border-radius: 0;
    border-top: 1px solid var(--border-color);
    position: absolute;
    top: 100%;
    background: var(--white);
    display: none;
    z-index: 999;
}

.mega-menu .container {
    max-width: 100% !important;
    margin: 0 auto;
    padding: 0 30px;
}

.mega-menu .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
    justify-content: flex-start;
}

.mega-menu .col-md-3 {
    flex: 0 0 14.285%;
    max-width: 14.285%;
    padding: 0 10px;
    margin-bottom: 15px;
}

.mega-menu .dropdown-header {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    padding: 0 0 8px 0;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.mega-menu .list-unstyled {
    margin: 0;
    padding: 0;
    min-height: auto;
}

.mega-menu .dropdown-item {
    padding: 4px 8px;
    font-size: 12px;
    color: var(--text-color);
    border-radius: 4px;
    margin-bottom: 2px;
    height: auto;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.mega-menu .dropdown-item i {
    font-size: 12px;
}

.mega-menu .text-primary {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    margin-top: 8px;
    color: var(--text-light) !important;
    text-decoration: none;
}


.mega-menu a .text-primary {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    margin-top: 8px;
    color: var(--text-color) !important;
}

@media (max-width: 1400px) {
    .mega-menu .col-md-3 {
        flex: 0 0 16.666%;
        max-width: 16.666%;
    }
}

@media (max-width: 992px) {
    .mega-menu {
        position: fixed;
        width: 100% !important;
        left: 0;
        top: 60px;
        padding: 10px;
        height: calc(100vh - 60px);
        overflow-y: auto;
    }
    
    .mega-menu .container {
        padding: 0 15px;
    }
    
    .mega-menu .col-md-3 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

.category-dropdown.show .mega-menu,
.nav-item.dropdown.show .mega-menu {
    display: block;
}

.mega-menu .dropdown-header:hover {
    color: var(--accent-color);
}

.mega-menu .dropdown-header i {
    color: var(--accent-color);
    font-size: var(--icon-size-md);
}

.mega-menu .text-primary:hover {
    background: rgba(52, 152, 219, 0.1);
}

.mega-menu .text-primary i {
    transition: transform 0.2s ease;
}

.mega-menu .text-primary:hover i {
    transform: translateX(4px);
}

/* Mega Menü Arka Plan Overlay */
.mega-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
    backdrop-filter: blur(4px);
}

.show + .mega-menu-overlay {
    display: block;
}

/* Ana Menü */
.main-nav {
    margin-left: 1rem;
}

.main-nav .nav-link {
    font-weight: 600;
}

/* Responsive */
@media (max-width: 992px) {
    .location-picker, 
    .language-picker,
    .user-menu small,
    .orders-link,
    .cart-text {
        display: none;
    }
    
    .search-bar {
        margin: 10px 0;
    }
    
    .category-dropdown {
        display: none;
    }
    
    .category-dropdown .mega-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        overflow-y: auto;
        margin: 0;
        border-radius: 0;
    }
    
    .category-dropdown .mega-menu .dropdown-header {
        font-size: 14px;
    }
    
    .category-dropdown .mega-menu .dropdown-item {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .main-nav {
        margin-left: 0;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .btn {
        height: 36px;
        padding: 8px 12px;
    }

    .search-bar .input-group {
        height: 36px;
    }

    .bottom-nav .nav-link {
        height: 40px;
        padding: 8px 12px;
    }
}

/* Container genişliği */
.container {
    max-width: 1536px !important;
    margin: 0 auto;
    padding: 0 15px;
}

.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
}

/* Hero Bölümü */
.hero {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    padding: 4rem 0;
    margin-bottom: 3rem;
    border-radius: 15px;
    margin-top: 20px;
}

.hero h1 {
    font-size: 2.8rem;
    line-height: 1.3;
    color: var(--text-color);
}

.hero .lead {
    font-size: 1.25rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

.hero .btn-primary {
    padding: 1rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--secondary-color);
    border: none;
    transition: all 0.3s ease;
}

.hero .btn-primary:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Ürün Kartları */
.card {
    border: 1px solid var(--border-color);
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    background: var(--white);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.card-text {
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.card .btn-primary {
    background: var(--accent-color);
    border: none;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    color: var(--white);
}

.card .btn-primary:hover {
    background: var(--accent-dark);
}

/* Kategori Kartları */
.category-card {
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    background: var(--white);
}

.category-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

/* Newsletter */
.newsletter {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    border-radius: 15px;
    margin: 2rem 0;
}

/* Features */
.features {
    background: var(--white);
    padding: 4rem 0;
}

.feature-card {
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.features i {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    font-size: var(--icon-size-lg);
}

.features .col-md-4:hover i {
    transform: scale(1.2);
    color: var(--accent-color);
}

.features h4 {
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.features p {
    color: var(--text-light);
}

/* Footer */
footer {
    background: var(--primary-color);
    padding: 4rem 0 2rem;
}

footer h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 1px;
    background: #c22a00;
}

footer p, footer a {
    color: rgba(255,255,255,0.8);
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--accent-color);
    text-decoration: none;
    padding-left: 5px;
}

.social-links a {
    font-size: 1.5rem;
    margin-right: 1.5rem;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.social-links i {
    font-size: var(--icon-size-sm);
}

/* Fiyat Stilleri */
.price {
    color: var(--accent-color);
    font-weight: 700;
}

.price-old {
    color: var(--text-muted);
    text-decoration: line-through;
}

/* Durum Etiketleri */
.badge-success {
    background: var(--success-color);
}

.badge-warning {
    background: var(--warning-color);
}

.badge-danger {
    background: var(--danger-color);
}

.badge-info {
    background: var(--info-color);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        text-align: center;
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero img {
        margin-top: 2rem;
    }
    
    .features {
        padding: 3rem 0;
    }
    
    .card-img-top {
        height: 200px;
    }
}

/* Responsive Düzenlemeler */
@media (max-width: 768px) {
    .user-cart-section {
        gap: 10px;
    }
    
    .user-menu, .cart-link {
        padding: 8px;
    }
    
    .user-menu .user-info, 
    .cart-link .cart-info {
        display: none;
    }
    
    .user-menu .user-icon,
    .cart-link .cart-icon {
        margin-right: 0;
    }
}

/* Slider Styles */
.hero-slider {
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.hero-slider .swiper {
    width: 100%;
    height: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.hero-slider .swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-slider .slide-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 50px;
    color: var(--white);
}

.hero-slider .slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.hero-slider h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.hero-slider p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.2s;
}

.hero-slider .btn-group {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.4s;
}

.hero-slider .swiper-slide-active h2,
.hero-slider .swiper-slide-active p,
.hero-slider .swiper-slide-active .btn-group {
    opacity: 1;
    transform: translateY(0);
}

.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    color: var(--accent-color);
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
}

.hero-slider:hover .swiper-button-next,
.hero-slider:hover .swiper-button-prev {
    opacity: 1;
    transform: scale(1);
}

.hero-slider .swiper-button-next {
    right: 20px;
}

.hero-slider .swiper-button-prev {
    left: 20px;
}

.hero-slider .swiper-button-next:hover,
.hero-slider .swiper-button-prev:hover {
    background: var(--accent-color);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.hero-slider .swiper-button-next::after,
.hero-slider .swiper-button-prev::after {
    font-size: 16px;
    font-weight: bold;
}

.hero-slider .swiper-pagination {
    bottom: 20px !important;
}

.hero-slider .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.7);
    opacity: 0.7;
    transition: all 0.3s ease;
    margin: 0 5px !important;
}

.hero-slider .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--white);
    transform: scale(1.3);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .hero-slider .swiper-button-next,
    .hero-slider .swiper-button-prev {
        width: 32px;
        height: 32px;
    }
    
    .hero-slider .swiper-button-next::after,
    .hero-slider .swiper-button-prev::after {
        font-size: 14px;
    }
    
    .hero-slider .swiper-button-next {
        right: 10px;
    }
    
    .hero-slider .swiper-button-prev {
        left: 10px;
    }
    
    .hero-slider .swiper-pagination-bullet {
        width: 6px;
        height: 6px;
    }
} 

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-primary:hover {
    color: var(--primary-dark) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.ring-primary {
    --tw-ring-color: var(--primary-color);
}

.focus\:ring-primary:focus {
    --tw-ring-color: var(--primary-color);
}

.hover\:bg-primary-dark:hover {
    background-color: var(--primary-dark);
} 