/**
 * Taskınlar AVM — Mobil Redesign Teması
 * Bu dosya main.css + responsive.css'ten SONRA yüklenir ve mobil görünümü
 * gönderilen referans tasarıma birebir uyacak şekilde günceller.
 */

/* ============================================================
   RENK / GENEL
   ============================================================ */
body {
    background: #ffffff;
}

/* ============================================================
   MASAÜSTÜ HEADER RENK UYUMU (kırmızı aksan)
   ============================================================ */
.search-box input:focus {
    box-shadow: 0 0 0 3px var(--color-primary-light);
    border-color: var(--color-primary);
}

/* ============================================================
   MOBİL HEADER  (referanstaki üst çubuk + arama satırı)
   Masaüstünde gizli, sadece <= 991px görünür.
   ============================================================ */
.tk-mobile-header { display: none; }

@media (max-width: 991px) {

    /* Orijinal masaüstü header'ı mobilde gizle */
    .main-header { display: none; }

    .tk-mobile-header {
        display: block;
        position: sticky;
        top: 0;
        z-index: 1000;
        background: #ffffff;
        box-shadow: 0 1px 0 rgba(0,0,0,.06);
    }

    /* Üst satır: Menü | Logo (orta) | kullanıcı + sepet */
    .tk-top-row {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        height: 60px;
        padding: 0 14px;
    }

    .tk-menu-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 15px;
        font-weight: 600;
        color: #1c1c1c;
        justify-self: start;
    }
    .tk-menu-btn i { font-size: 18px; }

    .tk-logo {
        justify-self: center;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .tk-logo img { height: 34px; width: auto; display: block; }

    /* Görsel logo yoksa metin/ikon fallback */
    .tk-logo-mark {
        width: 26px; height: 26px;
        background: var(--brand-red);
        border-radius: 5px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        flex-shrink: 0;
        position: relative;
    }
    .tk-logo-mark::before {
        content: "";
        width: 11px; height: 11px;
        border: 2.5px solid #fff;
        border-right-color: transparent;
        border-radius: 3px;
        transform: rotate(45deg);
    }
    .tk-logo-text {
        font-size: 20px;
        font-weight: 800;
        letter-spacing: -.5px;
        color: #1c1c1c;
    }

    .tk-actions {
        justify-self: end;
        display: inline-flex;
        align-items: center;
        gap: 16px;
    }
    .tk-actions a {
        position: relative;
        color: #1c1c1c;
        font-size: 22px;
        line-height: 1;
        display: inline-flex;
    }
    .tk-actions .tk-cart-badge {
        position: absolute;
        top: -7px;
        right: -9px;
        min-width: 17px;
        height: 17px;
        padding: 0 4px;
        background: var(--brand-red);
        color: #fff;
        font-size: 11px;
        font-weight: 700;
        border-radius: 999px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Arama satırı */
    .tk-search-row {
        padding: 6px 14px 12px;
    }
    .tk-search-row form {
        position: relative;
        display: block;
    }
    .tk-search-row input {
        width: 100%;
        height: 52px;
        border: 1px solid #ececec;
        background: #fff;
        border-radius: 14px;
        padding: 0 62px 0 18px;
        font-size: 15px;
        color: #1c1c1c;
        box-shadow: 0 2px 10px rgba(0,0,0,.05);
    }
    .tk-search-row input::placeholder { color: #b5b5b5; }
    .tk-search-row input:focus {
        outline: none;
        border-color: #e3e3e3;
    }
    .tk-search-row button {
        position: absolute;
        right: 6px;
        top: 50%;
        transform: translateY(-50%);
        width: 42px;
        height: 42px;
        border-radius: 12px;
        background: var(--brand-red);
        color: #fff;
        font-size: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ============================================================
   HERO / PROMO BANNER
   Referanstaki koyu, yuvarlak köşeli tek promo banner.
   ============================================================ */
@media (max-width: 991px) {
    .hero-section { padding: 12px 14px 4px; }
    .hero-slide {
        min-height: auto !important;
        border-radius: 16px;
        overflow: hidden;
        background: #101317 !important;
    }
    .hero-slide .container { padding: 0; }
    .hero-content {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        padding: 0 !important;
        text-align: left;
    }
    .hero-image { display: block !important; margin: 0; }
    .hero-image img {
        width: 100%;
        max-height: none;
        object-fit: cover;
        display: block;
    }
    /* Slider görselini tam banner olarak kullan; metin varsa üstüne bindir */
    .hero-text {
        position: absolute;
        inset: 0;
        padding: 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .hero-subtitle { color: #fff; opacity: .8; margin-bottom: 6px; }
    .hero-title { color: #fff; font-size: 26px; margin-bottom: 6px; }
    .hero-description { color: rgba(255,255,255,.85); font-size: 14px; margin-bottom: 14px; }
    .hero-text .btn {
        align-self: flex-start;
        background: var(--brand-red);
        border-radius: 999px;
        padding: 10px 22px;
    }
    .hero-slider .swiper-button-prev,
    .hero-slider .swiper-button-next { display: none; }
    .hero-slider .swiper-pagination { bottom: 10px; }

    /* Güven rozetleri mobilde gizle (referansta yok) */
    .trust-badges-section { display: none; }
}

/* ============================================================
   KATEGORİ PILL'LERİ  (2 kolon, koyu yuvarlak butonlar)
   ============================================================ */
@media (max-width: 991px) {
    .categories-section { padding: 14px 14px 6px; }
    .categories-section .section-header { display: none; }

    .categories-grid.grid,
    .categories-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
    }

    .category-card {
        background: #1c1c1c;
        border-radius: 999px;
        height: 60px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        text-align: center;
        transition: background .2s ease, transform .2s ease;
    }
    .category-card:hover,
    .category-card:active {
        background: var(--brand-red);
        transform: none;
    }
    /* Pill içinde görseli gizle, sadece isim */
    .category-card .category-image { display: none; }
    .category-card .category-name {
        color: #fff;
        font-size: 15px;
        font-weight: 600;
        margin: 0;
        padding: 0 14px;
    }
}

/* ============================================================
   ÜRÜN BÖLÜMÜ  ("Günün Özel Fırsatları")
   ============================================================ */
@media (max-width: 991px) {
    .products-section { padding: 18px 14px 10px; }
    .products-section .section-header {
        margin-bottom: 14px;
        padding: 0;
    }
    .products-section .section-title {
        font-size: 21px;
        font-weight: 800;
        color: #1c1c1c;
    }
    .products-section .section-link { display: none; }

    .products-grid.grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
    }

    .product-card.card {
        border: 1px solid #f0f0f0;
        border-radius: 14px;
        box-shadow: 0 2px 10px rgba(0,0,0,.04);
    }
    .product-card .card-body { padding: 12px; }
    .product-card .card-title { font-size: 14px; }
    .product-card .btn {
        background: var(--brand-red);
        border-radius: 10px;
        padding: 10px;
        font-size: 13px;
    }
    .product-card .btn:hover { background: var(--brand-red); }
    .price-current { color: #1c1c1c; }
}

/* ============================================================
   ÜRÜN ROZETLERİ  (Çok Satan / Son X Adet!)
   ============================================================ */
.card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}
.card-badges .badge-label { position: static; }

.badge-bestseller {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #F57C00;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 8px;
    text-transform: none;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.badge-lowstock {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--brand-red);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 8px;
    text-transform: none;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

/* ============================================================
   ALT SABİT MENÜ  (Menü / Sepet / Mağaza)
   ============================================================ */
@media (max-width: 991px) {
    .bottom-sticky-menu {
        display: block !important;
        border-top: 1px solid #eee;
        box-shadow: 0 -2px 14px rgba(0,0,0,.08);
    }
    .sticky-menu-container {
        justify-content: space-around;
        height: 64px;
        padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 0px));
    }
    .sticky-menu-item {
        color: #6b6b6b;
        font-size: 12px;
        gap: 3px;
        min-width: 70px;
    }
    .sticky-menu-icon { font-size: 21px; }
    .sticky-menu-item.active,
    .sticky-menu-item:active { color: var(--brand-red); }
    .sticky-badge {
        position: absolute;
        top: 0;
        right: 14px;
        min-width: 17px;
        height: 17px;
        padding: 0 4px;
        background: var(--brand-red);
        color: #fff;
        font-size: 11px;
        font-weight: 700;
        border-radius: 999px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    /* Alt menü olduğundan içerik altına boşluk bırak */
    .main-content { padding-bottom: 74px; }
    .main-footer { margin-bottom: 64px; }
}

/* Çok küçük ekranlarda ürün gridini tek koruma (2 kalsın) */
@media (max-width: 479px) {
    .products-grid.grid,
    .products-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .categories-grid.grid,
    .categories-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
