body {
    font-family: 'Jost', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
}


header.border-bottom {
    border-top: 4px solid #000; /* 4px kalın siyah çizgi */
}

/* Mobilde offcanvas genişliği yarı ekran */
@media (max-width: 992px) { /* lg altı */
    #offcanvasMenu.offcanvas-start {
        width: 70% !important;
    }
}

/* Sadece offcanvas menü li stil */
#offcanvasMenu ul li {
    position: relative;
    margin-bottom: 0.5rem;
}

/* Link stil */
#offcanvasMenu ul li a {
    display: inline-block;
    padding: 5px 0;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    position: relative;
}

/* Alt kırmızı çizgi: başlangıçta kelimenin yarısı kadar */
#offcanvasMenu ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 3px;       /* çizgi kalınlığı */
    width: 50%;        /* kelimenin yarısı */
    background-color: #dc3545;
    transition: all 0.3s ease;
}

/* Hover veya aktif durumda: çizgi tam genişlik ve renk değişikliği */
#offcanvasMenu ul li a:hover::after,
#offcanvasMenu ul li.active a::after {
    width: 100%;           /* tam genişlik */
    background-color: #000; /* renk değişiyor */
}

/* Hover ve aktif link rengi */
#offcanvasMenu ul li a:hover,
#offcanvasMenu ul li.active a {
    color: #dc3545;
}


#searchBar {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid #ddd;
  padding: 10px;
  z-index: 1050;
  border-bottom: 4px solid #000; /* siyah kalın çizgi */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* hafif gölge */
}
.icon-badge {
  position: relative;
}
.icon-badge .badge {
  position: absolute;
  top: -6px;
  right: -10px;
  font-size: 0.65rem;
}
/* Masaüstü için ortada logo */
.header-logo-desktop {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.homepage-carousel .carousel-item {
    position: relative;
}

/* Resim responsive, ekrana sığacak */
.homepage-carousel .carousel-item img {
    width: 100%;
    height: auto;
}

/* Caption dikey ve yatay ortalı */
.homepage-carousel .carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: none;
    color: #000;
    width: 90%;
}

.homepage-carousel .carousel-caption h5 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.homepage-carousel .carousel-caption p {
    font-size: 1.1rem;
}

/* Responsive: mobilde yazı boyutları ve caption container */
@media (max-width: 768px) {
    .homepage-carousel .carousel-caption h5 {
        font-size: 1.5rem;
    }
    .homepage-carousel .carousel-caption p {
        font-size: 0.95rem;
    }
}

.section-title h4 {
    position: relative;
    display: inline-block;
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

/* Alt kırmızı çizgi (yarıya kadar) */
.section-title h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50%; /* çizgi uzunluğu yarıya kadar */
    height: 4px; /* kalınlık */
    background-color: #dc3545; /* kırmızı */
}

/* İlk kelimeyi öne çıkar */
.section-title h4 span:first-child {
    background-color: #000;
    color: #fff;
    padding: 0.4rem;
    display: inline-block;
}

.section-title h6 {
    position: relative;
    display: inline-block;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

/* Alt kırmızı çizgi (yarıya kadar) */
.section-title h6::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50%; /* çizgi uzunluğu yarıya kadar */
    height: 4px; /* kalınlık */
    background-color: #dc3545; /* kırmızı */
}

/* İlk kelimeyi öne çıkar */
.section-title h6 span:first-child {
    background-color: #000;
    color: #fff;
    padding: 0.4rem;
    display: inline-block;
}

/* Başlık 2 satırla sınırla */
.product-title {
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    line-height: 1.2em;
}

/* Menü aktif stili */
.filter-menu .nav-item a {
    color:#333;
    font-weight:350;
    text-decoration:none;
    padding:4px 8px;
    transition:all 0.3s;
}
.filter-menu .nav-item.active a,
.filter-menu .nav-item a:hover {
    background:#dc3545;
    color:#fff;
}

/* Kart: hiçbir şey olmasın, sadece hover'da görünsün */
.product-card {
  border: 0 !important;         /* border tamamen kalktı */
  box-shadow: none !important;  /* gölge yok */
  transition: transform .28s ease, box-shadow .28s ease;
  overflow: hidden;             /* resim hover zoom'da taşmasın */
  background: inherit;          /* istersen burada white yapabilirsin */
}

/* Hover'da görünen efektler */
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12) !important;
}

/* resim galeri*/
/* Resim sadece hover'da zoom yapsın */
.product-img {
  transition: transform .4s ease;
  will-change: transform;
}

.product-card:hover .product-img {
  transform: scale(1.10);
}

/* Hover zoom efekti (sadece masaüstü grid için) */
.hover-zoom {
    transition: transform 0.3s ease;
    cursor: zoom-in;
}
/*
.hover-zoom:hover {
    transform: scale(1.05);
}
*/
#imageModal {
    display: none; /* ✅ ilk durumda gizli olacak */
    position: fixed;
    z-index: 2000;
    left: 0; 
    top: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
#imageModal img {
    max-width: 90%;
    max-height: 90%;
    transition: transform 0.2s ease;
    cursor: grab;
    touch-action: none; /* Mobil pinch/drag için önemli */
}


/* Toast Container */
.toast-container {
    z-index: 2000;
}

/* Toast Animasyonu */
.toast {
    animation: fadeInRight 0.5s, fadeOutRight 0.5s 2.5s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
}

/* Animasyon Keyframes */
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeOutRight {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100%); }
}

/* Toast İçeriği */
.toast-body {
    font-size: 15px;
    font-weight: 500;
    padding: 12px 16px;
}

/*yorumlar*/
.card-body .yorum {
	white-space: pre-wrap; /* Yorumlarda satır geçişini korur */
}
.text-warning {
	letter-spacing: 1px;
}

/* servisler bölümü*/
.service-card {
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.service-card i {
    transition: transform 0.3s;
}
.service-card:hover i {
    transform: scale(1.2);
}

/* Footer styling */
.footer {
    background-color: #f8f9fa;
    color: #000;
}
.footer a {
    color: #000;
    text-decoration: none;
}
.footer a:hover {
    color: #dc3545; /* kırmızı hover */
}
.footer-widget h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}
.footer-social a {
    color: #000;
}
.footer-social a:hover {
    color: #dc3545;
}
.footer-payment img {
    height: 30px;
    margin-right: 5px;
}

/* Mobil fixed nav icon hover */
.fixed-bottom .nav-link:hover {
    background-color: #e9ecef;
    border-radius: 8px;
}

/*login*/

.cursor-pointer { cursor: pointer; }
.card input:focus { box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25); }

/*favoriler*/
.shop-favorites .card img {
    transition: transform 0.3s;
}
.shop-favorites .card img:hover {
    transform: scale(1.05);
}
.shop-favorites .card-title {
    font-size: 1rem;
    font-weight: 600;
}

/*sepet*/
.shop-cart .card img {
    max-height: 120px;
    object-fit: contain;
    transition: transform 0.3s;
}
.shop-cart .card img:hover {
    transform: scale(1.05);
}
.shop-cart .form-control {
    max-width: 80px;
    display: inline-block;
}
.shop-cart .btn {
    min-width: 150px;
}

/*checout*/
.auth-card {
	max-width: 350px;
	width: 100%;
	padding: 1.5rem; /* p-4 yerine */
	text-align: center;
	margin: 1rem auto; /* ortalamak için */
	border-radius: 1rem;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	transition: transform 0.3s, box-shadow 0.3s;
}

.auth-card .btn {
	border-radius: 0.75rem;
	font-weight: 600;
	font-size: 1rem;
}

.checkout .card {
  border-radius: .5rem;
}
.checkout .card-body {
  padding: 1.5rem;
}
.checkout .list-group-item {
  border: 0;
  padding: .75rem 1rem;
}
.checkout .form-check-label {
  font-size: .875rem;
}

/*kategori listeleme*/
.shop-sidebar {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.shop-sidebar .accordion-button {
    font-weight: 600;
    font-size: 0.95rem;
}

.form-check-input {
    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
    margin-left: 0.25rem;
}

/*üye sayfa başlik kırmızı*/
.kirmizibaslik {
    position: relative;
    display: inline-block; /* çizgi sadece başlığa göre olacak */
}

.kirmizibaslik::after {
    content: "";
    display: block;
    width: 50%;       /* çizginin uzunluğu */
    height: 4px;      /* çizgi kalınlığı */
    background-color: #dc3545; /* kırmızı (Bootstrap danger rengi) */
    margin-top: 6px;  /* başlıktan biraz boşluk */
    border-radius: 2px; /* hafif yuvarlatma */
}

.label-banner {
    position: absolute;
    top: 10px;
	left:10px;
    padding: 6px 14px;
    font-size: 0.7rem;
    color: #fff;
    background: rgba(220, 53, 69, 0.85); /* kırmızı yarı saydam */
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.label-banner.right {
    right: 10px;
    background: rgba(33, 37, 41, 0.85); /* siyah yarı saydam */
}
