/* Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");

:root {
  --primary-color: #d4af37;
  --main-color: #d4af37;
  --secondary-color: #333333;
  --primary-dark: #b89628;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --card-shadow:
    0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --card-shadow-hover:
    0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

body {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  padding-bottom: 70px;
  /* Mobile nav spacing */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.025em;
}

h1.display-4,
h2.fw-bold {
  font-family: "Playfair Display", serif;
}

/* Navbar */
/* Modern Navbar Styling */
.navbar {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04); /* Hafif gölge */
  background-color: #fff !important;
  padding: 0;
  height: 60px; /* Sabit yükseklik */
}

.navbar .container {
  height: 100%;
}

/* Strict Single Line Navbar */
.navbar-nav {
  flex-wrap: nowrap !important; /* Asla satır atlama */
  align-items: center;
  gap: 5px; /* Boşlukları azalttık */
  width: 100%;
  justify-content: center;
}

.nav-link {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 11.5px; /* Daha güvenli font boyutu */
  color: #333 !important;
  text-transform: uppercase;
  padding: 0 8px !important; /* Padding küçültüldü */
  height: 60px;
  display: flex !important; /* Flex olarak davran */
  align-items: center;
  position: relative;
  transition: color 0.3s ease;
  letter-spacing: 0.3px;

  /* Kritik: Tek satır zorlama */
  white-space: nowrap !important;
}

/* Uzun İsimler için Ellipsis (Kesme) */
.nav-link span.cat-name,
.nav-link {
  max-width: 180px; /* Maksimum genişlik */
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block; /* Ellipsis için gerekli */
  vertical-align: middle;
  line-height: 60px; /* Dikey ortalama için */
}

/* Flex display'i inline-block ile ezmek gerekebilir ellipsis için */
.nav-link {
  display: inline-block !important;
}

.nav-link:hover,
.nav-link.active,
.nav-item.show .nav-link {
  color: #000 !important;
}

/* Center-out Hover çizgi efekti */
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 15px; /* Biraz yukarı aldık */
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: calc(100% - 20px); /* Kenarlardan boşluk bırak */
}

/* İletişim Butonu Özelleştirmesi (Ghost Button) */
.nav-item-contact {
  margin-left: auto !important; /* En sağa it */
  padding-left: 10px;
}

.nav-item-contact .nav-link {
  border: 1px solid var(--primary-color);
  height: 34px !important; /* Buton yüksekliği */
  line-height: 32px !important; /* Border payı */
  margin-top: 13px; /* Dikey ortalama */
  padding: 0 20px !important;
  border-radius: 50px;
  color: var(--primary-color) !important;
  transition: all 0.3s ease;
  display: inline-block !important;
}

.nav-item-contact .nav-link::after {
  display: none; /* Çizgi efektini kaldır */
}

.nav-item-contact .nav-link:hover {
  background-color: var(--primary-color);
  color: white !important;
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

/* Dropdown Menu */
.dropdown-menu {
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 12px 12px;
  margin-top: -2px;
  padding: 1rem 0;
}

.dropdown-item {
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  padding: 0.7rem 1.5rem;
  color: #333;
  transition: all 0.2s;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
  color: var(--primary-color);
  transform: translateX(5px);
}

/* Offcanvas (Mobil Menü) */
.offcanvas-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #eee;
}

.mobile-menu-link {
  display: block;
  padding: 1rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #f1f1f1;
  transition: background 0.2s;
}

.mobile-menu-link:hover {
  background-color: #f9f9f9;
  color: var(--primary-color);
}

.mobile-menu-link i {
  width: 25px;
  color: var(--primary-color);
}

/* Navbar Top - Dark Slogan */
.navbar-top {
  background-color: #1a1a1a !important; /* Çok koyu gri/siyah */
  color: #f1f1f1 !important;
  font-size: 11px; /* Daha zarif ve küçük */
  height: 35px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-top a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s;
}

.navbar-top a:hover {
  color: var(--primary-color);
}

/* Mobile Bottom Nav - Native App Style */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: white;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-around;
  padding: 8px 0 25px 0; /* iOS Home Indicator payı için alt padding */
  z-index: 99999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.mobile-nav-item {
  text-align: center;
  color: #999;
  text-decoration: none;
  font-size: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.mobile-nav-item i {
  display: block;
  font-size: 20px;
  margin-bottom: 4px;
  color: #333; /* İkonlar koyu gri */
  transition: color 0.2s ease;
}

.mobile-nav-item.active {
  color: var(--primary-color);
  font-weight: 600;
}

.mobile-nav-item.active i {
  color: var(--primary-color);
}

/* Mobile Category */
.mobile-cats a {
  text-decoration: none;
}

.mobile-cats .cat-card {
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.mobile-cats .cat-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f6f6f6;
}

.mobile-cats .cat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mobile-cats .cat-title {
  font-weight: 700;
  color: #2c3e50;
  font-size: 0.95rem;
}

.mobile-cats .cat-child {
  font-size: 0.85rem;
  color: #6c757d;
}

/* Utilities */
.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.hover-white:hover {
  color: white !important;
}

.badge {
  padding: 0.5em 0.75em;
  border-radius: 6px;
  font-weight: 600;
}
/* Product Card Zoom & Magnifier Effect */
.product-card {
  overflow: hidden; /* Taşmayı gizle */
  position: relative; /* Pozisyonlama için */
}

.product-card .card-img-top {
  transition:
    transform 0.4s ease,
    opacity 0.3s ease;
  transform-origin: center center;
  object-fit: cover;
}

/* Hoverda Resim Büyüsün */
.product-card:hover .card-img-top {
  transform: scale(1.15); /* %15 Büyüme */
  opacity: 0.95;
}

/* Büyüteç İkonu (Pseudo-element) */
.product-card::before {
  content: "\f00e"; /* FontAwesome Büyüteç ikonu */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  font-size: 20px;
  z-index: 10;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none; /* Tıklamayı engellemesin */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.product-card:hover::before {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  top: 50%; /* Hafif aşağı kayma efekti */
}

/* Cookie Banner Styles */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  z-index: 1060; /* Modal üstü */
  display: flex; /* Flex yapalım ki JS display:none/flex değiştirebilsin */
  animation: slideUp 0.5s ease-out;
  border-left: 5px solid var(--primary-color);
}

@keyframes slideUp {
  from {
    transform: translate(-50%, 100%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.cookie-banner__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 2rem;
}

.cookie-banner__text {
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.5;
}

.cookie-banner__text a {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: 500;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .cookie-banner {
    bottom: 85px; /* Mobile nav barın üstünde kalsın */
    width: 95%;
    padding: 1rem;
    flex-direction: column;
  }

  .cookie-banner__content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .cookie-banner__text {
    font-size: 0.85rem;
  }

  .cookie-banner__actions {
    width: 100%;
    justify-content: stretch;
  }

  .cookie-banner__actions .btn {
    flex: 1;
  }
}
