/*
Theme Name: Ibo Elektrik Theme
Theme URI: https://iboelektrik.com/
Author: Antigravity AI
Description: Clean Custom E-Commerce Theme Replicating WordPress Structure.
Version: 1.0
*/

:root {
    --logo-turuncu: #ff6600;
    --logo-lacivert: #0f172a;
    --logo-kirmizi: #ff6600;
    --koyu-gri: #0f172a;
    --favori-kirmizi: #ef4444;
    --gradient-5050: linear-gradient(135deg, #ff6600 0%, #0f172a 100%);
    --gradient-9010: linear-gradient(135deg, #ff6600 0%, #ff6600 88%, #0f172a 100%);
    --gradient-header-orange: linear-gradient(90deg, #ff6600 0%, #ff5500 100%);
    --gradient-multi: linear-gradient(90deg, #ff6600 0%, #e11d48 20%, #9333ea 40%, #2563eb 60%, #059669 80%, #f59e0b 100%);
}

body {
    background-color: #f8fafc;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* 1. KAT: En Üst İnce Link Satırı */
.ust-linkler {
    background-color: #fffaf5;
    border-bottom: 1px solid #ffe8d6;
    padding: 6px 0;
}
.ust-linkler a {
    color: #495057;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    margin: 0 12px; 
    transition: 0.2s ease;
    cursor: pointer;
}
.ust-linkler a:hover {
    color: #ff6600;
    font-weight: 700;
}

/* 2. KAT: Orta Logo ve Arama Satırı */
.arama-satiri {
    padding: 20px 0;
    border-bottom: 1px solid #dee2e6;
    background-color: #ffffff;
}
.navbar-logo {
    max-height: 48px;
    width: auto;
    image-rendering: -webkit-optimize-contrast;
}

/* ============================================================
   PROFIL BUTON VE DROPDOWN STİLLERİ
   ============================================================ */
.profile-circle-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #ffffff;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.profile-circle-btn::after { display: none !important; }
.profile-circle-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}
.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.profile-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}
.profile-dropdown-menu {
    animation: dropdownFadeIn 0.2s ease-out;
}
@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   SABİT YÜZEN BUTONLAR
   ============================================================ */
.sabit-buton {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--koyu-gri);
    border: 1px solid #dee2e6;
    padding: 10px 18px;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(5px);
}

/* Sepet Özel Renkleri */
.sepet-butonu-sabit:hover {
    color: #ffffff;
    transform: translateY(-2px);
}
.sepet-butonu-sabit:hover i { color: #ffffff; }

/* Favori Özel Renkleri */
.favori-butonu-sabit i { color: var(--favori-kirmizi); }
.favori-butonu-sabit:hover {
    background-color: var(--favori-kirmizi);
    color: #ffffff;
    border-color: var(--favori-kirmizi);
    transform: translateY(-2px);
}
.favori-butonu-sabit:hover i { color: #ffffff; }

.sabit-sayac {
    color: white;
    border-radius: 20px;
    padding: 2px 9px;
    font-size: 12px;
    font-weight: 700;
}
.favori-butonu-sabit .sabit-sayac { background-color: var(--favori-kirmizi); }
.favori-butonu-sabit:hover .sabit-sayac { background-color: #ffffff; color: var(--favori-kirmizi); }

@media (max-width: 767.98px) {
    .sabit-butonlar-kutusu {
        display: none !important;
    }
}
@media (min-width: 992px) {
    .sabit-butonlar-kutusu {
        display: none !important;
    }
}

/* ============================================================
   3. KAT: ANA KATEGORİ MENÜSÜ (80% Lacivert, 20% Turuncu)
   ============================================================ */
.kategori-menusu {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    border-bottom: 3px solid #ff6600 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    margin: 0;
    padding: 0;
}
.kategori-link {
    color: #f8fafc !important;
    font-weight: 700;
    font-size: 14.5px;
    padding: 14px 18px !important;
    transition: all 0.2s ease;
    letter-spacing: 0.2px;
    border-bottom: none !important;
}
.kategori-link:hover,
.kategori-link:focus,
.nav-item.dropdown:hover > .kategori-link {
    background-color: rgba(255, 102, 0, 0.22) !important;
    color: #ff6600 !important;
    border-radius: 6px;
}

/* ARAMA KUTUSU - Tema Rengi */
.arama-kutusu {
    background-color: #f1f5f9;
    border: 2px solid #cbd5e1;
    border-right: none;
    border-radius: 10px 0 0 10px;
    padding: 10px 16px;
    font-size: 14px;
    color: #1e293b;
    transition: all 0.2s ease;
    flex: 1;
}
.arama-kutusu:focus {
    outline: none;
    border-color: #ff6600;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.12);
}
.arama-kutusu::placeholder {
    color: #94a3b8;
    font-size: 13.5px;
}
.arama-butonu {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border: none;
    border-radius: 0 10px 10px 0;
    padding: 10px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.arama-butonu:hover {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

/* Açılır Menü Tasarımı - Sıfır Boşluk, Koyu Lacivert */
.kategori-menusu .dropdown-menu {
    background-color: #0f172a !important;
    border: 1px solid rgba(255, 102, 0, 0.3) !important;
    border-top: none !important;
    box-shadow: 0px 12px 35px rgba(0, 0, 0, 0.5) !important;
    padding: 6px 0 !important;
    border-radius: 0 0 10px 10px !important;
    margin-top: 0 !important;
}
.kategori-menusu .dropdown-menu .dropdown-item {
    color: #e2e8f0 !important; 
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.15s ease;
}
.kategori-menusu .dropdown-menu .dropdown-item:last-child {
    border-bottom: none;
}
.kategori-menusu .dropdown-menu .dropdown-item:hover,
.kategori-menusu .dropdown-menu .dropdown-item:focus {
    color: #ffffff !important;
    background-color: #ff6600 !important;
}

/* Masaüstünde Yana Açılan Alt Menü */
@media (min-width: 992px) {
    .dropdown-menu .dropdown-submenu {
        position: relative;
    }
    .dropdown-menu .dropdown-submenu .dropdown-menu {
        position: absolute;
        left: 100%;
        top: 0;
        margin-top: -1px;
        display: none;
    }
    .dropdown-menu .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }
}

/* ============================================================
   MOBİL MENÜ (<768px) - Üst Linkler + Menü Stilleri
   ============================================================ */
@media (max-width: 767.98px) {
    .ust-linkler .container {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        padding: 6px 12px;
        gap: 15px;
        justify-content: flex-start !important;
        -webkit-overflow-scrolling: touch;
    }
    .ust-linkler .container::-webkit-scrollbar {
        display: none;
    }
    .ust-linkler a {
        margin: 0 !important;
        flex-shrink: 0;
        font-size: 12px;
    }
    /* Mobil menü: lacivert arkaplan korunur */
    .kategori-menusu {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
        border-bottom: none !important;
    }
    .kategori-menusu .container {
        padding: 0;
    }
    .navbar-collapse {
        background: #0f172a;
        padding: 6px 20px 14px;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    }
    .kategori-link {
        padding: 13px 10px !important;
        border-bottom: 1px solid rgba(255,255,255,0.08) !important;
        font-size: 15px;
        font-weight: 700;
        color: #f8fafc !important;
    }
    .kategori-link:hover {
        background-color: rgba(255,102,0,0.18) !important;
        color: #ff6600 !important;
        border-radius: 8px;
    }
    .kategori-menusu .dropdown-menu {
        border: none !important;
        box-shadow: none !important;
        background-color: rgba(255,255,255,0.08) !important;
        padding-left: 12px;
        border-radius: 8px !important;
        margin-bottom: 6px;
        margin-top: 0 !important;
        border-top: none !important;
    }
    .kategori-menusu .dropdown-menu .dropdown-item {
        padding: 10px 14px;
        font-size: 14px;
        font-weight: 600;
        color: #cbd5e1 !important;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .kategori-menusu .dropdown-menu .dropdown-item:last-child {
        border-bottom: none;
    }
    .kategori-menusu .dropdown-menu .dropdown-item:hover {
        color: #ff6600 !important;
        background-color: rgba(255,102,0,0.15) !important;
    }
    .sabit-butonlar-kutusu {
        top: auto;
        bottom: 20px;
        right: 20px;
        flex-direction: column;
        gap: 8px;
    }
    .sabit-buton {
        padding: 8px 12px;
        font-size: 12px;
    }
    .navbar-logo {
        max-height: 38px;
    }
    .arama-satiri {
        padding: 12px 0;
    }
}

@media (max-width: 768px) {
    .section-title-custom {
        font-size: 18px !important;
    }
    .banner-img {
        height: 130px !important;
    }
    .scroll-btn {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .buy-btn-custom {
        width: 100% !important;
    }
    .d-flex.align-items-center.justify-content-between.gap-1.mt-2 {
        flex-direction: column !important;
        gap: 6px !important;
    }
    .d-flex.align-items-center.justify-content-between.gap-1.mt-2 > div {
        width: 100% !important;
        justify-content: center !important;
    }
}

.dropdown-toggle-alt::after {
    display: inline-block;
    margin-left: .255em;
    vertical-align: .255em;
    content: "";
    border-top: .3em solid transparent;
    border-right: 0;
    border-bottom: .3em solid transparent;
    border-left: .3em solid;
    float: right;
    margin-top: 8px;
}

/* Modal içi PDF Listesi Stili */
.modal-pdf-listesi {
    list-style: none;
    padding: 0;
    margin: 0;
}
.modal-pdf-listesi li {
    border-bottom: 1px solid #eee;
}
.modal-pdf-listesi li:last-child {
    border-bottom: none;
}
.modal-pdf-listesi a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}
.modal-pdf-listesi a:hover {
    background-color: #fff8f4;
}

/* ============================================================
   ÜRÜN ŞABLONU STİLLERİ
   ============================================================ */
.urun-kart {
    position: relative;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: #fff;
    overflow: hidden;
}
.urun-kart:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.07);
    transform: translateY(-4px);
}

/* SAĞ ÜST KÖŞE FAVORİYE EKLE (KALP) BUTONU */
.urun-favori-butonu {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    color: #a8dadc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
}
.urun-favori-butonu:hover {
    transform: scale(1.15);
    color: var(--favori-kirmizi);
}
.urun-favori-butonu.aktif {
    background-color: #ffffff;
    color: var(--favori-kirmizi) !important;
    border-color: #f1faee;
}

.urun-gorsel-link {
    display: block;
    position: relative;
    padding-top: 100%;
    background-color: #fafafa;
    cursor: pointer;
}
.urun-gorsel-link img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}
.urun-kategori {
    font-size: 11px;
    color: #868e96;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.urun-baslik {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--koyu-gri);
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-decoration: none;
    line-height: 1.5;
    cursor: pointer;
}
.urun-baslik:hover {}
.urun-fiyat {
    font-size: 19px;
    font-weight: 800;
    color: var(--koyu-gri);
}

/* ADETLİ SEPET GRUBU STİLLERİ */
.urun-adet-grup {
    display: flex;
    align-items: center;
    background-color: #f1f3f5;
    padding: 4px;
    border-radius: 8px;
    gap: 5px;
}
.adet-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}
.adet-btn:hover {
    background-color: #ff6600;
    transform: scale(1.1);
}
.adet-input {
    width: 100px;
    height: 34px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    background-color: #ffffff;
}
.yeni-sepet-btn {
    background-color: #ff6500;
    color: white;
    border: none;
    height: 34px;
    width: 45px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    flex-grow: 1;
}
.yeni-sepet-btn:hover {
    background-color: #e05900;
}

/* DETAY MODALI GÜNCELLEMELERİ */
.modal-tablo-baslik {
    background-color: #ff6500 !important;
    color: white !important;
}
.yuzde-indirim-kutusu {
    width: 50px; 
    height: 50px; 
    background-color: #ff6500; 
    font-size: 18px;
}

/* Dynamic scroll visibility class */
.sabit-butonlar-kutusu.sabit-butonlar-gizli {
    transform: translateY(-80px);
    opacity: 0;
    pointer-events: none;
}
@media (max-width: 991.98px) {
    .sabit-butonlar-kutusu.sabit-butonlar-gizli {
        transform: translateY(120px);
        opacity: 0;
        pointer-events: none;
    }
}

/* ============================================================
   FOOTER STİLLERİ
   ============================================================ */
.footer-custom {
    background-color: #0f172a;
    color: #94a3b8;
    border-top: 4px solid #ff6600;
    font-family: 'Outfit', 'Segoe UI', system-ui, sans-serif;
}

.footer-custom h5 {
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 20px;
    letter-spacing: -0.2px;
    text-transform: uppercase;
    border-left: 3px solid #ff6600;
    padding-left: 10px;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 12px;
}

.footer-links-list a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.footer-links-list a:hover {
    color: #ff6600;
    padding-left: 4px;
}

.footer-faq-section {
    background-color: #1e293b;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 40px;
}

.faq-accordion .accordion-item {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-accordion .accordion-button {
    background-color: transparent;
    color: #ffffff;
    font-weight: 600;
    font-size: 14.5px;
    padding: 16px 0;
    border: none;
    box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
    color: #ff6600;
}

.faq-accordion .accordion-button::after {
    filter: invert(1);
}

.faq-accordion .accordion-body {
    color: #cbd5e1;
    font-size: 13.5px;
    line-height: 1.6;
    padding: 0 0 16px 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    margin-top: 30px;
}

.contact-info-item {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.contact-info-item i {
    color: #ff6600;
    width: 18px;
}

/* ============================================================
   MOBİL ALT NAVİGASYON ÇUBUĞU
   ============================================================ */
@media (max-width: 767.98px) {
    body {
        padding-bottom: 75px !important;
    }
    .hb-mobil-alt-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background-color: #ffffff;
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
        z-index: 1040;
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 6px 0;
    }
    .hb-mobil-alt-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #64748b;
        font-size: 11px;
        font-weight: 600;
        transition: all 0.2s ease;
        position: relative;
        flex: 1;
        text-align: center;
        border: none;
        background: transparent;
        outline: none;
        padding: 0;
    }
    .hb-mobil-alt-item i {
        font-size: 20px;
        margin-bottom: 3px;
    }
    .hb-mobil-alt-item:hover, .hb-mobil-alt-item.active {
        color: #ff6600;
    }
    .hb-mobil-alt-item .badge {
        position: absolute;
        top: -4px;
        right: 20%;
        font-size: 9px;
        padding: 3px 6px;
        border-radius: 50%;
        background-color: #ff6600;
        color: #ffffff;
        font-weight: 700;
    }
}
@media (min-width: 768px) {
    .hb-mobil-alt-bar {
        display: none !important;
    }
}

@media (min-width: 768px) {
    #btnBackToTop {
        bottom: 30px !important;
        right: 30px !important;
    }
}

/* ==========================================================================
   STARTUP POPUP ADVERTISEMENT MULTI-LAYOUT STYLES
   ========================================================================== */
#bottomRightAdCard {
    animation: slideInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes slideInUp {
    from {
        transform: translateY(120%) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}
#fullscreenAdOverlay {
    animation: fadeIn 0.4s ease forwards;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
#topAlertAdBanner {
    animation: slideInDown 0.5s ease forwards;
}
@keyframes slideInDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}
@media (max-width: 576px) {
    #bottomRightAdCard {
        width: calc(100% - 30px) !important;
        right: 15px !important;
        left: 15px !important;
        bottom: 85px !important;
    }
}
