﻿/* =================================================================
   1. KÖK DEĞİŞKENLER VE TEMEL AYARLAR (ROOT & BASE)
   ================================================================= */
:root {
    /* Ana Marka Renkleri */
    --brand-50: #f0f5fb;
    --brand-100: #e0eaf6;
    --brand-200: #cddfef;
    --brand-300: #abcde8;
    --brand-400: #84b7e0;
    --brand-500: #27528A; /* Ana Mavi */
    --brand-600: #21487a;
    --brand-700: #1b3b66;
    --brand-800: #163053;
    --brand-900: #122642;
    /* Vurgu ve Nötr Renkler */
    --accent-color: #e58a4e; /* Tatlı ve sıcak bir vurgu rengi */
    --body-bg: #f8faff;
    --text-dark: #1e293b; /* Koyu metin (Siyah yerine) */
    --text-secondary: #64748b; /* İkincil, soluk metin */
    --white: #ffffff;
    --border-color: #e2e8f0;
    /* Stil Değişkenleri */
    --radius-sm: 0.5rem;
    --radius-md: 0.8rem;
    --radius-lg: 1.2rem;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Yumuşak geçiş efekti */
}

/* =================================================================
   2. GENEL STİLLER (GLOBAL STYLES)
   ================================================================= */
body {
    font-feature-settings: "ss01";
    background-color: var(--body-bg);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Geçişlerin tüm elemanlarda yumuşak olmasını sağlar */
* {
    transition: var(--transition);
}

img {
    border-radius: var(--radius-md);
    max-width: 100%;
    height: auto;
}

.bg-soft {
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}


/* =================================================================
   3. HERO BÖLÜMÜ
   ================================================================= */
.hero {
    min-height: 70vh;
    color: var(--white);
    background: linear-gradient(160deg, var(--brand-600) 0%, var(--brand-500) 100%);
    position: relative; /* Floating elemanları için gerekli */
}

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 50% -20%, rgba(255, 255, 255, 0.08), transparent 40%);
        pointer-events: none;
    }

    .hero .brand-accent {
        color: var(--accent-color);
    }

.hero-plate {
    max-width: 460px;
    width: 100%;
    filter: drop-shadow(0 20px 30px rgba(18, 41, 68, 0.25));
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg); /* Hafif 3D etki */
}

.seal-badge {
    position: absolute;
    left: 3%;
    top: -20px;
    width: 140px;
    opacity: 0.15;
    transform: rotate(-15deg);
}

/* Floating Meyveler Animasyonu */
.floating {
    position: absolute;
    pointer-events: none;
    opacity: .9;
    filter: drop-shadow(0 12px 24px rgba(0,0,0,.2));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-25px);
    }
}

.b1 {
    top: 6%;
    left: 4%;
    width: 90px;
    animation-delay: 0s;
}

.b2 {
    bottom: 6%;
    left: 20%;
    width: 110px;
    animation-delay: -1.5s;
}

.b3 {
    top: 10%;
    right: 18%;
    width: 120px;
    animation-delay: -3s;
}

.b4 {
    bottom: 8%;
    right: 6%;
    width: 95px;
    animation-delay: -4.5s;
}


/* =================================================================
   4. KARTLAR (CARDS)
   ================================================================= */
.card-elevate {
    border: 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    background-color: var(--white);
}

    .card-elevate:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-lg);
    }

    .card-elevate .card-img-top {
        /* Önceki sabit yükseklik kaldırıldı */
        object-fit: cover;
        width: 100%;
        /* Yeni değerler: */
        height: 250px; /* Sabit bir yükseklik belirleyelim */
       
    }

/* YENİ: Ürün menüsü için özel kart resmi stilleri - GÜNCELLENDİ */
#prodGrid .card-img-top {
    height: 180px; /* Ürün resimlerini daha küçük ve sabit bir yüksekliğe getirir */
    aspect-ratio: 1 / 1; /* Görüntüyü 1:1 (kare) oranına zorlar, object-fit ile birlikte çalışır */
    object-fit: cover; /* Resmi kutuya sığdırmak için kırpar */
    width:100%;
}

.price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-600);
}


/* =================================================================
   5. BUTONLAR VE ETİKETLER (BUTTONS & CHIPS)
   ================================================================= */
.btn {
    border-radius: 999px; /* Pill shape */
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    box-shadow: var(--shadow-sm);
}

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

.btn-primary {
    background-color: var(--brand-500);
    border-color: var(--brand-500);
}

    .btn-primary:hover {
        background-color: var(--brand-600);
        border-color: var(--brand-600);
        filter: none; /* Eski filter'ı kaldır */
    }

.btn-outline-primary {
    color: var(--brand-500);
    border-color: var(--brand-500);
}

    .btn-outline-primary:hover {
        background: var(--brand-500);
        border-color: var(--brand-500);
        color: var(--white);
    }

.chip {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: .5rem .85rem;
    border-radius: 999px;
    font-size: .9rem;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 500;
}


/* =================================================================
   6. BÖLÜMLER (SECTIONS)
   ================================================================= */
/* İstatistik Şeridi */
.stats {
    background: var(--white);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* Galeri */
.gallery-img {
    height: 240px;
    object-fit: cover;
    border-radius: var(--radius-md);
    cursor: pointer;
}

    .gallery-img:hover {
        transform: scale(1.05);
        filter: brightness(1.08);
    }

/* Çağrı (CTA) Bandı */
.cta {
    background: radial-gradient(circle at 20% 120%, rgba(229, 138, 78, 0.2), transparent 40%), linear-gradient(110deg, var(--brand-600), var(--brand-500));
}

/* Video */
.ratio .video-cover, .ratio video, .ratio iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
    display: block;
    border-radius: var(--radius-lg); /* Videolara da radius verelim */
}

/* YENİ: Kategori Filtre Barı Stilleri */
.cat-bar-wrap {
    position: relative;
    padding: 0 2.5rem; /* Kaydırma butonları için kenarlarda boşluk */
}

.cat-bar {
    display: flex;
    gap: .75rem;
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

    /* Kaydırma çubuğunu gizle (Chrome, Safari) */
    .cat-bar::-webkit-scrollbar {
        display: none;
    }

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1.2rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--white);
    color: var(--text-secondary);
    font-size: .925rem;
    font-weight: 500;
    cursor: pointer;
}

    .cat-pill:hover {
        border-color: var(--brand-400);
        color: var(--brand-600);
        transform: translateY(-2px);
    }

    .cat-pill.active {
        background: var(--brand-500);
        color: var(--white);
        border-color: var(--brand-500);
        box-shadow: var(--shadow-sm);
    }

.cat-scroll {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    z-index: 10;
}

    .cat-scroll:hover {
        background-color: var(--brand-50);
        transform: translateY(-50%) scale(1.05);
    }

    .cat-scroll:disabled {
        opacity: .4;
        cursor: default;
        transform: translateY(-50%);
    }

    .cat-scroll.prev {
        left: 0;
    }

    .cat-scroll.next {
        right: 0;
    }

@media (max-width: 768px) {
    .cat-bar-wrap {
        padding: 0;
    }

    .cat-scroll {
        display: none;
    }
}


/* =================================================================
   7. DİĞER BİLEŞENLER (MISC COMPONENTS)
   ================================================================= */
.navbar .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    padding-bottom: 0.5rem;
}

    .navbar .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        background-color: var(--brand-500);
        transition: var(--transition);
    }

    .navbar .nav-link:hover, .hover-primary:hover {
        color: var(--brand-500) !important;
    }

        .navbar .nav-link:hover::after {
            width: 50%;
        }

.footer {
    background: var(--white);
    border-top: 1px solid var(--border-color);
    padding-top: 3rem;
    padding-bottom: 3rem;
}
