/* ==========================================================================
   SEPET (CART) STİLLERİ
   Eski header.php içinden ayrıştırıldı.
   ========================================================================== */

.cart-container {
  position: relative;
  right: 5px;
  z-index: 3;
}

.cart-button {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  padding: 5px 12px;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  gap: 10px;
  transition: all 0.3s ease;
}

.cart-button:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.03);
}

.cart-count {
  background-color: #e57373;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

.cart-details {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 10px;
  width: 600px;
  max-width: 650px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(15px);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  display: none;
}

.cart-icon {
  width: 24px;
  height: 24px;
  fill: white;
}

.cart-details h4 {
  margin-bottom: 12px;
  color: #000;
  text-align: center;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  padding: 10px;
}

.item-info {
  flex: 1;
}

.item-info p {
  margin: 2px 0;
  font-size: 14px;
  color: #222;
}

.item-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.qty-input {
  width: 50px;
  padding: 4px;
  font-size: 14px;
}

.remove-btn {
  background: #ff4d4d;
  border: none;
  color: #fff;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 6px;
  cursor: pointer;
}

.summary {
  text-align: right;
  font-weight: bold;
  font-size: 16px;
  margin-top: 10px;
}

.cart-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  gap: 10px;
}

.cart-footer button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

.update-btn {
  background-color: #00b894;
  color: white;
}

.checkout-btn {
  background-color: #0984e3;
  color: white;
}

#closeCart {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  font-size: 24px;
  font-weight: bold;
  background-color: #f8d7da; /* açık kırmızı/pembe */
  color: #721c24;            /* koyu kırmızı metin */
  border: none;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

#closeCart:hover {
  background-color: #dc3545; /* Bootstrap kırmızı tonu */
  color: #fff;
  box-shadow: 0 0 12px rgba(220, 53, 69, 0.6);
  transform: scale(1.1);
}
