@charset "UTF-8";
/* ==========================================================================
   搜尋結果頁面樣式 (Search Results Styles)
   ========================================================================== */
.search_tabs_all {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.search_tabs_all ol {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.search_tabs_all br {
    display: none;
}

/* 產品列表項 */
.search_tabs_all .pd_box {
    background: #fff;
    border-bottom: 1px solid #efefef;
    padding-bottom: 15px;
    margin-bottom: 5px;
}

.search_tabs_all .pd_box:last-child {
    border-bottom: none;
}

.search_tabs_all .pd_box a {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    text-decoration: none;
    color: inherit;
}

.search_tabs_all .pd_pic_s {
    width: 120px;
    height: 120px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #eee;
    flex-shrink: 0;
}

.search_tabs_all .menu_name {
    font-size: 1.3rem;
    color: #888;
    margin-bottom: 4px;
}

.search_tabs_all .pd_sn {
    font-size: 1.4rem;
    color: #666;
    margin-bottom: 4px;
}

.search_tabs_all .pd_name {
    font-size: 1.7rem;
    color: #222;
    font-weight: 500;
    line-height: 1.3;
}

/* 針對非產品類的搜尋結果 (如新聞、媒體) */
.search_tabs_all li:not(.pd_box) {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.search_tabs_all li:not(.pd_box) a {
    display: block;
    text-decoration: none;
}

.search_tabs_all li:not(.pd_box) .menu_name {
    font-size: 1.6rem;
    color: #333;
    font-weight: 600;
}

.search_tabs_all li:not(.pd_box) .pd_sn {
    font-size: 1.2rem;
    color: #999;
    margin: 5px 0;
}

.search_tabs_all li:not(.pd_box) .pd_name {
    font-size: 1.4rem;
    color: #666;
    line-height: 1.5;
}

/* ==========================================================================
   無搜尋結果 (No Results)
   ========================================================================== */
.search_no_result {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #bbb;
}

.search_no_result svg {
    margin-bottom: 16px;
}

.search_no_result p {
    font-size: 1.6rem;
    margin: 0;
    letter-spacing: 1px;
}

/* ==========================================================================
   搜尋表單樣式 (Search Form Styles)
   ========================================================================== */
.search_form_flex {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 20px;
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 4px;
}

/* Labels row */
.search_field label {
    display: block;
    font-size: 1.4rem;
    color: #555;
    margin-bottom: 6px;
    font-weight: 500;
}

/* Reset global margin/width overrides — ensure identical sizing */
.search_field input[type="text"],
.search_field select,
.search_action .btn {
    height: 36px;
    margin: 0;
    box-sizing: border-box;
}

.search_field input[type="text"] {
    width: 100%;
    max-width: none;
    padding: 0 12px;
    font-size: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.2s;
}

.search_field input[type="text"]:focus {
    border-color: #1c84c6;
    outline: none;
}

.search_field select {
    width: 100%;
    max-width: none;
    padding: 0 34px 0 12px;
    font-size: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff url(../../../../../../mw/cufiles/site/web/select_arrow_3.png) no-repeat right center;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.search_field select:focus {
    border-color: #1c84c6;
    outline: none;
}

.search_action {
    align-self: end;
}

.search_action .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 20px;
    min-width: auto;
    height: 36px;
    border-radius: 4px;
    font-size: 1.4rem;
    white-space: nowrap;
    background: #42210b;
    box-sizing: border-box;
}

.search_action .btn:hover {
    background: #5d2f10;
}

.search_action .btn i {
    margin-right: 6px;
}

/* ==========================================================================
   RWD - Tablet (≤1023px)
   ========================================================================== */
@media (max-width: 1023px) {
    .search_filter_box {
        border-left: none;
        padding: 15px;
    }

    .search_form_flex {
        column-gap: 15px;
        padding: 15px;
        margin: 0 auto 20px;
    }

    .search_tabs_all {
        padding: 20px 15px;
    }
}

/* ==========================================================================
   RWD - Mobile (≤767px)
   ========================================================================== */
@media (max-width: 767px) {
    .search_filter_box {
        padding: 10px;
    }

    .search_form_flex {
        grid-template-columns: 1fr;
        row-gap: 12px;
        padding: 15px;
        margin: 0 auto 15px;
    }

    .search_field {
    }

    .search_field label {
        font-size: 1.4rem;
        margin-bottom: 4px;
    }

    .search_field input[type="text"],
    .search_field select {
        height: 40px;
        font-size: 1.5rem;
    }

    .search_action .btn {
        width: 100%;
        height: 38px;
    }

    .search_tabs_all {
        padding: 15px 10px;
    }

    .search_tabs_all .pd_box a {
        gap: 15px;
    }

    .search_tabs_all .pd_pic_s {
        width: 80px;
        height: 80px;
    }

    .search_tabs_all .pd_name {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   RWD - Small Mobile (≤480px)
   ========================================================================== */
@media (max-width: 480px) {
    .search_tabs_all .pd_box a {
        gap: 10px;
    }

    .search_tabs_all .pd_pic_s {
        width: 60px;
        height: 60px;
    }

    .search_tabs_all .pd_name {
        font-size: 1.4rem;
    }

    .search_tabs_all .pd_sn {
        font-size: 1.2rem;
    }

    .search_tabs_all .menu_name {
        font-size: 1.1rem;
    }
}
