:root {
  --primary: #014da2;
  /* Akınsoft-mavi (yaklaşık) */
  --primary-dark: #014da2;
  --muted: #6c757d;
  --soft: #f8f9fa;
  --accent: #00ae4d;
  --card-radius: 14px;
  --glass-bg: rgba(255, 255, 255, 0.75);
  --easing: cubic-bezier(0.2, 0.9, 0.3, 1);
  --primary-rgb: 0, 174, 77;
  --accent-rgb: 1, 77, 162;
}
*:focus {
  outline: none !important;
}
html,
body {
  height: 100%;
  font-family: "Inter", "Montserrat", system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial;
  color: #222;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
.page-loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.85);
  z-index: 2000;
  transition: opacity 220ms;
}
.spinner {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: conic-gradient(var(--primary), transparent 40%);
  animation: spin 1.2s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Utility helpers (small) ---------- */
.sr-only-focusable:focus {
  position: static !important;
  left: auto;
  top: auto;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
}
.container-max {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-dark-primary {
  color: var(--primary-dark) !important;
}

.bg-dark-primary {
  background: var(--primary-dark) !important;
}
.text-accent {
  color: var(--accent) !important;
}

/* === ÜST BAR === */
.topbar {
  background: #fff;
  font-size: 14px;
  padding: 8px 0;
  line-height: 1.2;
}

.topbar .container {
  min-height: 24px;
  display: flex;
  align-items: center;
}

.topbar a, 
.topbar span {
  text-decoration: none;
  margin: 0;
  display: flex;
  align-items: center;
}

.topbar a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s ease;
}

.topbar a:hover {
  color: var(--primary);
}

.navbar-logo {
  height: 65px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.navbar-logo:hover {
  transform: scale(1.05);
}

.main-navbar {
  background: #fafafa;
  border-bottom: 1px solid #eee;
}

.main-navbar .navbar-nav .nav-link {
  color: #000;
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-navbar .navbar-nav .nav-link:hover,
.main-navbar .navbar-nav .nav-link:focus {
  color: var(--primary);
}

.mega-dropdown {
  position: static !important;
}

.mega-menu {
  position: fixed !important;
  top: 12% !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: min(900px, 92%) !important;
  border-top: 3px solid var(--primary) !important;
  border-radius: 0 0 12px 12px !important;
  background: #fafafa !important;
  z-index: 3000 !important;
  padding: 18px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
}

/* Navbar gap bridge per nav item instead of full width */
.navbar .dropdown > .nav-link {
  position: relative;
}

.navbar .dropdown:hover > .nav-link::before {
  content: "";
  position: absolute;
  top: 100%;
  left: -20px;
  right: -20px;
  height: 120px;
  background: transparent;
  z-index: 2999;
}

.dropdown-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.dropdown-card:hover {
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
  text-decoration: none;
}

.dropdown-card .icon {
  font-size: 28px;
  color: var(--accent);
  flex-shrink: 0;
}

.dropdown-card .text h6 {
  margin-top: 5px;
  margin-bottom: 0;
  font-weight: 600;
  color: var(--primary);
}

.dropdown-card .text p {
  margin: 0px;
  font-size: 9px;
  color: #666;
}

@media (max-width: 768px) {
  .mega-menu {
    width: 95%;
  }
}

.navbar-toggler {
  border: none;
  outline: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba%280,0,0,0.8%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Mobil düzen */
@media (max-width: 992px) {
  .navbar-logo {
    height: 35px;
  }

  .topbar .container {
    flex-direction: column;
    text-align: center;
  }

  .right-links {
    justify-content: center;
  }

  .navbar-nav {
    text-align: center;
    gap: 0.5rem !important;
  }
}

/* Tablet ve masaüstü */
@media (min-width: 993px) {
  .navbar-nav {
    align-items: center;
  }
}

/* === NAVBAR DROPDOWN HOVER === */
@media (min-width: 992px) {

  /* sadece masaüstü için */
  .navbar .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
    opacity: 1;
    visibility: visible;
  }

  .navbar .dropdown-menu {
    transition: all 0.2s ease;
    opacity: 0;
    visibility: hidden;
    margin-top: 10px;
  }

  .navbar .dropdown:hover>.nav-link {
    color: var(--primary-dark) !important;
  }
}

.navbar .nav-link:focus,
.navbar .dropdown-toggle:focus,
.navbar .dropdown-item:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* ---------- PRODUCTS ---------- */
.product-card {
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(18, 38, 63, 0.04);
  transition: transform 260ms var(--easing), box-shadow 260ms var(--easing);
  border: 1px solid rgba(10, 30, 60, 0.03);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 70px rgba(18, 38, 63, 0.06);
}
.product-card .img-wrap {
  height: 160px;
  overflow: hidden;
  background: #f6fbff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.product-card .p-3 {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card .btn {
  margin-top: auto;
  align-self: flex-start; /* buton genişlemesin */
}
.product-card .badge {
  align-self: flex-start;
}

.btn-primary-grad {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: #fff !important;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 123, 255, 0.12);
  padding: 10px 20px;
}

.btn-primary-grad:hover {
  opacity: 0.9;
  box-shadow: 0 18px 40px rgba(0, 123, 255, 0.14);
}

/* BLOG SAYFASI */

/* 🔍 Arama Alanı */
.search-box {
  background: #fff;
  border-radius: 50px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  max-width: 600px;
  margin: 0 auto 40px;
  transition: all 0.3s ease;
}
.search-box input {
  border: none;
  outline: none;
  flex: 1;
  padding: 8px 12px;
  font-size: 16px;
  background: transparent;
}
.search-box button {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  color: #fff;
  font-size: 18px;
  transition: 0.3s;
}
.search-box button:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.category-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 15px 25px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #222;
  width: 100%;           /* ✅ tam genişlik */
  max-width: 100%;       /* ✅ sınırı kaldır */
}

.category-card:hover {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.category-count {
  background: var(--primary);
  color: white;
  font-size: 12px;
  border-radius: 15px;
  padding: 5px 12px;
  font-weight: 700;
}

/* 🔹 Mobil düzen */
@media (max-width: 768px) {
  .category-card {
    padding: 20px 18px;
    border-radius: 15px;
    margin: 0px 0;
  }
  .row.mb-5.justify-content-center {
    gap: 5px; /* Daha sıkı görünüm */
  }
}


/* 🔹 Filtre etiketi */
.filter-tag {
  background: #fff;
  border-radius: 50px;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  font-weight: 600;
  color: #333;
  transition: all 0.3s ease;
}
.filter-tag:hover {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
}

/* 🔸 Sonuç başlığı */
.results-info {
  margin-top: 40px;
  font-weight: 600;
  font-size: 18px;
  color: #555;
}
.divider {
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border: none;
  border-radius: 5px;
  margin: 10px 0 40px;
}

/* BLOG SAYFASI */

/* BLOG DETAY */

.nav-links a {
  color: #0d6efd;
  text-decoration: none;
}
.nav-links a:hover {
  text-decoration: underline;
}
.blog-cover {
  width: 100%;
  height: 400px; /* 📏 Kapak görsel yüksekliği */
  overflow: hidden;
  border-radius: 15px;
  position: relative;
}

.blog-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 📸 Görseli orantılı kırp */
  object-position: center;
  transition: transform 0.6s ease;
}

.blog-cover:hover img {
  transform: scale(1.03); /* 🧠 Hafif yakınlaştırma efekti */
}

.footer h6 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer a:hover {
  color: var(--primary) !important;
}

.footer .social-links a:hover {
  color: var(--primary-dark) !important;
}

.footer-logo {
  height: 30px; /* logo büyük ama navbar taşmaz */
  object-fit: contain;
  transition: transform 0.3s ease;
  margin-right: 20px;
  margin-bottom: 5px;
}

/* BLOG DETAY */

.post-nav {
  border-top: 1px solid #eee;
}

.post-nav .nav-label {
  color: #222;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.post-nav .nav-title {
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.post-nav a:hover .nav-label,
.post-nav a:hover .nav-title {
  color: var(--primary);
}

/* =============================================
   FLOATING BUTTONS — WhatsApp & Scroll to Top
   ============================================= */

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 52px;
  height: 52px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  z-index: 1005;
  text-decoration: none;
  transition: bottom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.3s ease, box-shadow 0.3s ease;
  outline: none !important;
}

.whatsapp-float.pushed { bottom: 92px; }

.whatsapp-float:hover,
.whatsapp-float:focus,
.whatsapp-float:active {
  background: #1ebe5d;
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.6);
  border-radius: 50% !important;
}

.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #014da2, #00ae4d);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 16px rgba(1, 77, 162, 0.35);
  outline: none !important;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover,
.scroll-to-top:focus,
.scroll-to-top:active {
  transform: translateY(-5px);
  box-shadow: 0 6px 22px rgba(1, 77, 162, 0.5);
  border-radius: 50% !important;
}

@media (max-width: 768px) {
  .whatsapp-float, .scroll-to-top {
    bottom: 20px; right: 20px;
    width: 46px; height: 46px;
    font-size: 1.3rem;
  }
  .whatsapp-float.pushed { bottom: 76px; }
}
