:root {
  --primary-color: #ff9800;
  --secondary-color: #ff7600;
  --dark-bg: #111;
  --darker-bg: #000;
  --light-text: #fff;
  --gray-text: #ccc;
  --card-bg: #1e1e1e;
}

/* Cart Styles */
.cart {
  display: none;
  position: fixed;
  top: 80px;
  right: 20px;
  background: linear-gradient(135deg, rgba(35, 35, 35, 0.95), rgba(15, 15, 15, 0.98));
  padding: 30px;
  z-index: 10000;
  width: 360px;
  color: var(--light-text);
  border-radius: 35px;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: translateY(-15px) scale(0.95);
  opacity: 0;
  backdrop-filter: blur(15px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3),
              0 15px 25px rgba(255, 152, 0, 0.05),
              inset 0 2px 3px rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cart.active {
  display: block;
  transform: translateY(0) scale(1);
  opacity: 1;
}

.cart h2 {
  margin-bottom: 20px;
  font-size: 1.8rem;
  color: var(--primary-color);
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.cart h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

#cart-message {
  text-align: center;
  color: var(--gray-text);
  font-style: italic;
  margin: 35px 0;
  padding: 25px;
  border: 1px solid rgba(255, 152, 0, 0.12);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 152, 0, 0.05), rgba(255, 152, 0, 0.02));
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.8px;
  font-size: 1.1rem;
  line-height: 1.5;
}

#cart-items {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) rgba(255, 152, 0, 0.1);
  margin: 15px -10px;
  padding: 0 10px;
}

#cart-items::-webkit-scrollbar {
  width: 5px;
}

#cart-items::-webkit-scrollbar-track {
  background: rgba(255, 152, 0, 0.1);
  border-radius: 3px;
}

#cart-items::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 3px;
}

#cart-items li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 15px;
  margin: 10px 0;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid rgba(255, 152, 0, 0.1);
}

#cart-items li:hover {
  background: rgba(255, 152, 0, 0.05);
  transform: translateX(5px);
  border-color: rgba(255, 152, 0, 0.2);
}

.item-details {
  flex-grow: 1;
  margin-right: 20px;
}

.item-name {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--light-text);
  margin-bottom: 10px;
  letter-spacing: 0.6px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.item-price {
  font-size: 1.25rem;
  color: var(--primary-color);
  font-weight: 600;
  letter-spacing: 0.8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 4px;
}

.item-price::before {
  content: '₺';
  font-size: 0.9em;
  opacity: 0.9;
}

.quantity-controls {
  display: inline-flex;           /* Kapsayıcıyı içeriğe göre genişletir */
  align-items: center;            /* Dikeyde ortalar */
  justify-content: center;        /* Yatayda ortalar */
  gap: 8px;                       /* Buton ve sayı arasındaki boşluk */
  padding: 6px 12px;             /* Kutu içi boşlukları küçülterek daha dar görünüm */
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 152, 0, 0.08), rgba(255, 152, 0, 0.03));
  border: 1px solid rgba(255, 152, 0, 0.15);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  width: auto;                    /* Otomatik genişlik: içeriğe göre daralır */
  margin: 0;                      /* Ortalamak istemiyorsanız auto yerine 0 */
}

.quantity-value {
  min-width: 30px; /* Sayı kutusunu sabit genişlikte tutar */
  text-align: center; /* Sayıyı ortalar */
}

.quantity-btn {
  width: 32px;       /* Buton boyutu */
  height: 32px;      /* Buton boyutu */
  font-size: 1rem; /* + ve - simgelerinin boyutu */
  line-height: 10;    /* Dikey hizalamada sorun varsa line-height'ı düşürmek işe yarar */
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-4px);
  }
  /* Geri kalan geçiş (transition), gölge (box-shadow) vb. ayarlarınızı koruyabilirsiniz */

.quantity-btn:hover {
  background: linear-gradient(145deg, rgba(255, 152, 0, 0.25), rgba(255, 152, 0, 0.15));
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 5px 10px rgba(255, 152, 0, 0.2),
              inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.quantity-btn:active {
  transform: translateY(1px) scale(0.95);
  background: linear-gradient(145deg, rgba(255, 152, 0, 0.2), rgba(255, 152, 0, 0.1));
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1),
              inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.quantity-value {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--light-text);
  text-align: center;
  min-width: 24px; /* Tek haneli sayılarda da yer kaymaması için */
  line-height: 1;  /* Dikey hizalamayı iyileştirir */
}

.remove-item {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent);
  border: 1.5px solid rgba(255, 68, 68, 0.4);
  color: rgba(255, 68, 68, 0.85);
  cursor: pointer;
  font-size: 1rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  margin-left: 5px;
}

.remove-item::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, rgba(255, 68, 68, 0.2), rgba(255, 68, 68, 0.1));
  opacity: 0;
  transition: all 0.3s ease;
  border-radius: 50%;
  transform: scale(0.8);
}

.remove-item:hover {
  color: #fff;
  transform: rotate(180deg);
  border-color: rgba(255, 68, 68, 0.6);
  box-shadow: 0 4px 8px rgba(255, 68, 68, 0.2);
}

.remove-item:hover::before {
  opacity: 1;
  transform: scale(1);
}

.remove-item:active {
  transform: rotate(180deg) scale(0.9);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2),
              inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
  padding: 15px 20px;
  font-size: 1.3rem;
  background: linear-gradient(145deg, rgba(255, 152, 0, 0.1), rgba(255, 152, 0, 0.05));
  border-radius: 15px;
  border: 1px solid rgba(255, 152, 0, 0.2);
  position: relative;
}

.cart-total strong {
  color: var(--primary-color);
  font-weight: 600;
  letter-spacing: 1px;
}

#checkout {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.15), rgba(255, 152, 0, 0.1));
  border: 1px solid rgba(255, 152, 0, 0.3);
  color: var(--primary-color);
  padding: 20px 35px;
  width: 100%;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-top: 30px;
  position: relative;
  overflow: hidden;
  font-size: 1.1rem;
  border-radius: 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2),
              inset 0 1px 2px rgba(255, 255, 255, 0.1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

#checkout::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  transition: 0.5s;
  z-index: -1;
}

#checkout:hover {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.25), rgba(255, 152, 0, 0.15));
  color: var(--light-text);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(255, 152, 0, 0.2),
              inset 0 1px 3px rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 152, 0, 0.4);
}

#checkout:hover::before {
  left: 0;
}

#checkout:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2),
              inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Cart Icon Badge */
#cart-icon {
  position: relative;
  font-size: 1.8rem;
}

#cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--primary-color);
  color: var(--dark-bg);
  font-size: 0.8rem;
  font-weight: bold;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}