/* ==========================================================================
   NEFİN GRUP — ENTERPRISE MULTI-SITE & 4-LANGUAGE (LTR + RTL) DESIGN SYSTEM
   Renk ve tipografi değişkenleri veritabanı Theme Engine tarafından enjekte edilir.
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background-color: var(--color-bg, #F6F7F5);
    color: var(--color-text, #1A242B);
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
}

html[dir="rtl"] body {
    font-family: var(--font-arabic, 'Cairo', sans-serif);
}

h1, h2, h3, h4, .heading-font {
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    line-height: 1.18;
    margin-top: 0;
    letter-spacing: -0.02em;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] .heading-font {
    font-family: var(--font-arabic, 'Cairo', sans-serif);
    letter-spacing: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1320px;
    margin-inline: auto;
    padding-inline: 28px;
}

/* Üst Kurumsal Grup Şeridi */
.group-switcher-bar {
    background: #0D181E;
    color: rgba(255,255,255,0.78);
    font-size: 12.5px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: relative;
    z-index: 95;
}
.group-switcher-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    gap: 14px;
    flex-wrap: wrap;
}
.group-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.group-pills::-webkit-scrollbar {
    display: none;
}
.group-pill {
    padding: 4px 11px;
    border-radius: 999px;
    font-weight: 500;
    white-space: nowrap;
    flex: 0 0 auto;
    color: rgba(255,255,255,0.72);
    transition: all 0.2s;
}
.group-pill:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}
.group-pill.active {
    background: var(--color-accent, #B69A6A);
    color: #0D181E;
    font-weight: 700;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
}
.lang-link {
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.72);
}
.lang-link:hover {
    color: #fff;
}
.lang-link.active {
    background: rgba(255,255,255,0.16);
    color: #fff;
}

/* Ana Header — Siteye Göre Farklılaşan Karakter */
.site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.07);
    transition: all 0.25s ease;
}
body.site-group .site-header {
    background: rgba(23, 43, 53, 0.94);
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.1);
}
body.site-kozmetik .site-header {
    background: rgba(250, 248, 245, 0.95);
    border-bottom: 1px solid rgba(216, 194, 163, 0.45);
}
body.site-ilac .site-header {
    background: #FFFFFF;
    border-bottom: 2px solid var(--color-primary);
}
body.site-medikal .site-header {
    background: rgba(22, 76, 74, 0.96);
    color: #fff;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    gap: 20px;
}
.brand-logo {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
}
.brand-logo img {
    height: 48px;
    width: auto;
    max-width: none;
}
@media (min-width: 769px) {
    body.site-kozmetik .site-header .brand-logo img {
        height: 54px;
        width: auto;
    }
    .header-ecommerce-btn {
        display: none !important;
    }
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}
.nav-item {
    font-size: 13.8px;
    font-weight: 600;
    opacity: 0.88;
    position: relative;
    padding-block: 6px;
    white-space: nowrap;
}
.nav-item:hover {
    opacity: 1;
    color: var(--color-accent);
}
#form-feedback {
    scroll-margin-top: 112px;
}
.header-cta-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid currentColor;
    color: inherit;
    border-radius: 8px;
    padding: 7px 11px;
    font-size: 18px;
    cursor: pointer;
}

/* Buton Sistemi */
.btn-ui {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 26px;
    border-radius: var(--btn-radius, 8px);
    font-weight: 600;
    font-size: 14.5px;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-ui:hover {
    transform: translateY(-2px);
}
.btn-ui-primary {
    background: var(--color-primary);
    color: #FFFFFF;
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}
.btn-ui-accent {
    background: var(--color-accent);
    color: #141414;
    font-weight: 700;
}
.btn-ui-outline {
    background: transparent;
    border-color: currentColor;
}
.btn-ui-light {
    background: #FFFFFF;
    color: var(--color-primary);
    font-weight: 700;
}
.btn-ui-whatsapp {
    background: #1FAF5B;
    color: #FFFFFF;
}
.btn-sm-ui {
    padding: 9px 18px;
    font-size: 13.5px;
}

/* RTL İkon Ok Yönü Uyarlaması */
html[dir="rtl"] .dir-arrow {
    display: inline-block;
    transform: scaleX(-1);
}

/* ==========================================================================
   NEFİN GRUP FULLPAGE PORTAL DENEYİMİ (Masaüstü Section-Snap, Mobil Doğal Scroll)
   ========================================================================== */
@media (min-width: 1025px) {
    body.fullpage-desktop {
        scroll-snap-type: y proximity;
    }
    .fp-section {
        min-height: calc(100vh - 78px);
        scroll-snap-align: start;
        display: flex;
        align-items: center;
        padding-block: 72px;
        position: relative;
    }
}
@media (max-width: 1024px) {
    .fp-section {
        padding-block: 56px;
        position: relative;
    }
}

.fp-dots {
    position: fixed;
    inset-inline-end: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 80;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.fp-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(120, 130, 140, 0.45);
    border: 2px solid rgba(255,255,255,0.7);
    transition: all 0.25s;
}
.fp-dot.active, .fp-dot:hover {
    background: var(--color-accent);
    transform: scale(1.35);
}
@media (max-width: 1024px) {
    .fp-dots { display: none; }
}

/* Fullscreen Hero (Grup) */
.group-hero {
    background: linear-gradient(125deg, #0E1D24 0%, #172B35 55%, #27424F 100%);
    color: #FFFFFF;
    overflow: hidden;
}
.group-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-accent);
    margin-bottom: 16px;
}
.hero-display-title {
    font-size: clamp(2.2rem, 4.3vw, 3.9rem);
    font-weight: 800;
    margin-bottom: 20px;
}
.hero-lead {
    font-size: clamp(1.02rem, 1.3vw, 1.2rem);
    opacity: 0.86;
    max-width: 620px;
    margin-bottom: 30px;
}
.hero-visual-frame {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.14);
}
.hero-visual-frame img {
    width: 100%;
    height: 470px;
    object-fit: cover;
}

/* 3 Büyük Faaliyet Alanı Seçim Kartları */
.division-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.division-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--color-surface, #fff);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.division-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.15);
}
.division-card-media {
    height: 250px;
    overflow: hidden;
    position: relative;
}
.division-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.division-card:hover .division-card-media img {
    transform: scale(1.06);
}
.division-card-body {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ==========================================================================
   KOZMETİK: E-TİCARET (nefinbeauty.com) VE KURUMSAL AYRIMI KARTLARI
   ========================================================================== */
.kozmetik-gateway-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 28px;
}
.gateway-choice-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 430px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 38px;
    color: #fff;
    box-shadow: 0 22px 50px rgba(68, 52, 47, 0.16);
}
.gateway-choice-card .gw-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.6s ease;
}
.gateway-choice-card:hover .gw-bg {
    transform: scale(1.05);
}
.gateway-choice-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(38, 26, 22, 0.90) 10%, rgba(38, 26, 22, 0.25) 75%);
    z-index: 1;
}
.gateway-choice-content {
    position: relative;
    z-index: 2;
}
.gw-pill {
    display: inline-block;
    padding: 5px 13px;
    border-radius: 999px;
    background: rgba(216, 194, 163, 0.28);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.3);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

/* ==========================================================================
   İLAÇ & MEDİKAL ÖZGÜN DÜZEN BİLEŞENLERİ
   ========================================================================== */
.ilac-hero {
    background: linear-gradient(135deg, #EAF1F6 0%, #FFFFFF 60%, #DCE8F2 100%);
    padding-block: 72px;
    border-bottom: 1px solid #D1E0EC;
}
.compliance-banner {
    background: rgba(23, 50, 77, 0.06);
    border-inline-start: 4px solid var(--color-primary);
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 13.5px;
    color: var(--color-text);
    margin-block: 18px;
}

.medikal-hero {
    background: linear-gradient(130deg, #103836 0%, #164C4A 55%, #236B67 100%);
    color: #FFFFFF;
    padding-block: 78px;
}
.spec-metric-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 34px;
}
.spec-metric-box {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 14px;
    padding: 18px;
}

/* ==========================================================================
   ÜRÜN KATALOĞU & ÜRÜN DETAY (SATIN ALMA YOK — TEKLİF & ZOOM GALERİ)
   ========================================================================== */
.catalog-layout {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 32px;
    padding-block: 52px;
}
.catalog-sidebar {
    background: var(--color-surface, #fff);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    padding: 22px;
    height: fit-content;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
    gap: 24px;
}
.product-card {
    background: var(--color-surface, #fff);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.09);
}
.product-card-img {
    height: 270px;
    background: #FFFFFF;
    position: relative;
    overflow: hidden;
}
.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
body.site-kozmetik .product-card-img {
    height: 320px;
    background: #FFFFFF;
    padding: 8px;
}
body.site-kozmetik .product-card-img img {
    object-fit: contain;
}
.zoom-stage img {
    width: 100%;
    height: 520px;
    object-fit: contain;
    background: #FFFFFF;
    transition: transform 0.25s ease;
}
.demo-ribbon {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    background: rgba(15, 23, 42, 0.82);
    color: #FDE68A;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}
.product-card-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Ürün Detay & Yakınlaştırma (Zoom) */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding-block: 52px;
}
.zoom-stage {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.09);
    background: #fff;
    cursor: zoom-in;
    position: relative;
}
.zoom-stage.zoomed img {
    transform: scale(1.65);
    cursor: zoom-out;
}
.thumb-strip {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.thumb-btn {
    width: 78px;
    height: 78px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    background: #fff;
}
.thumb-btn.active {
    border-color: var(--color-primary);
}
.thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}
.specs-table th, .specs-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    text-align: start;
}
.specs-table th {
    width: 38%;
    color: var(--color-muted);
    font-weight: 600;
}

/* ==========================================================================
   B2B FORM & BLOG KARTLARI
   ========================================================================== */
.b2b-form-card {
    background: var(--color-surface, #fff);
    border-radius: 22px;
    padding: 38px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.07);
    border: 1px solid rgba(0,0,0,0.07);
}
.front-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.front-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(0,0,0,0.16);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    color: #111;
}
.front-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(182, 154, 106, 0.2);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 28px;
}
.blog-card {
    background: var(--color-surface, #fff);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease;
}
.blog-card:hover { transform: translateY(-5px); }
.blog-card-img { height: 215px; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }

.article-prose h2 { margin-top: 34px; margin-bottom: 12px; font-size: 1.6rem; color: var(--color-primary); }
.article-prose h3 { margin-top: 24px; margin-bottom: 10px; font-size: 1.25rem; }
.article-prose p { margin-bottom: 18px; font-size: 1.05rem; line-height: 1.8; }
.article-prose ul { margin-bottom: 20px; padding-inline-start: 22px; }

/* Scroll Reveal Animasyonu */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer & Sabit WhatsApp / Çerez Banner */
.site-footer {
    background: #0F1C24;
    color: rgba(255,255,255,0.82);
    padding-top: 64px;
    padding-bottom: 34px;
    margin-top: 60px;
}
body.site-kozmetik .site-footer { background: #2D211D; }
body.site-ilac .site-footer { background: #102438; }
body.site-medikal .site-footer { background: #0E2F2E; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 36px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    inset-inline-end: 24px;
    z-index: 88;
    background: #1FAF5B;
    color: #fff;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 12px 28px rgba(31, 175, 91, 0.38);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.cookie-banner {
    position: fixed;
    bottom: 20px;
    inset-inline-start: 20px;
    max-width: 460px;
    background: #0F172A;
    color: #F8FAFC;
    padding: 18px 22px;
    border-radius: 14px;
    z-index: 99;
    box-shadow: 0 20px 45px rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.14);
    display: none;
}

/* Mobil ve Tablet Tam Uyumluluk */
@media (max-width: 992px) {
    .group-hero-grid,
    .division-cards-grid,
    .kozmetik-gateway-grid,
    .catalog-layout,
    .product-detail-grid,
    .footer-grid,
    .spec-metric-strip {
        grid-template-columns: 1fr;
    }
    .front-form-grid {
        grid-template-columns: 1fr;
    }
    .mobile-menu-toggle {
        display: inline-flex;
    }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        inset-inline: 0;
        background: var(--color-surface, #fff);
        color: #0F172A;
        flex-direction: column;
        align-items: stretch;
        padding: 20px 28px;
        box-shadow: 0 18px 36px rgba(0,0,0,0.15);
        gap: 12px;
    }
    .main-nav.open {
        display: flex;
    }
    .hero-visual-frame img {
        height: 300px;
    }
    .b2b-form-card {
        padding: 24px 18px;
    }
}

@media (max-width: 768px) {
    .container {
        padding-inline: 14px;
    }

    /* Üst Faaliyet Alanları Şeridi: Mobilde kesinlikle tek satır, alta taşmaz */
    .group-switcher-inner {
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 6px;
        padding-block: 7px;
        min-height: auto;
    }
    .group-pills {
        width: 100%;
        justify-content: space-between;
        gap: 4px;
        flex-wrap: nowrap;
    }
    .group-pill {
        padding: 4px 8px;
        font-size: 11px;
        line-height: 1.3;
    }
    .lang-switcher {
        justify-content: flex-start;
        gap: 4px;
    }
    .lang-link {
        padding: 2px 8px;
        font-size: 11px;
    }

    /* Kozmetik alanında mobilde logoyu gizleyerek [Menü + Nefin Beauty + Toptan Teklif] kaymasını tamamen önle */
    body.site-kozmetik .site-header .brand-logo {
        display: none;
    }

    .header-inner {
        min-height: 62px;
        gap: 8px;
    }
    .brand-logo {
        flex-shrink: 1;
        min-width: 0;
    }
    .brand-logo img {
        height: 32px;
        max-width: 138px;
        object-fit: contain;
    }
    .mobile-menu-toggle {
        padding: 6px 10px;
        font-size: 17px;
        flex-shrink: 0;
    }
    .header-cta-group {
        gap: 6px;
        flex-shrink: 0;
    }
    .header-cta-group .btn-sm-ui {
        padding: 8px 11px;
        font-size: 12px;
        gap: 5px;
    }
    .main-nav {
        padding: 16px 18px;
    }
}

@media (max-width: 400px) {
    .group-pill {
        padding: 4px 6.5px;
        font-size: 10.5px;
    }
    .header-cta-group .btn-sm-ui {
        padding: 7px 9px;
        font-size: 11.2px;
    }
    .header-cta-group .dir-arrow {
        display: none;
    }
    .brand-logo img {
        height: 28px;
        max-width: 116px;
    }
}
