﻿/* ====================== PREMIUM MEGAMENU - SON VERSİYON ====================== */

.navbar-nav {
  position: relative;
}

/* Ana Megamenu Kutusu */
.megamenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  width: 980px;
  max-width: 96vw;
  background: rgba(255, 255, 255, 0.985);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.18),
              0 8px 40px rgba(0, 0, 0, 0.08);
  padding: 3rem 3.2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(232, 213, 196, 0.45);
  z-index: 1150;
  pointer-events: none;
}

/* Gap sorunu çözümü (fare geçiş boşluğu) */
.mega-dropdown {
  position: relative;
}

.mega-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;           /* "Ürünler" yazısının genişliğinden biraz daha geniş */
  height: 35px;           /* Fare geçiş güvenliği */
  z-index: 1140;
}

/* Hover ile açılma */
.mega-dropdown:hover > .megamenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(8px);
  pointer-events: all;
}

/* Kolonlar */
.megamenu-column h6 {
  font-size: 0.83rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--text-light);
  margin-bottom: 1.45rem;
  position: relative;
}

.megamenu-column h6::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 34px;
  height: 2.5px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  border-radius: 4px;
}

.megamenu-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.megamenu-column li {
  margin-bottom: 0.95rem;
}

.megamenu-column a {
  color: #2c2c2c;
  font-weight: 450;
  display: block;
  padding: 7px 0;
  transition: all 0.3s ease;
  font-size: 0.97rem;
}

.megamenu-column a:hover {
  color: var(--primary-color);
  padding-left: 12px;
  font-weight: 500;
}

/* 4. Kolon (Featured) */
.featured-column {
  border-left: 1px solid #f0ede9;
  padding-left: 2.6rem;
}

.megamenu-cta .btn {
  border-radius: 50px;
  padding: 14px 24px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(232, 213, 196, 0.25);
}

.megamenu-cta .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(232, 213, 196, 0.35);
}

/* Responsive */
@media (max-width: 991px) {
  .megamenu {
    position: static;
    transform: none;
    width: 100%;
    max-width: 100%;
    border-radius: 18px;
    margin-top: 12px;
    padding: 2.2rem 1.8rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
  }
  
  .mega-dropdown::after {
    display: none;
  }
  
  .featured-column {
    border-left: none;
    padding-left: 0;
    margin-top: 2rem;
  }
}

/* Alt menülerin başlangıçta kapalı olduğundan emin olalım */
.drawer-body ul.list-unstyled[style*="display: none"] {
    display: none;
}

/* Mobilde tıklama alanı iyileştirmesi */
.submenu-toggle {
    cursor: pointer;
    user-select: none;
    display: flex;
    width: 100%;
    text-decoration: none !important;
}

/* Alt menü elemanlarına biraz boşluk verelim */
.drawer-body ul.list-unstyled ul li {
    padding-left: 15px;
    border-left: 1px solid var(--border-color);
    margin-left: 10px;
}

.product-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid #f1f1f1;
}

.product-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: #e5e5e5;
}

.image-wrapper {
  position: relative;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-image {
  transform: scale(1.08);
}

.product-category {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  backdrop-filter: blur(8px);
}

.product-content {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
  color: #111;
}

.description {
  flex-grow: 1;
  margin-bottom: 20px;
  line-height: 1.5;
}

.price-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #222;
}

.btn-group {
  display: flex;
  gap: 8px;
}

.btn {
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-width: 110px;
}

.btn-incele {
  background: #f8f9fa;
  color: #333;
  border: 1.5px solid #ddd;
}

.btn-incele:hover {
  background: #f1f1f1;
  border-color: #bbb;
  transform: translateY(-1px);
}

.btn-teklif {
  background: linear-gradient(135deg, #222, #444);
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(34, 34, 34, 0.2);
}

.btn-teklif:hover {
  background: linear-gradient(135deg, #333, #555);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(34, 34, 34, 0.3);
}

@media (max-width: 576px) {
  .btn-group {
    flex-direction: column;
    width: 100%;
  }
  .btn {
    width: 100%;
  }
}

.label-small {
  font-size: 0.78rem;
  font-weight: 500;
  color: #666;
  text-align: center;           /* Ortada olacak */
  margin-bottom: 14px;
  line-height: 1.4;
}

.price-cta {
  display: flex;
  flex-direction: column;       /* Yazı üstte, butonlar altta */
  align-items: center;
  gap: 12px;
}

.btn-group {
  display: flex;
  gap: 8px;
  width: 100%;                  /* Butonlar tam genişlikte */
}

.btn {
  flex: 1;                      /* İki buton eşit büyüklükte */
  padding: 11px 18px;
  font-size: 0.92rem;
}

/* Hover efektleri (önceki CSS'ten kalanı koruyun) */
.product-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}