/* ===========================================
   TAM STİL DOSYASI - E-TİCARET
   Hem eski hem yeni stiller birleştirildi
   =========================================== */

/* 1. TEMEL SIFIRLAMA VE GENEL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
    padding-bottom: 60px; /* Mobile nav için */
}

@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 2. HEADER (YENİ) */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #dc3545;
    text-decoration: none;
}

.logo i {
    color: #0d6efd;
}

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-action {
    position: relative;
    color: #555;
    text-decoration: none;
    font-size: 1.2rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ARAMA ÇUBUĞU */
.search-bar {
    padding: 15px 0;
    background: white;
}

.search-container {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #0d6efd;
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
}

.search-btn {
    background: #0d6efd;
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-size: 1.1rem;
}

/* 3. KATEGORİ MENÜSÜ (YENİ) */
.category-menu {
    background: white;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.category-menu::-webkit-scrollbar {
    display: none;
}

.category-list {
    display: flex;
    gap: 20px;
    padding: 0 15px;
	justify-content: center;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #555;
    min-width: 70px;
}

.category-icon {
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.category-name {
    font-size: 0.8rem;
    text-align: center;
}

/* 4. ESKİ NAVBAR (KORUNDU) */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0d6efd;
    text-decoration: none;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
}

.nav-link {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s;
}

.nav-link:hover {
    background: #f0f0f0;
    color: #0d6efd;
}

/* 5. SLIDER (YENİ - Anasayfa için) */
.slider {
    position: relative;
    height: 300px;
    margin: 15px 15px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.slider-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 20px;
    text-align: center;
}

.slider-placeholder h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.slider-placeholder p {
    font-size: 1rem;
    opacity: 0.9;
}

@media (min-width: 768px) {
    .slider {
        height: 400px;
        margin: 20px 20px 0;
    }
}

/* 6. SECTION TITLE (YENİ) */
.section-title {
    display: flex;
    align-items: center;
    margin: 30px 15px 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
	justify-content: center;
}

.section-title h2 {
    font-size: 1.4rem;
    color: #333;
}

.view-all {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
}

/* 7. ÜRÜN GRID (GÜNCELLENDİ) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 0 20px;
}

@media (min-width: 576px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (min-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

/* 8. ÜRÜN KARTI (GÜNCELLENDİ) */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.product-image {
    position: relative;
    width: 100%;
    height: 150px;
    background: #f8f9fa;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 15px;
    transition: transform 0.5s;
}

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

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #dc3545;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #dc3545;
    margin-bottom: 5px;
}

.product-old-price {
    font-size: 0.8rem;
    color: #999;
    text-decoration: line-through;
    margin-right: 5px;
}

.product-stock {
    color: #28a745;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.product-rating {
    color: #ffc107;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.product-actions {
    display: flex;
    gap: 8px;
}

/* 9. BUTONLAR (GÜNCELLENDİ) */
.btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: none;
}

.btn-primary {
    background: #0d6efd;
    color: white;
}

.btn-primary:hover {
    background: #0b5ed7;
}

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

.btn-secondary:hover {
    background: #5c636a;
}

.btn-lg {
    padding: 12px 20px;
    font-size: 1rem;
}

/* 10. FOOTER (YENİ) */
.footer {
    background: #2c3e50;
    color: white;
    margin-top: 40px;
    padding: 30px 0 20px;
}

.footer-sections {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .footer-sections {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #ecf0f1;
    padding-bottom: 8px;
    border-bottom: 2px solid #0d6efd;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #0d6efd;
}

.contact-info {
    font-size: 0.9rem;
    color: #bdc3c7;
}

.contact-info i {
    width: 20px;
    color: #0d6efd;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-link {
    width: 36px;
    height: 36px;
    background: #34495e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background 0.2s;
}

.social-link:hover {
    background: #0d6efd;
}

.payment-methods {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.payment-method {
    width: 50px;
    height: 30px;
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #333;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    font-size: 0.9rem;
    color: #bdc3c7;
}

/* 11. MOBİL ALT NAV (YENİ) */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #555;
    font-size: 0.8rem;
}

.mobile-nav-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.mobile-nav-item.active {
    color: #0d6efd;
}

@media (min-width: 768px) {
    .mobile-nav {
        display: none;
    }
}

/* 12. MOBİL MENÜ BUTTONU (ESKİ) */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .navbar-nav {
        display: none;
    }
    
    .navbar-nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        padding: 20px;
        z-index: 1000;
    }
}

/* 13. SEPET SABİT BUTTONU (ESKİ) */
.cart-fixed {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0d6efd;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
    z-index: 999;
    text-decoration: none;
}

@media (min-width: 768px) {
    .cart-fixed {
        display: none;
    }
}

/* 14. TOAST MESAJ (ESKİ) */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    opacity: 0;
    transition: all 0.3s;
    z-index: 9999;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    background: #28a745;
}

.toast.error {
    background: #dc3545;
}

/* 15. YÜKLEME (ESKİ) */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 16. TOAST ANIMATION (YENİ) */
@keyframes fadeInOut {
    0% { opacity: 0; transform: translateX(-50%) translateY(20px); }
    15% { opacity: 1; transform: translateX(-50%) translateY(0); }
    85% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-20px); }
}

/* 17. UTILITY CLASSES */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 5px; }
.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 15px; }
.mb-4 { margin-bottom: 20px; }
.mb-5 { margin-bottom: 25px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 5px; }
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 20px; }
.mt-5 { margin-top: 25px; }

.mx-auto { margin-left: auto; margin-right: auto; }
.p-0 { padding: 0; }
.p-1 { padding: 5px; }
.p-2 { padding: 10px; }
.p-3 { padding: 15px; }
.p-4 { padding: 20px; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.flex-column { flex-direction: column; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.rounded { border-radius: 6px; }
.rounded-lg { border-radius: 12px; }
.rounded-circle { border-radius: 50%; }

.shadow { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.shadow-lg { box-shadow: 0 8px 20px rgba(0,0,0,0.15); }

/* 18. FORM ELEMANLARI */
.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: #0d6efd;
    outline: none;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.form-check-input {
    width: 18px;
    height: 18px;
}

/* 19. RESPONSIVE IMAGES */
.img-fluid {
    max-width: 100%;
    height: auto;
}

.img-thumbnail {
    padding: 4px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 20. COLOR CLASSES */
.text-primary { color: #0d6efd; }
.text-secondary { color: #6c757d; }
.text-success { color: #28a745; }
.text-danger { color: #dc3545; }
.text-warning { color: #ffc107; }
.text-info { color: #17a2b8; }
.text-light { color: #f8f9fa; }
.text-dark { color: #343a40; }
.text-muted { color: #6c757d; }

.bg-primary { background: #0d6efd; }
.bg-secondary { background: #6c757d; }
.bg-success { background: #28a745; }
.bg-danger { background: #dc3545; }
.bg-warning { background: #ffc107; }
.bg-info { background: #17a2b8; }
.bg-light { background: #f8f9fa; }
.bg-dark { background: #343a40; }
.bg-white { background: #fff; }

/* 21. TABLO STİLLERİ */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.table th,
.table td {
    padding: 12px 15px;
    border: 1px solid #dee2e6;
    text-align: left;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-striped tbody tr:nth-of-type(odd) {
    background: rgba(0,0,0,.02);
}

/* 22. SEPET SAYFASI STİLLERİ */
.cart-item {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    background: #f5f5f5;
    padding: 10px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.cart-item-price {
    color: #dc3545;
    font-weight: bold;
    font-size: 1.2rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
}

.quantity-input {
    width: 60px;
    text-align: center;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.remove-item {
    color: #dc3545;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 10px;
}

.cart-summary {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    margin-top: 30px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.total-row {
    font-size: 1.3rem;
    font-weight: bold;
    color: #dc3545;
    border-bottom: none;
    padding-top: 20px;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .cart-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .quantity-control {
        justify-content: center;
    }
}

/* 23. GERİ SAYIM (Flash Satış) */
.countdown {
    font-family: monospace;
    font-weight: bold;
    color: #ffc107;
    font-size: 1.2rem;
}

/* 24. RESPONSIVE DÜZENLEMELER */
@media (max-width: 576px) {
    .header-top {
        padding: 10px 0;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .section-title {
        margin: 20px 10px 10px;
    }
    
    .product-info {
        padding: 12px;
    }
}

@media (max-width: 768px) {
    .footer-sections {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* 25. PRINT STİLLERİ */
@media print {
    .header,
    .navbar,
    .category-menu,
    .mobile-nav,
    .footer,
    .btn,
    .search-bar {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
        font-size: 12pt;
    }
    
    .container {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
}