/* ============================================
   製品検索ページ CSS
   ============================================ */

:root {
    --primary: #0066cc;
    --primary-dark: #004d99;
    --text: #333;
    --text-light: #666;
    --border: #ddd;
    --bg: #f8f8f8;
    --white: #fff;
}

/* Search Hero */
.search-hero {
    background: #d1114E;
    padding: 60px 0;
    text-align: center;
}



.search-hero .inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.search-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.search-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

/* Search Section */
.search-section {
    padding: 40px 0 80px;
}

.search-section .inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Search Form */
.search-form {
    margin-bottom: 24px;
}

.search-input-wrap {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.search-input-wrap input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    font-size: 16px;
    outline: none;
}

.search-input-wrap input::placeholder {
    color: #999;
}

.search-btn {
    padding: 16px 24px;
    background: #FC669D;
    border: none;
    color: var(--white);
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #e0558b;
}

/* Filters */
.search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 32px;
    padding: 20px;
    background: var(--bg);
    border-radius: 8px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-light);
}

.filter-group select {
    padding: 10px 16px;
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--white);
    cursor: pointer;
    min-width: 180px;
}

.reset-btn {
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text-light);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.reset-btn:hover {
    background: var(--text);
    color: var(--white);
    border-color: var(--text);
}

/* Results Info */
.search-results-info {
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-light);
    text-align: center;
}

.search-results-info strong {
    color: var(--primary);
    font-weight: 600;
}

/* Results Grid */
.search-results {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Product Card */
.product-card {
    background: var(--white);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.product-card .image {
    aspect-ratio: 4/3;
    background: var(--bg);
    overflow: hidden;
}

.product-card .image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
}

.product-card .info {
    padding: 16px;
}

/* Tags in Search Results */
.product-card .label-area {
    display: flex;
    column-gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-bottom: 8px;
}

.product-card .announcement-label {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-decoration: none;
    color: #ffffff;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 10px;
    border-radius: 10px;
    padding: 4px 8px;
    transition: 0.3s;
    margin-bottom: 4px;
}

.product-card .bg_blue {
    background-color: #126edf;
}

.product-card .bg_red {
    background-color: #f00;
}

.product-card .bg_yellow {
    background-color: #faee00;
    color: #6c3732 !important;
    font-style: oblique;
}

.product-card .fine {
    background-color: #e83820;
    color: #fdede4 !important;
    font-style: oblique;
}

.product-card .high-spec {
    background-color: #233d7c;
    color: #fff !important;
    font-style: oblique;
}

.product-card .bg_green {
    background-color: #18b413;
}

.product-card .category {
    font-size: 11px;
    color: #d1114E;
    font-weight: 500;
    margin-bottom: 6px;
}

.product-card .name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .id {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.product-card .price {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.product-card .price-tax {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-light);
}

/* No Results */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.no-results h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination button {
    padding: 10px 16px;
    font-size: 14px;
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination button:hover {
    background: var(--bg);
}

.pagination button.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading */
.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--bg);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .search-results {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .search-hero {
        padding: 40px 0;
    }

    .search-title {
        font-size: 24px;
    }

    .search-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group select {
        min-width: 100%;
    }

    .search-results {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .search-results {
        grid-template-columns: 1fr;
    }

    .search-input-wrap input {
        padding: 14px 16px;
        font-size: 14px;
    }
}

/* Section Title (for search section) */
.top_section_title .title_en {
    margin: 0 auto;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 500;
    font-family: 'Noto Sans JP', sans-serif;
    color: #FC3C82;
}

/* Override section title color to match top page */
.search-section .top_section_title .section_title {
    color: #fc3c82;
}