
:root{
  --bg:#fffaf7;
  --surface:#ffffff;
  --surface-2:#fff4ec;
  --text:#111827;
  --muted:#6b7280;
  --line:#e5e7eb;
  --brand:#dc2626;
  --brand-2:#f97316;
  --shadow:0 12px 36px rgba(17,24,39,.08);
  --radius:24px;
}
.buyer{
  --brand:#e11d48;
  --brand-2:#f97316;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background:linear-gradient(180deg,#fffaf7 0%,#ffffff 100%);
  color:var(--text);
}
a{text-decoration:none;color:inherit}
button,input,select,textarea{font:inherit}
img{max-width:100%;display:block}
.btn:focus-visible,
.nav a:focus-visible,
.nav button:focus-visible,
.menu-btn:focus-visible,
.cart-btn:focus-visible,
.add-btn:focus-visible,
.qty button:focus-visible,
.drawer-list-item:focus-visible,
.drawer-select:focus-visible,
.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible{
  outline:none;
  box-shadow:0 0 0 3px rgba(225,29,72,.18), 0 0 0 1px rgba(225,29,72,.55);
}
.container{
  width:min(1160px, calc(100vw - 32px));
  margin:0 auto;
}
.topbar{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.86);
  border-bottom:1px solid rgba(229,231,235,.8);
  backdrop-filter: blur(12px);
}
.topbar-inner{
  min-height:68px;
  display:flex; align-items:center; justify-content:space-between;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:800; font-size:20px;
}
.brand-dot{
  width:34px;height:34px;border-radius:12px;
  background:linear-gradient(135deg,var(--brand),var(--brand-2));
}
.nav{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
}
.nav a, .nav button{
  padding:10px 14px; border-radius:999px; border:1px solid var(--line);
  background:#fff; font-size:14px; font-weight:700; color:#111827;
}
.nav .primary{
  color:#fff; border:none;
  background:linear-gradient(135deg,var(--brand),var(--brand-2));
  box-shadow:0 10px 24px rgba(220,38,38,.18);
}
.menu-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
  cursor:pointer;
}
.cart-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  height:44px;
  padding:0 14px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
  cursor:pointer;
  font-weight:900;
  font-size:14px;
  white-space:nowrap;
}
.cart-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#111827;
}
.cart-label{display:inline}
.cart-badge{
  min-width:22px;
  height:22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 7px;
  border-radius:999px;
  color:#fff;
  background:linear-gradient(135deg,var(--brand),var(--brand-2));
  font-weight:900;
  font-size:12px;
}
.cart-overlay{
  position:fixed;
  inset:0;
  background:rgba(17,24,39,.45);
  backdrop-filter: blur(8px);
  z-index:85;
  opacity:0;
  pointer-events:none;
  transition: opacity .15s ease;
}
.cart-overlay.open{
  opacity:1;
  pointer-events:auto;
}
.cart-drawer{
  position:absolute;
  top:0;
  right:0;
  height:100%;
  width:min(92vw, 420px);
  background:#fff;
  border-left:1px solid rgba(229,231,235,.9);
  box-shadow:0 18px 60px rgba(17,24,39,.22);
  transform: translateX(100%);
  transition: transform .18s ease;
  padding:16px;
  display:flex;
  flex-direction:column;
}
.cart-overlay.open .cart-drawer{
  transform: translateX(0);
}
.cart-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding-bottom:10px;
  border-bottom:1px solid rgba(229,231,235,.9);
  margin-bottom:12px;
}
.cart-title{font-weight:900}
.cart-back{
  border:1px solid var(--line);
  background:#fff;
  padding:10px 12px;
  border-radius:14px;
  font-weight:900;
  cursor:pointer;
}
.cart-hidden{display:none}
.cart-close{
  border:1px solid var(--line);
  background:#fff;
  padding:10px 12px;
  border-radius:14px;
  font-weight:900;
  cursor:pointer;
}
.cart-items{
  display:grid;
  gap:12px;
  overflow:auto;
  flex:1;
  padding-bottom:12px;
}
.cart-item{
  display:grid;
  grid-template-columns:64px 1fr;
  gap:12px;
  padding:12px;
  border-radius:18px;
  border:1px solid var(--line);
  background:#fff;
}
.cart-item img{
  width:64px;
  height:64px;
  border-radius:14px;
  object-fit:cover;
  border:1px solid rgba(229,231,235,.9);
}
.cart-item-title{font-weight:900; font-size:14px; line-height:1.3}
.cart-item-meta{margin-top:4px; font-size:12px; color:var(--muted)}
.cart-item-row{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:10px}
.qty{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid var(--line);
  border-radius:999px;
  padding:6px 8px;
}
.qty button{
  width:36px;
  height:36px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  font-weight:900;
  cursor:pointer;
}
.qty span{min-width:18px; text-align:center; font-weight:900}
.cart-foot{
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid rgba(229,231,235,.9);
  margin-top:auto;
  background:#fff;
  padding-bottom:calc(12px + env(safe-area-inset-bottom));
}
.cart-subtotal{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:12px;
}
.add-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  font-weight:900;
  cursor:pointer;
  font-size:13px;
}
.add-btn.primary{
  color:#fff;
  border:none;
  background:linear-gradient(135deg,var(--brand),var(--brand-2));
}
.menu-icon{
  display:grid;
  gap:5px;
}
.menu-icon span{
  display:block;
  width:18px;
  height:2px;
  background:#111827;
  border-radius:999px;
}
.drawer-overlay{
  position:fixed;
  inset:0;
  background:rgba(17,24,39,.45);
  backdrop-filter: blur(8px);
  z-index:80;
  opacity:0;
  pointer-events:none;
  transition: opacity .15s ease;
}
.drawer-overlay.open{
  opacity:1;
  pointer-events:auto;
}
.drawer{
  position:absolute;
  top:0;
  left:0;
  height:100%;
  width:min(86vw, 360px);
  background:#fff;
  border-right:1px solid rgba(229,231,235,.9);
  box-shadow:0 18px 60px rgba(17,24,39,.22);
  transform: translateX(-100%);
  transition: transform .18s ease;
  padding:16px;
  overflow:auto;
}
.drawer-overlay.open .drawer{
  transform: translateX(0);
}
.drawer-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding-bottom:10px;
  border-bottom:1px solid rgba(229,231,235,.9);
  margin-bottom:12px;
}
.drawer-title{font-weight:900}
.drawer-back{
  border:1px solid var(--line);
  background:#fff;
  padding:10px 12px;
  border-radius:14px;
  font-weight:900;
  cursor:pointer;
}
.drawer-close{
  border:1px solid var(--line);
  background:#fff;
  padding:10px 12px;
  border-radius:14px;
  font-weight:900;
  cursor:pointer;
}
.drawer-hidden{display:none}
.drawer-section{margin-top:14px}
.drawer-label{font-size:13px;font-weight:900;color:#111827}
.drawer-subtext{margin-top:6px;color:var(--muted);font-size:12px}
.drawer-list{display:grid;gap:10px;margin-top:10px}
.drawer-list-item{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:14px 14px;
  border-radius:18px;
  border:1px solid var(--line);
  background:#fff;
  font-size:14px;
  font-weight:900;
  cursor:pointer;
  text-align:left;
}
.drawer-list-item::after{
  content:"";
  width:8px;
  height:8px;
  border-top:2px solid rgba(17,24,39,.45);
  border-right:2px solid rgba(17,24,39,.45);
  transform: rotate(45deg);
  flex:0 0 auto;
}
.drawer-list-item.active{
  color:#fff;
  border:none;
  background:linear-gradient(135deg,var(--brand),var(--brand-2));
  box-shadow:0 10px 24px rgba(220,38,38,.18);
}
.drawer-list-item.active::after{
  border-top-color: rgba(255,255,255,.9);
  border-right-color: rgba(255,255,255,.9);
}
.drawer-list-item.subtle{
  background:transparent;
  border:1px dashed rgba(107,114,128,.5);
  color:#374151;
}
.drawer-list-item.subtle::after{display:none}
.drawer-select{
  width:100%;
  border:1px solid var(--line);
  border-radius:18px;
  padding:12px 14px;
  background:#fff;
  font-weight:900;
  outline:none;
  margin-top:10px;
}
.drawer-link{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px 14px;
  border-radius:18px;
  border:1px solid var(--line);
  background:#fff;
  font-weight:900;
  margin-top:10px;
}
.page{
  padding:34px 0 50px;
}
.page #featured{padding-top:6px}
.product-title{
  margin:12px 0 10px;
  font-size:clamp(24px, 5vw, 34px);
  line-height:1.15;
}
.thumbs{
  display:flex;
  gap:10px;
  padding:12px;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
  border-top:1px solid rgba(229,231,235,.9);
  background:#fff;
}
.thumbs::-webkit-scrollbar{display:none}
.thumb{
  flex:0 0 auto;
  width:64px;
  height:64px;
  border-radius:16px;
  border:1px solid rgba(229,231,235,.9);
  background:#fff;
  overflow:hidden;
  padding:0;
  cursor:pointer;
}
.thumb.active{
  border-color:rgba(225,29,72,.65);
  box-shadow:0 0 0 3px rgba(225,29,72,.14);
}
.thumb img{width:100%;height:100%;object-fit:cover}
.buybar{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:60;
  background:rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-top:1px solid rgba(229,231,235,.9);
}
.buybar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
  padding-bottom:calc(10px + env(safe-area-inset-bottom));
}
.buybar-meta{min-width:0}
.buybar-title{
  font-weight:900;
  font-size:13px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:52vw;
}
.buybar-price{margin-top:2px;font-weight:900}
.top-search{
  position:sticky;
  top:68px;
  z-index:45;
  background:rgba(255,255,255,.86);
  border-bottom:1px solid rgba(229,231,235,.8);
  backdrop-filter: blur(12px);
}
.top-intro{
  padding-top:12px;
  font-size:13px;
  font-weight:900;
  color:#111827;
  opacity:.92;
}
.top-search .search-bar{
  margin-top:0;
  padding:14px 0;
}
.dept-scroll{
  display:flex;
  gap:10px;
  overflow:auto;
  -webkit-overflow-scrolling: touch;
  padding:0 0 12px;
}
.dept-scroll::-webkit-scrollbar{display:none}
.dept-chip{
  flex:0 0 auto;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  font-size:13px;
  font-weight:900;
  cursor:pointer;
  white-space:nowrap;
}
.dept-chip.active{
  color:#fff;
  border:none;
  background:linear-gradient(135deg,var(--brand),var(--brand-2));
  box-shadow:0 10px 24px rgba(220,38,38,.18);
}
.hero{
  background:linear-gradient(135deg,#ffffff 0%, #fff1e8 100%);
  border:1px solid rgba(251,146,60,.2);
  border-radius:30px;
  box-shadow:var(--shadow);
  overflow:hidden;
}
.hero-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:24px;
  padding:28px;
}
.search-wrap{margin-top:14px}
.search-bar{
  display:flex;
  gap:10px;
  align-items:center;
  margin-top:12px;
}
.search-input{
  flex:1;
  min-width:220px;
  border:1px solid var(--line);
  border-radius:999px;
  padding:14px 16px;
  background:#fff;
  outline:none;
  font-weight:700;
}
.filter-row{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  margin-top:12px;
}
.chip-row{display:flex; gap:8px; flex-wrap:wrap}
.chip{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
}
.chip.active{
  color:#fff;
  border:none;
  background:linear-gradient(135deg,var(--brand),var(--brand-2));
  box-shadow:0 10px 24px rgba(220,38,38,.18);
}
.sort-row{display:flex; gap:10px; align-items:center}
.sort-select{
  border:1px solid var(--line);
  border-radius:999px;
  padding:10px 12px;
  background:#fff;
  font-size:13px;
  font-weight:800;
  outline:none;
}
.ai-bar{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  margin-top:12px;
  padding:10px 12px;
  border-radius:18px;
  border:1px solid rgba(229,231,235,.9);
  background:rgba(255,255,255,.6);
}
.ai-panel{padding:16px}
.ai-ask{
  display:flex;
  gap:10px;
  align-items:center;
}
.ai-ask-input{
  flex:1;
  min-width:0;
  border:1px solid var(--line);
  border-radius:999px;
  padding:12px 14px;
  background:#fff;
  outline:none;
  font-weight:800;
  font-size:16px;
}
.ai-ask-btn{flex:0 0 72px;padding:10px 0;font-size:13px}
.ai-suggest{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:12px;
}

#ai-assistant .ai-panel{
  background:linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,241,232,.92));
  border:1px solid rgba(251,146,60,.22);
}
.ai-title{
  font-size:13px;
  font-weight:900;
  color:#111827;
}
.ai-actions{display:flex; gap:8px; flex-wrap:wrap; align-items:center}
.ai-btn{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  font-size:13px;
  font-weight:900;
  cursor:pointer;
}
.ai-btn.active{
  color:#fff;
  border:none;
  background:linear-gradient(135deg,var(--brand),var(--brand-2));
  box-shadow:0 10px 24px rgba(220,38,38,.18);
}
.ai-btn.subtle{
  background:transparent;
  border:1px dashed rgba(107,114,128,.5);
  color:#374151;
}
.kicker{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px; border-radius:999px;
  background:#fff7ed; border:1px solid #fed7aa; color:#9a3412;
  font-size:13px; font-weight:700;
}
.hero h1{
  margin:16px 0 12px;
  font-size:clamp(30px,4vw,52px);
  line-height:1.05;
}
.hero p{
  margin:0;
  line-height:1.7;
  color:var(--muted);
  font-size:16px;
}
.hero-actions{display:flex; gap:12px; flex-wrap:wrap; margin-top:22px}
.trust-bar{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-top:16px;
}
.trust-item{
  padding:10px 12px;
  border-radius:16px;
  border:1px solid rgba(229,231,235,.9);
  background:rgba(255,255,255,.7);
  font-size:13px;
  font-weight:800;
  color:#111827;
  text-align:center;
}
.hero-products{
  padding:0 28px 22px;
}
.hero-products-head{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:12px;
  margin-top:4px;
  margin-bottom:12px;
}
.hero-products-title{
  margin:0;
  font-size:18px;
  font-weight:900;
}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:13px 18px; border-radius:999px; border:1px solid var(--line);
  background:#fff; font-weight:800; cursor:pointer;
}
.btn.primary{
  color:#fff; border:none;
  background:linear-gradient(135deg,var(--brand),var(--brand-2));
}
.hero-side{
  background:#fff; border:1px solid var(--line);
  border-radius:24px; padding:18px; box-shadow:var(--shadow);
}
.hero-side h3{margin:0 0 8px;font-size:18px}
.hero-side p{font-size:14px}
.hero-mini-head{display:flex;justify-content:space-between;align-items:end;gap:10px;margin-bottom:10px}
.chat{
  display:grid; gap:10px; margin-top:14px;
}
.bubble{
  max-width:92%; padding:13px 14px; border-radius:18px; font-size:14px; line-height:1.6;
}
.bubble.system{background:#fff7ed;border:1px solid #fed7aa}
.bubble.user{background:#111827;color:#fff;margin-left:auto}
.section{
  padding:24px 0;
}
.section-head{
  display:flex; justify-content:space-between; align-items:end; gap:16px;
  margin-bottom:16px;
}
.section-head h2{
  margin:0; font-size:28px;
}
.section-head p{
  margin:8px 0 0; max-width:760px; line-height:1.7; color:var(--muted);
}
.grid{
  display:grid; gap:16px;
}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.masonry{
  columns:3;
  column-gap:16px;
}
.masonry-2{columns:2}
.masonry .card,
.masonry .panel{
  display:inline-block;
  width:100%;
  margin:0 0 16px;
  break-inside:avoid;
}
.carousel-scroll{
  display:flex; gap:16px; overflow:auto; padding:4px 0 16px;
  -webkit-overflow-scrolling:touch;
}
.carousel-scroll::-webkit-scrollbar{display:none}
.carousel-scroll .card{
  flex:0 0 min(85%,360px);
}
.card{
  background:#fff;
  border:1px solid rgba(229,231,235,.9);
  border-radius:24px;
  overflow:hidden;
  box-shadow:0 10px 30px rgba(17,24,39,.08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover{
  transform: translateY(-2px);
  border-color: rgba(17,24,39,.12);
  box-shadow:0 16px 44px rgba(17,24,39,.12);
}
.card img{
  width:100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.card-body{
  padding:16px;
  display:grid;
  gap:10px;
}
.card h3{
  margin:0;
  font-size:16px;
  line-height:1.3;
  display:-webkit-box;
  -webkit-line-clamp:2;
  line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.card p{
  margin:0;
  color:var(--muted);
  line-height:1.65;
  font-size:13px;
  display:-webkit-box;
  -webkit-line-clamp:3;
  line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.card-link{
  display:block;
}
.tag{
  display:inline-flex; padding:6px 10px; border-radius:999px;
  background:#fff7ed; color:#9a3412; font-size:12px; font-weight:700;
}
.badge-row{display:flex; gap:8px; flex-wrap:wrap; align-items:center}
.card-meta-row{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:nowrap;
  min-width:0;
}
.card-cat{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}
.meta-pill{
  display:inline-flex;
  align-items:center;
  height:22px;
  padding:0 9px;
  border-radius:999px;
  border:1px solid rgba(16,185,129,.26);
  background:rgba(16,185,129,.10);
  color:#065f46;
  font-weight:900;
  font-size:12px;
  white-space:nowrap;
}
.pill{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid #c7d2fe;
  background:#eef2ff;
  color:#3730a3;
  font-size:12px;
  font-weight:800;
}
.price-row{
  display:flex; justify-content:space-between; align-items:center; margin-top:14px;
}
.card-price-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.price-wrap{
  display:flex;
  align-items:baseline;
  gap:8px;
  min-width:0;
}
.coupon-mini{
  font-size:11px;
  font-weight:900;
  color:#9a3412;
  white-space:nowrap;
  opacity:.88;
}
.add-icon{
  width:34px;
  height:34px;
  border-radius:999px;
  background:#fff;
  color:#111827;
  font-weight:800;
  cursor:pointer;
  flex:0 0 auto;
  border:1px solid rgba(229,231,235,.9);
  box-shadow:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
}
.add-icon svg{display:block}
.add-icon:active{transform:translateY(1px);background:linear-gradient(135deg,var(--brand),var(--brand-2));color:#fff;border-color:rgba(225,29,72,.16)}
.card-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.card-subrow{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
}
.coupon{
  display:inline-flex;
  align-items:center;
  height:24px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid rgba(251,146,60,.35);
  background:#fff7ed;
  color:#9a3412;
  font-weight:900;
  font-size:12px;
  white-space:nowrap;
}
.price{
  font-size:18px;
  font-weight:900;
}
.rating{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#111827;
  font-weight:900;
  font-size:12px;
}
.stars{
  letter-spacing:.6px;
  color:#f59e0b;
  font-size:12px;
  line-height:1;
}
.muted{color:var(--muted)}
.panel{
  background:#fff; border:1px solid var(--line); border-radius:24px; box-shadow:var(--shadow); padding:20px;
}
.panel h3{margin:0 0 8px;font-size:20px}
.panel p{margin:0;color:var(--muted);line-height:1.7}
.form{
  display:grid; gap:12px;
}
.field{display:flex;flex-direction:column;gap:6px}
.field label{font-size:13px;font-weight:700;color:#374151}
.field input,.field textarea,.field select{
  border:1px solid var(--line); border-radius:16px; padding:14px; background:#fff;
  outline:none;
}
.field textarea{min-height:110px; resize:vertical}
.row{
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px;
}
.result{
  background:#fff7ed; border:1px solid #fed7aa; border-radius:18px; padding:16px; line-height:1.7;
}
.code{
  background:#0f172a; color:#e2e8f0; border-radius:18px; padding:16px;
  font-size:13px; line-height:1.65; overflow:auto; white-space:pre-wrap;
}
.list{
  margin:10px 0 0; padding-left:18px;
}
.list li{margin-bottom:8px}
.small{
  font-size:13px; color:var(--muted);
}
.footer{
  padding:28px 0 40px;
  font-size:14px; color:var(--muted);
}
.mobile-bottom{
  position:sticky; bottom:0; z-index:40;
  background:rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  border-top:1px solid rgba(229,231,235,.9);
}
.mobile-bottom .container{
  display:flex; gap:10px; padding:10px 0;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
  padding-bottom:calc(10px + env(safe-area-inset-bottom));
}
.buyer .mobile-bottom .container{justify-content:center}
.mobile-bottom .container::-webkit-scrollbar{display:none}
.mobile-bottom a{
  flex:0 0 auto; min-width:92px;
  text-align:center; padding:10px 8px; border-radius:16px;
  border:1px solid var(--line); background:#fff; font-size:13px; font-weight:800;
}
@media (max-width: 960px){
  .hero-grid,.grid-3,.grid-2,.row{grid-template-columns:1fr}
  .trust-bar{grid-template-columns:repeat(2,minmax(0,1fr))}
  .masonry{columns:2}
  .nav{display:none}
  .cart-label{display:none}
  .topbar .container{width:min(1160px, calc(100vw - 24px))}
  .topbar-inner{position:relative;min-height:60px}
  .menu-btn{width:40px;height:40px;border-radius:12px}
  .cart-btn{height:40px;padding:0 12px;border-radius:12px;font-size:13px}
  .brand{
    position:absolute;
    left:50%;
    transform:translateX(-50%);
    margin:0;
    gap:0;
    font-size:16px;
    max-width:50vw;
    justify-content:center;
  }
  .brand-dot{display:none}
  .brand span:last-child{
    display:block;
    max-width:100%;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .top-search{top:60px}
  .top-intro{display:none}
  .top-search .search-bar{padding:10px 0}
  .search-bar{gap:8px;flex-wrap:nowrap}
  .search-input{min-width:0;padding:10px 14px;font-size:16px}
  .top-search .search-bar .btn{flex:0 0 74px;padding:10px 0;font-size:13px}
  .dept-scroll{padding:0 0 10px;max-height:60px;opacity:1;transition:max-height .18s ease, opacity .18s ease, padding .18s ease}
  .dept-chip{padding:8px 10px;font-size:12px}
  .btn{padding:11px 14px;font-size:13px}
  .page{padding:14px 0 44px}
  .section{padding:16px 0}
  body.top-compact .top-search .search-bar{padding:8px 0}
  body.top-compact .dept-scroll{max-height:0;opacity:0;padding:0;pointer-events:none}
  #featured .carousel-scroll{gap:8px}
  #featured .carousel-scroll .card{flex:0 0 min(58%,230px)}
  .carousel-scroll .card{flex:0 0 min(76%,320px)}
  .card{border-radius:20px}
  .card img{aspect-ratio: 1 / 1}
  .card-body{padding:10px;gap:6px}
  #all-products .card h3{font-size:14px;-webkit-line-clamp:2;line-clamp:2}
  #featured .card-body{padding:9px;gap:6px}
  #featured .card h3{font-size:12px;-webkit-line-clamp:2;line-clamp:2}
  .card-meta-row{gap:8px}
  .card-cat{font-size:11px}
  .rating{font-size:12px}
  .price{font-size:18px}
  .price-row{margin-top:8px}
  .card-price-row{gap:8px}
  .add-icon{width:32px;height:32px}
  .add-btn{padding:9px 10px;font-size:12px}
  .small{font-size:12px}
  #featured .card-cat{display:none}
  #featured .card-price-row .add-icon{display:none}
  #featured .section-head p{font-size:12px;line-height:1.5;opacity:.82}
  #ai-assistant .section-head h2{font-size:26px}
  #ai-assistant .section-head p{font-size:13px}
  #ai-assistant .ai-panel{padding:18px;margin:0 -12px;border-radius:28px}
  #ai-assistant .ai-ask{gap:8px}
  #ai-assistant .ai-ask-btn{flex:0 0 80px}
  body{padding-bottom:calc(74px + env(safe-area-inset-bottom))}
  body.has-buybar{padding-bottom:calc(92px + env(safe-area-inset-bottom))}
  .product-hero{display:flex;flex-direction:column;gap:14px}
}
@media (min-width: 961px){
  .menu-btn{display:none}
  .buybar{display:none}
  body.has-buybar{padding-bottom:0}
}
@media (min-width: 1100px){
  .masonry{columns:4}
}
@media (max-width: 640px){
  .container{width:min(1160px, calc(100vw - 24px))}
  .nav a:not(.primary){display:none}
  .hero-grid{padding:18px}
  .hero h1{font-size:34px}
  .section-head h2{font-size:24px}
  .masonry{columns:2}
}
@media (max-width: 520px){
  .search-bar{flex-wrap:wrap}
  .top-search .search-bar{flex-wrap:nowrap}
  .search-input{min-width:0;width:100%}
  .search-bar .btn{width:100%}
}
@media (max-width: 420px){
  .masonry{columns:2; column-gap:12px}
  .masonry .card,
  .masonry .panel{margin:0 0 12px}
}

.support-overlay{
  position:fixed;
  inset:0;
  background:rgba(17,24,39,.45);
  backdrop-filter: blur(8px);
  z-index:90;
  opacity:0;
  pointer-events:none;
  transition: opacity .15s ease;
}
.support-overlay.open{
  opacity:1;
  pointer-events:auto;
}
.support-modal{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:min(92vw, 520px);
  max-height:min(86vh, 720px);
  overflow:auto;
  background:#fff;
  border:1px solid rgba(229,231,235,.9);
  box-shadow:0 18px 60px rgba(17,24,39,.22);
  border-radius:24px;
  padding:16px;
}
.support-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding-bottom:10px;
  border-bottom:1px solid rgba(229,231,235,.9);
  margin-bottom:12px;
}
.support-title{font-weight:900}
.support-close{
  border:1px solid var(--line);
  background:#fff;
  padding:10px 12px;
  border-radius:14px;
  font-weight:900;
  cursor:pointer;
}
.support-form{
  display:grid;
  gap:12px;
}

.cart-form{
  display:grid;
  gap:12px;
}
.cart-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:10px;
}
