/* ==========================================================================
   ÜRÜNLER SAYFASI CSS - KÜRESEL FONT MİRASI AKTİF EDİLDİ
   ========================================================================== */

/* 1. SAYFA BAŞLIĞI VE GENEL KONTEYNER (KURUMSAL.CSS İLE BİREBİR AYNI) */
.ae-container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
.relative-z { position: relative; z-index: 2; }

.ae-page-header { position: relative; padding: 100px 0 60px 0; background-size: cover; background-position: center; background-attachment: fixed; text-align: center; }
.ae-header-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(180deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.95) 100%); z-index: 1; }
.ae-page-title { color: #ffffff; font-size: 2.8rem; font-weight: 700; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 2px; }
.ae-breadcrumb { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; align-items: center; gap: 12px; font-size: 1rem; color: #cbd5e1; }
.ae-breadcrumb a { color: #38bdf8; text-decoration: none; transition: 0.3s; }
.ae-breadcrumb a:hover { color: #ffffff; }
.ae-breadcrumb i { font-size: 0.8rem; color: #94a3b8; }
.ae-breadcrumb .ae-active { color: #ffffff; }

/* 2. KATALOG BÖLÜMÜ (AYDINLIK BEYAZ ZEMİN) */
.ae-catalog-section {
    padding: 60px 0 90px 0;
    background: #ffffff;
    min-height: 700px;
}

/* ÜST FİLTRE BARİ & E-TİCARET KATEGORİ BUTONU */
.ae-top-filter-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 14px 18px;
    border-radius: 16px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    flex-wrap: wrap;
}

/* E-Ticaret Kategori Dropdown Yapısı */
.ae-category-dropdown-wrapper {
    position: relative;
    flex: 0 0 260px;
}

.ae-btn-category-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0284c7;
    color: #ffffff;
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.25);
    transition: all 0.3s ease;
}

.ae-btn-category-toggle .btn-inner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ae-btn-category-toggle:hover, .ae-btn-category-toggle.active {
    background: #0369a1;
    box-shadow: 0 0 20px rgba(2, 132, 199, 0.4);
}

.ae-btn-category-toggle .arrow-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.ae-btn-category-toggle.active .arrow-icon {
    transform: rotate(180deg);
}

/* Kategori Popover Menüsü */
.ae-category-popover {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 320px;
    background: #ffffff;
    border: 1px solid #bae6fd;
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(2, 132, 199, 0.15), 0 0 15px rgba(56, 189, 248, 0.2);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 12px;
}

.ae-category-popover.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Kategori İçi Arama Kutusu */
.ae-popover-search {
    position: relative;
    margin-bottom: 10px;
}

.ae-popover-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #0284c7;
    font-size: 0.85rem;
}

.ae-popover-search input {
    width: 100%;
    padding: 9px 12px 9px 34px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.85rem;
    background: #f8fafc;
    outline: none;
    transition: border-color 0.2s ease;
}

.ae-popover-search input:focus {
    border-color: #0284c7;
    background: #ffffff;
}

/* Kategori Listesi ve Hiyerarşisi */
.ae-popover-list {
    max-height: 320px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ae-cat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.88rem;
    color: #334155;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.ae-cat-item:hover, .ae-cat-item.active {
    background: #f0f9ff;
    color: #0284c7;
}

.ae-cat-item.parent-cat {
    font-weight: 700;
    color: #0f172a;
}

.ae-cat-sub-list {
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ae-cat-item.sub-cat {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 500;
}

.ae-cat-item.sub-cat:hover, .ae-cat-item.sub-cat.active {
    color: #0284c7;
    background: #f0f9ff;
}

/* Ürün Arama Formu */
.ae-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.ae-search-input-wrap {
    position: relative;
    flex: 1;
}

.ae-search-input-wrap .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.9rem;
}

.ae-search-input-wrap input {
    width: 100%;
    padding: 11px 14px 11px 40px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #0f172a;
    background: #ffffff;
    outline: none;
    transition: all 0.2s ease;
}

.ae-search-input-wrap input:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.btn-filter-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 11px 20px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-filter-submit:hover {
    background: #0284c7;
}

.btn-filter-reset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fee2e2;
    color: #ef4444;
    text-decoration: none;
    padding: 11px 16px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    transition: background 0.2s ease;
}

.btn-filter-reset:hover {
    background: #fca5a5;
    color: #991b1b;
}

.ae-catalog-header {
    margin-bottom: 20px;
}

.ae-count-info {
    font-size: 0.9rem;
    color: #64748b;
}

.ae-count-info strong {
    color: #0f172a;
}

/* 3. AYDINLIK ZEMİNDE NEON EFEKTLİ ÜRÜN KARTLARI */
.ae-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}

.ae-product-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* AYDINLIK NEON HOVER PARILDAMASI */
.ae-product-card:hover {
    transform: translateY(-6px);
    border-color: #38bdf8;
    box-shadow: 0 12px 30px rgba(2, 132, 199, 0.15), 0 0 18px rgba(56, 189, 248, 0.35);
}

.ae-product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    background: #0f172a;
    color: #fbbf24;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* GÜNCEL KART GÖRSEL AYARLARI BURADA */
.ae-product-img-wrap {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4; /* Kartı diklemesine uzun hale getirir */
    background: #f8fafc;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
}

.ae-product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Resmin kırpılmasını engeller, çerçevenin içine tam sığdırır */
    padding: 15px; /* Resmin kenarlara yapışıp boğucu durmaması için zarif bir boşluk */
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ae-product-card:hover .ae-product-img-wrap img {
    transform: scale(1.08);
}

.ae-product-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ae-product-brand {
    font-size: 0.7rem;
    font-weight: 800;
    color: #0284c7;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
    display: block;
}

.ae-product-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
}

.ae-product-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ae-product-card:hover .ae-product-title a {
    color: #0284c7;
}

.ae-product-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #f8fafc;
}

.ae-product-code {
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100px;
}

/* GÖSTERİŞLİ NEON İNCELE BUTONU */
.ae-btn-detail-neon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
    transition: all 0.3s ease;
}

.ae-btn-detail-neon i {
    font-size: 0.75rem;
    transition: transform 0.25s ease;
}

.ae-product-card:hover .ae-btn-detail-neon {
    background: linear-gradient(135deg, #0f172a 0%, #0284c7 100%);
    box-shadow: 0 0 18px rgba(2, 132, 199, 0.7);
    transform: scale(1.03);
}

.ae-product-card:hover .ae-btn-detail-neon i {
    transform: translateX(4px);
}

.ae-no-products {
    text-align: center;
    padding: 70px 20px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
}

.no-prod-icon {
    width: 64px;
    height: 64px;
    background: #f1f5f9;
    color: #94a3b8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 16px auto;
}

.ae-no-products h3 {
    font-size: 1.3rem;
    color: #0f172a;
    margin-bottom: 8px;
}

.ae-no-products p {
    color: #64748b;
    font-size: 0.92rem;
    margin-bottom: 24px;
}

.btn-filter-reset-lg {
    display: inline-block;
    background: #0284c7;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

/* 4. MOBİL DÜZEN VE İKİLİ (2'Lİ) GRİD */
@media (max-width: 768px) {
    .ae-top-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .ae-category-dropdown-wrapper {
        flex: 1 1 100%;
    }

    .ae-category-popover {
        width: 100%;
    }

    .ae-search-form {
        flex-wrap: wrap;
    }

    .ae-search-input-wrap {
        flex: 1 1 100%;
    }

    .btn-filter-submit {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .ae-container {
        padding: 0 10px;
    }

    .ae-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .ae-product-card {
        border-radius: 12px;
    }

    .ae-product-body {
        padding: 10px;
    }

    .ae-product-brand {
        font-size: 0.65rem;
    }

    .ae-product-title {
        font-size: 0.82rem;
        line-height: 1.3;
        margin-bottom: 8px;
        height: 2.6em;
    }

    .ae-product-footer {
        padding-top: 6px;
    }

    .ae-product-code {
        display: none;
    }

    .ae-btn-detail-neon {
        width: 100%;
        justify-content: center;
        padding: 7px 10px;
        font-size: 0.72rem;
    }

    .ae-product-badge {
        font-size: 0.6rem;
        padding: 2px 6px;
        top: 6px;
        left: 6px;
    }
}