/* Modern Ürünler Sayfası Stilleri */

/* Filtreleme Bölümü - Profesyonel Kurumsal Tasarım */
.products-filter-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px 0;
    border-bottom: 1px solid #dee2e6;
    position: relative;
}

.filter-controls-wrapper {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    position: relative;
}

/* Arama Kutusu - Kompakt Kurumsal */
.search-box-container {
    margin-bottom: 15px;
}

.search-input-wrapper {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #495057;
    font-weight: 400;
}

.search-input:focus {
    outline: none;
    border-color: #6c757d;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(108, 117, 125, 0.1);
}

.search-input::placeholder {
    color: #6c757d;
    font-weight: 400;
}

.search-icon {
    display: none;
}

/* Kategori Filtreleri - Kompakt Kurumsal */
.category-filters {
    margin-bottom: 15px;
}

.filter-buttons-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.filter-btn {
    background: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    font-weight: 500;
    color: #495057;
    text-decoration: none;
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
}

.filter-btn:hover {
    border-color: #6c757d;
    color: #495057;
    background: #f8f9fa;
}

.filter-btn.active {
    background: #495057;
    border-color: #495057;
    color: white;
}

.filter-btn i {
    font-size: 14px;
}

.product-count {
    background: rgba(0, 0, 0, 0.15);
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
    color: #495057;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.filter-btn.active .product-count {
    background: rgba(255, 255, 255, 0.9);
    color: #495057;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Görünüm Seçenekleri - Kompakt Kurumsal */
.view-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.view-controls {
    display: flex;
    gap: 4px;
    background: #f8f9fa;
    padding: 2px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.view-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6c757d;
    font-size: 14px;
}

.view-btn:hover {
    color: #495057;
    background: rgba(108, 117, 125, 0.1);
}

.view-btn.active {
    background: #495057;
    color: white;
}

.sort-controls select {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: white;
    color: #495057;
    font-weight: 500;
    min-width: 180px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-controls select:focus {
    outline: none;
    border-color: #6c757d;
    box-shadow: 0 0 0 2px rgba(108, 117, 125, 0.1);
}

/* Ürünler Bölümü - Kompakt */
.products-section {
    padding: 30px 0;
    background: #f8f9fa;
}

.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.results-count {
    font-size: 16px;
    color: #495057;
}

.loading-indicator {
    color: #3498db;
    font-weight: 500;
}

.loading-indicator i {
    margin-right: 8px;
}

/* Ürün Grid - Daha Kompakt */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.products-grid.list-view {
    grid-template-columns: 1fr;
}

.products-grid.list-view .product-card {
    display: flex;
    align-items: center;
    text-align: left;
}

.products-grid.list-view .product-image-wrapper {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
    margin-right: 20px;
}

.products-grid.list-view .product-info {
    flex: 1;
}

/* Ürün Kartları */
.product-card-wrapper {
    transition: all 0.3s ease;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(52, 152, 219, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
}

.btn-view-product {
    background: white;
    color: #3498db;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-view-product:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    color: #2980b9;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(52, 152, 219, 0.9);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.product-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    margin: 0 0 8px 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

.product-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #3498db;
}

.product-description {
    color: #6c757d;
    line-height: 1.4;
    margin-bottom: 12px;
    flex: 1;
    font-size: 13px;
}

.product-actions {
    margin-top: auto;
}

.btn-outline-primary {
    border: 1px solid #3498db;
    color: #3498db;
    background: transparent;
    padding: 6px 12px;
    border-radius: 18px;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
    font-size: 13px;
}

.btn-outline-primary:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
}

/* Ürün Bulunamadı Mesajı */
.no-products-message {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.no-products-message i {
    color: #dee2e6;
    margin-bottom: 20px;
}

.no-products-message h4 {
    color: #495057;
    margin-bottom: 15px;
}

.no-products-message p {
    color: #6c757d;
    margin-bottom: 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    background: #3498db;
    border: none;
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Responsive Tasarım */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .products-filter-section {
        padding: 20px 0;
    }
    
    .filter-controls-wrapper {
        padding: 15px;
        margin: 0 10px;
        border-radius: 6px;
    }
    
    .search-box-container {
        margin-bottom: 12px;
    }
    
    .search-input-wrapper {
        max-width: 100%;
    }
    
    .search-input {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .category-filters {
        margin-bottom: 12px;
    }
    
    .filter-buttons-wrapper {
        justify-content: center;
        gap: 6px;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 12px;
        border-radius: 4px;
    }
    
    .view-options {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        padding-top: 12px;
    }
    
    .view-controls {
        padding: 2px;
    }
    
    .view-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .sort-controls select {
        min-width: 140px;
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 0 15px;
    }
    
    .products-section {
        padding: 40px 0;
    }
    
    .results-info {
        margin: 0 15px 20px;
        padding: 15px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .product-image-wrapper {
        height: 200px;
    }
    
    .product-info {
        padding: 20px;
    }
    
    .product-title {
        font-size: 18px;
    }
    
    .products-grid.list-view .product-card {
        flex-direction: column;
        text-align: center;
    }
    
    .products-grid.list-view .product-image-wrapper {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .search-input-wrapper {
        margin: 0 15px;
    }
    
    .filter-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .product-count {
        display: none;
    }
    
    .view-controls {
        justify-content: center;
    }
}

/* Animasyonlar */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card-wrapper {
    animation: fadeInUp 0.6s ease forwards;
}

.product-card-wrapper:nth-child(1) { animation-delay: 0.1s; }
.product-card-wrapper:nth-child(2) { animation-delay: 0.2s; }
.product-card-wrapper:nth-child(3) { animation-delay: 0.3s; }
.product-card-wrapper:nth-child(4) { animation-delay: 0.4s; }
.product-card-wrapper:nth-child(5) { animation-delay: 0.5s; }
.product-card-wrapper:nth-child(6) { animation-delay: 0.6s; }

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spin {
    animation: spin 1s linear infinite;
}

/* Smooth Transitions */
* {
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 15px;
}

/* Form Controls */
.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Anasayfa Ürün Kartları Stilleri - Ürünler Sayfasında Kullanım İçin */
.home-product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.home-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 123, 255, 0.2);
}

.home-product-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(1) contrast(1.05);
}

.home-product-card:hover .home-product-image img {
    transform: scale(1.08);
    filter: brightness(1.1) contrast(1.1);
}

.home-product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.9) 0%, rgba(52, 152, 219, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(5px);
}

.home-product-card:hover .home-product-overlay {
    opacity: 1;
    visibility: visible;
}

.home-product-overlay a {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007bff;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.home-product-overlay a:hover {
    transform: scale(1.1);
    background: white;
    color: #0056b3;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.home-product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
}

.home-product-content {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
    position: relative;
}

.home-product-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25px;
    right: 25px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #e9ecef 50%, transparent 100%);
}

.home-product-content h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.home-product-content h3 a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.home-product-content h3 a:hover {
    color: #007bff;
    transform: translateX(2px);
}

.home-product-content p {
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 15px;
    flex: 1;
    font-size: 14px;
    font-weight: 400;
}

.product-details-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 0;
    border-top: 1px solid #f8f9fa;
    margin-top: auto;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-details-link:hover {
    color: #0056b3;
    transform: translateX(3px);
}

.product-details-link i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.product-details-link:hover i {
    transform: translateX(3px);
}

/* Grid Layout için Anasayfa Ürün Kartları */
.products-grid .home-product-card {
    height: 100%;
}

/* Responsive Tasarım - Anasayfa Ürün Kartları */
@media (max-width: 768px) {
    .home-product-image {
        height: 220px;
    }
    
    .home-product-content {
        padding: 20px;
    }
    
    .home-product-content h3 {
        font-size: 16px;
    }
    
    .home-product-badge {
        font-size: 11px;
        padding: 5px 12px;
    }
    
    .home-product-overlay a {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .home-product-image {
        height: 200px;
    }
    
    .home-product-content {
        padding: 15px;
    }
    
    .home-product-content h3 {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    .home-product-content p {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .product-details-link {
        font-size: 13px;
        padding: 8px 0;
    }
}

/* Animasyonlar - Anasayfa Ürün Kartları */
@keyframes productCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.home-product-card {
    animation: productCardFadeIn 0.6s ease forwards;
}

/* Stagger Animation */
.product-card-wrapper:nth-child(1) .home-product-card { animation-delay: 0.1s; }
.product-card-wrapper:nth-child(2) .home-product-card { animation-delay: 0.2s; }
.product-card-wrapper:nth-child(3) .home-product-card { animation-delay: 0.3s; }
.product-card-wrapper:nth-child(4) .home-product-card { animation-delay: 0.4s; }
.product-card-wrapper:nth-child(5) .home-product-card { animation-delay: 0.5s; }
.product-card-wrapper:nth-child(6) .home-product-card { animation-delay: 0.6s; }
.product-card-wrapper:nth-child(7) .home-product-card { animation-delay: 0.7s; }
.product-card-wrapper:nth-child(8) .home-product-card { animation-delay: 0.8s; }
.product-card-wrapper:nth-child(9) .home-product-card { animation-delay: 0.9s; }
.product-card-wrapper:nth-child(10) .home-product-card { animation-delay: 1.0s; }
.product-card-wrapper:nth-child(11) .home-product-card { animation-delay: 1.1s; }
.product-card-wrapper:nth-child(12) .home-product-card { animation-delay: 1.2s; }

/* Hover Efektleri */
.home-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.02) 0%, rgba(52, 152, 219, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.home-product-card:hover::before {
    opacity: 1;
}

/* Utility Classes */
.mb-4 { margin-bottom: 1.5rem; }
.text-center { text-align: center; }
.text-muted { color: #6c757d; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.fa-3x { font-size: 3em; }
.btn-sm { padding: 0.25rem 0.5rem; font-size: 0.875rem; }
