/* Mağaza Sayfası Stilleri */
.store-container {
    min-height: 100vh;
    background: #f8f9fa;
    padding: 2rem 0;
}

.page-header {
    background: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-bottom: 3px solid #0e2675;
}

.page-header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header h1 i {
    color: #0e2675;
    margin-right: 0.5rem;
}

.breadcrumb {
    color: #6c757d;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #0e2675;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Store Layout */
.store-content {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Sidebar */
.store-sidebar {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    position: sticky;
    top: 2rem;
}

.sidebar-section {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

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

.sidebar-section h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.sidebar-section h3 i {
    color: #0e2675;
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* Kategori Listesi */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-height: 50px;
}

.category-link:hover {
    background: #e9ecef;
    color: #0e2675;
    transform: translateX(5px);
}

.category-link:hover .category-name {
    overflow: visible;
    white-space: normal;
    word-break: break-word;
}

.category-link.active {
    background: linear-gradient(135deg, #0e2675, #0a1e5c);
    color: white;
    border-color: #0a1e5c;
}

.category-name {
    font-weight: 500;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.2;
}

.product-count {
    background: rgba(255,255,255,0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 30px;
    text-align: center;
}

.category-link.active .product-count {
    background: rgba(255,255,255,0.3);
}

/* Arama Formu */
.search-form {
    width: 100%;
}

.search-group {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.search-group:focus-within {
    border-color: #0e2675;
}

.search-input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    outline: none;
    font-size: 0.9rem;
}

.search-btn {
    background: #0e2675;
    color: white;
    border: none;
    padding: 0.75rem 1.2rem;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    min-width: 55px;
    flex-shrink: 0;
}

.search-btn:hover {
    background: #0a1e5c;
}

.search-btn i {
    font-size: 1.1rem;
}

/* Sıralama */
.sort-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.sort-select:focus {
    outline: none;
    border-color: #0e2675;
}

/* Ana İçerik */
.store-main {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Sonuç Bilgisi */
.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.results-count {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

.search-info {
    color: #6c757d;
    font-size: 0.9rem;
    margin-left: 1rem;
}

/* Ürün Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 1.5rem;
}

/* Ürün Kartı - Shop.css Tasarımı */
.product-card {
    position: relative;
    background: white;
    transition: transform 0.3s;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

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

/* Ürün Aksiyonları */
.product-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
    opacity: 1;
    transform: translateX(0);
    transition: all 0.3s;
}

.product-actions .action-btn {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.product-actions .action-btn:hover {
    background: #0e2675;
    color: white;
}

/* Ürün Resmi */
.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    margin-bottom: 20px;
}

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

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

/* Stok Badge */
.stock-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    backdrop-filter: blur(10px);
}

.stock-badge.low-stock {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    box-shadow: 0 2px 10px rgba(255,107,107,0.3);
}

.stock-badge.out-of-stock {
    background: linear-gradient(135deg, #6c757d, #495057);
}

/* Sepete Ekle Butonu */
.add-to-cart {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #0e2675;
    color: white;
    border: none;
    padding: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(100%);
    z-index: 15;
}

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

.add-to-cart:hover {
    background: #0a1e5c;
}

/* Ürün Bilgileri */
.product-info {
    text-align: center;
    padding: 0 20px 20px;
}

.product-info h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 500;
}

.product-category {
    font-size: 14px;
    color: #999;
    margin-bottom: 5px;
    text-align: center;
}

.product-price {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}


/* Ürün Başlık - Kompakt */
.product-title {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    height: 2.6rem; /* Sabit yükseklik */
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.title-label {
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.title-link {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    font-size: 0.85rem;
    font-weight: 600;
}

.title-link:hover {
    color: #0e2675;
}

/* Fiyat ve Stok Satırı - Yeni */
.product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #dc3545;
}

.stock-info {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

.stock-info i {
    margin-right: 0.3rem;
    color: #28a745;
}

/* Ürün Aksiyonları - Yeni Tasarım */
.product-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-cart {
    flex: 2;
    padding: 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    background: linear-gradient(135deg, #0e2675, #0a1e5c);
    border: none;
    border-radius: 8px;
    color: white;
    transition: all 0.3s ease;
}

.btn-cart:hover {
    background: linear-gradient(135deg, #0a1e5c, #081a4a);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(14,38,117,0.3);
}

.btn-detail {
    flex: 1;
    padding: 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: none;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-detail:hover {
    background: linear-gradient(135deg, #c82333, #a71e2a);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220,53,69,0.3);
}

.btn-detail i {
    margin-right: 0.4rem;
    font-size: 0.8rem;
}

/* Butonlar */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn i {
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

.btn-primary {
    background: linear-gradient(135deg, #0e2675, #0a1e5c);
    color: white;
    border-color: #0e2675;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0a1e5c, #081a4a);
    transform: translateY(-2px);
}

.btn-outline-secondary {
    background: transparent;
    color: #6c757d;
    border-color: #6c757d;
}

.btn-outline-secondary:hover {
    background: #6c757d;
    color: white;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

/* Sayfalama */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    gap: 0.5rem;
}

.pagination-btn, .pagination-number {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #495057;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-btn:hover, .pagination-number:hover {
    background: #0e2675;
    color: white;
    border-color: #0e2675;
}

.pagination-number.active {
    background: #0e2675;
    color: white;
    border-color: #0e2675;
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
}

/* Ürün Bulunamadı */
.no-products {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

.no-products-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #dee2e6;
}

.no-products h3 {
    color: #495057;
    margin-bottom: 1rem;
}

.no-products-actions {
    margin-top: 2rem;
}

/* Bildirimler */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

.notification-success {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.notification-error {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.notification i {
    margin-right: 0.5rem;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .store-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .store-sidebar {
        position: static;
        order: -1;
        margin-bottom: 1rem;
    }
    
    .store-main {
        order: 1;
    }
    
    /* Mobil için sidebar düzenlemeleri */
    .sidebar-section {
        padding: 1rem;
    }
    
    .sidebar-section h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    /* Kategoriler mobil görünümü */
    .category-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .category-list li {
        margin-bottom: 0;
        flex: 0 0 auto;
    }
    
    .category-link {
        padding: 0.5rem 0.75rem;
        min-height: auto;
        border-radius: 20px;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    .category-name {
        white-space: nowrap;
        overflow: visible;
        text-overflow: clip;
    }
    
    .product-count {
        font-size: 0.7rem;
        padding: 0.15rem 0.4rem;
        min-width: 20px;
    }
    
    /* Arama ve sıralama yan yana */
    .mobile-filters {
        display: flex;
        gap: 0.75rem;
    }
    
    .mobile-filters .sidebar-section:first-child {
        flex: 0.7;
        padding: 0.75rem;
        margin-bottom: 0;
        border-bottom: none;
    }
    
    .mobile-filters .sidebar-section:last-child {
        flex: 1.8;
        padding: 0.75rem;
        margin-bottom: 0;
        border-bottom: none;
    }
    
    .mobile-filters .sidebar-section h3 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .search-group {
        border-radius: 20px;
    }
    
    .search-input {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .search-btn {
        padding: 0.5rem 0.75rem;
        min-width: 45px;
        border-radius: 0 20px 20px 0;
    }
    
    .search-btn i {
        font-size: 1rem;
    }
    
    .sort-select {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        border-radius: 20px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
        padding: 1rem;
    }
    
    .results-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }
    
    .page-header {
        padding: 1rem 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .pagination-btn, .pagination-number {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}
