@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&display=swap');

:root {
    --primary: #E63946; /* Dükkan Tabelasındaki Kırmızı */
    --secondary: #1D3557; /* Koyu Lacivert */
    --dark: #212529;
    --light: #F8F9FA;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #f1f1f1;
    color: var(--dark);
    padding-bottom: 80px; /* Mobil menü boşluğu */
    overflow-x: hidden; /* Yan taşmaları engelle */
}

/* NAVBAR & ÜST BANT */
.top-bar { background: var(--primary); color: white; font-size: 0.85rem; padding: 5px 0; font-weight: bold; }
.navbar { background: var(--secondary) !important; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.nav-link { color: rgba(255,255,255,0.85) !important; font-weight: 500; transition: 0.3s; }
.nav-link:hover { color: #fff !important; transform: translateY(-2px); }

/* SLIDER (MANŞET) */
.carousel-item { height: 500px; background-color: #000; position: relative; }
.carousel-item img { 
    height: 100%; 
    width: 100%; 
    object-fit: cover; /* Resmi kutuya doldur */
    opacity: 0.6; /* Yazı okunsun diye karart */
}
.carousel-caption { bottom: 35%; text-align: center; text-shadow: 2px 2px 10px rgba(0,0,0,0.9); }
.carousel-caption h1 { font-size: 3.5rem; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; }

/* ÜRÜN KARTLARI (KAYMAYI ENGELLEYEN KISIM) */
.product-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%; /* Sütun yüksekliğini doldur */
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.p-img-container {
    height: 240px; /* Resim alanı sabit yükseklik */
    width: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    overflow: hidden; /* Taşan resmi gizle */
}

.p-img-container img {
    max-height: 100%; /* Asla yükseklikten taşma */
    max-width: 100%;  /* Asla genişlikten taşma */
    object-fit: contain; /* Resmi bozmadan sığdır */
    transition: 0.4s;
}

.product-card:hover .p-img-container img {
    transform: scale(1.08);
}

.card-details {
    padding: 15px;
    flex-grow: 1; /* Kartın altını doldur */
    display: flex;
    flex-direction: column;
}

/* KATEGORİ LİSTESİ */
.cat-list .list-group-item {
    border: none;
    border-left: 4px solid transparent;
    color: #555;
    font-weight: 500;
    padding: 12px 20px;
    transition: 0.2s;
}
.cat-list .list-group-item:hover, .cat-list .list-group-item.active {
    background-color: #fff;
    color: var(--primary);
    border-left-color: var(--primary);
    box-shadow: 5px 0 15px rgba(0,0,0,0.05);
}

/* BUTONLAR */
.btn-primary-custom {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
}
.btn-primary-custom:hover { background-color: #c1121f; color: white; }

/* MOBİL ALT MENÜ */
.mobile-nav {
    position: fixed; bottom: 0; left: 0; right: 0; background: white;
    display: flex; justify-content: space-around; padding: 10px 0;
    box-shadow: 0 -2px 15px rgba(0,0,0,0.1); z-index: 9999;
}
.mn-item { color: #888; text-align: center; font-size: 0.75rem; text-decoration: none; }
.mn-item i { display: block; font-size: 1.4rem; margin-bottom: 3px; }
.mn-item.active { color: var(--primary); }
.mn-center {
    background: var(--primary); color: white; width: 55px; height: 55px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin-top: -30px; box-shadow: 0 5px 15px rgba(230, 57, 70, 0.4);
    border: 4px solid white;
}

/* Responsive Ayarlar */
@media (max-width: 768px) {
    .carousel-item { height: 250px; } /* Mobilde slider küçülsün */
    .carousel-caption h1 { font-size: 1.5rem; }
    .p-img-container { height: 180px; } /* Mobilde ürün resmi küçülsün */
}
@media (min-width: 992px) { .mobile-nav { display: none; } }
/* Mevcut CSS kodlarının altına ekle veya güncelle */

/* SLIDER EFEKTLERİ */
.carousel-item {
    height: 600px;
    background: #000;
    overflow: hidden;
}
.carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    opacity: 0.5; /* Resmi karart */
    animation: zoomEffect 20s infinite alternate; /* Resim Büyüme Efekti */
}
@keyframes zoomEffect {
    0% { transform: scale(1); }
    100% { transform: scale(1.2); }
}

.carousel-caption {
    bottom: 0; top: 0; /* Tam ortalamak için */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

/* DEĞİŞKEN YAZI STİLİ */
.dynamic-text {
    color: #E63946; /* Kırmızı Renk */
    font-weight: 800;
    position: relative;
    display: inline-block;
}
.cursor {
    display: inline-block;
    width: 3px;
    background-color: #fff;
    animation: blink 1s infinite;
}
@keyframes blink { 0% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 0; } }

/* SERVİS KUTULARI HOVER */
.service-card {
    transition: 0.3s;
    border-bottom: 5px solid transparent;
}
.service-card:hover {
    transform: translateY(-10px);
    border-bottom-color: #E63946;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Parallax Bölümü */
.parallax-section {
    background-image: url('https://images.unsplash.com/photo-1581092921461-eab62e97a780?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    position: relative;
    color: white;
}
.parallax-overlay {
    background: rgba(29, 53, 87, 0.85); /* Lacivert Filtre */
    position: absolute; top:0; left:0; right:0; bottom:0;
}