/* --- Genel Navbar Stilleri (Önceki gibi) --- */
.header .navbar {
  background: transparent;
  border-bottom: 0px solid #dee2e6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.navbar .navbar-brand img.logo-icon {
  max-height: 35px;
}
.nav-buttons .login-btn {
  border-radius: 20px;
  padding: 0.375rem 1rem;
  font-weight: 500;
}
.nav-buttons .cart-icon .notification-badge,
.nav-buttons .notifications-icon .notification-badge {
  font-size: 0.65em;
  padding: 0.2em 0.45em;
  position: absolute;
  top: -5px;
  right: -8px;
}
.nav-buttons .cart-icon i,
.nav-buttons .notifications-icon i {
  font-size: 1.2rem;
  transition: color 0.2s ease;
}
.nav-buttons .cart-icon:hover i,
.nav-buttons .notifications-icon:hover i,
.nav-buttons .notifications-icon .dropdown-toggle.show i {
  color: var(--bs-primary);
}
.desktop-grid-dropdown {
  position: static !important;
}
/* --- Desktop Dropdown (Grid Layout) --- */
.desktop-grid-dropdown .dropdown-menu {
  /* Override standard dropdown styles for grid */
  width: 80vw; /* Adjust width as needed */
  max-width: 1200px; /* Max width */
  padding: 1.5rem; /* More padding */
  border-radius: 0.75rem; /* More rounded */
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
  border: none; /* Remove border */
  margin-top: 0.5rem !important;
  background-color: #fff;
  top: calc(100% - 20px) !important; /* Ensure it drops down */
  left: 50% !important; /* Center attempt */
  transform: translateX(-50%) translateY(0) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  opacity: 0;
  visibility: hidden;
}
.desktop-grid-dropdown .dropdown-menu.show, .desktop-grid-dropdown .dropdown-menu:hover  {
  top: calc(100% - 20px) !important; /* Ensure it drops down */
  left: 50% !important; /* Center attempt */
  opacity: 1;
  visibility: visible;
}
.desktop-grid-dropdown .dropdown-item-card {
  display: flex; /* Use flex for alignment */
  align-items: center;
  padding: 0.8rem 1rem;
  border-radius: 0.5rem; /* Rounded corners */
  color: #343a40;
  text-decoration: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  height: 100%; /* Make cards in a row equal height */
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.desktop-grid-dropdown .dropdown-item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 102, 255, 0.2);
}

.desktop-grid-dropdown .dropdown-item-card i {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  margin-right: 0.75rem;
  font-size: 24px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  text-align: center;
  color: var(--bs-primary); /* Icon color */
  transition: all 0.2s ease;
}
.desktop-grid-dropdown .dropdown-item-card:hover i {
  transform: scale(1.1);
}

.desktop-grid-dropdown .dropdown-item-card:hover i:first-child {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.2);
}

.desktop-grid-dropdown .dropdown-item-card span {
  font-size: 15px;
  font-weight: 500;
}

.desktop-grid-dropdown .dropdown-item-card i:last-child {
  margin-left: auto;
  font-size: 12px;
  color: #999;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  justify-content: end;
}

.desktop-grid-dropdown .dropdown-item-card:hover i:last-child {
  opacity: 1;
  transform: translateX(0);
  color: #0066ff;
}

/* --- Mobile Offcanvas Stilleri (Önceki gibi, teyit edildi) --- */
#mobileMenuOffcanvas {
  --bs-offcanvas-width: 100vw;
  max-width: 100vw;
  border: none;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}
#mobileMenuOffcanvas .offcanvas-header {
  background-color: #343a40;
  color: #fff;
  padding: 0.75rem 1rem;
  border-bottom: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#mobileMenuOffcanvas .offcanvas-header .mobile-menu-brand {
  display: inline-block;
}
#mobileMenuOffcanvas .offcanvas-header .logo-icon {
  max-height: 28px;
  /*filter: brightness(0) invert(1);*/
  vertical-align: middle;
}
#mobileMenuOffcanvas .offcanvas-header .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
  font-size: 0.8rem;
  padding: 0.5rem;
  margin: -0.5rem;
}
#mobileMenuOffcanvas .offcanvas-header .btn-close:hover {
  opacity: 1;
}
#mobileMenuOffcanvas .offcanvas-body {
  padding: 0;
  background-color: #f0f2f5;
  display: flex;
}
#mobileMenuOffcanvas .mobile-menu-sidebar {
  background-color: #f8f9fa;
  flex: 0 0 90px;
  padding: 1rem 0.5rem;
  border-right: 1px solid #dee2e6;
  overflow-y: auto;
}
#mobileMenuOffcanvas .mobile-menu-sidebar .nav-link {
  background-color: #f8f9fa;
  color: #495057;
  padding: 0.8rem 0.25rem;
  font-size: 0.75rem;
  text-align: center;
  margin-bottom: 0.5rem;
  border-radius: 0.375rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 0px solid transparent;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out,
    border-color 0.2s ease-in-out;
}
#mobileMenuOffcanvas .mobile-menu-sidebar .nav-link .tab-icon {
  margin-bottom: 0.3rem;
}
#mobileMenuOffcanvas .mobile-menu-sidebar .nav-link .tab-icon i {
  font-size: 1.4rem;
  line-height: 1;
  color: inherit;
  transition: color 0.2s ease-in-out;
}
#mobileMenuOffcanvas .mobile-menu-sidebar .nav-link:hover {
  background-color: #e9ecef;
  color: var(--bs-primary);
  border-color: transparent;
}
#mobileMenuOffcanvas .mobile-menu-sidebar .nav-link.active {
  background-color: #fff;
  color: var(--bs-primary);
  font-weight: 500;
  border: 0px solid var(--bs-primary);
  box-shadow: 0 2px 5px rgba(0, 123, 255, 0.1);
}
#mobileMenuOffcanvas .mobile-menu-panels {
  background-color: #fff;
  flex-grow: 1;
  padding: 0.75rem;
  overflow-y: auto;
}
@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#mobileMenuOffcanvas .mobile-menu-panels .tab-pane {
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobileMenuOffcanvas .mobile-menu-panels .tab-pane.active {
  opacity: 1;
  visibility: visible;
  position: relative;
  animation: fadeSlideIn 0.3s ease;
}

#mobileMenuOffcanvas .mobile-menu-panel .panel-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
#mobileMenuOffcanvas .mobile-menu-panel .panel-item {
  display: flex;
  align-items: center;
  padding: 0.9rem 1rem;
  background-color: #fff;
  border-radius: 0.5rem;
  color: #212529;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: background-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out,
    border-color 0.15s ease-out, transform 0.15s ease-out;
  background: #fff;
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}
#mobileMenuOffcanvas .mobile-menu-panel .panel-item:hover {
  background-color: #f8f9fa;
  border-color: #dee2e6;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
  transform: translateY(-1px);
}
#mobileMenuOffcanvas .mobile-menu-panel .panel-item i:first-child {
  margin-right: 1rem;
  width: 20px;
  text-align: center;
  color: var(--bs-primary);
}
#mobileMenuOffcanvas .mobile-menu-panel .panel-item .fa-chevron-right {
  margin-left: 1rem;
  font-size: 1em;
  color: #000000;
  transition: color 0.15s ease-in-out;
}
#mobileMenuOffcanvas .mobile-menu-panel .panel-item:hover .fa-chevron-right {
  color: var(--bs-primary);
}
#mobileMenuOffcanvas .mobile-menu-panel .panel-item.active {
  background-color: #e9f5ff;
  font-weight: 500;
  color: var(--bs-primary);
  border-color: var(--bs-primary);
  box-shadow: 0 1px 3px rgba(0, 123, 255, 0.1);
}
#mobileMenuOffcanvas .mobile-menu-panel .panel-item.active i:first-child {
  color: var(--bs-primary);
}
#mobileMenuOffcanvas .order-track-form {
  padding: 0.5rem;
}
#mobileMenuOffcanvas .order-track-form label {
  font-size: 0.9em;
  margin-bottom: 0.3rem;
  font-weight: 500;
}
#mobileMenuOffcanvas .order-track-form .order-input {
  background-color: #fff;
  border: 1px solid #ced4da;
  font-size: 0.9rem;
  border-radius: 0.375rem;
}
#mobileMenuOffcanvas .order-track-form .order-input:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}
#mobileMenuOffcanvas .order-track-form .track-btn {
  width: 100%;
  margin-top: 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
}