/* 欣与甜 E-Shop - Modern Refined Styles */

/* Custom Selection */
::selection {
    background: #fef3c7;
    color: #92400e;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f8fafc;
}
::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

/* QR Code popup */
.qr-popup {
    min-width: 160px;
    backdrop-filter: blur(8px);
}

/* Search history pill buttons */
.history-pill {
    padding: 6px 14px;
    background: #fff;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    border-radius: 10px;
    display: inline-block;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.history-pill:hover {
    background: #f8fafc;
    color: #f59e0b;
    border-color: #fde68a;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Product category buttons */
.product-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    text-align: center;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.product-btn:hover {
    background: #fff;
    border-color: #fbbf24;
    color: #b45309;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(251, 191, 36, 0.1), 0 4px 6px -4px rgba(251, 191, 36, 0.1);
}

/* Order result card */
.order-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    animation: slideUp 0.4s ease-out forwards;
}

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

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px dashed #f1f5f9;
}

.order-status {
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.status-pending { background: #fffbeb; color: #b45309; }
.status-shipped { background: #eff6ff; color: #1d4ed8; }
.status-transit { background: #f5f3ff; color: #6d28d9; }
.status-delivering { background: #fdf2f8; color: #be185d; }
.status-delivered { background: #ecfdf5; color: #047857; }

/* Tracking timeline */
.tracking-timeline {
    margin-top: 24px;
    padding-left: 12px;
    border-left: 2px solid #f1f5f9;
}

.tracking-item {
    position: relative;
    padding-bottom: 20px;
    padding-left: 20px;
}

.tracking-item:last-child {
    padding-bottom: 0;
}

.tracking-item::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #f1f5f9;
}

.tracking-item:first-child::before {
    background: #fbbf24;
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.2);
}

.tracking-time {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tracking-location {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-top: 4px;
}

.tracking-status {
    font-size: 13px;
    color: #64748b;
    margin-top: 2px;
}

/* Loading state */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #64748b;
    font-weight: 500;
}

.loading::before {
    content: '';
    width: 32px;
    height: 32px;
    margin-bottom: 16px;
    border: 3px solid #f1f5f9;
    border-top-color: #fbbf24;
    border-radius: 50%;
    animation: spin 0.8s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
}

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

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 24px;
    background: #fff;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
    color: #64748b;
    font-weight: 500;
}

