/* Track Order Page Styles */
.track-order-section {
    padding: 4rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
}

.track-order-form {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #666;
}

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

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #1a252f;
    transform: translateY(-2px);
}

.order-result {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.order-header {
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.order-id {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.order-date {
    color: #666;
    font-size: 0.9rem;
}

.order-status {
    margin-bottom: 2rem;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-processing {
    background: #cce5ff;
    color: #004085;
}

.status-shipped {
    background: #e2e3e5;
    color: #383d41;
}

.status-delivered {
    background: #d4edda;
    color: #155724;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.order-timeline {
    margin-bottom: 2rem;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 40px;
    width: 2px;
    height: calc(100% - 20px);
    background: var(--border-color);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.timeline-item.completed .timeline-icon {
    background: var(--primary-color);
    color: white;
}

.timeline-content {
    flex: 1;
}

.timeline-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.timeline-date {
    font-size: 0.875rem;
    color: #666;
}

.order-items {
    margin-bottom: 2rem;
}

.order-items h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.order-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.order-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 1rem;
}

.order-item-details {
    flex: 1;
}

.order-item-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.order-item-variant {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.order-item-price {
    font-weight: 600;
    color: var(--secondary-color);
}

.order-summary {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.summary-row.total {
    font-weight: 600;
    font-size: 1.1rem;
    border-top: 2px solid var(--border-color);
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.loading {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

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

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    margin-bottom: 2rem;
}

.help-section {
    background: var(--light-gray);
    padding: 3rem 0;
    margin-top: 4rem;
}

.help-content h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.help-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.help-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.help-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 1rem;
}

.help-item h3 {
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.help-item p {
    color: #333;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .track-order-section {
        padding: 2rem 1rem;
    }
    
    .section-header h1 {
        font-size: 2rem;
    }
    
    .track-order-form {
        padding: 1.5rem;
    }
    
    .order-item {
        flex-direction: column;
        text-align: center;
    }
    
    .order-item img {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .help-items {
        grid-template-columns: 1fr;
    }
}

.search-toggle-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 12px;
}

.search-toggle-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    background: transparent;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.search-toggle-btn:hover {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.search-toggle-btn i {
    font-size: 1.1rem;
}

@media (max-width: 480px) {
    .search-toggle-btn {
        font-size: 0.8rem;
        padding: 0.8rem;
    }
    
    .search-toggle-btn i {
        font-size: 1rem;
    }
}

.order-list {
    margin-top: 2rem;
}

.order-list h3 {
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

.orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.order-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.order-number {
    font-weight: bold;
    color: #333;
}

.order-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-pending { background: #fff3cd; color: #856404; }
.status-processing { background: #cce5ff; color: #004085; }
.status-shipped { background: #d4edda; color: #155724; }
.status-delivered { background: #d1ecf1; color: #0c5460; }

.order-card-body {
    padding: 1rem;
}

.order-card-body p {
    margin: 0.5rem 0;
    color: #666;
}

.order-date {
    font-size: 0.9rem;
}

.order-total {
    font-weight: bold;
    color: #333;
    font-size: 1.1rem;
}

.order-items-count {
    font-size: 0.9rem;
    color: #666;
}

.order-card-footer {
    padding: 1rem;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.order-numbers-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.order-number-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.order-number-item:hover {
    background: #f8f9fa;
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.order-number-item .order-number {
    font-weight: bold;
    color: #333;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .orders-grid {
        grid-template-columns: 1fr;
    }
}
            
.toggle-btn i {
                font-size: 1rem;
}
        
        
.order-list {
            margin-top: 2rem;
}
        
.order-list h3 {
            color: #333;
            margin-bottom: 1.5rem;
            text-align: center;
}
        
.orders-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1.5rem;
}
        
.order-card {
            background: white;
            border: 1px solid #e0e0e0;
            border-radius: 12px;
            overflow: hidden;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
        
.order-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
        
.order-card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem;
            background: #f8f9fa;
            border-bottom: 1px solid #e0e0e0;
}
        
.order-number {
            font-weight: bold;
            color: #333;
}
        
.order-status {
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 500;
            text-transform: uppercase;
}
        
.status-pending { background: #fff3cd; color: #856404; }
.status-processing { background: #cce5ff; color: #004085; }
.status-shipped { background: #d4edda; color: #155724; }
.status-delivered { background: #d1ecf1; color: #0c5460; }
        
.order-card-body {
            padding: 1rem;
}
        
.order-card-body p {
            margin: 0.5rem 0;
            color: #666;
}
        
.order-date {
            font-size: 0.9rem;
}
        
.order-total {
            font-weight: bold;
            color: #333;
            font-size: 1.1rem;
        }
        
        .order-items-count {
            font-size: 0.9rem;
            color: #666;
        }
        
        .order-card-footer {
            padding: 1rem;
            border-top: 1px solid #e0e0e0;
            text-align: center;
        }
        
        .btn-small {
            padding: 0.5rem 1rem;
            font-size: 0.9rem;
        }
        
        .order-numbers-list {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }
        
        .order-number-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem;
            background: white;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .order-number-item:hover {
            background: #f8f9fa;
            border-color: #007bff;
            box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
        }
        
        .order-number-item .order-number {
            font-weight: bold;
            color: #333;
            font-size: 1.1rem;
        }
        
        @media (max-width: 768px) {
            .orders-grid {
                grid-template-columns: 1fr;
            }
        }