/* ========================================================= */
/* --- POPÜLER ÜRÜNLER GENEL YAPISI --- */
/* ========================================================= */

.popular-products-section {
    position: relative;
    width: 100%;
    padding: 100px 0 90px 0;
    background-color: #f4f0e8;
    background-image: url('../uploads/anasayfa/populerurunler/arkaplan.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
}

.popular-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 25px;
    position: relative;
}

/* ========================================================= */
/* --- BAŞLIK ALANI --- */
/* ========================================================= */

.popular-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 55px auto;
}

.pop-sub-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 12px;
}

.pop-sub-wrapper .gold-line {
    width: 45px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c5a059, transparent);
}

.pop-subtitle {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #a37c3f;
    text-transform: uppercase;
}

.pop-main-title {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    font-weight: 700;
    color: #122133;
    line-height: 1.15;
    margin-bottom: 16px;
}

.pop-description {
    font-size: 15px;
    line-height: 1.6;
    color: #555555;
    font-weight: 400;
}

/* ========================================================= */
/* --- ÜRÜN KARTLARI IZGARASI (GRID) & SLIDER KARTLARI --- */
/* ========================================================= */

.popular-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    align-items: stretch;
}

/* Swiper Kapsayıcı ve Slider Düzeni */
.popular-swiper {
    position: relative;
    width: 100%;
    padding: 10px 10px 55px 10px !important;
    overflow: hidden !important; /* Taşmayı önler, genişliği konteynıra hapseder */
}

.popular-swiper .swiper-slide {
    height: auto;
    display: flex;
}

/* Cam Efektli Ürün Kartı */
.pop-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 18px;
    padding: 24px 20px 32px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                background 0.4s ease;
}

.pop-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.09);
}

/* Kapı Görsel Alanı */
.pop-card-image {
    width: 100%;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    overflow: hidden;
}

.pop-card-image img {
    max-height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.12));
}

.pop-card:hover .pop-card-image img {
    transform: scale(1.04);
}

/* Kart Metin İçeriği */
.pop-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    flex-grow: 1;
}

.pop-card-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #122133;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.card-gold-bar {
    width: 28px;
    height: 2px;
    background-color: #c5a059;
    margin-bottom: 14px;
    border-radius: 2px;
}

.pop-card-desc {
    font-size: 13.5px;
    line-height: 1.55;
    color: #555555;
    margin-bottom: 26px;
    max-width: 280px;
    min-height: 42px;
}

/* Siyah / Lacivert Oval Buton */
.pop-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #122133;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 13px 28px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.35s ease;
    box-shadow: 0 6px 18px rgba(18, 33, 51, 0.25);
    margin-top: auto;
}

.pop-card-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.pop-card-btn:hover {
    background-color: #c5a059;
    color: #122133;
    box-shadow: 0 8px 22px rgba(197, 160, 89, 0.4);
}

.pop-card-btn:hover i {
    transform: translateX(4px);
}

/* ========================================================= */
/* --- MERKEZLENMİŞ ÖZEL SLIDER OKLARI --- */
/* ========================================================= */

/* Swiper Varsayılan İkon Oklarını İptal Etme */
.popular-swiper .swiper-button-next::after,
.popular-swiper .swiper-button-prev::after {
    display: none !important;
    content: "" !important;
}

/* Yuvarlak ve Cam Efektli Ok Butonları */
.popular-nav-btn {
    position: absolute !important;
    top: 42% !important;
    transform: translateY(-50%) !important;
    width: 48px !important;
    height: 48px !important;
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(197, 160, 89, 0.5) !important;
    border-radius: 50% !important;
    color: #122133 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 8px 22px rgba(18, 33, 51, 0.15) !important;
    cursor: pointer !important;
    z-index: 20 !important;
    margin: 0 !important;
    transition: all 0.3s ease !important;
}

/* İkon Ortalama */
.popular-nav-btn i {
    font-size: 15px !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    transition: transform 0.3s ease, color 0.3s ease !important;
}

/* Sol ve Sağ Ok Hizalaması (Slider İçinde Güvenli Konum) */
.popular-swiper .swiper-button-prev {
    left: 10px !important;
}

.popular-swiper .swiper-button-next {
    right: 10px !important;
}

/* Hover Efekti */
.popular-nav-btn:hover {
    background: #122133 !important;
    color: #c5a059 !important;
    border-color: #c5a059 !important;
    box-shadow: 0 10px 25px rgba(18, 33, 51, 0.3) !important;
    transform: translateY(-50%) scale(1.08) !important;
}

.popular-swiper .swiper-button-prev:hover i {
    transform: translateX(-2px) !important;
}

.popular-swiper .swiper-button-next:hover i {
    transform: translateX(2px) !important;
}

/* Swiper Pagination (Alt Noktalar) */
.popular-pagination {
    bottom: 5px !important;
}

.popular-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #122133;
    opacity: 0.25;
    transition: all 0.3s ease;
}

.popular-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background: #c5a059;
    width: 28px;
    border-radius: 10px;
}

/* ========================================================= */
/* --- ARAPÇA (RTL) MODU UYUMLULUĞU --- */
/* ========================================================= */

.popular-products-section.rtl-mode {
    direction: rtl;
}

.popular-products-section.rtl-mode .pop-card-btn:hover i {
    transform: translateX(-4px);
}

.popular-products-section.rtl-mode .popular-swiper .swiper-button-prev {
    right: 10px !important;
    left: auto !important;
}

.popular-products-section.rtl-mode .popular-swiper .swiper-button-next {
    left: 10px !important;
    right: auto !important;
}

/* ========================================================= */
/* --- SCROLL VE GİRİŞ ANİMASYONLARI --- */
/* ========================================================= */

.popular-products-section .animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.popular-products-section .animate-on-scroll.fade-up {
    transform: translateY(35px);
}

.popular-products-section .animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================================= */
/* --- RESPONSIVE / MOBİL UYUMLULUK --- */
/* ========================================================= */

@media screen and (max-width: 1024px) {
    .popular-grid {
        gap: 20px;
    }

    .pop-main-title {
        font-size: 42px;
    }

    .pop-card-image {
        height: 330px;
    }

    /* Tablet ve Mobilde Okları Gizle (Sadece Kaydırma Hareketi) */
    .popular-nav-btn {
        display: none !important;
    }
}

@media screen and (max-width: 868px) {
    .popular-grid {
        grid-template-columns: repeat(1, 1fr);
        max-width: 480px;
        margin: 0 auto;
        gap: 30px;
    }

    .pop-card-image {
        height: 350px;
    }

    .pop-card-desc {
        min-height: auto;
    }
}

@media screen and (max-width: 576px) {
    .popular-products-section {
        padding: 60px 0;
    }

    .pop-main-title {
        font-size: 32px;
    }

    .pop-subtitle {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .pop-description {
        font-size: 13px;
    }

    .pop-card {
        padding: 20px 15px 25px 15px;
    }

    .pop-card-image {
        height: 300px;
    }

    .pop-card-title {
        font-size: 18px;
    }

    .pop-card-btn {
        padding: 11px 24px;
        font-size: 11px;
    }
}