/* ============================================================
   ORDER TRACKING PAGE - SİPARİŞ TAKİP SAYFASI
   Original Tema
============================================================ */

/* ========================================
   PAGE HEADER
======================================== */

.tracking-page-header {
	background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
	padding: var(--spacing-2xl) 0;
	color: white;
	text-align: center;
	margin-bottom: var(--spacing-2xl);
}

.order-action-secondary {
	background: #f3f4f6;
	color: #374151;
	font-weight: 600;
}

.order-action-secondary:hover {
	background: #e5e7eb;
	color: #1f2937;
}

/* ========================================
   PAYMENT CONTINUE (odeme-devam.php)
======================================== */
.odeme-fallback-wrap {
	max-width: 600px;
	margin: 2rem auto;
	text-align: center;
}

.odeme-fallback-card {
	background: #fff;
	border-radius: 16px;
	border: 1px solid var(--gray-200);
	padding: 2.5rem;
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.odeme-fallback-icon-wrap {
	font-size: 3rem;
	margin-bottom: 1rem;
}

.odeme-fallback-icon.is-muted {
	color: var(--gray-400);
}

.odeme-fallback-icon.is-warning {
	color: #f59e0b;
}

.odeme-fallback-icon.is-danger {
	color: #ef4444;
}

.odeme-fallback-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--gray-900);
	margin: 0 0 0.75rem;
}

.odeme-fallback-text {
	color: var(--gray-500);
	font-size: 0.9375rem;
	line-height: 1.6;
	margin: 0 0 1.5rem;
}

.odeme-fallback-whatsapp-inline {
	display: inline-flex;
}

.odeme-fallback-back-wrap {
	margin-top: 1rem;
}

.odeme-fallback-back-link {
	color: var(--primary);
	font-weight: 600;
	text-decoration: none;
	font-size: 0.875rem;
}

.odeme-paytr-wrap {
	width: 100%;
	margin: 0 auto;
	display: table;
}

.odeme-paytr-iframe {
	width: 100%;
}

.tracking-page-title {
	font-size: 2rem;
	font-weight: 800;
	margin: 0 0 0.5rem 0;
}

.tracking-page-subtitle {
	font-size: 1rem;
	opacity: 0.9;
	margin: 0;
}

/* ========================================
   SEARCH FORM
======================================== */

.tracking-search-section {
	max-width: 600px;
	margin: 0 auto var(--spacing-2xl);
}

.tracking-search-card {
	background: white;
	border-radius: var(--radius-xl);
	border: 1px solid var(--gray-200);
	padding: var(--spacing-xl);
	box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.tracking-search-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--gray-900);
	margin: 0 0 var(--spacing-md) 0;
	text-align: center;
}

.tracking-input-wrap {
	display: flex;
	gap: 0.75rem;
}

.tracking-input {
	flex: 1;
	padding: 1rem 1.25rem;
	background: var(--gray-50);
	border: 2px solid var(--gray-200);
	border-radius: var(--radius-lg);
	font-size: 1rem;
	transition: all 0.3s ease;
	outline: none;
}

.tracking-input:focus {
	background: white;
	border-color: var(--primary);
	box-shadow: 0 0 0 4px var(--primary-light);
}

.tracking-btn {
	padding: 1rem 2rem;
	background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
	color: white;
	border: none;
	border-radius: var(--radius-lg);
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.tracking-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

.tracking-help {
	text-align: center;
	margin-top: var(--spacing-md);
	font-size: 0.875rem;
	color: var(--gray-500);
}

.tracking-help a {
	color: var(--primary);
	font-weight: 600;
	text-decoration: none;
}

.tracking-not-found-alert {
	background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
	border-left: 4px solid #dc2626;
	padding: 1rem 1.25rem;
	border-radius: 0.75rem;
	margin-bottom: 1.5rem;
}

.tracking-not-found-inner {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.tracking-not-found-icon {
	color: #dc2626;
	font-size: 1.5rem;
	margin-top: 0.125rem;
}

.tracking-not-found-title {
	margin: 0 0 0.5rem;
	color: #991b1b;
	font-size: 1rem;
	font-weight: 700;
}

.tracking-not-found-text {
	margin: 0 0 0.5rem;
	color: #7f1d1d;
	font-size: 0.9375rem;
	line-height: 1.5;
}

.tracking-not-found-list {
	margin: 0.5rem 0 0 1.25rem;
	color: #7f1d1d;
	font-size: 0.875rem;
	line-height: 1.6;
}

.tracking-not-found-link {
	color: #dc2626;
	font-weight: 600;
	text-decoration: underline;
}

/* ========================================
   ORDER RESULT
======================================== */

.order-result-section {
	max-width: 980px;
	margin: 0 auto;
}

.order-header-card {
	background: white;
	border-radius: var(--radius-xl);
	border: 1px solid var(--gray-200);
	padding: var(--spacing-xl);
	margin-bottom: var(--spacing-lg);
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.order-header-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.order-code {
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--gray-900);
}

.order-code span {
	color: var(--primary);
}

/* ========================================
   ORDER ITEMS
======================================== */

.order-items-card {
	background: white;
	border-radius: var(--radius-xl);
	border: 1px solid var(--gray-200);
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.order-items-title {
	padding: var(--spacing-lg);
	border-bottom: 1px solid var(--gray-100);
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--gray-900);
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.order-items-title i {
	color: var(--primary);
}

.order-extra-icon {
	color: #d97706;
	font-size: 0.7rem;
}

.order-extra-variant {
	color: #6b7280;
}

.order-free-badge {
	color: #059669;
	font-weight: 600;
}

.order-shipping-old-price {
	text-decoration: line-through;
	color: #9ca3af;
	font-size: 0.8rem;
	margin-right: 0.375rem;
}

.order-inline-form {
	display: inline;
}

.tracking-hidden-data {
	display: none;
}

.order-item {
	display: flex;
	gap: var(--spacing-md);
	padding: var(--spacing-lg);
	border-bottom: 1px solid var(--gray-100);
	align-items: center;
}

.order-item:last-child {
	border-bottom: none;
}

.order-item-image {
	width: 80px;
	height: 80px;
	border-radius: var(--radius-md);
	overflow: hidden;
	flex-shrink: 0;
}

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

.order-item-details {
	flex: 1;
	min-width: 0;
}

.order-item-name {
	font-size: 1rem;
	font-weight: 600;
	color: var(--gray-900);
	margin-bottom: 0.25rem;
}

.order-item-variant {
	font-size: 0.8125rem;
	color: #10b981;
	font-weight: 500;
	margin-bottom: 0.5rem;
}

.order-item-qty {
	font-size: 0.8125rem;
	color: var(--gray-500);
}

.order-item-price {
	text-align: right;
	min-width: 100px;
}

.order-item-price-old {
	font-size: 0.8125rem;
	color: var(--gray-400);
	text-decoration: line-through;
}

.order-item-price-current {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--primary);
}

.order-item-status {
	min-width: 180px;
	text-align: right;
}

/* ========================================
   STATUS BADGES
======================================== */

.status-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.5rem 1rem;
	border-radius: var(--radius-full);
	font-size: 0.75rem;
	font-weight: 700;
}

.status-badge.waiting {
	background: #FEF3C7;
	color: #92400E;
}

.status-badge.preparing {
	background: #DBEAFE;
	color: #1E40AF;
}

.status-badge.shipped {
	background: #D1FAE5;
	color: #065F46;
}

.status-badge.delivered {
	background: #ECFDF5;
	color: #047857;
}

.status-badge.cancelled {
	background: #FEE2E2;
	color: #991B1B;
}

.status-badge-lg {
	font-size: 1rem;
	padding: 0.75rem 1.5rem;
}

/* ========================================
   ORDER DATE & CUSTOMER INFO
======================================== */

.order-date {
	font-size: 0.875rem;
	color: var(--gray-500);
	display: flex;
	align-items: center;
	gap: 0.375rem;
}

.order-customer-info {
	display: flex;
	gap: 1.5rem;
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--gray-100);
	font-size: 0.875rem;
	color: var(--gray-600);
	flex-wrap: wrap;
}

.order-customer-info i {
	color: var(--gray-400);
	margin-right: 0.25rem;
}

/* ========================================
   ORDER ITEMS COUNT
======================================== */

.order-items-count {
	font-weight: 400;
	color: var(--gray-400);
	font-size: 0.9375rem;
}

/* ========================================
   ORDER ITEM STATUS INLINE
======================================== */

.order-item-status-inline {
	margin-top: 0.5rem;
}

.order-item-status-inline .status-badge {
	font-size: 0.6875rem;
	padding: 0.25rem 0.625rem;
}

/* ========================================
   ORDER ITEM SAVINGS
======================================== */

.order-item-savings {
	font-size: 0.75rem;
	font-weight: 600;
	color: #059669;
	background: #ECFDF5;
	padding: 0.125rem 0.5rem;
	border-radius: var(--radius-sm);
	display: inline-block;
	margin-top: 0.25rem;
}

/* ========================================
   ORDER ITEM NAME LINK
======================================== */

a.order-item-name {
	text-decoration: none;
	color: var(--gray-900);
	transition: color 0.2s;
	display: block;
}

a.order-item-name:hover {
	color: var(--primary);
}

/* ========================================
   ORDER SUMMARY (Price Breakdown)
======================================== */

.order-summary {
	padding: var(--spacing-lg);
	border-top: 2px solid var(--gray-100);
	background: linear-gradient(180deg, #fafbfc 0%, #f5f7fa 100%);
}

.pending-payment-box {
	margin-top: 1rem;
	padding: 1rem;
	border: 1px solid #fde68a;
	background: #fffbeb;
	border-radius: 12px;
}

.pending-payment-title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 700;
	color: #92400e;
	font-size: 0.95rem;
}

.pending-payment-title i {
	color: #b45309;
}

.pending-payment-desc {
	margin-top: 0.5rem;
	font-size: 0.875rem;
	color: #7c2d12;
	line-height: 1.5;
}

.pending-coupon-error {
	margin-top: 0.75rem;
	padding: 0.75rem 1rem;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 10px;
	color: #991b1b;
	font-size: 0.8125rem;
	text-align: center;
}
.pending-coupon-error i {
	color: #ef4444;
	margin-right: 0.3rem;
}

.pending-coupon {
	margin-top: 0.75rem;
	padding: 0.75rem;
	background: #ffffff;
	border: 1px dashed #a7f3d0;
	border-radius: 10px;
}

.pending-coupon-code {
	font-size: 1rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	color: #047857;
}

.pending-coupon-meta {
	margin-top: 0.25rem;
	font-size: 0.8125rem;
	color: #065f46;
}

.pending-payment-btn {
	margin-top: 0.875rem;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	justify-content: center;
	width: 100%;
	padding: 0.75rem 1rem;
	border-radius: 10px;
	text-decoration: none;
	font-weight: 700;
	font-size: 0.9375rem;
	color: #fff;
	background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
	box-shadow: 0 6px 16px rgba(21, 128, 61, 0.28);
	transition: all 0.2s ease;
}

.pending-payment-btn:hover {
	transform: translateY(-1px);
	color: #fff;
	box-shadow: 0 10px 20px rgba(21, 128, 61, 0.34);
}

.order-summary-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.5rem 0;
	font-size: 0.9375rem;
	color: var(--gray-700);
}

.order-summary-row i {
	margin-right: 0.375rem;
	font-size: 0.8125rem;
	color: var(--gray-400);
}

.order-summary-row.discount {
	color: #059669;
}

.order-summary-row.discount i {
	color: #059669;
}

.order-summary-row.total {
	border-top: 2px solid var(--gray-200);
	margin-top: 0.5rem;
	padding-top: 0.75rem;
	font-size: 1.125rem;
	font-weight: 800;
	color: var(--gray-900);
}

.order-summary-row.total span:last-child {
	color: var(--primary);
	font-size: 1.25rem;
}

/* ========================================
   ORDER STATUS CARD
======================================== */

.order-status-card {
	margin-top: var(--spacing-lg);
	padding: 1.5rem;
	background: white;
	border-radius: var(--radius-xl);
	border: 1px solid var(--gray-200);
	text-align: center;
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.order-status-title {
	margin: 0 0 1rem 0;
	color: var(--gray-700);
	font-size: 1rem;
	font-weight: 700;
}

.order-status-title i {
	color: var(--gray-400);
}

.order-status-desc {
	margin: 0.75rem 0 0 0;
	font-size: 0.875rem;
	color: var(--gray-500);
}

/* ========================================
   CARGO TRACKING BOX
======================================== */

.cargo-tracking-box {
	margin-top: 1.5rem;
	padding: 1.5rem;
	background: white;
	border-radius: 0.75rem;
	border: 2px solid #10b981;
	text-align: left;
}

.cargo-tracking-title {
	margin: 0 0 1rem 0;
	color: #047857;
	font-weight: 700;
	font-size: 1rem;
}

.cargo-tracking-content {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.cargo-logo {
	max-height: 40px;
	max-width: 120px;
	object-fit: contain;
}

.cargo-details p {
	margin: 0 0 0.5rem 0;
	color: var(--gray-600);
	font-size: 0.9375rem;
}

.cargo-details p:first-child {
	font-weight: 600;
	color: var(--gray-900);
}

.cargo-details code {
	font-family: monospace;
	background: var(--gray-100);
	padding: 0.25rem 0.5rem;
	border-radius: 4px;
	font-size: 0.875rem;
}

.cargo-track-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	background: #10b981;
	color: white;
	text-decoration: none;
	border-radius: 0.5rem;
	font-weight: 600;
	font-size: 0.875rem;
	margin-top: 0.5rem;
	transition: all 0.2s;
}

.cargo-track-btn:hover {
	background: #059669;
	color: white;
}

/* ========================================
   ORDER ACTIONS (Bottom Buttons)
======================================== */

.order-actions {
	display: flex;
	gap: 1rem;
	margin-top: var(--spacing-lg);
	justify-content: center;
	flex-wrap: wrap;
}

.order-action-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	padding: 0.875rem 2rem;
	border-radius: var(--radius-lg);
	font-size: 1rem;
	font-weight: 700;
	text-decoration: none;
	transition: all 0.3s ease;
	cursor: pointer;
	border: none;
}

.order-action-btn:hover {
	transform: translateY(-2px);
}

/* Payment Button */
.order-action-btn.payment-btn {
	background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
	color: white;
	box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.order-action-btn.payment-btn:hover {
	box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
	color: white;
}

/* WhatsApp Button */
.order-action-btn.whatsapp-btn {
	background: #25D366;
	color: white;
	box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.order-action-btn.whatsapp-btn:hover {
	background: #128C7E;
	box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
	color: white;
}

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

@media (max-width: 768px) {
	.tracking-input-wrap {
		flex-direction: column;
	}
	
	.tracking-btn {
		justify-content: center;
	}
	
	.order-item {
		flex-wrap: wrap;
	}
	
	.order-item-price {
		min-width: auto;
	}
	
	.order-header-top {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--spacing-sm);
	}
	
	.order-customer-info {
		flex-direction: column;
		gap: 0.5rem;
	}
	
	.order-actions {
		flex-direction: column;
	}
	
	.order-action-btn {
		justify-content: center;
		width: 100%;
	}
	
	.cargo-tracking-content {
		flex-direction: column;
		align-items: flex-start;
	}
}
