/* ═══════════════════════════════════════════════════
   NORA TEKNOLOJİ - ÖZEL STİLLER
   Güvenlik Kamerası & Ekipmanları Toptan E-Ticaret
   ═══════════════════════════════════════════════════ */

/* ─── GENEL ─── */
* { box-sizing: border-box; }
body { font-family: 'Open Sans', sans-serif; }
h1, h2, h3, h4, h5, h6 { font-family: 'Nunito', sans-serif; }

/* ─── ÜRÜN KARTI ─── */
.urun-karti {
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.urun-karti:hover {
    border-color: #ff6600;
    box-shadow: 0 4px 20px rgba(255, 102, 0, 0.15);
    transform: translateY(-3px);
}

/* ─── FİYAT ─── */
.fiyat-musteri { color: #333; font-size: 15px; }
.fiyat-bayi { color: #cc0000; font-size: 20px; font-weight: 800; }
.bayi-badge { background: #28a745; color: white; font-size: 10px; padding: 2px 8px; border-radius: 3px; }
.fiyat-alani .fiyat-musteri-normal { text-decoration: line-through; }

/* ─── BUTONLAR ─── */
.btn-sepet {
    background: linear-gradient(135deg, #ff6600, #ff8c00);
    color: white;
    border: none;
    cursor: pointer;
}
.btn-sepet:hover {
    background: linear-gradient(135deg, #e55c00, #ff6600);
}
.btn-sepet:active {
    transform: scale(0.97);
}

/* ─── KATEGORİ SİDEBAR ─── */
.kategori-sidebar a {
    transition: all 0.2s ease;
}
.kategori-sidebar a:hover {
    background: #ff6600;
    color: white;
    padding-left: 15px;
}

/* ─── MEGA MENÜ ─── */
.kategori-mega-menu {
    animation: menuAc 0.2s ease;
}
@keyframes menuAc {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── STİCKY HEADER GÖLGE ─── */
.golgeli-header {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

/* ─── ARAMA ÖNERİ ─── */
.arama-oneri-kutu {
    animation: menuAc 0.2s ease;
}
.arama-oneri-kutu .oneri-satir {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
    text-decoration: none;
    color: #333;
}
.arama-oneri-kutu .oneri-satir:hover {
    background: #fff5ee;
}
.arama-oneri-kutu .oneri-satir img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    border-radius: 4px;
    background: #f9f9f9;
}

/* ─── SWIPER ÖZELLEŞTİRME ─── */
.ana-slider .swiper-pagination-bullet-active {
    background: #ff6600 !important;
}
.ana-slider .swiper-button-next,
.ana-slider .swiper-button-prev {
    color: #ff6600 !important;
    background: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.ana-slider .swiper-button-next::after,
.ana-slider .swiper-button-prev::after {
    font-size: 16px;
    font-weight: bold;
}
.urun-slider-nav {
    width: 36px;
    height: 36px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
}
.urun-slider-nav:hover {
    border-color: #ff6600;
    color: #ff6600;
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.2);
}

/* ─── KATEGORİ KUTULARI ─── */
.kategori-kutu {
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    background: white;
}
.kategori-kutu:hover {
    border-color: var(--kat-renk, #ff6600);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}
.kategori-kutu .kat-ikon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 22px;
}

/* ─── SAYAÇ ─── */
.sayac-kutu {
    text-align: center;
    padding: 30px 20px;
}
.sayac-kutu .sayac {
    font-size: 36px;
    font-weight: 900;
    font-family: 'Nunito', sans-serif;
    color: #ff6600;
}

/* ─── BİLDİRİM (TOAST) ─── */
.bildirim-toast {
    animation: toastGir 0.3s ease;
}
@keyframes toastGir {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ─── SCROLL ANİMASYON ─── */
.animasyonlu {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}
.animasyonlu.gorunur {
    opacity: 1;
    transform: translateY(0);
}

/* ─── ÇOK SATANLAR SCROLL ─── */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.animate-scroll {
    animation: scroll 30s linear infinite;
}
.animate-scroll:hover {
    animation-play-state: paused;
}

/* ─── FİLTRE SİDEBAR ─── */
.filtre-baslik {
    background: #f5f5f5;
    padding: 10px 15px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e8e8e8;
}
.filtre-baslik:hover {
    background: #eee;
}
.filtre-icerik {
    padding: 10px 15px;
    max-height: 200px;
    overflow-y: auto;
}
.filtre-icerik::-webkit-scrollbar {
    width: 4px;
}
.filtre-icerik::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

/* ─── ÜRÜN DETAY GALERİ ─── */
.galeri-ana {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    background: #f9f9f9;
}
.galeri-thumbs .thumb {
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s;
}
.galeri-thumbs .thumb:hover,
.galeri-thumbs .thumb.aktif {
    border-color: #ff6600;
}

/* ─── TAB SİSTEMİ ─── */
.tab-baslik {
    padding: 12px 24px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}
.tab-baslik:hover {
    color: #ff6600;
}
.tab-baslik.aktif {
    color: #ff6600;
    border-bottom-color: #ff6600;
}
.tab-icerik {
    display: none;
    animation: tabAc 0.3s ease;
}
.tab-icerik.aktif {
    display: block;
}
@keyframes tabAc {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ─── SEPET TABLOSU ─── */
.sepet-satir {
    transition: background 0.2s;
}
.sepet-satir:hover {
    background: #fffaf5;
}

/* ─── ADET KONTROL ─── */
.adet-kontrol {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}
.adet-kontrol button {
    width: 36px;
    height: 36px;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}
.adet-kontrol button:hover {
    background: #ff6600;
    color: white;
}
.adet-kontrol input {
    width: 50px;
    height: 36px;
    text-align: center;
    border: none;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    font-weight: 700;
    font-size: 14px;
}
.adet-kontrol input:focus {
    outline: none;
}

/* ─── ÖDEME ADIMLARI ─── */
.odeme-adim {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 13px;
    color: #999;
    position: relative;
}
.odeme-adim.aktif {
    color: #ff6600;
    font-weight: 700;
}
.odeme-adim.tamamlandi {
    color: #28a745;
}
.odeme-adim .adim-no {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}
.odeme-adim.aktif .adim-no {
    background: #ff6600;
    color: white;
    border-color: #ff6600;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .kategori-mega-menu {
        display: none !important;
    }
}

/* Alt boşluk (mobil bottom nav için) */
@media (max-width: 1023px) {
    body { padding-bottom: 70px; }
}

/* ─── LINE CLAMP ─── */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─── SAFE BOTTOM (iOS) ─── */
.safe-bottom {
    padding-bottom: max(8px, env(safe-area-inset-bottom));
}

/* ─── LOADING SKELETON ─── */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ─── ADMIN PANEL ─── */
.admin-sidebar {
    width: 260px;
    min-height: 100vh;
    background: #1a1a2e;
    color: #a0a0b0;
    transition: width 0.3s;
}
.admin-sidebar a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    font-size: 13px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.admin-sidebar a:hover,
.admin-sidebar a.aktif {
    background: rgba(255, 102, 0, 0.1);
    color: #ff6600;
    border-left-color: #ff6600;
}
.admin-sidebar a i {
    width: 20px;
    text-align: center;
}

/* ─── ADMIN STAT KART ─── */
.admin-kart {
    border-radius: 10px;
    padding: 20px;
    color: white;
    position: relative;
    overflow: hidden;
}
.admin-kart::after {
    content: '';
    position: absolute;
    right: -10px;
    top: -10px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}
