/* ═══════════════════════════════════════════════════════════════════════════
   📌 LEPISTESEVI - INDEX.CSS
   ═══════════════════════════════════════════════════════════════════════════
   
   Bu dosya sadece index.html (anasayfa) için özel stilleri içerir:
   - Header ve Logo
   - Kategori çubuğu
   - Banner/Slider
   - Ürün grid düzeni
   
   🔄 Modüler yapıya geçiş: Ocak 2026
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   🏠 HEADER & LOGO
   ═══════════════════════════════════════════════════════════════════════════ */

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    margin: 40px auto;
    padding: 20px;
    max-width: 1400px;
}

.header .logo {
    width: 275px;
    /* %25 artırıldı (220 -> 275) */
    height: 90px;
    /* Dikey sabit kalsın */
    object-fit: fill;
    /* Yatayda genişlesin (esneme) */
    border-radius: 12px;
}

.header .title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #4db8ff;
}

/* ═══════════════════════════════════════════════════════════════════════════
   📂 KATEGORİ ÇUBUĞU
   ═══════════════════════════════════════════════════════════════════════════ */

/* Kategori Wrapper - Banner ile aynı genişlikte */
.category-wrapper {
    width: 60%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    position: relative;
}

/* Ok butonları */
.category-arrow {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border-medium);
    background: var(--surface-light);
    color: var(--text-primary);
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0.6;
    z-index: 2;
}

.category-arrow:hover {
    opacity: 1;
    background: #4db8ff;
    color: #fff;
    border-color: #4db8ff;
}

.category-arrow.hidden {
    opacity: 0;
    pointer-events: none;
}

.category-scroll {
    flex: 1;
    overflow-x: auto;
    white-space: nowrap;
    padding: 4px 0;
    background: transparent;
    display: flex;
    justify-content: flex-start;
    scroll-behavior: smooth;
}

.category-track {
    display: inline-flex;
    justify-content: flex-start;
    gap: 12px;
    padding: 0 4px;
    flex-wrap: nowrap;
}

/* Scrollbar gizle */
.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Dikey ortala */
    gap: 6px;
    padding: 10px 16px;
    background: #4db8ff;
    color: #fff;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid #4db8ff;
    font-weight: 600;
    width: 160px;
    /* Sabit genişlik - Hepsini eşit yapar */
    text-align: center;
    box-sizing: border-box;
}

.category-card:hover,
.category-card.active {
    background: #fff;
    color: #4db8ff;
    border-color: #4db8ff;
    box-shadow: 0 0 10px rgba(77, 184, 255, 0.4);
}

/* ═══════════════════════════════════════════════════════════════════════════
   🖼️ BANNER / SLIDER
   ═══════════════════════════════════════════════════════════════════════════ */

.hero-slider {
    width: 60%;
    /* 3/5 sayfa genişliği - sol ve sağda 1/5 boşluk */
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    background: var(--slider-bg);
    border-radius: 16px;
    /* Köşeleri yuvarlat */
}

.slider {
    display: flex;
    width: 100%;
    transition: transform 0.6s ease;
    will-change: transform;
}

.slide {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--slider-bg);
    /* Üst bilgi ile orta alan arası ton */
}

.slide img {
    width: 100%;
    height: 32vh;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ⭐ ÖNE ÇIKAN ÜRÜN BANNER STİLLERİ
   ═══════════════════════════════════════════════════════════════════════════ */

/* Öne çıkan ürün slide kartı */
.featured-slide {
    position: relative;
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--featured-gradient);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.featured-slide:hover {
    transform: scale(1.01);
}

/* Ürün görseli */
.featured-slide .featured-image {
    width: 100%;
    height: 32vh;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.featured-slide:hover .featured-image {
    transform: scale(1.05);
}

/* Ürün bilgi overlay */
.featured-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    padding: 40px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    z-index: 2;
}

.featured-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    line-height: 1.3;
}

.featured-price {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.featured-old-price {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
}

.featured-new-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #4db8ff;
    text-shadow: 0 2px 6px rgba(77, 184, 255, 0.4);
}

.featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 160, 77, 0.15);
    border: 1px solid rgba(255, 160, 77, 0.35);
    color: #ffa04d;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 160, 77, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ☀️ LIGHT THEME BANNER OVERRIDES
   ═══════════════════════════════════════════════════════════════════════════ */

/* 🏷️ Öne Çıkan Rozeti (Badge) - Daha belirgin */
[data-theme="light"] .featured-badge {
    background: #ffa04d;
    /* Orange Gold */
    color: #000;
    /* Black Text */
    border: 1px solid #e68a00;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    font-weight: 700;
    opacity: 1;
}

/* 🖼️ Bilgi Penceresi (Info Box) - Light Mode SAME AS DARK MODE (Transparan) */
[data-theme="light"] .featured-info {
    /* Use the exact same gradient as dark mode */
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    border-top: none;
    padding-top: 40px;
}

[data-theme="light"] .featured-title {
    color: #fff;
    /* White Text */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    /* Strong Shadow */
}

[data-theme="light"] .featured-old-price {
    color: rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .featured-new-price {
    color: #4db8ff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* ⌨️ Ürün Kodu - White Text for Contrast on Dark Gradient */
[data-theme="light"] .featured-code {
    color: #ddd !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* ═══════════════════════════════════════════════════════════════════════════
   🎟️ KAMPANYA SLIDE STİLLERİ (Kupon ve İndirimler)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Kampanya slide container */
.campaign-slide {
    position: relative;
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 32vh;
    cursor: default;
    overflow: hidden;
}

/* Kupon slide - Mor/Pembe gradient */
.coupon-slide {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

/* İndirim slide - Kırmızı/Turuncu gradient (Daha okunaklı) */
.discount-slide {
    background: linear-gradient(135deg, #cb2d3e 0%, #ef473a 100%);
}

/* Kampanya içerik */
.campaign-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 20px;
    gap: 12px;
}

/* Kampanya rozeti */
.campaign-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

.coupon-badge {
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.discount-badge {
    border: 2px solid rgba(255, 255, 255, 0.5);
}

/* Kupon kodu */
.campaign-code {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    letter-spacing: 4px;
    text-transform: uppercase;
    padding: 10px 30px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    border: 2px dashed rgba(255, 255, 255, 0.5);
}

/* İndirim adı */
.campaign-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* İndirim tutarı */
.campaign-amount {
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffa04d;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* Açıklama */
.campaign-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 400px;
    line-height: 1.5;
}

/* Koşul */
.campaign-condition {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    margin-top: 8px;
}

/* Banner Notu - Admin tarafından eklenen özel mesaj */
.campaign-banner-note {
    font-size: 0.95rem;
    color: #ffa04d;
    font-weight: 600;
    margin-top: 6px;
    padding: 6px 16px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 20px;
    border: 1px solid rgba(255, 160, 77, 0.3);
}

/* Kullanım Notu - Küçük puntolarla gösterilen kullanım hakları */
.campaign-usage-note {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    margin-top: 8px;
    text-align: center;
}

/* Yükleniyor durumu */
.featured-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 32vh;
    background: var(--featured-gradient);
}

.featured-loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-faint);
    font-size: 0.95rem;
}

.featured-loading-spinner::before {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid rgba(77, 184, 255, 0.2);
    border-top-color: #4db8ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Ürün bulunamadı durumu */
.featured-empty {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 32vh;
    background: var(--featured-gradient);
    color: var(--text-fainter);
    font-size: 1rem;
    text-align: center;
    padding: 20px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   📍 SLIDER PAGINATION DOTS
   ═══════════════════════════════════════════════════════════════════════════ */

/* Pagination Dots Container */
.slider-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    width: 60%;
    margin: 0 auto;
}

/* Pagination Dot (çizgi şeklinde) */
.pagination-dot {
    width: 30px;
    height: 4px;
    background: var(--scrollbar-thumb);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.pagination-dot:hover {
    background: var(--scrollbar-thumb-hover);
}

.pagination-dot.active {
    background: #4db8ff;
    width: 40px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   📱 DESKTOP DUAL SLIDE (2 slide yan yana)
   ═══════════════════════════════════════════════════════════════════════════ */

@media (min-width: 769px) {

    .slide,
    .featured-slide,
    .campaign-slide {
        flex: 0 0 50%;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   🔍 ÜRÜN ARAMA
   ═══════════════════════════════════════════════════════════════════════════ */

.product-search-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 20px auto 24px;
    max-width: 420px;
    position: relative;
}

.product-search-input {
    width: 100%;
    padding: 14px 44px 14px 18px;
    border-radius: 14px;
    border: 2px solid var(--text-faintest);
    background: var(--search-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
    box-shadow: var(--shadow-soft);
}

.product-search-input::placeholder {
    color: var(--text-muted);
}

.product-search-input:focus {
    border-color: #4db8ff;
    box-shadow: 0 0 0 3px rgba(77, 184, 255, 0.15), 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* Hide browser's native search clear button */
.product-search-input::-webkit-search-cancel-button,
.product-search-input::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}

.product-search-input::-ms-clear {
    display: none;
}

.product-search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--hover-bg);
    border: none;
    color: var(--text-faint);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.product-search-clear:hover {
    background: rgba(255, 100, 100, 0.3);
    color: #fff;
}

.product-search-clear.hidden {
    display: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ☀️ LIGHT THEME BANNER OVERRIDES
   ═══════════════════════════════════════════════════════════════════════════ */

/* 🏷️ Öne Çıkan Rozeti (Badge) - Daha belirgin */
[data-theme="light"] .featured-badge {
    background: #ffa04d;
    /* Orange Gold */
    color: #000;
    /* Black Text */
    border: 1px solid #e68a00;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    font-weight: 700;
    opacity: 1;
}

/* 🖼️ Bilgi Penceresi (Info Box) - Light Mode SAME AS DARK (Transparan) */
[data-theme="light"] .featured-info {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-top: none;
}

[data-theme="light"] .featured-title {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

[data-theme="light"] .featured-old-price {
    color: rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .featured-new-price {
    color: #4db8ff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* ⌨️ Ürün Kodu - Transparan gradient üzerinde beyaz */
[data-theme="light"] .featured-code {
    color: #fff !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* ═══════════════════════════════════════════════════════════════════════════
   📱 MOBİL RESPONSIVE - Banner ve Kategori genişlik override
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .hero-slider {
        width: 100%;
        border-radius: 0;
    }

    .category-wrapper {
        width: 100%;
        padding: 8px 4px;
    }

    .slider-pagination {
        width: 100%;
    }

    .category-arrow {
        width: 28px;
        height: 28px;
        font-size: 1.1rem;
    }

    .category-card {
        width: auto;
        min-width: 100px;
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}