body.demo-page {
  margin: 0;
  background: #fff;
  color: #151515;
  font-family: Arial, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
}

#section01 {
  --text: #151515;
  --muted: #676767;
  --line: #dedede;
  --soft: #f1f1f1;
  --accent: #ff4b2f;
  padding: 80px 0 86px;
  color: var(--text);
  background: #fff;
}

#section01 *,
#section01 *::before,
#section01 *::after { box-sizing: border-box; }

#section01 button,
#section01 a { -webkit-tap-highlight-color: transparent; }

#section01 button { font: inherit; }

#section01 .inner {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

#section01 .head {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}

#section01 .eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .18em;
  color: #999;
}

#section01 .head h2 {
  margin: 0;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 700;
}

#section01 .desc {
  max-width: 660px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

#section01 .slider { position: relative; }
#section01 .swiper { overflow: hidden; }
#section01 .item { min-width: 0; }

#section01 .media {
  position: relative;
  overflow: hidden;
  background: var(--soft);
}

#section01 .pic {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--soft);
}

#section01 .pic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease, opacity .18s ease;
}

#section01 .pic img.changing {
  opacity: .45;
}

#section01 .badge {
  position: absolute;
  z-index: 4;
  top: 14px;
  left: 14px;
  padding: 5px 8px;
  border-radius: 2px;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
}

#section01 .badge.sale { color: #fff; background: var(--accent); }
#section01 .badge.new { color: #fff; background: #151515; }

#section01 .acts {
  position: absolute;
  z-index: 5;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#section01 .acts button,
#section01 .nav {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #111;
  background: rgba(255,255,255,.96);
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  cursor: pointer;
}

#section01 .acts svg,
#section01 .nav svg,
#section01 .quick svg,
#section01 .mobile-actions svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#section01 .quick {
  position: absolute;
  z-index: 5;
  left: 16px;
  right: 16px;
  bottom: 16px;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

#section01 .mobile-actions { display: none; }

#section01 .info {
  padding: 16px 2px 0;
  text-align: left;
}

#section01 .name {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
}

#section01 .name a {
  color: inherit;
  text-decoration: none;
}

#section01 .price {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 24px;
  margin-top: 7px;
  font-size: 14px;
}

#section01 .price del { color: #777; }
#section01 .price strong { font-size: 15px; }

#section01 .colors {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  margin-top: 7px;
  padding-left: 5px;
  font-size: 13px;
  color: #333;
}

#section01 .swatch {
  --sw: #ddd;
  position: relative;
  width: 17px;
  height: 17px;
  padding: 0;
  border: 1px solid rgba(0,0,0,.22);
  border-radius: 50%;
  background: var(--sw);
  cursor: pointer;
}

#section01 .swatch::before {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid transparent;
  border-radius: 50%;
  pointer-events: none;
}

#section01 .swatch.active::before { border-color: #555; }

#section01 .swatch::after {
  content: attr(data-name);
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translate(-50%, 4px);
  padding: 5px 7px;
  border-radius: 3px;
  background: #111;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: .18s ease;
}

#section01 .swatch:first-child::after {
  left: -5px;
  transform: translate(0, 4px);
}

#section01 .nav {
  position: absolute;
  z-index: 10;
  top: 42%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
}

#section01 .prev { left: -18px; }
#section01 .next { right: -18px; }

#section01 .nav.swiper-button-disabled {
  opacity: .35;
  cursor: default;
}

#section01 .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (hover: hover) and (pointer: fine) {
  #section01 .acts,
  #section01 .quick {
    opacity: 0;
    visibility: hidden;
  }

  #section01 .acts {
    transform: translateX(8px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
  }

  #section01 .quick {
    transform: translateY(10px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease, background .2s ease;
  }

  #section01 .item:hover .acts,
  #section01 .item:hover .quick,
  #section01 .item:focus-within .acts,
  #section01 .item:focus-within .quick {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  #section01 .item:hover .pic img { transform: scale(1.025); }
  #section01 .quick:hover,
  #section01 .acts button:hover { background: #151515; color: #fff; }

  #section01 .swatch:hover::after,
  #section01 .swatch:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }

  #section01 .swatch:first-child:hover::after,
  #section01 .swatch:first-child:focus-visible::after {
    transform: translate(0, 0);
  }

  #section01 .name a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

@media (max-width: 1023px) {
  #section01 { padding: 68px 0 74px; }
  #section01 .inner { width: min(100% - 32px, 1200px); }
  #section01 .prev { left: -12px; }
  #section01 .next { right: -12px; }
}

@media (max-width: 767px) {
  #section01 { padding: 54px 0 60px; }
  #section01 .inner { width: min(100% - 28px, 1200px); }
  #section01 .head { margin-bottom: 34px; }
  #section01 .head h2 { font-size: 29px; }

  #section01 .desc {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.7;
  }

  #section01 .media { overflow: visible; }
  #section01 .pic { overflow: hidden; }

  #section01 .badge {
    top: 10px;
    left: 10px;
  }

  #section01 .acts {
    top: 10px;
    right: 10px;
    gap: 7px;
  }

  #section01 .acts button {
    width: 34px;
    height: 34px;
    box-shadow: 0 1px 8px rgba(0,0,0,.08);
  }

  #section01 .acts .desktop-view,
  #section01 .quick { display: none; }

  #section01 .mobile-actions {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 40px;
    border: 1px solid var(--line);
    border-top: 0;
    background: #fff;
  }

  #section01 .mobile-actions button {
    position: relative;
    display: grid;
    place-items: center;
    border: 0;
    background: #fff;
    color: #111;
    cursor: pointer;
  }

  #section01 .mobile-actions button + button { border-left: 1px solid var(--line); }
  #section01 .info { padding-top: 13px; }

  #section01 .name {
    min-height: 42px;
    font-size: 14px;
    line-height: 1.5;
  }

  #section01 .price {
    flex-wrap: wrap;
    gap: 4px 8px;
    margin-top: 4px;
    font-size: 13px;
  }

  #section01 .price strong { font-size: 14px; }

  #section01 .colors {
    gap: 8px;
    margin-top: 6px;
  }

  #section01 .swatch {
    width: 16px;
    height: 16px;
  }

  #section01 .nav {
    top: 40%;
    width: 40px;
    height: 40px;
  }

  #section01 .prev { left: -8px; }
  #section01 .next { right: -8px; }
}

@media (max-width: 420px) {
  #section01 .inner { width: calc(100% - 24px); }
  #section01 .eyebrow { display: none; }
  #section01 .head h2 { font-size: 27px; }
  #section01 .desc { max-width: 330px; }
  #section01 .name { font-size: 13px; }

  #section01 .acts button {
    width: 32px;
    height: 32px;
  }

  #section01 .acts svg,
  #section01 .mobile-actions svg {
    width: 17px;
    height: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #section01 *,
  #section01 *::before,
  #section01 *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Variant price + stock state */
#section01 .buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 26px;
  margin-top: 7px;
}

#section01 .buy .price {
  min-height: 0;
  margin-top: 0;
}

#section01 .price del[hidden] { display: none; }

#section01 .stock {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  color: #39734d;
}

#section01 .stock::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

#section01 .stock.low { color: #a66a12; }
#section01 .stock.out { color: #8a8a8a; }

#section01 .quick:disabled,
#section01 .mobile-actions button:disabled {
  cursor: not-allowed;
  color: #9a9a9a;
  background: #f4f4f4;
}

@media (hover: hover) and (pointer: fine) {
  #section01 .item:hover .quick:disabled,
  #section01 .item:focus-within .quick:disabled {
    color: #9a9a9a;
    background: #f4f4f4;
  }
}

@media (max-width: 767px) {
  #section01 .buy {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
  }

  #section01 .stock {
    font-size: 11px;
  }
}

/* Quick Add drawer: one shared panel for the whole section */
#section01 .drawer {
  position: fixed;
  z-index: 1000;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
}

#section01 .drawer.open {
  visibility: visible;
  pointer-events: auto;
}

#section01 .mask {
  position: absolute;
  inset: 0;
  background: rgba(15,15,15,.38);
  opacity: 0;
  transition: opacity .28s ease;
}

#section01 .drawer.open .mask { opacity: 1; }

#section01 .panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(440px, 92vw);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: -16px 0 50px rgba(0,0,0,.12);
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.2,.8,.2,1);
  outline: none;
}

#section01 .drawer.open .panel { transform: translateX(0); }

#section01 .drawer-head {
  flex: 0 0 auto;
  min-height: 68px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

#section01 .drawer-head p {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

#section01 .close {
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f5f5f5;
  color: #111;
  cursor: pointer;
}

#section01 .close svg,
#section01 .add svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#section01 .drawer-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px;
}

#section01 .d-pic {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--soft);
}

#section01 .d-pic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .18s ease;
}

#section01 .d-pic img.changing { opacity: .45; }

#section01 .d-main { padding-top: 20px; }

#section01 .d-name {
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
}

#section01 .d-name a {
  color: inherit;
  text-decoration: none;
}

#section01 .d-buy {
  min-height: 30px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

#section01 .d-price {
  display: flex;
  align-items: center;
  gap: 10px;
}

#section01 .d-price del {
  color: #858585;
  font-size: 14px;
}

#section01 .d-price del[hidden] { display: none; }

#section01 .d-price strong { font-size: 18px; }

#section01 .d-stock {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  white-space: nowrap;
  color: #39734d;
}

#section01 .d-stock::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

#section01 .d-stock.low { color: #a66a12; }
#section01 .d-stock.out { color: #8a8a8a; }

#section01 .group {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid #ececec;
}

#section01 .label {
  min-height: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}

#section01 .label > span { font-weight: 700; }

#section01 .label > strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

#section01 .d-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  padding: 4px;
}

#section01 .d-swatch {
  --sw: #ddd;
  position: relative;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid rgba(0,0,0,.22);
  border-radius: 50%;
  background: var(--sw);
  cursor: pointer;
}

#section01 .d-swatch::before {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid transparent;
  border-radius: 50%;
}

#section01 .d-swatch.active::before { border-color: #454545; }

#section01 .specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

#section01 .spec {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #d8d8d8;
  border-radius: 3px;
  background: #fff;
  color: #222;
  font-size: 13px;
  cursor: pointer;
}

#section01 .spec.active {
  border-color: #111;
  background: #111;
  color: #fff;
}

#section01 .qty {
  width: 132px;
  height: 42px;
  margin-top: 12px;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  border: 1px solid #d8d8d8;
}

#section01 .qty button,
#section01 .qty input {
  min-width: 0;
  border: 0;
  background: #fff;
  color: #111;
  text-align: center;
}

#section01 .qty button {
  cursor: pointer;
  font-size: 19px;
}

#section01 .qty input {
  width: 100%;
  appearance: textfield;
  -moz-appearance: textfield;
  font-size: 13px;
}

#section01 .qty input::-webkit-outer-spin-button,
#section01 .qty input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

#section01 .add {
  width: 100%;
  min-height: 50px;
  margin-top: 28px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, opacity .2s ease;
}

#section01 .add:disabled {
  border-color: #dedede;
  background: #efefef;
  color: #929292;
  cursor: not-allowed;
}

#section01 .detail {
  min-height: 44px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #333;
  font-size: 13px;
  text-decoration: none;
}

#section01 .add.done {
  background: #39734d;
  border-color: #39734d;
}

@media (hover: hover) and (pointer: fine) {
  #section01 .close:hover { background: #111; color: #fff; }
  #section01 .spec:hover { border-color: #777; }
  #section01 .add:not(:disabled):hover { background: #333; }
  #section01 .detail:hover { text-decoration: underline; text-underline-offset: 3px; }
}

@media (max-width: 767px) {
  #section01 .panel {
    top: auto;
    bottom: 0;
    width: 100%;
    height: auto;
    max-height: min(88dvh, 760px);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -16px 50px rgba(0,0,0,.14);
    transform: translateY(100%);
  }

  #section01 .drawer.open .panel { transform: translateY(0); }

  #section01 .drawer-head {
    min-height: 58px;
    padding: 0 18px;
  }

  #section01 .drawer-head::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    width: 42px;
    height: 4px;
    border-radius: 99px;
    background: #d7d7d7;
    transform: translateX(-50%);
  }

  #section01 .drawer-body { padding: 18px 18px 24px; }

  #section01 .d-pic {
    width: 112px;
    aspect-ratio: 1 / 1;
    float: left;
    margin: 0 16px 12px 0;
  }

  #section01 .d-main { padding-top: 0; }

  #section01 .d-name {
    padding-top: 2px;
    font-size: 17px;
  }

  #section01 .d-buy {
    min-height: 28px;
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    margin-top: 6px;
  }

  #section01 .d-price strong { font-size: 16px; }

  #section01 .color-group {
    clear: both;
    margin-top: 18px;
  }

  #section01 .group {
    padding-top: 18px;
  }

  #section01 .d-swatch {
    width: 22px;
    height: 22px;
  }

  #section01 .add {
    position: sticky;
    bottom: -24px;
    z-index: 3;
    box-shadow: 0 -8px 18px rgba(255,255,255,.9);
  }
}
