/* 產品搜尋模組樣式 — 從 ProductSearchTab.html 提取 */
.product-search-container {
    padding-bottom: 100px;
}

.ps-search-header {
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
    position: sticky;
    top: 60px;
    z-index: 100;
}

.ps-search-box {
    display: flex;
    gap: 10px;
}

.ps-search-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.ps-search-input:focus {
    border-color: #007AFF;
}

.ps-search-btn {
    background: #007AFF;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0 20px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.ps-search-btn:active {
    background: #0056b3;
}

.ps-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ps-card {
    background: white;
    border-radius: 16px;
    padding: 12px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    gap: 12px;
    transition: transform 0.2s;
    align-items: flex-start;
}

.ps-card:active {
    transform: scale(0.98);
}

.ps-checkbox-area {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 4px;
}

.ps-checkbox {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid #ddd;
    cursor: pointer;
    position: relative;
    appearance: none;
    -webkit-appearance: none;
}

.ps-checkbox:checked {
    background: #34C759;
    border-color: #34C759;
}

.ps-checkbox:checked::after {
    content: '✓';
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: bold;
}

.ps-content {
    flex: 1;
    min-width: 0;
}

.ps-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.ps-code {
    font-size: 14px;
    font-weight: 700;
    color: #007AFF;
    font-family: monospace;
    white-space: nowrap;
}

.ps-name {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    line-height: 1.4;
}

.ps-details-row {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    background: #f9f9f9;
    padding: 6px 10px;
    border-radius: 8px;
}

.ps-detail-item {
    display: inline-block;
    margin-right: 12px;
    white-space: nowrap;
}

.ps-detail-item:last-child {
    margin-right: 0;
}

.ps-price {
    font-weight: 600;
    color: #ff3b30;
}

.ps-nhi-badge {
    display: inline-block;
    background: #eee;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
}

.ps-action-container {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    display: flex;
    justify-content: center;
    width: auto;
    pointer-events: none;
}

.ps-send-btn {
    pointer-events: auto;
    background: #34C759;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(52, 199, 89, 0.4);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ps-send-btn:disabled {
    background: #E5E5EA;
    color: #aeaeb2;
    box-shadow: none;
    cursor: not-allowed;
    display: none;
}

.ps-send-btn:active:not(:disabled) {
    transform: scale(0.96);
}

.ps-empty {
    text-align: center;
    padding: 40px 20px;
    color: #86868b;
}
