@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

/* =========================================
   1. GENEL AYARLAR VE TEMA
   ========================================= */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f3f3; /* Trendyol arka plan rengi */
}

/* =========================================
   2. ÜST MENÜ (NAVBAR) VE ARAMA
   ========================================= */
.custom-navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e2e2;
    padding: 15px 0;
}

.brand-logo {
    font-size: 24px;
    font-weight: 800;
    color: #f27a1a !important; /* Trendyol Turuncusu */
    text-decoration: none;
}

.search-wrapper {
    flex-grow: 1;
    max-width: 600px;
    margin: 0 40px;
    position: relative;
}

.search-input {
    width: 100%;
    background-color: #f3f3f3;
    border: 2px solid transparent;
    border-radius: 6px;
    padding: 10px 15px 10px 40px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.search-input:focus {
    border-color: #f27a1a;
    background-color: #fff;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #f27a1a;
}

.nav-actions {
    display: flex;
    gap: 25px;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: color 0.2s;
}

.action-item i {
    font-size: 18px;
    margin-bottom: 4px;
}

.action-item:hover {
    color: #f27a1a;
}

/* =========================================
   3. BÖLÜM TASARIMLARI (FLAŞ/İNDİRİM)
   ========================================= */
.section-container {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.bg-flash-header {
    background-color: #ff9800;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    margin-bottom: 15px;
    display: inline-block;
    font-weight: 800;
}

.bg-discount-header {
    background-color: #2196f3;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    margin-bottom: 15px;
    display: inline-block;
    font-weight: 800;
}

/* Yatay Kaydırılabilir Ürün Listesi (Swipe) */
.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: #d1d1d1 transparent;
}

.horizontal-scroll::-webkit-scrollbar {
    height: 6px;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
    background-color: #d1d1d1;
    border-radius: 10px;
}

/* =========================================
   4. ÜRÜN KARTLARI
   ========================================= */
.product-card-wrapper {
    min-width: 210px;
    max-width: 210px;
    flex: 0 0 auto;
}

.product-card {
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.product-image-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.badges-container {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
}

.badge-flash {
    background-color: #dc3545;
    color: white;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 3px;
}

.badge-discount {
    background-color: #28a745;
    color: white;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 3px;
}

.card-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 13px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
    height: 38px;
}

.price-container {
    margin-top: auto;
}

.old-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.new-price {
    font-size: 16px;
    color: #f27a1a;
    font-weight: 800;
}

/* =========================================
   5. MASAÜSTÜ WHATSAPP DESTEK BUTONU
   ========================================= */
.whatsapp-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1060;
}

.wa-text-bubble {
    background-color: #ffffff;
    color: #333333;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-right: 12px;
    border: 1px solid #e2e2e2;
    white-space: nowrap;
    position: relative;
    transition: all 0.3s ease;
}

.wa-text-bubble::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent #ffffff;
}

.wa-icon-circle {
    background-color: #25d366;
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease;
}

.whatsapp-float-btn:hover .wa-icon-circle { transform: scale(1.1); }
.whatsapp-float-btn:hover .wa-text-bubble { color: #25d366; border-color: #25d366; }

/* =========================================
   6. MOBİL UYGULAMA ALT MENÜSÜ
   ========================================= */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 1050;
    border-top: 1px solid #eee;
}

.mobile-bottom-nav a {
    text-align: center;
    color: #888;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.mobile-bottom-nav a.active, .mobile-bottom-nav a:hover {
    color: #f27a1a; 
}

.mobile-bottom-nav a i {
    font-size: 20px;
}

/* =========================================
   7. %100 MOBİL UYUMLULUK VE APP GÖRÜNÜMÜ 
   ========================================= */
@media (max-width: 768px) {
    /* Alt menü ekleneceği için sitenin en altından biraz boşluk bırakalım */
    body { padding-bottom: 70px; }

    /* Arama çubuğunu logonun altına alıp tam genişlik yapalım */
    .custom-navbar .container { flex-wrap: wrap; }
    .brand-logo { font-size: 20px; }
    .search-wrapper { 
        order: 3; 
        margin: 15px 0 0 0 !important; 
        max-width: 100%; 
        width: 100%; 
    }
    
    /* Üst menü ikonlarının altındaki yazıları gizleyip sadece ikon bırakalım */
    .nav-actions { gap: 15px; }
    .action-item span { display: none; }
    .action-item i { font-size: 22px; }

    /* Dairesel kategoriler yatay kaydırma */
    .category-scroll-mobile {
        display: flex;
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 15px;
        padding-bottom: 10px;
        scrollbar-width: none; 
    }
    .category-scroll-mobile::-webkit-scrollbar { display: none; } 
    .category-scroll-mobile .col-4 { width: auto; flex: 0 0 auto; }
    .category-circle { width: 65px; height: 65px; }
    .category-circle i { font-size: 24px; }

    /* Bannerları küçültelim */
    .promo-banner { height: 160px; padding: 20px; }
    .promo-banner h3 { font-size: 18px; line-height: 1.3; }
    
    /* Mobilde yatay kaydırılan ürünleri daraltalım */
    .product-card-wrapper { min-width: 160px; max-width: 160px; }
    .product-image-wrapper { height: 150px; }
    
    /* Tüm Ürünler Izgarası (Yan Yana 2'li) */
    .row-cols-2 > .col { width: 50%; }
    
    /* Fontları mobilde okunaklı yapalım */
    .product-title { font-size: 12px; height: 34px; margin-bottom: 5px; }
    .new-price { font-size: 15px; }
    .old-price { font-size: 11px; }

    /* --- TURUNCU MOBİL WHATSAPP BUTONU --- */
    .whatsapp-float-btn {
        bottom: 85px; /* Mobil alt menünün üstünde durur */
        right: 15px;
    }
    .wa-icon-circle {
        width: 50px;
        height: 50px;
        font-size: 30px;
    }
    .wa-text-bubble {
        font-size: 13px;
        padding: 8px 15px;
        background-color: #f27a1a; /* Turuncu arka plan */
        color: #ffffff; /* Beyaz yazı */
        border: none;
        box-shadow: 0 4px 10px rgba(242, 122, 26, 0.4);
    }
    .wa-text-bubble::after {
        border-color: transparent transparent transparent #f27a1a;
        right: -5px;
    }
}