/* Order Tracking Page Styles */
.order-tracking-page {
  min-height: calc(100vh - 80px);
  background: #F8FAFC;
  padding: 60px 0 100px;
}

.order-tracking-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
}

.order-tracking-header {
  text-align: center;
  margin-bottom: 36px;
}

.order-tracking-title {
  font-size: 34px;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.order-tracking-subtitle {
  font-size: 15.5px;
  color: #64748B;
  margin: 0;
  line-height: 1.5;
}

/* Search Card */
.order-search-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  margin-bottom: 30px;
}

.order-search-form {
  display: flex;
  gap: 12px;
  align-items: center;
}

.order-input-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.order-input-icon {
  position: absolute;
  left: 16px;
  width: 19px;
  height: 19px;
  color: #94A3B8;
  pointer-events: none;
}

.order-number-input {
  width: 100%;
  height: 50px;
  padding: 0 44px 0 46px;
  font-size: 15px;
  color: #0F172A;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 9px;
  transition: all 0.2s ease;
  outline: none;
  font-family: inherit;
}

.order-number-input:focus {
  border-color: #DF0513;
  box-shadow: 0 0 0 3px rgba(223, 5, 19, 0.12);
}

.order-input-clear {
  position: absolute;
  right: 12px;
  width: 28px;
  height: 28px;
  background: #F1F5F9;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748B;
  transition: all 0.15s ease;
}

.order-input-clear svg {
  width: 14px;
  height: 14px;
}

.order-input-clear:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.order-search-btn {
  height: 50px;
  padding: 0 28px;
  background: #DF0513;
  background: linear-gradient(135deg, #DF0513 0%, #B70410 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(223, 5, 19, 0.25);
  font-family: inherit;
}

.order-search-btn svg {
  width: 18px;
  height: 18px;
}

.order-search-btn:hover {
  background: linear-gradient(135deg, #B70410 0%, #8E030C 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(223, 5, 19, 0.35);
}

.order-search-btn:active {
  transform: translateY(0);
}

/* Loader */
.order-tracking-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
  color: #64748B;
  font-size: 15px;
}

.tracking-spinner {
  width: 36px;
  height: 36px;
  border: 3.5px solid #E2E8F0;
  border-top-color: #DF0513;
  border-radius: 50%;
  animation: trackingSpin 0.75s linear infinite;
  margin-bottom: 14px;
}

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

/* Error Card */
.order-tracking-error-card {
  background: #FFFFFF;
  border: 1px solid #FEE2E2;
  border-radius: 14px;
  padding: 36px 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.06);
  margin-bottom: 30px;
  animation: fadeIn 0.3s ease;
}

.tracking-error-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #FEF2F2;
  color: #DC2626;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.tracking-error-icon svg {
  width: 26px;
  height: 26px;
}

.tracking-error-title {
  font-size: 18px;
  font-weight: 700;
  color: #1E293B;
  margin: 0 0 8px;
}

.tracking-error-text {
  font-size: 14.5px;
  color: #64748B;
  max-width: 480px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

.tracking-contact-help-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0F172A;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tracking-contact-help-btn:hover {
  background: #1E293B;
  transform: translateY(-1px);
}

/* Result Card */
.order-tracking-result-section {
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.order-detail-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 32px 34px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
}

/* Detail Header */
.order-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid #F1F5F9;
  gap: 20px;
}

.order-number-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.order-number-val {
  font-size: 28px;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.order-date-val {
  display: block;
  font-size: 13.5px;
  color: #64748B;
}

/* Status Badge */
.order-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.status-badge-icon {
  width: 17px;
  height: 17px;
}

.status-tamamlandi {
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #BBF7D0;
}

.status-hazirlaniyor {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
}

.status-kargoda {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

.status-iptal {
  background: #FEE2E2;
  color: #B91C1C;
  border: 1px solid #FECACA;
}

/* Stepper */
.order-stepper-wrap {
  padding: 24px 0 20px;
  border-bottom: 1px solid #F1F5F9;
}

.order-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  max-width: 620px;
  margin: 0 auto;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
  gap: 8px;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F1F5F9;
  color: #94A3B8;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #E2E8F0;
  transition: all 0.3s ease;
}

.step-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #94A3B8;
  white-space: nowrap;
}

.step-item.completed .step-circle {
  background: #10B981;
  color: #FFFFFF;
  border-color: #10B981;
}

.step-item.completed .step-label {
  color: #0F172A;
  font-weight: 700;
}

.step-item.active .step-circle {
  background: #DF0513;
  color: #FFFFFF;
  border-color: #DF0513;
  box-shadow: 0 0 0 4px rgba(223, 5, 19, 0.15);
}

.step-item.active .step-label {
  color: #DF0513;
  font-weight: 700;
}

.step-line {
  flex: 1;
  height: 3px;
  background: #E2E8F0;
  margin: -24px 8px 0;
  position: relative;
  z-index: 1;
}

.step-line.active {
  background: #10B981;
}

/* Sections */
.order-section-heading {
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
  margin: 24px 0 14px;
}

/* Customer Grid */
.customer-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.customer-info-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.customer-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.customer-icon-wrap svg {
  width: 18px;
  height: 18px;
}

.customer-info-text {
  flex: 1;
}

.customer-field-title {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}

.customer-field-desc {
  font-size: 14px;
  color: #1E293B;
  font-weight: 600;
  margin: 0;
  line-height: 1.45;
  word-break: break-word;
}

/* Items List */
.order-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #F8FAFC;
  border: 1px solid #F1F5F9;
  border-radius: 10px;
  gap: 16px;
}

.order-item-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.order-item-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #E2E8F0;
}

.order-item-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 3px;
}

.order-item-qty {
  font-size: 13px;
  color: #64748B;
  margin: 0;
}

.order-item-price {
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
  white-space: nowrap;
}

/* Summary Footer */
.order-summary-footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #F1F5F9;
}

.summary-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
}

.meta-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748B;
}

.meta-icon {
  width: 18px;
  height: 18px;
  color: #94A3B8;
}

.meta-val {
  font-weight: 600;
  color: #1E293B;
}

.summary-total-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 0;
  margin-top: 8px;
  border-top: 1px dashed #E2E8F0;
}

.total-label {
  font-size: 17px;
  font-weight: 700;
  color: #0F172A;
}

.total-val {
  font-size: 22px;
  font-weight: 800;
  color: #DF0513;
}


/* Responsive */
@media (max-width: 640px) {
  .order-tracking-page {
    padding: 36px 0 60px;
  }
  .order-tracking-title {
    font-size: 26px;
  }
  .order-search-card {
    padding: 16px;
  }
  .order-search-form {
    flex-direction: column;
  }
  .order-search-btn {
    width: 100%;
    justify-content: center;
  }
  .order-detail-card {
    padding: 20px 18px;
  }
  .order-detail-header {
    flex-direction: column;
    gap: 12px;
  }
  .customer-info-grid {
    grid-template-columns: 1fr;
  }
  .order-stepper-wrap {
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .order-stepper {
    min-width: 440px;
    padding: 10px 0;
  }
  .step-label {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .order-detail-card {
    padding: 16px 14px;
    border-radius: 12px;
  }

  .order-number-val {
    font-size: 22px;
  }

  .order-item-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .item-price-val {
    text-align: left;
  }
}
