/* Genel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4a6cf7;
    color: white;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #3a5ce5;
    transform: translateY(-2px);
}

/* Üst Navigasyon */
.top-nav {
    background-color: #f1f1f1;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid #e1e1e1;
}

.top-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-nav-right a {
    margin-left: 15px;
    transition: color 0.3s;
}

.top-nav-right a:hover {
    color: #4a6cf7;
}

/* Ana Navigasyon */
.main-nav {
    background-color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    color: #4a6cf7;
    font-size: 28px;
    font-weight: 700;
}

.nav-search {
    flex: 1;
    max-width: 600px;
    margin: 0 20px;
}

.search-form {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.search-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    outline: none;
}

.search-form button {
    padding: 0 15px;
    background-color: #4a6cf7;
    color: white;
    border: none;
    cursor: pointer;
}

.nav-actions {
    display: flex;
    gap: 20px;
}

.nav-action-item {
    position: relative;
}

.nav-action-item a {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-action-item a:hover {
    color: #4a6cf7;
}

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

.mobile-menu-toggle {
    display: none;
    font-size: 20px;
    cursor: pointer;
}

/* Kategori Navigasyonu */
.category-nav {
    background-color: #4a6cf7;
    color: white;
}

.category-list {
    display: flex;
}

.category-item {
    position: relative;
}

.category-item > a {
    display: block;
    padding: 15px 20px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.category-item > a:hover {
    background-color: #3a5ce5;
}

.subcategory-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    color: #333;
    width: 600px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 4px 4px;
    display: none;
    z-index: 100;
}

.category-item:hover .subcategory-menu {
    display: flex;
}

.subcategory-column {
    flex: 1;
    padding: 20px;
}

.subcategory-column h4 {
    margin-bottom: 10px;
    font-size: 16px;
    color: #4a6cf7;
}

.subcategory-column ul li {
    margin-bottom: 8px;
}

.subcategory-column ul li a {
    transition: color 0.3s;
}

.subcategory-column ul li a:hover {
    color: #4a6cf7;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 400px;
    overflow: hidden;
    margin-bottom: 40px;
}

.slider-container {
    height: 100%;
}

.slide {
    display: none;
    height: 100%;
    position: relative;
}

.slide.active {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f5f7ff 0%, #e6e9ff 100%);
}

.slide-content {
    flex: 1;
    padding: 0 40px;
    max-width: 50%;
}

.slide-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: #333;
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #666;
}

.slide-image {
    flex: 1;
    text-align: center;
}

.slide-image img {
    max-height: 350px;
    object-fit: contain;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
}

.slider-prev, .slider-next {
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-prev:hover, .slider-next:hover {
    background-color: white;
}

/* Ürün Bölümleri */
.featured-products, .discounted-products, .trending-products {
    margin-bottom: 50px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 24px;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #4a6cf7;
}

.view-all {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    color: #4a6cf7;
    transition: gap 0.3s;
}

.view-all:hover {
    gap: 10px;
}

/* Ürün Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

/* Ürün Kartları */
.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.badge.new {
    background-color: #4a6cf7;
}

.badge.stock {
    background-color: #2ed573;
}

.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
}

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

.action-btn:hover {
    background: #4a6cf7;
    color: white;
    transform: scale(1.1);
}

.action-btn.disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
}

.action-btn.disabled:hover {
    transform: none;
    background: #ccc;
}

.add-to-cart-btn.full-width {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    font-size: 14px;
}

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

.btn-secondary:disabled {
    background: #6c757d;
    opacity: 0.6;
    cursor: not-allowed;
}

/* Mobil için */
@media (max-width: 768px) {
    .product-actions {
        opacity: 1;
        flex-direction: row;
        top: auto;
        bottom: 10px;
        right: 10px;
    }
    
    .action-btn {
        width: 35px;
        height: 35px;
    }
    
    .add-to-cart-btn.full-width {
        padding: 8px;
        font-size: 13px;
    }
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 500;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Sepet butonu için responsive stiller */
.product-actions .cart-btn {
    transition: all 0.3s ease;
}

/* Mobilde butonları biraz daha büyüt */
@media (max-width: 768px) {
    .product-actions .action-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .product-card {
        position: relative;
    }
}

/* Hover efekti - masaüstü için */
@media (min-width: 769px) {
    .product-card:hover .product-actions {
        opacity: 1;
        visibility: visible;
    }
    
    .product-actions .cart-btn:hover {
        background: #28a745;
        color: white;
        transform: scale(1.1);
    }
}

/* Stok durumu için ikonlar */
.product-stock .fas {
    margin-right: 4px;
    font-size: 12px;
}

.in-stock {
    color: #28a745;
}

.out-of-stock {
    color: #dc3545;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: #4a6cf7;
}

.old-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-rating i {
    color: #ffc107;
}

.rating-count {
    font-size: 14px;
    color: #999;
}

/* Footer */
.main-footer {
    background-color: #2d3748;
    color: #cbd5e0;
    padding: 50px 0 20px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #4a6cf7;
}

.footer-column p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #4a6cf7;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #4a5568;
    border-radius: 50%;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: #4a6cf7;
    transform: translateY(-3px);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.payment-methods h5 {
    margin-bottom: 10px;
    color: white;
}

.payment-icons {
    display: flex;
    gap: 10px;
    font-size: 24px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #4a5568;
    font-size: 14px;
}



/* Sepet bildirimi */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    color: white;
    border-radius: 5px;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease;
}

.notification.success {
    background: #4CAF50;
}

.notification.error {
    background: #f44336;
}

.notification button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
}

/* Responsive Tasarım */
@media (max-width: 992px) {
    .nav-search {
        max-width: 400px;
    }
    
    .subcategory-menu {
        width: 500px;
    }
    
    .slide-content h2 {
        font-size: 28px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .top-nav .container {
        flex-direction: column;
        gap: 5px;
    }
    
    .main-nav .container {
        flex-wrap: wrap;
    }
    
    .nav-search {
        order: 3;
        max-width: 100%;
        margin: 15px 0 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .category-list {
        flex-direction: column;
        display: none;
    }
    
    .category-item > a {
        padding: 12px 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .subcategory-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
    }
    
    .hero-slider {
        height: 300px;
    }
    
    .slide.active {
        flex-direction: column;
        text-align: center;
    }
    
    .slide-content {
        max-width: 100%;
        padding: 20px;
    }
    
    .slide-content h2 {
        font-size: 24px;
    }
    
    .slide-image img {
        max-height: 200px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
}

/* Kategori Menüsü Geliştirmeleri */
.subcategory-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.subcategory-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s;
    color: #333;
}

.subcategory-link:hover {
    background: #f8f9fa;
}

.subcategory-name {
    font-weight: 500;
}

.product-count {
    font-size: 12px;
    color: #666;
}



.quantity-controls {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: #e9ecef;
}

.quantity-input {
    width: 60px;
    height: 35px;
    text-align: center;
    border: 1px solid #ddd;
    margin: 0 5px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
}

.item-details {
    flex-grow: 1;
}



@media (max-width: 576px) {
    .nav-actions {
        gap: 10px;
    }
    
    .nav-action-item a span {
        display: none;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
    }
}