/* Quote Page Styles */

/* 头部背景简化 */
.top-bar{
    background-color: #144279;
    background-image: none;
}

.top-bar .hero {
    display: none;
}

.hero{
    display: none;
}

/* Product Search Page Styles */
.product-search-main{
    background-color: #ffffff;
    padding: 15rem 0 80rem 0;
}

.product-search-inner{
    width: 1440rem;
    max-width: 100%;
    margin: 0 auto;
}

/* Breadcrumb */
.product-search-breadcrumb{
    display: flex;
    align-items: center;
    gap: 8rem;
    margin-bottom: 30rem;
    font-size: 14rem;
}

.breadcrumb-home{
    color: #333333;
    text-decoration: none;
    font-size: 14rem;
}

.breadcrumb-home:hover{
    text-decoration: underline;
}

.breadcrumb-separator{
    color: #333333;
}

.breadcrumb-current{
    color: #144279;
}

/* Page Title */
.product-search-title{
    font-family: 'Arial Negreta', 'Arial Normal', 'Arial', sans-serif;
    font-weight: 700;
    font-size: 48rem;
    color: #144279;
    margin-bottom: 40rem;
}

/* Main Content Area */
.product-search-content{
    display: flex;
    gap: 40rem;
    align-items: flex-start;
}

/* Left Sidebar - Filters */
.product-search-sidebar{
    width: 280rem;
    flex-shrink: 0;
    height: fit-content;
}

.filter-section{
    margin-bottom: 20rem;
}

.filter-section:last-child{
    margin-bottom: 0;
}

.filter-section-title{
    font-size: 28rem;
    font-weight: 700;
    color: #004a80;
    margin-bottom: 20rem;
}

.filter-group{
    margin-bottom: 5rem;
}

.filter-group:last-child{
    border-bottom: none;
    margin-bottom: 0;
}

.filter-subgroup{
    margin-left: 20rem;
    margin-top: 5rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.filter-option{
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 14rem;
    color: #004a80;
    cursor: pointer;
}

.filter-option:hover{
    color: #B8b21A;
}

.filter-option input[type="checkbox"],
.filter-sidebar .filter-option input[type="radio"]{
    width: 16rem;
    height: 16rem;
    cursor: pointer;
    accent-color: #004a80;
}

.filter-option.filter-option-active{
    color: #c57a1a;
    font-weight: 600;
}

.filter-options-tags{
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: flex-start;
    gap: 8rem;
    padding-top: 2rem;
}

.filter-options-tags-wrap{
    display: flex;
    flex-direction: column;
    gap: 14rem;
}

.tag-category-block{
    display: flex;
    flex-direction: column;
    gap: 8rem;
}

.tag-category-title{
    font-size: 12rem;
    font-weight: 700;
    color: #144279;
    line-height: 1.4;
    padding-left: 2rem;
}

.filter-option-tag{
    position: relative;
    padding: 0;
    width: auto;
    max-width: 100%;
    flex: 0 1 auto;
    border: 1rem solid #cfd8e3;
    border-radius: 6rem;
    background: #ffffff;
    color: #17405f;
    overflow: hidden;
    box-shadow: 0 1rem 2rem rgba(20, 66, 121, 0.04);
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.filter-option-tag input[type="checkbox"]{
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.filter-option-tag span{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28rem;
    padding: 0 11rem;
    font-size: 12rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.filter-option-tag:hover{
    color: #144279;
    border-color: #144279;
    background: #f7fafc;
}

.filter-option-tag.is-active{
    color: #ffffff;
    border-color: #144279;
    background: #144279;
    box-shadow: 0 6rem 14rem rgba(20, 66, 121, 0.14);
}

a.filter-option{
    text-decoration: none;
}

/* Right Content Area */
.product-search-results{
    flex: 1;
}

/* Search Bar */
.search-bar-section{
    margin-bottom: 40rem;
}

.search-bar-title{
    font-size: 36rem;
    font-weight: 700;
    color: #144279;
    margin-bottom: 16rem;
}

.search-bar-wrapper{
    display: flex;
    gap: 12rem;
    align-items: center;
    margin: 0;
}

.search-input{
    width: 258rem;
    padding: 10rem 16rem;
    border: 1px solid #e0e0e0;
    border-radius: 4rem;
    font-size: 14rem;
    font-family: 'Arial', sans-serif;
}

.search-input:focus{
    outline: none;
    border-color: #144279;
}

.search-btn{
    padding: 10rem 30rem;
    background-color: #c57a1a;
    color: #ffffff;
    border: none;
    border-radius: 4rem;
    font-family: 'Arial', sans-serif;
    font-size: 18rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover{
    background-color: #b8741a;
}

/* Product Grid */
.product-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20rem 12rem;
}

.product-card{
    height: 375rem;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 20rem 16rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 0 10rem 0 rgba(0, 0, 0, 0.1);
}

.product-card-link{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
}

.product-card-label{
    font-family: "Arial Bold", "Arial Normal", "Arial", sans-serif;
    font-weight: 700;
    font-size: 12rem;
    color: rgba(51, 51, 51, 0.5);
    text-transform: uppercase;
    margin-bottom: 16rem;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #b8741a;
    padding: 5rem 0 17rem 0;
}

.product-card-image{
    width: 100%;
    height: 225rem;
    margin-bottom: 16rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 180rem;
}

.product-card-image img{
    max-width: 100%;
    height: auto;
    display: block;
}

.product-card-title{
    font-family: "Arial Bold", "Arial Normal", "Arial", sans-serif;
    font-weight: 700;
    font-size: 18rem;
    color: #333333;
    margin: 0;
    text-align: center;
    line-height: 1.4;
}

.product-search-empty{
    padding: 40rem 0;
    text-align: center;
    color: #666;
    font-size: 16rem;
}

/* Pagination */
.pagination{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    margin-top: 40rem;
}

.pagination-link{
    display: inline-block;
    padding: 8rem 12rem;
    font-size: 16rem;
    color:  rgba(51, 51, 51, 0.8);
    text-decoration: none;
    border-radius: 4rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination-link:hover{
    background-color: #f0f0f0;
    color: #144279;
}

.pagination-link.active{
    background-color: #e0e0e0;
    color: rgba(51, 51, 51, 0.7);
}

.pagination-ellipsis{
    padding: 8rem 4rem;
    font-size: 14rem;
    color: #333333;
}

/* 局部加载 loading 态 */
.product-search-content.is-loading{
    position: relative;
    pointer-events: none;
}

.product-search-content.is-loading::before{
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.55);
    z-index: 2;
}

.product-search-content.is-loading::after{
    content: '';
    position: absolute;
    left: 50%;
    top: 240rem;
    width: 36rem;
    height: 36rem;
    margin-left: -18rem;
    border-radius: 50%;
    border: 3rem solid #dce7f3;
    border-top-color: #144279;
    animation: search-loading-spin 0.8s linear infinite;
    z-index: 3;
}

@keyframes search-loading-spin{
    to { transform: rotate(360deg); }
}
