/**
 * Sepet / sipariş formu — sol yan menü panelleri
 */

#order-standard_cart .cart-sidebar {
  position: relative;
}

#order-standard_cart .alanx-cart-sidebar-panel {
  position: relative;
  border: 1px solid rgba(96, 165, 250, 0.2) !important;
  border-radius: 18px !important;
  background: linear-gradient(165deg, rgba(22, 32, 52, 0.98), rgba(12, 18, 32, 0.98)) !important;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease,
    box-shadow 0.35s ease;
}

#order-standard_cart .alanx-cart-sidebar-panel:hover {
  transform: translateY(-3px);
  border-color: rgba(96, 165, 250, 0.42) !important;
  box-shadow:
    0 24px 52px rgba(0, 0, 0, 0.55),
    0 0 32px rgba(37, 99, 235, 0.18);
}

#order-standard_cart .alanx-cart-sidebar-panel__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 60% at 50% -10%, rgba(59, 130, 246, 0.22), transparent 58%);
  pointer-events: none;
  opacity: 0.75;
  transition: opacity 0.35s ease;
}

#order-standard_cart .alanx-cart-sidebar-panel:hover .alanx-cart-sidebar-panel__glow {
  opacity: 1;
}

#order-standard_cart .alanx-cart-sidebar-panel--actions .alanx-cart-sidebar-panel__glow {
  background: radial-gradient(ellipse 90% 60% at 50% -10%, rgba(56, 189, 248, 0.2), transparent 58%);
}

#order-standard_cart .alanx-cart-sidebar-panel--currency-switcher .alanx-cart-sidebar-panel__glow,
#order-standard_cart .alanx-cart-sidebar-panel--currency .alanx-cart-sidebar-panel__glow {
  background: radial-gradient(ellipse 90% 60% at 50% -10%, rgba(52, 211, 153, 0.18), transparent 58%);
}

#order-standard_cart .alanx-cart-sidebar-panel__head {
  position: relative;
  z-index: 1;
  padding: 0.95rem 1rem !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14) !important;
}

#order-standard_cart .alanx-cart-sidebar-panel__title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 !important;
  font-size: 0.9375rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  color: #f8fafc !important;
}

#order-standard_cart .alanx-cart-sidebar-panel__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 10px;
  font-size: 0.875rem;
  color: #93c5fd;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.35), rgba(59, 130, 246, 0.15));
  border: 1px solid rgba(96, 165, 250, 0.35);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

#order-standard_cart .alanx-cart-sidebar-panel--actions .alanx-cart-sidebar-panel__icon {
  color: #7dd3fc;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.35), rgba(56, 189, 248, 0.12));
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.22);
}

#order-standard_cart .alanx-cart-sidebar-panel--currency-switcher .alanx-cart-sidebar-panel__icon,
#order-standard_cart .alanx-cart-sidebar-panel--currency .alanx-cart-sidebar-panel__icon {
  color: #6ee7b7;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.32), rgba(52, 211, 153, 0.12));
  border-color: rgba(52, 211, 153, 0.35);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.2);
}

#order-standard_cart .alanx-cart-sidebar-panel__label {
  flex: 1;
  min-width: 0;
}

#order-standard_cart .alanx-cart-sidebar-panel__badge {
  font-size: 0.6875rem;
}

#order-standard_cart .alanx-cart-sidebar-panel__toggle {
  margin-left: auto;
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.75);
  transition: transform 0.25s ease, color 0.25s ease;
}

#order-standard_cart .alanx-cart-sidebar-panel.collapsed .alanx-cart-sidebar-panel__toggle {
  transform: rotate(180deg);
}

#order-standard_cart .alanx-cart-sidebar-panel__body,
#order-standard_cart .alanx-cart-sidebar-nav {
  position: relative;
  z-index: 1;
  background: transparent !important;
  border: none !important;
}

#order-standard_cart .alanx-cart-sidebar-nav {
  padding: 0.5rem !important;
  gap: 0.35rem;
  display: flex;
  flex-direction: column;
}

#order-standard_cart .alanx-cart-sidebar-nav__link,
#order-standard_cart .alanx-cart-sidebar-nav__static {
  display: flex !important;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem !important;
  margin: 0 !important;
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.02) !important;
  color: rgba(226, 232, 240, 0.92) !important;
  text-decoration: none !important;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    color 0.28s ease;
}

#order-standard_cart .alanx-cart-sidebar-nav__link:hover,
#order-standard_cart .alanx-cart-sidebar-nav__link:focus {
  transform: translateX(4px);
  background: rgba(37, 99, 235, 0.14) !important;
  border-color: rgba(96, 165, 250, 0.35) !important;
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.2);
  outline: none;
}

#order-standard_cart .alanx-cart-sidebar-nav__link.is-current,
#order-standard_cart .alanx-cart-sidebar-nav__link.active,
#order-standard_cart .alanx-cart-sidebar-nav__static.is-current,
#order-standard_cart .alanx-cart-sidebar-nav__static.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.35), rgba(29, 78, 216, 0.22)) !important;
  border-color: rgba(96, 165, 250, 0.5) !important;
  color: #fff !important;
  box-shadow:
    0 10px 28px rgba(37, 99, 235, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

#order-standard_cart .alanx-cart-sidebar-nav__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  border-radius: 8px;
  font-size: 0.8125rem;
  color: #93c5fd;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.25);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

#order-standard_cart .alanx-cart-sidebar-nav__link:hover .alanx-cart-sidebar-nav__icon,
#order-standard_cart .alanx-cart-sidebar-nav__link.is-current .alanx-cart-sidebar-nav__icon,
#order-standard_cart .alanx-cart-sidebar-nav__link.active .alanx-cart-sidebar-nav__icon {
  transform: scale(1.06);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

#order-standard_cart .alanx-cart-sidebar-nav__text {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
}

#order-standard_cart .alanx-cart-sidebar-nav__badge {
  font-size: 0.6875rem;
}

#order-standard_cart .alanx-cart-sidebar-nav__arrow {
  flex-shrink: 0;
  font-size: 0.625rem;
  color: rgba(148, 163, 184, 0.5);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

#order-standard_cart .alanx-cart-sidebar-nav__link:hover .alanx-cart-sidebar-nav__arrow,
#order-standard_cart .alanx-cart-sidebar-nav__link.is-current .alanx-cart-sidebar-nav__arrow,
#order-standard_cart .alanx-cart-sidebar-nav__link.active .alanx-cart-sidebar-nav__arrow {
  opacity: 1;
  transform: translateX(0);
  color: #93c5fd;
}

/* Para birimi seçici */
#order-standard_cart .alanx-cart-sidebar-panel--currency-switcher,
#order-standard_cart .alanx-cart-sidebar-panel--currency {
  overflow: visible;
}

#order-standard_cart .alanx-cart-sidebar-panel__body,
#order-standard_cart .alanx-cart-sidebar-panel .card-body.collapsable-card-body:not(.alanx-cart-sidebar-nav),
#order-standard_cart .alanx-cart-sidebar-panel .panel-footer {
  padding: 0.75rem !important;
  overflow: visible !important;
}

#order-standard_cart .alanx-cart-sidebar-panel__body form,
#order-standard_cart .alanx-cart-sidebar-panel .panel-footer form {
  margin: 0;
}

#order-standard_cart .alanx-cart-sidebar-currency-wrap {
  position: relative;
  z-index: 2;
}

#order-standard_cart .alanx-cart-sidebar-panel__body .form-control,
#order-standard_cart .alanx-cart-sidebar-panel__body select,
#order-standard_cart .alanx-cart-sidebar-panel .card-body select,
#order-standard_cart .alanx-cart-sidebar-panel .panel-footer select,
#order-standard_cart .alanx-cart-sidebar-panel select.form-control,
#order-standard_cart .alanx-cart-sidebar-panel select.custom-select,
#order-standard_cart .alanx-cart-sidebar-panel .custom-select {
  display: block !important;
  width: 100% !important;
  min-height: 48px !important;
  height: auto !important;
  line-height: 1.5 !important;
  padding: 12px 2.5rem 12px 14px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(96, 165, 250, 0.35) !important;
  background-color: rgba(15, 23, 42, 0.95) !important;
  color: #f8fafc !important;
  font-weight: 600 !important;
  font-size: 0.9375rem !important;
  box-sizing: border-box !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 2;
  overflow: visible !important;
  text-overflow: clip;
  vertical-align: middle;
  -webkit-appearance: menulist;
  appearance: auto;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

#order-standard_cart .alanx-cart-sidebar-panel .custom-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2393c5fd' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 12px 8px !important;
}

#order-standard_cart .alanx-cart-sidebar-panel__body .form-control:focus,
#order-standard_cart .alanx-cart-sidebar-panel select:focus {
  border-color: rgba(96, 165, 250, 0.65) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25) !important;
  outline: none;
}

#order-standard_cart .alanx-cart-sidebar-panel select option {
  background-color: #1e293b !important;
  color: #f8fafc !important;
  padding: 8px 12px;
}

#order-standard_cart .alanx-cart-sidebar-panel__footer {
  background: rgba(255, 255, 255, 0.02) !important;
  border-top: 1px solid rgba(148, 163, 184, 0.12) !important;
}

/* Mobil seçici */
#order-standard_cart .alanx-cart-sidebar-mobile {
  border-radius: 16px !important;
  border: 1px solid rgba(96, 165, 250, 0.2) !important;
  background: linear-gradient(165deg, rgba(22, 32, 52, 0.98), rgba(12, 18, 32, 0.98)) !important;
  margin-bottom: 1rem;
  overflow: hidden;
}

#order-standard_cart .alanx-cart-sidebar-mobile .form-control,
#order-standard_cart .alanx-cart-sidebar-mobile select {
  border-radius: 12px !important;
  border: 1px solid rgba(96, 165, 250, 0.3) !important;
  background: rgba(15, 23, 42, 0.85) !important;
  color: #f1f5f9 !important;
}

@media (max-width: 991px) {
  #order-standard_cart .cart-sidebar .alanx-cart-sidebar-panel {
    margin-bottom: 0.75rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #order-standard_cart .alanx-cart-sidebar-panel,
  #order-standard_cart .alanx-cart-sidebar-nav__link {
    transition: none !important;
  }

  #order-standard_cart .alanx-cart-sidebar-panel:hover,
  #order-standard_cart .alanx-cart-sidebar-nav__link:hover {
    transform: none;
  }
}
