/* ============= BeikeShop 风格仿写 ============= */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #222;
  background: #f5f5f7;
  line-height: 1.6;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button, input, select { font-family: inherit; font-size: inherit; outline: none; }
button { cursor: pointer; border: none; background: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ============= 顶部 utility bar ============= */
.utility-bar {
  background: #f5f5f7;
  border-bottom: 1px solid #ececec;
  font-size: 12px;
  color: #888;
}
.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
}
.util-left { display: flex; gap: 16px; }
.util-left .util-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.util-left .util-item::after {
  content: "▾";
  font-size: 10px;
  margin-left: 2px;
}
.util-right { display: flex; align-items: center; gap: 6px; }
.util-right .phone-icon {
  display: inline-block;
  width: 14px; height: 14px;
  background: #999;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6.62 10.79a15.05 15.05 0 006.59 6.59l2.2-2.2a1 1 0 011.05-.24 11.36 11.36 0 003.58.57 1 1 0 011 1V20a1 1 0 01-1 1A17 17 0 013 4a1 1 0 011-1h3.5a1 1 0 011 1 11.36 11.36 0 00.57 3.58 1 1 0 01-.24 1.05z'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6.62 10.79a15.05 15.05 0 006.59 6.59l2.2-2.2a1 1 0 011.05-.24 11.36 11.36 0 003.58.57 1 1 0 011 1V20a1 1 0 01-1 1A17 17 0 013 4a1 1 0 011-1h3.5a1 1 0 011 1 11.36 11.36 0 00.57 3.58 1 1 0 01-.24 1.05z'/></svg>") center/contain no-repeat;
}

/* ============= Header ============= */
.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.header-inner {
  display: flex;
  align-items: center;
  height: 80px;
  gap: 32px;
}
.logo-link img {
  height: 56px;
  width: auto;
  object-fit: contain;
}
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 32px;
}
.nav-item {
  position: relative;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  padding: 8px 0;
  cursor: pointer;
}
.nav-item:hover { color: #ff5722; }
.nav-item .arrow { font-size: 10px; margin-left: 4px; color: #999; }
.nav-item .nav-badge {
  position: absolute;
  top: -10px;
  right: -22px;
  font-size: 10px;
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px 10px 10px 0;
  white-space: nowrap;
  font-weight: 500;
}
.badge-purple { background: #7e3ff2; }
.badge-orange { background: #ff7a3d; }
.badge-green  { background: #1bb88a; }

.header-icons { display: flex; align-items: center; gap: 18px; }
.icon-btn {
  width: 22px; height: 22px;
  background-color: #1a1a1a;
  -webkit-mask-size: contain;
          mask-size: contain;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  cursor: pointer;
  position: relative;
}
.icon-btn:hover { background-color: #ff5722; }
.icon-search { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>"); }
.icon-heart  { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20.84 4.61a5.5 5.5 0 00-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 00-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 000-7.78z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20.84 4.61a5.5 5.5 0 00-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 00-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 000-7.78z'/></svg>"); }
.icon-user   { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round'><path d='M20 21v-2a4 4 0 00-4-4H8a4 4 0 00-4 4v2'/><circle cx='12' cy='7' r='4'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round'><path d='M20 21v-2a4 4 0 00-4-4H8a4 4 0 00-4 4v2'/><circle cx='12' cy='7' r='4'/></svg>"); }
.icon-cart   { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 2L3 6v14a2 2 0 002 2h14a2 2 0 002-2V6l-3-4z'/><line x1='3' y1='6' x2='21' y2='6'/><path d='M16 10a4 4 0 01-8 0'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 2L3 6v14a2 2 0 002 2h14a2 2 0 002-2V6l-3-4z'/><line x1='3' y1='6' x2='21' y2='6'/><path d='M16 10a4 4 0 01-8 0'/></svg>"); }

.cart-link-wrap { position: relative; display: inline-flex; }
.cart-badge {
  position: absolute;
  top: -8px; right: -10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #ff5722;
  color: #fff;
  font-size: 11px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* ============= Marquee ============= */
.marquee {
  background: #fff;
  border-top: 1px solid #ececec;
  border-bottom: 1px solid #ececec;
  overflow: hidden;
  height: 40px;
  position: relative;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  height: 40px;
  gap: 56px;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  padding-left: 100%;
}
.marquee span {
  font-size: 13px;
  color: #555;
  letter-spacing: 1px;
}
.marquee .dot {
  width: 6px; height: 6px;
  background: #b8b8b8;
  display: inline-block;
  transform: rotate(45deg);
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ============= Hero ============= */
.hero {
  position: relative;
  background: #fff;
}
.hero-slide {
  width: 100%;
  height: 520px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-overlay {
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.hero-overlay .kicker {
  font-size: 16px;
  letter-spacing: 4px;
  margin-bottom: 16px;
}
.hero-overlay h1 {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.hero-overlay .sub {
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 32px;
  opacity: .9;
}
.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.hero-dots .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
}
.hero-dots .dot.active { background: #fff; width: 24px; border-radius: 4px; }

/* ============= Pill button ============= */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 32px;
  border-radius: 999px;
  background: #fff;
  color: #1a1a1a;
  font-weight: 500;
  font-size: 14px;
  transition: all .2s;
  border: 1px solid transparent;
}
.pill:hover { background: #1a1a1a; color: #fff; }
.pill-dark { background: #1a1a1a; color: #fff; }
.pill-dark:hover { background: #ff5722; color: #fff; }
.pill-outline { background: #fff; border-color: #ccc; color: #555; }
.pill-outline:hover { border-color: #1a1a1a; color: #1a1a1a; background: #fff; }

/* ============= Section title with wave ============= */
.section {
  padding: 64px 0;
}
.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 1px;
  position: relative;
  margin-bottom: 16px;
}
.section-sub {
  text-align: center;
  color: #888;
  font-size: 13px;
  margin-bottom: 40px;
}
.wavy {
  display: block;
  margin: 8px auto 32px;
  width: 56px;
  height: 8px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 8'><path d='M0 4 Q 7 0, 14 4 T 28 4 T 42 4 T 56 4' stroke='%23bbb' stroke-width='1.5' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
}

/* ============= Categories circle ============= */
.cat-circles {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.cat-circle {
  text-align: center;
  cursor: pointer;
}
.cat-circle .circle-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: #eee;
  margin-bottom: 12px;
  transition: transform .3s;
}
.cat-circle:hover .circle-img { transform: scale(1.05); }
.cat-circle .circle-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.cat-circle .cat-name {
  font-size: 14px;
  color: #555;
  font-weight: 500;
}

/* ============= Tabs ============= */
.tabs {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 32px;
}
.tab {
  font-size: 14px;
  color: #999;
  padding: 6px 0;
  cursor: pointer;
  position: relative;
  font-weight: 500;
}
.tab.active {
  color: #1a1a1a;
  font-weight: 700;
}
.tab.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0; right: 0;
  height: 2px;
  background: #1a1a1a;
}

/* ============= Product grid ============= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.product-card .pc-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: #f4f4f4;
}
.product-card .pc-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.product-card:hover .pc-img img { transform: scale(1.05); }
.product-card .pc-body { padding: 16px; }
.product-card .pc-name {
  font-size: 14px;
  color: #1a1a1a;
  line-height: 1.5;
  height: 42px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 8px;
}
.product-card .pc-price {
  font-size: 18px;
  color: #ff5722;
  font-weight: 700;
}
.product-card .pc-old {
  font-size: 13px;
  color: #b8b8b8;
  text-decoration: line-through;
  margin-left: 8px;
  font-weight: 400;
}

/* ============= Promo banner pair ============= */
.promo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.promo-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9;
  cursor: pointer;
}
.promo-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.promo-card:hover img { transform: scale(1.04); }
.promo-card .promo-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.promo-card .promo-text .ks { font-size: 14px; letter-spacing: 2px; opacity: .9; margin-bottom: 8px; }
.promo-card .promo-text h3 { font-size: 36px; font-weight: 700; margin-bottom: 24px; letter-spacing: 2px; }

/* ============= Flash sale (image left, text right) ============= */
.flash-sale {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.flash-sale .fs-img img {
  width: 100%; height: 100%;
  min-height: 320px;
  object-fit: cover;
}
.flash-sale .fs-text {
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.flash-sale .fs-text h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 16px;
}
.flash-sale .fs-text .accent {
  color: #ff5722;
  font-size: 16px;
  margin-bottom: 16px;
  font-weight: 600;
}
.flash-sale .fs-text p {
  color: #777;
  margin-bottom: 24px;
}

/* ============= Brand grid ============= */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.brand-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 8px;
  padding: 32px 16px 16px;
  text-align: center;
  transition: border-color .2s, transform .2s;
  cursor: pointer;
}
.brand-card:hover { border-color: #1a1a1a; transform: translateY(-2px); }
.brand-card img {
  height: 60px;
  width: auto;
  margin: 0 auto 12px;
  object-fit: contain;
}
.brand-card .brand-name {
  font-size: 13px;
  color: #888;
}

.center-action { text-align: center; margin-top: 32px; }

/* ============= Service strip ============= */
.service-strip {
  background: #f5f5f7;
  padding: 40px 0;
  border-top: 1px solid #ececec;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.service-item img {
  height: 36px;
  margin: 0 auto 12px;
}
.service-item h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}
.service-item p {
  font-size: 12px;
  color: #999;
}

/* ============= Footer ============= */
.site-footer {
  background: #f5f5f7;
  padding: 48px 0 0;
  border-top: 1px solid #ececec;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 32px;
}
.footer-inner h5 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #333;
}
.footer-inner ul li {
  font-size: 13px;
  color: #777;
  padding: 4px 0;
  cursor: pointer;
}
.footer-inner ul li:hover { color: #ff5722; }
.footer-brand img {
  height: 56px;
  margin-bottom: 16px;
}
.footer-brand .company {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
}
.social-icons {
  display: flex;
  gap: 8px;
}
.social-icons img {
  width: 28px; height: 28px;
  opacity: .6;
  transition: opacity .2s;
}
.social-icons img:hover { opacity: 1; }
.contact-line {
  font-size: 13px;
  color: #777;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}
.copyright {
  border-top: 1px solid #ececec;
  padding: 20px 24px;
  font-size: 12px;
  color: #999;
  text-align: left;
}
.copyright .accent { color: #ff5722; }

/* ============= Breadcrumb ============= */
.breadcrumb {
  background: #f5f5f7;
  padding: 16px 0;
}
.breadcrumb-inner {
  font-size: 13px;
  color: #888;
}
.breadcrumb-inner a { color: #888; }
.breadcrumb-inner a:hover { color: #ff5722; }
.breadcrumb-inner .sep { margin: 0 8px; color: #ccc; }
.breadcrumb-inner .current { color: #333; }

/* ============= Products page ============= */
.list-section {
  padding: 32px 0 64px;
}
.list-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
}
.filter-panel {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  align-self: start;
  position: sticky;
  top: 100px;
}
.filter-block + .filter-block {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}
.filter-block h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  color: #333;
}
.filter-list li { padding: 4px 0; }
.filter-list a {
  font-size: 13px;
  color: #666;
  display: block;
  padding: 4px 0;
  cursor: pointer;
}
.filter-list a:hover, .filter-list a.active {
  color: #ff5722;
  font-weight: 600;
}
.filter-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #666;
  padding: 4px 0;
}
.list-toolbar {
  background: #fff;
  border-radius: 8px;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.list-toolbar .total { font-size: 13px; color: #888; }
.sort-select {
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 6px 14px;
  background: #fff;
  font-size: 13px;
  color: #555;
}

/* ============= Detail page ============= */
.detail-layout {
  display: grid;
  grid-template-columns: 90px 1fr 1fr;
  gap: 24px;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
}
.thumb-col { display: flex; flex-direction: column; gap: 10px; }
.thumb-col .thumb {
  width: 80px; height: 80px;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: #f4f4f4;
}
.thumb-col .thumb.active { border-color: #1a1a1a; }
.thumb-col .thumb img { width: 100%; height: 100%; object-fit: cover; }
.main-img-wrap {
  background: #f4f4f4;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
}
.main-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

.detail-info { padding: 8px 8px 8px 16px; }
.detail-info h1 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  color: #1a1a1a;
  margin-bottom: 16px;
}
.detail-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}
.detail-price {
  font-size: 30px;
  font-weight: 700;
  color: #1a1a1a;
}
.detail-old {
  font-size: 14px;
  color: #b8b8b8;
  text-decoration: line-through;
}
.detail-meta {
  display: grid;
  grid-template-columns: 60px 1fr;
  row-gap: 12px;
  font-size: 13px;
  margin-bottom: 24px;
}
.detail-meta .key { color: #888; }
.detail-meta .stock-yes { color: #1bb88a; font-weight: 600; }
.detail-meta .stock-no { color: #ff5722; font-weight: 600; }
.detail-meta .brand { color: #ff7a3d; font-weight: 600; }

.opt-block { margin-bottom: 20px; }
.opt-block .lbl {
  font-size: 13px;
  color: #555;
  margin-bottom: 10px;
}
.size-pills, .color-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.size-pill {
  min-width: 56px;
  padding: 8px 18px;
  border: 1px solid #e3e3e3;
  border-radius: 999px;
  background: #fff;
  color: #333;
  font-size: 13px;
  cursor: pointer;
}
.size-pill.active, .size-pill:hover {
  border-color: #1a1a1a;
  color: #1a1a1a;
}
.size-pill.active { background: #f5f5f7; }
.color-pill {
  padding: 8px 18px;
  border: 1px solid #e3e3e3;
  border-radius: 999px;
  background: #fff;
  color: #333;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.color-pill .swatch {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid #ddd;
}
.color-pill.active { border-color: #1a1a1a; background: #f5f5f7; }

.qty-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e3e3e3;
  border-radius: 999px;
  overflow: hidden;
}
.qty-pill button {
  width: 36px; height: 38px;
  background: #fff;
  font-size: 16px;
  color: #555;
}
.qty-pill input {
  width: 60px; height: 38px;
  text-align: center;
  border: none;
  border-left: 1px solid #f0f0f0;
  border-right: 1px solid #f0f0f0;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0 12px;
}
.detail-actions .pill { padding: 14px 0; font-weight: 600; }
.fav-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #888;
  font-size: 13px;
  cursor: pointer;
  padding: 6px 0;
}
.fav-line:hover { color: #ff5722; }

/* tab section */
.detail-tab-bar {
  display: flex;
  gap: 32px;
  background: #fff;
  border-radius: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid #f0f0f0;
  margin-top: 16px;
}
.detail-tab-bar .dt {
  font-size: 14px;
  color: #999;
  padding: 8px 0;
  cursor: pointer;
  position: relative;
  font-weight: 500;
}
.detail-tab-bar .dt.active {
  color: #ff5722;
  font-weight: 700;
}
.detail-tab-bar .dt.active::after {
  content: "";
  position: absolute;
  bottom: -16px;
  left: 0; right: 0;
  height: 2px;
  background: #ff5722;
}
.detail-tab-content {
  background: #fff;
  border-radius: 0 0 12px 12px;
  padding: 32px;
  color: #555;
  line-height: 1.8;
  margin-top: -1px;
}

/* ============= Cart page ============= */
.cart-section { padding: 32px 0 64px; }
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}
.cart-main {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}
.cart-head, .cart-row {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1.3fr 1fr 60px;
  align-items: center;
  padding: 16px 24px;
  gap: 12px;
}
.cart-head {
  background: #f5f5f7;
  font-size: 13px;
  color: #555;
  font-weight: 600;
}
.cart-row + .cart-row, .cart-head + .cart-row { border-top: 1px solid #f0f0f0; }
.cart-row .cp { display: flex; gap: 14px; align-items: center; }
.cart-row .cp img {
  width: 80px; height: 80px;
  object-fit: cover;
  border-radius: 6px;
  background: #f4f4f4;
}
.cart-row .cp-info .cp-name {
  font-weight: 600;
  font-size: 14px;
  color: #1a1a1a;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-row .cp-info .cp-spec { font-size: 12px; color: #999; }
.cart-row .cp-price { color: #1a1a1a; font-weight: 600; }
.cart-row .cp-sub { color: #ff5722; font-weight: 700; }
.cart-row .cp-del {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #f5f5f7;
  color: #888;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cart-row .cp-del:hover { background: #ff5722; color: #fff; }
.cart-empty {
  padding: 80px 20px;
  text-align: center;
}
.cart-empty p { color: #888; margin-bottom: 20px; }

.cart-summary {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  align-self: start;
  position: sticky;
  top: 100px;
}
.cart-summary h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #333;
}
.sum-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: #555;
}
.sum-row b { color: #1a1a1a; }
.sum-final {
  border-top: 1px solid #f0f0f0;
  margin-top: 12px;
  padding-top: 16px;
  font-size: 15px;
}
.sum-final b { color: #ff5722; font-size: 22px; font-weight: 700; }
.cart-summary .pill { width: 100%; margin-top: 12px; }

/* ============= Toast ============= */
.toast {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.85);
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 13px;
  z-index: 9999;
  animation: toastIn .3s;
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ============= Page heading ============= */
.page-head-strip {
  background: #fff;
  padding: 24px 0;
  border-top: 1px solid #ececec;
  border-bottom: 1px solid #ececec;
}
.page-head-strip h1 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
}

/* ============= Responsive ============= */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .list-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .detail-layout { grid-template-columns: 80px 1fr; }
  .detail-info { grid-column: 1 / -1; padding: 16px 0 0; }
  .cart-layout { grid-template-columns: 1fr; }
  .cat-circles { grid-template-columns: repeat(3, 1fr); }
  .hero-overlay h1 { font-size: 36px; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .main-nav { display: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-pair { grid-template-columns: 1fr; }
  .flash-sale { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .cart-head { display: none; }
  .cart-row { grid-template-columns: 1fr; gap: 8px; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-overlay h1 { font-size: 28px; }
}
