/* İsova Ambalaj B2B Platform Custom Styles */

/* Ana Renkler */
:root {
    --primary-color: #8b5cf6;
    /* Değiştirildi: Mor Ana Renk */
    --primary-dark: #7c3aed;
    /* Değiştirildi: Koyu Mor */
    --secondary-color: #f8f9fa;
    --accent-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --dark-color: #343a40;
    --light-color: #f5f6fa;
    --border-color: #dee2e6;
    --text-muted: #6c757d;
}

/* Genel Stiller */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-color);
    line-height: 1.6;
}

/* Navbar */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Navbar Dropdown Geliştirmeleri */
.navbar .dropdown-menu {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
}

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

.navbar .dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    margin: 0.125rem 0.5rem;
}

.navbar .dropdown-item:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.navbar .dropdown-item i {
    width: 20px;
    margin-right: 0.75rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.navbar .dropdown-item:hover i {
    color: white;
}

.navbar .dropdown-toggle::after {
    transition: transform 0.3s ease;
}

.navbar .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* Buttons */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(139, 92, 246, 0.3);
    /* Değiştirildi */
}

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

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

/* Mobil Müşteri Paneli */
/* Mobil Panel Sistemi */
.mobile-panel-container {
    margin: 1rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: white;
}

.mobile-panel-toggle {
    border: none;
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--dark-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.mobile-panel-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.mobile-panel-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(139, 92, 246, 0.25);
    /* Değiştirildi */
}

.panel-chevron {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
}

.mobile-panel-toggle[aria-expanded="true"] .panel-chevron {
    transform: rotate(180deg);
}

.mobile-panel-collapse {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-panel-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 0;
}

.mobile-panel-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.admin-avatar {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.supplier-avatar {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.user-details h6 {
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
}

.user-details small {
    opacity: 0.9;
    font-size: 0.85rem;
}

.mobile-panel-nav {
    padding: 0.5rem 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    /* Değiştirildi */
    transition: left 0.5s ease;
}

.mobile-nav-link:hover::before {
    left: 100%;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(139, 92, 246, 0.1) 100%);
    /* Değiştirildi */
    border-left-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateX(5px);
}

.mobile-nav-link i {
    width: 24px;
    margin-right: 1rem;
    font-size: 1.1rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.mobile-nav-link:hover i,
.mobile-nav-link.active i {
    transform: scale(1.1);
    color: var(--primary-color);
}

.mobile-nav-link span {
    font-weight: 500;
    font-size: 1rem;
}

/* Çıkış yap linki için özel stil */
.mobile-nav-link.logout-link {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.05) 0%, rgba(220, 53, 69, 0.1) 100%);
}

.mobile-nav-link.logout-link:hover {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.2) 100%);
    border-left-color: #dc3545;
    color: #dc3545;
}

.mobile-nav-link.logout-link i {
    color: #dc3545;
}

.mobile-nav-link.logout-link:hover i {
    color: #dc3545;
    transform: scale(1.1);
}

/* Mobilde giriş/kayıt linklerini göster */
@media (max-width: 767.98px) {
    .mobile-auth-links {
        display: block !important;
        text-align: center;
        padding: 1rem;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    .mobile-auth-links .btn {
        margin: 0.25rem;
        min-width: 120px;
    }
}

/* Mobil sepet badge'i için özel stil */
.mobile-cart-badge {
    font-size: 0.6rem !important;
    padding: 0.2rem 0.3rem !important;
    top: -5px !important;
    right: -5px !important;
    z-index: 10;
}

/* Sidebar Aktif Link Stili */
.sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: white;
    border-radius: 0.375rem;
    margin: 0.125rem 0.5rem;
}

.sidebar .nav-link.active i {
    color: white;
}

/* Sidebar Link Hover Efekti */
.sidebar .nav-link:hover {
    background-color: rgba(139, 92, 246, 0.1);
    /* Değiştirildi */
    border-radius: 0.375rem;
    margin: 0.125rem 0.5rem;
    transition: all 0.3s ease;
}

.sidebar .nav-link {
    color: var(--dark-color);
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin: 0.125rem 0.5rem;
    transition: all 0.3s ease;
}

.sidebar .nav-link i {
    width: 20px;
    margin-right: 0.75rem;
    color: var(--primary-color);
}

/* Eski müşteri panelini mobilde gizle */
@media (max-width: 767.98px) {
    .sidebar {
        display: none !important;
    }

    /* Panelin kapladığı alanı kaldır ve yan boşlukları ayarla */
    .main-content {
        margin-left: 0 !important;
        padding-left: 1px !important;
        padding-right: 1px !important;
    }

    /* Mobil panel animasyonları */
    .mobile-panel-collapse.collapsing {
        transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-panel-toggle {
        border-radius: 1rem 1rem 0 0;
    }

    .mobile-panel-toggle[aria-expanded="true"] {
        border-radius: 1rem 1rem 0 0;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
        color: white;
    }
}

/* Masaüstünde göster */
@media (min-width: 768px) {
    .mobile-panel-container {
        display: none !important;
    }

    .sidebar {
        display: block !important;
    }
}

/* Sidebar Aktif Link Stili */
.sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: white;
    border-radius: 0.375rem;
    margin: 0.125rem 0.5rem;
}

.sidebar .nav-link.active i {
    color: white;
}

/* Sidebar Link Hover Efekti */
.sidebar .nav-link:hover {
    background-color: rgba(139, 92, 246, 0.1);
    /* Değiştirildi */
    border-radius: 0.375rem;
    margin: 0.125rem 0.5rem;
    transition: all 0.3s ease;
}

.sidebar .nav-link {
    color: var(--dark-color);
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin: 0.125rem 0.5rem;
    transition: all 0.3s ease;
}

.sidebar .nav-link i {
    width: 20px;
    margin-right: 0.75rem;
    color: var(--primary-color);
}

/* Cards */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
    border-radius: 1rem 1rem 0 0 !important;
    font-weight: 600;
}

/* Form Controls */
.form-control {
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(139, 92, 246, 0.25);
    /* Değiştirildi */
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Tables */
.table {
    border-radius: 0.5rem;
    overflow: hidden;
}

.table th {
    background-color: var(--secondary-color);
    border-top: none;
    font-weight: 600;
    color: var(--dark-color);
}

.table-hover tbody tr:hover {
    background-color: rgba(139, 92, 246, 0.05);
    /* Değiştirildi */
}

/* Badges */
.badge {
    font-size: 0.75em;
    font-weight: 500;
    border-radius: 0.375rem;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 0.75rem;
    font-weight: 500;
}

.alert-dismissible .btn-close {
    padding: 1rem 1rem;
}

/* Sidebar */
.sidebar {
    background-color: #fff;
    min-height: calc(100vh - 76px);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0 1rem 1rem 0;
}

.sidebar .nav-link {
    color: var(--dark-color);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin: 0.125rem 0.5rem;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.sidebar .nav-link i {
    width: 20px;
    margin-right: 0.75rem;
}

/* Stats Cards */
.stats-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 1rem;
    transition: transform 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
}

.stats-card .card-body {
    padding: 2rem;
}

.stats-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stats-card p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Product Cards */
.product-card {
    transition: all 0.3s ease;
    border-radius: 1rem;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}

.product-card .card-img-top {
    height: 160px;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card .card-img-top img {
    max-height: 140px;
    max-width: 100%;
    object-fit: contain;
}

/* Modern Ürün Kartları */
.modern-product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-200);
    transition: all 0.3s ease;
    position: relative;
    height: 450px;
    /* Sabit yükseklik */
    display: flex;
    flex-direction: column;
}

/* Ürün Görseli */
.product-image-container {
    position: relative;
    height: 180px;
    /* Sabit yükseklik */
    width: 100%;
    background: linear-gradient(135deg, var(--neutral-50) 0%, var(--neutral-100) 100%);
    overflow: hidden;
    flex-shrink: 0;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Görsel oranını koru */
    transition: transform 0.5s ease;
}

.product-content {
    padding: 1rem;
    /* %30 küçültüldü: 1.5rem -> 1.05rem */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: calc(100% - 180px);
    /* Görsel alanı çıkar */
}

.product-title {
    font-size: 0.9rem;
    /* %30 küçültüldü: 1.1rem -> 0.77rem */
    font-weight: 700;
    color: var(--neutral-800);
    margin-bottom: 0.5rem;
    /* %30 küçültüldü: 0.5rem -> 0.35rem */
    line-height: 1.3;
    height: 2.4em;
    /* 2 satır için sabit yükseklik */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description {
    color: var(--neutral-600);
    font-size: 0.75rem;
    /* %30 küçültüldü: 0.9rem -> 0.63rem */
    line-height: 1.5;
    margin-bottom: 0.75rem;
    /* %30 küçültüldü: 1rem -> 0.7rem */
    height: 2.25em;
    /* 2 satır için sabit yükseklik */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price-section {
    margin-bottom: 0.75rem;
    /* %30 küçültüldü: 1rem -> 0.7rem */
    height: 2.8em;
    /* Sabit yükseklik */
}

.product-sku {
    color: var(--neutral-500);
    font-size: 0.7rem;
    /* %30 küçültüldü: 0.8rem -> 0.56rem */
    margin-bottom: 0.75rem;
    /* %30 küçültüldü: 1rem -> 0.7rem */
    height: 1.4em;
    /* Sabit yükseklik */
}

/* Sepete Ekleme Bölümü */
.cart-section {
    margin-top: auto;
    flex-shrink: 0;
}

/* Kategori Slider */
.category-slider-container {
    position: relative;
    overflow: hidden;
}

.category-slider {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
}

/* Tablet ve altında slider */
@media (max-width: 1199px) {
    .category-slider {
        justify-content: flex-start !important;
        overflow-x: auto !important;
        flex-wrap: nowrap;
    }
}

/* Büyük ekranlarda grid */
@media (min-width: 1200px) {
    .category-slider {
        justify-content: center !important;
        overflow-x: visible !important;
        flex-wrap: wrap;
        gap: 1rem !important;
    }

    .category-slider-container {
        display: flex;
        justify-content: center;
    }
}

.category-slider::-webkit-scrollbar {
    height: 6px;
}

.category-slider::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.category-slider::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

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

.category-card .card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.category-icon {
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

/* Ürün Sliderları */
.product-slider-container {
    position: relative;
    overflow: hidden;
}

.product-slider {
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 10px;
}

.product-slider::-webkit-scrollbar {
    display: none;
}

.product-slide {
    min-width: 280px;
    max-width: 320px;
    flex-shrink: 0;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.slider-nav:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
    /* Değiştirildi */
}

.slider-prev {
    left: -25px;
}

.slider-next {
    right: -25px;
}

/* Fırsat Ürünleri Banner */
.opportunity-banner {
    width: 150px;
    height: 100px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    margin-right: 1rem;
}

.opportunity-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: white;
}

.opportunity-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    50% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }

    100% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .product-slide {
        min-width: 250px;
        max-width: 280px;
    }

    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .slider-prev {
        left: -20px;
    }

    .slider-next {
        right: -20px;
    }

    .opportunity-banner {
        width: 120px;
        height: 80px;
        margin-right: 0.5rem;
    }
}

@media (max-width: 576px) {
    .product-slide {
        min-width: 220px;
        max-width: 250px;
    }

    .slider-nav {
        display: none;
    }

    .opportunity-banner {
        width: 100px;
        height: 70px;
        margin-right: 0.5rem;
    }
}

/* Order Status Badges */
.order-status-pending {
    background-color: var(--warning-color);
    color: #000;
}

.order-status-processing {
    background-color: var(--info-color);
    color: #fff;
}

.order-status-shipped {
    background-color: #6f42c1;
    color: #fff;
}

.order-status-delivered {
    background-color: var(--accent-color);
    color: #fff;
}

.order-status-cancelled {
    background-color: var(--danger-color);
    color: #fff;
}

/* Payment Status Badges */
.payment-status-pending {
    background-color: var(--warning-color);
    color: #000;
}

.payment-status-paid {
    background-color: var(--accent-color);
    color: #fff;
}

.payment-status-partial {
    background-color: var(--info-color);
    color: #fff;
}

.payment-status-cancelled {
    background-color: var(--danger-color);
    color: #fff;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

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

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

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer h5,
.footer h6 {
    color: white;
    font-weight: 600;
}

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

.footer a:hover {
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .stats-card .card-body {
        padding: 1.5rem;
    }

    .stats-card h3 {
        font-size: 2rem;
    }

    .sidebar {
        border-radius: 0;
    }

    .product-card .card-img-top {
        height: 140px;
    }

    .product-card .card-body {
        padding: 0.75rem;
    }

    .category-slider {
        padding-left: 1rem;
        padding-right: 1rem;
        margin-left: -1rem;
        margin-right: -1rem;
    }

    .category-card {
        min-width: 120px !important;
        max-width: 130px !important;
    }

    /* Mobilde ürün kartları daha kare şeklinde */
    .product-card .card-img-top {
        height: 120px !important;
    }

    .product-card .card-body {
        padding: 0.75rem;
    }
}

@media (max-width: 576px) {
    .container-fluid {
        padding-left: 1px;
        padding-right: 1px;
    }

    .card-body {
        padding: 1rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .product-card .card-img-top {
        height: 120px;
    }

    .product-card .card-body {
        padding: 0.6rem;
    }

    .category-slider {
        gap: 0.75rem !important;
        padding-left: 1rem;
        padding-right: 1rem;
        margin-left: -1rem;
        margin-right: -1rem;
    }

    .category-card {
        min-width: 110px !important;
        max-width: 120px !important;
    }

    .category-card .card-body {
        padding: 0.5rem !important;
    }

    .category-icon {
        width: 40px !important;
        height: 40px !important;
    }

    .category-card h6 {
        font-size: 0.75rem !important;
    }

    /* Mobilde ürünler 2'şerli ve daha kare */
    .col-6 .product-card .card-img-top {
        height: 100px !important;
    }

    .col-6 .product-card .card-body {
        padding: 0.5rem;
    }

    /* Mobilde ürünler 2'şerli */
    .col-6 {
        max-width: 50%;
        flex: 0 0 50%;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

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

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

.shadow-primary {
    box-shadow: 0 0.5rem 1rem rgba(139, 92, 246, 0.15) !important;
    /* Değiştirildi */
}

/* Print Styles */
@media print {

    .navbar,
    .footer,
    .btn,
    .sidebar {
        display: none !important;
    }

    .container-fluid {
        margin: 0;
        padding: 0;
    }

    .card {
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* Arama Sonuçları */
.search-suggestions {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    width: 100%;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    display: none;
    overflow: hidden;
    max-height: 500px;
    overflow-y: auto;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.search-container {
    position: relative;
    width: 100%;
}

/* Şık Arama Kutusu */
.search-input-fancy {
    border: 2px solid #e9ecef;
    border-radius: 0 1rem 1rem 0;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.search-input-fancy:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(139, 92, 246, 0.25), 0 8px 25px rgba(0, 0, 0, 0.1);
    /* Değiştirildi */
    transform: translateY(-2px);
}

.search-btn-fancy {
    border-radius: 0 1rem 1rem 0;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    /* Değiştirildi */
    transition: all 0.3s ease;
}

.search-btn-fancy:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    /* Değiştirildi */
}

/* Kedi İkonu */
.search-cat-icon {
    font-size: 2rem;
    display: inline-block;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.search-cat-container {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid #e9ecef;
    border-radius: 1rem 0 0 1rem;
    padding: 1rem;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-cat {
    text-align: center;
    animation: catLook 3s infinite;
}

.cat-head {
    font-size: 1.5rem;
    margin-bottom: -5px;
}

.cat-paws {
    font-size: 0.8rem;
    opacity: 0.7;
}

@keyframes catLook {

    0%,
    90%,
    100% {
        transform: rotate(0deg);
    }

    45% {
        transform: rotate(-10deg);
    }

    55% {
        transform: rotate(10deg);
    }
}

/* Arama Sonuç Bölümleri */
.search-section-header {
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.search-category {
    padding: 0.75rem 1rem;
    background-color: var(--surface);
    color: var(--text-secondary);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.search-suggestion {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.search-suggestion:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(139, 92, 246, 0.1));
    /* Değiştirildi */
    transform: translateX(5px);
}

.category-suggestion {
    background: rgba(139, 92, 246, 0.02);
    /* Değiştirildi */
}

.category-suggestion:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0.15));
    /* Değiştirildi */
}

.suggestion-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-right: 1rem;
    border-radius: 0.75rem;
    background-color: var(--surface);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.suggestion-content {
    flex-grow: 1;
}

.suggestion-name {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.suggestion-details {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.suggestion-price {
    font-weight: 600;
    color: var(--primary-color);
    margin-left: auto;
    white-space: nowrap;
}

.suggestion-count {
    background: var(--primary-color);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.no-results {
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
}

.sad-cat {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: sadBounce 1s ease-in-out infinite alternate;
}

@keyframes sadBounce {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-5px);
    }
}

.search-loading {
    padding: 1rem;
    text-align: center;
}

.search-loading .spinner-border {
    margin-right: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .search-cat-container {
        min-width: 60px;
        padding: 0.75rem;
    }

    .cat-head {
        font-size: 1.2rem;
    }

    .search-input-fancy {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }

    .search-btn-fancy {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    .search-suggestions {
        max-height: 300px;
    }

    .suggestion-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* Mobil Cihazlar İçin Dikey Hizalanmış Tablo */
@media (max-width: 767.98px) {
    .table-mobile-stacked thead {
        display: none;
    }

    .table-mobile-stacked tbody tr {
        display: block;
        border: 1px solid #dee2e6;
        margin-bottom: 0.5rem;
        border-radius: 0.25rem;
    }

    .table-mobile-stacked tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #f1f1f1;
        padding: 0.5rem 0.75rem;
    }

    .table-mobile-stacked tbody td:last-child {
        border-bottom: 0;
    }

    .table-mobile-stacked tbody td::before {
        content: attr(data-label);
        font-weight: bold;
    }
}

/* Mobil Cihazlar İçin Özel Stiller */
@media (max-width: 767.98px) {

    /* Ödeme özeti kartları için eşit yükseklik */
    .stats-card {
        height: 100%;
        min-height: 140px;
    }

    .stats-card .card-body {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
        padding: 1rem;
    }

    .stats-card h3 {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem;
    }

    .stats-card p {
        font-size: 0.9rem;
        margin-bottom: 0;
    }

    .stats-card i {
        font-size: 1.5rem !important;
        margin-bottom: 0.75rem !important;
    }

    /* Masaüstü sidebar'ını mobilde gizle */
    .sidebar {
        display: none !important;
    }

    /* Ana içeriğin tam genişlik kullanmasını sağla */
    .col-md-9.col-lg-10 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Mobil ürün kartları için genel optimizasyon */
    .product-card {
        margin-bottom: 0.5rem !important;
    }

    .product-card .card-body {
        padding: 0.5rem !important;
    }

    /* Mobil kategori kartları için genel optimizasyon */
    .category-card {
        margin-bottom: 0.5rem !important;
    }

    .category-card .card-body {
        padding: 0.5rem !important;
    }

    /* Mobilde container padding azaltma */
    .container-fluid .p-4 {
        padding: 1rem !important;
    }

    /* Mobil Sipariş ve Ödeme Kartları */
    .order-mobile-card,
    .payment-mobile-card {
        border-left: 4px solid var(--primary-color);
        transition: all 0.3s ease;
    }

    .order-mobile-card:hover,
    .payment-mobile-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }

    .order-mobile-card .card-title,
    .payment-mobile-card .card-title {
        font-size: 1rem;
        font-weight: 600;
        color: var(--dark-color);
    }

    .order-mobile-card .badge,
    .payment-mobile-card .badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    /* Mobil butonlar için özel stil */
    .order-mobile-card .btn,
    .payment-mobile-card .btn {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }

    /* Mobil tarih ve durum bilgileri */
    .order-mobile-card .row,
    .payment-mobile-card .row {
        margin: 0;
    }

    .order-mobile-card .col-6,
    .payment-mobile-card .col-6 {
        padding: 0.25rem;
    }

    /* Mobil fiyat gösterimi */
    .order-mobile-card .h5,
    .payment-mobile-card .h5 {
        font-size: 1.1rem;
        font-weight: 700;
    }
}

/* Masaüstü Dashboard Kartları için Eşit Yükseklik */
@media (min-width: 768px) {

    /* Masaüstünde 4'lü grid düzeni */
    .stats-card {
        min-height: 180px;
    }

    .stats-card .card-body {
        padding: 2rem 1.5rem;
    }

    .stats-card h3 {
        font-size: 2.2rem;
    }

    .stats-card p {
        font-size: 1.1rem;
    }
}

/* Büyük ekranlar için daha iyi görünüm */
@media (min-width: 1200px) {
    .stats-card {
        min-height: 200px;
    }

    .stats-card .card-body {
        padding: 2.5rem 2rem;
    }

    .stats-card h3 {
        font-size: 2.5rem;
    }

    .stats-card p {
        font-size: 1.2rem;
    }
}

/* Gelişmiş Mobil Panel Animasyonları */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.mobile-panel-content.show {
    animation: slideInDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-link {
    animation: fadeInUp 0.3s ease forwards;
}

.mobile-nav-link:nth-child(1) {
    animation-delay: 0.1s;
}

.mobile-nav-link:nth-child(2) {
    animation-delay: 0.15s;
}

.mobile-nav-link:nth-child(3) {
    animation-delay: 0.2s;
}

.mobile-nav-link:nth-child(4) {
    animation-delay: 0.25s;
}

.mobile-nav-link:nth-child(5) {
    animation-delay: 0.3s;
}

.mobile-nav-link:nth-child(6) {
    animation-delay: 0.35s;
}

.mobile-nav-link:nth-child(7) {
    animation-delay: 0.4s;
}

.mobile-nav-link:nth-child(8) {
    animation-delay: 0.45s;
}

.mobile-nav-link:nth-child(9) {
    animation-delay: 0.5s;
}

/* Mobil Sipariş ve Ödeme Durumu Badge'leri */
@media (max-width: 767.98px) {

    .order-status-pending,
    .payment-status-pending {
        background: linear-gradient(135deg, #ffc107, #ffb300);
        color: #000;
        font-weight: 600;
    }

    .order-status-processing {
        background: linear-gradient(135deg, #17a2b8, #138496);
        color: #fff;
        font-weight: 600;
    }

    .order-status-shipped {
        background: linear-gradient(135deg, #6f42c1, #5a32a3);
        color: #fff;
        font-weight: 600;
    }

    .order-status-delivered,
    .payment-status-completed {
        background: linear-gradient(135deg, #28a745, #1e7e34);
        color: #fff;
        font-weight: 600;
    }

    .order-status-cancelled,
    .payment-status-cancelled,
    .payment-status-failed {
        background: linear-gradient(135deg, #dc3545, #c82333);
        color: #fff;
        font-weight: 600;
    }

    .payment-status-partial {
        background: linear-gradient(135deg, #fd7e14, #e55a00);
        color: #fff;
        font-weight: 600;
    }
}

/* Mobil Vade Tarihi Uyarıları */
@media (max-width: 767.98px) {
    .text-danger.fw-bold {
        animation: pulse 2s infinite;
    }

    @keyframes pulse {
        0% {
            opacity: 1;
        }

        50% {
            opacity: 0.7;
        }

        100% {
            opacity: 1;
        }
    }
}

.stats-number {
    color: white !important;
    /* DÜZELTME: Bu kuralın öncelikli olmasını sağlar */
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stats-label {
    color: white !important;
    opacity: 0.9;
    font-size: 1.1rem;
}

.stats-text {
    color: white !important;
    font-size: 2.7rem;
    font-weight: 700;
    margin-bottom: 1.7rem;
}

/* Mobil Müşteri Paneli */
/* Mobil Sidebar Sistemi */
.mobile-sidebar {
    width: 320px !important;
    max-width: 85vw;
    border-radius: 0 20px 20px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.mobile-sidebar-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 0 20px 0 0;
    border-bottom: none;
}

.mobile-sidebar-header .offcanvas-title {
    font-weight: 700;
    font-size: 1.3rem;
    color: white;
}

.mobile-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.mobile-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.mobile-sidebar-body {
    padding: 0;
    overflow-y: auto;
}

.mobile-menu-section {
    margin-bottom: 1.5rem;
}

.mobile-menu-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 1.5rem 0.5rem;
    margin-bottom: 0;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.mobile-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.mobile-nav-item:hover::before {
    left: 100%;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateX(5px);
    text-decoration: none;
}

.mobile-nav-item i {
    width: 24px;
    margin-right: 1rem;
    font-size: 1.1rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.mobile-nav-item:hover i,
.mobile-nav-item.active i {
    transform: scale(1.1);
    color: var(--primary-color);
}

.mobile-nav-item span {
    font-weight: 500;
    font-size: 1rem;
}

/* Çıkış yap linki için özel stil */
.mobile-nav-item.logout-item {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.05) 0%, rgba(220, 53, 69, 0.1) 100%);
}

.mobile-nav-item.logout-item:hover {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.2) 100%);
    border-left-color: #dc3545;
    color: #dc3545;
}

.mobile-nav-item.logout-item i {
    color: #dc3545;
}

.mobile-nav-item.logout-item:hover i {
    color: #dc3545;
    transform: scale(1.1);
}

/* Kullanıcı Bilgileri */
.mobile-user-info {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(139, 92, 246, 0.1) 100%);
    margin: 0 1rem 1rem;
    border-radius: 15px;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.mobile-user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-right: 1rem;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.mobile-user-details {
    flex-grow: 1;
}

.mobile-user-details h6 {
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark-color);
}

.mobile-user-details small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.mobile-cart-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.mobile-cart-btn:hover {
    background: var(--primary-dark);
    color: white;
    transform: scale(1.1);
    text-decoration: none;
}

.mobile-cart-btn .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.6rem;
    padding: 0.2rem 0.3rem;
}

/* Responsive Ayarlar */
@media (max-width: 576px) {
    .mobile-sidebar {
        width: 280px !important;
        max-width: 90vw;
    }

    .mobile-user-info {
        margin: 0 0.5rem 1rem;
        padding: 1rem;
    }

    .mobile-user-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .mobile-cart-btn {
        width: 40px;
        height: 40px;
    }
}

/* Animasyonlar */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mobile-nav-item {
    animation: slideInFromLeft 0.3s ease forwards;
}

.mobile-nav-item:nth-child(1) {
    animation-delay: 0.1s;
}

.mobile-nav-item:nth-child(2) {
    animation-delay: 0.15s;
}

.mobile-nav-item:nth-child(3) {
    animation-delay: 0.2s;
}

.mobile-nav-item:nth-child(4) {
    animation-delay: 0.25s;
}

.mobile-nav-item:nth-child(5) {
    animation-delay: 0.3s;
}

.mobile-nav-item:nth-child(6) {
    animation-delay: 0.35s;
}

.mobile-nav-item:nth-child(7) {
    animation-delay: 0.4s;
}

.mobile-nav-item:nth-child(8) {
    animation-delay: 0.45s;
}

.mobile-nav-item:nth-child(9) {
    animation-delay: 0.5s;
}

/* Sidebar Aktif Link Stili */
.sidebar .nav-link.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(139, 92, 246, 0.2) 100%);
    /* Değiştirildi */
    color: var(--primary-color) !important;
    border-left: 4px solid var(--primary-color);
    font-weight: 600;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.1);
    /* Değiştirildi */
}

.sidebar .nav-link.active i {
    color: var(--primary-color) !important;
    transform: scale(1.1);
}

/* Sidebar Hover Efekti */
.sidebar .nav-link:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(139, 92, 246, 0.1) 100%);
    /* Değiştirildi */
    color: var(--primary-color) !important;
    transform: translateX(3px);
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover i {
    color: var(--primary-color) !important;
    transform: scale(1.05);
}

/* Sidebar Genel Stil Güncellemeleri */
.sidebar {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-right: 1px solid rgba(139, 92, 246, 0.1);
    /* Değiştirildi */
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
}

.sidebar .nav-link {
    border-radius: 0 25px 25px 0;
    margin: 0.25rem 0;
    margin-right: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.sidebar .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    /* Değiştirildi */
    transition: left 0.5s ease;
}

.sidebar .nav-link:hover::before {
    left: 100%;
}

/* Eski müşteri panelini mobilde gizle */
@media (max-width: 767.98px) {

    /* Masaüstü sidebar'ını mobilde gizle */
    .sidebar {
        display: none !important;
    }

    /* Ana içeriğin tam genişlik kullanmasını sağla */
    .col-md-9.col-lg-10 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Masaüstünde göster */
@media (min-width: 768px) {
    .mobile-sidebar {
        display: none !important;
    }

    .mobile-auth-links {
        display: none !important;
    }
}

/* Mobil Sipariş ve Ödeme Durumu Badge'leri */
@media (max-width: 767.98px) {

    .badge-success {
        background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
        color: white !important;
        font-weight: 600 !important;
        padding: 0.5rem 0.75rem !important;
        border-radius: 20px !important;
        font-size: 0.75rem !important;
        box-shadow: 0 2px 10px rgba(40, 167, 69, 0.3) !important;
    }

    .badge-warning {
        background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%) !important;
        color: #212529 !important;
        font-weight: 600 !important;
        padding: 0.5rem 0.75rem !important;
        border-radius: 20px !important;
        font-size: 0.75rem !important;
        box-shadow: 0 2px 10px rgba(255, 193, 7, 0.3) !important;
    }

    .badge-danger {
        background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
        color: white !important;
        font-weight: 600 !important;
        padding: 0.5rem 0.75rem !important;
        border-radius: 20px !important;
        font-size: 0.75rem !important;
        box-shadow: 0 2px 10px rgba(220, 53, 69, 0.3) !important;
    }

    .badge-info {
        background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important;
        color: white !important;
        font-weight: 600 !important;
        padding: 0.5rem 0.75rem !important;
        border-radius: 20px !important;
        font-size: 0.75rem !important;
        box-shadow: 0 2px 10px rgba(23, 162, 184, 0.3) !important;
    }

    .badge-primary {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
        color: white !important;
        font-weight: 600 !important;
        padding: 0.5rem 0.75rem !important;
        border-radius: 20px !important;
        font-size: 0.75rem !important;
        box-shadow: 0 2px 10px rgba(139, 92, 246, 0.3) !important;
        /* Değiştirildi */
    }
}

/* Mobilde sidebar gizle ve ana içeriği genişlet */
@media (max-width: 767.98px) {
    .sidebar {
        display: none !important;
    }

    /* Panelin kapladığı alanı kaldır */
    .main-content {
        margin-left: 0 !important;
        padding-left: 1px !important;
        padding-right: 1px !important;
    }
}

/* Toast Container Stilleri */
#toast-container {
    z-index: 9999;
}

.toast {
    min-width: 300px;
}

.toast-body {
    font-weight: 500;
}

/* Sepete Ekleme Butonu Animasyonları */
.add-to-cart {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.add-to-cart.btn-success {
    animation: successPulse 0.6s ease-in-out;
}

@keyframes successPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Spinner animasyonu */
.fa-spinner.fa-spin {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Ürün kartları için genel stiller */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Miktar input'u stilleri */
.quantity-input {
    max-width: 80px;
    text-align: center;
}

/* Başarı mesajı için özel stil */
.success-message {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    padding: 10px 15px;
    border-radius: 5px;
    margin: 10px 0;
    border: 1px solid;
}

/* Hata mesajı için özel stil */
.error-message {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    padding: 10px 15px;
    border-radius: 5px;
    margin: 10px 0;
    border: 1px solid;
}

/* ========================
   YENİ HEADER STİLLERİ 
   =====================

/* Genel Header Yapısı */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Üst Bilgi Barı */
.header-top {
    background-color: #f8f9fa;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid #e9ecef;
}

.header-top-text {
    color: var(--dark-color);
    font-weight: 500;
}

.header-top-links a {
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.header-top-links a:hover {
    color: var(--primary-color);
}

/* Orta Bölüm */
.header-middle {
    padding: 20px 0;
}

.logo img {
    max-height: 50px;
    width: auto;
}

/* Arama Çubuğu */
.site-search {
    position: relative;
}

.site-search .form-control {
    height: 48px;
    border-radius: 24px;
    padding-left: 20px;
    padding-right: 60px; /* Buton için yer aç */
    border: 1px solid #ced4da;
}

.site-search .btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    height: 38px;
    width: 38px;
    border-radius: 50%;
    padding: 0;
}

/* Arama Sonuçları */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 1050;
    display: none;
    max-height: 450px;
    overflow-y: auto;
}

.search-section-header {
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 0.9rem;
    position: sticky;
    top: 0;
    z-index: 1;
}

.search-suggestion {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--dark-color);
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}
.search-suggestion:last-child {
    border-bottom: none;
}
.search-suggestion:hover {
    background-color: #f1f3f5;
}

.suggestion-image {
    width: 45px;
    height: 45px;
    object-fit: contain;
    margin-right: 1rem;
    border-radius: 0.5rem;
    background-color: #fff;
    border: 1px solid #e9ecef;
}

.suggestion-name {
    font-weight: 500;
    margin-bottom: 0;
}

.suggestion-category {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.suggestion-price {
    font-weight: 600;
    color: var(--primary-color);
    margin-left: auto;
    white-space: nowrap;
}

.suggestion-type {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.2rem 0.5rem;
    border-radius: 1rem;
    background-color: #e9ecef;
    color: var(--text-muted);
}

.no-results {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-muted);
}

/* Header Sağ Taraf (Kullanıcı & Sepet) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-action-item .header-action-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.header-action-item .header-action-link:hover {
    color: var(--primary-color);
}

.header-action-item .header-action-link i {
    font-size: 1.5rem;
    margin-right: 8px;
}

/* Ana Navigasyon (Alt Bölüm) */
.header-bottom {
    background-color: #fff;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.header-bottom.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1020;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    animation: slideDown 0.3s ease-out;
}

.main-nav .nav-item {
    position: static; /* Mega menü için gerekli */
}

.main-nav .nav-link {
    padding: 15px 20px;
    color: var(--dark-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

/* Mega Menü */
.mega-menu {
    display: block; /* Let Bootstrap handle display, we control visibility */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    width: 100%;
    background-color: #fff;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-top: 2px solid var(--primary-color);
    border-radius: 0 0 1rem 1rem;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s, transform 0.3s ease;
    pointer-events: none; /* Prevent interaction when hidden */
}

/* When JS adds the .show class */
.mega-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.3s ease, visibility 0s linear 0s, transform 0.3s ease;
    pointer-events: auto; /* Allow interaction when shown */
}

.mega-menu-item {
    display: block;
    text-align: center;
    text-decoration: none;
    color: var(--dark-color);
    padding: 10px;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.mega-menu-item:hover {
    background-color: #f8f9fa;
    transform: translateY(-3px);
}

.mega-menu-item img {
    max-height: 80px;
    margin-bottom: 10px;
    object-fit: contain;
}

.mega-menu-item span {
    font-weight: 500;
    display: block;
}

/* Mobil Menü (Offcanvas) */
.mobile-nav-item-group .parent-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mobile-nav-item-group .parent-link i {
    transition: transform 0.3s ease;
}
.mobile-nav-item-group .parent-link[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.mobile-submenu {
    padding-left: 20px;
    background-color: #f8f9fa;
}
.mobile-submenu .sub-link {
    font-size: 0.9rem;
    padding-top: 8px;
    padding-bottom: 8px;
}

/* Responsive Düzenlemeler */
@media (max-width: 991.98px) {
    .header-top-links {
        display: none !important;
    }
    .header-top {
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    .header-middle {
        padding: 15px 0;
    }
    .logo img {
        max-height: 100px;
    }
    .header-actions {
        gap: 100px;
    }
    .header-action-item .header-action-link i {
        font-size: 2rem;
        margin-right: 0;
    }
}

/* Animation Classes */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* ===================================================================
   MESAJLAR SAYFASI MOBİL UYUMLULUK
   =================================================================== */

.message-mobile-card {
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.message-mobile-card.unread {
    border-left: 4px solid var(--primary-color);
    background-color: #fef8f5; /* Hafif mor arka plan */
}

.message-mobile-card .card-header {
    background-color: #f8f9fa;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.message-mobile-card .message-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-mobile-card .card-body {
    padding: 1rem;
}

.message-mobile-card .card-footer {
    background-color: #f8f9fa;
    border-top: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
}

.message-mobile-card .btn {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
}


/* ===================================================================
   MEGA MENÜ GÜNCELLEMESİ (STABİL ÇALIŞMA İÇİN)
   =================================================================== */

/* Sadece geniş ekranlarda (masaüstü) fareyle üzerine gelince çalışır */
@media (min-width: 992px) {
    .main-nav .nav-item.dropdown:hover>.dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .mega-menu {
        display: block;
        /* Her zaman blok element olarak kalsın */
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        /* Hafif bir animasyon için başlangıç pozisyonu */
        pointer-events: none;
        /* Gizliyken tıklanamaz yap */
        transition: opacity 0.3s ease, visibility 0s linear 0.3s, transform 0.3s ease;
    }

    .main-nav .nav-item.dropdown:hover>.mega-menu {
        pointer-events: auto;
        /* Görünür olduğunda tıklanabilir yap */
    }
}

/* Mega Menü Genel Stilleri */
.mega-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    width: 100%;
    background-color: #fff;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 2px solid var(--primary-color);
    border-radius: 0 0 1rem 1rem;
}

/* ===================================================================
   HEADER DROPDOWN MENU STİLLERİ
   ================================================================== */

/* Ana navigasyon stilleri */
.header-bottom {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    z-index: 1000;
}

.header-bottom.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1050;
}

.main-nav {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.main-nav .nav-item {
    position: relative;
    margin-right: 2rem;
}

.main-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.main-nav .nav-link:hover {
    color: #8b5cf6;
}

.main-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #8b5cf6;
    transition: width 0.3s ease;
}

.main-nav .nav-link:hover::after {
    width: 100%;
}

/* Dropdown toggle ok işareti */
.main-nav .dropdown-toggle::before {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 0.5rem;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.main-nav .dropdown:hover .dropdown-toggle::before {
    transform: rotate(180deg);
}

/* Mega Menu Stilleri */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 800px;
    max-width: 1000px;
    background: #fff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

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

/* Mega menu item stilleri */
.mega-menu-item {
    display: block;
    text-decoration: none;
    color: #333;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
    background: #f8f9fa;
    height: 100%;
}

.mega-menu-item:hover {
    background: #8b5cf6;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139,92,246,0.3);
}

.mega-menu-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.mega-menu-item:hover img {
    transform: scale(1.1);
}

.mega-menu-item span {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
}

/* Responsive düzenlemeler */
@media (max-width: 1200px) {
    .mega-menu {
        min-width: 600px;
        max-width: 700px;
    }
    
    .main-nav .nav-item {
        margin-right: 1.5rem;
    }
}

@media (max-width: 991px) {
    .header-bottom {
        display: none !important;
    }
}

/* ===================================================================
   MOBİL MENU STİLLERİ
   ================================================================== */

.mobile-sidebar {
    width: 320px;
    max-width: 90vw;
}

.mobile-sidebar-header {
    background: #8b5cf6;
    color: white;
    border-bottom: none;
    padding: 1.5rem;
}

.mobile-sidebar-header .offcanvas-title {
    color: white;
    font-weight: 600;
    margin: 0;
}

.mobile-close-btn {
    filter: brightness(0) invert(1);
    opacity: 1;
}

.mobile-sidebar-body {
    padding: 0;
    background: #f8f9fa;
}

.mobile-menu-section {
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.mobile-menu-section:last-child {
    border-bottom: none;
}

.mobile-menu-title {
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Kullanıcı bilgi alanı */
.mobile-user-info {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mobile-user-avatar {
    width: 50px;
    height: 50px;
    background: #8b5cf6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-size: 1.5rem;
}

.mobile-user-details h6 {
    margin: 0;
    color: #333;
    font-weight: 600;
}

.mobile-user-details small {
    color: #666;
}

/* Mobil navigasyon linkleri */
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-item-group {
    margin-bottom: 0.5rem;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: white;
    border: 1px solid #e0e0e0;
}

.mobile-nav-item:hover {
    background: #8b5cf6;
    color: white;
    text-decoration: none;
    border-color: #8b5cf6;
}

.mobile-nav-item i {
    width: 20px;
    margin-right: 0.75rem;
    text-align: center;
}

.mobile-nav-item.parent-link {
    font-weight: 500;
    justify-content: space-between;
}

.mobile-nav-item.parent-link i.fa-chevron-down {
    width: auto;
    margin-right: 0;
    margin-left: auto;
    transition: transform 0.3s ease;
}

.mobile-nav-item.parent-link[aria-expanded="true"] i.fa-chevron-down {
    transform: rotate(180deg);
}

/* Alt kategori stilleri */
.mobile-submenu {
    margin-top: 0.5rem;
    padding-left: 1rem;
    border-left: 2px solid #8b5cf6;
}

.mobile-submenu .mobile-nav-item {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
}

.mobile-submenu .mobile-nav-item.sub-link {
    background: #f0f0f0;
    border-color: #d0d0d0;
}

.mobile-submenu .mobile-nav-item.sub-link:hover {
    background: #e8f4f8;
    color: #8b5cf6;
    border-color: #8b5cf6;
}

.mobile-submenu .mobile-nav-item.fw-bold {
    background: #f8f4ff;
    color: #8b5cf6;
    border-color: #8b5cf6;
    font-weight: 600;
}

/* Çıkış linki özel stili */
.mobile-nav-item.logout-item {
    background: #fff5f5;
    border-color: #fecaca;
    color: #dc2626;
}

.mobile-nav-item.logout-item:hover {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

/* Animasyonlar */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-submenu.show {
    animation: slideDown 0.3s ease;
}

/* Scrollbar stilleri */
.mobile-sidebar-body::-webkit-scrollbar {
    width: 4px;
}

.mobile-sidebar-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.mobile-sidebar-body::-webkit-scrollbar-thumb {
    background: #8b5cf6;
    border-radius: 2px;
}

.mobile-sidebar-body::-webkit-scrollbar-thumb:hover {
    background: #7c3aed;
}

/* ===================================================================
   YENİ KATEGORİ SAYFASI STİLLERİ (GÖRSELE UYGUN)
   =================================================================== */

.category-page-title-container {
    margin-bottom: 2rem;
}

.category-page-title {
    font-weight: 700;
    color: var(--dark-color);
}

.category-filter-bar.card {
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.category-display-card {
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.category-display-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.category-image-link {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #f8f9fa;
}

.category-image-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.category-display-card:hover .category-image-link img {
    transform: scale(1.05);
}

.category-display-card .image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef;
    color: #adb5bd;
    font-size: 3rem;
}

.category-display-card .card-body {
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.category-display-card .card-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
    flex-grow: 1;
}

.category-display-card .product-count {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.category-display-card .btn {
    margin-top: auto; /* Butonu her zaman en alta iter */
}

/* ===================================================================
   KATEGORİ SAYFASI GÜNCELLEMELERİ
   =================================================================== */

.category-filter-bar.card {
    position: relative; /* z-index'in çalışması için gerekli */
    z-index: 2; /* Kartların üzerinde kalmasını sağlar */
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.category-page-card {
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.category-page-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.category-page-card .card-img-top-container {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #f8f9fa;
}

.category-page-card .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.category-page-card:hover .card-img-top {
    transform: scale(1.1);
}

.category-page-card .card-body {
    padding: 1rem;
}

.category-page-card .card-title {
    font-weight: 600;
    color: var(--dark-color);
    transition: color 0.3s ease;
}

.category-page-card:hover .card-title {
    color: var(--primary-color);
}

/* ===================================================================
   YENİ EKLENEN KURALLAR (TÜM MOBİL BAŞLIKLAR İÇİN)
   =================================================================== */
@media (max-width: 768px) {

    /* Genel mobile header düzeni için */
    .header-middle .row>div:first-child {
        /* Logo için */
        flex: 0 0 auto;
        width: 45%;
    }

    .header-middle .row>div:last-child {
        /* Aksiyon ikonları için */
        flex: 0 0 auto;
        width: 55%;
    }

    .header-middle .row>div:nth-child(2) {
        /* Arama çubuğu için */
        flex: 0 0 100%;
        width: 100%;
        margin-top: 1rem;
    }

    /* Aksiyon ikonlarını sağa hizalamak için */
    .header-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 15px;
    }

    /* İkon boyutunu küçültmek için */
    .header-actions .header-action-link i {
        font-size: 1.25rem;
    }
}
