/* ===== Zone Filter (top horizontal) ===== */
.zone-filter {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.zone-filter-scroll {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 12px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.zone-filter-scroll::-webkit-scrollbar { display: none; }
.zone-chip {
    flex-shrink: 0;
    padding: 6px 16px;
    border-radius: 18px;
    background: #f5f5f5;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.zone-chip:hover { background: #e8e8e8; }
.zone-chip.active {
    background: var(--gradient);
    color: #fff;
    font-weight: 600;
}

/* ===== Goods Layout ===== */
.goods-layout {
    max-width: 1200px;
    margin: 12px auto;
    padding: 0 12px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

/* ===== Country Sidebar ===== */
.country-sidebar {
    flex-shrink: 0;
    width: 120px;
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 10px 0;
    position: sticky;
    top: 56px;
}
.country-item {
    display: block;
    padding: 9px 12px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-left: 3px solid transparent;
}
.country-item:hover { background: #f7f7f7; }
.country-item.active {
    color: var(--primary);
    font-weight: 600;
    border-left-color: var(--primary);
    background: rgba(110,69,226,0.05);
}

/* ===== Goods Main ===== */
.goods-main {
    flex: 1;
    min-width: 0;
}
.goods-toolbar {
    margin-bottom: 10px;
}
.goods-count {
    font-size: 13px;
    color: #999;
}

/* ===== Goods Grid ===== */
.goods-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.goods-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.goods-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.goods-card-img {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}
.goods-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.goods-card-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 14px;
}
.goods-card-stock-out {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 16px;
    font-weight: 600;
}
.goods-card-body {
    padding: 8px 10px;
}
.goods-card-name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 34px;
    margin-bottom: 6px;
}
.goods-card-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 4px;
}
.goods-card-sale {
    font-size: 16px;
    font-weight: 700;
    color: #e4393c;
}
.goods-card-line {
    font-size: 12px;
    color: #bbb;
    text-decoration: line-through;
}
.goods-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 4px;
}
.goods-card-tag {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 3px;
    background: rgba(110,69,226,0.08);
    color: var(--primary);
}
.goods-card-tag.stock { background: rgba(255,154,60,0.1); color: #ff9a3c; }
.goods-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #aaa;
}

/* ===== Pager ===== */
.goods-pager {
    text-align: center;
    padding: 16px 0;
}
.pager-btn {
    display: inline-block;
    padding: 7px 20px;
    border-radius: 20px;
    background: #fff;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.2s;
    margin: 0 4px;
}
.pager-btn:hover { background: var(--gradient); color: #fff; }
.pager-btn.disabled { color: #ccc; cursor: not-allowed; }
.pager-btn.disabled:hover { background: #fff; color: #ccc; }
.pager-info {
    font-size: 13px;
    color: #999;
    margin: 0 8px;
}

/* ===== Tablet (768px+) ===== */
@media (min-width: 768px) {
    .zone-filter-scroll { padding: 12px 16px; }
    .zone-chip { font-size: 14px; padding: 7px 20px; }

    .goods-layout { padding: 0 16px; margin: 16px auto; gap: 16px; }
    .country-sidebar { width: 150px; top: 60px; }
    .country-item { font-size: 14px; padding: 11px 14px; }

    .goods-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .goods-card-name { font-size: 14px; }
    .goods-card-sale { font-size: 18px; }
}

/* ===== PC (1024px+) ===== */
@media (min-width: 1024px) {
    .zone-filter-scroll { padding: 12px 20px; }
    .zone-chip { font-size: 14px; padding: 8px 24px; }

    .goods-layout { padding: 0 20px; margin: 20px auto; gap: 20px; }
    .country-sidebar { width: 170px; top: 64px; }
    .country-item { font-size: 15px; padding: 12px 16px; }

    .goods-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
    .goods-card-name { font-size: 14px; }
    .goods-card-sale { font-size: 20px; }
    .goods-card-body { padding: 10px 12px; }
}
