.search-section { background: white; padding: 30px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); margin-bottom: 30px; }
        .search-tabs { display: flex; margin-bottom: 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 10px; }
        .search-tab { padding: 10px 20px; cursor: pointer; border-bottom: 3px solid transparent; flex: 0 0 auto; min-width: 80px; text-align: center; white-space: nowrap; }
        .search-tab.active { border-bottom: 3px solid #3498db; font-weight: bold; }
        .search-form { display: flex; gap: 10px; flex-wrap: wrap; }
        .search-input { flex-grow: 1; padding: 10px; border: 1px solid #ddd; border-radius: 4px; }
        .search-button { padding: 10px 20px; background: #3498db; color: white; border: none; border-radius: 4px; cursor: pointer; }
        .search-button:hover { background: #2980b9; }
        .jpy-input-group { display: flex; align-items: center; width: 100%; }
        .jpy-input-group input { flex-grow: 1; padding: 10px; border: 1px solid #ddd; border-radius: 4px 0 0 4px; }
        .currency-label { background: #f0f0f0; padding: 10px; border: 1px solid #ddd; border-left: none; border-radius: 0 4px 4px 0; white-space: nowrap; }
        .image-upload-container { flex-grow: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px dashed #ddd; padding: 20px; border-radius: 4px; cursor: pointer; max-width: 280px; margin: 0 auto 20px auto; }
        .image-upload-container:hover { border-color: #3498db; }
        .image-preview { max-width: 200px; max-height: 200px; margin-top: 10px; }
        .results-section { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
        .results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
        .product-card { border: 1px solid #eee; border-radius: 8px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; background: white; }
        .product-card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
        .product-image { width: 100%; height: 200px; object-fit: contain; background: #f9f9f9; border-bottom: 1px solid #eee; }
        .product-info { padding: 15px; }
        .product-name { font-weight: bold; margin-bottom: 10px; height: 40px; overflow: hidden; }
        .product-price { color: #e74c3c; font-size: 18px; font-weight: bold; margin-bottom: 5px; }
        .platform-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; margin-right: 8px; }
        .momo-badge { background: #e73177; color: white; }
        .pchome-badge { background: #0066cc; color: white; }
        .shopee-badge { background: #ee4d2d; color: white; }
        .exchange-rate-notice { background: #f8f9fa; padding: 10px; border-radius: 4px; margin: 15px 0; display: flex; justify-content: space-between; }
        .refresh-btn { background: none; border: 1px solid #ddd; border-radius: 4px; cursor: pointer; }
        .comparison-results { background: white; padding: 20px; border-radius: 8px; margin-top: 20px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
        .summary-card { background: #f9f9f9; padding: 15px; border-radius: 8px; margin: 15px 0; }
        .price-row { display: flex; justify-content: space-between; margin: 5px 0; }
        .jpy-price { color: #e74c3c; font-weight: bold; }
        .twd-price { color: #2ecc71; font-weight: bold; }
        .comparison-item { padding: 12px; border-bottom: 1px solid #eee; }
        .comparison-item:last-child { border-bottom: none; }
        .price-comparison { display: flex; align-items: center; gap: 10px; margin: 5px 0; }
        .diff-arrow { font-size: 18px; }
        .diff-amount.cheaper { color: #2ecc71; }
        .diff-amount.expensive { color: #e74c3c; }
        .cheaper .tw-price { color: #2ecc71; }
        .expensive .tw-price { color: #e74c3c; }
        .hidden { display: none; }
        .image-search-results { background: #f8f9fa; padding: 15px; border-radius: 8px; margin-bottom: 20px; }
        .image-search-label { font-weight: bold; margin-bottom: 5px; }
        .uploaded-image-container { text-align: center; margin-bottom: 20px; }
        .uploaded-image { max-width: 100%; max-height: 300px; border-radius: 8px; }
        .results-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.product-card {
    width: 220px;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.product-card img.product-image {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.product-info {
    margin-top: 10px;
}

.product-name {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

.product-price {
    font-size: 14px;
    color: #2ecc71;
    margin-bottom: 5px;
}

.price-comparison-result {
    font-size: 13px;
    margin-bottom: 5px;
}

.diff-label {
    font-weight: bold;
    margin-right: 5px;
}

.diff-amount.cheaper {
    color: #27ae60;
}

.diff-amount.expensive {
    color: #e74c3c;
}



       
        
        @media (max-width: 768px) {
            .search-form {
                flex-direction: column;
            }
            .results-grid {
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            }
            .product-image {
                height: 150px;
            }
            .product-name {
                font-size: 14px;
                height: auto;
                min-height: 36px;
            }
            .product-price {
                font-size: 16px;
            }
            .search-button {
                width: 100%;
                padding: 12px;
            }
            .search-input, .jpy-input-group input {
                width: 100%;
            }
            .header-content {
                flex-direction: column;
                text-align: center;
                gap: 10px;
            }
            .logo {
                font-size: 20px;
            }
        }