﻿.cart {
  position: relative;
  cursor: pointer;
}

.cart-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  width: 320px;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 1rem;
  margin-top: 10px;
}

/* Üçgen ok ekleme */
.cart-dropdown:before {
  content: '';
  position: absolute;
  top: -8px;
  right: 45px;
  width: 16px;
  height: 16px;
  background: white;
  transform: rotate(45deg);
  border-left: 1px solid #dee2e6;
  border-top: 1px solid #dee2e6;
}

.cart-header {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #dee2e6;
  margin-bottom: 1rem;
}

.cart-header h3 {
  font-size: 1rem;
  margin: 0;
  color: #333;
}

.cart-items {
  max-height: 300px;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-image {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 1rem;
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item-name {
  font-size: 0.9rem;
  margin: 0 0 0.25rem 0;
  color: #333;
}

.cart-item-price {
  font-size: 0.8rem;
  color: #666;
}

.cart-item-quantity {
  font-size: 0.8rem;
  color: #666;
}

.cart-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #dee2e6;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-weight: 500;
}

.checkout-button {
  display: block;
  width: 100%;
  padding: 0.5rem;
  background-color: #0d6efd;
  color: white;
  border: none;
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s;
}

.checkout-button:hover {
  background-color: #0b5ed7;
  color: white;
  text-decoration: none;
}

.empty-cart {
  text-align: center;
  padding: 2rem 0;
  color: #666;
}

.cart-item-remove {
  color: #dc3545;
  cursor: pointer;
  padding: 0.25rem;
  margin-left: 0.5rem;
  font-size: 0.8rem;
}

.cart-item-remove:hover {
  color: #c82333;
}

/* Scrollbar stilleri */
.cart-items::-webkit-scrollbar {
  width: 6px;
}

.cart-items::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.cart-items::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.cart-items::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.search-bar.position-relative {
  position: relative;
}

.search-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 2000;
  background: #fff;
  border: 1px solid #dee2e6;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  max-height: 350px;
  overflow-y: auto;
  padding: 0;
  margin: 0;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f1f1f1;
  transition: background 0.15s;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: #f8f9fa;
}

.search-result-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  background: #f1f1f1;
}

.search-result-title {
  font-size: 1rem;
  color: #222;
  font-weight: 500;
}

.search-result-price {
  color: #0d6efd;
  font-size: 0.95rem;
  font-weight: 600;
  margin-left: auto;
}

.search-no-result {
  padding: 16px;
  color: #888;
  text-align: center;
  font-size: 1rem;
}

/* Modern Google-style Search Bar */
.search-bar-google {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 2px 8px rgba(60, 64, 67, 0.13);
  border: 1px solid #e0e0e0;
  padding: 2px 8px 2px 2px;
  max-width: 420px;
  width: 100%;
  transition: box-shadow 0.2s, border-color 0.2s;
  position: relative;
}

.search-bar-google:focus-within {
  box-shadow: 0 4px 18px rgba(60, 64, 67, 0.18);
  border-color: #4285f4;
}

.search-bar-google select {
  border: none;
  background: #f7f7f7;
  border-radius: 20px 0 0 20px;
  padding: 0 32px 0 16px;
  height: 44px;
  font-size: 1rem;
  color: #444;
  outline: none;
  min-width: 120px;
  transition: background 0.2s, box-shadow 0.2s;
  appearance: none;
  cursor: pointer;
  box-shadow: none;
  position: relative;
}

.search-bar-google select:focus {
  background: #f1f3f4;
}

.search-bar-google .custom-chevron {
  position: absolute;
  left: 110px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  width: 18px;
  height: 18px;
  opacity: 0.5;
}

.search-bar-google input[type="text"] {
  border: none;
  outline: none;
  background: transparent;
  height: 44px;
  font-size: 1rem;
  flex: 1;
  padding: 0 10px 0 0;
  color: #222;
  border-radius: 0 20px 20px 0;
}

.search-bar-google button {
  background: none;
  border: none;
  border-radius: 50%;
  height: 38px;
  width: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
  cursor: pointer;
  margin-left: 2px;
}

.search-bar-google button:hover {
  background: #f1f3f4;
}

.search-bar-google img {
  width: 22px;
  height: 22px;
}

.search-bar-google .search-icon-inside {
  position: absolute;
  left: 140px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  opacity: 0.5;
  pointer-events: none;
}

.search-bar-google input[type="text"] {
  padding-left: 38px;
}

@media (max-width: 600px) {
  .search-bar-google {
    max-width: 100%;
    padding: 2px 2px 2px 2px;
  }

  .search-bar-google select {
    min-width: 80px;
    font-size: 0.95rem;
  }

  .search-bar-google input[type="text"] {
    font-size: 0.95rem;
  }
}

/* Hide default select arrow for Chrome, Safari, Edge */
.search-bar-google select::-ms-expand {
  display: none;
}

.search-bar-google select::-webkit-appearance {
  appearance: none;
}

.search-bar-google select {
  background-image: none;
}

/* Redesigned Search Bar Input Group */
.search-bar-group {
  width: 100%;
  max-width: 520px;
  box-shadow: 0 2px 8px rgba(60, 64, 67, 0.13);
  border-radius: 2rem;
  overflow: visible;
  background: #fff;
}

.search-bar-category-btn {
  border-top-left-radius: 2rem !important;
  border-bottom-left-radius: 2rem !important;
  border-right: none;
  min-width: 120px;
  max-width: 260px;
  display: flex;
  align-items: center;
  padding-right: 1.5rem;
  white-space: normal;
  text-align: left;
}

.search-bar-category-text {
  display: block;
  max-width: 200px;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
}

.search-bar-category-menu {
  min-width: 220px;
  max-width: 350px;
  white-space: normal;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(60, 64, 67, 0.18);
  padding: 0.5rem 0;
}

.search-bar-category-menu .dropdown-item {
  white-space: normal;
  word-break: break-word;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 1rem;
  max-width: 320px;
}

.search-bar-input {
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  font-size: 1rem;
  min-width: 0;
  flex: 1 1 0%;
  padding-left: 1rem;
  padding-right: 1rem;
  background: transparent;
  height: 44px;
}

.search-bar-btn {
  border-top-right-radius: 2rem !important;
  border-bottom-right-radius: 2rem !important;
  width: 48px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

@media (max-width: 600px) {
  .search-bar-group {
    max-width: 100%;
  }

  .search-bar-category-btn {
    min-width: 80px;
    max-width: 120px;
    font-size: 0.95rem;
    padding-right: 0.5rem;
  }

  .search-bar-category-text {
    max-width: 90px;
    font-size: 0.95rem;
  }

  .search-bar-category-menu {
    min-width: 120px;
    max-width: 200px;
  }

  .search-bar-category-menu .dropdown-item {
    font-size: 0.95rem;
    max-width: 180px;
  }

  .search-bar-btn {
    width: 40px;
    height: 38px;
  }

  .search-bar-input {
    font-size: 0.95rem;
    height: 38px;
  }
}