/* İYİLEŞTİRME: Tek bir yerden renk yönetimini kolaylaştırmak için değişkenler */
:root {
    --primary-color: #e91e63;
    --dark-color: #333;
    --light-color: #fff;
    --background-light: #fAf8f8;
    --border-color: #ddd;
}

/* İYİLEŞTİRME: Daha tutarlı kutu modeli hesaplaması için evrensel box-sizing */
* {
    box-sizing: border-box;
}

/* Genel Ayarlar */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-light);
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 10px; /* Mobil cihazlarda kenar boşluğu bırakır */
}

/* Header Bölümü */
.header-top {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 1px 0;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
	padding: 1px 0;
}

.top-menu a, .social-media a {
    color: var(--light-color);
    text-decoration: none;
    font-size: 14px;
}

.header-main {
    background-color: var(--light-color);
}

.logo-link img {
    height: 50px;
}

.search-bar {
    flex-grow: 1;
    margin: 0 20px;
	width:70%;
}

.search-bar .form-control {
    border-radius: 20px;
}

.cart-info {
    font-size: 12px;
}

.cart-link {
    position: relative;
}

.cart-count {
    position: absolute;
    top: 0px;
    right: 0px;
}

/* Navbar */
.navbar {
    background-color: var(--dark-color) !important;
}

.navbar-nav .nav-link {
    color: var(--light-color) !important;
    font-weight: bold;
    text-transform: uppercase;
}
.sticky-navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: top 0.3s;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    overflow: hidden;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-color);
}

.hero-banner .container {
    position: relative;
    z-index: 2;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* genişliği %100 yaptık */
    height: 100%; /* yüksekliği %100 yaptık */
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

/* Ürün Grid */
.product-grid {
    display: flex;
    flex-wrap: wrap;
}

.product-item {
    padding: 5px;
}

.product-card {
    background-color: var(--light-color);
    border: 5px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.product-card img {
    width: 100%;
    height: 100%; /* Sabit bir yükseklik verdik */
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    transition: opacity 0.5s ease-in-out;
}

.product-card:hover {
    border-color: red; /* Çerçeve rengini kırmızıya çevirir */
}

.product-info {
    padding: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

/* Butonları yatay hizalamak için yeni bir div ekleyebiliriz (ya da flexbox kullanabiliriz) */
.product-buttons {
    display: flex;
    flex-direction: column; /* Butonları alt alta sıralar */
    gap: 5px; /* Butonlar arasına dikey boşluk bırakır */
    margin-top: 10px; 
}

.product-buttons .btn {
    width: 100%; /* Butonların ait oldukları kutu kadar geniş olmasını sağlar */
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
}

.product-name {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.product-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 5px;
    flex-grow: 1;
}

.product-price {
    font-size: 20px;
    color: var(--primary-color);
    font-weight: bold;
    margin-top: auto;
}

.btn-buy {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.2s;
    display: inline-block;
    margin-top: 10px;
}

.btn-buy:hover {
    background-color: #c2185b;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
}

.footer h4 {
    color: var(--light-color);
}

.footer a {
    color: var(--light-color);
    text-decoration: none;
}

.footer a:hover {
    color: #c2185b;
}

.copyright p {
    font-size: 14px;
}

/* Sayfa Başına Git Butonu */
#scrollTopButton {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

#scrollTopButton img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

#scrollTopButton:hover {
    background: rgba(255, 255, 255, 1);
}

/* Modal */
/* +18 Yaş Uyarı Pop-up Stillleri */
.modal {
    display: none; /* JavaScript ile görünür olacak */
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.modal-content h2 {
    color: var(--primary-color);
}

.modal-content button {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    margin: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.modal-content button:hover {
    opacity: 0.8;
}

/* YENİ EKLENEN SLAYT CSS'i */
#productSlider {
    width: 100%;
    height: 300px;
    margin: 2rem auto;
    overflow: hidden;
}

#sliderTrack {
    display: flex;
    transition: transform 1s ease-in-out;
}

.slider-item {
    flex: 0 0 200px;
    padding: 0 3px;
    text-align: center;
    cursor: pointer;
}

.slider-item img {
    width: 200px;
    height: 300px;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.product-slider {
    width: 100vw; /* Ekran genişliğinin %100'ünü kaplar */
    height: 300px; /* Yüksekliği sabit 300 piksel yapar */
    position: relative;
    overflow: hidden;
    margin: 20px 0; /* Üstten ve alttan boşluk ekler */
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slider-item {
    min-width: calc(100% / 3); /* Her slayt için 3 öğe gösterecek şekilde genişlik ayarı */
    height: 100%;
    padding: 0 10px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Sıkça Sorulan Sorular Modalı için Özel Stiller */
#faqModal .modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
}

#faqModal h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.faq-section {
    margin-bottom: 15px;
}

.faq-section h4 {
    color: var(--dark-color);
    font-weight: bold;
    margin-bottom: 5px;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Mobil cihazlar için ek düzenleme */
@media (max-width: 768px) {
    .product-slider {
        height: 200px; /* Daha küçük ekranlarda yüksekliği azaltır */
    }

    .slider-item {
        min-width: 100%; /* Mobil görünümde tek bir öğe gösterir */
    }
}
.urun-fiyat-style {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color); /* Veya istediğiniz başka bir renk */
}

/* Ürün Detay Modalı */
#productDetailModal .modal-content {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    max-height: 90vh;
    height: 600px;
    
    /* Yeni kod: Modalı navigasyon çubuğunun 10px altında sabitler. */
    position: fixed;
    top: -90px; /* Varsayılan navbar yüksekliği (60px) + 10px boşluk */
    left: 50%;
    transform: translateX(-50%);
    
    overflow-y: auto;
}

.thumbnail {
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.thumbnail:hover, .thumbnail.active {
    border-color: var(--primary-color);
}

.main-image-container {
    background-color: var(--background-light);
    border-radius: 8px;
    padding: 15px;
}

/* Responsive düzenlemeler */
@media (max-width: 768px) {
    #productDetailModal .modal-content {
        width: 95% !important;
        margin: 5% auto;
        padding: 15px;
    }
    
    .image-thumbnails .col-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}