/* ============================================
   category.css — 商品列表 / 搜索结果（服饰版）
   类名前缀：.zh_pl_*
   被 home/category.blade.php、home/search.blade.php 共用
   ============================================ */

/* ========== 主区双栏布局 ========== */
.zh_pl_layout {
    background: var(--zh-bg);
    padding: 32px 0 56px;
}

.zh_pl_inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    align-items: flex-start;
}

/* 全宽版（搜索页用） */
.zh_pl_layout_full .zh_pl_inner {
    grid-template-columns: 1fr;
    gap: 0;
}

/* ========== 左侧筛选侧栏 ========== */
.zh_pl_filter {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.zh_pl_filter_block {
    background: #fff;
    border: 1px solid var(--zh-line);
    border-radius: var(--zh-radius-sm);
    padding: 18px 16px 14px;
}

.zh_pl_filter_h {
    font-size: 14px;
    font-weight: 600;
    color: var(--zh-text);
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--zh-line);
    position: relative;
    letter-spacing: 1px;
}

.zh_pl_filter_h::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 24px;
    height: 2px;
    background: var(--zh-primary);
}

.zh_pl_filter_list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.zh_pl_filter_list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    font-size: 13px;
    color: var(--zh-text-2);
    border-radius: var(--zh-radius-sm);
    transition: all 0.2s;
    gap: 6px;
}

.zh_pl_filter_list a span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zh_pl_filter_list a em {
    font-style: normal;
    font-size: 11px;
    color: var(--zh-text-3);
    padding: 1px 7px;
    background: var(--zh-bg-soft);
    border-radius: 10px;
    flex-shrink: 0;
}

.zh_pl_filter_list a i {
    font-size: 11px;
    color: var(--zh-text-3);
    flex-shrink: 0;
}

.zh_pl_filter_list a:hover {
    background: var(--zh-primary-tint);
    color: var(--zh-primary-deep);
}

.zh_pl_filter_list a:hover em {
    background: #fff;
    color: var(--zh-primary);
}

.zh_pl_filter_list a.active {
    background: var(--zh-primary);
    color: #fff;
    font-weight: 500;
}

.zh_pl_filter_list a.active em {
    background: rgba(255,255,255,0.22);
    color: #fff;
}

.zh_pl_filter_list a.active i { color: rgba(255,255,255,0.85); }

/* 客服帮助小卡 */
.zh_pl_filter_help {
    background: linear-gradient(135deg, var(--zh-primary) 0%, var(--zh-accent) 100%);
    color: #fff;
    border-radius: var(--zh-radius-sm);
    padding: 20px 18px;
    text-align: center;
}

.zh_pl_filter_help > i {
    font-size: 22px;
    color: #fff;
    background: rgba(255,255,255,0.18);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.zh_pl_filter_help h5 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px;
    color: #fff;
}

.zh_pl_filter_help p {
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    margin: 0 0 12px;
    line-height: 1.5;
}

.zh_pl_filter_help strong {
    display: block;
    font-size: 19px;
    font-family: "Arial", sans-serif;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.zh_pl_filter_help a {
    display: inline-block;
    padding: 6px 18px;
    background: #fff;
    color: var(--zh-primary-deep);
    font-size: 12.5px;
    font-weight: 600;
    border-radius: var(--zh-radius-sm);
    transition: all 0.2s;
}

.zh_pl_filter_help a:hover {
    background: var(--zh-dark);
    color: #fff;
}

/* ========== 右侧主区 ========== */
.zh_pl_main {
    min-width: 0;
}

/* 工具条 */
.zh_pl_tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid var(--zh-line);
    border-radius: var(--zh-radius-sm);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.zh_pl_total {
    font-size: 13px;
    color: var(--zh-text-2);
}

.zh_pl_total strong {
    color: var(--zh-primary);
    font-size: 16px;
    font-family: "Arial", sans-serif;
    margin: 0 2px;
}

.zh_pl_tools_right {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.zh_pl_sort_label {
    font-size: 13px;
    color: var(--zh-text-3);
    margin-right: 4px;
}

.zh_pl_sort_btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    font-size: 13px;
    color: var(--zh-text-2);
    border: 1px solid transparent;
    border-radius: var(--zh-radius-sm);
    transition: all 0.2s;
    white-space: nowrap;
}

.zh_pl_sort_btn i { font-size: 11px; }

.zh_pl_sort_btn:hover {
    color: var(--zh-primary);
    background: var(--zh-primary-tint);
}

.zh_pl_sort_btn.active {
    background: var(--zh-primary);
    color: #fff;
    font-weight: 500;
    border-color: var(--zh-primary);
}

.zh_pl_sort_btn.active i { color: #fff; }

/* ========== 商品网格 4 列 ========== */
.zh_pl_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 32px;
}

/* ========== 空状态 ========== */
.zh_pl_empty {
    background: #fff;
    border: 1px dashed var(--zh-line);
    border-radius: var(--zh-radius-sm);
    padding: 56px 24px;
}

.zh_pl_empty .zh_empty_state_icon {
    background: var(--zh-primary-tint);
    color: var(--zh-primary);
}

.zh_pl_empty_links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.zh_pl_empty_links a {
    display: inline-flex;
    align-items: center;
    padding: 7px 18px;
    background: var(--zh-bg-soft);
    color: var(--zh-text-2);
    font-size: 13px;
    border-radius: var(--zh-radius-sm);
    border: 1px solid var(--zh-line);
    transition: all 0.2s;
}

.zh_pl_empty_links a:hover {
    background: var(--zh-primary);
    color: #fff;
    border-color: var(--zh-primary);
}

/* ========== 底部推荐 ========== */
.zh_pl_tail {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px dashed var(--zh-line);
}

.zh_pl_tail_head {
    margin-bottom: 20px;
    text-align: center;
}

.zh_pl_tail_head h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--zh-text);
    margin: 0;
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
}

.zh_pl_tail_head h3 small {
    font-size: 11px;
    color: var(--zh-text-3);
    letter-spacing: 3px;
    font-weight: 500;
}

.zh_pl_tail_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

/* ============================================
   搜索页专属 — 顶部 sticky 搜索框
   ============================================ */
.zh_pl_search_sticky {
    background: #fff;
    border-bottom: 1px solid var(--zh-line);
    padding: 18px 0;
    position: sticky;
    top: 52px;  /* 头部 ③ 品类导航行高度 */
    z-index: 5;
}

.zh_pl_search_inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.zh_pl_search_form {
    display: flex;
    align-items: stretch;
    height: 48px;
    max-width: 720px;
    margin: 0 auto;
    border: 2px solid var(--zh-primary);
    border-radius: var(--zh-radius-sm);
    overflow: hidden;
    background: #fff;
    position: relative;
}

.zh_pl_search_icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--zh-primary);
    font-size: 16px;
    pointer-events: none;
}

.zh_pl_search_form input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 16px 0 44px;
    font-size: 15px;
    color: var(--zh-text);
    background: transparent;
}

.zh_pl_search_form input::placeholder { color: var(--zh-text-3); }

.zh_pl_search_form button {
    flex-shrink: 0;
    width: 120px;
    border: none;
    background: var(--zh-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background 0.2s;
}

.zh_pl_search_form button:hover { background: var(--zh-primary-deep); }

.zh_pl_search_hot {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    font-size: 12.5px;
    color: var(--zh-text-3);
    flex-wrap: wrap;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.zh_pl_search_hot span { color: var(--zh-text-2); }

.zh_pl_search_hot a {
    padding: 3px 10px;
    color: var(--zh-text-2);
    background: var(--zh-bg-soft);
    border-radius: var(--zh-radius-sm);
    transition: all 0.2s;
}

.zh_pl_search_hot a:hover,
.zh_pl_search_hot a.active {
    background: var(--zh-primary);
    color: #fff;
}

/* 搜索空状态 */
.zh_pl_search_empty {
    background: #fff;
    border: 1px solid var(--zh-line);
    border-radius: var(--zh-radius-sm);
    padding: 56px 24px;
    text-align: center;
    margin-bottom: 32px;
}

.zh_pl_search_empty_icon {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: var(--zh-primary-tint);
    color: var(--zh-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin-bottom: 20px;
}

.zh_pl_search_empty h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--zh-text);
    margin: 0 0 8px;
}

.zh_pl_search_empty h3 em {
    font-style: normal;
    color: var(--zh-primary);
}

.zh_pl_search_empty > p {
    font-size: 13.5px;
    color: var(--zh-text-2);
    margin: 0 0 22px;
}

.zh_pl_search_empty_hot {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.zh_pl_search_empty_hot a {
    padding: 7px 16px;
    background: var(--zh-bg-soft);
    color: var(--zh-text-2);
    font-size: 13px;
    border-radius: var(--zh-radius-sm);
    border: 1px solid var(--zh-line);
    transition: all 0.2s;
}

.zh_pl_search_empty_hot a:hover {
    background: var(--zh-primary);
    color: #fff;
    border-color: var(--zh-primary);
}

.zh_pl_search_empty_cta {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 1199px) {
    .zh_pl_grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .zh_pl_tail_grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}

@media (max-width: 991px) {
    .zh_pl_inner { grid-template-columns: 1fr; gap: 0; }
    .zh_pl_filter {
        position: static;
        flex-direction: row;
        gap: 12px;
        overflow-x: auto;
        margin-bottom: 18px;
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    .zh_pl_filter::-webkit-scrollbar { display: none; }
    .zh_pl_filter_block {
        flex-shrink: 0;
        min-width: 240px;
    }
    .zh_pl_filter_help { display: none; }

    .zh_pl_grid { grid-template-columns: repeat(3, 1fr); }
    .zh_pl_tail_grid { grid-template-columns: repeat(3, 1fr); }

    .zh_pl_search_sticky { padding: 14px 0; position: static; }
}

@media (max-width: 767px) {
    .zh_pl_layout { padding: 20px 0 40px; }
    .zh_pl_inner { padding: 0 12px; }

    /* 移动端隐藏左侧筛选侧栏（保留浏览类目，靠头部抽屉） */
    .zh_pl_filter { display: none; }

    .zh_pl_tools { padding: 10px 12px; flex-direction: column; align-items: stretch; gap: 10px; }
    .zh_pl_tools_right { justify-content: space-between; }
    .zh_pl_sort_label { display: none; }
    .zh_pl_sort_btn { padding: 5px 8px; font-size: 12px; }

    .zh_pl_grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .zh_pl_tail_grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    .zh_pl_search_form { height: 44px; }
    .zh_pl_search_form button { width: 80px; font-size: 13px; }
    .zh_pl_search_form input { font-size: 14px; padding-left: 38px; }
    .zh_pl_search_icon { left: 12px; font-size: 14px; }

    .zh_pl_search_empty { padding: 36px 16px; }
    .zh_pl_search_empty_icon { width: 84px; height: 84px; font-size: 36px; }
    .zh_pl_search_empty h3 { font-size: 17px; }

    .zh_pl_tail_head h3 { font-size: 18px; flex-direction: column; gap: 4px; }
}
