/* Classic Tema - CSS */

/* Temel Renkler */
.bg-primary {
    background-color: var(--primary-color) !important;
}

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

/* Kategori Başlığı */
.category-title {
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Kategori Navigasyonu */
.category-nav .nav-tabs {
    border-bottom: 2px solid var(--secondary-color);
}

.category-nav .nav-link {
    color: var(--text-color);
    font-weight: 500;
    border: none;
    border-radius: 0;
    padding: 10px 20px;
}

.category-nav .nav-link.active {
    color: var(--primary-color);
    background-color: transparent;
    border-bottom: 3px solid var(--primary-color);
}

.category-nav .nav-link:hover {
    color: var(--secondary-color);
}

/* Ürün Kartı */
.product-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

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

.product-img {
    height: 200px;
    object-fit: cover;
}

.price-tag {
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

/* Mobil Sabit Menü ve Kategori Paneli */
.mobile-fixed-menu {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--light-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 99;
    padding: 10px 0;
}

.mobile-menu-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-fixed-menu button {
    background: none;
    border: none;
    color: var(--text-color);
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: 100%;
}

.mobile-fixed-menu button i {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.mobile-fixed-menu .menu-toggle {
    background-color: var(--primary-color);
    color: white;
    border-radius: 8px;
}

.mobile-category-panel {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background-color: #fff;
    height: 70vh;
    z-index: 100;
    transition: bottom 0.3s ease-in-out;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

.mobile-category-panel.active {
    bottom: 0;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.panel-header h3 {
    margin: 0;
    color: #343a40;
    font-size: 1.3rem;
}

.close-panel {
    background: none;
    border: none;
    color: #343a40;
    font-size: 1.2rem;
    padding: 5px;
}

.panel-body {
    padding: 15px;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 8px;
}

.category-list a {
    display: block;
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    color: #343a40;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    position: relative;
    border-left: 4px solid transparent;
}

.category-list a:after {
    content: '\f054';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
    font-size: 0.8rem;
}

.category-list a.active {
    background-color: #f0f8ff;
    color: #007bff;
    border-left-color: #007bff;
}

.panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 98;
    display: none;
}

.panel-overlay.active {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .category-nav .nav-link {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .product-img {
        height: 160px;
    }
}

@media (max-width: 576px) {
    .category-nav .nav {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    
    .category-nav .nav-item {
        flex-shrink: 0;
    }
}

/* Mobil cihazlar için düzenlemeler */
@media (max-width: 767.98px) {
    .mobile-fixed-menu {
        display: block;
    }
    
    /* Masaüstü menüsünü mobil görünümde gizle */
    .category-nav, .nav-tabs {
        display: none !important;
    }
    
    body {
        padding-bottom: 60px;
    }
}
