/* GENEL STİLLER */
body {
    background-color: #f4f4f4;
}
/* DOĞRU KOD */
.navbar.navbar-dark {
    /* background-image'ı kaldırıp sadece rengi dinamik olarak atıyoruz */
    background-color: var(--ana-renk, #343a40); 
    color: white;
}
.price {
    color: #e74c3c;
    font-size: 1.2rem;
    font-weight: bold;
}
.offcanvas, .modal-content {
    background-color: #ffffff;
    color: rgb(0, 0, 0);
}
.offcanvas-header .btn-close, .modal-header .btn-close {
  
    color: #000000;
}
/* DÜZELTİLMİŞ DİNAMİK KOD */
.offcanvas-body a {
    color: var(--yazi-rengi, #212529); /* Dinamik yazi-rengi değişkenini kullanır */
    text-decoration: none;
    font-weight: 500; /* Linklerin biraz daha belirgin olmasını sağlar */
}

/* Linklerin üzerine gelindiğinde renginin ana renge dönüşmesi için (isteğe bağlı ama şık bir dokunuş) */
.offcanvas-body a:hover {
    color: var(--ana-renk, #0d6efd);
}
.info-item i {
    width: 25px;
}
.modal-body .btn {
    margin: 5px;
}

/* FOOTER VE GERİ BİLDİRİM */
footer {
    background-color: #2c3e50;
    color: #bdc3c7;
    font-size: 0.9rem;
    padding: 1.5rem 0;
    bottom: 0;
    width: 100%;
    z-index: 1000;
}
.feedback-section {
    padding: 1rem 0;
    background-color: #ecf0f1;
    text-align: center;
}

/* KATEGORİ SAYFASI - TAVSİYE ÜRÜNLERİ */
.featured-section-title {
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.0rem;
    color: var(--ana-renk, #34495e); /* <<< DÜZELTİLDİ */
    border-bottom: 2px solid var(--ana-renk, #34495e); /* Ekstra stil dokunuşu */
    padding-bottom: 0.5rem;
}
.featured-product-card {
    display: block;
    text-decoration: none;
    color: #333;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    text-align: center;
}
.featured-product-img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}
.featured-product-title {
    padding: 0.75rem;
    font-weight: 500;
}

/* KATEGORİ SAYFASI - SLIDER */
.carousel-item img {
    height: 150px;
    object-fit: cover;
    border-radius: 15px;
}

/* KATEGORİ SAYFASI - KATEGORİ KARTLARI */
.category-card {
    display: block;
    position: relative;
    height: 109px;
    border-radius: 15px;
    overflow: hidden;
    margin-top: 0;
    /*margin-bottom: 5px;*/
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.category-card:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}
.category-background {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}
.category-card:hover .category-background {
    transform: scale(1.05);
}
.category-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}
.category-card-title {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    font-size: 1.05rem;
}



/* ÜRÜN LİSTESİ SAYFASI */
.product-list-item {
    display: block;
    background-color: white;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    color: #333;
    transition: transform 0.2s ease-in-out;
    
}
.product-list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
.product-list-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
   border-radius: 10px;
  
}
.card-body{

    margin-left: 10px;
}
.card-body .card-title{
    font-size: 16px;
    font-weight: bold;
   
}

.card-body .card-text{
    font-size: 12px;
}

.card-body .price{
    font-size: 14px;
    color: #6e6a6a;
}

/* ÜRÜN DETAY SAYFASI */
.product-detail-img-container {
    position: relative;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.product-detail-img-container img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.product-stats {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
}
.product-stats span {
    margin-left: 10px;
}
.product-detail-title {
    font-weight: bold;
    color: #34495e;
    font-size: 18px !important;
}
.product-section {
    background-color: white;
    padding: 1rem;
    border-radius: 15px;
    margin-top: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.product-section h5 {
    font-weight: bold;
    color: #34495e;
    margin-bottom: 0.5rem;
    font-size: 18px !important;
}


/* Bu kural, .btn-primary sınıfını kullanan tüm butonların rengini değiştirir */
.btn-primary {
    background-color: var(--ana-renk, #0d6efd);
    border-color: var(--ana-renk, #0d6efd);
}

/* Butonun üzerine gelindiğinde rengini biraz koyulaştırmak için */
.btn-primary:hover {
    filter: brightness(90%);
}

.social{

    color: #333;
}