/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa; /* Genel arka plan rengi */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: #2a395a;
    color: #fff;
    font-size: 14px;
    width: 100%;
    padding: 8px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-actions a {
    color: #fff;
    text-decoration: none;
    margin-left: 15px;
    transition: color 0.3s;
    font-size: 15px;
}
.user-actions a:hover {
    color: #ffd700;
}
.user-actions i {
    margin-right: 5px;
}

.main-header {
    padding: 15px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo h1 { /* Sizin HTML'inizde h1 yok, img var. Bu kural etkisiz */
    color: #2a395a;
    font-size: 24px;
    font-weight: bold;
}

.search-bar {
    flex: 1;
    max-width: 500px;
}

.search-form {
    display: flex;
    border: 2px solid #2a395a;
    border-radius: 5px;
    overflow: hidden;
}

.search-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    outline: none;
    font-size: 14px;
}

.search-form button {
    background: #2a395a;
    color: #fff;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-form button:hover {
    background: #1e2a3d;
}

.header-info {
    display: flex;
    align-items: center;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #2a395a;
}

.info-item i {
    font-size: 24px;
}

.info-item div {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.info-item strong {
    font-size: 14px;
}

.info-item span {
    font-size: 12px;
    color: #666;
}

/* Mega Menu (Desktop) */
.mega-menu {
    background: #2a395a;
    border-top: 1px solid #1e2a3d;
}

.menu-items {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-items > li {
    position: relative;
}

.menu-items > li > a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 15px 20px;
    transition: background 0.3s;
}

.menu-items > li > a:hover,
.menu-items > li:hover > a {
    background: #1e2a3d;
}

.menu-items > li > a i {
    margin-right: 8px;
}

.has-dropdown:hover .mega-dropdown {
    display: block;
}

.mega-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-radius: 0 0 5px 5px;
    min-width: 800px;
    z-index: 1000;
}

.dropdown-content {
    display: flex;
    padding: 20px;
    gap: 30px;
}

.category-column {
    flex: 1;
}

.category-column h4 {
    color: #2a395a;
    font-size: 16px;
    margin-bottom: 10px;
    border-bottom: 2px solid #2a395a;
    padding-bottom: 5px;
}

.category-column ul {
    list-style: none;
}

.category-column ul li {
    margin-bottom: 8px;
}

.category-column ul li a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.category-column ul li a:hover {
    color: #2a395a;
}

/* Hero Section */
.hero-section {
    padding: 20px 0 40px 0;
}

.hero-content {
    display: flex;
    gap: 20px;
    align-items: stretch;
    min-height: 400px;
}

.slider-container, .main-slider .slide img {
    height: 400px;
    min-height: 400px;
    max-height: 400px;
}
.deals-box {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    min-height: 400px;
    max-height: 400px;
    overflow: hidden;
    border-radius: 10px; /* Köşeleri yuvarlak yap */
    background: #fff; /* Haftanın Fırsatları kutusunun arka planı */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* deals-box h3 başlığı artık carousel.css'te tanımlı */


.slider-container {
    flex: 2 1 0%;
    min-width: 0;
}

.deals-sidebar {
    flex: 1 1 320px;
    max-width: 370px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.main-slider .slide {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.main-slider .slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50px;
    transform: translateY(-50%);
    color: #fff;
    z-index: 2;
}

.slide-content h2 {
    font-size: 32px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content p {
    font-size: 16px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.slide-content .btn {
    background: #ffd700;
    color: #2a395a;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
}

.slide-content .btn:hover {
    background: #ffed4e;
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .hero-content {
        flex-direction: column;
    }
    .slider-container, .deals-sidebar {
        max-width: 100%;
        min-width: 0;
    }
    .deals-sidebar {
        margin-top: 20px;
        max-height: 400px;
    }
    .deals-box {
        max-height: 400px;
    }
}

/* Category Grid */
.category-grid {
    padding: 60px 0 40px 0;
    background: #fff;
}

.grid-item {
    text-align: center;
    padding: 12px 5px 5px 5px;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    min-width: 110px;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.grid-item img {
    width: 95px;
    height: 72px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 4px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.grid-item h3 {
    color: #2a395a;
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

/* Products Sections */
.new-products { /* Hem "En Çok Satanlar" hem "Yeni Ürünler" bu section sınıfını kullanır */
    padding: 40px 0;
}

.section-title {
    color: #2a395a;
    font-size: 28px;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #2a395a;
}

/* Genel ürün kartı stilleri - best-sellers-carousel ve new-products-carousel tarafından kullanılır */
.product-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 4px 2px 6px 2px;
    text-align: center;
    transition: box-shadow 0.3s, transform 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 210px;
    max-width: 240px;
    height: 320px;
    box-sizing: border-box;
}
.product-card:hover {
    box-shadow: 0 8px 24px rgba(42,57,90,0.13);
    transform: translateY(-4px) scale(1.03);
}
.product-card .product-image img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 10px;
    border-radius: 10px;
    background: #f8f9fa;
}
.product-card .product-info h3 {
    font-size: 16px;
    color: #2a395a;
    margin: 0 0 8px 0;
    font-weight: 600;
    line-height: 1.25;
    min-height: 44px;
}
.product-card .product-info a {
    text-decoration: none;
}
.product-card .product-price {
    margin-bottom: 4px;
}
.product-card .old-price {
    color: #999;
    text-decoration: line-through;
    font-size: 13px;
    margin-right: 6px;
}
.product-card .price {
    color: #d32f2f;
    font-weight: bold;
    font-size: 16px;
}
/* Sepete Ekle butonu için sarı/siyah stil */
.product-card .add-to-cart {
    background: #ffd700;
    color: #2a395a;
    border: none;
    border-radius: 5px;
    padding: 4px 10px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    margin-top: 2px;
    width: auto; /* Karta göre otomatik genişlik */
    display: inline-block; /* Ortalamak için */
}
.product-card .add-to-cart:hover {
    background: #2a395a;
    color: #fff;
}


/* Footer */
.footer {
    background: #000;
    color: #fff;
    margin-top: 50px;
}

.footer-top {
    padding: 40px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-column h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    border-bottom: 2px solid #2a395a;
    padding-bottom: 10px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #fff;
}

.contact-info p {
    color: #ccc;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    color: #2a395a;
    width: 20px;
}

/* Sosyal linkler HTML'de yok */
/* .social-links {} */

.footer-bottom {
    background: #111;
    padding: 20px 0;
    border-top: 1px solid #333;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: #ccc;
    font-size: 14px;
}

.payment-methods {
    display: flex;
    gap: 10px;
}

.payment-methods img {
    height: 25px;
    border-radius: 3px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-info {
        display: none;
    }
    
    .search-bar {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .slider-container,
    .deals-sidebar {
        flex: 1;
    }
    
    .slide-content {
        left: 20px;
        right: 20px;
        text-align: center;
    }
    
    .slide-content h2 {
        font-size: 24px;
    }
    
    .deals-box {
        margin-top: 20px;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .user-actions {
        display: flex;
        justify-content: center;
        gap: 15px;
    }
    
    .user-actions a {
        margin-left: 0;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    /* Kategori carousel görsellerini büyüt */
    .category-carousel .grid-item img {
        height: 110px;
        max-width: 100%;
        object-fit: contain;
        margin-bottom: 8px;
        display: block;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .slide-content h2 {
        font-size: 20px;
    }
    
    .slide-content p {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 24px;
    }
}