/* =====================================================
   APLAST - Ürün Kartları & Genel Düzeltmeler
   ===================================================== */

/* --- Ürün Kartı (tüm sayfalarda ortak) --- */
.aplast-card-col {
    margin-bottom: 28px;
}

.aplast-product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(0,0,0,.08);
    transition: transform .22s ease, box-shadow .22s ease;
    display: flex;
    flex-direction: column;
    min-height: 434px;
}

.aplast-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,.14);
}

/* Görsel — her kart için aynı oran */
.aplast-card-img-link {
    display: block;
    overflow: hidden;
    background: #f5f5f5;
}

.aplast-card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.aplast-product-card:hover .aplast-card-img {
    transform: scale(1.04);
}

.aplast-card-img-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 42px;
}

/* Kart içeriği */
.aplast-card-body {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.aplast-card-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #1a1a2e;
    line-height: 1.35;
}

.aplast-card-title a,
.aplast-card-title a:hover {
    color: inherit;
    text-decoration: none;
}

.aplast-card-desc {
    font-size: 13px;
    color: #666;
    margin: 0 0 10px;
    line-height: 1.5;
    flex: 1;
}

.aplast-card-wa {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #25d366;
    color: #fff !important;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background .2s;
    align-self: flex-start;
    margin-top: auto;
}

.aplast-card-wa:hover {
    background: #1db954;
}

/* --- Son Eklenenler Bölümü (Ana Sayfa) --- */
#son-eklenenler {
    padding: 50px 0 40px;
    background: #f8f9fb;
}

#son-eklenenler .section-title {
    margin-bottom: 30px;
}

#son-eklenenler h2 {
    font-size: 26px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 6px;
}

#son-eklenenler .section-subtitle {
    color: #888;
    font-size: 14px;
}

.son-eklenenler-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}

.son-eklenenler-row .aplast-card-col {
    padding: 0 12px;
    width: 25%;
}

@media (max-width: 991px) {
    .son-eklenenler-row .aplast-card-col { width: 33.333%; }
}
@media (max-width: 640px) {
    .son-eklenenler-row .aplast-card-col { width: 50%; }
}
@media (max-width: 400px) {
    .son-eklenenler-row .aplast-card-col { width: 100%; }
}

.son-eklenenler-row .aplast-card-cat-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 2px 9px;
    border-radius: 10px;
    background: #fff3e0;
    color: #d16618;
    margin-bottom: 5px;
}

.son-eklenenler-tumu {
    text-align: center;
    margin-top: 30px;
}

.son-eklenenler-tumu a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1a1a2e;
    color: #fff !important;
    padding: 11px 28px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background .2s;
}

.son-eklenenler-tumu a:hover {
    background: #d16618;
}

/* --- Kategori sayfası grid düzeltmesi --- */
#section-features-2 .row {
    display: flex;
    flex-wrap: wrap;
}

#section-features-2 .aplast-card-col {
    display: flex;
}

/* --- Tüm ürünler filtre çubuğu --- */
.aplast-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 24px;
}

.aplast-filter-btn {
    padding: 7px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    border: 2px solid #e0e0e0;
    color: #555 !important;
    background: #fff;
    transition: all .2s;
    cursor: pointer;
    display: inline-block;
}

.aplast-filter-btn:hover,
.aplast-filter-btn.active {
    background: #d16618 !important;
    color: #fff !important;
    border-color: #d16618 !important;
}

/* ─── Sol Menü Arama Kutusu ──────────────────────────────────── */
.menu-search-item {
    padding: 18px 16px 22px !important;
    list-style: none !important;
}
.menu-search-item > a { display: none !important; }

.menu-search-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255,255,255,.35);
    margin-bottom: 10px;
}
.menu-search-label i { font-size: 11px; color: #d16618; }

.menu-search-form {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,.08);
    border: 1.5px solid rgba(255,255,255,.15);
    border-radius: 10px;
    transition: border-color .25s, background .25s;
    overflow: hidden;
}
.menu-search-input-wrap:focus-within {
    border-color: #d16618;
    background: rgba(255,255,255,.13);
}
.menu-search-input-wrap i {
    padding: 0 0 0 13px;
    color: rgba(255,255,255,.35);
    font-size: 13px;
    flex-shrink: 0;
    pointer-events: none;
}
.menu-search-input {
    flex: 1;
    padding: 11px 12px;
    border: none;
    background: #ffffff;
    font-size: 13.5px;
    outline: none;
    color: #10272f;
    min-width: 0;
}
.menu-search-input::placeholder { color: rgba(255,255,255,.35); }

.menu-search-btn {

    padding: 10px 10px 10px 0px;
    background: linear-gradient(135deg, #d16618 0%, #e07828 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: opacity .2s, transform .15s;
    box-shadow: 0 3px 10px rgba(209,102,24,.35);
}
.menu-search-btn:hover {
    opacity: .9;
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(209,102,24,.45);
}
.menu-search-btn:active { transform: translateY(0); }

@media (max-width: 767px) {
    .menu-search-item { padding: 14px 12px 18px !important; }
}

/* ─── Arama Sonuçları Başlığı ────────────────────────────────── */
.aplast-search-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #fff;
    border-radius: 14px;
    padding: 22px 26px;
    margin-bottom: 24px;
    box-shadow: 0 2px 16px rgba(0,0,0,.07);
    border-left: 4px solid #d16618;
}
.aplast-search-header .sh-icon {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #d16618, #e07828);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}
.aplast-search-header .sh-body { flex: 1; }
.aplast-search-header .sh-title {
    font-size: 13px;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 4px;
}
.aplast-search-header .sh-query {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 6px;
    word-break: break-word;
}
.aplast-search-header .sh-query mark {
    background: linear-gradient(120deg, #fff3e0, #ffe0b2);
    color: #d16618;
    border-radius: 4px;
    padding: 0 4px;
    font-style: normal;
}
.aplast-search-header .sh-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    background: #e8f5e9;
    color: #2e7d32;
}
.aplast-search-header .sh-count.zero {
    background: #fce4ec;
    color: #c62828;
}
.aplast-search-header .sh-back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    font-size: 12.5px;
    color: #d16618;
    text-decoration: none;
    font-weight: 600;
    transition: gap .15s;
}
.aplast-search-header .sh-back:hover { gap: 8px; color: #b8551a; }
.aplast-search-no-result {
    text-align: center;
    padding: 60px 20px;
    color: #aaa;
}
.aplast-search-no-result i { font-size: 52px; display: block; margin-bottom: 16px; color: #ddd; }
.aplast-search-no-result h3 { font-size: 18px; color: #555; margin-bottom: 8px; }
.aplast-search-no-result p { font-size: 14px; }

/* =====================================================
   MOBİL UYUMLULUK EKLEMELERİ
   ===================================================== */

/* Harita iframe — responsive wrapper için */
.map-container iframe {
    max-width: 100%;
}

/* İletişim sayfası adres bloğu mobil */
@media (max-width: 767px) {
    .address-style-2 span {
        display: block;
        margin-bottom: 12px;
        word-break: break-word;
    }

    .address-style-2 a {
        word-break: break-word;
    }

    /* Harita mobilde tam genişlik */
    .map-container {
        margin-bottom: 20px;
    }

    /* Hakkımızda sayfası iç padding azalt */
    .aplast-hakkimizda .padding30 {
        padding: 16px !important;
    }

    /* Ürün kartı başlık boyutu mobilde */
    .aplast-card-title {
        font-size: 14px;
    }

    /* Tüm ürünler filtre butonları tam genişlik olmasın */
    .aplast-filter-bar {
        gap: 6px;
    }
    .aplast-filter-btn {
        font-size: 12px;
        padding: 6px 14px;
    }

    /* CTA bölümü mobil metin boyutu */
    #biziara h3, #biziaramobil h3 {
        font-size: 15px !important;
    }

    /* Subheader h1 mobilde taşmasın */
    #subheader h1 {
        font-size: 22px;
        word-break: break-word;
    }
}

@media (max-width: 480px) {
    /* Son eklenenler tek kolon küçük ekranda */
    .son-eklenenler-row .aplast-card-col {
        width: 100%;
    }

    /* Ürün detay sayfası başlık */
    .aplast-product-card {
        min-height: unset;
    }

    /* Arama kutusu input placeholder taşmasın */
    .menu-search-input {
        font-size: 12px;
    }

    /* Logo mobilde küçülsün taşmasın */
    #logo img.mobile {
        max-height: 44px;
        width: auto;
    }
}

/* Üst banner img responsive */
#section img[src*="banner"] {
    width: 90% !important;
    max-width: 700px;
}

@media (max-width: 767px) {
    #section img[src*="banner"] {
        width: 100% !important;
    }
}

/* Ürün kartları ana sayfada Bootstrap grid ile mobil */
#section-features-2 .col-md-4 {
    margin-bottom: 20px;
}

@media (max-width: 767px) {
    #section-features-2 .col-md-4 {
        width: 100%;
        float: none;
    }
}
