/* templet7 商品列表 — edi 风格：分类条 + 排序条 + 列表/大图 */
.t7-shop {
    --t7-shop-navy: #1e3a5f;
    --t7-shop-teal: #1e6fd9;
    --t7-shop-price: #e23c3c;
    padding: 18px 0 48px;
    background: var(--t7-bg, #f4f6f9);
}

.t7-shop-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    color: #999;
    font-size: 13px;
}
.t7-shop-crumb a:hover { color: var(--t7-shop-teal); }
.t7-shop-crumb em {
    font-style: normal;
    color: #666;
}

/* 深蓝分类条 */
.t7-shop-cats {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    background: var(--t7-shop-navy);
    border-radius: 6px;
    margin-bottom: 12px;
    color: rgba(255,255,255,.72);
}
.t7-shop-cats-label {
    flex-shrink: 0;
    padding-top: 4px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,.9);
}
.t7-shop-cats-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 4px;
    min-width: 0;
}
.t7-shop-cats-list a {
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 13px;
    color: rgba(255,255,255,.78);
    transition: .15s;
}
.t7-shop-cats-list a:hover {
    color: #fff;
    background: rgba(255,255,255,.1);
}
.t7-shop-cats-list a.is-on {
    color: #fff;
    font-weight: 700;
    background: rgba(255,255,255,.16);
}

/* 排序 + 视图 */
.t7-shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e6e9ee;
    border-radius: 6px;
    margin-bottom: 14px;
}
.t7-shop-sorts {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.t7-shop-sorts a {
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 13px;
    color: #555;
}
.t7-shop-sorts a:hover { color: var(--t7-shop-teal); }
.t7-shop-sorts a.is-on {
    color: var(--t7-shop-teal);
    font-weight: 700;
}
.t7-shop-toolbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}
.t7-shop-count {
    color: #999;
    font-size: 13px;
}
.t7-shop-views {
    display: inline-flex;
    border: 1px solid #d8dde5;
    border-radius: 4px;
    overflow: hidden;
}
.t7-shop-views a {
    padding: 5px 14px;
    font-size: 13px;
    color: var(--t7-shop-teal);
    background: #fff;
    border-right: 1px solid #d8dde5;
}
.t7-shop-views a:last-child { border-right: 0; }
.t7-shop-views a.is-on {
    background: var(--t7-shop-navy);
    color: #fff;
    border-color: var(--t7-shop-navy);
}

/* 列表表格 */
.t7-shop-table-wrap {
    background: #fff;
    border: 1px solid #e6e9ee;
    border-radius: 6px;
    overflow-x: auto;
}
.t7-shop-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}
.t7-shop-table th {
    padding: 12px 14px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #888;
    background: #fafbfc;
    border-bottom: 1px solid #eef0f3;
}
.t7-shop-table td {
    padding: 14px;
    vertical-align: middle;
    border-bottom: 1px solid #f0f2f5;
    font-size: 13px;
    color: #555;
}
.t7-shop-table tr:last-child td { border-bottom: 0; }
.t7-shop-table tr:hover td { background: #fafcfe; }

.t7-shop-row-info {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.t7-shop-thumb {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f6f8;
}
.t7-shop-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.t7-shop-thumb .t7-noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #bbb;
    font-size: 12px;
}
.t7-shop-row-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.t7-shop-title {
    color: var(--t7-shop-teal);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.t7-shop-title:hover { text-decoration: underline; }
.t7-shop-sku {
    color: #aaa;
    font-size: 12px;
}
.t7-shop-price {
    color: var(--t7-shop-price) !important;
    font-weight: 700;
    font-size: 15px !important;
}
.t7-shop-ops {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.t7-shop-ops form { margin: 0; }

.t7-btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    height: 30px;
    padding: 0 12px;
    border-radius: 3px;
    font-size: 13px;
    cursor: pointer;
    border: 1px solid transparent;
    line-height: 1;
}
.t7-btn-sm-primary {
    background: var(--t7-shop-teal);
    color: #fff !important;
    border-color: var(--t7-shop-teal);
}
.t7-btn-sm-primary:hover { filter: brightness(1.05); }
.t7-btn-sm-ghost {
    background: #fff;
    color: #333 !important;
    border-color: #cfd5de;
}
.t7-btn-sm-ghost:hover {
    border-color: var(--t7-shop-teal);
    color: var(--t7-shop-teal) !important;
}

/* 大图网格 */
.t7-shop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.t7-shop-card {
    background: #fff;
    border: 1px solid #e6e9ee;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow .2s;
}
.t7-shop-card:hover {
    box-shadow: 0 8px 22px rgba(30, 58, 95, .1);
}
.t7-shop-media {
    display: block;
    aspect-ratio: 1;
    background: #f5f6f8;
    overflow: hidden;
}
.t7-shop-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.t7-shop-body { padding: 12px 12px 14px; }
.t7-shop-body h2 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    min-height: 2.9em;
}
.t7-shop-body h2 a {
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.t7-shop-body h2 a:hover { color: var(--t7-shop-teal); }
.t7-shop-foot {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}
.t7-shop-foot strong {
    color: var(--t7-shop-price);
    font-size: 18px;
}
.t7-shop-foot span { color: #999; font-size: 12px; }
.t7-shop-card-actions {
    display: flex;
    gap: 8px;
}
.t7-shop-card-actions form { margin: 0; }

.t7-empty {
    text-align: center;
    padding: 56px 16px;
    background: #fff;
    border: 1px solid #e6e9ee;
    border-radius: 6px;
    color: #888;
}
.t7-shop .t7-pager { margin-top: 22px; }
.t7-shop .t7-pager a,
.t7-shop .t7-pager span { background: #fff; }
.t7-shop .t7-pager .is-current {
    background: var(--t7-shop-teal);
    border-color: var(--t7-shop-teal);
    color: #fff;
}

@media (max-width: 1024px) {
    .t7-shop-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .t7-shop-cats { flex-direction: column; gap: 8px; }
    .t7-shop-toolbar { flex-direction: column; align-items: stretch; }
    .t7-shop-toolbar-right { justify-content: space-between; }
    .t7-shop-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .t7-shop-ops { flex-direction: column; align-items: stretch; }
    .t7-shop-ops .t7-btn-sm { width: 100%; }
}
