/* ==========================================
   EN KOLAY ADRES - ANA STIL DOSYASI
   ========================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ==========================================
   TEMEL AYARLAR
   ========================================== */
body {
    font-family: 'Inter', sans-serif;
}

/* ==========================================
   ARAMA OVERLAY
   ========================================== */
.search-overlay {
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================
   ÜRÜN KARTLARI (Vatan Standartı)
   ========================================== */
.product-card {
    background-color: white;
    border: 1px solid #f0f0f0;
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
    height: 100%;
    min-height: 380px;
    /* Daha ferah kart yapısı */
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: #0066CC;
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.08);
}

/* Rozet Slot (Görsel Altında - Sabit Yükseklik) */
.product-badge-slot {
    height: 24px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

.product-badge-top {
    display: inline-block;
    background-color: #002f6c;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.product-badge-top.bg-purple-600 {
    background-color: #7c3aed;
}

/* Ürün Görsel Alanı */
.product-image-slot {
    position: relative;
    aspect-ratio: 1/1;
    background-color: #f8f9fa;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    overflow: hidden;
}

.product-image-slot span {
    font-size: 4rem;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image-slot span {
    transform: scale(1.1);
}

/* İndirim Rozeti (Daha modern ve şık) */
.discount-circle {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #FF6600, #ff8533);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.25);
    z-index: 10;
}

.discount-circle::before {
    content: '%';
    font-size: 9px;
    margin-right: -1px;
}

/* Yorumlar ve Yıldızlar (Vatan Standartı - Daha Büyük) */
.product-rating-slot {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    height: 22px;
    /* Vatan: Daha belirgin yıldızlar */
}

.product-rating-slot .stars {
    color: #FFB800;
    font-size: 22px;
    letter-spacing: 1px;
}

.product-rating-slot .count {
    color: #666;
    font-size: 13px;
    font-weight: 600;
}

/* Ürün Kodu */
.product-code {
    color: #999;
    font-size: 10px;
    font-weight: 500;
    margin-bottom: 4px;
}

/* Ürün Başlığı */
.product-title {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
    height: 42px;
    /* Vatan: 2 satır için daha geniş alan */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

/* Kampanya Alanı */
.product-campaign-slot {
    height: 28px;
    /* Sabit slot */
    margin-bottom: 12px;
}

.campaign-badge {
    background-color: #002f6c;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 6px;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.campaign-badge.red {
    background-color: #D32F2F;
}

/* Fiyat Alanı */
.product-price-slot {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f8f8f8;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.current-price {
    display: flex;
    align-items: baseline;
    gap: 1px;
}

.price-main {
    color: #0066CC;
    font-size: 22px;
    font-weight: 900;
}

.price-decimal {
    color: #0066CC;
    font-size: 11px;
    font-weight: 900;
}

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

/* ==========================================
   PRODUCT SLIDER (Best Sellers)
   ========================================== */
.product-slider-wrapper {
    position: relative;
    width: 100%;
}

.product-slider-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding: 10px 4px;
    scrollbar-width: none;
    /* Firefox */
}

.product-slider-container::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.product-slider-container .product-card {
    flex: 0 0 calc(50% - 6px);
    /* Mobilde 2 ürün */
    scroll-snap-align: start;
    min-height: 380px;
    /* Biraz daha kompakt */
}

@media (min-width: 768px) {
    .product-slider-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        overflow-x: visible;
        gap: 24px;
        padding: 0;
    }

    .product-slider-container .product-card {
        flex: none;
    }
}

@media (min-width: 1024px) {
    .product-slider-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

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

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ddd;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dot.active {
    background-color: #000;
    width: 24px;
    border-radius: 4px;
}

/* Sepete Ekle Butonu */
.product-add-btn {
    margin-top: 12px;
    width: 100%;
    border: 2px solid #0066CC;
    color: #0066CC;
    font-weight: 800;
    font-size: 11px;
    padding: 10px 0;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.product-add-btn:hover {
    background-color: #0066CC;
    color: white;
}

/* ==========================================
   BUTON STİLLERİ
   ========================================== */
.btn-primary {
    background-color: #0066CC;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0052a3;
}

.btn-accent {
    background-color: #FF6600;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background-color: #e55c00;
}

/* ==========================================
   FORM ELEMANLARI
   ========================================== */
input:focus,
select:focus {
    outline: none;
    border-color: #0066CC;
}

/* ==========================================
   KAYDIRMA ÇUBUĞU (Scrollbar)
   ========================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* ==========================================
   HEADER SCROLL DAVRANIŞI
   ========================================== */
header {
    transition: transform 0.3s ease-in-out;
}

.header-hidden {
    transform: translateY(-100%);
}

/* ==========================================
   ANİMASYONLAR
   ========================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* ==========================================
   MOBİL MENÜ
   ========================================== */
#mobileMenuContent {
    transition: transform 0.3s ease;
}

/* ==========================================
   BADGE / ROZET
   ========================================== */
.badge-discount {
    background-color: #FF6600;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 600;
}

.badge-new {
    background-color: #22c55e;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 600;
}

/* ==========================================
   YARDIMCI SINIFLAR
   ========================================== */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.text-primary {
    color: #0066CC;
}

.text-accent {
    color: #FF6600;
}

.bg-primary {
    background-color: #0066CC;
}

.bg-accent {
    background-color: #FF6600;
}

.border-primary {
    border-color: #0066CC;
}

/* ==========================================
   SWITCH TOGGLE (Vatan Tarzı)
   ========================================== */
.switch-input:checked+.switch-label {
    background-color: #0066CC;
}

.switch-input:checked+.switch-label::after {
    transform: translateX(20px);
}

.switch-label::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

/* ==========================================
   RESPONSİVE DÜZENLEMELER
   ========================================== */
@media (max-width: 768px) {
    .product-card:hover {
        transform: none;
        box-shadow: none;
    }
}

/* ==========================================
   MAKALE KARTLARI (Yeni Tasarım)
   ========================================== */
.article-card {
    background-color: white;
    border: 1px solid #f0f0f0;
    border-radius: 1.5rem;
    /* Daha yuvarlak köşeler */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: #e5e5e5;
}

.article-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    /* Dikey görsel oranı */
    overflow: hidden;
    background-color: #f8f9fa;
}

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

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

.article-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-badges {
    margin-bottom: 1rem;
    display: flex;
    gap: 0.5rem;
}

.article-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    /* Pill shape */
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid #e5e5e5;
    color: #666;
    background-color: #fff;
    transition: all 0.2s;
}

.article-card:hover .article-badge {
    border-color: #333;
    color: #333;
}

.article-desc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.article-link-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: all 0.3s ease;
}

.article-card:hover .article-link-btn {
    background-color: #000;
    color: #fff;
    transform: rotate(-45deg);
}

/* ==========================================
   STICKY HELPERS
   ========================================== */
.filter-fixed {
    position: fixed !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 45 !important;
    /* Slightly below header */
    transition: top 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}