/* ==========================================================================
   ÜRÜN DETAY SAYFASI ÖZEL BEYAZ TEMA & MODERN STİLLER 
   (Global font ve reset kuralları sistemden miras alınır)
   ========================================================================== */

.ae-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.relative-z {
    position: relative;
    z-index: 2;
}

/* 1. SAYFA BAŞLIK BANNERI VE BREADCRUMB (Urunler.css ile birebir senkronize edildi) */
.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; 
    flex-wrap: wrap; 
}

.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. ÜRÜN DETAY ANA GRİD YAPISI */
.ae-detail-section {
    padding: 40px 0 70px 0;
    background: #ffffff;
    width: 100%;
    overflow: hidden;
}

.ae-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 40px;
    width: 100%;
}

/* SOL KOLON: MEDYA VE ÇERÇEVEYE SIĞDIRILMIŞ RESİM */
.ae-detail-media {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.ae-main-image-box {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    cursor: zoom-in;
    margin: 0 auto;
    box-sizing: border-box;
}

.ae-main-image-box img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* GALERİ MİNİATÜR GÖRSELLERİ */
.ae-gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    padding-bottom: 8px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.thumb-item {
    width: 75px;
    height: 75px;
    flex: 0 0 75px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    overflow: hidden;
    cursor: pointer;
    background: #ffffff;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.thumb-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.thumb-item:hover, .thumb-item.active {
    border-color: #0284c7;
    box-shadow: 0 0 10px rgba(2, 132, 199, 0.25);
}

/* SAĞ KOLON: BİLGİLER VE İLETİŞİM BUTONLARI */
.ae-detail-info {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-width: 0; 
}

.ae-info-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.ae-brand-badge {
    background: #f0f9ff;
    color: #0284c7;
    border: 1px solid #bae6fd;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.ae-code-badge {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.ae-product-main-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 14px;
    word-break: break-word;
}

.ae-short-description {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

/* İLETİŞİM BUTONLARI */
.ae-action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
    width: 100%;
}

.ae-btn-call, .ae-btn-whatsapp {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
}

.ae-btn-call {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.ae-btn-call:hover {
    background: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.3);
}

.ae-btn-whatsapp {
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.ae-btn-whatsapp:hover {
    background: #1ebc57;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

.btn-icon {
    font-size: 1.4rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-text {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.btn-text span {
    font-size: 0.7rem;
    font-weight: 700;
    opacity: 0.9;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    white-space: nowrap;
}

.btn-text strong {
    font-size: 0.98rem;
    font-weight: 800;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* KÜNYE BİLGİLERİ */
.ae-meta-list {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 22px;
}

.meta-item {
    display: flex;
    font-size: 0.88rem;
}

.meta-label {
    width: 100px;
    font-weight: 700;
    color: #64748b;
    flex-shrink: 0;
}

.meta-val {
    color: #0f172a;
    font-weight: 600;
}

.meta-val a {
    color: #0284c7;
    text-decoration: none;
}

.meta-val.text-success {
    color: #10b981;
}

/* SOSYAL PAYLAŞIM */
.ae-social-share-box {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.share-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
}

.share-links {
    display: flex;
    gap: 8px;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}

.share-btn i {
    color: #ffffff !important;
}

.share-btn:hover { transform: scale(1.08); }
.share-btn.wa { background: #25d366; }
.share-btn.fb { background: #1877f2; }
.share-btn.tw { 
    background: #0f172a; 
    border: 1px solid #334155;
}
.share-btn.tw:hover { background: #000000; }
.share-btn.li { background: #0a66c2; }
.share-btn.copy { background: #64748b; }

/* 3. İÇERİK TABLARI */
.ae-detail-tabs-wrapper {
    margin-bottom: 50px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
}

.ae-tabs-header {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    overflow-x: auto;
}

.ae-tab-btn {
    padding: 14px 24px;
    background: transparent;
    border: none;
    font-size: 0.9rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.ae-tab-btn:hover, .ae-tab-btn.active {
    color: #0284c7;
    background: #ffffff;
    border-bottom-color: #0284c7;
}

.ae-tab-content {
    display: none;
    padding: 24px;
}

.ae-tab-content.active { display: block; }

.ae-content-body {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #334155;
}

/* VİDEOLAR */
.ae-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.ae-responsive-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.ae-responsive-video iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

.ae-instagram-link-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.ae-btn-instagram {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
}

/* 4. EN SON BAKTIĞINIZ ÜRÜNLER */
.ae-recently-viewed-section {
    margin-top: 30px;
}

.section-title-wrap {
    margin-bottom: 20px;
}

.section-title-wrap h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ae-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.ae-product-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
}

.ae-product-card:hover {
    transform: translateY(-3px);
    border-color: #38bdf8;
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.12);
}

.ae-product-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    background: #ffffff;
    padding: 10px;
    overflow: hidden;
}

.ae-product-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ae-product-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ae-product-brand {
    font-size: 0.7rem;
    font-weight: 800;
    color: #0284c7;
    text-transform: uppercase;
}

.ae-product-title {
    font-size: 0.88rem;
    font-weight: 700;
    margin: 4px 0 10px 0;
}

.ae-product-title a {
    color: #0f172a;
    text-decoration: none;
}

.ae-product-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ae-btn-detail-neon {
    background: #0284c7;
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   ÜRÜN RESMİ ZOOM VE LIGHTBOX STİLLERİ
   ========================================================================== */
.ae-zoom-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    z-index: 3;
    pointer-events: none;
    transition: all 0.3s ease;
}

.ae-main-image-box:hover .ae-zoom-badge {
    background: #0284c7;
    transform: scale(1.1);
}

.ae-zoom-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(8px);
    overflow: hidden;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.ae-zoom-modal.active { display: flex; }

.ae-zoom-modal-content {
    position: relative;
    max-width: 95vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ae-zoom-modal-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    transition: transform 0.25s ease-out;
    transform-origin: center center;
    user-select: none;
}

.ae-zoom-controls {
    position: absolute;
    bottom: 25px;
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    z-index: 100001;
}

.ae-zoom-btn {
    background: #ffffff;
    color: #0f172a;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

.ae-zoom-btn:active, .ae-zoom-btn:hover {
    background: #0284c7;
    color: #ffffff;
}

.ae-zoom-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.ae-zoom-close:hover {
    background: #ef4444;
    color: #ffffff;
}

/* ==========================================================================
   RESPONSIVE MOBİL UYUM DÜZELTMELERİ
   ========================================================================== */
@media (max-width: 992px) {
    .ae-detail-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 576px) {
    .ae-container { padding: 0 12px; }
    .ae-page-header { padding: 50px 0 30px 0; }
    .ae-page-title { font-size: 1.4rem; }
    .ae-product-main-title { font-size: 1.3rem; }
    .ae-action-buttons { grid-template-columns: 1fr; gap: 10px; }
    .ae-btn-call, .ae-btn-whatsapp { padding: 10px 14px; }
    .btn-text strong { font-size: 0.9rem; }
    .ae-main-image-box { border-radius: 12px; padding: 8px; width: 100%; max-width: 100%; }
    .thumb-item { width: 60px; height: 60px; flex: 0 0 60px; }
    .ae-products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}