/* Custom Styles */
body {
  background-color: #f8f8f8;
  color: #333;
  line-height: 1.6;
  padding-top: 50px; /* Offset for both headers */
  margin: 0;
}

/* Reverted Fixed Header */
.fixed-header {
  height: 50px;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: 1001;
  margin-bottom: 0;
}

.contact-info a {
  color: #333;
  transition: color 0.3s;
}

.contact-info a:hover {
  color: #8a0d1a;
}

.social-icons a {
  color: #333;
  font-size: 20px;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #8a0d1a;
}

/* Reverted Header with Navigation (Sticky) */
header {
  background-color: rgba(255, 255, 255, 0.7);
  z-index: 1000;
  top: 50px;
  margin-top: 0;
}

.navbar {
  padding: 15px 0;
}

.navbar-toggler {
  border: none;
  padding: 0;
}

.navbar-toggler:focus {
  box-shadow: none;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.9);
    margin-top: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  .nav-links {
    text-align: center;
  }
  .nav-links .nav-item {
    margin: 10px 0;
  }
}

.nav-links .nav-link {
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-links .nav-link:hover,
.nav-links .nav-link.active {
  color: #8a0d1a;
}

.nav-links .nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: #8a0d1a;
  bottom: 0;
  left: 0;
  transition: width 0.3s ease;
}

.nav-links .nav-link:hover::after,
.nav-links .nav-link.active::after {
  width: 100%;
}

/* Latest Gallery Section (Kept as is) */
.gallery-filter .btn {
  border-radius: 30px;
  transition: all 0.3s;
}

.gallery-filter .btn.active {
  background-color: #8a0d1a;
  color: #fff;
  border-color: #8a0d1a;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  height: 320px;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.gallery-image {
  width: 100%;
  height: 100%;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-item:hover .gallery-image img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-info {
  text-align: center;
  color: #fff;
  padding: 10px;
}

.gallery-info h3 {
  font-size: 1.25rem;
  margin-bottom: 5px;
}

.gallery-info p {
  font-size: 0.875rem;
  color: #ddd;
  margin-bottom: 10px;
}

.gallery-info .btn-custom {
  display: inline-block;
}

/* Lightbox (Kept as is) */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 2000;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

.lightbox-caption {
  position: absolute;
  bottom: 50px;
  width: 100%;
  text-align: center;
  color: white;
  font-size: 1.125rem;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 24px;
  padding: 15px;
  cursor: pointer;
  transition: background 0.3s;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(138, 13, 26, 0.8);
}

/* Responsive Adjustments (Kept as is) */
@media (max-width: 768px) {
  .gallery-item {
    height: 250px;
  }
}

@media (max-width: 576px) {
  .gallery-item {
    height: 220px;
  }
}

/* Rest of the CSS (Kept as is) */
.hero-slider .carousel-item {
  height: 80vh;
}

.hero-slider img {
  object-fit: cover;
  height: 100%;
  filter: brightness(0.6);
}

.carousel-caption {
  text-align: center;
}

.carousel-caption h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

.carousel-caption p {
  font-size: 1.125rem;
}

@media (max-width: 768px) {
  .carousel-caption h1 {
    font-size: 1.75rem;
  }
  .carousel-caption p {
    font-size: 1rem;
  }
}

.btn-custom {
  background-color: #8a0d1a;
  color: #fff;
  width: 240px;
  margin-left: auto;
  margin-right: auto;
  padding: 10px 20px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.btn-custom:hover {
  background-color: #6a0a14;
  color: #fff;
}

.section-title h2 {
  font-size: 2.25rem;
  position: relative;
  padding-bottom: 15px;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #8a0d1a;
}

.product-card {
  background-color: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

.product-img {
  height: 200px;
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.product-card:hover .product-img img {
  transform: scale(1.1);
}

.product-info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.product-info h3 {
  font-size: 1.25rem;
}

.product-info p {
  font-size: 0.875rem;
  color: #666;
}

.product-info .btn-custom {
  margin-top: auto;
  width: 100%;
}

.footer-links a {
  color: #fff;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #8a0d1a;
}

.social-links .btn:hover {
  background-color: #8a0d1a;
}

.footer-bottom {
  border-color: #333;
}
#products {
  background-image: url(urunler.png);
}
#contact2 {
  padding: 10px;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2000;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
}

.whatsapp-button:hover {
  transform: scale(1.1);
}

.whatsapp-button img {
  width: 32px;
  height: 32px;
}
@media (max-width: 480px) {
  .carousel-caption h1 {
    font-size: 1.25rem;
  }

  .carousel-caption p {
    font-size: 0.9rem;
    padding: 0 10px;
  }

  .btn-custom {
    width: 100%;
    font-size: 0.9rem;
  }
}
@media (max-width: 576px) {
  #products .row-cols-1.row-cols-md-2.row-cols-lg-5 {
    flex-direction: column !important;
  }
  #products .col {
    max-width: 100%;
    flex: 0 0 100%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin-bottom: 1rem;
  }
}
@media (max-width: 768px) {
  #about img,
  #contact iframe {
    max-width: 100%;
    height: auto;
  }

  #contact iframe {
    height: 300px;
  }
}
@media (max-width: 576px) {
  footer h3 {
    font-size: 1rem;
  }

  footer p,
  .footer-links a {
    font-size: 0.85rem;
  }
}
.map-responsive {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 oran */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
}

.map-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}
@media (max-width: 768px) {
  #contact2 {
    margin-top: 20px;
  }
}
.carousel-item {
  transition: transform 1.2s ease-in-out; /* default 0.6s */
}

/* --- Ürünlerimiz Kartları için Responsive Flexbox Desteği --- */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.product-info .btn-custom {
  margin-top: auto;
  width: 100%;
}
/* Kartların kapsayıcı sütunları da tam yükseklik alsın */
#products .col {
  display: flex;
  height: 100%;
}
#products .product-card {
  width: 100%;
}
