/* Tema 3 — Sepet popup (light checkout, purchase-modal style) */
.t3-cart-modal {
  --cart-bg: #e6e9ed;
  --cart-surface: #dde1e6;
  --cart-card: #eceff3;
  --cart-input: #e9ecf0;
  --cart-border: #cfd6de;
  --cart-muted: #64748b;
  --cart-text: #0f172a;
  --cart-accent: #059669;
  --cart-accent-dim: #ecfdf5;
  --cart-step-accent: #e1306c;
  --cart-danger: #dc2626;
  --cart-radius: 12px;
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}
.t3-cart-modal[hidden] { display: none !important; }
.t3-cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
}
.t3-cart-dialog {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: min(88vh, 680px);
  display: flex;
  flex-direction: column;
}
.t3-cart-close {
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: 5;
  width: 32px;
  height: 32px;
  border: 1px solid var(--cart-border);
  border-radius: 50%;
  background: var(--cart-card);
  color: #475569;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.t3-cart-close:hover {
  background: var(--cart-bg);
  color: #0f172a;
  transform: scale(1.05);
}
.t3-cart-close svg { width: 14px; height: 14px; }

.t3-cart-shell {
  width: 100%;
  max-height: min(88vh, 680px);
  display: flex;
  flex-direction: column;
  background: var(--cart-bg);
  border: 1px solid var(--cart-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.35) inset;
}

/* Steps */
.t3-cart-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--cart-border);
  background: var(--cart-surface);
  flex-shrink: 0;
}
.t3-cart-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.65rem 0.25rem 0.5rem;
  position: relative;
  color: var(--cart-muted);
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  width: 100%;
}
.t3-cart-step.is-active {
  cursor: default;
}
.t3-cart-step.is-navigable:hover {
  color: var(--cart-text);
}
.t3-cart-step.is-navigable:hover .t3-cart-step-ico {
  border-color: color-mix(in srgb, var(--cart-step-accent) 35%, #fff);
  color: var(--cart-step-accent);
}
.t3-cart-step.is-active:hover .t3-cart-step-ico {
  border-color: color-mix(in srgb, var(--cart-step-accent) 40%, #fff);
}
.t3-cart-step::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
  transition: background 0.2s;
}
.t3-cart-step.is-active { color: var(--cart-text); }
.t3-cart-step.is-active::after { background: var(--cart-step-accent); }
.t3-cart-step.is-done { color: #94a3b8; }
.t3-cart-step-ico {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cart-card);
  border: 1px solid var(--cart-border);
  display: grid;
  place-items: center;
  color: var(--cart-muted);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.t3-cart-step-ico svg { width: 15px; height: 15px; }
.t3-cart-step-ico i {
  font-size: 0.95rem !important;
  line-height: 1;
}
.t3-cart-step.is-active .t3-cart-step-ico {
  background: color-mix(in srgb, var(--cart-step-accent) 10%, #fff);
  border-color: color-mix(in srgb, var(--cart-step-accent) 35%, #fff);
  color: var(--cart-step-accent);
}
.t3-cart-step-label {
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
  line-height: 1.15;
}

/* Panel */
.t3-cart-stage {
  padding: 0.85rem 1rem 0.25rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.t3-cart-stage[hidden] { display: none !important; }
.t3-cart-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 0.65rem;
}
.t3-cart-panel-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--cart-text);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.t3-cart-count-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: var(--cart-accent-dim);
  color: var(--cart-accent);
  border: 1px solid #bbf7d0;
  font-size: 0.64rem;
  font-weight: 700;
}
.t3-cart-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 0;
  background: transparent;
  color: var(--cart-danger);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.2rem 0.35rem;
  border-radius: 6px;
  transition: background 0.15s;
  white-space: nowrap;
}
.t3-cart-clear-btn:hover { background: #fef2f2; }
.t3-cart-clear-btn svg { flex-shrink: 0; width: 13px; height: 13px; }

/* Items */
.t3-cart-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 0.65rem;
}
.t3-cart-empty {
  background: var(--cart-card);
  border: 1px solid var(--cart-border);
  border-radius: var(--cart-radius);
  padding: 32px 16px;
  text-align: center;
  color: var(--cart-muted);
}
.t3-cart-empty h2 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: var(--cart-text);
}
.t3-cart-empty a {
  display: inline-block;
  margin-top: 12px;
  background: linear-gradient(135deg, #1a8f62 0%, #22c55e 50%, #1db88a 100%);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
}

.t3-cart-item {
  background: var(--cart-card);
  border: 1px solid var(--cart-border);
  border-radius: var(--cart-radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.t3-cart-item-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}
.t3-cart-item-platform-ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--p, #e1306c);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}
.t3-cart-item-platform-ico.t3-cart-item-platform-logo {
  background: transparent;
  box-shadow: none;
  display: block;
}
.t3-cart-item-platform-logo svg {
  width: 40px;
  height: 40px;
  display: block;
  border-radius: 10px;
}
.t3-cart-item-platform-ico i {
  font-size: 1.2rem !important;
  line-height: 1;
  font-family: eg, sans-serif !important;
  font-style: normal;
  font-weight: 400;
  color: #fff !important;
}
.t3-cart-item-info { flex: 1; min-width: 0; }
.t3-cart-item-service {
  margin: 0;
  font-size: 0.72rem;
  color: var(--cart-muted);
  line-height: 1.25;
}
.t3-cart-item-qty {
  margin: 2px 0 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--cart-text);
  line-height: 1.2;
}
.t3-cart-item-pricing {
  text-align: right;
  flex-shrink: 0;
}
.t3-cart-item-old {
  display: block;
  font-size: 0.68rem;
  color: #6b7280;
  text-decoration: line-through;
}
.t3-cart-item-price {
  display: block;
  margin-top: 1px;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--cart-accent);
  white-space: nowrap;
}
.t3-cart-item-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--cart-border);
  background: var(--cart-card);
}
.t3-cart-item-target {
  flex: 1;
  min-width: 0;
}
.t3-cart-item-target-main {
  display: flex;
  align-items: center;
  gap: 8px;
}
.t3-cart-item-target-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cart-muted);
  flex-shrink: 0;
}
.t3-cart-item-target-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.t3-cart-item-target-meta {
  min-width: 0;
}
.t3-cart-item-target-name {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--cart-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.t3-cart-item-target-user {
  display: block;
  margin-top: 1px;
  font-size: 0.72rem;
  color: var(--cart-muted);
  word-break: break-all;
}
.t3-cart-item-target-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 6px;
  padding-left: 42px;
}
.t3-cart-item-target-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  font-size: 0.64rem;
  color: var(--cart-muted);
}
.t3-cart-item-target-stats strong {
  color: var(--cart-text);
  font-weight: 700;
  font-size: 0.7rem;
}
.t3-cart-item-target-stats small {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #94a3b8;
}
.t3-cart-item-target-stats.is-loading {
  padding-left: 42px;
  font-size: 0.68rem;
  color: #94a3b8;
  font-style: italic;
}
.t3-cart-item-user {
  font-size: 0.78rem;
  color: var(--cart-muted);
  word-break: break-all;
}
.t3-cart-item-remove {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 92, 108, 0.35);
  border-radius: 8px;
  background: #fff5f6;
  color: var(--cart-danger);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}
.t3-cart-item-remove:hover {
  background: rgba(255, 92, 108, 0.16);
  border-color: rgba(255, 92, 108, 0.45);
}
.t3-cart-item-remove svg { width: 13px; height: 13px; }

/* User / payment stages */
.t3-cart-user-card,
.t3-cart-pay-card {
  background: var(--cart-card);
  border: 1px solid var(--cart-border);
  border-radius: var(--cart-radius);
  padding: 0.85rem;
}
.t3-cart-user-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 0.55rem;
}
.t3-cart-user-field-full { grid-column: 1 / -1; }
.t3-cart-user-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cart-muted);
  margin-bottom: 0.35rem;
}
.t3-cart-user-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--cart-border);
  border-radius: 10px;
  background: var(--cart-input);
  color: var(--cart-text);
  padding: 9px 11px;
  font-size: 0.84rem;
  outline: none;
}
.t3-cart-user-input:focus {
  border-color: #86efac;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}
.t3-cart-user-input.is-invalid { border-color: #fca5a5; }

.t3-cart-corp-toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.75rem;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cart-text);
  user-select: none;
}
.t3-cart-corp-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.t3-cart-corp-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid var(--cart-border);
  background: var(--cart-input);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  transition: border-color 0.15s, background 0.15s;
}
.t3-cart-corp-box::after {
  content: "";
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0);
  transition: transform 0.15s;
  margin-top: -2px;
}
.t3-cart-corp-toggle input:checked + .t3-cart-corp-box {
  background: var(--cart-accent);
  border-color: var(--cart-accent);
}
.t3-cart-corp-toggle input:checked + .t3-cart-corp-box::after {
  transform: rotate(-45deg) scale(1);
}
.t3-cart-corp-toggle input:focus-visible + .t3-cart-corp-box {
  outline: 2px solid rgba(5, 150, 105, 0.35);
  outline-offset: 2px;
}
.t3-cart-corp-fields {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--cart-border);
}
.t3-cart-corp-fields[hidden] { display: none !important; }
.t3-cart-corp-hint {
  margin: 0.55rem 0 0;
  font-size: 0.72rem;
  color: var(--cart-muted);
  line-height: 1.4;
}

.t3-cart-user-hint,
.t3-cart-pay-info {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: var(--cart-muted);
  line-height: 1.45;
}

.t3-pay-methods {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-bottom: 0.65rem;
}
.t3-pay-method {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--cart-border);
  border-radius: 10px;
  padding: 9px 11px;
  background: var(--cart-card);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
  color: var(--cart-text);
}
.t3-pay-method:hover { border-color: #cbd5e1; background: var(--cart-bg); }
.t3-pay-method.t3-pay-active {
  border-color: #86efac;
  background: #ecfdf5;
}
.t3-pay-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.t3-pay-icon svg { width: 18px; height: 18px; }
.t3-pay-havale { background: rgba(59, 108, 255, 0.15); color: #6b9fff; }
.t3-pay-kart { background: rgba(255, 122, 58, 0.15); color: #ff9a62; }
.t3-pay-papara { background: rgba(124, 58, 237, 0.15); color: #a78bfa; }
.t3-pay-kripto { background: rgba(217, 119, 6, 0.15); color: #fbbf24; }
.t3-pay-mobil { background: rgba(14, 165, 233, 0.15); color: #67d4ff; }
.t3-pay-body { flex: 1; min-width: 0; }
.t3-pay-body strong { display: block; font-size: 0.8rem; font-weight: 700; }
.t3-pay-body small {
  display: block;
  font-size: 0.66rem;
  color: var(--cart-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.t3-pay-body em {
  display: block;
  font-size: 0.66rem;
  color: var(--cart-muted);
  font-style: normal;
  margin-top: 1px;
}
.t3-pay-body em.t3-pay-free { color: var(--cart-accent); }
.t3-pay-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cart-accent);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.t3-pay-check svg { width: 10px; height: 10px; }
.t3-pay-method.t3-pay-active .t3-pay-check { display: flex; }

.t3-cart-msg { margin-top: 6px; font-size: 0.74rem; }
.t3-cart-msg-error { color: #dc2626; }
.t3-cart-msg-ok { color: var(--cart-accent); }

/* Coupon panel */
.t3-cart-coupon-panel,
.t3-cart-detail-panel {
  margin: 0 0.85rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  background: var(--cart-surface);
  border: 1px solid var(--cart-border);
}
.t3-cart-coupon-panel[hidden],
.t3-cart-detail-panel[hidden] { display: none !important; }
.t3-cart-coupon-hint {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  color: var(--cart-muted);
}
.t3-cart-detail-coupon {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 0;
  background: var(--cart-input);
  border: 1px solid var(--cart-border);
  border-radius: 8px;
  padding: 6px 8px;
}
.t3-cart-detail-coupon svg { color: var(--cart-muted); flex-shrink: 0; width: 13px; height: 13px; }
.t3-cart-detail-coupon input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--cart-text);
  font-size: 0.8rem;
  min-width: 0;
}
.t3-cart-detail-coupon button {
  border: none;
  background: none;
  color: var(--cart-accent);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}

/* Footer */
.t3-cart-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--cart-border);
  background: var(--cart-surface);
  flex-shrink: 0;
}
.t3-cart-footer-total {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}
.t3-cart-footer-total-ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--cart-accent-dim);
  border: 1px solid #bbf7d0;
  display: grid;
  place-items: center;
  color: var(--cart-accent);
  flex-shrink: 0;
}
.t3-cart-footer-total-ico svg { width: 17px; height: 17px; }
.t3-cart-footer-total-text small {
  display: block;
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--cart-muted);
}
.t3-cart-footer-total-text strong {
  display: block;
  margin-top: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--cart-accent);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.t3-cart-coupon-toggle,
.t3-cart-detail-toggle {
  border: 1px solid var(--cart-border);
  border-radius: 999px;
  background: var(--cart-card);
  color: #475569;
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.55rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  flex-shrink: 0;
  white-space: nowrap;
  text-align: left;
  line-height: 1.15;
}
.t3-cart-coupon-toggle:hover,
.t3-cart-detail-toggle:hover {
  border-color: #cbd5e1;
  color: var(--cart-text);
  background: var(--cart-bg);
}
.t3-cart-coupon-toggle.is-open,
.t3-cart-detail-toggle.is-open {
  border-color: #86efac;
  color: var(--cart-accent);
  background: #ecfdf5;
}
.t3-cart-coupon-toggle svg,
.t3-cart-detail-toggle svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  color: var(--cart-accent);
}
.t3-cart-continue {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #1a8f62 0%, #22c55e 50%, #1db88a 100%);
  color: #fff;
  padding: 0.65rem 1rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(34, 197, 94, 0.35);
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s, filter 0.15s;
  flex-shrink: 0;
  white-space: nowrap;
}
.t3-cart-continue:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 12px 36px rgba(34, 197, 94, 0.45);
}
.t3-cart-continue:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}
.t3-cart-continue-ico {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
}
.t3-cart-continue-ico svg { width: 14px; height: 14px; }
.t3-cart-continue-arrow { opacity: 0.85; }
.t3-cart-continue-arrow svg { width: 15px; height: 15px; }

@media (max-width: 768px) {
  .t3-cart-modal { padding: 0.5rem; align-items: flex-end; }
  .t3-cart-dialog { max-width: 100%; max-height: 92vh; }
  .t3-cart-shell { max-height: 92vh; border-radius: 14px 14px 0 0; }
  .t3-cart-close { top: 6px; right: 6px; }
  .t3-cart-footer { flex-wrap: wrap; }
  .t3-cart-footer-total { flex: 1 1 100%; }
  .t3-cart-coupon-toggle,
  .t3-cart-detail-toggle { order: 3; }
  .t3-cart-continue {
    flex: 1 1 auto;
    justify-content: center;
  }
  .t3-cart-item-top { flex-wrap: nowrap; }
  .t3-cart-item-pricing { width: auto; text-align: right; padding-left: 0; }
  .t3-cart-user-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .t3-cart-stage { padding: 0.75rem 0.85rem 0.2rem; }
  .t3-cart-footer { padding: 0.65rem 0.75rem; }
  .t3-cart-coupon-panel,
  .t3-cart-detail-panel { margin: 0 0.75rem; }
  .t3-cart-step-label { font-size: 0.5rem; }
}
