/* 電商系統概念展示：山嵐茶舍 */
.device-screen[data-demo="shop"] { --status: #1f2a24; --home: rgba(31, 42, 36, 0.38); }
.device-screen[data-demo="shop"][data-scene="admin"] { --status: #f6f2ea; }

.dm-shop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #f6f2ea;
  color: #1f2a24;
  font-family: "Noto Sans TC", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.01em;
}
.dm-shop svg { display: block; }
.dm-shop b, .dm-shop em, .dm-shop i, .dm-shop small { font-style: normal; }

/* Screens */
.dm-shop .sh-screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(28px);
  transition: opacity 0.35s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0.55s;
}
.dm-shop[data-screen="product"] .sh-product,
.dm-shop[data-screen="checkout"] .sh-checkout,
.dm-shop[data-screen="success"] .sh-success,
.dm-shop[data-screen="admin"] .sh-admin {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.35s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s;
}

/* Header */
.dm-shop .sh-head {
  position: absolute;
  left: 0;
  right: 0;
  top: 48px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}
.dm-shop .sh-btn {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #1f2a24;
}
.dm-shop .sh-btn svg { width: 22px; height: 22px; }
.dm-shop .sh-head-r { display: flex; }
.dm-shop .sh-brand {
  font-family: "Noto Serif TC", serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.26em;
  padding-left: 0.26em;
}
.dm-shop .sh-title { letter-spacing: 0.14em; padding-left: 0.14em; }
.dm-shop .sh-badge {
  position: absolute;
  top: 3px;
  right: 1px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: #b5473a;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  box-shadow: 0 0 0 2px #f6f2ea;
  transform: scale(0);
}
.dm-shop .sh-badge.is-on { transform: scale(1); }
.dm-shop .sh-badge.is-pop { animation: sh-pop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1); }
.dm-shop .sh-cart.is-bump { animation: sh-bump 0.55s ease; }
@keyframes sh-pop {
  0% { transform: scale(0); }
  60% { transform: scale(1.35); }
  100% { transform: scale(1); }
}
@keyframes sh-bump {
  30% { transform: translateY(-3px) rotate(-9deg); }
  65% { transform: translateY(0) rotate(6deg); }
}

/* Product page */
.dm-shop .sh-pbody {
  position: absolute;
  left: 0;
  right: 0;
  top: 98px;
  bottom: 136px;
  overflow: hidden;
}
.dm-shop .sh-hero {
  position: relative;
  height: 222px;
  margin: 2px 14px 0;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 24%, rgba(184, 144, 90, 0.26), transparent 46%),
    linear-gradient(165deg, #f0e8d8, #e0d3ba);
}
.dm-shop .sh-hero-tag {
  position: absolute;
  z-index: 1;
  left: 12px;
  top: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #4f6b4a;
  color: #f6f2ea;
  font-size: 11px;
  letter-spacing: 0.12em;
}
.dm-shop .sh-art {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 300px;
  height: 210px;
  margin-left: -150px;
}
.dm-shop .sh-tin { animation: sh-float 5s ease-in-out infinite; }
@keyframes sh-float { 50% { transform: translateY(-4px); } }
.dm-shop .sh-steam {
  fill: none;
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: 2.4;
  stroke-linecap: round;
  opacity: 0;
  animation: sh-steam 3.3s ease-in-out infinite;
}
.dm-shop .sh-steam.s2 { animation-delay: 1.1s; }
.dm-shop .sh-steam.s3 { animation-delay: 2.2s; }
@keyframes sh-steam {
  0% { opacity: 0; transform: translateY(6px); }
  40% { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(-16px); }
}
.dm-shop .sh-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  display: flex;
  gap: 5px;
  transform: translateX(-50%);
}
.dm-shop .sh-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(31, 42, 36, 0.22); }
.dm-shop .sh-dots i:first-child { width: 16px; background: #1f2a24; }

.dm-shop .sh-info { padding: 13px 18px 0; }
.dm-shop .sh-origin { font-size: 11.5px; letter-spacing: 0.14em; color: #a98450; }
.dm-shop .sh-name {
  margin-top: 2px;
  font: 600 22px/1.3 "Noto Serif TC", serif;
  letter-spacing: 0.05em;
}
.dm-shop .sh-rate {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #6c736a;
}
.dm-shop .sh-stars { color: #c9a25e; font-size: 12px; letter-spacing: 1px; }
.dm-shop .sh-rate b { color: #1f2a24; font-weight: 600; }
.dm-shop .sh-prices { margin-top: 8px; display: flex; align-items: baseline; gap: 9px; }
.dm-shop .sh-price {
  font-size: 23px;
  font-weight: 700;
  color: #b5473a;
  font-variant-numeric: tabular-nums;
}
.dm-shop .sh-orig {
  font-size: 13px;
  color: #8d928a;
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}
.dm-shop .sh-sale {
  align-self: center;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid rgba(181, 71, 58, 0.45);
  color: #b5473a;
  font-size: 11px;
  line-height: 20px;
}
.dm-shop .sh-opts {
  margin-top: 13px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.dm-shop .sh-label { margin-bottom: 7px; font-size: 12px; color: #6c736a; letter-spacing: 0.08em; }
.dm-shop .sh-chips { display: flex; gap: 8px; }
.dm-shop .sh-chip {
  min-width: 70px;
  height: 36px;
  padding: 0 12px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(31, 42, 36, 0.18);
  background: #fbf8f2;
  font-size: 13.5px;
  transition: border-color 0.25s, background 0.25s, color 0.25s, box-shadow 0.25s;
}
.dm-shop .sh-chip.is-on {
  border-color: #4f6b4a;
  box-shadow: inset 0 0 0 1px #4f6b4a;
  background: rgba(79, 107, 74, 0.09);
  color: #3f5a3b;
  font-weight: 600;
}
.dm-shop .sh-qty {
  display: flex;
  height: 36px;
  border: 1px solid rgba(31, 42, 36, 0.18);
  border-radius: 10px;
  overflow: hidden;
  background: #fbf8f2;
}
.dm-shop .sh-qty span { width: 32px; display: grid; place-items: center; font-size: 16px; color: #4f6b4a; }
.dm-shop .sh-qty b {
  width: 32px;
  display: grid;
  place-items: center;
  font-weight: 600;
  border-inline: 1px solid rgba(31, 42, 36, 0.1);
}
.dm-shop .sh-notes { margin-top: 14px; display: flex; align-items: center; gap: 6px; }
.dm-shop .sh-inline { margin: 0 4px 0 0; }
.dm-shop .sh-note {
  padding: 2px 10px;
  border-radius: 999px;
  background: #ebe2d0;
  font-size: 12px;
  color: #4b544a;
}
.dm-shop .sh-brew {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6c736a;
}
.dm-shop .sh-brew svg { width: 17px; height: 17px; color: #a98450; }

.dm-shop .sh-hero,
.dm-shop .sh-info > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.dm-shop.is-enter .sh-hero,
.dm-shop.is-enter .sh-info > * { opacity: 1; transform: none; }
.dm-shop.is-enter .sh-info > :nth-child(1) { transition-delay: 0.08s; }
.dm-shop.is-enter .sh-info > :nth-child(2) { transition-delay: 0.13s; }
.dm-shop.is-enter .sh-info > :nth-child(3) { transition-delay: 0.18s; }
.dm-shop.is-enter .sh-info > :nth-child(4) { transition-delay: 0.23s; }
.dm-shop.is-enter .sh-info > :nth-child(5) { transition-delay: 0.28s; }
.dm-shop.is-enter .sh-info > :nth-child(6) { transition-delay: 0.33s; }
.dm-shop.is-enter .sh-info > :nth-child(7) { transition-delay: 0.38s; }

/* Bottom CTA + browser bar */
.dm-shop .sh-cta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 72px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: #f6f2ea;
  border-top: 1px solid rgba(31, 42, 36, 0.07);
}
.dm-shop .sh-fav {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 13px;
  border: 1px solid rgba(31, 42, 36, 0.16);
  color: #b5473a;
}
.dm-shop .sh-fav svg { width: 21px; height: 21px; }
.dm-shop .sh-add {
  flex: 1;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 13px;
  background: #4f6b4a;
  color: #f6f2ea;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 10px 20px -12px rgba(63, 90, 59, 0.9);
  transition: transform 0.15s ease, background 0.25s;
}
.dm-shop .sh-add svg { width: 16px; height: 16px; }
.dm-shop .is-press { transform: scale(0.96); }

.dm-shop .sh-bar {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  background: rgba(238, 232, 220, 0.97);
  border-top: 1px solid rgba(31, 42, 36, 0.08);
}
.dm-shop .sh-url-pill {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 8px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(31, 42, 36, 0.075);
  color: #2c3530;
  font-size: 13px;
}
.dm-shop .sh-url-pill > svg { width: 15px; height: 15px; opacity: 0.75; }
.dm-shop .sh-aa { font-size: 12.5px; font-weight: 600; }
.dm-shop .sh-url-mid { display: flex; align-items: center; gap: 5px; }
.dm-shop .sh-url-mid svg { width: 11px; height: 11px; opacity: 0.7; }

/* Fly-to-cart, toast */
.dm-shop .sh-fly {
  position: absolute;
  z-index: 35;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  opacity: 0;
}
.dm-shop .sh-fly.is-on { opacity: 1; }
.dm-shop .sh-fly-x,
.dm-shop .sh-fly-y { position: absolute; left: 0; top: 0; }
.dm-shop .sh-fly-y svg {
  width: 40px;
  height: 48px;
  margin: -24px 0 0 -20px;
  filter: drop-shadow(0 6px 8px rgba(31, 42, 36, 0.25));
}
.dm-shop .sh-fly.is-go .sh-fly-x { transition: transform 0.8s cubic-bezier(0.6, 0, 0.9, 0.5); }
.dm-shop .sh-fly.is-go .sh-fly-y { transition: transform 0.8s cubic-bezier(0.1, 0.6, 0.35, 1); }

.dm-shop .sh-toast {
  position: absolute;
  z-index: 25;
  left: 50%;
  bottom: 152px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(31, 42, 36, 0.92);
  color: #f6f2ea;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 0.3s, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.dm-shop .sh-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.dm-shop .sh-toast svg { width: 15px; height: 15px; color: #a9c9a0; }

/* Cart sheet */
.dm-shop .sh-veil {
  position: absolute;
  z-index: 26;
  inset: 0;
  background: rgba(31, 42, 36, 0.34);
  opacity: 0;
  transition: opacity 0.35s;
}
.dm-shop .sh-veil.is-open { opacity: 1; }
.dm-shop .sh-sheet {
  position: absolute;
  z-index: 27;
  left: 0;
  right: 0;
  bottom: 72px;
  padding: 8px 18px 16px;
  border-radius: 22px 22px 0 0;
  background: #fbf8f2;
  box-shadow: 0 -10px 30px rgba(31, 42, 36, 0.16);
  transform: translateY(calc(100% + 80px));
  transition: transform 0.5s cubic-bezier(0.2, 0.85, 0.25, 1);
}
.dm-shop .sh-sheet.is-open { transform: none; }
.dm-shop .sh-grab { width: 38px; height: 4px; margin: 0 auto 12px; border-radius: 2px; background: #d8cfbf; }
.dm-shop .sh-sheet-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font: 600 17px/1.4 "Noto Serif TC", serif;
}
.dm-shop .sh-sheet-title small { font: 400 12.5px "Noto Sans TC", sans-serif; color: #6c736a; }
.dm-shop .sh-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(31, 42, 36, 0.08);
}
.dm-shop .sh-thumb {
  width: 54px;
  height: 54px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #ebe2d0;
}
.dm-shop .sh-thumb svg { width: 30px; height: 36px; }
.dm-shop .sh-item-main { flex: 1; display: grid; line-height: 1.45; }
.dm-shop .sh-item-main b { font-size: 14.5px; font-weight: 600; }
.dm-shop .sh-item-main small { font-size: 12.5px; color: #6c736a; }
.dm-shop .sh-item-price { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dm-shop .sh-free { margin-top: 12px; font-size: 12px; color: #4f6b4a; }
.dm-shop .sh-free i {
  display: block;
  height: 4px;
  margin-bottom: 6px;
  border-radius: 2px;
  background: linear-gradient(90deg, #8aa37a, #4f6b4a);
}
.dm-shop .sh-sub {
  margin-top: 10px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 14px;
}
.dm-shop .sh-sub b { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dm-shop .sh-go {
  margin-top: 12px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #1f2a24;
  color: #f6f2ea;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: transform 0.15s;
}

/* Checkout */
.dm-shop .sh-ghost { visibility: hidden; }
.dm-shop .sh-steps {
  position: absolute;
  left: 0;
  right: 0;
  top: 98px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11.5px;
  color: #8d928a;
}
.dm-shop .sh-steps b { color: #4f6b4a; font-weight: 600; }
.dm-shop .sh-steps i { width: 18px; height: 1px; background: rgba(31, 42, 36, 0.2); }
.dm-shop .sh-co-body { position: absolute; left: 16px; right: 16px; top: 120px; }
.dm-shop .sh-sec { margin: 11px 0 6px; font-size: 12.5px; color: #6c736a; letter-spacing: 0.1em; }
.dm-shop .sh-opt {
  height: 48px;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(31, 42, 36, 0.14);
  background: #fbf8f2;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.dm-shop .sh-opt.is-on {
  border-color: #4f6b4a;
  box-shadow: inset 0 0 0 1px #4f6b4a;
  background: rgba(79, 107, 74, 0.06);
}
.dm-shop .sh-opt > svg { width: 20px; height: 20px; flex: none; color: #4f6b4a; }
.dm-shop .sh-radio {
  width: 18px;
  height: 18px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid rgba(31, 42, 36, 0.3);
  transition: border-color 0.25s;
}
.dm-shop .sh-radio::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4f6b4a;
  transform: scale(0);
  transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.dm-shop .is-on > .sh-radio { border-color: #4f6b4a; }
.dm-shop .is-on > .sh-radio::after { transform: scale(1); }
.dm-shop .sh-opt-main { flex: 1; display: grid; line-height: 1.35; }
.dm-shop .sh-opt-main b { font-size: 14px; font-weight: 500; }
.dm-shop .sh-opt-main small { font-size: 11.5px; color: #6c736a; }
.dm-shop .sh-fee { font-size: 13px; font-variant-numeric: tabular-nums; color: #4b544a; }
.dm-shop .sh-free-fee,
.dm-shop .sh-green { color: #3f7a43; }
.dm-shop .sh-pays { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dm-shop .sh-pay {
  position: relative;
  height: 58px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  border-radius: 12px;
  border: 1px solid rgba(31, 42, 36, 0.14);
  background: #fbf8f2;
  font-size: 12.5px;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s, color 0.25s;
}
.dm-shop .sh-pay > svg { width: 20px; height: 20px; color: #4f6b4a; }
.dm-shop .sh-pay.is-on {
  border-color: #4f6b4a;
  box-shadow: inset 0 0 0 1px #4f6b4a;
  background: rgba(79, 107, 74, 0.08);
  color: #3f5a3b;
  font-weight: 600;
}
.dm-shop .sh-tick {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #4f6b4a;
  color: #fff;
  box-shadow: 0 0 0 2px #f6f2ea;
  transform: scale(0);
  transition: transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.dm-shop .sh-tick svg { width: 11px; height: 11px; }
.dm-shop .sh-pay.is-on .sh-tick { transform: scale(1); }
.dm-shop .sh-coupon { display: flex; gap: 8px; }
.dm-shop .sh-input {
  position: relative;
  flex: 1;
  height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(31, 42, 36, 0.16);
  background: #fbf8f2;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.dm-shop .sh-input.is-focus { border-color: #4f6b4a; box-shadow: 0 0 0 3px rgba(79, 107, 74, 0.16); }
.dm-shop .sh-ph { position: absolute; left: 12px; color: #9aa096; }
.dm-shop .sh-input.is-filled .sh-ph { display: none; }
.dm-shop .sh-val { font-weight: 600; letter-spacing: 0.08em; }
.dm-shop .sh-apply {
  width: 64px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid #4f6b4a;
  color: #4f6b4a;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.15s;
}
.dm-shop .sh-cmsg {
  height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0;
  font-size: 12.5px;
  color: #3f7a43;
  transition: height 0.3s, opacity 0.3s, margin 0.3s;
}
.dm-shop .sh-cmsg svg { width: 14px; height: 14px; }
.dm-shop .sh-cmsg.is-on { height: 22px; margin-top: 4px; opacity: 1; }
.dm-shop .sh-sum {
  margin-top: 10px;
  padding: 8px 14px 10px;
  border-radius: 14px;
  border: 1px solid rgba(31, 42, 36, 0.1);
  background: #fbf8f2;
}
.dm-shop .sh-row {
  height: 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: #4b544a;
  font-variant-numeric: tabular-nums;
}
.dm-shop .sh-row.sh-disc {
  height: 0;
  overflow: hidden;
  opacity: 0;
  color: #b5473a;
  transition: height 0.35s, opacity 0.35s;
}
.dm-shop .sh-row.sh-disc.is-on { height: 23px; opacity: 1; }
.dm-shop .sh-row-total {
  height: auto;
  margin-top: 6px;
  padding-top: 7px;
  border-top: 1px dashed rgba(31, 42, 36, 0.18);
  color: #1f2a24;
}
.dm-shop .sh-row-total b { font-size: 18px; font-weight: 700; }
.dm-shop .sh-pay-btn { background: #1f2a24; }
.dm-shop .sh-pay-amt { margin-left: 2px; }

/* Processing */
.dm-shop .sh-proc {
  position: absolute;
  z-index: 28;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  background: rgba(246, 242, 234, 0.95);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0s 0.3s;
}
.dm-shop .sh-proc.is-on { opacity: 1; visibility: visible; transition: opacity 0.3s; }
.dm-shop .sh-spin {
  width: 46px;
  height: 46px;
  margin-bottom: 4px;
  border-radius: 50%;
  border: 3px solid rgba(79, 107, 74, 0.18);
  border-top-color: #4f6b4a;
  animation: sh-spin 0.8s linear infinite;
}
@keyframes sh-spin { to { transform: rotate(360deg); } }
.dm-shop .sh-proc b { font-size: 15.5px; font-weight: 600; }
.dm-shop .sh-proc small { font-size: 12px; color: #6c736a; }

/* Success */
.dm-shop .sh-sc-body {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 106px;
  display: grid;
  justify-items: center;
  text-align: center;
}
.dm-shop .sh-sc-body > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.dm-shop .sh-success.is-in .sh-sc-body > * { opacity: 1; transform: none; }
.dm-shop .sh-success.is-in .sh-sc-body > :nth-child(2) { transition-delay: 0.35s; }
.dm-shop .sh-success.is-in .sh-sc-body > :nth-child(3) { transition-delay: 0.45s; }
.dm-shop .sh-success.is-in .sh-sc-body > :nth-child(4) { transition-delay: 0.55s; }
.dm-shop .sh-success.is-in .sh-sc-body > :nth-child(5) { transition-delay: 0.7s; }
.dm-shop .sh-success.is-in .sh-sc-body > :nth-child(6) { transition-delay: 0.82s; }
.dm-shop .sh-check svg { width: 76px; height: 76px; }
.dm-shop .sh-ring,
.dm-shop .sh-tickpath {
  fill: none;
  stroke: #4f6b4a;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
.dm-shop .sh-ring { transform: rotate(-90deg); transform-origin: 40px 40px; }
.dm-shop .sh-tickpath { stroke-width: 4; }
.dm-shop .sh-success.is-in .sh-ring { stroke-dashoffset: 0; transition: stroke-dashoffset 0.7s ease 0.1s; }
.dm-shop .sh-success.is-in .sh-tickpath { stroke-dashoffset: 0; transition: stroke-dashoffset 0.45s ease 0.65s; }
.dm-shop .sh-sc-title {
  margin-top: 12px;
  font: 600 24px/1.3 "Noto Serif TC", serif;
  letter-spacing: 0.12em;
  padding-left: 0.12em;
}
.dm-shop .sh-sc-sub { margin-top: 4px; font-size: 13px; color: #6c736a; }
.dm-shop .sh-ono {
  margin-top: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #ebe2d0;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}
.dm-shop .sh-track {
  position: relative;
  width: 100%;
  margin-top: 20px;
  padding: 14px 8px 12px;
  border-radius: 16px;
  border: 1px solid rgba(31, 42, 36, 0.1);
  background: #fbf8f2;
}
.dm-shop .sh-track-line {
  position: absolute;
  left: calc(8px + 12.5%);
  right: calc(8px + 12.5%);
  top: 25px;
  height: 2px;
  background: rgba(31, 42, 36, 0.12);
}
.dm-shop .sh-track-line i {
  display: block;
  height: 100%;
  background: #4f6b4a;
  transform: scaleX(var(--fill, 0));
  transform-origin: left;
}
.dm-shop .sh-tsteps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
.dm-shop .sh-ts {
  display: grid;
  justify-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #8d928a;
  transition: color 0.3s;
}
.dm-shop .sh-ts > i {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid rgba(31, 42, 36, 0.18);
  background: #f6f2ea;
  color: transparent;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.dm-shop .sh-ts > i svg { width: 12px; height: 12px; }
.dm-shop .sh-ts.is-done { color: #3f5a3b; font-weight: 600; }
.dm-shop .sh-ts.is-done > i { background: #4f6b4a; border-color: #4f6b4a; color: #fff; }
.dm-shop .sh-ts.is-cur { color: #8a6a3b; font-weight: 600; }
.dm-shop .sh-ts.is-cur > i {
  border-color: #b8905a;
  background: #fbf8f2;
  animation: sh-ring 1.6s ease-in-out infinite;
}
@keyframes sh-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184, 144, 90, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(184, 144, 90, 0); }
}
.dm-shop .sh-order {
  width: 100%;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(31, 42, 36, 0.1);
  background: #fbf8f2;
  text-align: left;
}
.dm-shop .sh-order .sh-thumb { width: 46px; height: 46px; }
.dm-shop .sh-order .sh-thumb svg { width: 26px; height: 31px; }
.dm-shop .sh-order .sh-item-main b { font-size: 13.5px; }
.dm-shop .sh-order .sh-item-main small { font-size: 12px; }
.dm-shop .sh-sc-btns {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 84px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.dm-shop .sh-outline {
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  border: 1px solid rgba(31, 42, 36, 0.22);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Notification banner */
.dm-shop .sh-banner {
  position: absolute;
  z-index: 45;
  left: 10px;
  right: 10px;
  top: 50px;
  display: flex;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 16px 36px -10px rgba(31, 42, 36, 0.35), 0 0 0 1px rgba(31, 42, 36, 0.06);
  transform: translateY(calc(-100% - 70px));
  transition: transform 0.55s cubic-bezier(0.2, 0.9, 0.25, 1.05);
}
.dm-shop .sh-banner.is-on { transform: none; }
.dm-shop .sh-ban-ic {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #4f6b4a;
  color: #f6f2ea;
  font: 600 18px "Noto Serif TC", serif;
}
.dm-shop .sh-ban-main { flex: 1; min-width: 0; display: grid; font-size: 13px; line-height: 1.45; }
.dm-shop .sh-ban-top { display: flex; justify-content: space-between; }
.dm-shop .sh-ban-top b { font-weight: 600; }
.dm-shop .sh-ban-top small { font-size: 11px; color: #8d928a; }

/* Admin */
.dm-shop .sh-admin { background: #f3efe6; }
.dm-shop .sh-ad-top {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 150px;
  background: linear-gradient(180deg, #1f2a24, #29382f);
}
.dm-shop .sh-ad-head {
  position: absolute;
  left: 16px;
  right: 14px;
  top: 52px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #f6f2ea;
}
.dm-shop .sh-ad-brand {
  display: flex;
  align-items: center;
  font: 600 16px "Noto Serif TC", serif;
  letter-spacing: 0.12em;
}
.dm-shop .sh-ad-brand em {
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 6px;
  background: rgba(184, 144, 90, 0.26);
  color: #e5c99b;
  font: 500 10.5px/1.6 "Noto Sans TC", sans-serif;
  letter-spacing: 0.06em;
}
.dm-shop .sh-ad-r { display: flex; align-items: center; gap: 12px; }
.dm-shop .sh-bell { position: relative; }
.dm-shop .sh-bell svg { width: 21px; height: 21px; }
.dm-shop .sh-bell-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e0654f;
  box-shadow: 0 0 0 2px #1f2a24;
  transform: scale(0);
  transition: transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.dm-shop .sh-bell-dot.is-on { transform: scale(1); }
.dm-shop .sh-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #c9a46a;
  color: #1f2a24;
  font: 600 13px "Noto Serif TC", serif;
}
.dm-shop .sh-ad-body { position: absolute; left: 14px; right: 14px; top: 94px; }
.dm-shop .sh-ad-body > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.dm-shop .sh-admin.is-in .sh-ad-body > * { opacity: 1; transform: none; }
.dm-shop .sh-admin.is-in .sh-ad-body > :nth-child(2) { transition-delay: 0.08s; }
.dm-shop .sh-admin.is-in .sh-ad-body > :nth-child(3) { transition-delay: 0.16s; }
.dm-shop .sh-admin.is-in .sh-ad-body > :nth-child(4) { transition-delay: 0.22s; }
.dm-shop .sh-admin.is-in .sh-ad-body > :nth-child(5) { transition-delay: 0.3s; }
.dm-shop .sh-admin.is-in .sh-ad-body > :nth-child(6) { transition-delay: 0.38s; }
.dm-shop .sh-admin.is-in .sh-ad-body > :nth-child(7) { transition-delay: 0.44s; }
.dm-shop .sh-rev {
  padding: 12px 15px 8px;
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: 0 14px 30px -18px rgba(31, 42, 36, 0.55);
}
.dm-shop .sh-rev-top { display: flex; justify-content: space-between; font-size: 12.5px; color: #6c736a; }
.dm-shop .sh-rev-top span:last-child { font-size: 11.5px; }
.dm-shop .sh-rev-num { display: flex; align-items: center; gap: 8px; }
.dm-shop .sh-rev-val { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.dm-shop .sh-up {
  padding: 1px 7px;
  border-radius: 6px;
  background: rgba(79, 122, 67, 0.12);
  color: #3f7a43;
  font-size: 11.5px;
  font-weight: 600;
}
.dm-shop .sh-chart { width: 100%; height: 58px; margin-top: 4px; overflow: visible; }
.dm-shop .sh-line {
  fill: none;
  stroke: #4f6b4a;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  vector-effect: non-scaling-stroke;
}
.dm-shop .sh-area { opacity: 0; }
.dm-shop .sh-admin.is-in .sh-line { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.45s; }
.dm-shop .sh-admin.is-in .sh-area { opacity: 1; transition: opacity 0.9s ease 1.4s; }
.dm-shop .sh-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
  font-size: 10.5px;
  color: #9aa096;
  font-variant-numeric: tabular-nums;
}
.dm-shop .sh-kpis { margin-top: 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dm-shop .sh-kpi {
  display: grid;
  padding: 7px 10px;
  border-radius: 12px;
  border: 1px solid rgba(31, 42, 36, 0.08);
  background: #fffdf8;
  line-height: 1.4;
}
.dm-shop .sh-kpi small { font-size: 11px; color: #6c736a; }
.dm-shop .sh-kpi b { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dm-shop .sh-ad-sec {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 12px 2px 6px;
  font-size: 13.5px;
  font-weight: 600;
}
.dm-shop .sh-ad-sec small { font-size: 11.5px; font-weight: 400; color: #8d928a; }
.dm-shop .sh-orders {
  height: 132px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(31, 42, 36, 0.08);
  background: #fffdf8;
}
.dm-shop .sh-ord {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(31, 42, 36, 0.06);
  font-size: 13px;
  overflow: hidden;
}
.dm-shop .sh-ord b { width: 44px; flex: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.dm-shop .sh-ord span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
  color: #6c736a;
}
.dm-shop .sh-ord em { font-variant-numeric: tabular-nums; font-weight: 500; }
.dm-shop .sh-pill {
  width: 46px;
  flex: none;
  padding: 1px 0;
  border-radius: 6px;
  text-align: center;
  font-size: 10.5px;
  font-weight: 600;
}
.dm-shop .sh-pill.is-ok { background: rgba(79, 122, 67, 0.12); color: #3f7a43; }
.dm-shop .sh-pill.is-wait { background: rgba(184, 144, 90, 0.18); color: #8a6a3b; }
.dm-shop .sh-pill.is-new { background: #b5473a; color: #fff; }
.dm-shop .sh-ord.sh-new {
  height: 0;
  opacity: 0;
  border-bottom-width: 0;
  transition: height 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s 0.1s;
}
.dm-shop .sh-ord.sh-new.is-on {
  height: 44px;
  opacity: 1;
  border-bottom-width: 1px;
  animation: sh-flash 1.8s ease 0.35s;
}
@keyframes sh-flash {
  0%, 100% { background: transparent; }
  30% { background: rgba(184, 144, 90, 0.18); }
}
.dm-shop .sh-stock {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px 9px 12px;
  border-radius: 14px;
  border: 1px solid rgba(201, 130, 43, 0.3);
  background: #fff6ea;
}
.dm-shop .sh-stock > svg { width: 20px; height: 20px; flex: none; color: #c9822b; }
.dm-shop .sh-stock-main { flex: 1; display: grid; line-height: 1.4; }
.dm-shop .sh-stock-main small { font-size: 11px; font-weight: 600; color: #a8661d; }
.dm-shop .sh-stock-main b { font-size: 13.5px; font-weight: 600; }
.dm-shop .sh-restock {
  padding: 6px 12px;
  border-radius: 9px;
  background: #1f2a24;
  color: #f6f2ea;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.3s, transform 0.15s;
}
.dm-shop .sh-restock.is-done { background: #4f6b4a; }
.dm-shop .sh-rank { display: grid; }
.dm-shop .sh-rank-row {
  height: 25px;
  display: grid;
  grid-template-columns: 16px 104px 1fr 48px;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
}
.dm-shop .sh-rank-row em { font: 700 13px "Noto Serif TC", serif; color: #b8905a; }
.dm-shop .sh-rank-row i {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #4f6b4a, #8aa37a);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.9s;
}
.dm-shop .sh-admin.is-in .sh-rank-row i { transform: scaleX(var(--w)); }
.dm-shop .sh-rank-row span:last-child { text-align: right; color: #6c736a; font-variant-numeric: tabular-nums; }
