/* ==========================================================================
   FREKANS MUCİZESİ - MODERN ÜRÜNLERİMİZ / PORTFOLİO KATALOG STİLLERİ
   ========================================================================== */

/* 1. Ürünlerimiz Sayfa Başlığı / Hero Giriş Banner */
.fm-products-page-hero {
    position: relative;
    background: radial-gradient(ellipse at 50% 0%, rgba(2, 132, 199, 0.08) 0%, rgba(248, 250, 252, 0.8) 100%);
    padding: 50px 24px 36px;
    text-align: center;
    border-radius: 28px;
    margin: 10px auto 40px;
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.03);
    max-width: 1240px;
}

.fm-products-page-hero .fm-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(2, 132, 199, 0.09);
    border: 1px solid rgba(2, 132, 199, 0.22);
    color: #0284c7;
    padding: 6px 18px;
    border-radius: 9999px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.fm-products-page-hero .fm-hero-title {
    font-size: clamp(2rem, 3.6vw, 2.75rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.24;
    margin: 0 0 14px 0;
    letter-spacing: -0.03em;
}

.fm-products-page-hero .fm-hero-title .fm-gradient-text {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fm-products-page-hero .fm-hero-subtitle {
    font-size: clamp(0.95rem, 1.3vw, 1.1rem);
    color: #475569;
    max-width: 760px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

.fm-products-page-hero .fm-hero-trust-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 950px;
    margin: 0 auto;
}

.fm-products-page-hero .fm-trust-pill {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    padding: 8px 16px;
    font-size: 12.5px;
    font-weight: 600;
    color: #1e293b;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.fm-products-page-hero .fm-trust-pill:hover {
    transform: translateY(-2px);
    border-color: #0284c7;
}

/* 2. Modern Kategori Filtreleme Çubuğu (Isotope Filter) */
.projects-filter-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.projects-filter-wrapper .isotope-filter.filter {
    text-align: center;
    margin: 0 auto 35px;
}

.projects-filter-wrapper .isotope-filter.filter ul {
    list-style: none;
    margin: 0 auto;
    padding: 6px;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.projects-filter-wrapper .isotope-filter.filter ul li {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.projects-filter-wrapper .isotope-filter.filter ul li a.filter-item {
    display: inline-block;
    padding: 9px 22px;
    border-radius: 9999px;
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
}

.projects-filter-wrapper .isotope-filter.filter ul li a.filter-item:hover {
    color: #0284c7;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.projects-filter-wrapper .isotope-filter.filter ul li a.filter-item.active {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px -2px rgba(2, 132, 199, 0.45);
}

/* 3. Izgara ve Ürün Kartı Düzeni (Grid & Masonry) */
.projects-masonry {
    margin-left: -10px !important;
    margin-right: -10px !important;
    margin-top: 0 !important;
    display: block;
}

.projects-masonry .project-item.fm-product-card-item {
    padding: 10px;
    margin-top: 0 !important;
    margin-bottom: 22px !important;
    box-sizing: border-box;
    vertical-align: top;
    float: left;
}

/* 4 Sütun Düzeni (Masaüstü: %25) */
.projects-masonry.pf_4_cols .project-item.fm-product-card-item,
.projects-masonry.pf_4_cols .grid-sizer,
.projects-masonry.pf_3_cols .project-item.fm-product-card-item,
.projects-masonry.pf_3_cols .grid-sizer {
    width: 25% !important;
}

/* Tablet (768px - 1199px: 3 Sütun %33.33) */
@media (max-width: 1199px) and (min-width: 768px) {
    .projects-masonry.pf_4_cols .project-item.fm-product-card-item,
    .projects-masonry.pf_4_cols .grid-sizer,
    .projects-masonry.pf_3_cols .project-item.fm-product-card-item,
    .projects-masonry.pf_3_cols .grid-sizer {
        width: 33.333333% !important;
    }
}

/* Mobil (max-width: 767px: 2 Sütun %50) */
@media (max-width: 767px) {
    .projects-masonry {
        margin-left: -6px !important;
        margin-right: -6px !important;
    }

    .projects-masonry.pf_4_cols .project-item.fm-product-card-item,
    .projects-masonry.pf_4_cols .grid-sizer,
    .projects-masonry.pf_3_cols .project-item.fm-product-card-item,
    .projects-masonry.pf_3_cols .grid-sizer {
        width: 50% !important;
        padding: 6px !important;
        margin-bottom: 12px !important;
    }

    .projects-filter-wrapper .isotope-filter.filter ul {
        border-radius: 14px;
        padding: 6px;
        gap: 4px;
    }

    .projects-filter-wrapper .isotope-filter.filter ul li a.filter-item {
        padding: 6px 12px;
        font-size: 11.5px;
    }

    .fm-modern-product-box {
        border-radius: 16px !important;
    }

    .fm-product-thumb-wrap {
        min-height: 155px !important;
        padding: 16px 10px 10px !important;
    }

    .fm-product-img {
        max-height: 120px !important;
    }

    .fm-thumb-badges {
        top: 8px !important;
        left: 8px !important;
        right: 8px !important;
        gap: 4px !important;
    }

    .fm-badge-cat {
        font-size: 8.5px !important;
        padding: 2px 6px !important;
    }

    .fm-badge-trust {
        font-size: 8.5px !important;
        padding: 2px 6px !important;
    }

    .fm-product-card-body {
        padding: 12px 10px 14px !important;
    }

    .fm-product-subtag {
        font-size: 9px !important;
        margin-bottom: 3px !important;
    }

    .fm-product-title {
        font-size: 0.92rem !important;
        line-height: 1.22 !important;
        margin-bottom: 5px !important;
    }

    .fm-product-lead {
        font-size: 0.74rem !important;
        line-height: 1.32 !important;
        min-height: auto !important;
        margin-bottom: 8px !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
    }

    .fm-product-chips {
        gap: 3px !important;
        margin-bottom: 8px !important;
    }

    .fm-chip {
        font-size: 9px !important;
        padding: 2px 5px !important;
    }

    .fm-product-cta-btn {
        padding: 7px 10px !important;
        font-size: 0.76rem !important;
        border-radius: 8px !important;
    }

    .fm-cta-arrow {
        width: 12px !important;
        height: 12px !important;
    }
}

/* 4. Modern Kart Kutusu */
.fm-modern-product-box {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.fm-modern-product-box:hover {
    transform: translateY(-8px);
    border-color: rgba(2, 132, 199, 0.38);
    box-shadow: 0 24px 48px -12px rgba(2, 132, 199, 0.2);
}

/* 5. Kart Görsel Alanı & Rozetler */
.fm-product-thumb-wrap {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 50% 45%, #f8fafc 0%, #edf2f7 100%);
    padding: 34px 24px 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 275px;
    border-bottom: 1px solid #f1f5f9;
}

.fm-thumb-badges {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    z-index: 2;
    pointer-events: none;
}

.fm-badge-cat {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(2, 132, 199, 0.22);
    color: #0284c7;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.fm-badge-trust {
    background: rgba(16, 185, 129, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #047857;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 9999px;
}

.fm-product-image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.fm-product-img {
    max-height: 220px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.06));
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.fm-modern-product-box:hover .fm-product-img {
    transform: scale(1.08) translateY(-3px);
    filter: drop-shadow(0 16px 24px rgba(2, 132, 199, 0.18));
}

/* 6. Kart İçerik Alanı */
.fm-product-card-body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.fm-product-meta-header {
    margin-bottom: 16px;
}

.fm-product-subtag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0284c7;
    display: inline-block;
    margin-bottom: 6px;
}

.fm-product-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.35 !important;
    margin: 0 0 10px 0 !important;
    letter-spacing: -0.02em;
}

.fm-product-title a {
    color: inherit !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.fm-modern-product-box:hover .fm-product-title a {
    color: #0284c7 !important;
}

.fm-product-lead {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.55;
    margin: 0;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 7. Özellik Etiketleri (Micro Chips) */
.fm-product-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.fm-chip {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
}

/* 8. Modern İncele Butonu (CTA Button) */
.fm-product-cta-btn {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    color: #ffffff !important;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none !important;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

.fm-modern-product-box:hover .fm-product-cta-btn {
    box-shadow: 0 8px 22px rgba(2, 132, 199, 0.4);
    transform: translateY(-1px);
}

.fm-cta-arrow {
    transition: transform 0.25s ease;
}

.fm-modern-product-box:hover .fm-cta-arrow {
    transform: translateX(4px);
}

/* 9. Alt Destek & WhatsApp Danışmanlık Bannerı */
.fm-products-bottom-cta {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border-radius: 24px;
    padding: 38px 36px;
    margin: 40px auto 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.3);
    max-width: 1240px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.fm-bottom-cta-text {
    flex: 1 1 360px;
}

.fm-bottom-cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
}

.fm-bottom-cta-desc {
    font-size: 0.95rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.6;
}

.fm-bottom-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.fm-bottom-whatsapp-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 13px 26px;
    border-radius: 12px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fm-bottom-whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.45);
    color: #ffffff !important;
}
