.swiper {
    position: relative;
    overflow: hidden;
}

.swiper-wrapper {
    display: flex;
    transition: transform 0.45s ease;
}

.swiper-slide {
    min-width: 100%;
    flex: 0 0 100%;
}

.swiper-pagination {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.18rem;
    display: flex;
    justify-content: center;
    gap: 0.06rem;
}

.swiper-pagination-bullet {
    width: 0.18rem;
    height: 0.03rem;
    border-radius: 0.02rem;
    background: rgba(255, 255, 255, 0.5);
}

.swiper-pagination-bullet-active {
    background: #fff;
}

.price::before {
    content: "¥";
    margin-right: 0.01rem;
    font-size: 0.11rem;
}

.tag {
    position: absolute;
    top: 0.1rem;
    left: 0.1rem;
    padding: 0.02rem 0.07rem;
    color: var(--blue);
    background: var(--soft-blue);
    border-radius: 0.2rem;
    font-size: 0.1rem;
}

.card-actions {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 0.36rem 1fr;
    gap: 0.06rem;
    margin-top: 0.1rem;
}

.action-btn,
.primary-btn,
.ghost-btn {
    height: 0.36rem;
    border-radius: 0.18rem;
    cursor: pointer;
}

.action-btn {
    color: var(--blue);
    background: var(--soft-blue);
}

.primary-btn {
    display: inline-grid;
    place-items: center;
    padding: 0 0.2rem;
    color: #fff;
    background: var(--blue);
}

.ghost-btn {
    display: inline-grid;
    place-items: center;
    padding: 0 0.18rem;
    color: var(--text);
    background: #eef1f6;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 0.78rem;
    z-index: 90;
    max-width: 76vw;
    padding: 0.1rem 0.14rem;
    color: #fff;
    background: rgba(15, 23, 36, 0.88);
    border-radius: 0.12rem;
    opacity: 0;
    transform: translate(-50%, 0.12rem);
    transition: all 0.25s ease;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.page-title {
    padding: 0.18rem 0 0.12rem;
}

.page-title h1 {
    font-size: 0.24rem;
    font-weight: 600;
}

.page-title p,
.empty {
    color: var(--muted);
    font-size: 0.12rem;
}

.empty {
    padding: 0.32rem 0;
    text-align: center;
}

.search-bar {
    display: flex;
    gap: 0.08rem;
    padding: 0.1rem;
    background: var(--panel);
    border-radius: 0.18rem;
}

.search-bar input {
    flex: 1;
    min-width: 0;
    background: transparent;
}

.filter-row {
    display: flex;
    gap: 0.08rem;
    overflow-x: auto;
    padding: 0.14rem 0;
}

.filter-btn {
    flex: 0 0 auto;
    padding: 0.07rem 0.13rem;
    color: var(--muted);
    background: #fff;
    border-radius: 0.18rem;
}

.filter-btn.active {
    color: #fff;
    background: var(--deep);
}

.form-card {
    padding: 0.18rem;
    background: var(--panel);
    border-radius: 0.24rem;
    box-shadow: var(--shadow);
}

.form-line {
    width: 100%;
    height: 0.48rem;
    margin-bottom: 0.12rem;
    padding: 0 0.14rem;
    background: #f5f7fb;
    border-radius: 0.14rem;
}

.summary-bar {
    position: fixed;
    left: 50%;
    bottom: 0.58rem;
    z-index: 28;
    width: min(100vw, 480px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.1rem 0.16rem;
    background: #fff;
    border-top: 1px solid var(--line);
    transform: translateX(-50%);
}

.back-top {
    position: fixed;
    right: calc(50% - min(50vw, 240px) + 0.16rem);
    bottom: 0.88rem;
    z-index: 80;
    width: 0.42rem;
    height: 0.42rem;
    color: #fff;
    background: rgba(36, 41, 51, 0.78);
    border-radius: 50%;
    box-shadow: 0 0.08rem 0.22rem rgba(15, 23, 36, 0.18);
    opacity: 0;
    transform: translateY(0.14rem);
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: none;
}

.back-top.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@media (max-width: 360px) {
    :root { font-size: 92px; }
    .product-card img { height: 1.12rem; }
}

.globe {
    width: 0.18rem;
    height: 0.18rem;
    border: 0.02rem solid var(--text);
    border-radius: 50%;
}
