:root {
    --shop-primary: #F77B0B;
    --shop-primary-dark: #e06e00;
    --shop-bg: #f8fafc;
    --shop-border: #e2e8f0;
    --shop-text-muted: #64748b;
}

/* 主色覆盖为橙色（目标站 #F77B0B） */
.text-primary { color: #F77B0B !important; }
.bg-primary { background-color: #F77B0B !important; }
.border-primary { border-color: #F77B0B !important; }
.bg-soft-primary { background-color: rgba(247, 123, 11, 0.15) !important; }
.btn-primary {
    --bs-btn-bg: #F77B0B;
    --bs-btn-border-color: #F77B0B;
    --bs-btn-hover-bg: #e06e00;
    --bs-btn-hover-border-color: #e06e00;
    --bs-btn-active-bg: #e06e00;
    --bs-btn-active-border-color: #e06e00;
    --bs-btn-disabled-bg: #F77B0B;
    --bs-btn-disabled-border-color: #F77B0B;
    --bs-btn-focus-shadow-rgb: 247, 123, 11;
}
.btn-outline-primary {
    --bs-btn-color: #F77B0B;
    --bs-btn-border-color: #F77B0B;
    --bs-btn-hover-bg: #F77B0B;
    --bs-btn-hover-border-color: #F77B0B;
    --bs-btn-active-bg: #F77B0B;
    --bs-btn-active-border-color: #F77B0B;
    --bs-btn-hover-color: #fff;
    --bs-btn-focus-shadow-rgb: 247, 123, 11;
}
.btn-check:checked + .btn-primary, .btn-check:active + .btn-primary {
    background-color: #e06e00;
    border-color: #e06e00;
}
.form-control:focus, .form-select:focus {
    border-color: #f8b26a;
    box-shadow: 0 0 0 0.25rem rgba(247, 123, 11, 0.25);
}
.form-check-input:checked { background-color: #F77B0B; border-color: #F77B0B; }
.form-check-input:focus { border-color: #f8b26a; box-shadow: 0 0 0 0.25rem rgba(247, 123, 11, 0.25); }
.badge-primary { background-color: #F77B0B; }
.page-link { color: #F77B0B; }
.page-item.active .page-link { background-color: #F77B0B; border-color: #F77B0B; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #1e293b;
    background-color: var(--shop-bg);
}

/* 全局链接：无下划线（仿目标站） */
a { text-decoration: none !important; }
a:hover { text-decoration: none !important; }

.shop-main { min-height: 60vh; }

.shop-header .navbar-brand { letter-spacing: -0.5px; }
.shop-header .navbar-brand i { color: var(--shop-primary); }

.shop-footer a:hover { color: #fff !important; transition: color 0.2s; }

/* Hero banner */
.hero-banner .carousel-item img { filter: brightness(0.7); }
.hero-banner .carousel-caption { bottom: 30%; text-align: left; left: 8%; right: 8%; }
.hero-banner .carousel-caption h2 { font-size: 2.5rem; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }

/* Product card */
.product-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
}
.product-card .card-img-top { transition: transform 0.3s ease; }
.product-card:hover .card-img-top { transform: scale(1.04); }
.product-card .add-to-cart-btn { transition: all 0.2s ease; }
.product-card .add-to-cart-btn:hover {
    background: var(--shop-primary);
    color: #fff;
}

/* Category card */
.category-card {
    transition: transform 0.2s ease;
    border: 1px solid var(--shop-border) !important;
}
.category-card:hover {
    transform: translateY(-2px);
    border-color: var(--shop-primary) !important;
}

/* Trust badges */
.bi { transition: transform 0.2s ease; }
section.py-5:hover .bi { transform: scale(1.05); }

/* Responsive tweaks */
@media (max-width: 768px) {
    .hero-banner .carousel-caption h2 { font-size: 1.5rem; }
    .hero-banner .carousel-item img { height: 240px !important; }
    .navbar-brand { font-size: 1.2rem !important; }
}

/* Loading spinner for AJAX */
.ajax-loading {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast notifications */
.toast-container { z-index: 1090; }

/* ========== Top Banner（公告条，仿目标站） ========== */
.z-1035 { z-index: 1035; }
.top-banner img { display: block; }
.top-banner .h-50px { height: 50px; }
.top-banner .img-fit { object-fit: cover; }
@media (min-width: 992px) {
    .top-banner .h-lg-auto { height: auto; }
}
.absolute-top-right { position: absolute; top: 0; right: 0; }
.top-banner .top-banner-close {
    opacity: .8;
    text-shadow: 0 1px 2px rgba(0,0,0,.5);
    padding: .25rem .5rem;
}
.top-banner .top-banner-close:hover { opacity: 1; }

/* ========== Top Navbar（语言/登录条） ========== */
.border-soft-secondary { border-color: #eceef2 !important; }
.top-navbar { font-size: 13px; }
.top-navbar a { text-decoration: none; }
.top-navbar a:hover { color: var(--shop-primary) !important; }
.top-navbar .dropdown-toggle::after {
    font-size: 10px;
    vertical-align: 1px;
    margin-left: .35em;
}
.opacity-60 { opacity: .6; }
.opacity-80 { opacity: .8; }

/* ========== Logo Bar Area（Logo/搜索/图标条） ========== */
.logo-bar-area { font-size: 14px; }
.py-20px { padding: 20px 0; }
.h-30px { height: 30px; }
@media (min-width: 768px) { .h-md-40px { height: 40px; } }
.navbar-brand-shop { text-decoration: none; color: #1e293b; letter-spacing: -0.5px; }

/* 大搜索框（目标站 input-group 样式） */
.front-search-group { height: 44px; }
.front-search-group .form-control {
    border: 1px solid #dfe3e8;
    border-right: 0;
    border-radius: .375rem 0 0 .375rem;
    height: 44px;
    font-size: 14px;
}
.front-search-group .btn {
    border-radius: 0 .375rem .375rem 0;
    height: 44px;
    min-width: 52px;
    background: var(--shop-primary);
    border-color: var(--shop-primary);
}

/* ========== 统一搜索框：左侧类型下拉（商品/店铺） ========== */
.unified-search-group .unified-type-btn {
    background: rgba(247, 123, 11, .12);
    border: 1px solid #dfe3e8;
    border-right: 0;
    border-radius: .375rem 0 0 .375rem;
    color: var(--shop-primary);
    font-size: 13px;
    font-weight: 600;
    height: 44px;
    display: inline-flex;
    align-items: center;
    min-width: 86px;
    white-space: nowrap;
}
.unified-search-group .unified-type-btn:hover,
.unified-search-group .unified-type-btn:focus { color: var(--shop-primary); background: rgba(247, 123, 11, .2); }
.unified-search-group .unified-type-btn::after { margin-left: auto; }
.unified-search-group .form-control {
    border-left: 0;
    border-radius: 0;
}
.unified-search-group .form-control::placeholder { color: #94a3b8; }
.unified-type-menu {
    min-width: 100%;
    font-size: 13px;
    border-radius: .5rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .12);
    margin-top: 4px !important;
}
.unified-type-menu .dropdown-item { padding: .5rem .85rem; }
.unified-type-menu .dropdown-item i { width: 18px; }
.unified-type-menu .dropdown-item.active,
.unified-type-menu .dropdown-item:active { background: rgba(247, 123, 11, .12); color: var(--shop-primary); }

/* 店铺搜索下拉面板（实时建议 / 搜索历史） */
.shop-search-panel {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    min-width: 260px;
    background: #fff;
    border: 1px solid #eceef2;
    border-radius: .5rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .12);
    z-index: 1050;
    max-height: 420px;
    overflow-y: auto;
    padding: .35rem;
}
.shop-search-panel.show { display: block; }
.shop-search-panel .ssp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .45rem .65rem .35rem;
    font-size: 12px;
    color: #64748b;
}
.shop-search-panel .ssp-title { font-weight: 600; letter-spacing: .3px; }
.shop-search-panel .ssp-clear {
    border: 0;
    background: none;
    padding: 0;
    font-size: 12px;
    color: #64748b;
}
.shop-search-panel .ssp-clear:hover { color: var(--shop-primary); }
.shop-search-panel .ssp-item {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .5rem .65rem;
    border-radius: .375rem;
    color: #1e293b;
    font-size: 14px;
    cursor: pointer;
}
.shop-search-panel .ssp-item:hover,
.shop-search-panel .ssp-item.active { background: rgba(247, 123, 11, .08); }
.shop-search-panel .ssp-item .ssp-shop-ico {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(247, 123, 11, .12);
    color: var(--shop-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.shop-search-panel .ssp-item .ssp-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.shop-search-panel .ssp-item .ssp-name {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.shop-search-panel .ssp-item .ssp-meta { font-size: 12px; color: #94a3b8; }
.shop-search-panel .ssp-item.ssp-hist .ssp-name { font-weight: 500; }
/* 热门搜索词：序号徽标（前三橙色）+ 右侧次数 */
.shop-search-panel .ssp-item.ssp-hot .ssp-name { font-weight: 500; }
.shop-search-panel .ssp-item.ssp-hot .ssp-rank {
    width: 20px;
    height: 20px;
    border-radius: .3rem;
    background: #f1f3f7;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.shop-search-panel .ssp-item.ssp-hot .ssp-rank.top {
    background: rgba(247, 123, 11, .12);
    color: var(--shop-primary);
}
.shop-search-panel .ssp-item.ssp-hot .ssp-cnt {
    margin-left: auto;
    font-size: 12px;
    color: #94a3b8;
    flex-shrink: 0;
}
.shop-search-panel .ssp-item.ssp-all {
    justify-content: center;
    color: var(--shop-primary);
    font-weight: 600;
    border-top: 1px dashed #eceef2;
    margin-top: .2rem;
    border-radius: 0 0 .375rem .375rem;
}
.shop-search-panel .ssp-empty {
    text-align: center;
    color: #cbd5e1;
    padding: .9rem 0 .6rem;
    font-size: 26px;
}
.shop-search-panel .ssp-none,
.shop-search-panel .ssp-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: 1rem .5rem;
    color: #64748b;
    font-size: 14px;
}

/* 搜索关键词高亮（建议下拉 + 结果页） */
mark.search-hl {
    background: rgba(247, 123, 11, .18);
    color: #b45f06;
    padding: 0 2px;
    border-radius: 2px;
    font-weight: 700;
}


/* 图标导航条（compare/wishlist/cart） */
.la-2x { font-size: 1.9em; line-height: 1; }
.la-lg { font-size: 1.33em; }
.la-3x { font-size: 2.6em; }
.fs-18 { font-size: 18px; }
.la-flip-horizontal { transform: scaleX(-1); }
.nav-box-text { font-size: 13px; margin-left: 4px; }
.badge-inline {
    display: inline-block;
    min-width: 20px;
    height: 20px;
    line-height: 20px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    padding: 0 5px;
    color: #fff;
    background-color: var(--shop-primary);
}
#compare a:hover i, #wishlist a:hover i, #cart_items a:hover i { color: var(--shop-primary); }
.nav-cart-box .dropdown-menu { margin-top: 0; }
.list-inline-item { margin-right: .75rem; }

/* 主分类导航 */
.main-category-nav .nav-link { font-size: 14px; font-weight: 500; color: #364152; }
.main-category-nav .nav-link:hover { color: var(--shop-primary); }

/* 主导航菜单横条（仿目标站） */
.main-category-nav a { text-decoration: none; }
.main-category-nav a:hover { color: var(--shop-primary) !important; }
.fs-14 { font-size: 14px; }
.hov-opacity-100:hover { opacity: 1 !important; }
.mobile-hor-swipe {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.mobile-hor-swipe::-webkit-scrollbar { display: none; width: 0; }
.mobile-hor-swipe .list-inline-item { display: inline-block; float: none; }

/* 分类快捷条小卡（统一尺寸，消除参差） */
.cat-quick-card img {
    display: block;
    width: 100%;
    height: 78px;
    object-fit: cover;
}

/* 闪购页头 */
.flash-deal-header {
    background: linear-gradient(135deg, #dc2626 0%, #f97316 100%);
}

/* ========== 促销图横条 + 政策四格 + 页脚（仿目标站） ========== */
.promo-banner-img { display: block; transition: transform .2s ease; }
.promo-banner-img:hover { transform: translateY(-2px); }

.policy-links-section a { transition: background-color .15s ease; }
.policy-links-section a:hover { background-color: var(--shop-bg); }
.policy-links-section .h6 { font-weight: 600; margin-bottom: 0; }

.opacity-30 { opacity: .3; }
.opacity-50 { opacity: .5; }
.fs-13 { font-size: 13px; }
.border-gray-900 { border-color: #343a40 !important; }
.bg-black { background-color: #000; }
.w-300px { width: 300px; }
.h-40px { height: 40px; }
.pb-7 { padding-bottom: 4.5rem; }
.shadow-md { box-shadow: 0 .5rem 1.25rem rgba(0,0,0,.18) !important; }
.no-gutters { --bs-gutter-x: 0; --bs-gutter-y: 0; }
.footer-widget .form-control { background-color: #212529; border-color: #343a40; color: #f8f9fa; }
.footer-widget .form-control::placeholder { color: #6c757d; }

/* ========== Home Banner Area（左侧分类菜单 + 右侧轮播 + 分类快捷条） ========== */
.home-banner-area { font-size: 14px; }

/* 栅格间距（aiz gutters，Bootstrap5 需用 CSS 变量覆盖 .row 默认 --bs-gutter-x:1.5rem，否则列宽超出换行） */
.gutters-5 { --bs-gutter-x: 5px; --bs-gutter-y: 5px; margin-left: -2.5px; margin-right: -2.5px; }
.gutters-5 > * { padding-left: 2.5px; padding-right: 2.5px; }
.gutters-10 { --bs-gutter-x: 10px; --bs-gutter-y: 10px; margin-left: -5px; margin-right: -5px; }
.gutters-10 > * { padding-left: 5px; padding-right: 5px; }

/* 工具类 */
.fs-12 { font-size: 12px; }
.fs-16 { font-size: 16px; }
.fw-600 { font-weight: 600; }
.opacity-70 { opacity: .7; }
.minw-0 { min-width: 0; }
.img-fit { width: 100%; height: 100%; object-fit: cover; }
.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.no-scrollbar::-webkit-scrollbar { display: none; width: 0; }
.bg-soft-primary { background-color: #eef2ff !important; }

/* 左侧分类菜单 */
.aiz-category-menu .all-category { font-size: 16px; }
.aiz-category-menu .categories { max-height: 460px; overflow-y: auto; }
.category-nav-element > a { font-size: 14px; color: #2b2b2b; }
.category-nav-element > a:hover { color: var(--shop-primary); }
.category-nav-element > a:hover .cat-image { opacity: 1; }
.cat-image { width: 16px; height: 16px; object-fit: contain; vertical-align: middle; flex: none; }
.cat-name { font-size: 14px; line-height: 1.4; }

/* 轮播（aiz-carousel 风格：圆形箭头 + 底部圆点）
   注意：slick 接管的图集/缩略图/相关商品轮播不适用 315px 定高 */
.aiz-carousel:not(.slick-slider):not(.product-gallery):not(.product-gallery-thumb) .carousel-box img {
    width: 100%;
    height: 315px;
    border-radius: .375rem;
}
.dots-inside-bottom .carousel-indicators { bottom: 10px; margin-bottom: 0; z-index: 5; }
.dots-inside-bottom .carousel-indicators [data-bs-target] {
    width: 8px; height: 8px; border-radius: 50%;
    border: 0; margin: 0 4px; padding: 0;
    background-color: #fff; opacity: .5;
    box-shadow: 0 1px 3px rgba(0,0,0,.35);
    transition: opacity .2s ease;
    text-indent: 0;
}
.dots-inside-bottom .carousel-indicators .active { opacity: 1; }
.aiz-carousel .carousel-control-prev,
.aiz-carousel .carousel-control-next {
    width: 42px; height: 42px;
    top: 50%; bottom: auto; transform: translateY(-50%);
    display: flex; align-items: center; justify-content: center;
    background-color: rgba(255,255,255,.92);
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 1px 6px rgba(0,0,0,.15);
    transition: opacity .2s ease;
}
.aiz-carousel:hover .carousel-control-prev,
.aiz-carousel:hover .carousel-control-next { opacity: 1; }
.aiz-carousel .carousel-control-prev { left: 12px; }
.aiz-carousel .carousel-control-next { right: 12px; }
.aiz-carousel .carousel-control-prev i,
.aiz-carousel .carousel-control-next i { font-size: 26px; color: #2b2b2b; }

/* 分类快捷条小卡 */
.cat-quick-card { transition: all .2s ease; }
.cat-quick-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1.25rem rgba(0,0,0,.12) !important;
}
.cat-quick-card:hover .fs-12 { color: var(--shop-primary); }

/* ===== 用户面板（aiz 风格，目标站 .aiz-side-nav 结构） ===== */
.aiz-side-nav { border-radius: 15px; }
.aiz-user-head { position: relative; }
.aiz-user-head-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #F77B0B 0%, #e0472e 55%, #c62a3e 100%);
}
.aiz-user-avatar {
    width: 72px; height: 72px;
    background: rgba(255,255,255,.25);
    border: 3px solid rgba(255,255,255,.85);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
}
.user-menu-nav li a {
    color: #4b5563; font-size: .925rem; font-weight: 500;
    border-radius: 10px; margin: 2px 10px;
    transition: all .15s ease;
}
.user-menu-nav li a:hover {
    background: rgba(247,123,11,.08); color: #F77B0B;
}
.user-menu-nav li a.active {
    background: rgba(247,123,11,.12); color: #F77B0B; font-weight: 600;
}
.user-menu-divider { border-top: 1px dashed #e5e7eb; }
.menu-badge-new {
    font-size: 10px; font-weight: 700; letter-spacing: .5px;
    color: #fff; background: #16a34a;
    padding: 2px 7px; border-radius: 6px;
}

/* 渐变统计卡（目标站 dashboard 波浪卡） */
.stat-grad-card {
    position: relative; overflow: hidden;
    border-radius: 15px; padding: 20px 22px;
    min-height: 108px;
    box-shadow: 0 4px 14px rgba(16,24,40,.08);
}
.stat-grad-card .sc-wave {
    position: absolute; left: 0; right: 0; bottom: -2px;
    width: 100%; height: 44px; display: block;
}
.stat-grad-card .sc-value { font-size: 1.55rem; font-weight: 700; line-height: 1.25; }
.stat-grad-card .sc-label { font-size: .8rem; opacity: .9; }
.stat-grad-card .sc-icon { font-size: 2.1rem; opacity: .75; }
.sc-blue    { background: linear-gradient(135deg, #3b82f6 0%, #1e6fd9 100%); }
.sc-pink    { background: linear-gradient(135deg, #ec4899 0%, #d63384 100%); }
.sc-purple  { background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%); }
.sc-magenta { background: linear-gradient(135deg, #d946ef 0%, #b02a9e 100%); }
.sc-sky     { background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%); }
.sc-violet  { background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%); }
.sc-rose    { background: linear-gradient(135deg, #f43f5e 0%, #be123c 100%); }

/* VERIFIED 徽章卡 */
.verified-card { background: linear-gradient(180deg, #f8fffa 0%, #eefbf2 100%); }
.verified-badge svg circle[stroke-dasharray] { animation: verified-rotate 24s linear infinite; transform-origin: 60px 60px; }
@keyframes verified-rotate { to { transform: rotate(360deg); } }

/* 钱包 */
.wallet-balance-icon {
    width: 72px; height: 72px; border-radius: 50%;
    background: linear-gradient(135deg, #F77B0B 0%, #e0472e 100%);
    color: #fff; font-size: 2rem;
    display: flex; align-items: center; justify-content: center;
}

/* ===== 目标站 1:1 用户面板通用样式 ===== */
.aiz-user-panel { min-height: 400px; }
.aiz-user-panel .card { border: 0; box-shadow: 0 0 15px rgba(0,0,0,.06); border-radius: .5rem; }
.aiz-user-panel .card-header { background: #fff; border-bottom: 1px solid #f0f0f0; padding: 1rem 1.25rem; }
.aiz-user-panel .card-body { padding: 1.25rem; }
.aiz-user-panel .table > :not(caption) > * > * { padding: .75rem .5rem; vertical-align: middle; }
.aiz-user-panel .table thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .3px; color: #6c757d; border-bottom: 2px solid #f0f0f0; }
.aiz-user-panel .table tbody tr:hover { background: #fafafa; }

/* btn-soft-* 柔和按钮变体（目标站 aiz 风格） */
.btn-soft-primary { background: rgba(247,123,11,.12); color: #F77B0B; border: 1px solid transparent; }
.btn-soft-primary:hover { background: rgba(247,123,11,.2); color: #e06e00; }

/* 目标站店铺卡片样式 */
.box-3 { overflow: hidden; }
.row.no-gutters { --bs-gutter-x: 0; --bs-gutter-y: 0; }
.hov-shadow-md { transition: box-shadow .3s ease; }
.hov-shadow-md:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08) !important; }
.has-transition { transition: all .3s ease; }
.rating-sm { font-size: .8rem; }
.fw-600 { font-weight: 600; }
.border-light { border-color: #f1f1f1 !important; }
.bg-soft-primary { background: rgba(247,123,11,.08); }

/* ===== 分类页目标站样式 ===== */
/* utility */
.ml-2 { margin-left: .5rem !important; }
.fs-14 { font-size: .875rem !important; }
.fs-15 { font-size: .9375rem !important; }
.w-lg-200px { }
@media (min-width: 992px) { .w-lg-200px { width: 200px !important; } }

/* 双滑块价格范围（目标站 noUi-slider 外观） */
.aiz-range-slider { position: relative; }
.range-slider-container { position: relative; height: 6px; margin: 24px 8px; }
.range-slider-track { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: #e9ecef; border-radius: 3px; }
.range-slider-fill { position: absolute; top: 0; bottom: 0; background: #F77B0B; border-radius: 3px; }
.range-input { position: absolute; top: 50%; left: 0; width: 100%; height: 0; margin: 0; -webkit-appearance: none; appearance: none; background: none; pointer-events: none; outline: none; }
.range-input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid #F77B0B; box-shadow: 0 1px 4px rgba(0,0,0,.2); cursor: grab; }
.range-input::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid #F77B0B; box-shadow: 0 1px 4px rgba(0,0,0,.2); cursor: grab; }
.range-slider-value.value-low { }
.range-slider-value.value-high { }

/* aiz-selectpicker 下拉（目标站样式） */
select.aiz-selectpicker { cursor: pointer; }
select.aiz-selectpicker:focus { border-color: #F77B0B; box-shadow: 0 0 0 .2rem rgba(247,123,11,.15); }
.btn-soft-info { background: rgba(38,180,255,.12); color: #0d6efd; border: 1px solid transparent; }
.btn-soft-info:hover { background: rgba(38,180,255,.2); color: #0a58ca; }
.btn-soft-warning { background: rgba(255,193,7,.12); color: #ffc107; border: 1px solid transparent; }
.btn-soft-warning:hover { background: rgba(255,193,7,.2); color: #d39e00; }
.btn-soft-success { background: rgba(25,135,84,.12); color: #198754; border: 1px solid transparent; }
.btn-soft-success:hover { background: rgba(25,135,84,.2); color: #146c43; }
.btn-soft-danger { background: rgba(220,53,69,.12); color: #dc3545; border: 1px solid transparent; }
.btn-soft-danger:hover { background: rgba(220,53,69,.2); color: #b02a37; }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; }
.btn-circle { border-radius: 50%; width: 32px; height: 32px; padding: 0; }

/* aiz-filter-sidebar 移动端滑出筛选（目标站 class-toggle 行为） */
@media (max-width: 991.98px) {
    .aiz-filter-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 300px;
        max-width: 85%;
        background: #fff;
        z-index: 2000;
        overflow-y: auto;
        padding: 1rem;
        transform: translateX(-105%);
        transition: transform .3s ease;
        box-shadow: 0 0 1rem rgba(0, 0, 0, .15);
    }
    .aiz-filter-sidebar.opened { transform: translateX(0); }
    .aiz-filter-sidebar .close-filter {
        position: absolute;
        top: .5rem;
        right: .5rem;
        z-index: 1;
    }
}

/* aiz-pagination 分页 */
.aiz-pagination .pagination { justify-content: center; }
.aiz-pagination .page-item .page-link { border: 0; border-radius: .375rem; margin: 0 2px; color: #F77B0B; }
.aiz-pagination .page-item.active .page-link { background: #F77B0B; color: #fff; }
.aiz-pagination .page-item.disabled .page-link { color: #adb5bd; }
.ticket-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
    flex-shrink: 0;
}
.ticket-message { white-space: pre-wrap; word-break: break-word; color: #374151; }

/* 优惠券卡 */
.coupon-card {
    display: flex; align-items: stretch;
    background: #fff; border: 1px dashed #d1d5db; border-radius: 12px;
    overflow: hidden; position: relative;
}
.coupon-card::before,
.coupon-card::after {
    content: ''; position: absolute; left: 64px;
    width: 14px; height: 14px; border-radius: 50%;
    background: #f4f6f9; border: 1px dashed #d1d5db; z-index: 1;
}
.coupon-card::before { top: -8px; }
.coupon-card::after  { bottom: -8px; }
.coupon-left {
    width: 64px; flex-shrink: 0;
    background: linear-gradient(135deg, #F77B0B 0%, #e0472e 100%);
    color: #fff; font-size: 1.6rem;
    display: flex; align-items: center; justify-content: center;
}
.coupon-body { padding: 12px 16px; flex: 1; }
.coupon-action { display: flex; align-items: center; padding-right: 14px; }
.coupon-used, .coupon-expired { opacity: .55; filter: grayscale(.6); }
.coupon-available { border-color: #F77B0B; }

/* 移动端：轮播图高度自适应 */
@media (max-width: 991.98px) {
    .mobile-img-auto-height .carousel-box img { height: auto; }
}

/* ==================== 商品详情页 / 购物车 / 结算（目标站 aiz 1:1） ==================== */

/* 步骤指示条 aiz-steps arrow-divider */
.aiz-steps { margin-left: -6px; margin-right: -6px; }
.aiz-steps .col { padding-left: 6px; padding-right: 6px; }
.aiz-steps .col > div {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: .4rem;
    padding: 14px 8px;
    position: relative;
    min-height: 86px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.aiz-steps.arrow-divider .col:not(:first-child) > div::after,
.aiz-steps.arrow-divider .col:not(:first-child) > div::before {
    content: ''; position: absolute; left: 0; top: 50%; margin-top: -9px;
    border: 9px solid transparent; border-left-width: 0;
}
.aiz-steps.arrow-divider .col:not(:first-child) > div::before {
    left: -13px; border-right-color: #ececec; z-index: 1;
}
.aiz-steps.arrow-divider .col:not(:first-child) > div::after {
    left: -11px; border-right-color: #fff; z-index: 2;
}

/* 数量步进器 aiz-plus-minus */
.aiz-plus-minus {
    display: inline-flex; align-items: center;
    border: 1px solid #e8e8e8; border-radius: .4rem; overflow: hidden;
    background: #fff;
}
.aiz-plus-minus .input-number {
    border: 0; outline: none; text-align: center;
    -moz-appearance: textfield; appearance: textfield;
    min-width: 40px;
}
.aiz-plus-minus .input-number::-webkit-outer-spin-button,
.aiz-plus-minus .input-number::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.aiz-plus-minus .btn-light { background: #f8f9fa; border: 0; border-radius: 0; width: 34px; }
.aiz-plus-minus .btn-light:hover:not(:disabled) { background: #e9ecef; }

/* 单选大卡 aiz-megabox（地址/配送/支付选择） */
.aiz-megabox { position: relative; display: block; border: 1px solid #ececec; border-radius: .4rem; transition: all .2s ease; }
.aiz-megabox > input[type="radio"], .aiz-megabox > input[type="checkbox"] {
    position: absolute; opacity: 0; pointer-events: none;
}
.aiz-megabox-elem { border: 2px solid transparent; border-radius: .3rem; transition: border-color .2s ease; }
.aiz-megabox > input:checked + .aiz-megabox-elem { border-color: #F77B0B; }
.aiz-megabox:hover { border-color: #F77B0B; }
.aiz-rounded-check {
    width: 18px; height: 18px; border: 2px solid #c8c8c8; border-radius: 50%;
    display: inline-block; position: relative; transition: all .2s ease;
}
.aiz-megabox > input:checked + .aiz-megabox-elem .aiz-rounded-check { border-color: #F77B0B; }
.aiz-megabox > input:checked + .aiz-megabox-elem .aiz-rounded-check::after {
    content: ''; position: absolute; inset: 3px; background: #F77B0B; border-radius: 50%;
}

/* 复选 aiz-checkbox */
.aiz-checkbox { display: inline-flex; align-items: center; cursor: pointer; }
.aiz-checkbox input { display: none; }
.aiz-square-check {
    width: 18px; height: 18px; border: 2px solid #c8c8c8; border-radius: .25rem;
    display: inline-block; margin-right: .5rem; position: relative; transition: all .2s ease;
}
.aiz-checkbox input:checked + .aiz-square-check { border-color: #F77B0B; background: #F77B0B; }
.aiz-checkbox input:checked + .aiz-square-check::after {
    content: ''; position: absolute; left: 4px; top: 0;
    width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* 尺寸工具类 */
.size-20px { width: 20px; height: 20px; }
.size-40px { width: 40px; height: 40px; }
.size-50px { width: 50px; height: 50px; }
.size-60px { width: 60px; height: 60px; }
.size-80px { width: 80px; height: 80px; }
.h-35px { height: 35px; }
.h-120px { height: 120px; }
.h-140px { height: 140px; }
.h-110px { height: 110px; }
.h-80px { height: 80px; }
.h-md-210px { }
@media (min-width: 768px) { .h-md-210px { height: 210px; } }
.w-md-80px { }
@media (min-width: 768px) { .w-md-80px { width: 80px; } }
.h-xl-80px { }
.h-xxl-110px { }
@media (min-width: 1200px) { .h-xl-80px { height: 80px; } .h-xxl-110px { height: 110px; } }
.mr-2 { margin-right: .5rem !important; }
.mr-3 { margin-right: 1rem !important; }
.pl-0 { padding-left: 0 !important; }
.pl-3 { padding-left: 1rem !important; }
.pl-4 { padding-left: 1.5rem !important; }
.pr-0 { padding-right: 0 !important; }
.fw-700 { font-weight: 700; }
.fs-10 { font-size: 10px; }
.fs-17 { font-size: 17px; }
.fs-20 { font-size: 20px; }
.border-width-4 { border-width: 4px !important; }

/* 移动端底部快捷导航（1:1 目标站 .aiz-mobile-bottom-nav） */
.aiz-mobile-bottom-nav { z-index: 1030; }
.aiz-mobile-bottom-nav .mnav-active-icon { color: var(--shop-primary) !important; }
.fs-18 { font-size: 18px; }
.lh-1-4 { line-height: 1.4; }
.width-100 { width: 100%; }
.d-table { display: table !important; }
.d-table-cell { display: table-cell !important; }
.text-truncate-2 {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; line-height: 1.4;
}
.gry-bg { background-color: #f7f8f9; }
.border-gray-200 { border-color: #e9ecef !important; }

/* ===== 商品图集（slick：主图 fade 切换 + 缩略图导航） ===== */
.product-gallery img { width: 100%; }
.product-gallery .slick-slide { margin: 0; }
/* slick 未初始化前仅显示首图，避免整列闪现 */
.product-gallery:not(.slick-initialized) .carousel-box:not(:first-child) { display: none; }

.product-gallery-thumb .carousel-box {
    border: 1px solid #ececec; border-radius: .375rem; padding: 2px;
}
.product-gallery-thumb .carousel-box img {
    width: 50px; height: 50px; object-fit: cover; display: block; margin: 0 auto;
}
.product-gallery-thumb .slick-slide { padding: 0 0 6px; }
.product-gallery-thumb.slick-vertical .slick-slide { display: block; height: auto; }
.product-gallery-thumb .slick-slide.slick-current .carousel-box { border-color: #F77B0B !important; }

/* slick 箭头（目标站圆形白底箭头，hover 橙） */
.slick-prev, .slick-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 34px; height: 34px; border-radius: 50%; border: 0;
    background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .18);
    z-index: 6; display: flex; align-items: center; justify-content: center;
    color: #4b5666; font-size: 18px; line-height: 1; padding: 0;
}
.slick-prev:hover, .slick-next:hover { background: var(--shop-primary); color: #fff; }
.slick-prev { left: 6px; }
.slick-next { right: 6px; }
.slick-prev.slick-disabled, .slick-next.slick-disabled { opacity: .35; pointer-events: none; }
/* 竖排缩略图箭头：上下居中，图标旋转 */
.slick-vertical .slick-prev { top: -8px; left: 50%; transform: translateX(-50%); }
.slick-vertical .slick-next { top: auto; bottom: -8px; left: 50%; transform: translateX(-50%); }
.slick-vertical .slick-prev i { transform: rotate(90deg); }
.slick-vertical .slick-next i { transform: rotate(-90deg); }
/* 相关商品轮播箭头半出容器 */
.half-outside-arrow .slick-prev { left: -14px; }
.half-outside-arrow .slick-next { right: -14px; }

/* ===== jsSocials 分享（目标站圆形描边图标，hover 填充品牌色） ===== */
.jssocials-shares { display: flex; flex-wrap: wrap; margin: 0; padding: 0; }
.jssocials-share { display: inline-block; margin: 0 .3rem .3rem 0; }
.jssocials-share-link {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid #e3e7eb; background: #fff; color: #787878;
    font-size: 17px; transition: all .2s ease;
}
.jssocials-share-link:hover { border-color: transparent; color: #fff; }
.jssocials-share-link .jssocials-share-logo { font-size: 17px; }
.jssocials-share-email .jssocials-share-link:hover { background: var(--shop-primary); }
.jssocials-share-twitter .jssocials-share-link:hover { background: #00aced; }
.jssocials-share-facebook .jssocials-share-link:hover { background: #3b5998; }
.jssocials-share-linkedin .jssocials-share-link:hover { background: #0e76a8; }
.jssocials-share-whatsapp .jssocials-share-link:hover { background: #25d366; }
.img-zoom { overflow: hidden; }
.img-zoom img { transition: transform .35s ease; }
.img-zoom:hover img { transform: scale(1.06); }

/* 富文本描述 */
.aiz-editor-data { font-size: 15px; line-height: 1.7; color: #3e3e3e; word-wrap: break-word; }
.aiz-editor-data img { max-width: 100%; height: auto; }
.aiz-editor-data p { margin-bottom: .8rem; }
.aiz-editor-data table { max-width: 100%; }

/* 分隔符「或」 */
.separator { position: relative; border-top: 1px solid #ececec; height: 1px; margin: 1.25rem 0; }
.separator > span {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: #fff; padding: 0 1rem;
}

/* 相关商品横滑轮播（数据驱动 flex 横滚，替代 slick） */
.aiz-carousel.scroll-x { display: flex; overflow-x: auto; scroll-behavior: smooth; }
.aiz-carousel.scroll-x .carousel-box { flex: 0 0 50%; }
@media (min-width: 576px) { .aiz-carousel.scroll-x .carousel-box { flex: 0 0 33.333%; } }
@media (min-width: 768px) { .aiz-carousel.scroll-x .carousel-box { flex: 0 0 25%; } }
@media (min-width: 1200px) { .aiz-carousel.scroll-x .carousel-box { flex: 0 0 33.333%; } }
.aiz-carousel.scroll-x::-webkit-scrollbar { height: 6px; }
.aiz-carousel.scroll-x::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }

/* 卖家卡社交图标 */
.social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 40px; }
.social a i { font-size: 20px; }
.social a:hover i { color: #F77B0B !important; }

/* 评分星星（la 图标） */
.rating .las { color: #F5A623; }
.rating .la-star-o, .rating .lar { color: #c8c8c8; }
.rating-sm .las, .rating-sm .lar, .rating-sm .la-star-o { font-size: 12px; }

/* add-to-cart 模态 */
#addToCart .modal-content { border-radius: .5rem; }

/* 徽章 coin（卖家卡右上） */
.coin-badge { width: 22px; height: 34px; }

/* ========== 移动端搜索条：全宽覆盖滑下（1:1 目标站 .front-header-search class-toggle 模式） ========== */
@media (max-width: 991.98px) {
    .front-header-search {
        position: absolute;
        z-index: 5;
        top: 0; left: 0; right: 0;
        width: 100%; height: 100%;
        background: #fff;
        opacity: 0;
        transform: translateY(-100%);
        -webkit-transform: translateY(-100%);
        transition: all .3s;
        -webkit-transition: all .3s;
        padding: 0 4px;
    }
    .front-header-search.active {
        opacity: 1;
        transform: translateY(0);
        -webkit-transform: translateY(0);
    }
    /* 类型下拉收窄为纯图标，最大化输入框宽度 */
    .unified-search-group .unified-type-btn { min-width: 46px; padding: .375rem .55rem; }
    .unified-search-group .unified-type-btn .mx-1 { display: none; }
    .unified-search-group .unified-type-btn::after { margin-left: 1px; }
    .search-back-btn { color: #1e293b; }
}
.search-back-btn { flex: 0 0 auto; }

/* ========== 移动端面板横滑标签条（P-78）：<992px 菜单一行横滑，正文立即可见 ========== */
/* P-78b 修复：去 scroll-snap（部分安卓 WebView/iOS 横滑卡死回弹），显式 touch-action 允许横滑 */
.panel-tabs-nav ul {
    gap: 8px;
    padding: 2px 4px 4px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}
.panel-tabs-nav ul::-webkit-scrollbar { display: none; }
.panel-tabs-nav li { flex: 0 0 auto; }
.panel-tabs-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    padding: 8px 14px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #eceef2;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color .15s, background .15s, border-color .15s;
}
.panel-tabs-nav a i { font-size: 16px; }
.panel-tabs-nav a.active {
    background: rgba(247, 123, 11, .12);
    border-color: var(--shop-primary);
    color: var(--shop-primary);
    font-weight: 600;
}
.panel-tabs-nav a.ptn-logout { color: #dc3545; }
.panel-tabs-nav a.ptn-logout i { opacity: .7; }
.panel-tabs-nav .menu-badge-new {
    margin-left: 2px;
    flex: 0 0 auto;
}

