/* ========================================
   MODERN CART DESIGN - PREMIUM
   ======================================== */

/* Cart Items Container */
.modern-cart-body .urunitem {
  background: white;
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.modern-cart-body .urunitem:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

/* Product Image */
.modern-cart-body .urunitem .res {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Product Info */
.modern-cart-body .urunitem .bilgi {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

/* Product Name & Status */
.modern-cart-body .urunitem .adi {
  font-size: 15px;
  font-weight: 700;
  color: #2d3748;
  line-height: 1.4;
  margin-bottom: 6px;
}

.modern-cart-body .urunitem .adi span {
  display: inline-block;
  background: linear-gradient(135deg, #ff6247, #ff8a75);
  color: white;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  margin-right: 6px;
}

/* Status Badges */
.modern-cart-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 6px;
  letter-spacing: 0.3px;
}

.modern-cart-status-badge.status-primary {
  background: #dbeafe;
  color: #1e40af;
}

.modern-cart-status-badge.status-secondary {
  background: #fef3c7;
  color: #92400e;
}

.modern-cart-status-badge.status-info {
  background: #e0e7ff;
  color: #3730a3;
}

.modern-cart-status-badge.status-success {
  background: #d1fae5;
  color: #065f46;
}

.modern-cart-status-badge.status-warning {
  background: #fed7aa;
  color: #9a3412;
}

.modern-cart-status-badge.status-danger {
  background: #fee2e2;
  color: #991b1b;
}

/* Date Badge */
.modern-cart-date-badge {
  display: inline-block;
  font-size: 10px;
  color: #9ca3af;
  margin-left: 8px;
  font-weight: 500;
}

/* Product Description */
.modern-cart-body .urunitem .desc {
  font-size: 12px;
  color: #718096;
  line-height: 1.4;
  margin: 4px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Bottom Section (Price & Delete) */
.modern-cart-body .urunitem .alt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.modern-cart-body .urunitem .fiyat {
  font-size: 18px;
  font-weight: 800;
  color: #ff6247;
  letter-spacing: -0.3px;
}

.modern-cart-body .urunitem .arti {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fee2e2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 16px;
}

.modern-cart-body .urunitem .arti:hover {
  background: #dc2626;
  color: white;
  transform: scale(1.1) rotate(10deg);
}

/* Customer Header */
.modern-cart-body .siparis {
  margin: 20px 0 12px 0;
}

.modern-cart-body .musteri {
  background: linear-gradient(
    135deg,
    rgba(255, 98, 71, 0.1),
    rgba(255, 138, 117, 0.1)
  );
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #2d3748;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modern-cart-body .musteri i {
  color: #ff6247;
  font-size: 18px;
}

/* Submit Button */
.modern-cart-submit-btn {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #ff6247, #ff8a75);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(255, 98, 71, 0.3);
  position: relative;
  overflow: hidden;
}

.modern-cart-submit-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}

.modern-cart-submit-btn:hover::before {
  width: 300px;
  height: 300px;
}

.modern-cart-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 98, 71, 0.4);
}

.modern-cart-submit-btn:active {
  transform: translateY(0);
}

.modern-cart-submit-btn i {
  font-size: 20px;
  animation: pulseIcon 2s ease-in-out infinite;
}

@keyframes pulseIcon {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Summary Section */
.modern-cart-body .katman2 {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 16px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

.modern-cart-body .katman2ic {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modern-cart-body .toplam {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  position: relative;
}

.modern-cart-body .toplam:last-child {
  border-bottom: none;
  padding-top: 16px;
  margin-top: 8px;
  border-top: 2px solid #ff6247;
}

.modern-cart-body .toplam b {
  font-size: 14px;
  font-weight: 700;
  color: #4a5568;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modern-cart-body .toplam:last-child b {
  font-size: 16px;
  color: #2d3748;
}

.modern-cart-body .toplam span {
  font-size: 16px;
  font-weight: 800;
  color: #2d3748;
  letter-spacing: -0.3px;
}

.modern-cart-body .toplam:last-child span {
  font-size: 20px;
  color: #ff6247;
}

/* Service & Discount Badges */
.modern-cart-body .toplam .text-danger {
  background: #fee2e2;
  color: #dc2626;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 14px;
}

.modern-cart-body .toplam .text-success {
  background: #d1fae5;
  color: #065f46;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 14px;
}

/* Empty Cart State */
.modern-cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  min-height: 400px;
}

.modern-cart-empty-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(255, 98, 71, 0.1),
    rgba(255, 138, 117, 0.1)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  animation: float 3s ease-in-out infinite;
}

.modern-cart-empty-icon i {
  font-size: 50px;
  color: #ff6247;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.modern-cart-empty-title {
  font-size: 24px;
  font-weight: 800;
  color: #2d3748;
  margin-bottom: 12px;
}

.modern-cart-empty-text {
  font-size: 15px;
  color: #718096;
  line-height: 1.6;
  max-width: 280px;
  margin-bottom: 28px;
}

.modern-cart-empty-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #ff6247, #ff8a75);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(255, 98, 71, 0.3);
  transition: all 0.3s ease;
}

.modern-cart-empty-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 98, 71, 0.4);
  color: white;
}

.modern-cart-empty-btn i {
  font-size: 18px;
}

/* Scrollbar */
.modern-cart-body::-webkit-scrollbar {
  width: 6px;
}

.modern-cart-body::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.modern-cart-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.modern-cart-body::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ========================================
   Z-INDEX FIX FOR MODALS & ALERTS
   ======================================== */

/* Cart Sidebar Base Z-Index */
.modern-cart-sidebar {
  z-index: 1500 !important;
}

.modern-cart-overlay {
  z-index: 1500 !important;
}

.modern-cart-content {
  z-index: 1501 !important;
}

/* SweetAlert2 should be above cart sidebar */
.swal2-container {
  z-index: 9999 !important;
}

.swal2-popup {
  z-index: 10000 !important;
}

/* Bootstrap Modals should be above cart sidebar */
.modal {
  z-index: 9999 !important;
}

.modal-backdrop {
  z-index: 9998 !important;
}

.modal.show {
  z-index: 9999 !important;
}

/* Toastr Notifications */
#toast-container,
.toast-top-right,
.toast-bottom-right,
.toast-top-left,
.toast-bottom-left {
  z-index: 10000 !important;
}

/* Data Tables Dropdowns */
.dataTables_wrapper .dt-buttons,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_length select {
  z-index: 10000 !important;
}

/* General Dropdown Fix */
.dropdown-menu.show {
  z-index: 10000 !important;
}

/* Confirmation Dialogs */
.confirmation-dialog,
.swal-overlay,
.swal-modal {
  z-index: 10000 !important;
}

/* ========================================
   LOADING STATE
   ======================================== */

.modern-cart-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  min-height: 300px;
}

.modern-cart-loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f4f6;
  border-top-color: #ff6247;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.modern-cart-loading-text {
  margin-top: 20px;
  font-size: 14px;
  color: #9ca3af;
  font-weight: 600;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 480px) {
  .modern-cart-body .urunitem {
    padding: 10px;
    gap: 10px;
  }

  .modern-cart-body .urunitem .res {
    width: 70px;
    height: 70px;
  }

  .modern-cart-body .urunitem .adi {
    font-size: 14px;
  }

  .modern-cart-body .urunitem .fiyat {
    font-size: 16px;
  }

  .modern-cart-body .urunitem .arti {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .modern-cart-body .katman2 {
    padding: 16px;
  }

  .modern-cart-submit-btn {
    padding: 14px 20px;
    font-size: 15px;
  }
}

/* ========================================
   MODERN ORDER CONFIRMATION MODAL
   ======================================== */

.modern-order-modal {
  border: none !important;
  border-radius: 24px !important;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
}

/* Header */
.modern-order-modal-header {
  background: linear-gradient(135deg, #ff6247, #ff8a75);
  padding: 40px 30px 30px 30px;
  position: relative;
  text-align: center;
  border-bottom: none;
}

.modern-order-modal-icon {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.modern-order-modal-icon i {
  font-size: 32px;
  color: white;
  animation: float 3s ease-in-out infinite;
}

.modern-order-modal-title {
  font-size: 24px;
  font-weight: 800;
  color: white;
  margin: 0 0 10px 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modern-order-modal-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-weight: 500;
}

.modern-order-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modern-order-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* Body */
.modern-order-modal-body {
  padding: 30px;
}

/* Agreement Section */
.modern-order-agreement-section {
  background: #f8f9fa;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
}

.modern-order-agreement-header {
  background: white;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
  color: #2d3748;
  border-bottom: 2px solid #f1f5f9;
}

.modern-order-agreement-header i {
  font-size: 20px;
  color: #ff6247;
}

.modern-order-agreement-content {
  padding: 20px;
  max-height: 350px;
  overflow-y: auto;
}

.modern-order-agreement-content::-webkit-scrollbar {
  width: 6px;
}

.modern-order-agreement-content::-webkit-scrollbar-track {
  background: #e9ecef;
  border-radius: 10px;
}

.modern-order-agreement-content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.modern-order-agreement-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e9ecef;
}

.modern-order-agreement-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.modern-order-agreement-number {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #ff6247, #ff8a75);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.modern-order-agreement-text h5 {
  font-size: 15px;
  font-weight: 700;
  color: #2d3748;
  margin: 0 0 8px 0;
}

.modern-order-agreement-text p {
  font-size: 13px;
  color: #718096;
  line-height: 1.6;
  margin: 0;
}

/* Confirmation Checkbox */
.modern-order-confirmation-checkbox {
  background: linear-gradient(
    135deg,
    rgba(255, 98, 71, 0.05),
    rgba(255, 138, 117, 0.05)
  );
  padding: 20px;
  border-radius: 12px;
  border: 2px solid #ffe5e0;
}

.modern-checkbox-input {
  display: none;
}

.modern-checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  margin: 0;
}

.modern-checkbox-box {
  width: 24px;
  height: 24px;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  background: white;
}

.modern-checkbox-box i {
  font-size: 12px;
  color: white;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
}

.modern-checkbox-input:checked + .modern-checkbox-label .modern-checkbox-box {
  background: linear-gradient(135deg, #ff6247, #ff8a75);
  border-color: #ff6247;
}

.modern-checkbox-input:checked + .modern-checkbox-label .modern-checkbox-box i {
  opacity: 1;
  transform: scale(1);
}

.modern-checkbox-text {
  font-size: 14px;
  font-weight: 600;
  color: #2d3748;
}

/* Footer */
.modern-order-modal-footer {
  padding: 20px 30px;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.modern-order-cancel-btn,
.modern-order-submit-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modern-order-cancel-btn {
  background: white;
  color: #718096;
  border: 2px solid #e2e8f0;
}

.modern-order-cancel-btn:hover {
  background: #f8f9fa;
  border-color: #cbd5e1;
  color: #4a5568;
}

.modern-order-submit-btn {
  background: linear-gradient(135deg, #ff6247, #ff8a75);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 98, 71, 0.3);
}

.modern-order-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 98, 71, 0.4);
}

.modern-order-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #cbd5e1;
  box-shadow: none;
}

.modern-order-submit-btn i,
.modern-order-cancel-btn i {
  font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .modern-order-modal-header {
    padding: 30px 20px 25px 20px;
  }

  .modern-order-modal-icon {
    width: 60px;
    height: 60px;
  }

  .modern-order-modal-icon i {
    font-size: 28px;
  }

  .modern-order-modal-title {
    font-size: 20px;
  }

  .modern-order-modal-subtitle {
    font-size: 13px;
  }

  .modern-order-modal-body {
    padding: 20px;
  }

  .modern-order-agreement-content {
    max-height: 250px;
  }

  .modern-order-modal-footer {
    padding: 16px 20px;
    flex-direction: column;
  }

  .modern-order-cancel-btn,
  .modern-order-submit-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ========================================
   ANIMATIONS
   ======================================== */

.modern-cart-item-enter {
  animation: slideInRight 0.4s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.modern-cart-item-remove {
  animation: slideOutRight 0.3s ease-out forwards;
}

@keyframes slideOutRight {
  to {
    opacity: 0;
    transform: translateX(100px);
  }
}

/* ==========================================================================
   KAMPANYA — ÜRÜN KARTI FİYATI
   Üstü çizili eski fiyat + indirimli fiyat + kampanya adı rozeti.
   Kartlarda ANIMASYON YOK: 40 ürünlük listede yanıp sönen rozetler ucuz görünür.
   ========================================================================== */
.menu-container-price-old {
	display: block;
	width: 100%;
	font-size: 12px;
	color: #94a3b8;
	text-decoration: line-through;
	line-height: 1.3;
}
.menu-container-price.menu-container-price-kmp {
	color: #16a34a;
}
.menu-container-price-section:has(.menu-container-price-kmp) .menu-container-currency {
	color: #16a34a;
}
.menu-container-kmp-rozet {
	display: block;
	width: 100%;
	margin-top: 3px;
	max-width: 100%;
	font-size: 10.5px;
	font-weight: 700;
	color: #15803d;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 6px;
	padding: 1px 7px;
	line-height: 1.6;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	box-sizing: border-box;
}
