/* ============= MODERN SHOPPING CART DESIGN ================ */

/* CSS Variables */
:root {
  --cart-primary: #45B8AC;
  --cart-primary-dark: #3a9b8f;
  --cart-secondary: #667eea;
  --cart-danger: #dc3545;
  --cart-success: #28a745;
  --cart-step-active: #FBBF24;
  --cart-step-active-dark: #F59E0B;
  --cart-step-done: #45B8AC;
  --cart-step-done-dark: #3a9b8f;
  --cart-text: #333;
  --cart-text-light: #555;
  --cart-text-lighter: #999;
  --cart-bg: #f8f9fa;
  --cart-border: #e9ecef;
  --cart-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --cart-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ============= CART BODY ================ */

.shopping-cart-body {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: 100vh;
  padding: 2rem 0 3rem;
  --core-cart-header-offset: 4.25rem;
  --core-cart-actions-height: 5.5rem;
}

.shopping-cart-body.is-cart-actions-pinned > .container {
  padding-bottom: var(--core-cart-actions-height);
}

.shopping-cart-body .tab-content {
  overflow: visible;
}

/* ============= MODERN STEP TABS ================ */

.modern-cart-steps {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--cart-shadow);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
  position: sticky;
  top: calc(var(--core-cart-header-offset, 4.25rem) + 0.5rem);
  z-index: 1020;
}

/*
 * Adım aksiyon çubuğu: JS ile pinned (fixed) / static geçişi.
 * Uzun içerikte viewport altına sabitlenir; form sonuna gelince akışa oturur.
 */
.modern-cart-sticky-actions__sentinel {
  width: 100%;
  height: 1px;
  margin: 2rem 0 0;
  pointer-events: none;
  visibility: hidden;
}

.modern-cart-sticky-actions {
  position: relative;
  z-index: 1025;
  margin-top: 0;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--cart-border);
  border-radius: 16px;
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(8px);
  padding: 1rem 1.25rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
}

.modern-cart-sticky-actions--pinned {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin-top: 0;
  border-radius: 16px 16px 0 0;
  border-bottom: none;
  box-shadow: 0 -10px 36px rgba(15, 23, 42, 0.14);
}

.modern-cart-sticky-actions__inner {
  width: 100%;
}

.modern-cart-step-buttons {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
  width: 100%;
}

.modern-cart-step-buttons:not([hidden]) {
  display: flex !important;
}

.modern-cart-step-buttons > .modern-cart-button-secondary {
  margin-right: auto;
}

.modern-cart-step-buttons > .modern-cart-button-primary,
.modern-cart-step-buttons > .modern-cart-button-secondary {
  flex: 0 0 auto;
}

.modern-cart-step-buttons--end {
  justify-content: flex-end;
}

.modern-cart-step-buttons--start {
  justify-content: flex-start;
}

.modern-cart-step-buttons--start > .modern-cart-button-secondary {
  margin-right: 0;
}

.modern-cart-step-buttons[hidden] {
  display: none !important;
}

.modern-step-nav {
  --core-step-circle: 44px;
  --core-step-progress: 0%;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
  position: relative;
  gap: 0.75rem;
}

/* Track + fill bar — ilk dairenin ortasından son dairenin ortasına uzanır.
   4 sütun var; ilk daire merkezi = 12.5%, son daire merkezi = 87.5%. */
.modern-step-nav::before,
.modern-step-nav::after {
  content: '';
  position: absolute;
  top: calc(var(--core-step-circle) / 2);
  left: 12.5%;
  width: 75%;
  height: 4px;
  border-radius: 999px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}

.modern-step-nav::before {
  background: var(--cart-border);
}

.modern-step-nav::after {
  background: linear-gradient(90deg, var(--cart-step-active) 0%, var(--cart-step-done) 100%);
  /* --core-step-progress: 0..100 (sayı, % değil). Track 75% ekseninde fill. */
  width: calc(75% * var(--core-step-progress, 0) / 100);
  transition: width 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}

.modern-step-item {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
  min-width: 0;
}

.modern-step-circle {
  position: relative;
  z-index: 2;
  width: var(--core-step-circle);
  height: var(--core-step-circle);
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--cart-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--cart-text-lighter);
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.modern-step-circle .modern-step-index {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.modern-step-circle .modern-step-icon,
.modern-step-circle .modern-step-done {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Active step: amber — "şu an buradasın" */
.modern-step-item.active .modern-step-circle {
  background: linear-gradient(135deg, var(--cart-step-active) 0%, var(--cart-step-active-dark) 100%);
  border-color: var(--cart-step-active-dark);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(251, 191, 36, 0.22);
  transform: scale(1.06);
}
.modern-step-item.active .modern-step-circle::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.45);
  animation: coreStepPulse 2s ease-out infinite;
  pointer-events: none;
  z-index: 0;
}
.modern-step-item.active .modern-step-index { opacity: 0; }
.modern-step-item.active .modern-step-icon {
  opacity: 1;
  transform: scale(1);
  font-size: 1.25rem;
  /* Konum-pin ikonunu üst-merkeze hafifçe kaydırıp damla hissini güçlendir */
  align-items: center;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
  animation: corePinDrop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
}

/* Completed step: marka teal, onay işareti */
.modern-step-item.completed .modern-step-circle {
  background: linear-gradient(135deg, var(--cart-step-done) 0%, var(--cart-step-done-dark) 100%);
  border-color: var(--cart-step-done);
  color: #fff;
}
.modern-step-item.completed .modern-step-index { opacity: 0; }
.modern-step-item.completed .modern-step-done { opacity: 1; transform: scale(1); font-weight: 700; }

@keyframes coreStepPulse {
  0%   { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.5); }
  70%  { box-shadow: 0 0 0 14px rgba(251, 191, 36, 0); }
  100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}

@keyframes corePinDrop {
  0%   { transform: translateY(-30%) scale(0.6); opacity: 0; }
  60%  { transform: translateY(6%) scale(1.1);  opacity: 1; }
  80%  { transform: translateY(-2%) scale(0.96); }
  100% { transform: translateY(0) scale(1);      opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .modern-step-item.active .modern-step-circle::after { animation: none; }
  .modern-step-item.active .modern-step-icon { animation: none; }
  .modern-step-nav::after { transition: none; }
}

/* Etiketler */
.modern-step-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  min-width: 0;
}

.modern-step-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cart-text-lighter);
  transition: color 0.3s ease;
}

.modern-step-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cart-text-light);
  line-height: 1.2;
  transition: color 0.3s ease;
}

.modern-step-item.active .modern-step-eyebrow,
.modern-step-item.active .modern-step-label {
  color: var(--cart-step-active-dark);
}
.modern-step-item.completed .modern-step-eyebrow {
  color: var(--cart-step-done-dark);
}
.modern-step-item.completed .modern-step-label {
  color: var(--cart-text);
}

/* ============= MODERN CART CONTENT ================ */

.modern-cart-content {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--cart-shadow);
  padding: 2rem;
  margin-bottom: 2rem;
  min-height: 400px;
}

.modern-cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--cart-border);
}

.modern-cart-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cart-text);
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modern-cart-title i {
  color: var(--cart-primary);
  font-size: 1.75rem;
}

/* ============= MODERN CART ITEMS (liste satırları) ================ */

.core-cart-seller-block {
  margin-bottom: 1.75rem;
}

.core-cart-seller-label {
  margin: 0 0 0.15rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cart-text-lighter);
}

.core-cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.core-cart-row {
  display: grid;
  grid-template-columns: auto 100px 1fr auto;
  grid-template-areas:
    "check image details actions";
  gap: 1rem 1.25rem;
  align-items: start;
  padding: 1.15rem 1.25rem;
  margin-bottom: 0;
}

.core-cart-row-check {
  grid-area: check;
  padding-top: 0.35rem;
}

.core-cart-checkbox {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--cart-primary);
  cursor: pointer;
}

.core-cart-checkbox-label {
  display: none;
}

.core-cart-row .modern-cart-item-image {
  grid-area: image;
  width: 100px;
  height: 100px;
}

.core-cart-row .modern-cart-item-details {
  grid-area: details;
  min-width: 0;
}

.core-cart-row .modern-cart-item-actions {
  grid-area: actions;
  min-width: 140px;
}

.core-cart-meta-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--cart-text-lighter);
  margin-bottom: 0.25rem;
}

.core-cart-qty-select select {
  min-width: 4.5rem;
  border-radius: 8px;
  border: 1px solid var(--cart-border);
  height: 36px;
  font-weight: 600;
}

.core-cart-shipping {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  background: #f0faf8;
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--cart-text-light);
}

.core-cart-shipping .bi {
  color: var(--cart-primary);
}

.core-cart-free-ship {
  font-weight: 600;
  color: var(--cart-success);
}

.core-cart-shipping-pending {
  font-style: italic;
  color: var(--cart-text-light);
}

/* ============ Misafir sepeti banner'ı (persistent guest cart) ============ */
.core-guest-cart-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  margin: 0 0 1rem;
  background: linear-gradient(135deg, rgba(69, 184, 172, 0.08) 0%, rgba(69, 184, 172, 0.02) 100%);
  border: 1px solid rgba(69, 184, 172, 0.35);
  border-radius: 12px;
  flex-wrap: wrap;
}
.core-guest-cart-banner[data-origin="logout"] {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.10) 0%, rgba(255, 193, 7, 0.02) 100%);
  border-color: rgba(255, 193, 7, 0.45);
}
.core-guest-cart-banner__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: var(--cart-primary);
  font-size: 1.15rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.core-guest-cart-banner[data-origin="logout"] .core-guest-cart-banner__icon {
  color: #b45309;
}
.core-guest-cart-banner__body {
  flex: 1 1 240px;
  min-width: 0;
}
.core-guest-cart-banner__title {
  margin: 0 0 0.2rem;
  font-weight: 600;
  color: var(--cart-text);
  font-size: 0.95rem;
}
.core-guest-cart-banner__text {
  margin: 0;
  color: var(--cart-text-light);
  font-size: 0.85rem;
  line-height: 1.45;
}
.core-guest-cart-banner__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, var(--cart-primary) 0%, var(--cart-primary-dark) 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  flex-shrink: 0;
  box-shadow: 0 4px 12px -4px rgba(69, 184, 172, 0.45);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.core-guest-cart-banner__cta:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -4px rgba(69, 184, 172, 0.55);
}
@media (max-width: 540px) {
  .core-guest-cart-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .core-guest-cart-banner__cta {
    align-self: stretch;
    justify-content: center;
  }
}

/* ============ Checkout misafir ipucu (tab-info.php ikinci katman) ============ */
.core-checkout-guest-hint {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  margin: 0 0 1rem;
  background: rgba(69, 184, 172, 0.06);
  border-left: 3px solid var(--cart-primary);
  border-radius: 8px;
}
.core-checkout-guest-hint[hidden] {
  display: none;
}
.core-checkout-guest-hint__icon {
  color: var(--cart-primary);
  font-size: 1.05rem;
  line-height: 1.3;
  flex-shrink: 0;
}
.core-checkout-guest-hint__text {
  font-size: 0.85rem;
  color: var(--cart-text-light);
  line-height: 1.5;
}
.core-checkout-guest-hint__text strong {
  display: block;
  color: var(--cart-text);
  margin-bottom: 0.15rem;
  font-weight: 600;
}
.core-checkout-guest-hint__text a {
  color: var(--cart-primary-dark);
  font-weight: 600;
  text-decoration: underline;
}
.core-checkout-guest-hint__text a:hover {
  color: var(--cart-primary);
}

.core-cart-line-price {
  font-size: 0.9375rem;
  color: var(--cart-text);
}

.core-cart-line-muted {
  color: var(--cart-text-light);
  font-size: 0.875rem;
}

.core-cart-row-total {
  text-align: right;
  margin-bottom: 0.65rem;
}

.core-cart-total-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--cart-text-lighter);
  margin-bottom: 0.2rem;
}

.core-cart-total-currency {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cart-text-light);
  margin-left: 0.2rem;
}

.modern-cart-seller-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.35rem 0.5rem;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(69, 184, 172, 0.12) 0%, rgba(69, 184, 172, 0.06) 100%);
  border-radius: 10px;
  border: 1px solid rgba(69, 184, 172, 0.25);
}

.modern-cart-seller-footer-name {
  font-weight: 600;
  color: #c5850a;
}

.modern-cart-seller-footer-label {
  color: var(--cart-text-light);
  font-size: 0.9rem;
}

.modern-cart-seller-footer-amount {
  font-size: 1.35rem;
  color: var(--cart-text);
}

.modern-cart-seller-footer-currency {
  font-weight: 600;
  color: var(--cart-text-light);
}

.modern-cart-remove {
  width: 100%;
  justify-content: center;
}

.modern-cart-seller-group {
  background: var(--cart-bg);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 2px solid var(--cart-border);
}

.modern-cart-seller-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--cart-border);
}

.modern-cart-seller-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cart-primary) 0%, var(--cart-primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
}

.modern-cart-seller-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--cart-text);
  margin: 0;
}

.modern-cart-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 1px solid var(--cart-border);
  transition: all 0.3s ease;
}

.modern-cart-item:hover {
  box-shadow: var(--cart-shadow);
  transform: translateY(-2px);
}

.modern-cart-item-image {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modern-cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modern-cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modern-cart-item-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--cart-text);
  margin: 0;
  line-height: 1.4;
}

.modern-cart-item-title a {
  color: var(--cart-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.modern-cart-item-title a:hover {
  color: var(--cart-primary);
}

.modern-cart-item-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--cart-text-light);
  flex-wrap: wrap;
}

.modern-cart-item-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cart-primary);
}

.modern-cart-item-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-end;
}

.modern-cart-quantity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid var(--cart-border);
  border-radius: 8px;
  padding: 0.25rem;
}

.modern-cart-quantity button {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--cart-bg);
  color: var(--cart-text);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modern-cart-quantity button:hover {
  background: var(--cart-primary);
  color: #fff;
}

.modern-cart-quantity input {
  width: 50px;
  border: none;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
}

.modern-cart-remove {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--cart-danger) 0%, #c82333 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modern-cart-remove:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.modern-cart-total {
  background: linear-gradient(135deg, var(--cart-primary) 0%, var(--cart-primary-dark) 100%);
  color: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  margin-top: 1.5rem;
}

.modern-cart-total-label {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.modern-cart-total-amount {
  font-size: 2rem;
  font-weight: 700;
}

/* ============= MODERN BUTTONS ================ */

.modern-cart-button {
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
}

.modern-cart-button-primary {
  background: linear-gradient(135deg, var(--cart-primary) 0%, var(--cart-primary-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(69, 184, 172, 0.3);
}

.modern-cart-button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(69, 184, 172, 0.4);
  color: #fff;
}

.modern-cart-button-secondary {
  background: #fff;
  color: var(--cart-primary);
  border: 2px solid var(--cart-primary);
}

.modern-cart-button-secondary:hover {
  background: var(--cart-primary);
  color: #fff;
}

.modern-cart-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--cart-shadow);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============= EMPTY CART ================ */

.modern-cart-empty {
  text-align: center;
  padding: 4rem 2rem;
}

.modern-cart-empty-icon {
  font-size: 5rem;
  color: var(--cart-text-lighter);
  margin-bottom: 1.5rem;
  opacity: 0.5;
}

.modern-cart-empty-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--cart-text);
  margin-bottom: 0.75rem;
}

.modern-cart-empty-text {
  font-size: 1rem;
  color: var(--cart-text-light);
  margin-bottom: 2rem;
}

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

@media (max-width: 768px) {
  .modern-cart-steps {
    padding: 1rem 0.75rem;
    top: calc(var(--core-cart-header-offset, 4rem) + 0.35rem);
  }

  .modern-cart-sticky-actions__sentinel {
    margin-top: 1.25rem;
  }

  .modern-cart-sticky-actions {
    padding: 0.85rem 1rem;
    padding-bottom: max(0.85rem, env(safe-area-inset-bottom, 0px));
  }

  .modern-cart-sticky-actions .modern-cart-button {
    padding: 0.65rem 1.25rem;
    font-size: 0.9375rem;
  }

  .modern-cart-step-buttons:not([hidden]) {
    display: flex !important;
    flex-direction: row;
    justify-content: flex-end;
  }

  .modern-cart-step-buttons > .modern-cart-button-secondary {
    margin-right: auto;
  }

  .modern-cart-step-buttons--end,
  .modern-cart-step-buttons--start {
    justify-content: flex-end;
  }

  .modern-cart-step-buttons--start {
    justify-content: flex-start;
  }

  .modern-cart-step-buttons--start > .modern-cart-button-secondary {
    margin-right: 0;
  }

  .modern-cart-step-buttons .modern-cart-button {
    flex: 0 0 auto;
    justify-content: center;
  }
  .modern-step-nav {
    --core-step-circle: 36px;
    gap: 0.4rem;
  }
  .modern-step-progress {
    height: 3px;
  }
  .modern-step-eyebrow {
    display: none;
  }
  .modern-step-label {
    font-size: 0.75rem;
    line-height: 1.2;
  }
  .modern-step-circle {
    font-size: 0.875rem;
  }
  .modern-step-circle .modern-step-icon,
  .modern-step-circle .modern-step-done {
    font-size: 0.875rem;
  }
  .modern-step-item.active .modern-step-circle {
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.2);
  }
  
  .core-cart-row {
    grid-template-columns: auto 80px 1fr;
    grid-template-areas:
      "check image details"
      "actions actions actions";
  }

  .core-cart-row .modern-cart-item-image {
    width: 80px;
    height: 80px;
  }

  .core-cart-row .modern-cart-item-actions {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-width: 0;
  }

  .core-cart-row-total {
    text-align: left;
    margin-bottom: 0;
  }

  .modern-cart-remove {
    width: auto;
  }
  
  .modern-cart-item {
    flex-direction: column;
  }
  
  .modern-cart-item-image {
    width: 100%;
    height: 200px;
  }
  
  .modern-cart-item-actions {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }
  
  .modern-cart-actions {
    flex-direction: column;
  }
  
  .modern-cart-actions .modern-cart-button {
    width: 100%;
    justify-content: center;
  }

  .modern-cart-seller-footer {
    justify-content: center;
    text-align: center;
  }
}

/* Taksit özeti bandı */
.core-cart-installment-banner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, rgba(69, 184, 172, 0.12) 0%, rgba(255, 255, 255, 0.95) 100%);
  border: 1px solid rgba(69, 184, 172, 0.35);
  border-radius: 12px;
}

.core-cart-installment-banner__icon {
  font-size: 1.5rem;
  color: var(--cart-primary);
  flex-shrink: 0;
}

.core-cart-installment-banner__title {
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--cart-text);
  font-size: 0.95rem;
}

.core-cart-installment-banner__text {
  margin: 0;
  font-size: 0.875rem;
  color: var(--cart-text-light);
  line-height: 1.45;
}

/* ============= CHECKOUT INFO STEP (tab-info) ================ */

.core-checkout-info {
  max-width: 100%;
}

.core-checkout-info__header {
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--cart-border);
}

.core-checkout-info__title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cart-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.core-checkout-info__title .bi {
  color: var(--cart-primary);
}

.core-checkout-info__subtitle {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--cart-text-light);
  line-height: 1.5;
}

.core-checkout-info__grid {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.core-checkout-info__section-title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cart-text);
}

.core-checkout-info__hint {
  margin: -0.5rem 0 1rem;
  font-size: 0.875rem;
  color: var(--cart-text-light);
  line-height: 1.45;
}

.core-checkout-member-banner {
  margin-bottom: 1.25rem;
}

.core-checkout-member-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem 1rem;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  border: 1px solid rgba(45, 90, 61, 0.25);
  background: linear-gradient(135deg, rgba(45, 90, 61, 0.08) 0%, rgba(45, 90, 61, 0.03) 100%);
  color: var(--cart-text);
}

.core-checkout-member-banner__inner > .bi {
  flex-shrink: 0;
  font-size: 1.35rem;
  color: var(--cart-primary);
  margin-top: 0.1rem;
}

.core-checkout-member-banner__inner--warn {
  border-color: rgba(180, 120, 20, 0.35);
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.12) 0%, rgba(255, 193, 7, 0.04) 100%);
}

.core-checkout-member-banner__inner--warn > .bi {
  color: #b8860b;
}

.core-checkout-member-banner__text {
  flex: 1 1 12rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--cart-text-light);
}

.core-checkout-member-banner__text strong {
  color: var(--cart-text);
  font-weight: 700;
  font-size: 0.9375rem;
}

.core-checkout-member-banner__btn {
  flex-shrink: 0;
  align-self: center;
  background: var(--cart-primary);
  border-color: var(--cart-primary);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.core-checkout-member-banner__btn:hover,
.core-checkout-member-banner__btn:focus {
  background: var(--cart-primary-dark);
  border-color: var(--cart-primary-dark);
  color: #fff;
}

@media (max-width: 575.98px) {
  .core-checkout-member-banner__btn {
    width: 100%;
    align-self: stretch;
  }
}

.core-address-card__title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--cart-text);
}

.core-address-card__title .bi {
  color: var(--cart-primary);
}

.core-address-card__select-btn {
  background: #fff;
  border: 1px solid var(--cart-border);
  color: var(--cart-text);
  font-weight: 600;
  white-space: nowrap;
}

.core-address-card__select-btn:hover,
.core-address-card__select-btn:focus {
  border-color: var(--cart-primary);
  color: var(--cart-primary-dark);
}

.core-address-card {
  background: #fff;
  border: 1px solid var(--cart-border);
  border-radius: 14px;
  box-shadow: var(--cart-shadow);
  padding: 1.15rem 1.25rem;
}

.core-buyer-card {
  background: #fff;
  border: 1px solid var(--cart-border);
  border-radius: 14px;
  box-shadow: var(--cart-shadow);
  padding: 0.25rem 0;
  overflow: hidden;
}

.core-buyer-card__row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--cart-border);
}

.core-buyer-card__row:last-child {
  border-bottom: none;
}

.core-buyer-card__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--cart-text-light);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.core-buyer-card__value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cart-primary-dark);
}

.core-buyer-card__input-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.core-buyer-card__input-wrap .form-control {
  flex: 1;
  min-width: 140px;
}

.core-buyer-card__save {
  background: var(--cart-primary);
  border-color: var(--cart-primary);
  color: #fff;
  font-weight: 600;
}

.core-buyer-card__save:hover {
  background: var(--cart-primary-dark);
  border-color: var(--cart-primary-dark);
  color: #fff;
}

.core-guest-form-card {
  background: #fff;
  border: 1px solid var(--cart-border);
  border-radius: 14px;
  box-shadow: var(--cart-shadow);
  padding: 1.25rem;
}

/* Misafir checkout — adres kartları */
.core-address-card--guest {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.core-address-card--guest.core-address-card--filled {
  border-color: rgba(45, 90, 61, 0.45);
  box-shadow: 0 4px 18px rgba(45, 90, 61, 0.08);
}

.core-address-card__head--guest {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.core-guest-address-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

.core-guest-address-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.core-guest-address-status__icon {
  font-size: 0.85rem;
  line-height: 1;
}

.core-guest-address-status__text {
  line-height: 1;
}

.core-guest-address-status[data-state="empty"] {
  color: #64748b;
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.core-guest-address-status[data-state="warn"] {
  color: #b45309;
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.35);
}

.core-guest-address-status[data-state="ready"] {
  color: #166534;
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.32);
}

.core-guest-address-status[data-state="mirrored"] {
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.3);
}

.core-guest-address-status[data-state="mirrored-empty"] {
  color: #475569;
  background: rgba(148, 163, 184, 0.18);
  border-color: rgba(148, 163, 184, 0.35);
  font-style: italic;
}

.core-guest-address-preview {
  min-height: 118px;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px dashed rgba(148, 163, 184, 0.45);
}

.core-address-card--guest.core-address-card--filled .core-guest-address-preview {
  background: linear-gradient(180deg, rgba(45, 90, 61, 0.06) 0%, rgba(45, 90, 61, 0.02) 100%);
  border-style: solid;
  border-color: rgba(45, 90, 61, 0.2);
}

.core-guest-address-preview .core-address-filled {
  min-height: 0;
  padding: 0;
}

.core-address-filled--mirrored {
  position: relative;
  padding-top: 0.15rem;
}

.core-guest-mirror-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.55rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cart-primary-dark);
  background: rgba(45, 90, 61, 0.12);
}

.core-address-empty-state--compact {
  min-height: 88px;
  padding: 0.35rem 0.15rem;
  text-align: center;
}

.core-address-empty-state--compact .core-address-empty-state__icon {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
  color: rgba(45, 90, 61, 0.55);
}

.core-address-empty-state--compact .core-address-empty-state__title {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.core-address-empty-state--compact .core-address-empty-state__text {
  font-size: 0.78rem;
  margin: 0;
  line-height: 1.4;
}

.core-guest-address-form-wrap {
  padding-top: 0.85rem;
  border-top: 1px solid var(--cart-border);
}

.core-guest-address-form-wrap--collapsible {
  animation: coreGuestFormReveal 0.25s ease;
}

@keyframes coreGuestFormReveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.core-guest-address-form__grid {
  row-gap: 0.65rem;
}

.core-guest-address-form .core-guest-select:disabled {
  background-color: #f1f5f9;
  cursor: not-allowed;
}

.core-guest-input,
.core-guest-select {
  border-radius: 8px;
  border-color: #cbd5e1;
  font-size: 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.core-guest-input:focus,
.core-guest-select:focus {
  border-color: var(--cart-primary);
  box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.12);
}

.core-field-required {
  color: #dc2626;
  font-weight: 700;
}

.core-checkout-same-address--card {
  margin-bottom: 0.85rem !important;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  background: rgba(45, 90, 61, 0.06);
  border: 1px solid rgba(45, 90, 61, 0.12);
}

.core-fatura-same-hint {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0 0 0.85rem;
  line-height: 1.45;
}

.core-fatura-manage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--cart-border);
}

.core-fatura-manage-actions[hidden] {
  display: none !important;
}

.core-fatura-manage-actions__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--cart-primary);
  border: 1px solid var(--cart-primary);
  color: #fff;
  font-weight: 600;
}

.core-fatura-manage-actions__btn:hover,
.core-fatura-manage-actions__btn:focus {
  background: var(--cart-primary-dark);
  border-color: var(--cart-primary-dark);
  color: #fff;
}

.core-fatura-manage-actions__btn--secondary {
  background: #fff;
  color: var(--cart-text);
  border-color: var(--cart-border);
}

.core-fatura-manage-actions__btn--secondary:hover,
.core-fatura-manage-actions__btn--secondary:focus {
  border-color: var(--cart-primary);
  color: var(--cart-primary-dark);
  background: #fff;
}

.core-guest-fatura-actions {
  margin-bottom: 0.85rem;
}

.core-guest-fatura-actions__hint {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0 0 0.55rem;
  line-height: 1.45;
}

.core-guest-fatura-actions__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #fff;
  border: 1px solid var(--cart-border);
  color: var(--cart-primary-dark);
  font-weight: 600;
}

.core-guest-fatura-actions__btn:hover,
.core-guest-fatura-actions__btn:focus {
  border-color: var(--cart-primary);
  color: var(--cart-primary-dark);
  background: rgba(45, 90, 61, 0.05);
}

.core-guest-fatura-actions--custom .core-guest-fatura-actions__btn {
  display: none;
}

.core-guest-buyer-card {
  background: #fff;
  border: 1px solid var(--cart-border);
  border-radius: 14px;
  box-shadow: var(--cart-shadow);
  padding: 1.15rem 1.25rem 1.25rem;
}

.core-guest-buyer-grid {
  row-gap: 0.85rem;
}

@media (max-width: 991px) {
  .core-checkout-info__section--guest-buyer {
    order: -1;
  }
}

@media (max-width: 575.98px) {
  .core-address-card__head--guest {
    flex-direction: column;
    align-items: flex-start;
  }

  .core-guest-address-head-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

.core-field-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--cart-text-light);
  margin-bottom: 0.35rem;
}

.core-checkout-same-address {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cart-text);
  cursor: pointer;
  margin: 0;
}

.core-checkout-same-address input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--cart-primary);
}

@media (max-width: 991px) {
  .core-checkout-info__section--buyer {
    order: -1;
  }
}

@media (max-width: 576px) {
  .core-buyer-card__row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

/* Checkout — adres kartları */
.core-checkout-address-row {
  align-items: stretch;
}

.core-checkout-address-col {
  display: flex;
  flex-direction: column;
}

.core-address-card {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 240px;
  height: 100%;
}

.core-address-card__head {
  flex-shrink: 0;
  align-items: flex-start;
  gap: 0.5rem;
}

.core-address-card__head .font-weight-bold {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.core-address-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.core-address-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.core-address-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 1rem 0.75rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  min-height: 140px;
}

.core-address-card--filled .core-address-empty-state {
  display: none;
}

.core-address-empty-state__icon {
  font-size: 1.75rem;
  color: var(--cart-primary, #45B8AC);
  margin-bottom: 0.5rem;
}

.core-address-empty-state__title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #334155;
  margin: 0 0 0.35rem;
}

.core-address-empty-state__text {
  font-size: 0.82rem;
  line-height: 1.5;
  color: #64748b;
  margin: 0;
}

.core-address-filled {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 140px;
  padding: 0.75rem 0.5rem;
}

.core-address-filled__line {
  font-size: 0.9rem;
  color: #1e293b;
  line-height: 1.45;
}

.core-address-filled__meta {
  font-size: 0.82rem;
}

/* Checkout — adres seçimi (eski shopping-cart.css) */
.tab-pane {
  min-height: 450px;
}

.adress {
  outline: 0;
  border-width: 0 0 2px;
}

.adress_name {
  outline: 0;
  border-width: 0 0 2px;
  border-bottom-color: coral;
}

.adress-item {
  cursor: pointer;
}

/* ============= ORDER SUMMARY (tab-summary) ================ */

.core-summary__header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--cart-border);
}

.core-summary__title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cart-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.core-summary__title .bi {
  color: var(--cart-primary);
}

.core-summary__subtitle {
  margin: 0;
  color: var(--cart-text-light);
  font-size: 0.9375rem;
}

.core-summary__layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
  align-items: start;
}

.core-summary__main {
  min-width: 0;
}

.core-summary-seller {
  margin-bottom: 1.25rem;
}

.core-summary-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.core-summary-item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid var(--cart-border);
  border-radius: 12px;
  transition: box-shadow 0.2s ease;
}

.core-summary-item:hover {
  box-shadow: var(--cart-shadow);
}

.core-summary-item__image {
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--cart-bg);
}

.core-summary-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.core-summary-item__title {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.core-summary-item__title a {
  color: var(--cart-text);
  text-decoration: none;
}

.core-summary-item__title a:hover {
  color: var(--cart-primary);
}

.core-summary-item__meta {
  margin-bottom: 0.35rem;
}

.core-summary-item__calc {
  font-size: 0.875rem;
  color: var(--cart-text-light);
}

.core-summary-item__total {
  text-align: right;
  min-width: 120px;
}

.core-summary-item__price {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cart-text);
  line-height: 1.2;
}

.core-summary-grand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.35rem 0.5rem;
  margin-top: 1.25rem;
  padding: 1.15rem 1.25rem;
  background: linear-gradient(135deg, rgba(69, 184, 172, 0.15) 0%, rgba(69, 184, 172, 0.06) 100%);
  border-radius: 12px;
  border: 2px solid rgba(69, 184, 172, 0.35);
}

.core-summary-grand__label {
  font-weight: 600;
  color: var(--cart-text-light);
  margin-right: auto;
}

.core-summary-grand__amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cart-text);
}

.core-summary-grand__currency {
  font-weight: 600;
  color: var(--cart-text-light);
}

.core-summary__sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 1rem;
}

.core-summary-address-card {
  background: var(--cart-bg);
  border: 1px solid var(--cart-border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}

.core-summary-address-card__title {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--cart-text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.core-summary-address-card__title .bi {
  color: var(--cart-primary);
}

.core-summary-address-card__body {
  font-size: 0.875rem;
  color: var(--cart-text-light);
  line-height: 1.5;
}

.core-summary-address-line {
  margin: 0;
}

.core-summary .row.px-4.mb-2 {
  margin: 1rem 0 0;
  padding: 0 !important;
}

.core-payment-error {
  margin: 0;
  border-radius: 10px;
}

#quick-buy-iyzico .core-payment-error,
#iyizo-payment-content .core-payment-error {
  margin-top: 0.5rem;
}

.core-payment-redirect-panel {
  margin: 1.5rem auto 0;
  max-width: 520px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  background: var(--core-surface, #fff);
  border: 1px solid var(--core-border, #e8ecef);
  border-radius: 14px;
}

.core-payment-redirect-panel__icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(69, 184, 172, 0.12);
  color: var(--core-primary, #45b8ac);
  font-size: 1.35rem;
}

.core-payment-redirect-panel__title {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.core-payment-redirect-panel__lead {
  margin: 0 0 0.75rem;
  color: var(--core-muted, #6c757d);
  line-height: 1.55;
}

.core-payment-redirect-panel__hint {
  font-size: 0.9rem;
  color: var(--core-muted, #6c757d);
}

.core-payment-redirect-overlay {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.55);
}

.core-payment-redirect-overlay[hidden] {
  display: none !important;
}

.core-payment-redirect-overlay__dialog {
  width: min(100%, 420px);
  padding: 1.75rem 1.5rem;
  border-radius: 14px;
  background: #fff;
  text-align: center;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
}

.core-payment-redirect-overlay__spinner {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 1rem;
  border: 3px solid rgba(69, 184, 172, 0.2);
  border-top-color: var(--core-primary, #45b8ac);
  border-radius: 50%;
  animation: corePaymentRedirectSpin 0.8s linear infinite;
}

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

.core-payment-redirect-overlay__title {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.core-payment-redirect-overlay__text {
  margin: 0;
  color: #6c757d;
  line-height: 1.5;
  font-size: 0.95rem;
}

@media (max-width: 991px) {
  .core-summary__layout {
    grid-template-columns: 1fr;
  }

  .core-summary__sidebar {
    position: static;
  }

  .core-summary-item {
    grid-template-columns: 72px 1fr;
    grid-template-areas:
      "image body"
      "total total";
  }

  .core-summary-item__image {
    grid-area: image;
    width: 72px;
    height: 72px;
  }

  .core-summary-item__body {
    grid-area: body;
  }

  .core-summary-item__total {
    grid-area: total;
    text-align: left;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--cart-border);
  }
}

#checkout-legal-block.core-legal-consent-highlight {
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.35);
  border-radius: 12px;
  transition: box-shadow 0.25s ease;
}

/* Eksik alan uyarısı: alert() yerine ilgili kart işaretlenir. */
.core-cart-card-error {
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.35);
  border-radius: 12px;
  transition: box-shadow 0.25s ease;
}

.core-cart-field-error {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

/* ============= BUNDLE SET GROUP (Faz 8B) ================ */

.core-cart-bundle-group {
  margin-bottom: 1.75rem;
  border: 1px solid rgba(136, 176, 75, 0.35);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(136, 176, 75, 0.06) 0%, #fff 48%);
  overflow: hidden;
}

.core-cart-bundle-header {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1.1rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--cart-border);
}

.core-cart-bundle-header__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: rgba(136, 176, 75, 0.15);
  color: #5a7a2e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.core-cart-bundle-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.core-cart-bundle-title a {
  color: inherit;
  text-decoration: none;
}

.core-cart-bundle-title a:hover {
  color: var(--cart-primary);
}

.core-cart-bundle-badge {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}

.core-cart-bundle-badge--warn {
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
}

.core-cart-bundle-savings {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.core-cart-bundle-savings--pending {
  color: var(--cart-text-lighter);
  font-style: italic;
}

.core-cart-bundle-savings__pill {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(136, 176, 75, 0.18);
  color: #3d5620;
  font-weight: 700;
}

.core-cart-bundle-savings__meta {
  color: var(--cart-text-lighter);
}

.core-cart-bundle-items {
  padding: 0.85rem 1rem 0.5rem;
}

.core-cart-bundle-seller-label {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  color: var(--cart-text-lighter);
}

.core-cart-bundle-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  padding: 0.85rem 1.25rem 1rem;
  border-top: 1px solid var(--cart-border);
  background: rgba(0, 0, 0, 0.02);
}

.core-cart-bundle-footer__label {
  font-size: 0.85rem;
  color: var(--cart-text-lighter);
}

.core-cart-bundle-footer__amount {
  font-size: 1.15rem;
  font-weight: 700;
}

.core-cart-bundle-footer__cargo {
  width: 100%;
  font-size: 0.8rem;
  color: var(--cart-text-lighter);
}

.core-cart-seller-block--cargo {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.core-summary-bundle-group {
  margin-bottom: 1.25rem;
  border: 1px solid rgba(136, 176, 75, 0.3);
  border-radius: 12px;
  background: rgba(136, 176, 75, 0.04);
  overflow: hidden;
}

.core-summary-bundle-header {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--cart-border);
}

.core-summary-bundle-footer {
  padding: 0.65rem 1rem;
  border-top: 1px solid var(--cart-border);
  font-size: 0.9rem;
}
