/* ====================================
   Track Order - Premium Production CSS
   ==================================== */

:root {
    --ws-primary: #b87939;
    --ws-primary-dark: #9a6530;
    --ws-primary-light: #d99958;
    --ws-success: #10b981;
    --ws-warning: #f59e0b;
    --ws-error: #ef4444;
    --ws-gray-50: #f9fafb;
    --ws-gray-100: #f3f4f6;
    --ws-gray-200: #e5e7eb;
    --ws-gray-300: #d1d5db;
    --ws-gray-600: #4b5563;
    --ws-gray-700: #374151;
    --ws-gray-800: #1f2937;
    --ws-gray-900: #111827;
}

/* ============ Container ============ */
.ws-track-order-container {
}

/* ============ Header Section ============ */
.ws-track-header {
    text-align: center;
    padding: 60px 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    background: #fafafa;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    height: 280px;
}

.ws-track-title {
    font-size: 48px;
    font-weight: 600;
    color: #4A3426;
    letter-spacing: -0.5px;
    z-index: 2;
    margin: 0 !important;
    font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
}

.ws-track-subtitle {
     font-size: 18px;
    font-weight: 300;
    color: #4B5563;
    position: relative;
    z-index: 2;
    margin: 0 !important;
font-family: -apple-system, BlinkMacSystemFont, 
             "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ============ Form Section ============ */
.ws-track-form-wrapper {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--ws-gray-200);
    max-width: 450px;
    margin: 60px auto;
}

.ws-form-group {
    margin-bottom: 28px;
}

.ws-form-group:last-of-type {
    margin-bottom: 32px;
}

.ws-form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ws-gray-700);
    margin-bottom: 10px;
}

.ws-form-group label svg {
    color: var(--ws-primary);
}

.ws-form-group input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid var(--ws-gray-200);
    border-radius: 12px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.ws-form-group input:focus {
    outline: none;
    border-color: var(--ws-primary);
    box-shadow: 0 0 0 4px rgba(184, 121, 57, 0.1);
}

.ws-input-hint {
    display: block;
    font-size: 12px;
    color: var(--ws-gray-600);
    margin-top: 6px;
}

/* ============ Track Button ============ */
.ws-track-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--ws-primary), var(--ws-primary-dark));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ws-track-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(184, 121, 57, 0.3);
}

.ws-track-btn:active {
    transform: translateY(0);
}

.ws-track-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.ws-spinner {
    animation: ws-spin 1s linear infinite;
}

@keyframes ws-spin {
    to { transform: rotate(360deg); }
}

.ws-spinner circle {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: 0;
    stroke-linecap: round;
}

/* ============ Error Message ============ */
.ws-track-error {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    color: #991b1b;
    font-size: 14px;
    margin-top: 20px;
}

.ws-track-error svg {
    flex-shrink: 0;
    color: var(--ws-error);
}
.ws-track-results {
    max-width: 1200px;
    margin: 10px auto;
}
/* ============ Results Section ============ */
.ws-track-results {
    animation: ws-fadeIn 0.4s ease;
}

@keyframes ws-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============ Cards ============ */
.ws-order-card,
.ws-timeline-card,
.ws-products-card,
.ws-shipping-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--ws-gray-200);
}

.ws-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--ws-gray-100);
}

.ws-order-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--ws-gray-900);
    margin: 0;
}

.ws-back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--ws-gray-100);
    color: var(--ws-gray-700);
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ws-back-btn:hover {
    background: var(--ws-gray-200);
}

/* ============ Order Info ============ */
.ws-order-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.ws-info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ws-info-label {
    font-size: 13px;
    color: var(--ws-gray-600);
    font-weight: 500;
}

.ws-info-value {
    font-size: 16px;
    color: var(--ws-gray-900);
    font-weight: 600;
}

.ws-status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ws-status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.ws-status-badge.processing {
    background: #dbeafe;
    color: #1e40af;
}

.ws-status-badge.shipped {
    background: #e0e7ff;
    color: #4338ca;
}

.ws-status-badge.completed {
    background: #d1fae5;
    color: #065f46;
}

.ws-status-badge.cancelled,
.ws-status-badge.failed {
    background: #fee2e2;
    color: #991b1b;
}

/* ============ Timeline ============ */
.ws-timeline-card h3,
.ws-products-card h3,
.ws-shipping-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--ws-gray-900);
    margin: 0 0 24px;
}

.ws-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 20px 0;
}

.ws-timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--ws-gray-200);
    transform: translateY(-50%);
    z-index: 0;
}

.ws-timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
    flex: 1;
}

.ws-timeline-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--ws-gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ws-timeline-step.active .ws-timeline-icon {
    background: var(--ws-primary);
    border-color: var(--ws-primary);
    box-shadow: 0 4px 12px rgba(184, 121, 57, 0.3);
}

.ws-timeline-step.completed .ws-timeline-icon {
    background: var(--ws-success);
    border-color: var(--ws-success);
}

.ws-timeline-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5px;
    color: var(--ws-gray-400);
}

.ws-timeline-step.active .ws-timeline-icon svg,
.ws-timeline-step.completed .ws-timeline-icon svg {
    color: white;
}

.ws-timeline-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ws-gray-600);
    text-align: center;
}

.ws-timeline-step.active .ws-timeline-label {
    color: var(--ws-primary);
}

.ws-timeline-step.completed .ws-timeline-label {
    color: var(--ws-success);
}

/* ============ Products List ============ */
.ws-products-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ws-product-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--ws-gray-50);
    border-radius: 12px;
    border: 1px solid var(--ws-gray-200);
}

.ws-product-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--ws-gray-200);
}

.ws-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.ws-product-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--ws-gray-900);
    margin: 0;
}

.ws-product-meta {
    font-size: 13px;
    color: var(--ws-gray-600);
}

.ws-product-total {
    font-size: 16px;
    font-weight: 700;
    color: var(--ws-primary);
    align-self: center;
}

/* ============ Shipping Address ============ */
.ws-address {
    padding: 20px;
    background: var(--ws-gray-50);
    border-radius: 12px;
    border-left: 4px solid var(--ws-primary);
}

.ws-address p {
    margin: 0 0 8px;
    font-size: 15px;
    color: var(--ws-gray-700);
    line-height: 1.6;
}

.ws-address p:first-child {
    font-weight: 700;
    color: var(--ws-gray-900);
    font-size: 16px;
}

.ws-address p:last-child {
    margin-bottom: 0;
}

/* ============ Responsive ============ */
@media (max-width: 768px) {
    .ws-track-order-container {
    }
    .ws-track-header {
          padding: 40px 12px;
        height: 250px;
    }
    .ws-track-title {
    font-size: 32px;
}
.ws-track-subtitle {
    font-size: 16px;
}
    
    .ws-track-form-wrapper {
        padding: 28px 20px;
    }
    
    .ws-order-card,
    .ws-timeline-card,
    .ws-products-card,
    .ws-shipping-card {
        padding: 24px 20px;
    }
    
    .ws-order-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .ws-timeline {
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .ws-timeline::before {
        display: none;
    }
    
    .ws-timeline-step {
        width: calc(50% - 15px);
    }
    
    .ws-product-item {
        flex-direction: column;
    }
    
    .ws-product-image {
        width: 100%;
        height: 200px;
    }
    
    .ws-product-total {
        align-self: flex-start;
    }
}