/* ============================================
   Order Tracking Page Styles
   ============================================ */

.track-order-page {
    min-height: 80vh;
    padding: 60px 0 100px;
    background: #f8fafc;
}

.track-order-hero {
    text-align: center;
    margin-bottom: 50px;
}

.track-order-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

.track-order-subtitle {
    font-size: 18px;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Search Section */
.track-order-search {
    max-width: 800px;
    margin: 0 auto 50px;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-container {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    width: 24px;
    height: 24px;
    pointer-events: none;
}

.tracking-input {
    width: 100%;
    padding: 15px 15px 15px 55px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
}

.tracking-input:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.track-btn {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 8px;
}

.search-hint {
    font-size: 14px;
    color: #94a3b8;
    text-align: center;
    margin: 0;
}

/* Results Section */
.order-results {
    max-width: 1000px;
    margin: 0 auto;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.results-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-purple);
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

.results-count {
    font-size: 16px;
    color: #64748b;
    font-weight: 500;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Order Card */
.order-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.order-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.order-number-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.order-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-purple);
    font-family: 'Montserrat', sans-serif;
}

.order-status {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-status.pending {
    background: #fef3c7;
    color: #d97706;
}

.order-status.processing {
    background: #dbeafe;
    color: #2563eb;
}

.order-status.completed {
    background: #d1fae5;
    color: #059669;
}

.order-status.cancelled {
    background: #fee2e2;
    color: #dc2626;
}

.order-status.shipped {
    background: #e0e7ff;
    color: #6366f1;
}

.order-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.info-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.info-value {
    font-size: 15px;
    color: #1e293b;
    font-weight: 600;
}

.order-total {
    color: var(--primary-purple);
    font-size: 18px;
    font-weight: 700;
}

/* Order Items Section */
.order-items-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.order-items-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 15px;
}

.order-items-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
}

.item-name {
    flex: 1;
    font-size: 14px;
    color: #1e293b;
    font-weight: 500;
}

.item-quantity {
    font-size: 14px;
    color: #64748b;
    margin: 0 15px;
}

.item-price {
    font-size: 14px;
    color: var(--primary-purple);
    font-weight: 600;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.empty-state p {
    font-size: 16px;
    color: #64748b;
    margin: 0;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 80px 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top-color: var(--primary-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.loading-state p {
    font-size: 16px;
    color: #64748b;
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .track-order-search {
        padding: 30px 25px;
    }
    
    .order-card {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .track-order-page {
        padding: 40px 0 60px;
    }
    
    .track-order-title {
        font-size: 32px;
        padding: 0 15px;
    }
    
    .track-order-subtitle {
        font-size: 16px;
        padding: 0 15px;
    }
    
    .track-order-search {
        padding: 25px 20px;
        margin: 0 15px 40px;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .track-btn {
        width: 100%;
    }
    
    .order-results {
        padding: 0 15px;
    }
    
    .order-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .order-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .order-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .order-items-list {
        gap: 8px;
    }
    
    .order-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .item-quantity {
        margin: 0;
    }
}

@media (max-width: 480px) {
    .track-order-page {
        padding: 30px 0 50px;
    }
    
    .track-order-title {
        font-size: 28px;
        padding: 0 10px;
    }
    
    .track-order-subtitle {
        font-size: 14px;
        padding: 0 10px;
    }
    
    .track-order-search {
        padding: 20px 15px;
        margin: 0 10px 30px;
    }
    
    .tracking-input {
        padding: 12px 12px 12px 45px;
        font-size: 14px;
    }
    
    .track-btn {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    .order-results {
        padding: 0 10px;
    }
    
    .order-card {
        padding: 15px;
    }
    
    .order-card-header {
        gap: 10px;
    }
    
    .order-number {
        font-size: 16px;
    }
    
    .order-date {
        font-size: 12px;
    }
    
    .order-status {
        padding: 4px 10px;
        font-size: 11px;
    }
    
    .order-total {
        font-size: 16px;
    }
    
    .info-label,
    .info-value {
        font-size: 13px;
    }
    
    .order-items-title {
        font-size: 14px;
    }
    
    .item-name,
    .item-quantity,
    .item-price {
        font-size: 13px;
    }
    
    .empty-state {
        padding: 60px 20px;
    }
    
    .empty-icon {
        font-size: 60px;
    }
    
    .empty-title {
        font-size: 20px;
    }
    
    .empty-text {
        font-size: 14px;
    }
}

/* RTL Support */
[dir="rtl"] .search-icon {
    left: auto;
    right: 20px;
}

[dir="rtl"] .tracking-input {
    padding: 15px 55px 15px 15px;
}

[dir="rtl"] .order-info-row {
    flex-direction: row-reverse;
}

[dir="rtl"] .order-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .order-card-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .results-header {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    [dir="rtl"] .order-info-row,
    [dir="rtl"] .order-item,
    [dir="rtl"] .order-card-header,
    [dir="rtl"] .results-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

