/**
 * 商品搜索小工具样式
 * 用于商品归档页面的关键词搜索功能
 */

.product-search-widget {
    margin-bottom: 20px;
    padding: 0;
}

.product-search-form {
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.product-search-field {
    width: 100%;
    height: 50px;
    padding: 0 50px 0 15px;
    border: 1px solid #3D3D3D;
    border-radius: 4px;
    background-color: #111;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    outline: none;
    transition: border-color 0.3s ease;
}

.product-search-field::placeholder {
    color: #999;
    opacity: 1;
}

.product-search-field:focus {
    border-color: #666;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

/* 搜索产品标题样式 */
.product-search-title {
    font-size: 16px;
    color: #fff;
    margin: 0 0 15px 0;
    padding: 0;
    font-weight: normal;
}

.product-search-submit {
    position: absolute;
    right: 0;
    top: 0;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 0 4px 4px 0;
    background-color: transparent !important;
    background: none !important;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.product-search-submit:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.product-search-submit:focus {
    outline: 2px solid rgba(255, 255, 255, 0.3);
    outline-offset: -2px;
}

.product-search-submit svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-search-widget {
        margin-bottom: 15px;
    }
    
    .product-search-field {
        height: 45px;
        padding: 0 45px 0 12px;
        font-size: 13px;
    }
    
    .product-search-submit {
        width: 45px;
        height: 45px;
    }
    
    .product-search-submit svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .product-search-field {
        height: 42px;
        padding: 0 42px 0 10px;
        font-size: 12px;
    }
    
    .product-search-submit {
        width: 42px;
        height: 42px;
    }
    
    .product-search-submit svg {
        width: 16px;
        height: 16px;
    }
}