/* =========================================================
   SISEA · 页面级样式
   商城 / 详情 / 购物车 / 结账 / 关于 / 帮助
   （依赖 style.css 中的设计令牌与通用组件）
   ========================================================= */

/* ---------- 1. 商城页 SHOP ---------- */
.shop-toolbar {
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center;
  margin: 24px 0 30px;
  padding: 14px;
  border: 2px solid #fff;
  background: #0b0b0b;
  box-shadow: 6px 6px 0 var(--blue);
}

.chip {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 9px 16px;
  border: 2px solid #fff;
  background: #111;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}
.chip:hover { border-color: var(--yellow); }
.chip.is-active { background: var(--red); box-shadow: 3px 3px 0 var(--yellow); }
.chip--yellow.is-active { background: var(--yellow); color: #000; border-color: #000; }

.shop-sort { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.shop-sort label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }
.shop-sort select {
  padding: 9px 12px;
  background: #111;
  border: 2px solid #fff;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.shop-count { font-size: 13px; color: var(--grey); margin-bottom: 18px; }
.shop-count b { color: var(--yellow); }

.shop-empty { display: none; }
.shop-empty.is-open { display: block; }

/* ---------- 2. 产品详情页 PRODUCT ---------- */
.pd {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  padding: 26px 0 10px;
  align-items: start;
}

.pd__media { position: relative; }
.pd__media img {
  width: 100%;
  border: var(--bw) solid #fff;
  box-shadow: 10px 10px 0 var(--blue);
  background: #000;
}
.pd__media .stamp { top: 16px; right: 16px; }

.pd__flags { position: absolute; top: 14px; left: 14px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; z-index: 2; }

.pd__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.pd__brand .mark { width: 30px; height: 30px; background: var(--blue); border: 2px solid #fff; display: grid; place-items: center; }
.pd__brand .mark svg { width: 22px; height: 22px; }
.pd__brand span { font-family: var(--font-display); font-weight: 900; letter-spacing: .22em; font-size: 12px; color: var(--grey); }

.pd__cn { font-weight: 900; font-size: 14px; letter-spacing: .34em; color: var(--yellow); margin-bottom: 6px; }
.pd__name { font-family: var(--font-display); font-weight: 900; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; letter-spacing: .02em; color: #fff; margin-bottom: 12px; }

.pd__rating { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--grey); margin-bottom: 16px; }
.pd__rating b { color: #fff; }

.pd__price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 6px; }
.pd__price { font-family: var(--font-display); font-weight: 900; font-size: 40px; color: var(--red); -webkit-text-stroke: 1px #fff; }
.pd__compare { font-size: 17px; color: var(--grey-dim); text-decoration: line-through; }
.pd__save {
  font-family: var(--font-display); font-weight: 900; font-size: 12.5px;
  background: var(--yellow); color: #000; padding: 4px 10px;
  border: 2px solid #000; transform: rotate(-2deg);
}
.pd__vat { font-size: 11px; color: var(--grey-dim); margin-bottom: 20px; }

.opt { margin: 20px 0; }
.opt__label {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-size: 12.5px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase;
  color: #fff; margin-bottom: 9px;
}
.opt__label a { color: var(--blue-bright); font-size: 11.5px; letter-spacing: .05em; text-decoration: underline; }
.opt__label .sel-cn { color: var(--grey); letter-spacing: .1em; }

.size-grid { display: flex; flex-wrap: wrap; gap: 9px; }
.size-btn {
  min-width: 56px;
  padding: 11px 12px;
  border: 2px solid #fff;
  background: #101010;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  transition: transform .1s ease;
}
.size-btn:hover:not([disabled]) { border-color: var(--yellow); transform: translateY(-2px); }
.size-btn.is-active { background: var(--yellow); color: #000; border-color: #000; box-shadow: 3px 3px 0 var(--red); }
.size-btn[disabled] { opacity: .28; cursor: not-allowed; text-decoration: line-through; }

.swatch-row { display: flex; gap: 12px; flex-wrap: wrap; }
.swatch {
  width: 40px; height: 40px;
  border: 2px solid #fff;
  cursor: pointer;
  position: relative;
}
.swatch.is-active { outline: 3px solid var(--yellow); outline-offset: 3px; }

.pd__buy-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin: 24px 0 8px; }

.pd__warn { margin: 14px 0; display: none; }
.pd__warn.is-open { display: block; }

.pd__usps { display: grid; gap: 9px; margin: 20px 0; padding-top: 18px; border-top: 2px dashed #333; }
.pd__usps li { display: flex; gap: 10px; font-size: 13.5px; color: #c9c9c9; }
.pd__usps .ck { color: var(--yellow); font-weight: 900; flex: 0 0 auto; }
.pd__usps b { color: #fff; }

.pd__acc { margin-top: 26px; }

.pd-desc { max-width: 860px; }
.pd-desc p { color: #cfcfcf; font-size: 15px; margin-bottom: 14px; }
.pd-desc p b { color: #fff; }

.details-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px; margin-top: 16px; }
.details-list li { display: flex; gap: 10px; font-size: 13.5px; color: #c9c9c9; }
.details-list .sq { flex: 0 0 auto; width: 14px; height: 14px; margin-top: 5px; background: var(--red); border: 2px solid #fff; }
.details-list li:nth-child(2n) .sq { background: var(--yellow); border-color: #000; }
.details-list li:nth-child(3n) .sq { background: var(--blue); }

/* ---------- 3. 购物车页 CART ---------- */
.cart-layout {
  display: grid;
  grid-template-columns: 1.6fr .92fr;
  gap: 34px;
  align-items: start;
  padding: 24px 0 40px;
}

.cart-line {
  display: grid;
  grid-template-columns: 104px 1fr auto;
  gap: 18px;
  border: 2px solid #fff;
  background: #0c0c0c;
  padding: 16px;
  margin-bottom: 16px;
  align-items: start;
}
.cart-line:nth-child(3n+1) { box-shadow: 5px 5px 0 var(--red); }
.cart-line:nth-child(3n+2) { box-shadow: 5px 5px 0 var(--blue); }
.cart-line:nth-child(3n) { box-shadow: 5px 5px 0 var(--yellow); }

.cart-line__thumb { border: 2px solid #333; background: #000; width: 104px; }
.cart-line__name { font-family: var(--font-display); font-weight: 900; font-size: 18px; color: #fff; line-height: 1.2; }
.cart-line__name a:hover { color: var(--yellow); }
.cart-line__cn { font-size: 11px; letter-spacing: .24em; color: var(--yellow); margin-top: 3px; font-weight: 900; }
.cart-line__meta { font-size: 12px; color: var(--grey); margin-top: 7px; }
.cart-line__meta b { color: #ddd; }
.cart-line__ctrl { margin-top: 12px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.cart-line__right { text-align: right; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.cart-line__price { font-family: var(--font-display); font-weight: 900; font-size: 22px; color: var(--yellow); }
.cart-line__unit { font-size: 11px; color: var(--grey-dim); }

.link-remove { font-size: 11.5px; color: #ff8f96; text-decoration: underline; cursor: pointer; letter-spacing: .05em; }
.link-remove:hover { color: var(--red); }

/* 结算摘要盒 */
.summary {
  border: var(--bw) solid #fff;
  background: #0c0c0c;
  box-shadow: 8px 8px 0 var(--red);
  position: sticky;
  top: 132px;
}
.summary__hd {
  background: var(--blue);
  border-bottom: var(--bw) solid #000;
  padding: 13px 18px;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  font-size: 16px;
  display: flex; align-items: center; gap: 10px;
}
.summary__hd .cn { font-size: 11px; letter-spacing: .3em; color: #bfe2ff; }
.summary__bd { padding: 18px; }

.sum-row { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; padding: 6px 0; color: #cfcfcf; }
.sum-row .val { color: #fff; font-weight: 700; }
.sum-row--free .val { color: var(--green); font-weight: 900; }
.sum-row--total {
  border-top: 2px solid #333;
  margin-top: 12px; padding-top: 15px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  color: #fff;
}
.sum-row--total .val { color: var(--yellow); }

.summary .dense { margin-top: 12px; }
.summary .btn-row { margin-top: 16px; }

.ship-progress { margin: 14px 0 6px; }
.ship-progress__bar { height: 15px; border: 2px solid #fff; background: #111; overflow: hidden; }
.ship-progress__fill {
  height: 100%;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 10px, #caa900 10px 20px);
  transition: width .35s ease;
}
.ship-progress__txt { font-size: 11.5px; color: var(--yellow); margin-top: 7px; font-weight: 700; }

.promo-row { display: flex; gap: 10px; margin: 16px 0 6px; }
.promo-row input {
  flex: 1; min-width: 0;
  padding: 11px 13px;
  background: #111;
  border: 2px solid #4a4a4a;
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
}
.promo-row input::placeholder { text-transform: none; color: #666; }

.pay-icons { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.pay-icons span {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 10px;
  letter-spacing: .08em;
  border: 1.5px solid #555;
  color: #aaa;
  padding: 3px 7px;
}

/* ---------- 4. 结账页 CHECKOUT ---------- */
.demo-bar {
  background: var(--yellow);
  color: #000;
  padding: 10px 16px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: .06em;
  font-size: 14px;
  text-transform: uppercase;
  border-bottom: var(--bw) solid #000;
}
.demo-bar .cn { letter-spacing: .2em; }

.co-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 36px;
  align-items: start;
  padding: 26px 0 50px;
}

.co-section { border: 2px solid #fff; background: #0b0b0b; margin-bottom: 24px; }
.co-section__hd {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-bottom: var(--bw) solid #000;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 16px;
  color: #fff;
}
.co-section__hd .n {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: var(--yellow); color: #000;
  border: 2px solid #000;
  font-size: 15px;
  flex: 0 0 auto;
}
.co-section--blue .co-section__hd { background: var(--blue); }
.co-section--red .co-section__hd { background: var(--red); }
.co-section--green .co-section__hd { background: var(--green); }
.co-section__bd { padding: 20px 18px; }

.co-items { display: grid; gap: 12px; margin-bottom: 16px; }
.co-item { display: flex; gap: 12px; align-items: center; font-size: 13px; }
.co-item img { width: 54px; border: 2px solid #333; }
.co-item .nm { flex: 1; }
.co-item .nm b { display: block; color: #fff; font-size: 13px; }
.co-item .nm span { color: var(--grey); font-size: 11.5px; }
.co-item .pr { font-family: var(--font-display); font-weight: 900; color: var(--yellow); }

/* 下单成功 */
.order-done { max-width: 720px; margin: 0 auto; padding: 56px 20px 70px; text-align: center; }
.order-box {
  border: var(--bw) solid #fff;
  background: #0c0c0c;
  box-shadow: 10px 10px 0 var(--green);
  padding: 30px 26px;
  margin: 28px 0;
  text-align: left;
}
.order-box .row { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; font-size: 14px; color: #cfcfcf; border-bottom: 1px dashed #2c2c2c; }
.order-box .row:last-child { border-bottom: 0; }
.order-box .row b { color: var(--yellow); font-family: var(--font-display); letter-spacing: .04em; }

/* ---------- 5. 关于页 ABOUT ---------- */
.story {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 44px;
  align-items: center;
  padding: 20px 0;
}
.story__txt p { color: #d2d2d2; font-size: 15.5px; margin-bottom: 15px; }
.story__txt p b { color: #fff; }
.story__media { position: relative; }
.story__media img { border: var(--bw) solid #fff; box-shadow: 10px 10px 0 var(--yellow); }
.story__media .cap { margin-top: 14px; }

.timeline { margin: 40px 0 10px; display: grid; gap: 20px; position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 4px; background: var(--red); }
.tl-item { position: relative; border: 2px solid #fff; background: #0c0c0c; padding: 16px 18px; }
.tl-item::before {
  content: ""; position: absolute; left: -34px; top: 20px;
  width: 14px; height: 14px;
  background: var(--yellow); border: 3px solid var(--red); border-radius: 50%;
}
.tl-item .yr { font-family: var(--font-display); font-weight: 900; font-size: 24px; color: var(--yellow); letter-spacing: .04em; }
.tl-item .tt { font-weight: 900; color: #fff; font-size: 15px; margin: 2px 0 6px; letter-spacing: .04em; }
.tl-item p { font-size: 13.5px; color: #c2c2c2; }

.rules {
  background: var(--yellow);
  color: #000;
  border: var(--bw) solid #000;
  box-shadow: 10px 10px 0 var(--red);
  padding: clamp(24px, 4vw, 44px);
  margin: 26px 0;
}
.rules h3 { font-family: var(--font-display); font-weight: 900; font-size: clamp(26px, 3vw, 40px); letter-spacing: .03em; margin-bottom: 22px; }
.rules ol { display: grid; gap: 18px; }
.rules li { display: flex; gap: 16px; align-items: flex-start; }
.rules .n { font-family: var(--font-display); font-weight: 900; font-size: 34px; line-height: 1; color: var(--red); flex: 0 0 auto; }
.rules b { display: block; font-size: 16px; letter-spacing: .02em; }
.rules span { font-size: 13.5px; color: #4a4000; }

/* ---------- 6. 帮助页 FAQ ---------- */
.faq-two { display: grid; grid-template-columns: 1.08fr .92fr; gap: 32px; align-items: start; padding: 8px 0 30px; }
.faq-side { display: grid; gap: 26px; }

.contact-card {
  border: 2px solid #fff;
  background: #0c0c0c;
  box-shadow: 6px 6px 0 var(--blue);
  padding: 20px;
}
.contact-card h4 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 10px;
}
.contact-card p { font-size: 13.5px; color: #c9c9c9; margin-bottom: 8px; }
.contact-card a { color: var(--blue-bright); text-decoration: underline; }

.hours-table { font-size: 12.5px; }
.hours-table td { border: 0; padding: 5px 0; background: none !important; color: #c9c9c9; }
.hours-table td:last-child { text-align: right; color: #fff; font-weight: 700; }

/* ---------- 7. 响应式 ---------- */
@media (max-width: 1080px) {
  .pd { grid-template-columns: 1fr; gap: 34px; }
  .pd__media { max-width: 560px; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .co-layout { grid-template-columns: 1fr; }
  .story { grid-template-columns: 1fr; }
  .faq-two { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .cart-line { grid-template-columns: 84px 1fr; }
  .cart-line__thumb { width: 84px; }
  .cart-line__right { grid-column: 2; align-items: flex-start; text-align: left; flex-direction: row; align-items: center; justify-content: space-between; }
  .details-list { grid-template-columns: 1fr; }
  .shop-sort { margin-left: 0; }
  .pd__price { font-size: 32px; }
}
