/*
Theme Name: TrendClone
Theme URI: https://ornek-site.com
Author: Sizin Adınız
Description: Trendyol benzeri basit e-ticaret teması.
Version: 1.3
Text Domain: trendclone
*/

/* --- Google Fonts (Inter) --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* --- SIFIRLAMA (RESET) --- */
* {
    box-sizing: border-box; /* Kutuların taşmasını engeller */
}

:root {
    --primary: #f27a1a;
    --primary-dark: #d6620a;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #fafafa;
    --border: #e6e6e6;
    --radius: 8px;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
}

/* --- Genel Düzen --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul, li {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* --- Banner Alanı --- */
.hero-banner {
    background: linear-gradient(105deg, #FFEDD5 0%, #fff7ed 100%);
    border-radius: var(--radius);
    padding: 40px;
    margin-top: 20px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    display: flex; /* İçeriği hizalar */
    align-items: center;
    min-height: 280px;
    box-shadow: 0 4px 15px rgba(242, 122, 26, 0.1);
    border: 1px solid rgba(242, 122, 26, 0.1);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
}

.hero-content h2 {
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 800;
}

.text-primary { color: var(--primary) !important; }

.btn-primary {
    background-color: var(--primary);
    color: white !important;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-block;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(242, 122, 26, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { 
    background-color: var(--primary-dark); 
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(242, 122, 26, 0.4);
}

/* --- Kategori Yuvarlakları --- */
.category-scroll {
    display: flex !important; /* Zorla yatay yap */
    gap: 15px;
    overflow-x: auto;
    padding: 15px 5px;
    margin-bottom: 40px;
    scrollbar-width: thin;
    flex-wrap: nowrap !important; /* Alt satıra inmeyi engelle */
    align-items: flex-start;
    -webkit-overflow-scrolling: touch; /* Mobilde akıcı kaydırma */
}

/* Scrollbar Güzelleştirme */
.category-scroll::-webkit-scrollbar { height: 6px; }
.category-scroll::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
.category-scroll::-webkit-scrollbar-thumb { background: #ddd; border-radius: 10px; }
.category-scroll::-webkit-scrollbar-thumb:hover { background: #bbb; }

.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px; /* Daralmayı engelle */
    cursor: pointer;
    text-align: center;
}

.cat-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid white; /* Çerçeve */
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    overflow: hidden;
}
.cat-circle img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.3s;
}

.cat-item:hover .cat-circle {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(242, 122, 26, 0.2);
}
.cat-item:hover .cat-circle img {
    transform: scale(1.1);
}

.cat-name { 
    font-size: 0.85rem; 
    font-weight: 600; 
    color: var(--text-dark); 
    white-space: nowrap; /* Yazıyı tek satırda tut */
}
.cat-item:hover .cat-name { color: var(--primary); }

/* --- Ürün Izgarası (Grid) --- */
.product-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* Responsive Sütunlar */
    gap: 25px;
    width: 100%;
}

.product-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.product-card:hover { 
    box-shadow: 0 12px 24px rgba(0,0,0,0.1); 
    border-color: transparent;
    transform: translateY(-3px);
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #BE185D;
    color: white;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 700;
    z-index: 20;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.product-image-wrapper {
    position: relative;
    padding-top: 125%; /* 4:5 Oran (Daha uzun görsel) */
    overflow: hidden;
    background-color: #fff;
}
.product-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Resmi kutuya sığdır */
    transition: transform 0.5s ease;
}
.product-card:hover .product-image-wrapper img {
    transform: scale(1.05); /* Hover efekti */
}

.product-info { 
    padding: 15px; 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    border-top: 1px solid #f0f0f0;
}

.product-title { 
    font-size: 0.95rem; 
    line-height: 1.4; 
    margin-bottom: 10px; 
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 42px; /* 2 satır yüksekliği sabitle */
}

.product-price { 
    font-size: 1.2rem; 
    font-weight: 700; 
    color: var(--primary); 
    margin-top: auto; 
    display: flex;
    align-items: center;
    gap: 8px;
}
/* İndirimli fiyat varsa üstünü çiz */
.product-price del {
    font-size: 0.9rem;
    color: #999;
    font-weight: 400;
    text-decoration: line-through;
}

.add-to-cart-btn {
    display: block;
    width: 100%;
    text-align: center;
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
    border-radius: 6px;
    padding: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 15px;
    cursor: pointer;
    transition: all 0.2s;
}
.add-to-cart-btn:hover { 
    background-color: var(--primary); 
    color: white; 
}

/* --- Sayfalama (Pagination) Stilleri --- */
.pagination-wrapper ul {
    display: flex;
    gap: 5px;
}
.pagination-wrapper li a, 
.pagination-wrapper li span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.2s;
}
.pagination-wrapper li span.current,
.pagination-wrapper li a:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* --- Responsive Ayarlar --- */
@media (max-width: 768px) {
    .hero-banner { 
        padding: 25px; 
        min-height: auto;
        flex-direction: column;
        text-align: center;
    }
    .hero-content h2 { font-size: 1.8rem; }
    
    .category-scroll {
        gap: 10px;
        padding-bottom: 10px;
    }
    .cat-circle { width: 60px; height: 60px; }
    .cat-circle img { width: 30px; height: 30px; }
    
    .product-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 10px;
    }
    .product-info { padding: 10px; }
    .add-to-cart-btn { padding: 8px; font-size: 0.8rem; }
}