:root {
  --primary: #3176FF;
  --secondary: #FF6B6B;
}

body {
  background-color: #f8f9fa;
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.font-pacifico {
  font-family: 'Pacifico', cursive;
}

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

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

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

.bg-secondary {
  background-color: var(--secondary) !important;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: #2967e0;
  border-color: #2967e0;
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  border-color: var(--primary);
}

.notification-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--secondary);
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
}

.search-input {
  border-radius: 50px;
  padding-left: 40px;
  padding-right: 40px;
  height: 40px;
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #adb5bd;
}

.dropdown-menu {
  border-radius: 0.25rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.category-dropdown {
  width: 1000px;
}

.category-menu {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  width: 1000px;
  min-width: 800px;
  background: white;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  border-radius: 0.25rem;
  padding: 2rem;
}

.category-item:hover .category-menu {
  display: block;
}

.store-card {
  transition: box-shadow 0.3s;
  border-radius: 0.5rem;
  border: none;
  background-color: white;
}

.store-card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.product-card {
  transition: transform 0.3s;
  border-radius: 0.5rem;
  border: none;
  overflow: hidden;
  background-color: white;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 0.5rem;
}

.action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  border: none;
  cursor: pointer;
}

.banner {
  background: linear-gradient(to right, #9c27b0, #7b1fa2);
  border-radius: 0.5rem;
}

.deals-header {
  background: linear-gradient(to right, #ffd54f, #ff9800);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -1px;
}

/* Kategori menüsü düzeltmesi */
.dropdown-submenu .category-menu {
  position: fixed !important;
  left: 300px !important; /* Sidebar genişliğine göre ayarlayın */
  top: 190px !important; /* Kategori menüsünün yukarıdan mesafesi */
  margin-top: 0 !important;
  margin-left: 0 !important;
  /* Categories dropdown'unun hizasına konumlandırma */
  transform: none;
  z-index: 1001;
  display: none;
  padding: 1.8rem;
  width: calc(100% - 340px) !important; /* Sayfa genişliğinden sidebar genişliğini çıkarın */
  min-width: 800px;
  max-width: 1200px; /* Maksimum genişlik sınırlaması */
  max-height: 70vh; /* Ekran yüksekliğinin %70'i kadar maksimum yükseklik */
  overflow-y: auto; /* İçerik fazla ise kaydırma çubuğu ekler */
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border: 1px solid #e5e5e5;
  background-color: #fff;
}

/* Ekran boyutlarına göre responsive düzenlemeler */
@media (min-width: 1600px) {
  .dropdown-submenu .category-menu {
    left: calc(50% - 650px) !important; /* Ekranın ortasından 650px sola doğru konumlandır */
    max-width: 1300px;
  }
}

@media (min-width: 1920px) {
  .dropdown-submenu .category-menu {
    left: calc(50% - 750px) !important; /* Ekranın ortasından 750px sola doğru konumlandır */
    max-width: 1500px;
  }
}

/* Dropdown menüsü hover edildiğinde göster */
.dropdown-submenu:hover .category-menu {
  display: block;
}

/* Kategori öğesi üzerine gelince alt menüsünü gösterme */
.category-item:hover .category-menu {
  display: block;
}

.dropdown-submenu .category-menu.show {
  display: block;
}

/* Mobil ekranlar için düzenleme */
@media (max-width: 991.98px) {
  .dropdown-submenu .category-menu {
    position: static !important;
    width: 100% !important;
    min-width: auto;
    max-width: none;
    max-height: none;
    overflow-y: visible;
    left: 0 !important;
    top: 0 !important;
    padding: 1rem;
  }
}

/* Alt menü açıldığında parent item'ın stilini güncelle */
.dropdown-submenu:hover > a {
  background-color: #f8f9fa;
}

/* Kategori menüsü içindeki başlıklar */
.category-menu h6 {
  color: var(--primary);
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 8px;
  margin-top: 10px;
  font-size: 0.9rem;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  font-weight: 500;
}

/* Yeni sınıf - kategori başlıkları için */
.category-title {
  color: var(--primary);
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 8px;
  margin-top: 10px;
  font-size: 0.9rem;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  font-weight: 500;
}

/* Alt kategori linkleri */
.category-menu .dropdown-item {
  padding: 0.1rem 0.3rem;
  font-size: 13px;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  margin-bottom: 0.3rem;
}

/* Kategori satırları */
.category-row {
  margin-bottom: 20px;
  padding: 0 10px;
  display: flex;
  flex-wrap: wrap;
}

/* Kategori sütunları */
.category-column {
  padding: 0 20px;
  min-width: 200px;
  flex: 1;
}

.category-menu .dropdown-item:hover {
  background-color: #f8f9fa;
  color: var(--primary);
}

/* Ana kategori öğeleri üzerine gelindiğinde stillerini güncelle */
.dropdown-submenu:hover {
  background-color: #f8f9fa;
}

.store-icon {
  width: 64px;
  height: 64px;
  background-color: #f8f9fa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.store-icon i {
  font-size: 1.75rem;
  color: var(--primary);
}

.service-provider {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.service-provider img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
}

.service-provider-info {
  flex: 1;
}

.service-provider-name {
  font-weight: 500;
  margin-bottom: 0;
}

.service-provider-title {
  color: #6c757d;
  font-size: 0.875rem;
}

.service-provider-rating {
  margin-top: 0.5rem;
}

.service-provider-experience {
  margin-bottom: 0.25rem;
}

.heart-active {
  color: var(--primary);
}

.discount-badge {
  color: #ff6b6b;
}

.product-price {
  font-weight: bold;
  font-size: 1.125rem;
}

.product-old-price {
  text-decoration: line-through;
  color: #6c757d;
  font-size: 0.875rem;
}

.product-store {
  font-size: 0.875rem;
  color: #6c757d;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0;
}

.view-all {
  color: var(--primary);
  text-decoration: none;
}

.view-all:hover {
  text-decoration: underline;
}

/* New styles to match the image */
.store-container {
  background-color: white;
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-align: center;
  transition: box-shadow 0.3s;
}

.store-container:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.store-container h5{
  font-size: 17px;
}

.store-icon-circle {
  width: 80px;
  height: 80px;
  background-color: #f0f4ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.store-icon-circle i {
  font-size: 2rem;
  color: var(--primary);
}

.product-item {
  background-color: white;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: transform 0.3s;
}

.product-item:hover {
  transform: translateY(-5px);
}

.product-image-container {
  position: relative;
  overflow: hidden;
  background-color: #f8f9fa;
}

.product-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-item:hover .product-image {
  transform: scale(1.05);
}

.product-action-buttons {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 8px;
}

.action-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.action-button:hover {
  background-color: #f8f9fa;
}

.action-button i {
  font-size: 1.25rem;
}

.product-info {
  padding: 1rem;
}

.product-title {
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.price-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.5rem;
}

.current-price {
  font-weight: bold;
  font-size: 1.125rem;
}

.old-price {
  text-decoration: line-through;
  color: #6c757d;
  font-size: 0.875rem;
}

.discount-percent {
  color: #ff6b6b;
  font-size: 0.875rem;
}

.store-name a {
  color: #6c757d;
  font-size: 0.875rem;
}

.deals-gradient-header {
  background: linear-gradient(to right, #ffd54f, #ff9800);
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.deals-title {
  color: white;
  font-weight: 500;
  margin: 0;
}

.view-all-link {
  color: white;
  text-decoration: none;
}

.view-all-link:hover {
  text-decoration: underline;
}

.heart-filled {
  color: var(--primary);
}

.service-provider-card {
  background-color: white;
  border-radius: 0.5rem;
  overflow: hidden;
  padding: 1.5rem;
}

.provider-profile {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.provider-image {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
}

.provider-details {
  flex: 1;
}

.provider-name {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.provider-title {
  color: #6c757d;
  font-size: 0.875rem;
}

.provider-stats {
  margin-bottom: 1rem;
}

.experience-years {
  margin-bottom: 0.25rem;
}

.rating-info {
  display: flex;
  align-items: center;
}

.rating-stars {
  color: #ffc107;
  margin-right: 0.5rem;
}

.rating-count {
  color: #6c757d;
  font-size: 0.875rem;
}

.appointment-button {
  width: 100%;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 0.25rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.appointment-button:hover {
  background-color: #2967e0;
}

/* Menu spacing adjustment */
.navbar-nav {
  display: flex;
  align-items: center;
  margin-left: -15px;
}

.navbar-nav .nav-item {
  margin-right: 2rem;
}

.navbar-nav .nav-link {
  padding: 0.5rem 0;
  font-weight: 500;
  color: #343a40;
  transition: color 0.2s;
}

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

.dropdown-toggle::after {
  margin-left: 0.5rem;
}

/* Top bar düzeltmeleri */
.top-bar {
  height: auto;
  padding: 5px 0;
}

.top-bar .py-2 {
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
}

/* Arama butonu düzeltmesi */
.btn-search {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  border: none;
  background: transparent;
  padding: 0 15px;
}

/* Dil seçimi düzeltmesi */
.dropdown .flag {
  margin-right: 5px;
  vertical-align: middle;
}

/* Dropdown düzeltmeleri */
.dropdown-toggle {
  display: flex;
  align-items: center;
}

.dropdown-toggle img.flag {
  margin-right: 5px;
}

.form_search_main {
  position: relative;
}

.form_search_main .ri-search-line {
  font-size: 18px;
  color: #adb5bd;
}

.top-bar .navbar-nav {
  padding: 0;
}

#footer{
  border-top: 1px solid #e5e5e5;
}
