:root {
  color-scheme: light;
  --ink: #17151f;
  --muted: #686174;
  --line: #e8e0f5;
  --accent: #8b4dff;
  --accent-dark: #5f31c8;
  --orange: #ff6f00;
  --mint: #8ee9dc;
  --paper: rgba(255, 255, 255, 0.78);
  --shadow: 0 20px 54px rgba(50, 32, 104, 0.13);
  --glass-top-alpha: 0.678;
  --glass-mid-alpha: 0.464;
  --glass-base-alpha: 0.381;
  --glass-panel-alpha: 0.238;
  --glass-image-top-alpha: 0.526;
  --glass-image-mid-alpha: 0.338;
}

* {
  box-sizing: border-box;
}

* {
  scrollbar-width: none;
}

*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

html,
body {
  touch-action: manipulation;
  background:
    radial-gradient(circle at 10% 0%, rgba(142, 233, 220, 0.55), transparent 34%),
    radial-gradient(circle at 92% 0%, rgba(169, 124, 255, 0.48), transparent 34%),
    linear-gradient(135deg, #fbfffe, #fff8f2 55%, #fbf8ff);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(142, 233, 220, 0.55), transparent 34%),
    radial-gradient(circle at 92% 0%, rgba(169, 124, 255, 0.48), transparent 34%),
    linear-gradient(135deg, #fbfffe, #fff8f2 55%, #fbf8ff);
  color: var(--ink);
}

body.modal-scroll-locked {
  position: fixed;
  inset: var(--modal-lock-top, 0) 0 auto 0;
  width: 100%;
  overflow: hidden;
}

.detail-series-nav[hidden],
.detail-series-arrow[hidden] {
  display: none !important;
}

.detail-series-swipe-preview {
  display: none;
}

.detail-series-arrow {
  position: fixed;
  top: 50%;
  z-index: 8;
  width: 64px;
  height: 92px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ff6f00;
  font-size: 74px;
  font-weight: 950;
  line-height: 1;
  text-shadow:
    0 0 7px rgba(255, 255, 255, 0.95),
    0 0 16px rgba(255, 111, 0, 0.98),
    0 0 34px rgba(255, 111, 0, 0.78);
  cursor: pointer;
  transform: translateY(-50%);
  filter: drop-shadow(0 0 13px rgba(255, 111, 0, 0.9));
  animation: detailSeriesArrowPulse 0.95s ease-in-out infinite;
}

.detail-series-prev {
  left: 34px;
}

.detail-series-next {
  right: 34px;
}

@keyframes detailSeriesArrowPulse {
  0%, 100% {
    opacity: 0.82;
    color: #ff6f00;
    transform: translateY(-50%) scale(0.96);
  }

  50% {
    opacity: 1;
    color: #ffffff;
    transform: translateY(-50%) scale(1.08);
  }
}

@keyframes detailSeriesSettleZoom {
  from {
    transform: translate3d(var(--detail-pan-x, 0), var(--detail-pan-y, 0), 0) scale(calc(var(--detail-zoom, 1) * 0.992));
  }

  to {
    transform: translate3d(var(--detail-pan-x, 0), var(--detail-pan-y, 0), 0) scale(var(--detail-zoom, 1));
  }
}

@media (max-width: 780px) {
  .detail-series-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 70;
    width: min(calc(100vw - 48px), 340px);
    height: 42px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.46);
    border-radius: 16px 16px 0 0;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.32)),
      rgba(240, 239, 244, 0.38);
    box-shadow:
      0 10px 28px rgba(18, 16, 28, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.55);
    transform: translateX(-50%);
    backdrop-filter: blur(16px) saturate(1.08);
    -webkit-backdrop-filter: blur(16px) saturate(1.08);
  }

  .detail-series-arrow {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 70 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: rgba(54, 49, 65, 0.86) !important;
    font-size: 0 !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    text-shadow: none !important;
    box-shadow: none !important;
    transform: none !important;
    animation: none !important;
    filter: none !important;
    letter-spacing: 0 !important;
    touch-action: manipulation;
  }

  .detail-series-prev {
    border-right: 1px solid rgba(68, 62, 82, 0.16) !important;
  }

  .detail-series-next {
    border-left: 1px solid rgba(255, 255, 255, 0.32) !important;
  }

  .detail-series-arrow::before {
    font-size: 15px;
    line-height: 1;
  }

  .detail-series-prev::before {
    content: attr(data-label);
  }

  .detail-series-next::before {
    content: attr(data-label);
  }

  @keyframes detailSeriesMobileArrowPulse {
    0%, 100% {
      opacity: 1;
      transform: none;
    }

    50% {
      opacity: 1;
      transform: none;
    }
  }

  #detailDialog.is-series-dragging,
  #detailDialog.is-series-returning {
    overflow: hidden !important;
  }

  #detailDialog.is-series-dragging > .detail-image-stage,
  #detailDialog.is-series-returning > .detail-image-stage,
  #detailDialog.is-series-dragging > .dialog-copy,
  #detailDialog.is-series-returning > .dialog-copy {
    opacity: calc(1 - var(--series-info-progress, 0)) !important;
    transform: none !important;
    will-change: opacity;
  }

  .detail-series-swipe-preview {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: none;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    padding: 8px;
    overflow: hidden;
    pointer-events: none;
    border-radius: inherit;
    background: inherit;
    opacity: var(--series-info-progress, 0);
    transform: none !important;
    will-change: opacity;
  }

  .detail-series-swipe-preview.is-active-series-preview {
    display: grid;
  }

  #detailDialog > :not(.detail-series-swipe-preview) {
    position: relative;
    z-index: 1;
  }

  .detail-series-swipe-preview .detail-image-stage {
    display: grid;
    place-items: center;
    min-height: 180px;
    max-height: calc(100dvh - 142px);
    overflow: hidden;
    background: #fff;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    line-height: 0;
  }

  .detail-series-swipe-preview .detail-image-stage img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(100dvh - 150px);
    object-fit: contain;
  }

  .detail-series-swipe-preview .dialog-copy {
    display: grid;
    gap: 6px;
    padding: 10px 12px;
    opacity: 1;
    transform: none !important;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.5)),
      rgba(255, 255, 255, 0.42);
  }

  .detail-series-swipe-preview .detail-info-line {
    display: grid;
    gap: 4px;
    justify-items: start;
    text-align: left;
  }

  .detail-series-swipe-preview p,
  .detail-series-swipe-preview span,
  .detail-series-swipe-preview strong {
    margin: 0;
    color: #403354;
    font-size: 13px;
    line-height: 1.35;
  }

  #detailDialog.is-series-dragging {
    transition: none !important;
  }

  .detail-series-swipe-preview {
    transition: none !important;
  }

  #detailDialog.is-series-returning {
    transition: none !important;
  }

  #detailDialog.is-series-returning > .detail-image-stage,
  #detailDialog.is-series-returning > .dialog-copy {
    transition: opacity 240ms cubic-bezier(0.22, 1, 0.36, 1) !important;
  }

  .detail-series-swipe-preview.is-series-returning {
    transition: opacity 240ms cubic-bezier(0.22, 1, 0.36, 1) !important;
  }
}

body,
body img {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

body img {
  -webkit-user-drag: none;
  user-drag: none;
}

input,
textarea {
  -webkit-user-select: text;
  user-select: text;
}

.site-version {
  width: min(1180px, calc(100% - 32px));
  margin: 10px auto 24px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  color: rgba(105, 92, 132, 0.62);
  user-select: none;
}

button,
input,
select {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.locked-state {
  width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vh, 42px) 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(42, 27, 14, 0.02), rgba(33, 22, 17, 0.16)),
    url("./login-desert-clouds-202606221004.png") center center / cover no-repeat;
  isolation: isolate;
}

.locked-state::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 52% 44%, transparent 0 40%, rgba(34, 22, 13, 0.24) 100%);
  pointer-events: none;
}

.locked-state::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(255, 248, 218, 0.08), rgba(93, 53, 19, 0.18));
  pointer-events: none;
}

.desert-layer {
  position: absolute;
  pointer-events: none;
}

.desert-sun {
  left: clamp(-120px, -7vw, -42px);
  top: clamp(-130px, -9vh, -42px);
  z-index: 1;
  width: clamp(360px, 42vw, 780px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 34%, rgba(255, 255, 246, 1) 0 6%, rgba(255, 235, 166, 0.82) 14%, rgba(255, 191, 88, 0.38) 31%, rgba(255, 190, 91, 0.12) 48%, transparent 68%);
  filter: blur(0.4px);
  mix-blend-mode: screen;
  opacity: 0.96;
  animation: desertSunPulse 6.8s ease-in-out infinite;
}

.desert-rays {
  left: -20vw;
  top: -24vh;
  z-index: 1;
  width: 120vw;
  height: 102vh;
  background:
    linear-gradient(135deg, transparent 0 12%, rgba(255, 248, 204, 0.46) 21%, rgba(255, 222, 135, 0.22) 38%, transparent 62%),
    radial-gradient(ellipse at 15% 10%, rgba(255, 246, 199, 0.42) 0 14%, transparent 48%);
  filter: blur(22px);
  mix-blend-mode: screen;
  opacity: 0.82;
  transform-origin: left top;
  animation: desertRayPulse 9.5s ease-in-out infinite;
}

.desert-clouds {
  z-index: 1;
  left: -18vw;
  right: -18vw;
  top: -8vh;
  height: 42vh;
  opacity: 0.42;
  mix-blend-mode: screen;
  filter: blur(13px);
}

.desert-clouds-far {
  background:
    radial-gradient(ellipse at 18% 44%, rgba(255, 250, 232, 0.34) 0 9%, transparent 27%),
    radial-gradient(ellipse at 48% 34%, rgba(255, 244, 219, 0.24) 0 11%, transparent 31%),
    radial-gradient(ellipse at 82% 42%, rgba(255, 245, 224, 0.22) 0 10%, transparent 29%);
  animation: desertCloudDriftFar 52s linear infinite;
}

.desert-clouds-near {
  top: 1vh;
  height: 34vh;
  opacity: 0.3;
  background:
    radial-gradient(ellipse at 8% 58%, rgba(255, 251, 235, 0.28) 0 8%, transparent 24%),
    radial-gradient(ellipse at 58% 47%, rgba(255, 241, 213, 0.18) 0 9%, transparent 27%),
    radial-gradient(ellipse at 90% 55%, rgba(255, 249, 229, 0.18) 0 8%, transparent 24%);
  animation: desertCloudDriftNear 36s linear infinite;
}

.desert-wind-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0.78;
  mix-blend-mode: screen;
  pointer-events: none;
}

.access-card {
  width: min(460px, 100%);
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 32px 28px 28px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 238, 0.68)),
    rgba(255, 255, 255, 0.56);
  box-shadow:
    0 40px 90px rgba(55, 32, 12, 0.34),
    0 18px 36px rgba(111, 66, 18, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  text-align: center;
  backdrop-filter: blur(20px) saturate(1.12);
  -webkit-backdrop-filter: blur(20px) saturate(1.12);
  transform: translateY(-3px);
}

.access-card::before {
  content: "";
  position: absolute;
  inset: 9px;
  z-index: -1;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.48), transparent 42%);
  pointer-events: none;
}

@keyframes desertSunPulse {
  0%,
  100% {
    opacity: 0.86;
    filter: blur(0.5px) saturate(1.04);
    transform: scale(1);
  }
  50% {
    opacity: 1;
    filter: blur(1.5px) saturate(1.18);
    transform: scale(1.08);
  }
}

@keyframes desertRayPulse {
  0%,
  100% {
    opacity: 0.62;
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    opacity: 0.9;
    transform: translate3d(1.4vw, 1vh, 0) scale(1.025);
  }
}

@keyframes desertCloudDriftFar {
  0% {
    transform: translate3d(-4vw, 0, 0);
  }
  100% {
    transform: translate3d(7vw, 0, 0);
  }
}

@keyframes desertCloudDriftNear {
  0% {
    transform: translate3d(5vw, 0, 0);
  }
  100% {
    transform: translate3d(-7vw, 0, 0);
  }
}


.access-card .monica-logo {
  width: 76px;
  height: 76px;
  font-size: 42px;
}

.access-card .brand-mark-block {
  position: static;
  display: grid;
  justify-items: center;
  gap: 5px;
}

.access-card .brand-mark-block p {
  margin: 0;
  color: var(--orange);
  font-family: Didot, "Bodoni 72", "Bodoni 72 Smallcaps", "Bodoni MT", "Times New Roman", serif;
  font-size: 22px;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

.access-card h1 {
  margin: 0;
  color: var(--orange);
  font-size: clamp(32px, 8.4vw, 48px);
  line-height: 1.04;
  letter-spacing: 0.04em;
  text-shadow: none;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

.access-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 900;
}

.access-card .access-address {
  width: 100%;
  color: #776f80;
  min-height: calc(var(--access-address-line-height, 1.24em) * 2);
  max-height: calc(var(--access-address-line-height, 1.24em) * 2);
  overflow: hidden;
  font-size: var(--access-address-font-size, 12px);
  font-weight: 800;
  line-height: var(--access-address-line-height, 1.24em);
  text-align: center;
  overflow-wrap: anywhere;
}

.wechat-card {
  width: min(260px, 100%);
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 12px 28px rgba(255, 111, 0, 0.08);
}

.wechat-card span {
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
}

.wechat-card img {
  width: min(190px, 100%);
  aspect-ratio: 1 / 1;
  display: block;
  border-radius: 14px;
  object-fit: contain;
  background: #fff;
}

.wechat-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.access-card input {
  width: 100%;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 0 16px;
  outline: 0;
  text-align: center;
  background: #fff;
}

.access-card button {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: #ff8a2a;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(255, 138, 42, 0.16);
}

.access-language-actions {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.access-language-actions button {
  border: 1px solid rgba(255, 229, 198, 0.3);
  color: #9a4a15;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.34), rgba(255, 239, 218, 0.16)),
    rgba(255, 255, 255, 0.18);
  box-shadow:
    0 5px 12px rgba(124, 72, 18, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  min-width: 0;
  height: 44px;
  padding: 0 8px;
  font-size: 13px;
  line-height: 1.1;
  white-space: normal;
}

.access-language-actions button.is-selected {
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
  background:
    linear-gradient(145deg, rgba(255, 155, 61, 0.88), rgba(255, 122, 26, 0.82));
  box-shadow:
    0 8px 18px rgba(255, 122, 26, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.access-card strong {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  width: min(268px, calc(100% - 22px));
  min-height: 0;
  display: grid;
  gap: 2px;
  place-items: center;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 18px;
  color: #c2410c;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(124, 45, 18, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.16;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.98);
  transition: opacity 160ms ease, transform 160ms ease;
  backdrop-filter: blur(14px) saturate(1.16);
  -webkit-backdrop-filter: blur(14px) saturate(1.16);
}

.access-card strong span {
  display: block;
}

.access-card strong span + span {
  font-size: 12px;
}

.access-card strong.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.access-card strong.info {
  color: #776f80;
}

.site-header {
  position: static;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  padding: 8px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.74);
  border-bottom: 1px solid rgba(139, 77, 255, 0.12);
  backdrop-filter: blur(18px);
}

a {
  color: inherit;
  text-decoration: none;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: transparent;
  font-weight: 800;
}

nav a,
.nav-text-btn {
  font-size: 12px;
}

.nav-text-btn {
  border: 0;
  padding: 0;
  color: transparent;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.nav-text-btn:hover,
nav a:hover {
  color: rgba(255, 111, 0, 0.14);
}

main {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 14px clamp(18px, 4vw, 56px) 56px;
}

html:not(.customer-session-restoring) body:has(#customerContent[hidden]) main {
  width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
}

html:not(.customer-session-restoring) body:has(#customerContent[hidden]) .site-version {
  display: none !important;
}

.hero-image-banner {
  overflow: hidden;
  border-radius: 28px;
  background: transparent;
  box-shadow: none;
  line-height: 0;
}

.hero-image-banner img {
  width: calc(100% + 8px);
  display: block;
  aspect-ratio: 2164 / 727;
  object-fit: cover;
  object-position: center;
  margin: -4px;
}

.hero {
  position: relative;
  min-height: 240px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  overflow: hidden;
  padding: clamp(18px, 2.4vw, 28px) clamp(22px, 3.2vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 28px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.74) 52%, rgba(255, 245, 235, 0.72) 100%),
    linear-gradient(135deg, rgba(142, 233, 220, 0.24), rgba(255, 111, 0, 0.14));
  box-shadow: var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 100%),
    linear-gradient(155deg, transparent 0 68%, rgba(255, 111, 0, 0.11) 69%, transparent 76%);
  background-size: 28px 28px, 100% 100%;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(620px, 100%);
  margin-left: clamp(12px, 2.4vw, 34px);
  text-align: center;
}

.brand-mark-block {
  position: static;
  display: grid;
  justify-items: center;
  gap: 7px;
}

.logo-contact-btn {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  animation: logoContactPulse 2.2s ease-in-out infinite;
  border-radius: 22px;
}

@keyframes logoContactPulse {
  0%,
  100% {
    filter: brightness(0.96) saturate(1);
    opacity: 0.9;
    transform: translateY(0) scale(0.985);
  }
  50% {
    filter: brightness(1.24) saturate(1.18);
    opacity: 1;
    transform: translateY(-1px) scale(1.035);
  }
}

.monica-logo {
  width: clamp(68px, 5.8vw, 90px);
  height: clamp(68px, 5.8vw, 90px);
  display: grid;
  place-items: center;
  border: 5px solid var(--orange);
  border-radius: 50%;
  color: var(--orange);
  background: #fff;
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-size: clamp(38px, 3.4vw, 52px);
  font-weight: 900;
  line-height: 1;
  text-shadow: none;
  box-shadow: none;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}


.hero-copy p {
  margin: 0;
  color: var(--orange);
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.08em;
}

.section-head p {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-copy h1 {
  position: relative;
  max-width: 760px;
  margin: 0;
  color: var(--orange);
  font-size: clamp(42px, 4.8vw, 64px);
  line-height: 1;
  letter-spacing: 0.09em;
  text-shadow:
    0 2px 0 #cf5700,
    0 8px 18px rgba(255, 111, 0, 0.24),
    0 18px 38px rgba(70, 48, 22, 0.16);
}

.brand-title {
  display: grid;
  gap: 9px;
  justify-items: center;
}

.brand-title > p {
  margin: 0;
  color: #18131f;
  font-size: clamp(12px, 1.15vw, 16px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-title span {
  display: inline-block;
  margin: 0 10px;
  color: rgba(255, 111, 0, 0.72);
}

.brand-features {
  width: min(620px, 100%);
  margin-top: 2px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 12px 28px rgba(50, 32, 104, 0.08);
  backdrop-filter: blur(12px);
}

.brand-features div {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 12px 8px;
  border-left: 1px solid rgba(111, 106, 124, 0.18);
}

.brand-features div:first-child {
  border-left: 0;
}

.brand-features strong {
  color: var(--ink);
  font-size: clamp(11px, 0.95vw, 14px);
  font-weight: 950;
}

.brand-features span {
  color: var(--muted);
  font-size: clamp(9px, 0.75vw, 11px);
  font-weight: 850;
  line-height: 1.2;
}

.hero-store-photo {
  position: relative;
  z-index: 1;
  min-height: 226px;
  align-self: stretch;
  overflow: hidden;
  margin: -28px -40px -28px -86px;
  border-radius: 0 28px 28px 0;
  background: rgba(255, 111, 0, 0.14);
  box-shadow: none;
}

.hero-store-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.98) 14%, rgba(255, 255, 255, 0.72) 28%, rgba(255, 255, 255, 0.18) 48%, rgba(126, 40, 0, 0.08) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 111, 0, 0.14));
  pointer-events: none;
}

.hero-store-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 28%, transparent 52%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 100%);
  background-size: 100% 100%, 34px 34px;
  pointer-events: none;
}

.hero-store-photo img {
  width: 100%;
  height: 100%;
  min-height: 226px;
  display: block;
  object-fit: cover;
  object-position: center right;
  filter: saturate(1.08) contrast(1.03) brightness(1);
  transform: scale(1.04);
  transform-origin: right center;
}

.store-info {
  position: relative;
  margin-top: 14px;
  padding: 16px 20px;
  display: flex;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 34px rgba(50, 32, 104, 0.08);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.store-address {
  display: inline-grid;
  grid-template-columns: 28px minmax(0, auto) auto;
  align-items: center;
  column-gap: 14px;
  row-gap: 6px;
  width: auto;
  max-width: 100%;
  line-height: 1.45;
  text-align: left;
}

.map-marker {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--orange);
  background: rgba(255, 111, 0, 0.14);
  pointer-events: none;
}

.map-marker svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.address-copy-btn {
  min-width: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-align: left;
  cursor: copy;
}

.address-copy-btn:hover {
  color: var(--ink);
}

.wechat-pill-btn {
  min-height: 30px;
  border: 1px solid rgba(7, 193, 96, 0.28);
  border-radius: 999px;
  padding: 0 12px;
  background: linear-gradient(135deg, rgba(232, 255, 241, 0.98), rgba(198, 246, 213, 0.92));
  color: #05853f;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(7, 193, 96, 0.14);
  cursor: pointer;
  animation: wechatPillFloat 1.25s ease-in-out infinite;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.wechat-pill-btn:hover,
.wechat-pill-btn:focus-visible {
  border-color: rgba(7, 193, 96, 0.46);
  background: linear-gradient(135deg, rgba(220, 252, 231, 1), rgba(134, 239, 172, 0.34));
  color: #047333;
  box-shadow: 0 16px 30px rgba(7, 193, 96, 0.22);
  outline: 0;
  transform: translateY(-2px);
}

@keyframes wechatPillFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }
}

.copy-address-toast {
  position: absolute;
  left: 50%;
  bottom: -12px;
  min-height: 0;
  padding: 5px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(23, 21, 31, 0.76);
  font-size: 12px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 50%) scale(0.96);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  white-space: nowrap;
}

.copy-address-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 50%) scale(1);
}

.vx-text {
  flex: 0 0 auto;
}

.toolbar {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 160px auto auto;
  gap: 8px;
  align-items: center;
}

.search-box {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(139, 77, 255, 0.06);
}

.search-box span {
  color: var(--muted);
  font-size: 20px;
}

.search-box input,
.toolbar select {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.toolbar select,
.ghost-btn,
.new-filter-btn {
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.ghost-btn {
  white-space: nowrap;
  cursor: pointer;
}

.new-filter-btn {
  white-space: nowrap;
  cursor: pointer;
  border-color: rgba(255, 111, 0, 0.24);
  color: var(--orange);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 247, 237, 0.92));
  font-weight: 950;
}

.ghost-btn:hover,
.new-filter-btn:hover {
  border-color: rgba(255, 111, 0, 0.44);
  color: var(--orange);
}

.new-filter-btn.active {
  border-color: rgba(255, 111, 0, 0.5);
  background: linear-gradient(135deg, #b94a00 0%, #e35d00 48%, var(--orange) 100%);
  color: #fff;
  box-shadow: 0 12px 26px rgba(255, 111, 0, 0.22);
}

.new-filter-btn.has-new-products {
  border-color: rgba(234, 88, 12, 0.46);
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.98), rgba(254, 215, 170, 0.92));
  color: #c2410c;
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.18);
  animation: newFilterNoticeFloat 1.25s ease-in-out infinite;
}

.new-filter-btn.has-new-products:hover,
.new-filter-btn.has-new-products:focus-visible {
  border-color: rgba(234, 88, 12, 0.64);
  background: linear-gradient(135deg, rgba(255, 237, 213, 1), rgba(251, 146, 60, 0.28));
  box-shadow: 0 16px 30px rgba(234, 88, 12, 0.24);
  color: #9a3412;
}

.new-filter-btn.has-new-products.active {
  border-color: rgba(255, 111, 0, 0.64);
  background: linear-gradient(135deg, #b94a00 0%, #e35d00 48%, var(--orange) 100%);
  color: #fff;
}

@keyframes newFilterNoticeFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }
}

.danger-btn {
  min-height: 44px;
  border: 1px solid rgba(180, 35, 24, 0.22);
  border-radius: 16px;
  padding: 0 16px;
  background: rgba(255, 244, 242, 0.96);
  color: #b42318;
  font-weight: 950;
  cursor: pointer;
}

.web-confirm-dialog {
  width: min(420px, calc(100vw - 32px));
  padding: 0;
}

.web-confirm-dialog[open] {
  display: block;
}

.web-confirm-box {
  display: grid;
  gap: 14px;
  padding: 28px;
  text-align: center;
}

.web-confirm-box h3 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
}

.web-confirm-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.web-confirm-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  max-height: 82px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 2px 2px;
}

.category-strip button {
  flex: 0 0 auto;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.category-strip button:hover,
.category-strip button:focus-visible {
  border-color: rgba(139, 77, 255, 0.36);
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 22px rgba(50, 32, 104, 0.12);
  transform: translateY(-2px);
}

.category-strip button.active {
  border-color: rgba(139, 77, 255, 0.4);
  color: #fff;
  background: var(--accent);
}

.category-strip button.active:hover,
.category-strip button.active:focus-visible {
  color: #fff;
  background: var(--accent);
}

.section-head {
  margin-top: 14px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(20px, 2.5vw, 30px);
  line-height: 1.08;
  white-space: nowrap;
}

.section-head h2 .gallery-title-cn {
  color: inherit;
  font-size: 1em;
  font-weight: 950;
}

.section-head h2 .gallery-title-en {
  margin-left: 8px;
  color: var(--muted);
  font-size: 0.46em;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  vertical-align: middle;
}

.section-head > span,
.gallery-actions {
  color: var(--muted);
  font-weight: 900;
}

.section-head p {
  font-size: 18px;
  letter-spacing: 0.42em;
}

.gallery-module {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 10px 12px 10px 16px;
  border: 1px solid rgba(139, 77, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(139, 77, 255, 0.08);
}

.gallery-module h2 {
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 16px;
}

.gallery-module h2 .gallery-title-en {
  font-size: 0.62em;
}

.gallery-module > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.quote-switch {
  grid-column: 1 / -1;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  position: relative;
  overflow: visible;
  border: 1px solid rgba(139, 77, 255, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.74)),
    rgba(255, 255, 255, 0.72);
  box-shadow:
    0 14px 30px rgba(50, 32, 104, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.quote-switch::after {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(139, 77, 255, 0.22), transparent);
}

.gallery-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-open-btn,
.cart-add-btn,
.cart-actions .ghost-btn,
.cart-actions .primary-btn {
  border: 1px solid rgba(139, 77, 255, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--accent-dark);
  font-weight: 950;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.cart-open-btn {
  min-height: 34px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  position: relative;
  gap: 6px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  white-space: nowrap;
}

.cart-open-btn:hover,
.cart-open-btn:focus-visible {
  border-color: rgba(139, 77, 255, 0.42);
  background: rgba(139, 77, 255, 0.08);
  box-shadow: none;
  transform: none;
}

@keyframes submittedButtonNoticeFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }
}

.cart-count-badge {
  position: absolute;
  top: -10px;
  right: -8px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  padding: 0 6px;
  box-shadow: 0 8px 18px rgba(242, 112, 35, 0.28);
}

.cart-count-badge[hidden] {
  display: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  --info-height: 82px;
  --meta-size: 12px;
  --title-size: 15px;
  --button-size: 13px;
  aspect-ratio: 1 / 1.08;
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) var(--info-height);
  overflow: hidden;
  border: 1px solid rgba(139, 77, 255, 0.1);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(50, 32, 104, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  will-change: transform;
  cursor: pointer;
}

.product-card:hover {
  z-index: 2;
  border-color: rgba(242, 112, 35, 0.22);
  box-shadow: 0 20px 42px rgba(50, 32, 104, 0.16);
  transform: translateY(-3px) scale(1.025);
}

.product-card.is-quote-return-target {
  border-color: rgba(249, 115, 22, 0.62) !important;
  box-shadow:
    0 0 0 3px rgba(249, 115, 22, 0.18),
    0 18px 38px rgba(249, 115, 22, 0.18) !important;
}

.product-card::after {
  content: "";
  position: absolute;
  inset: 0 0 var(--info-height) 0;
  z-index: 4;
  border-radius: 18px 18px 0 0;
  background: rgba(255, 255, 255, 0.001);
}

.new-product-badge {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 5;
  width: 34px;
  height: 32px;
  display: block;
  background: url("../new-badge.png") center / contain no-repeat;
  filter: drop-shadow(0 10px 18px rgba(239, 0, 0, 0.38));
  pointer-events: none;
  overflow: hidden;
  text-indent: -999px;
  white-space: nowrap;
  transform-origin: center;
  animation: newBadgePop 2.4s ease-in-out infinite;
}

.new-product-badge::after {
  content: "";
  position: absolute;
  inset: 12% 8%;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.44) 46%, transparent 70%);
  mix-blend-mode: screen;
  transform: translateX(-150%) rotate(12deg);
  animation: newBadgeShine 2.4s ease-in-out infinite;
}

@keyframes newBadgePop {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 10px 18px rgba(239, 0, 0, 0.34));
  }
  50% {
    transform: scale(1.08);
    filter: drop-shadow(0 12px 24px rgba(239, 0, 0, 0.52));
  }
}

@keyframes newBadgeShine {
  0%,
  38% {
    transform: translateX(-150%) rotate(12deg);
  }
  68%,
  100% {
    transform: translateX(150%) rotate(12deg);
  }
}

.product-group-card {
  border-color: rgba(242, 112, 35, 0.2);
  background: linear-gradient(145deg, #fff, #fff7ed);
}

.group-stack {
  min-height: 0;
  position: relative;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  background: radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.95), rgba(255, 247, 237, 0.86));
}

.group-stack::after {
  content: "";
  position: absolute;
  inset: 16%;
  border: 1px dashed rgba(242, 112, 35, 0.24);
  border-radius: 22px;
  transform: rotate(-4deg);
}

.group-stack-img {
  width: 66%;
  height: 78%;
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  object-fit: contain;
  border: 1px solid rgba(139, 77, 255, 0.12);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 28px rgba(50, 32, 104, 0.12);
  transform-origin: center bottom;
}

.group-stack-img-1 {
  z-index: 3;
  transform: translate(-50%, -50%) rotate(0deg);
}

.group-stack-img-2 {
  z-index: 2;
  transform: translate(-56%, -52%) rotate(-8deg);
}

.group-stack-img-3 {
  z-index: 1;
  transform: translate(-44%, -52%) rotate(8deg);
}

.group-copy .pill {
  color: var(--orange);
}

.product-card img {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: contain;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(145deg, #f8f5ff, #ffffff);
}

.product-group-card .group-stack-img {
  width: 66%;
  height: 78%;
  position: absolute;
  left: 50%;
  top: 50%;
  min-height: auto;
  background: #fff;
}

.product-group-card .group-stack {
  border-radius: 18px 18px 0 0;
  clip-path: inset(0 round 18px 18px 0 0);
}

.product-copy {
  min-height: 0;
  min-width: 0;
  display: grid;
  grid-template-rows: 22px 20px 16px 16px;
  gap: 3px;
  padding: 9px 10px 10px;
}

.product-copy.no-name {
  grid-template-rows: 22px 16px 16px;
  align-content: center;
}

.pill {
  display: inline-flex;
  max-width: 100%;
  min-height: 22px;
  align-items: center;
  padding: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  background: transparent;
  font-size: var(--meta-size);
  font-weight: 900;
}

.product-copy h3 {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--title-size);
}

.product-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: var(--meta-size);
}

.product-copy .material-line {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: var(--meta-size);
  font-weight: 800;
}

.product-card button {
  display: none;
  grid-row: 5;
  align-self: end;
  width: 100%;
  height: 28px;
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--accent-dark);
  font-size: var(--button-size);
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.empty-state {
  min-height: 260px;
  display: none;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  color: var(--ink);
  font-size: 24px;
}

dialog {
  width: min(1180px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  border: 0;
  border-radius: 24px;
  padding: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  background: #fff;
  box-shadow: 0 34px 90px rgba(24, 16, 56, 0.28);
}

dialog::backdrop {
  background: rgba(25, 18, 45, 0.34);
  backdrop-filter: blur(6px);
}

dialog[open] {
  display: grid;
  grid-template-columns: 1fr;
}

.detail-image-stage {
  width: 100%;
  height: min(76vh, 780px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  overscroll-behavior: contain;
  background: #f6f2ff;
  cursor: zoom-in;
  touch-action: none;
  user-select: none;
}

.detail-image-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  background: rgba(255, 255, 255, 0.001);
  pointer-events: none;
}

.detail-image-stage.is-loading::before {
  content: "图片加载中 / Loading";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  padding: 10px 16px;
  border: 1px solid rgba(139, 77, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #6b5f7f;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(50, 32, 104, 0.12);
}

.detail-image-stage.is-draggable {
  cursor: grab;
}

.detail-image-stage.is-dragging {
  cursor: grabbing;
}

.detail-image-stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transform: translate3d(var(--detail-pan-x, 0), var(--detail-pan-y, 0), 0) scale(var(--detail-zoom, 1));
  transform-origin: center center;
  transition: transform 120ms ease;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
  opacity: 0;
}

.detail-image-stage img.is-loaded {
  opacity: 1;
}

.detail-image-stage.is-dragging img {
  transition: none;
}

.dialog-copy {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 10px;
  padding: 18px 24px 22px;
}

.detail-main-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  justify-items: start;
  gap: 10px;
}

.detail-info-line {
  grid-column: 1;
  grid-row: 3;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px 12px;
  text-align: left;
}

.detail-details-btn {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  min-height: 36px;
  border: 1px solid rgba(139, 77, 255, 0.24);
  border-radius: 999px;
  padding: 7px 14px;
  background: rgba(139, 77, 255, 0.1);
  color: var(--accent-dark);
  font-weight: 950;
  cursor: pointer;
}

.detail-details-btn[hidden],
.customer-detail-extra-images[hidden] {
  display: none;
}

.customer-detail-extra-images {
  grid-column: 1 / -1;
  grid-row: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.customer-detail-extra-image-btn {
  width: 76px;
  height: 76px;
  padding: 0;
  border: 1px solid rgba(139, 77, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.customer-detail-extra-image-btn img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.dialog-copy p {
  min-width: 0;
  max-width: 100%;
  width: fit-content;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: rgba(139, 77, 255, 0.12);
  font-weight: 900;
}

.dialog-copy h3 {
  display: none;
}

.dialog-copy #detailCategory,
.dialog-copy #detailMaterial,
.dialog-copy #detailSku {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 950;
}

.dialog-copy strong,
.dialog-copy span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: var(--muted);
  font-weight: 800;
}

.detail-remark {
  grid-column: 1 / -1;
  grid-row: 4;
  justify-self: stretch;
  text-align: left;
  line-height: 1.55;
}

.detail-remark[hidden] {
  display: none;
}

.group-dialog {
  width: min(1180px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
}

.group-dialog[open] {
  display: block;
}

.group-box {
  max-height: calc(100dvh - 28px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding: 24px;
  overflow: hidden;
}

.group-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-right: 42px;
}

.group-title-row > div {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.group-title-row p {
  margin: 0;
  color: var(--orange);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.group-title-row h2 {
  order: -1;
  margin: 0;
  font-size: 22px;
  line-height: 1;
  white-space: nowrap;
}

.group-title-row span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(139, 77, 255, 0.1);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.group-gallery-grid {
  max-height: min(72dvh, 760px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 4px 4px 10px;
}

.cart-add-btn {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
  min-height: 34px;
  width: fit-content;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
}

.cart-add-btn:disabled {
  border: 1px solid rgba(2, 132, 199, 0.24);
  background: rgba(224, 242, 254, 0.96);
  color: #075985;
  cursor: default;
  box-shadow: inset 0 0 0 1px rgba(2, 132, 199, 0.12);
}

.detail-back-btn {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.detail-back-btn[hidden] {
  display: none;
}

.cart-dialog {
  width: min(1320px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
}

.cart-dialog[open] {
  display: block;
}

.cart-dialog.is-tall {
  height: calc(100dvh - 16px);
  max-height: calc(100dvh - 16px);
}

.cart-box {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 24px;
}

.customer-inline-confirm {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  border-radius: inherit;
  background: rgba(25, 18, 45, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.customer-inline-confirm-box {
  display: grid;
  gap: 12px;
  width: min(420px, calc(100vw - 54px));
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(24, 16, 56, 0.24);
  text-align: center;
}

.customer-inline-confirm-box h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
}

.customer-inline-confirm-box p {
  margin: 0;
  color: var(--muted);
  font-weight: 850;
  line-height: 1.55;
}

.cart-dialog.is-tall .cart-box {
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
}

.cart-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  padding-right: 44px;
}

.cart-title-row p,
.cart-title-row h3 {
  margin: 0;
}

.cart-title-row p {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.cart-title-row h3 {
  font-size: 24px;
  line-height: 1.15;
}

.cart-title-row span,
.cart-box strong {
  color: var(--muted);
  font-weight: 900;
}

.cart-title-row span {
  white-space: nowrap;
}

.submitted-summary-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.submitted-trash-clear-btn,
.submitted-trash-btn,
.cart-restore-btn {
  border: 1px solid rgba(34, 197, 94, 0.24);
  border-radius: 999px;
  background: rgba(240, 253, 244, 0.92);
  color: #15803d;
  font-weight: 950;
  cursor: pointer;
}

.submitted-trash-clear-btn {
  min-height: 28px;
  padding: 0 12px;
  border-color: rgba(239, 68, 68, 0.18);
  background: rgba(255, 247, 237, 0.92);
  color: #c2410c;
  font-size: 12px;
}

.submitted-trash-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.submitted-trash-btn {
  min-height: 30px;
  padding: 0 14px;
  font-size: 12px;
}

.submitted-trash-btn strong {
  display: inline-flex;
  min-width: 18px;
  height: 18px;
  margin-left: 5px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: #38bdf8;
  color: #fff;
  font-size: 11px;
}

.submitted-trash-btn strong[hidden] {
  display: none;
}

.cart-restore-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 82px;
  min-height: 26px;
  padding: 0 10px;
  font-size: 11px;
}

.submitted-order-restore-btn {
  position: static;
  justify-self: end;
  align-self: center;
  min-width: 128px;
}

#refreshSubmittedOrdersBtn,
.submitted-refresh-btn {
  display: none !important;
}

#submittedOrdersSummary {
  display: flex;
  align-items: center;
  gap: 14px;
}

#submittedOrdersSummary strong,
#submittedOrdersSummary em {
  min-height: 0;
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

#submittedOrdersSummary strong {
  color: var(--accent-dark);
}

#submittedOrdersSummary em {
  color: #087580;
}

.cart-list {
  display: grid;
  gap: 10px;
  max-height: min(72vh, 760px);
  min-height: 0;
  box-sizing: border-box;
  padding: 0 0 2px;
  background: transparent;
  overflow: auto;
  overscroll-behavior: contain;
}

.submitted-order-list {
  padding-inline: 0;
}

.cart-dialog.is-tall .cart-list {
  max-height: none;
}

.cart-empty {
  margin: 0;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

.cart-row {
  position: relative;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.cart-row:hover,
.cart-row:focus-visible {
  border-color: rgba(139, 77, 255, 0.3);
  box-shadow: 0 12px 24px rgba(50, 32, 104, 0.1);
  outline: 0;
  transform: translateY(-1px);
}

.cart-row img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  border-radius: 10px;
  background: #f8f5ff;
}

.cart-row > div {
  min-width: 0;
}

.cart-main {
  display: grid;
  grid-template-columns: minmax(150px, 0.82fr) minmax(260px, 1.25fr) minmax(110px, auto);
  align-items: center;
  gap: 18px;
}

.cart-main-info,
.cart-main-note,
.cart-main-price {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.cart-main-price {
  justify-items: end;
  text-align: right;
}

.cart-main-note:empty,
.cart-main-price:empty {
  display: none;
}

.cart-row h4,
.cart-row p {
  margin: 0;
}

.cart-row h4 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.cart-title-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.cart-row p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.cart-row .cart-note {
  display: -webkit-box;
  overflow: hidden;
  color: #4b4458;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.32;
  white-space: pre-line;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  text-align: left;
}

.cart-row .cart-price {
  color: var(--accent-dark);
  font-weight: 950;
}

.cart-row.is-new-quote {
  border-color: rgba(34, 197, 94, 0.82);
  background: rgba(240, 253, 244, 0.98);
  animation: newQuoteCardBreath 1.15s ease-in-out infinite;
}

.cart-row.is-new-quote:hover,
.cart-row.is-new-quote:focus-visible {
  border-color: rgba(22, 163, 74, 0.96);
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.22), 0 18px 34px rgba(21, 128, 61, 0.18);
}

.submitted-new-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  border: 1px solid rgba(245, 158, 11, 0.48);
  border-radius: 999px;
  padding: 1px 7px;
  background: #fef3c7;
  color: #b45309;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: 0.04em;
  line-height: 1.5;
  vertical-align: middle;
  box-shadow: 0 5px 12px rgba(245, 158, 11, 0.18);
  pointer-events: none;
}

@keyframes newQuoteCardBreath {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.14), 0 12px 26px rgba(21, 128, 61, 0.12);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.26), 0 20px 38px rgba(21, 128, 61, 0.22);
  }
}

.cart-row.is-out-of-stock {
  border-color: rgba(220, 38, 38, 0.64);
  background: rgba(255, 245, 245, 0.96);
  animation: outOfStockCardBreath 1.8s ease-in-out infinite;
}

.cart-row.is-out-of-stock:hover,
.cart-row.is-out-of-stock:focus-visible {
  border-color: rgba(220, 38, 38, 0.86);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12), 0 16px 30px rgba(127, 29, 29, 0.14);
}

.cart-row .cart-price.is-out-of-stock {
  color: #dc2626;
  font-weight: 950;
}

@keyframes outOfStockCardBreath {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.08), 0 10px 22px rgba(127, 29, 29, 0.08);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(220, 38, 38, 0.16), 0 16px 30px rgba(127, 29, 29, 0.16);
  }
}

.cart-remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 54px;
  min-width: 54px;
  height: 28px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(134, 239, 172, 0.08)),
    rgba(34, 197, 94, 0.06);
  color: transparent;
  font-size: 0;
  font-weight: 950;
  white-space: nowrap;
  cursor: pointer;
  box-shadow:
    0 10px 24px rgba(40, 45, 56, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    inset 0 -1px 0 rgba(20, 24, 32, 0.035);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.cart-remove-btn::before {
  content: "Del";
  color: rgba(21, 83, 45, 0.9);
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  transform: translateY(-0.5px);
}

.cart-remove-btn:hover {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(134, 239, 172, 0.12)),
    rgba(34, 197, 94, 0.08);
  box-shadow:
    0 14px 28px rgba(40, 45, 56, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  transform: translateY(-1px);
}

.cart-remove-btn:hover::before {
  color: #111827;
}

.cart-actions {
  width: min(66%, 520px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  justify-self: center;
}

.cart-actions .ghost-btn,
.cart-actions .primary-btn {
  min-height: 38px;
  padding-inline: 12px;
}

.cart-actions .primary-btn {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
}

.submitted-order-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
}

.submitted-order-delete-btn {
  position: static;
  justify-self: end;
  align-self: center;
  width: 86px;
  min-width: 86px;
}

.submitted-order-delete-btn::before {
  content: "Del Order";
}

.submitted-order-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.submitted-order-head strong,
.submitted-order-head span {
  overflow-wrap: anywhere;
}

.submitted-order-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.submitted-order-items {
  display: grid;
  gap: 8px;
}

.submitted-order-actions {
  display: flex;
  justify-content: flex-end;
}

.mobile-order-date {
  display: none;
}

.submitted-title-mobile {
  display: none;
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  font-size: 24px;
  cursor: pointer;
}

.password-dialog {
  width: min(420px, calc(100vw - 32px));
}

.password-dialog[open] {
  display: block;
}

.password-dialog form {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 30px;
}

.password-dialog h3 {
  margin: 0;
  color: var(--orange);
  font-size: 28px;
}

.password-dialog label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.password-dialog input {
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  outline: 0;
}

#passwordError,
#changePasswordMessage {
  min-height: 20px;
  margin: 0;
  color: #b42318;
  font-size: 14px;
  font-weight: 800;
}

#changePasswordMessage.success {
  color: #087443;
}

.admin-submit {
  height: 48px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--orange);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(255, 111, 0, 0.2);
}

.expired-dialog {
  width: min(340px, calc(100vw - 40px));
  border: 0;
  border-radius: 22px;
  padding: 0;
  background: #fff;
  box-shadow: 0 24px 70px rgba(24, 16, 56, 0.24);
}

.expired-dialog[open] {
  display: block;
}

.expired-box {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 26px 22px 22px;
  text-align: center;
}

.expired-box h3 {
  margin: 0;
  color: var(--orange);
  font-size: 24px;
  font-weight: 950;
}

.expired-box p {
  margin: 0;
  color: #b42318;
  font-size: 20px;
  font-weight: 950;
}

.expired-box span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.expired-box button {
  min-width: 130px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--orange);
  font-weight: 900;
  cursor: pointer;
}

.wechat-dialog {
  width: min(360px, calc(100vw - 36px));
}

.wechat-dialog[open] {
  display: block;
}

.wechat-dialog-box {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 28px 24px 24px;
  text-align: center;
}

.wechat-dialog-box h3,
.wechat-dialog-box p {
  margin: 0;
}

.wechat-dialog-box h3 {
  color: var(--orange);
  font-size: 24px;
  font-weight: 950;
}

.wechat-dialog-box img {
  width: min(250px, 100%);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
}

.wechat-dialog-box p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.copy-address-dialog {
  width: min(300px, calc(100vw - 36px));
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(25, 19, 42, 0.22);
}

.copy-address-dialog::backdrop {
  background: rgba(23, 21, 31, 0.12);
}

.copy-address-box {
  display: grid;
  gap: 6px;
  padding: 24px 22px;
  text-align: center;
}

.copy-address-box h3 {
  margin: 0;
  color: var(--orange);
  font-size: 22px;
  font-weight: 950;
}

.copy-address-box p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

@media (max-width: 780px) {
  .site-header,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-head p {
    margin-bottom: 6px;
    font-size: 16px;
    letter-spacing: 0.32em;
  }

  .gallery-module {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    padding: 12px 14px;
    border-radius: 16px;
  }

  .gallery-module h2 {
    grid-column: 1;
    width: max-content;
    max-width: 100%;
    white-space: nowrap;
  }

  .gallery-module > span {
    justify-self: end;
    align-self: center;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
    font-size: 12px;
    white-space: nowrap;
  }
  .cart-open-btn {
    width: 100%;
    justify-content: center;
    min-height: 38px;
  }

  .cart-open-btn {
    grid-column: 2;
    padding-inline: 8px;
  }

  .gallery-actions {
    width: 100%;
    justify-content: space-between;
  }

  .hero-image-banner {
    border-radius: 18px;
  }

  .hero-image-banner img {
    width: 100%;
    min-height: 0;
    margin: 0;
    object-fit: contain;
    object-position: center;
  }

  .hero,
  dialog[open] {
    grid-template-columns: 1fr;
  }

  #detailDialog {
    width: min(680px, calc(100vw - 16px));
    max-height: calc(100dvh - 16px);
    border-radius: 18px;
  }

  .detail-image-stage {
    height: auto;
    min-height: 0;
    max-height: 64dvh;
    padding: 10px;
    align-items: flex-start;
  }

  .detail-image-stage img {
    width: 100%;
    max-height: 62dvh;
    object-fit: contain;
  }

  .dialog-copy {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 8px;
    max-height: none;
    overflow: visible;
    overscroll-behavior: contain;
    padding: 14px 14px 16px;
  }

  .detail-main-row {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 8px;
  }

  .detail-info-line {
    order: 1;
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
    gap: 6px 8px;
    flex-wrap: wrap;
    text-align: left;
  }

  .dialog-copy p {
    width: auto;
    justify-self: auto;
    font-size: 12px;
    line-height: 1.3;
  }

  .dialog-copy h3 {
    white-space: nowrap;
    font-size: 13px;
    line-height: 1.3;
  }

  .dialog-copy strong,
  .dialog-copy span {
    font-size: 13px;
    line-height: 1.4;
  }

  .cart-add-btn {
    order: 2;
    width: 100%;
    max-width: 100%;
    justify-self: start;
    white-space: normal;
    line-height: 1.25;
    padding: 8px 12px;
  }

  .detail-back-btn {
    width: 100%;
  }

  .group-dialog {
    width: min(680px, calc(100vw - 16px));
    max-height: calc(100dvh - 16px);
    border-radius: 18px;
  }

  .group-box {
    max-height: calc(100dvh - 16px);
    gap: 8px;
    padding: 16px 12px 14px;
  }

  .group-title-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding-right: 58px;
  }

  .group-title-row > div {
    gap: 6px;
  }

  .group-title-row p {
    display: none;
  }

  .group-title-row h2 {
    font-size: 16px;
  }

  .group-title-row p,
  .group-title-row span {
    font-size: 11px;
  }

  .group-gallery-grid {
    max-height: calc(100dvh - 82px);
  }

  .cart-box {
    padding: 22px 14px 16px;
  }

  .cart-list {
    padding-inline: 0;
  }

  .submitted-order-list {
    padding-inline: 0;
  }

  .cart-title-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding-right: 42px;
  }

  .cart-title-row h3 {
    font-size: 20px;
  }

  .submitted-title-desktop {
    display: none;
  }

  .submitted-title-mobile {
    display: inline;
  }

  .cart-title-row span {
    white-space: nowrap;
    font-size: 12px;
  }

  .mobile-hide-cn {
    display: none !important;
  }

  .submitted-summary-wrap {
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .submitted-trash-clear-btn {
    min-height: 26px;
    padding: 0 9px;
    font-size: 11px;
  }

  .submitted-trash-footer {
    margin-top: 6px;
  }

  .submitted-trash-btn {
    min-height: 28px;
    padding: 0 11px;
    font-size: 11px;
  }

  #submittedOrdersSummary {
    flex-wrap: nowrap;
    gap: 8px;
    font-size: 13px;
  }

  .cart-row {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
  }

  .cart-actions {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .submitted-order-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
  }

  .desktop-order-time {
    display: none;
  }

  .mobile-order-date {
    display: inline;
  }

  .cart-row img {
    width: 58px;
    height: 58px;
  }

  .cart-main {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .cart-main-note:empty {
    display: none;
  }

  .cart-remove-btn {
    top: 6px;
    right: 6px;
    width: 44px;
    min-width: 44px;
    height: 26px;
    min-height: 26px;
  }

  .cart-remove-btn::before {
    content: "Del";
    font-size: 11px;
  }

  .submitted-order-delete-btn {
    width: 78px;
    min-width: 78px;
  }

  .submitted-order-restore-btn {
    min-width: 112px;
    font-size: 10px;
  }

  .cart-restore-btn {
    top: 6px;
    right: 6px;
    min-width: 70px;
    min-height: 24px;
    padding: 0 8px;
    font-size: 10px;
  }

  .submitted-order-delete-btn::before {
    content: "Del Order";
  }

  .submitted-order-card {
    position: relative;
    padding: 8px 0 10px;
  }

  .submitted-order-head {
    padding-right: 0;
  }

  .submitted-order-head > div {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
  }

  .submitted-order-head strong,
  .submitted-order-head span {
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .hero {
    min-height: auto;
    gap: 16px;
    padding: 18px 14px 20px;
  }

  .hero-copy {
    width: 100%;
    margin-left: 0;
  }

  .brand-mark-block p {
    font-size: clamp(22px, 7vw, 30px);
  }

  .hero-copy h1 {
    font-size: clamp(32px, 10vw, 46px);
    line-height: 1.05;
    white-space: nowrap;
  }

  .brand-title {
    gap: 10px;
  }

  .brand-title > p {
    max-width: none;
    font-size: clamp(10px, 2.9vw, 13px);
    white-space: nowrap;
  }

  .brand-title span {
    margin: 0 5px;
  }

  .brand-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 16px;
  }

  .brand-features div {
    padding: 12px 8px;
  }

  .brand-features div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid rgba(111, 106, 124, 0.18);
  }

  .brand-features div:nth-child(4) {
    border-top: 1px solid rgba(111, 106, 124, 0.18);
  }

  .hero-store-photo,
  .hero-store-photo img {
    min-height: 170px;
  }

  .hero-store-photo {
    margin: 0;
    border-radius: 18px;
  }

  .hero-store-photo::before {
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.42) 32%, rgba(110, 32, 0, 0.08) 100%),
      linear-gradient(180deg, transparent, rgba(255, 111, 0, 0.14));
  }

  .brand-mark-block {
    position: static;
    justify-items: center;
    margin-bottom: 4px;
  }

  .monica-logo {
    width: clamp(64px, 18vw, 82px);
    height: clamp(64px, 18vw, 82px);
    border-width: 3px;
    font-size: clamp(36px, 10vw, 48px);
  }

  .store-info {
    padding: 12px;
    font-size: clamp(10px, 3vw, 12px);
  }

  .store-address {
    grid-template-columns: 26px minmax(0, 1fr);
    text-align: left;
  }

  .wechat-pill-btn {
    grid-column: 2;
    width: fit-content;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .product-card {
    --info-height: 62px;
    --meta-size: 10px;
    --title-size: 12px;
    --button-size: 11px;
    aspect-ratio: 1 / 1.03;
    border-radius: 14px;
  }

  .product-copy {
    grid-template-rows: 14px 12px 12px 12px;
    align-content: end;
    gap: 0;
    padding: 5px 8px 7px;
    line-height: 1.05;
  }

  .product-copy.no-name {
    grid-template-rows: 14px 12px 12px;
    align-content: end;
  }

  .product-card.product-group-card {
    --info-height: 74px;
    aspect-ratio: 1 / 1.08;
  }

  .product-group-card .group-copy {
    grid-template-rows: 17px 18px 16px;
    align-content: center;
    gap: 2px;
    padding: 7px 9px 8px;
    line-height: 1.15;
  }

  .product-group-card .group-copy .pill,
  .product-group-card .group-copy h3,
  .product-group-card .group-copy strong {
    display: block;
    min-height: 0;
    line-height: 1.15;
  }

  .product-group-card .group-copy h3 {
    font-size: 13px;
  }

  .product-card button {
    height: 26px;
  }
}

@media (max-width: 480px) {
  .locked-state {
    min-height: 100dvh;
    align-items: center;
    padding: max(12px, env(safe-area-inset-top)) 16px 12px;
    background-position: 42% center;
  }

  .access-card {
    width: min(390px, 100%);
    gap: 7px;
    padding: 20px 24px 18px;
    border-radius: 22px;
  }

  .access-card .brand-mark-block {
    gap: 5px;
  }

  .access-card .monica-logo {
    width: 76px;
    height: 76px;
    border-width: 5px;
    font-size: 42px;
  }

  .access-card .brand-mark-block p {
    font-size: 22px;
    letter-spacing: 0.1em;
  }

  .access-card h1 {
    margin-top: 2px;
    font-size: 38px;
    line-height: 1.02;
  }

  .access-card input {
    height: 44px;
    border-radius: 14px;
    font-size: 15px;
  }

  .access-card .access-address {
    margin: 1px 0;
    --access-address-font-size: 11px;
    --access-address-line-height: 1.2em;
  }

  .access-card button {
    height: 46px;
    border-radius: 14px;
    font-size: 16px;
  }

  .access-language-actions {
    gap: 7px;
  }

  .access-language-actions button {
    height: 40px;
    padding: 0 6px;
    font-size: 12px;
  }

  .wechat-card {
    width: min(238px, 100%);
    gap: 5px;
    margin-top: 0;
    padding: 9px 10px 10px;
    border-radius: 16px;
  }

  .wechat-card span {
    font-size: 12px;
  }

  .wechat-card img {
    width: min(164px, 100%);
    border-radius: 12px;
  }

  .wechat-card small {
    font-size: 10px;
    line-height: 1.2;
  }

  .access-card strong {
    width: min(204px, calc(100% - 20px));
    padding: 7px 12px;
    font-size: 11px;
  }

  .access-card strong span + span {
    font-size: 10px;
  }

  .gallery-module {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px;
  }

  .gallery-module h2 {
    padding: 0;
    font-size: 18px;
  }

  .gallery-module h2 .gallery-title-optional {
    display: none;
  }

  .gallery-module > span {
    justify-self: end;
    max-width: 100%;
    font-size: 12px;
  }
  .cart-open-btn {
    min-height: 40px;
    font-size: 14px;
  }

  .cart-open-btn {
    padding-inline: 12px;
  }
}

@media (max-width: 780px) {
  .product-card:not(.product-group-card) {
    --info-height: 66px;
    aspect-ratio: 1 / 1.04;
  }

  .product-card:not(.product-group-card) .product-copy,
  .product-card:not(.product-group-card) .product-copy.no-name {
    display: grid;
    grid-template-rows: 15px 13px 13px;
    align-content: end;
    gap: 1px;
    padding: 6px 10px 8px;
    line-height: 1.05;
  }

  .product-card:not(.product-group-card) .product-copy h3 {
    display: none;
  }

  .product-card:not(.product-group-card) .pill,
  .product-card:not(.product-group-card) .material-line,
  .product-card:not(.product-group-card) .product-copy strong {
    display: block;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.05;
  }
}

@media (min-width: 781px) and (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    width: 100%;
    margin-left: 0;
  }

  .hero-store-photo,
  .hero-store-photo img {
    min-height: 230px;
  }

  .hero-store-photo {
    margin: 0;
    border-radius: 22px;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-card {
    --info-height: 108px;
  }
}

@media (max-width: 920px) and (orientation: landscape) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .product-card {
    --info-height: 82px;
    --meta-size: 12px;
    --title-size: 15px;
    aspect-ratio: 1 / 1.08;
  }

  .product-copy {
    grid-template-rows: 22px 20px 16px;
    gap: 3px;
    padding: 9px 10px 10px;
  }

  .pill,
  .product-copy h3,
  .product-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.group-dialog .group-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  column-gap: 22px;
  row-gap: 22px;
  grid-auto-rows: max-content;
  isolation: isolate;
  overflow-x: clip;
  padding: 18px 16px 28px;
}

.group-dialog .group-gallery-grid .product-card {
  width: 100%;
  min-width: 0;
  z-index: 0;
  transform: none;
  will-change: auto;
  isolation: isolate;
}

.group-dialog .group-gallery-grid .product-card:hover {
  z-index: 0;
  border-color: rgba(242, 112, 35, 0.32);
  box-shadow: 0 18px 38px rgba(50, 32, 104, 0.16), 0 0 0 3px rgba(242, 112, 35, 0.08);
  transform: none;
}

@media (max-width: 780px) {
  .group-dialog .group-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 14px;
    row-gap: 14px;
  }

  .group-dialog .group-gallery-grid .product-card {
    --info-height: 64px;
    aspect-ratio: 1 / 1.04;
  }

  .group-dialog .group-gallery-grid .product-card img {
    padding: 0;
    object-fit: contain;
  }

  .group-dialog .group-gallery-grid .product-copy {
    grid-template-rows: 15px 13px 13px;
    align-content: end;
    gap: 1px;
    padding: 6px 10px 8px;
    line-height: 1.05;
  }

  .group-dialog .group-gallery-grid .pill,
  .group-dialog .group-gallery-grid .material-line,
  .group-dialog .group-gallery-grid .product-copy strong {
    min-height: 0;
    line-height: 1.05;
  }

  .group-dialog .group-gallery-grid .product-copy h3 {
    display: none;
  }
}

@media (min-width: 781px) and (max-width: 1080px) {
  .group-dialog .group-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) and (orientation: landscape) {
  .group-dialog .group-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 14px;
    row-gap: 14px;
  }
}

/* Unified frosted glass treatment for customer surfaces. */
dialog,
.web-confirm-dialog,
.password-dialog,
.expired-dialog,
.wechat-dialog,
.copy-address-dialog,
.group-dialog,
.cart-dialog {
  border: 1px solid rgba(255, 255, 255, 0.62);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.42)),
    rgba(255, 255, 255, 0.28);
  box-shadow:
    0 34px 90px rgba(24, 16, 56, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(22px) saturate(1.45);
  -webkit-backdrop-filter: blur(22px) saturate(1.45);
}

dialog::backdrop,
.copy-address-dialog::backdrop {
  background: rgba(25, 18, 45, 0.28);
  backdrop-filter: blur(9px) saturate(1.12);
  -webkit-backdrop-filter: blur(9px) saturate(1.12);
}

.web-confirm-box,
.password-dialog form,
.wechat-dialog-box,
.cart-box,
.group-box,
.dialog-copy {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08));
}

.access-card,
.wechat-card,
.category-block,
.product-card,
.group-stack,
.group-stack-img,
.cart-row,
.submitted-order-card,
.detail-back-btn {
  border-color: rgba(255, 255, 255, 0.58);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.46)),
    rgba(255, 255, 255, 0.38);
  box-shadow:
    0 12px 26px rgba(49, 39, 76, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(12px) saturate(1.18);
  -webkit-backdrop-filter: blur(12px) saturate(1.18);
}

.detail-image-stage,
.product-card img,
.cart-row img,
.wechat-card img,
.wechat-dialog-box img {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.34)),
    rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(10px) saturate(1.12);
  -webkit-backdrop-filter: blur(10px) saturate(1.12);
}

.dialog-close,
.cart-open-btn,
.cart-add-btn,
.cart-actions .ghost-btn,
.cart-actions .primary-btn,
.cart-remove-btn,
.product-card button,
.group-title-row .cart-count-badge {
  backdrop-filter: blur(10px) saturate(1.12);
  -webkit-backdrop-filter: blur(10px) saturate(1.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.cart-title-row span,
.cart-box strong,
.group-title-row span {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-header,
.hero,
.hero-image-banner,
.store-info,
.toolbar,
.search-box,
.toolbar select,
.ghost-btn,
.new-filter-btn,
.category-strip,
.category-strip button,
.gallery-module,
.section-head,
.wechat-pill-btn,
.map-marker {
  border-color: rgba(255, 255, 255, 0.58);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.46)),
    rgba(255, 255, 255, 0.38);
  box-shadow:
    0 12px 26px rgba(49, 39, 76, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(12px) saturate(1.18);
  -webkit-backdrop-filter: blur(12px) saturate(1.18);
}

.hero-image-banner {
  border: 1px solid rgba(255, 255, 255, 0.58);
  padding: 0;
}

.hero-image-banner img {
  opacity: 0.92;
}

.toolbar {
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 18px;
  padding: 10px;
}

.category-strip {
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 18px;
  padding: 10px;
}

.section-head {
  border-radius: 22px;
}

.gallery-module {
  border: 1px solid rgba(255, 255, 255, 0.58);
}

.store-info,
.toolbar,
.category-strip,
.section-head {
  margin-top: 14px;
}

/* Appearance slider controlled glass material. */
dialog,
.web-confirm-dialog,
.password-dialog,
.expired-dialog,
.wechat-dialog,
.copy-address-dialog,
.group-dialog,
.cart-dialog,
.site-header,
.hero,
.hero-image-banner,
.store-info,
.toolbar,
.category-strip,
.gallery-module,
.section-head {
  border-color: rgba(255, 255, 255, 0.62);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, var(--glass-top-alpha)), rgba(255, 255, 255, var(--glass-mid-alpha))),
    rgba(255, 255, 255, var(--glass-base-alpha));
  box-shadow:
    0 18px 45px rgba(24, 16, 56, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(18px) saturate(1.24);
  -webkit-backdrop-filter: blur(18px) saturate(1.24);
}

dialog,
.web-confirm-dialog,
.password-dialog,
.expired-dialog,
.wechat-dialog,
.copy-address-dialog,
.group-dialog,
.cart-dialog {
  box-shadow:
    0 34px 90px rgba(24, 16, 56, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(22px) saturate(1.45);
  -webkit-backdrop-filter: blur(22px) saturate(1.45);
}

.web-confirm-box,
.password-dialog form,
.wechat-dialog-box,
.cart-box,
.group-box,
.dialog-copy {
  background: linear-gradient(180deg, rgba(255, 255, 255, var(--glass-panel-alpha)), rgba(255, 255, 255, 0.08));
}

.access-card,
.wechat-card,
.search-box,
.toolbar select,
.ghost-btn,
.new-filter-btn,
.category-strip button,
.wechat-pill-btn,
.map-marker,
.detail-back-btn {
  border-color: rgba(255, 255, 255, 0.58);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, var(--glass-top-alpha)), rgba(255, 255, 255, var(--glass-mid-alpha))),
    rgba(255, 255, 255, var(--glass-base-alpha));
  box-shadow:
    0 12px 26px rgba(49, 39, 76, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(12px) saturate(1.18);
  -webkit-backdrop-filter: blur(12px) saturate(1.18);
}

.wechat-card img,
.wechat-dialog-box img {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, var(--glass-image-top-alpha)), rgba(255, 255, 255, var(--glass-image-mid-alpha))),
    rgba(255, 255, 255, var(--glass-panel-alpha));
}

#submittedOrdersSummary strong,
#submittedOrdersSummary em,
.cart-title-row span,
.cart-box strong,
.group-title-row span {
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Customer product and order cards stay solid; the glass slider only controls outer modules. */
.category-block,
.product-card,
.cart-row {
  border-color: rgba(139, 77, 255, 0.1);
  background: #fff !important;
  box-shadow: 0 14px 34px rgba(50, 32, 104, 0.1);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.submitted-order-card {
  border: 0 !important;
  background: #e8e8ed !important;
  background-color: #e8e8ed !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.product-group-card {
  background: linear-gradient(145deg, #fff, #fff7ed) !important;
}

.product-card img,
.group-stack,
.group-stack-img,
.cart-row img,
.detail-image-stage,
.dialog-copy {
  background: #fff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.dialog-copy {
  box-shadow: none !important;
}

.group-stack-img {
  border-color: rgba(139, 77, 255, 0.12);
  box-shadow: 0 16px 28px rgba(50, 32, 104, 0.12);
}

/* Dialog chrome blends into frosted panels. */
.dialog-close {
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  background: transparent !important;
  color: rgba(23, 21, 31, 0.78);
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.dialog-close:hover,
.dialog-close:focus-visible {
  background: rgba(255, 255, 255, 0.18) !important;
  color: var(--ink);
  outline: 0;
  transform: scale(1.04);
}

dialog,
dialog *,
.cart-list,
.group-gallery-grid,
.submitted-order-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(83, 70, 110, 0.38) transparent;
}

dialog::-webkit-scrollbar,
dialog *::-webkit-scrollbar,
.cart-list::-webkit-scrollbar,
.group-gallery-grid::-webkit-scrollbar,
.submitted-order-list::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

dialog::-webkit-scrollbar-track,
dialog *::-webkit-scrollbar-track,
.cart-list::-webkit-scrollbar-track,
.group-gallery-grid::-webkit-scrollbar-track,
.submitted-order-list::-webkit-scrollbar-track {
  background: transparent;
}

dialog::-webkit-scrollbar-thumb,
dialog *::-webkit-scrollbar-thumb,
.cart-list::-webkit-scrollbar-thumb,
.group-gallery-grid::-webkit-scrollbar-thumb,
.submitted-order-list::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(83, 70, 110, 0.34);
  background-clip: padding-box;
}

.cart-empty {
  padding: 0;
  border: 0;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.cart-dialog .cart-box,
.cart-dialog .cart-list {
  background: transparent !important;
}

@media (max-width: 780px) {
  #detailDialog[open] {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
  }

  #detailDialog .detail-image-stage {
    flex: 0 0 auto !important;
    display: block !important;
    height: fit-content !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 8px 10px 0 !important;
    background: #fff !important;
    line-height: 0;
    cursor: default !important;
    touch-action: none !important;
  }

  #detailDialog .detail-image-stage img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 48dvh;
    margin: 0 auto;
    object-fit: contain;
  }

  #detailDialog .dialog-copy {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 6px;
    padding: 4px 14px 10px;
    overflow: visible;
  }

  #detailDialog .detail-main-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px 10px;
  }

  #detailDialog .detail-info-line {
    display: contents;
    text-align: left;
  }

  #detailDialog .detail-info-line h3 {
    display: none;
  }

  #detailDialog #detailCategory {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  #detailDialog #detailMaterial {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    white-space: nowrap;
  }

  #detailDialog #detailSku {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    text-align: left;
  }

  #detailDialog .detail-details-btn {
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
    max-width: 100%;
    min-height: 36px;
    margin-top: 0;
    padding: 7px 12px;
    line-height: 1.2;
    white-space: nowrap;
  }

  #detailDialog .customer-detail-extra-images {
    grid-column: 1 / -1;
    grid-row: 4;
    gap: 7px;
    padding: 1px 0 2px;
  }

  #detailDialog .customer-detail-extra-image-btn {
    width: 54px;
    height: 54px;
    border-radius: 11px;
  }

  #detailDialog .dialog-copy p {
    padding: 5px 10px;
    line-height: 1.2;
  }

  #detailDialog .cart-add-btn {
    grid-column: 2;
    grid-row: 2;
    width: max-content;
    max-width: 100%;
    justify-self: start;
    white-space: nowrap;
    min-height: 34px;
    margin-top: 0;
    padding: 6px 12px;
    line-height: 1.2;
  }

  #detailDialog .detail-remark {
    grid-column: 1 / -1;
    grid-row: 5;
    justify-self: stretch;
    margin-top: 1px;
    line-height: 1.38;
    text-align: left;
    white-space: pre-line;
    overflow-wrap: anywhere;
  }
}

.quote-switch {
  border-color: rgba(139, 77, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(250, 247, 255, 0.82)),
    rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(12px) saturate(1.12);
  -webkit-backdrop-filter: blur(12px) saturate(1.12);
}

.quote-switch .cart-open-btn,
.quote-list-row-btn {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--accent-dark);
  font-size: 16px;
  line-height: 1.12;
  white-space: nowrap;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.quote-switch .cart-open-btn,
.quote-list-row-btn {
  border-radius: 17px;
}

.quote-switch .cart-open-btn:hover,
.quote-switch .cart-open-btn:focus-visible {
  outline: 0;
  background: linear-gradient(135deg, rgba(139, 77, 255, 0.08), rgba(255, 111, 0, 0.06));
  transform: none;
}

@media (min-width: 781px) {
  .gallery-module {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .quote-switch {
    display: contents;
  }

  .quote-switch::after {
    display: none;
  }

  .quote-switch .cart-open-btn {
    width: auto;
    min-height: 34px;
    border: 1px solid rgba(139, 77, 255, 0.22);
    border-radius: 999px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: none;
    font-size: 13px;
    backdrop-filter: blur(12px) saturate(1.18);
    -webkit-backdrop-filter: blur(12px) saturate(1.18);
  }

  .quote-switch .cart-open-btn:hover,
  .quote-switch .cart-open-btn:focus-visible {
    border-color: rgba(139, 77, 255, 0.42);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 24px rgba(50, 32, 104, 0.14);
    transform: translateY(-2px);
  }
}

@media (max-width: 780px) {
  .gallery-module {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 10px;
  }

  .gallery-module h2 {
    align-self: center;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.1;
  }

  .gallery-module h2 .gallery-title-en {
    margin-left: 6px;
    font-size: 0.68em;
  }

  .gallery-module > span {
    align-self: center;
    color: var(--muted);
    font-size: 12px;
    text-align: right;
  }

  .quote-switch {
    grid-column: 1 / -1;
    border-radius: 19px;
    border-color: transparent;
    box-shadow: none;
  }

  .quote-switch .cart-open-btn {
    min-height: 50px;
    padding: 0 8px;
    font-size: 15px;
  }
}

@media (max-width: 780px) {
  #detailDialog .detail-main-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  #detailDialog .detail-info-line {
    grid-column: 1 !important;
    grid-row: 1 / 3 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    gap: 4px 12px !important;
    min-width: 0 !important;
    text-align: left !important;
  }

  #detailDialog .detail-info-line h3 {
    display: none !important;
  }

  #detailDialog #detailCategory,
  #detailDialog #detailMaterial,
  #detailDialog #detailSku {
    grid-column: auto !important;
    grid-row: auto !important;
    justify-self: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--muted) !important;
    line-height: 1.25 !important;
    text-align: left !important;
    white-space: normal !important;
    box-shadow: none !important;
  }

  #detailDialog #detailCategory {
    flex: 0 1 auto !important;
    width: auto !important;
    font-size: 15px !important;
    font-weight: 950 !important;
    overflow-wrap: anywhere !important;
  }

  #detailDialog #detailMaterial {
    flex: 0 0 auto !important;
    font-size: 15px !important;
    font-weight: 950 !important;
  }

  #detailDialog #detailSku {
    flex: 0 0 100% !important;
    margin-top: 2px !important;
    font-size: 15px !important;
    font-weight: 950 !important;
  }

  #detailDialog .detail-details-btn,
  #detailDialog .cart-add-btn {
    grid-column: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 42px !important;
    justify-self: stretch !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    border-radius: 999px !important;
    font-size: 16px !important;
    line-height: 1.18 !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  #detailDialog .detail-details-btn {
    grid-row: 3 !important;
  }

  #detailDialog .customer-detail-extra-images {
    grid-column: 1 !important;
    grid-row: 4 !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    padding: 0 !important;
  }

  #detailDialog .cart-add-btn {
    grid-row: 5 !important;
  }

  #detailDialog .detail-remark {
    grid-column: 1 !important;
    grid-row: 6 !important;
    margin-top: 2px !important;
  }
}

/* Flat UI pass: reduce oversized rounded corners and soften glassy depth. */
:root {
  --flat-radius-lg: 10px;
  --flat-radius-md: 8px;
  --flat-radius-sm: 5px;
  --flat-shadow-panel: 0 8px 18px rgba(50, 32, 104, 0.08);
  --flat-shadow-card: 0 8px 18px rgba(50, 32, 104, 0.09);
}

.hero-image-banner,
.hero,
.store-info,
.toolbar,
.category-strip,
.gallery-module,
.section-head,
.access-card,
.wechat-card,
dialog,
.web-confirm-dialog,
.password-dialog,
.expired-dialog,
.wechat-dialog,
.copy-address-dialog,
.group-dialog,
.cart-dialog {
  border-radius: var(--flat-radius-lg) !important;
  box-shadow: var(--flat-shadow-panel) !important;
}

.search-box,
.toolbar select,
.ghost-btn,
.new-filter-btn,
.category-strip button,
.cart-open-btn,
.cart-add-btn,
.cart-actions .ghost-btn,
.cart-actions .primary-btn,
.detail-details-btn,
.customer-detail-extra-image-btn,
.dialog-copy p,
.copy-address-toast,
.wechat-pill-btn {
  border-radius: var(--flat-radius-md) !important;
}

.hero-image-banner img,
.hero-store-photo,
.hero-store-photo img {
  border-radius: var(--flat-radius-lg) !important;
}

.hero-store-photo {
  overflow: hidden;
}

.toolbar,
.category-strip {
  padding: 8px !important;
}

.product-card,
.cart-row,
.product-group-card {
  border-radius: var(--flat-radius-md) !important;
  box-shadow: var(--flat-shadow-card) !important;
}

.product-card:hover {
  box-shadow: 0 12px 24px rgba(50, 32, 104, 0.13) !important;
  transform: translateY(-2px) scale(1.012) !important;
}

.product-card::after,
.product-card img,
.group-stack,
.product-group-card .group-stack,
.group-stack-img,
.cart-row img,
.detail-image-stage,
.dialog-copy {
  border-radius: var(--flat-radius-md) !important;
}

.product-card::after {
  border-radius: var(--flat-radius-md) var(--flat-radius-md) 0 0 !important;
}

.product-card img,
.group-stack,
.product-group-card .group-stack {
  border-radius: var(--flat-radius-md) var(--flat-radius-md) 0 0 !important;
  clip-path: inset(0 round var(--flat-radius-md) var(--flat-radius-md) 0 0) !important;
}

.group-stack::after {
  border-radius: var(--flat-radius-md) !important;
}

.new-product-badge,
.cart-count-badge,
.submitted-new-badge {
  border-radius: var(--flat-radius-sm) !important;
}

.quote-switch {
  border-radius: var(--flat-radius-lg) !important;
  box-shadow: var(--flat-shadow-panel) !important;
}

.quote-switch .cart-open-btn,
.quote-list-row-btn {
  border-radius: var(--flat-radius-md) !important;
}

@media (max-width: 780px) {
  .quote-switch,
    .quote-switch .cart-open-btn,
  #detailDialog .detail-details-btn,
  #detailDialog .cart-add-btn {
    border-radius: var(--flat-radius-md, 8px) !important;
  }

  .hero-image-banner,
  .hero,
  .store-info,
  .toolbar,
  .category-strip,
  .gallery-module,
  .section-head,
  .product-card,
  .cart-row {
    border-radius: var(--flat-radius-md, 8px) !important;
  }
}

/* Delete and trash actions should feel calm and square, not green capsules. */
.cart-remove-btn,
.submitted-order-delete-btn,
.submitted-trash-btn,
.submitted-trash-clear-btn {
  border: 1px solid rgba(107, 114, 128, 0.28) !important;
  border-radius: var(--flat-radius-md) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(243, 244, 246, 0.86)),
    rgba(229, 231, 235, 0.86) !important;
  color: #4b5563 !important;
  box-shadow:
    0 6px 14px rgba(31, 41, 55, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
}

.cart-remove-btn::before,
.submitted-order-delete-btn::before {
  color: #4b5563 !important;
}

.cart-remove-btn:hover,
.cart-remove-btn:focus-visible,
.submitted-order-delete-btn:hover,
.submitted-order-delete-btn:focus-visible,
.submitted-trash-btn:hover,
.submitted-trash-btn:focus-visible,
.submitted-trash-clear-btn:hover,
.submitted-trash-clear-btn:focus-visible {
  border-color: rgba(75, 85, 99, 0.42) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(229, 231, 235, 0.96)),
    rgba(209, 213, 219, 0.92) !important;
  color: #111827 !important;
  box-shadow:
    0 8px 18px rgba(31, 41, 55, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
}

.cart-remove-btn:hover::before,
.cart-remove-btn:focus-visible::before,
.submitted-order-delete-btn:hover::before,
.submitted-order-delete-btn:focus-visible::before {
  color: #111827 !important;
}

.submitted-trash-btn strong {
  border-radius: var(--flat-radius-sm) !important;
  background: #6b7280 !important;
}

html,
body {
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* Frosted catalog controls and full-bleed thumbnails. */
.toolbar {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

.toolbar .search-box,
.toolbar select,
.toolbar .ghost-btn,
.toolbar .new-filter-btn {
  height: 42px !important;
  min-height: 42px !important;
  border: 1px solid rgba(255, 255, 255, 0.62) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.32)),
    rgba(255, 255, 255, 0.24) !important;
  box-shadow:
    0 10px 22px rgba(49, 39, 76, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: blur(16px) saturate(1.22) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.22) !important;
}

.category-strip,
.gallery-module {
  border: 1px solid rgba(255, 255, 255, 0.62) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.26)),
    rgba(255, 255, 255, 0.2) !important;
  box-shadow:
    0 10px 22px rgba(49, 39, 76, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.76) !important;
  backdrop-filter: blur(16px) saturate(1.22) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.22) !important;
}

.gallery-module {
  padding: 10px 12px 10px 16px !important;
}

.gallery-module > span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: var(--flat-radius-md);
  background: rgba(255, 255, 255, 0.28);
}

.quote-switch .cart-open-btn {
  border-color: rgba(255, 255, 255, 0.58) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.28)),
    rgba(255, 255, 255, 0.22) !important;
  box-shadow:
    0 8px 18px rgba(49, 39, 76, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.76) !important;
}

.product-card > img,
.product-card img,
.group-dialog .group-gallery-grid .product-card img,
.group-stack-img,
.product-group-card .group-stack-img {
  object-fit: cover !important;
  object-position: center !important;
  background: #fff !important;
}

.product-card > img,
.product-card:not(.product-group-card) > img,
.group-dialog .group-gallery-grid .product-card img {
  padding: 0 !important;
}

.store-info,
.toolbar,
.category-strip,
.section-head,
.gallery-module {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.store-info {
  padding: 0 !important;
}

.store-address {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: var(--flat-radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.24)),
    rgba(255, 255, 255, 0.18);
  box-shadow:
    0 10px 22px rgba(49, 39, 76, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

.category-strip {
  padding: 8px 0 0 !important;
}

.gallery-module {
  padding: 0 !important;
}

.gallery-module > h2,
.gallery-module > span,
.quote-switch .cart-open-btn {
  border: 1px solid rgba(255, 255, 255, 0.58) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.24)),
    rgba(255, 255, 255, 0.18) !important;
  box-shadow:
    0 8px 18px rgba(49, 39, 76, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.76) !important;
  backdrop-filter: blur(14px) saturate(1.18) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.18) !important;
}

.gallery-module > h2 {
  padding: 9px 12px !important;
  border-radius: var(--flat-radius-md) !important;
}

.quote-switch {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.quote-switch::after {
  display: none !important;
}

/* Tighter flat-glass customer catalog spacing. */
.store-info {
  margin-top: 8px !important;
}

.toolbar {
  width: 100% !important;
  grid-template-columns: minmax(0, 1fr) 110px 82px 92px !important;
  gap: 7px !important;
  align-items: stretch !important;
  margin-top: 8px !important;
  padding: 0 !important;
}

.toolbar .search-box,
.toolbar select,
.toolbar .ghost-btn,
.toolbar .new-filter-btn {
  height: 38px !important;
  min-height: 38px !important;
}

.toolbar .search-box {
  padding: 0 12px !important;
}

.toolbar .search-box span {
  font-size: 17px !important;
}

.toolbar select,
.toolbar .ghost-btn,
.toolbar .new-filter-btn {
  padding: 0 8px !important;
  font-size: 12px !important;
  letter-spacing: 0 !important;
}

.category-strip {
  gap: 7px !important;
  margin-top: 8px !important;
  padding: 8px 0 0 !important;
}

.category-strip button {
  min-height: 29px !important;
}

.section-head {
  margin-top: 8px !important;
  margin-bottom: 10px !important;
}

.gallery-module {
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  justify-content: stretch !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 !important;
}

.gallery-module > h2,
.gallery-module > span {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.mobile-toolbar-wechat {
  display: none;
}

.mobile-category-btn {
  display: none;
}

@media (max-width: 780px) {
  .store-info,
  .store-address {
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .store-address {
    display: block !important;
  }

  .store-address .map-marker,
  .store-address > .wechat-pill-btn {
    display: none !important;
  }

  .address-copy-btn {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    text-align: left !important;
    line-height: 1.42 !important;
  }

  .copy-address-toast {
    position: fixed !important;
    left: 50% !important;
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 90 !important;
    display: grid !important;
    gap: 2px !important;
    min-width: 168px !important;
    max-width: calc(100vw - 48px) !important;
    padding: 10px 20px !important;
    border-radius: 999px !important;
    background: rgba(255, 111, 0, 0.82) !important;
    box-shadow: 0 16px 34px rgba(194, 65, 12, 0.24) !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 950 !important;
    line-height: 1.1 !important;
    text-align: center !important;
    white-space: normal !important;
    backdrop-filter: blur(12px) saturate(1.16) !important;
    -webkit-backdrop-filter: blur(12px) saturate(1.16) !important;
    transform: translate(-50%, -50%) scale(0.96) !important;
  }

  .copy-address-toast.is-visible {
    transform: translate(-50%, -50%) scale(1) !important;
  }

  .copy-address-toast small {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 11px !important;
    font-weight: 850 !important;
  }

  .gallery-module {
    display: block !important;
  }

  .gallery-module > h2,
  .gallery-module > span {
    display: none !important;
  }

  .quote-switch {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .quote-switch .cart-open-btn {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center !important;
  }

  .group-dialog .group-gallery-grid .product-card {
    --info-height: 54px !important;
    aspect-ratio: 1 / 1.2 !important;
    grid-template-rows: minmax(0, 1fr) var(--info-height) !important;
  }

  .group-dialog .group-gallery-grid .product-copy,
  .group-dialog .group-gallery-grid .product-copy.no-name {
    grid-template-rows: 15px 14px 14px !important;
    align-content: end !important;
    gap: 1px !important;
    padding: 4px 10px 6px !important;
    line-height: 1.02 !important;
  }

  .group-dialog .group-gallery-grid .pill,
  .group-dialog .group-gallery-grid .material-line,
  .group-dialog .group-gallery-grid .product-copy strong {
    min-height: 0 !important;
    line-height: 1.02 !important;
  }
}

.quote-switch {
  width: auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  grid-column: auto !important;
}

.quote-switch .cart-open-btn {
  min-height: 32px !important;
  padding: 0 12px !important;
  border-radius: var(--flat-radius-md) !important;
  font-size: 12px !important;
}

@media (max-width: 780px) {
  .gallery-grid > .product-card,
  .gallery-grid > .product-card.product-group-card {
    --info-height: 68px !important;
    aspect-ratio: 1 / 1.16 !important;
    grid-template-rows: minmax(0, 1fr) var(--info-height) !important;
  }

  .gallery-grid > .product-card > img,
  .gallery-grid > .product-group-card > .group-stack {
    min-height: 0 !important;
    height: 100% !important;
  }

  .gallery-grid > .product-card .product-copy,
  .gallery-grid > .product-card .product-copy.no-name,
  .gallery-grid > .product-group-card .group-copy {
    min-height: var(--info-height) !important;
    grid-template-rows: 16px 15px 15px !important;
    align-content: center !important;
    gap: 2px !important;
    padding: 6px 9px 7px !important;
    line-height: 1.06 !important;
  }

  .gallery-grid > .product-card:not(.product-group-card) .product-copy h3 {
    display: none !important;
  }

  .gallery-grid > .product-card .pill,
  .gallery-grid > .product-card .material-line,
  .gallery-grid > .product-card .product-copy strong,
  .gallery-grid > .product-group-card .group-copy h3 {
    min-height: 0 !important;
    line-height: 1.06 !important;
  }
}

.gallery {
  gap: 14px !important;
}

.wechat-pill-btn {
  min-height: 28px !important;
  border-color: rgba(7, 193, 96, 0.32) !important;
  border-radius: 999px !important;
  background:
    linear-gradient(135deg, rgba(232, 255, 241, 0.98), rgba(198, 246, 213, 0.94)),
    rgba(220, 252, 231, 0.9) !important;
  color: #05853f !important;
  box-shadow:
    0 8px 18px rgba(7, 193, 96, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
}

.toolbar .new-filter-btn.active {
  border-color: rgba(255, 111, 0, 0.58) !important;
  background: linear-gradient(135deg, #b94a00 0%, #e35d00 48%, var(--orange) 100%) !important;
  color: #fff !important;
  box-shadow:
    0 10px 22px rgba(255, 111, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.34) !important;
}

/* Give catalog thumbnails more room and keep folded-series labels compact. */
.gallery-grid > .product-card,
.gallery-grid > .product-card.product-group-card {
  --info-height: 62px !important;
  aspect-ratio: 1 / 1.06 !important;
  grid-template-rows: minmax(0, 1fr) var(--info-height) !important;
}

.gallery-grid > .product-card > img,
.gallery-grid > .product-group-card > .group-stack {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

.gallery-grid > .product-card .product-copy,
.gallery-grid > .product-card .product-copy.no-name,
.gallery-grid > .product-group-card .group-copy {
  min-height: var(--info-height) !important;
  align-content: start !important;
  gap: 1px !important;
  padding: 6px 8px 5px !important;
  line-height: 1.02 !important;
}

.gallery-grid > .product-group-card .group-copy {
  grid-template-rows: 14px 17px 14px !important;
}

.gallery-grid > .product-group-card .group-copy .pill,
.gallery-grid > .product-group-card .group-copy h3,
.gallery-grid > .product-group-card .group-copy strong {
  min-height: 0 !important;
  line-height: 1.02 !important;
}

.gallery-grid > .product-group-card .group-copy .pill,
.gallery-grid > .product-group-card .group-copy strong {
  font-size: 10px !important;
}

.gallery-grid > .product-group-card .group-copy h3 {
  font-size: 13px !important;
}

@media (max-width: 780px) {
  .gallery-grid > .product-card,
  .gallery-grid > .product-card.product-group-card {
    --info-height: 56px !important;
    aspect-ratio: 1 / 1.02 !important;
  }

  .gallery-grid > .product-card .product-copy,
  .gallery-grid > .product-card .product-copy.no-name,
  .gallery-grid > .product-group-card .group-copy {
    padding: 5px 7px 4px !important;
  }

  .gallery-grid > .product-group-card .group-copy {
    grid-template-rows: 12px 16px 12px !important;
  }
}

/* Series cards only need two balanced text lines. */
.gallery-grid > .product-group-card > .group-copy {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  min-height: var(--info-height) !important;
  padding: 7px 8px 6px !important;
  gap: 0 !important;
}

.gallery-grid > .product-group-card > .group-copy .pill {
  display: none !important;
}

.gallery-grid > .product-group-card > .group-copy h3 {
  display: block !important;
  font-size: 15px !important;
  line-height: 1.05 !important;
}

.gallery-grid > .product-group-card > .group-copy strong {
  display: block !important;
  font-size: 10px !important;
  line-height: 1.05 !important;
}

@media (max-width: 780px) {
  .gallery-grid > .product-group-card > .group-copy {
    padding: 6px 7px 5px !important;
  }

  .gallery-grid > .product-group-card > .group-copy h3 {
    font-size: 14px !important;
  }
}

/* Final series text sizing: two centered lines, no hidden middle row. */
.gallery-grid > .product-group-card > .group-copy {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-content: center !important;
  gap: 7px !important;
  padding: 5px 8px 6px !important;
}

.gallery-grid > .product-group-card > .group-copy .pill {
  display: none !important;
}

.gallery-grid > .product-group-card > .group-copy h3 {
  display: block !important;
  font-size: 18px !important;
  line-height: 1 !important;
  margin: 0 !important;
}

.gallery-grid > .product-group-card > .group-copy strong {
  display: block !important;
  font-size: 12px !important;
  line-height: 1 !important;
  margin: 0 !important;
}

@media (max-width: 780px) {
  .gallery-grid > .product-group-card > .group-copy {
    gap: 6px !important;
    padding: 5px 7px !important;
  }
}

.toolbar .new-filter-btn.has-new-products:not(.active) {
  border-color: rgba(234, 88, 12, 0.42) !important;
  background:
    linear-gradient(135deg, rgba(255, 247, 237, 0.98), rgba(254, 215, 170, 0.92)),
    rgba(255, 237, 213, 0.84) !important;
  color: #c2410c !important;
}

.gallery-module {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  justify-content: stretch !important;
}

.gallery-module > h2,
.gallery-module > span {
  display: inline-flex !important;
  align-items: center !important;
}

@media (max-width: 780px) {
  .mobile-toolbar-wechat {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 34px !important;
    min-height: 34px !important;
    align-self: center !important;
    padding: 0 10px !important;
    font-size: 12px !important;
    line-height: 1 !important;
  }

  .gallery-module {
    display: block !important;
    grid-template-columns: none !important;
  }

  .gallery-module > h2,
  .gallery-module > span {
    display: none !important;
  }

  .quote-switch {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .quote-switch .cart-open-btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* Customer catalog final polish: compact red badges and single Quote List action. */
.hero-image-banner {
  position: relative !important;
}

.hero-image-banner::after {
  content: none !important;
  display: none !important;
}

.new-product-badge {
  top: 0 !important;
  right: 0 !important;
  width: 30px !important;
  height: 29px !important;
  border-radius: 0 !important;
  background: url("../new-badge.png") center / contain no-repeat !important;
  filter: drop-shadow(0 6px 10px rgba(220, 38, 38, 0.32)) !important;
}

.gallery-module {
  grid-template-columns: minmax(0, 1fr) max-content max-content !important;
  column-gap: clamp(8px, 1.4vw, 16px) !important;
}

.gallery-module > span {
  justify-self: end !important;
  margin-right: 0 !important;
}

.quote-list-row {
  display: block !important;
  width: 100% !important;
  margin: 10px 0 14px !important;
}

.quote-list-row-btn {
  display: flex !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 44px !important;
  align-items: center !important;
  justify-content: center !important;
}

.quote-switch .cart-open-btn,
.quote-list-row-btn {
  min-height: 34px !important;
  padding: 0 15px !important;
  border: 1px solid rgba(59, 130, 246, 0.34) !important;
  border-radius: var(--flat-radius-md) !important;
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.98), rgba(191, 219, 254, 0.88)) !important;
  color: #1d4ed8 !important;
  font-size: 12px !important;
  font-weight: 1000 !important;
  box-shadow:
    0 7px 14px rgba(59, 130, 246, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

.quote-switch .cart-open-btn::after,
.quote-list-row-btn::after {
  content: "NEW";
  position: absolute;
  top: -10px;
  right: -8px;
  min-width: 28px;
  height: 17px;
  display: none;
  place-items: center;
  padding: 0 5px;
  border-radius: var(--flat-radius-sm);
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 1000;
  line-height: 1;
  box-shadow: 0 7px 14px rgba(220, 38, 38, 0.26);
  pointer-events: none;
}

.quote-switch .cart-open-btn:hover,
.quote-switch .cart-open-btn:focus-visible,
.quote-list-row-btn:hover,
.quote-list-row-btn:focus-visible {
  border-color: rgba(37, 99, 235, 0.62) !important;
  background:
    linear-gradient(135deg, #eff6ff, #93c5fd) !important;
  color: #1e40af !important;
  box-shadow:
    0 9px 18px rgba(59, 130, 246, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.68) !important;
}

.quote-switch .cart-open-btn.has-quote-notice,
.quote-list-row-btn.has-quote-notice {
  border-color: rgba(220, 38, 38, 0.5) !important;
  background:
    linear-gradient(135deg, rgba(254, 242, 242, 0.98), rgba(252, 165, 165, 0.9)) !important;
  color: #b91c1c !important;
  box-shadow:
    0 9px 18px rgba(220, 38, 38, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

.quote-switch .cart-open-btn.has-quote-notice::after,
.quote-list-row-btn.has-quote-notice::after {
  display: inline-grid;
}

@media (max-width: 780px) {
  .hero-image-banner::after {
    width: 24px;
  }

  .gallery-module > span {
    margin-right: 0 !important;
  }

  .quote-switch .cart-open-btn,
  .quote-list-row-btn {
    min-height: 36px !important;
  }

  .quote-switch .cart-open-btn::after,
  .quote-list-row-btn::after {
    top: -7px;
    right: -5px;
    min-width: 24px;
    height: 16px;
    font-size: 8px;
  }
}

@media (max-width: 780px) {
  #detailDialog .cart-add-btn {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 38px !important;
    padding: 6px 8px !important;
    font-size: clamp(12px, 3.35vw, 14px) !important;
    line-height: 1.12 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }
}

@media (min-width: 781px) {
  #gallery .gallery-module {
    grid-template-columns: minmax(0, 1fr) max-content max-content !important;
  }

  #gallery .quote-list-row {
    width: auto !important;
    margin: 0 !important;
    justify-self: end !important;
  }

  #gallery .quote-list-row-btn {
    width: auto !important;
    min-width: max-content !important;
    max-width: none !important;
    min-height: 34px !important;
    padding: 0 15px !important;
    border-radius: var(--flat-radius-md) !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 780px) {
  .gallery-module {
    grid-template-columns: 1fr !important;
    row-gap: 10px !important;
  }

  #gallery.section-head {
    margin-top: 14px !important;
    margin-bottom: 10px !important;
  }

  #gallery .gallery-module {
    min-height: 0 !important;
    padding: 0 !important;
  }

  #gallery .quote-list-row {
    margin: 0 !important;
  }

  #gallery .quote-list-row-btn {
    border-radius: var(--flat-radius-md) !important;
  }

  .gallery-module .quote-switch {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .gallery-module .quote-switch .cart-open-btn {
    width: 100% !important;
    min-height: 44px !important;
    justify-content: center !important;
  }
}

*,
*::before,
*::after {
  scrollbar-width: none !important;
}

*::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

/* Final catalog card polish: tighter folded-series text and fuller thumbnails. */
.gallery-grid > .product-card,
.gallery-grid > .product-card.product-group-card {
  --info-height: 62px !important;
  aspect-ratio: 1 / 1.06 !important;
  grid-template-rows: minmax(0, 1fr) var(--info-height) !important;
}

.gallery-grid > .product-card > img {
  object-fit: cover !important;
  object-position: center center !important;
}

.gallery-grid > .product-card > .product-copy,
.gallery-grid > .product-card > .product-copy.no-name,
.gallery-grid > .product-group-card > .group-copy {
  min-height: var(--info-height) !important;
  align-content: start !important;
  gap: 1px !important;
  padding: 6px 8px 5px !important;
  line-height: 1.02 !important;
}

.gallery-grid > .product-group-card > .group-copy {
  grid-template-rows: 14px 17px 14px !important;
}

.gallery-grid > .product-group-card > .group-copy .pill,
.gallery-grid > .product-group-card > .group-copy h3,
.gallery-grid > .product-group-card > .group-copy strong {
  min-height: 0 !important;
  line-height: 1.02 !important;
}

.gallery-grid > .product-group-card > .group-copy .pill,
.gallery-grid > .product-group-card > .group-copy strong {
  font-size: 10px !important;
}

.gallery-grid > .product-group-card > .group-copy h3 {
  font-size: 13px !important;
}

@media (max-width: 780px) {
  .gallery-grid > .product-card,
  .gallery-grid > .product-card.product-group-card {
    --info-height: 56px !important;
    aspect-ratio: 1 / 1.02 !important;
  }

  .gallery-grid > .product-card > .product-copy,
  .gallery-grid > .product-card > .product-copy.no-name,
  .gallery-grid > .product-group-card > .group-copy {
    padding: 5px 7px 4px !important;
  }

  .gallery-grid > .product-group-card > .group-copy {
    grid-template-rows: 12px 16px 12px !important;
  }
}

/* Final override for folded series labels. Keep only two readable lines. */
.gallery-grid > .product-card.product-group-card > .group-copy {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-content: center !important;
  min-height: var(--info-height) !important;
  gap: 5px !important;
  padding: 6px 8px !important;
  grid-template-rows: none !important;
}

.gallery-grid > .product-card.product-group-card > .group-copy .pill {
  display: none !important;
}

.gallery-grid > .product-card.product-group-card > .group-copy h3 {
  display: block !important;
  margin: 0 !important;
  color: #ff6f00 !important;
  font-size: 18px !important;
  line-height: 1.05 !important;
}

.gallery-grid > .product-card.product-group-card > .group-copy strong {
  display: block !important;
  margin: 0 !important;
  color: var(--muted) !important;
  font-size: 12px !important;
  line-height: 1.05 !important;
}

@media (max-width: 780px) {
  .gallery-grid > .product-card.product-group-card > .group-copy {
    gap: 5px !important;
    padding: 6px 7px !important;
  }
}

/* Desktop customer toolbar: keep bilingual category names readable. */
@media (min-width: 781px) {
  .toolbar {
    grid-template-columns: minmax(0, 1fr) 190px 88px 96px !important;
  }

  #categoryFilter {
    min-width: 190px !important;
    width: 190px !important;
  }

  #clearSearchBtn {
    min-width: 88px !important;
    width: 88px !important;
    white-space: nowrap !important;
  }

  #newOnlyBtn {
    min-width: 96px !important;
    width: 96px !important;
    white-space: nowrap !important;
  }
}

/* Mobile detail final: image first, product info in its own module below. */
@media (max-width: 780px) {
  #detailDialog[open] {
    display: block !important;
    align-content: start !important;
    overflow: visible !important;
    padding: 0 !important;
    border: 0 !important;
    border-color: transparent !important;
    border-radius: 0 !important;
    outline: 0 !important;
    outline-offset: 0 !important;
    background-color: transparent !important;
    background-image: none !important;
    background: transparent !important;
    box-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  #detailDialog:focus,
  #detailDialog:focus-visible {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  #detailDialog .detail-image-stage {
    flex: 0 0 auto !important;
    overflow: hidden !important;
    border-radius: 20px !important;
    background: #fff !important;
    box-shadow: 0 18px 42px rgba(24, 16, 56, 0.2) !important;
  }

  #detailDialog .dialog-copy {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin-top: 12px !important;
    padding: 12px 14px 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.36) !important;
    border-radius: 20px !important;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, var(--glass-top-alpha, 0.68)), rgba(255, 247, 237, var(--glass-mid-alpha, 0.46))),
      rgba(255, 255, 255, var(--glass-base-alpha, 0.38)) !important;
    box-shadow: none !important;
    backdrop-filter: blur(18px) saturate(1.18) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.18) !important;
  }

  #detailDialog .detail-main-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px !important;
    height: auto !important;
    min-height: 0 !important;
    align-items: start !important;
    align-content: start !important;
  }

  #detailDialog .detail-info-line {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 4px !important;
    height: auto !important;
    min-height: 0 !important;
    text-align: left !important;
  }

  #detailDialog .detail-info-line h3 {
    display: none !important;
  }

  #detailDialog #detailCategory,
  #detailDialog #detailMaterial,
  #detailDialog #detailSku {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--muted) !important;
    font-size: 15px !important;
    font-weight: 950 !important;
    line-height: 1.18 !important;
    text-align: left !important;
    white-space: normal !important;
    box-shadow: none !important;
  }

  #detailDialog #detailCategory {
    grid-row: 1 !important;
  }

  #detailDialog #detailMaterial {
    grid-row: 2 !important;
  }

  #detailDialog #detailSku {
    grid-row: 3 !important;
    margin-top: 8px !important;
  }

  #detailDialog .detail-details-btn {
    grid-column: 1 !important;
    grid-row: 2 !important;
    min-height: 38px !important;
    margin: 0 !important;
  }

  #detailDialog .customer-detail-extra-images {
    grid-column: 1 !important;
    grid-row: 3 !important;
    padding: 0 !important;
  }

  #detailDialog .detail-details-btn[hidden],
  #detailDialog .customer-detail-extra-images[hidden],
  #detailDialog .customer-detail-extra-images:empty {
    display: none !important;
  }

  #detailDialog .cart-add-btn {
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 8px 10px !important;
    border-radius: 999px !important;
    font-size: clamp(12px, 3.25vw, 14px) !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
  }

  #detailDialog .detail-remark {
    grid-column: 1 !important;
    grid-row: 3 !important;
    margin: 0 !important;
    min-height: 0 !important;
    color: var(--muted) !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1.32 !important;
    text-align: left !important;
  }
}

/* Group cards: show three stacked previews while keeping the original info area below. */
.gallery-grid > .product-group-card > .group-stack {
  border-radius: var(--flat-radius-md, 8px) var(--flat-radius-md, 8px) 0 0 !important;
  clip-path: inset(0 round var(--flat-radius-md, 8px) var(--flat-radius-md, 8px) 0 0) !important;
  background: #fff !important;
}

.gallery-grid > .product-group-card .group-stack-img {
  width: 66% !important;
  height: 78% !important;
  left: 50% !important;
  top: 50% !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: var(--flat-radius-sm, 5px) !important;
  background: transparent !important;
  box-shadow: 0 14px 24px rgba(50, 32, 104, 0.12) !important;
}

.gallery-grid > .product-group-card .group-copy {
  grid-template-rows: 20px 16px !important;
  align-content: center !important;
  gap: 3px !important;
}

.gallery-grid > .product-group-card .group-copy h3 {
  display: block !important;
  color: #ff6f00 !important;
}

.gallery-grid > .product-group-card .group-stack-img-1 {
  z-index: 3 !important;
  transform: translate3d(-50%, -50%, 0) rotate(0deg) !important;
}

.gallery-grid > .product-group-card .group-stack-img-2 {
  z-index: 2 !important;
  transform: translate3d(-56%, -52%, 0) rotate(-8deg) !important;
}

.gallery-grid > .product-group-card .group-stack-img-3 {
  z-index: 1 !important;
  transform: translate3d(-44%, -52%, 0) rotate(8deg) !important;
}

/* Restore the original customer catalog card structure: image on top, info below. */
.gallery-grid > .product-card {
  --info-height: 82px !important;
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) var(--info-height) !important;
  aspect-ratio: 1 / 1.08 !important;
  overflow: hidden !important;
  background: #fff !important;
}

.gallery-grid > .product-card > img {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  display: block !important;
  grid-row: 1 !important;
  object-fit: contain !important;
  object-position: center center !important;
  padding: 0 !important;
  border-radius: var(--flat-radius-md, 8px) var(--flat-radius-md, 8px) 0 0 !important;
  background: #fff !important;
}

.gallery-grid > .product-card > .product-copy {
  position: static !important;
  inset: auto !important;
  grid-row: 2 !important;
  z-index: 1 !important;
  width: auto !important;
  height: auto !important;
  min-height: var(--info-height) !important;
  padding: 9px 10px 10px !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  color: var(--ink) !important;
  text-shadow: none !important;
}

.gallery-grid > .product-card:not(.product-group-card) > .product-copy {
  grid-template-rows: 22px 20px 16px 16px !important;
  align-content: start !important;
  gap: 3px !important;
}

.gallery-grid > .product-card:not(.product-group-card) > .product-copy.no-name {
  grid-template-rows: 22px 16px 16px !important;
  align-content: center !important;
}

.gallery-grid > .product-card > .product-copy .pill,
.gallery-grid > .product-card > .product-copy h3,
.gallery-grid > .product-card > .product-copy .material-line,
.gallery-grid > .product-card > .product-copy strong {
  display: block !important;
  min-height: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  text-shadow: none !important;
}

.gallery-grid > .product-card > .product-copy .pill {
  color: var(--muted) !important;
}

.gallery-grid > .product-card > .product-copy h3 {
  color: var(--ink) !important;
}

.gallery-grid > .product-card > .product-copy .material-line,
.gallery-grid > .product-card > .product-copy strong {
  color: var(--muted) !important;
}

.gallery-grid > .product-group-card {
  background: #fff7ed !important;
}

.gallery-grid > .product-group-card > .group-stack {
  grid-row: 1 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  border-radius: var(--flat-radius-md, 8px) var(--flat-radius-md, 8px) 0 0 !important;
  clip-path: inset(0 round var(--flat-radius-md, 8px) var(--flat-radius-md, 8px) 0 0) !important;
  background: #fff !important;
}

.gallery-grid > .product-group-card > .group-stack::after {
  content: none !important;
}

.gallery-grid > .product-group-card > .group-copy {
  grid-template-rows: 20px 16px !important;
  align-content: center !important;
  gap: 3px !important;
  background: #fff7ed !important;
}

.gallery-grid > .product-group-card > .group-copy h3 {
  display: block !important;
  color: #ff6f00 !important;
}

.gallery-grid > .product-group-card > .group-copy strong {
  display: block !important;
  color: var(--muted) !important;
}

.gallery-grid > .product-group-card .group-stack-img {
  width: 66% !important;
  height: 78% !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: var(--flat-radius-sm, 5px) !important;
  background: #fff !important;
}

@media (max-width: 780px) {
  .gallery-grid > .product-card,
  .gallery-grid > .product-card.product-group-card {
    --info-height: 68px !important;
    aspect-ratio: 1 / 1.16 !important;
  }

  .gallery-grid > .product-card:not(.product-group-card) > .product-copy,
  .gallery-grid > .product-card:not(.product-group-card) > .product-copy.no-name {
    grid-template-rows: 16px 15px 15px !important;
    align-content: center !important;
    gap: 2px !important;
    padding: 6px 9px 7px !important;
  }

  .gallery-grid > .product-group-card > .group-copy {
    grid-template-rows: 16px 15px !important;
    padding: 6px 9px 7px !important;
  }
}

/* Collection dialog cards: compact, even three-line info area. */
.group-dialog .group-gallery-grid .product-card {
  --info-height: 58px !important;
  aspect-ratio: 1 / 1.02 !important;
  grid-template-rows: minmax(0, 1fr) var(--info-height) !important;
}

.group-dialog .group-gallery-grid .product-copy,
.group-dialog .group-gallery-grid .product-copy.no-name {
  min-height: var(--info-height) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  grid-template-rows: none !important;
  gap: 3px !important;
  padding: 10px 10px 5px !important;
  line-height: 1 !important;
}

.group-dialog .group-gallery-grid .product-copy h3 {
  display: none !important;
}

.group-dialog .group-gallery-grid .pill,
.group-dialog .group-gallery-grid .material-line,
.group-dialog .group-gallery-grid .product-copy strong {
  min-height: 0 !important;
  line-height: 13px !important;
}

@media (max-width: 780px) {
  .group-dialog .group-gallery-grid .product-card {
    --info-height: 50px !important;
    aspect-ratio: 1 / 1.03 !important;
  }

  .group-dialog .group-gallery-grid .product-copy,
  .group-dialog .group-gallery-grid .product-copy.no-name {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    grid-template-rows: none !important;
    gap: 3px !important;
    padding: 10px 8px 4px !important;
  }

  .group-dialog .group-gallery-grid .pill,
  .group-dialog .group-gallery-grid .material-line,
  .group-dialog .group-gallery-grid .product-copy strong {
    line-height: 12px !important;
  }
}

/* Final catalog card polish: tighter folded-series text and fuller thumbnails. */
.gallery-grid > .product-card,
.gallery-grid > .product-card.product-group-card {
  --info-height: 62px !important;
  aspect-ratio: 1 / 1.06 !important;
  grid-template-rows: minmax(0, 1fr) var(--info-height) !important;
}

.gallery-grid > .product-card > img {
  object-fit: cover !important;
  object-position: center center !important;
}

.gallery-grid > .product-card > .product-copy,
.gallery-grid > .product-card > .product-copy.no-name,
.gallery-grid > .product-group-card > .group-copy {
  min-height: var(--info-height) !important;
  align-content: start !important;
  gap: 1px !important;
  padding: 6px 8px 5px !important;
  line-height: 1.02 !important;
}

.gallery-grid > .product-group-card > .group-copy {
  grid-template-rows: 14px 17px 14px !important;
}

.gallery-grid > .product-group-card > .group-copy .pill,
.gallery-grid > .product-group-card > .group-copy h3,
.gallery-grid > .product-group-card > .group-copy strong {
  min-height: 0 !important;
  line-height: 1.02 !important;
}

.gallery-grid > .product-group-card > .group-copy .pill,
.gallery-grid > .product-group-card > .group-copy strong {
  font-size: 10px !important;
}

.gallery-grid > .product-group-card > .group-copy h3 {
  font-size: 13px !important;
}

@media (max-width: 780px) {
  .gallery-grid > .product-card,
  .gallery-grid > .product-card.product-group-card {
    --info-height: 56px !important;
    aspect-ratio: 1 / 1.02 !important;
  }

  .gallery-grid > .product-card > .product-copy,
  .gallery-grid > .product-card > .product-copy.no-name,
  .gallery-grid > .product-group-card > .group-copy {
    padding: 5px 7px 4px !important;
  }

  .gallery-grid > .product-group-card > .group-copy {
    grid-template-rows: 12px 16px 12px !important;
  }
}

/* Final override for folded series labels. Keep only two readable lines. */
.gallery-grid > .product-card.product-group-card > .group-copy {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-content: center !important;
  min-height: var(--info-height) !important;
  gap: 5px !important;
  padding: 6px 8px !important;
  grid-template-rows: none !important;
}

.gallery-grid > .product-card.product-group-card > .group-copy .pill {
  display: none !important;
}

.gallery-grid > .product-card.product-group-card > .group-copy h3 {
  display: block !important;
  margin: 0 !important;
  color: #ff6f00 !important;
  font-size: 18px !important;
  line-height: 1.05 !important;
}

.gallery-grid > .product-card.product-group-card > .group-copy strong {
  display: block !important;
  margin: 0 !important;
  color: var(--muted) !important;
  font-size: 12px !important;
  line-height: 1.05 !important;
}

@media (max-width: 780px) {
  .gallery-grid > .product-card.product-group-card > .group-copy {
    gap: 5px !important;
    padding: 6px 7px !important;
  }
}

/* Final override for single product cards: even three-line info spacing. */
.gallery-grid > .product-card:not(.product-group-card) > .product-copy,
.gallery-grid > .product-card:not(.product-group-card) > .product-copy.no-name {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-content: stretch !important;
  min-height: var(--info-height) !important;
  gap: 4px !important;
  padding: 10px 8px 6px !important;
  grid-template-rows: none !important;
}

.gallery-grid > .product-card:not(.product-group-card) > .product-copy h3 {
  display: none !important;
}

.gallery-grid > .product-card:not(.product-group-card) > .product-copy .pill,
.gallery-grid > .product-card:not(.product-group-card) > .product-copy .material-line,
.gallery-grid > .product-card:not(.product-group-card) > .product-copy strong {
  display: block !important;
  min-height: 0 !important;
  margin: 0 !important;
  line-height: 1.12 !important;
}

@media (max-width: 780px) {
  .gallery-grid > .product-card:not(.product-group-card) > .product-copy,
  .gallery-grid > .product-card:not(.product-group-card) > .product-copy.no-name {
    gap: 4px !important;
    padding: 10px 7px 5px !important;
  }
}

/* Mobile collection dialog: centered sheet, reachable close button, compact cards. */
@media (max-width: 780px) {
  .group-dialog::backdrop {
    border-radius: 0 !important;
    background: #c1c0c8 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .group-dialog[open] {
    display: grid !important;
    align-items: center !important;
    width: min(calc(100vw - 20px), 680px) !important;
    max-width: calc(100vw - 20px) !important;
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 28px) !important;
    margin: auto !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .group-dialog #closeGroupDialogBtn.dialog-close {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    z-index: 20 !important;
  }

  .group-dialog .group-box {
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 28px) !important;
    gap: 8px !important;
    padding: 18px 8px 12px !important;
    overflow: hidden !important;
  }

  .group-dialog .group-title-row {
    padding: 0 46px 0 0 !important;
  }

  .group-dialog .group-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 10px !important;
    row-gap: 14px !important;
    padding: 6px 0 10px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
  }

  .group-dialog .group-gallery-grid .product-card {
    --info-height: 64px !important;
  }

  .group-dialog .group-gallery-grid .product-copy,
  .group-dialog .group-gallery-grid .product-copy.no-name {
    min-height: var(--info-height) !important;
    padding: 11px 8px 3px !important;
  }

  .group-dialog .group-gallery-grid .product-card.is-quote-return-target,
  .group-dialog .group-gallery-grid .product-card:focus,
  .group-dialog .group-gallery-grid .product-card:focus-visible {
    border-color: transparent !important;
    outline: 0 !important;
    outline-offset: 0 !important;
    box-shadow: var(--flat-shadow-card) !important;
  }

  .group-dialog .group-gallery-grid .product-card.is-quote-return-target .pill,
  .group-dialog .group-gallery-grid .product-card.is-quote-return-target .material-line,
  .group-dialog .group-gallery-grid .product-card.is-quote-return-target .product-copy strong,
  .group-dialog .group-gallery-grid .product-card:focus .pill,
  .group-dialog .group-gallery-grid .product-card:focus .material-line,
  .group-dialog .group-gallery-grid .product-card:focus .product-copy strong,
  .group-dialog .group-gallery-grid .product-card:focus-visible .pill,
  .group-dialog .group-gallery-grid .product-card:focus-visible .material-line,
  .group-dialog .group-gallery-grid .product-card:focus-visible .product-copy strong {
    color: #ff6f00 !important;
    font-weight: 1000 !important;
  }
}

/* Desktop collection dialog card info tint. */
@media (min-width: 781px) {
  .group-dialog .group-gallery-grid .product-copy,
  .group-dialog .group-gallery-grid .product-copy.no-name {
    background: #fff0e1 !important;
  }
}

/* Final desktop collection dialog: keep four columns and show three full product rows when space allows. */
@media (min-width: 781px) {
  .group-dialog[open] {
    height: 78dvh !important;
    max-height: 78dvh !important;
  }

  .group-dialog[open] .group-box {
    height: 100% !important;
    max-height: none !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
  }

  .group-dialog[open] .group-gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    height: 100% !important;
    max-height: none !important;
    padding-bottom: 8px !important;
  }
}

/* Final desktop detail layout: image card above, info card below. Keep this last. */
@media (min-width: 781px) {
  #detailDialog[open] {
    display: block !important;
    position: relative !important;
    width: fit-content !important;
    max-width: calc(100vw - 56px) !important;
    max-height: calc(100dvh - 56px) !important;
    overflow: visible !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    outline-offset: 0 !important;
    background-color: transparent !important;
    background-image: none !important;
    background: transparent !important;
    box-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  #detailDialog #closeDialogBtn.dialog-close {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 12 !important;
    width: 38px !important;
    height: 38px !important;
    border: 1px solid rgba(255, 255, 255, 0.42) !important;
    background: rgba(48, 31, 24, 0.28) !important;
    color: #fff !important;
    box-shadow: 0 8px 22px rgba(24, 16, 56, 0.18) !important;
    backdrop-filter: blur(8px) saturate(1.08) !important;
    -webkit-backdrop-filter: blur(8px) saturate(1.08) !important;
  }

  #detailDialog:focus,
  #detailDialog:focus-visible {
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  #detailDialog .detail-image-stage {
    order: initial !important;
    flex: none !important;
    display: block !important;
    width: fit-content !important;
    max-width: calc(100vw - 56px) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
    border-radius: 20px !important;
    background: #fff !important;
    box-shadow: 0 18px 42px rgba(24, 16, 56, 0.2) !important;
    line-height: 0 !important;
  }

  #detailDialog .detail-image-stage img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: min(1120px, calc(100vw - 56px)) !important;
    max-height: calc(100dvh - 220px) !important;
    object-fit: contain !important;
    object-position: center center !important;
  }

  #detailDialog .dialog-copy {
    order: initial !important;
    flex: none !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 2 !important;
    width: var(--detail-card-width, 100%) !important;
    max-width: var(--detail-card-width, 100%) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    min-height: 0 !important;
    margin-top: 14px !important;
    padding: 14px 18px 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.36) !important;
    border-radius: 20px !important;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, var(--glass-top-alpha, 0.68)), rgba(255, 247, 237, var(--glass-mid-alpha, 0.46))),
      rgba(255, 255, 255, var(--glass-base-alpha, 0.38)) !important;
    box-shadow: none !important;
    backdrop-filter: blur(18px) saturate(1.18) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.18) !important;
  }

  #detailDialog .detail-main-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 10px 18px !important;
    align-items: start !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  #detailDialog .detail-info-line {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 5px !important;
    min-width: 0 !important;
    text-align: left !important;
  }

  #detailDialog .detail-info-line h3 {
    display: none !important;
  }

  #detailDialog #detailCategory,
  #detailDialog #detailMaterial,
  #detailDialog #detailSku {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--muted) !important;
    font-size: 15px !important;
    font-weight: 950 !important;
    line-height: 1.18 !important;
    text-align: left !important;
    white-space: normal !important;
    box-shadow: none !important;
  }

  #detailDialog .detail-details-btn {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    align-self: center !important;
    min-height: 40px !important;
    margin: 0 !important;
    justify-self: start !important;
    white-space: nowrap !important;
  }

  #detailDialog .customer-detail-extra-images {
    grid-column: 1 / -1 !important;
    grid-row: 4 !important;
    padding: 0 !important;
  }

  #detailDialog .detail-details-btn[hidden],
  #detailDialog .customer-detail-extra-images[hidden],
  #detailDialog .customer-detail-extra-images:empty {
    display: none !important;
  }

  #detailDialog .cart-add-btn {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: max-content !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 8px 14px !important;
    border-radius: 999px !important;
    justify-self: end !important;
    align-self: center !important;
    white-space: nowrap !important;
  }

  #detailDialog .detail-remark {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    gap: 0 4px !important;
    max-width: 100% !important;
    margin: 0 !important;
    min-height: 0 !important;
    color: var(--muted) !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1.32 !important;
    text-align: left !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  #detailDialog .detail-remark .detail-note-label {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  #detailDialog .detail-remark .detail-note-cn,
  #detailDialog .detail-remark .detail-note-en {
    grid-column: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--muted) !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  #detailDialog .detail-remark .detail-note-cn {
    grid-row: 1 !important;
  }

  #detailDialog .detail-remark .detail-note-en {
    grid-row: 2 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    overflow: hidden !important;
    word-break: break-word !important;
  }
}

/* Final mobile detail image fit: keep original ratio and give tall images more height. */
@media (max-width: 780px) {
  #detailDialog::backdrop {
    border-radius: 0 !important;
    background: #c1c0c8 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  #detailDialog[open] {
    width: calc(100vw - 8px) !important;
    max-width: calc(100vw - 8px) !important;
    padding: 4px !important;
  }

  #detailDialog #closeDialogBtn.dialog-close {
    position: fixed !important;
    top: var(--detail-close-top, 8px) !important;
    right: var(--detail-close-right, 8px) !important;
    z-index: 40 !important;
  }

  #detailDialog .detail-series-swipe-preview {
    background: transparent !important;
  }

  #detailDialog .detail-series-swipe-preview .detail-image-stage {
    background-color: rgba(255, 255, 255, 0.18) !important;
  }

  #detailDialog[open].is-series-dragging,
  #detailDialog[open].is-series-returning {
    overflow: hidden !important;
  }

  #detailDialog.is-series-dragging .detail-image-stage img,
  #detailDialog.is-series-returning .detail-image-stage img {
    transition: none !important;
  }

  #detailDialog.is-series-settling > .detail-image-stage {
    backface-visibility: hidden;
    transform: translateZ(0);
  }

  #detailDialog.is-series-settling > .detail-image-stage img {
    animation: detailSeriesSettleZoom 820ms cubic-bezier(0.2, 0, 0.2, 1) both;
    backface-visibility: hidden;
    transform-origin: center center;
    will-change: transform;
  }

  #detailDialog .detail-image-stage {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: 68dvh !important;
    padding: 0 !important;
    line-height: 0 !important;
  }

  #detailDialog .detail-image-stage img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 68dvh !important;
    object-fit: contain !important;
    object-position: center center !important;
    transition: none !important;
  }

  #detailDialog .detail-series-swipe-preview .detail-image-stage,
  #detailDialog .detail-series-swipe-preview .detail-image-stage img {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 68dvh !important;
    background-image: none !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
  }

  #detailDialog #detailSku {
    margin-top: 0 !important;
  }
}

/* Final mobile login viewport lock: keep the desert background under the phone status area. */
@media (max-width: 780px) {
  html:not(.customer-session-restoring):has(#customerContent[hidden]),
  html:not(.customer-session-restoring):has(#customerContent[hidden]) body {
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden !important;
    overscroll-behavior: none;
    background:
      linear-gradient(180deg, rgba(42, 27, 14, 0.02), rgba(33, 22, 17, 0.16)),
      url("./login-desert-clouds-202606221004.png") center center / cover no-repeat !important;
  }

  html:not(.customer-session-restoring):has(#customerContent[hidden]) body {
    position: fixed;
    inset: 0;
  }

  html:not(.customer-session-restoring) body:has(#customerContent[hidden]) main {
    position: fixed;
    inset: calc(-1 * env(safe-area-inset-top)) 0 0 0;
    width: 100vw;
    width: 100dvw;
    height: 100vh;
    height: calc(100dvh + env(safe-area-inset-top));
    min-height: 100vh;
    min-height: calc(100dvh + env(safe-area-inset-top));
    overflow: hidden !important;
  }

  html:not(.customer-session-restoring) body:has(#customerContent[hidden]) .locked-state {
    position: fixed;
    inset: calc(-1 * env(safe-area-inset-top)) 0 0 0;
    width: 100vw;
    width: 100dvw;
    height: 100vh;
    height: calc(100dvh + env(safe-area-inset-top));
    min-height: 100vh;
    min-height: calc(100dvh + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 16px 0;
    background-position: center center !important;
  }
}

/* Final mobile detail navigation: top-layer control pinned to the viewport floor. */
@media (max-width: 780px) {
  #detailDialog[open] {
    --detail-series-nav-bottom: clamp(12px, calc(env(safe-area-inset-bottom) + 0.7dvh), 30px);
  }

  #detailDialog > .detail-series-nav {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: var(--detail-series-nav-bottom) !important;
    z-index: 2147483000 !important;
    width: min(calc(100vw - 48px), 340px) !important;
    height: 42px !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, 0.46) !important;
    border-radius: 18px !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.3)),
      rgba(246, 244, 239, 0.38) !important;
    box-shadow:
      0 -10px 28px rgba(18, 16, 28, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.55) !important;
    transform: translateX(-50%) !important;
    backdrop-filter: blur(16px) saturate(1.08) !important;
    -webkit-backdrop-filter: blur(16px) saturate(1.08) !important;
    isolation: isolate !important;
  }

  #detailDialog > .detail-series-nav[hidden] {
    display: none !important;
  }

  #detailDialog > .detail-series-nav .detail-series-arrow {
    appearance: none !important;
    -webkit-appearance: none !important;
    position: static !important;
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    -webkit-tap-highlight-color: transparent !important;
    transform: none !important;
    transition:
      width 160ms ease,
      background 120ms ease,
      color 120ms ease,
      box-shadow 120ms ease,
      transform 120ms ease !important;
  }

  #detailDialog > .detail-series-nav.is-first,
  #detailDialog > .detail-series-nav.is-last {
    width: min(calc(100vw - 112px), 230px) !important;
    grid-template-columns: 1fr !important;
  }

  #detailDialog > .detail-series-nav .detail-series-prev {
    border-radius: 16px 0 0 16px !important;
  }

  #detailDialog > .detail-series-nav .detail-series-next {
    border-radius: 0 16px 16px 0 !important;
  }

  #detailDialog > .detail-series-nav.is-last .detail-series-prev,
  #detailDialog > .detail-series-nav.is-first .detail-series-next {
    border-radius: 16px !important;
    border-left: 0 !important;
    border-right: 0 !important;
  }

  #detailDialog > .detail-series-nav .detail-series-arrow:active {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(255, 246, 238, 0.22)),
      rgba(255, 111, 0, 0.16) !important;
    box-shadow:
      inset 0 1px 4px rgba(26, 24, 34, 0.12),
      inset 0 0 0 999px rgba(255, 255, 255, 0.02) !important;
    color: rgba(45, 40, 56, 0.92) !important;
    transform: translateY(1px) !important;
  }

  #detailDialog > .detail-series-nav .detail-series-arrow:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.72) !important;
    outline-offset: -3px !important;
  }

  #detailDialog[open] {
    display: grid !important;
    align-content: center !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    padding: 4px 4px calc(var(--detail-series-nav-bottom) + 64px) !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
  }

  #detailDialog .dialog-copy {
    border: 1px solid rgba(255, 255, 255, 0.56) !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.36)),
      rgba(246, 244, 239, 0.36) !important;
    box-shadow:
      0 20px 42px rgba(33, 30, 42, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(18px) saturate(1.08) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.08) !important;
  }

  #detailDialog .detail-series-swipe-preview {
    display: none !important;
  }
}

/* Final customer login glass: transparent clear glass, no frosted blur. */
html:not(.customer-session-restoring) body:has(#customerContent[hidden]) .access-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(255, 246, 232, 0.08) 44%, rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.48) !important;
  box-shadow:
    0 22px 54px rgba(60, 33, 10, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(255, 148, 62, 0.1) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html:not(.customer-session-restoring) body:has(#customerContent[hidden]) .access-card::before {
  display: none !important;
}

/* Final customer login inner glass: keep controls clearer than the main panel. */
html:not(.customer-session-restoring) body:has(#customerContent[hidden]) .access-card input,
html:not(.customer-session-restoring) body:has(#customerContent[hidden]) #passwordInput {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.3), rgba(255, 248, 238, 0.12)),
    rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.42) !important;
  box-shadow:
    0 6px 14px rgba(60, 33, 10, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html:not(.customer-session-restoring) body:has(#customerContent[hidden]) .access-language-actions {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html:not(.customer-session-restoring) body:has(#customerContent[hidden]) .access-language-actions button {
  border-color: rgba(255, 255, 255, 0.34) !important;
  color: #8b4515 !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.24), rgba(255, 236, 210, 0.06)),
    rgba(255, 255, 255, 0.06) !important;
  box-shadow:
    0 5px 12px rgba(60, 33, 10, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html:not(.customer-session-restoring) body:has(#customerContent[hidden]) .access-language-actions button.is-selected {
  border-color: rgba(255, 255, 255, 0.45) !important;
  color: #fff !important;
  background:
    linear-gradient(145deg, rgba(255, 156, 58, 0.74), rgba(255, 119, 24, 0.66)) !important;
  box-shadow:
    0 8px 18px rgba(255, 122, 26, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.26) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html:not(.customer-session-restoring) body:has(#customerContent[hidden]) .wechat-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.26), rgba(255, 247, 233, 0.08)),
    rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.38) !important;
  box-shadow:
    0 8px 18px rgba(60, 33, 10, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html:not(.customer-session-restoring) body:has(#customerContent[hidden]) .wechat-card img {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.42)),
    rgba(255, 255, 255, 0.5) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html:not(.customer-session-restoring) body:has(#customerContent[hidden]) .access-card .monica-logo {
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html:not(.customer-session-restoring) body:has(#customerContent[hidden]) .expired-dialog {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.22)),
    rgba(255, 255, 255, 0.32) !important;
  border: 1px solid rgba(255, 255, 255, 0.34) !important;
  box-shadow:
    0 18px 46px rgba(60, 33, 10, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.36) !important;
  backdrop-filter: blur(14px) saturate(1.12) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.12) !important;
}

html:not(.customer-session-restoring) body:has(#customerContent[hidden]) .expired-box {
  background: transparent !important;
}

/* Final Naitai color transfer: match the admin about palette without changing layout. */
:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --accent: #ff6f00;
  --accent-dark: #ff6f00;
  --orange: #ff6f00;
  --mint: #e8e8ed;
  --paper: rgba(255, 255, 255, 0.9);
  --shadow: none;
}

html,
body {
  background: #f5f5f7 !important;
}

body {
  color: #1d1d1f !important;
}

.site-header,
.hero,
.hero-image-banner,
.store-info,
.toolbar,
.search-box,
.toolbar select,
.ghost-btn,
.new-filter-btn,
.category-strip,
.category-strip button,
.gallery-module,
.section-head,
.quote-switch,
.product-card,
.product-group-card,
.cart-open-btn,
.cart-add-btn,
.cart-actions .ghost-btn,
.cart-actions .primary-btn,
.quote-list-row-btn,
.cart-dialog,
.cart-box,
.group-dialog,
.group-box,
.web-confirm-dialog,
.password-dialog,
.expired-dialog,
.wechat-dialog,
.wechat-dialog-box,
.copy-address-dialog,
.dialog-copy {
  border-color: rgba(0, 0, 0, 0.06) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  background-image: none !important;
  box-shadow: none !important;
}

.hero::before,
.hero-store-photo::before,
.hero-store-photo::after,
.quote-switch::after {
  background-image: none !important;
}

.hero-copy p,
.hero-copy h1,
.monica-logo,
.section-head p,
.group-card .group-copy .category-pill,
.map-marker,
.new-filter-btn,
.new-filter-btn.has-new-products,
.address-copy-btn:hover,
.cart-open-btn,
.cart-add-btn,
.cart-actions .ghost-btn,
.cart-actions .primary-btn,
.quote-switch .cart-open-btn,
.quote-list-row-btn,
.category-strip button:hover,
.category-strip button:focus-visible,
.group-title-row span,
.cart-title-row span {
  color: #ff6f00 !important;
  text-shadow: none !important;
}

.brand-title > p,
.brand-features strong,
.section-head h2,
.gallery-module h2,
.product-card h3,
.product-code,
.cart-box strong,
.dialog-copy h3,
.dialog-copy strong,
.web-confirm-box h3,
.expired-box h3,
.wechat-dialog-box h3 {
  color: #1d1d1f !important;
}

.brand-features span,
.store-info,
.search-box span,
.toolbar select,
.category-strip button,
.section-head > span,
.gallery-actions,
.gallery-module > span,
.product-meta,
.product-price-note,
.cart-box p,
.dialog-copy p,
.web-confirm-box p,
.expired-box p,
.wechat-dialog-box p {
  color: #6e6e73 !important;
}

.brand-title span {
  color: rgba(255, 111, 0, 0.72) !important;
}

.category-strip button.active,
.category-strip button.active:hover,
.category-strip button.active:focus-visible,
.new-filter-btn.active,
.new-filter-btn.has-new-products.active,
.quote-switch .cart-open-btn:hover,
.quote-switch .cart-open-btn:focus-visible,
.quote-list-row-btn:hover,
.quote-list-row-btn:focus-visible,
.access-language-actions button.is-selected {
  border-color: #ff6f00 !important;
  background: #ff6f00 !important;
  background-image: none !important;
  color: #fff !important;
  box-shadow: none !important;
}

.card-badge,
.cart-count-badge,
.quote-switch .cart-open-btn::after,
.quote-list-row-btn::after {
  background: #ff3b30 !important;
  color: #fff !important;
  box-shadow: none !important;
}

.brand-features,
.map-marker,
.wechat-card,
.access-card,
html:not(.customer-session-restoring) body:has(#customerContent[hidden]) .expired-dialog {
  border-color: rgba(0, 0, 0, 0.06) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* Final customer nav polish: match admin category capsules and remove requested motion/labels. */
.category-strip {
  --customer-category-pill-x: 5px;
  --customer-category-pill-w: 76px;
  min-height: 42px !important;
  max-height: none !important;
  align-items: center !important;
  gap: 0 !important;
  padding: 5px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #e8e8ed !important;
  background-color: #e8e8ed !important;
  background-image: none !important;
  box-shadow: none !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  position: relative !important;
  isolation: isolate !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.category-strip button {
  min-width: 76px !important;
  min-height: 32px !important;
  padding: 0 12px !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: #424245 !important;
  line-height: 32px !important;
  position: relative !important;
  z-index: 1 !important;
  transition: color 180ms ease, transform 180ms ease !important;
}

.category-strip button:hover,
.category-strip button:focus-visible,
.category-strip button:active {
  border-color: transparent !important;
  background: transparent !important;
  background-color: transparent !important;
  color: #fff !important;
  transform: none !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.category-strip button.active,
.category-strip button.active:hover,
.category-strip button.active:focus-visible,
.category-strip button.active:active {
  border-color: transparent !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  color: #fff !important;
  transform: none !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.category-strip.is-pill-previewing button.active:not(:hover):not(:focus-visible) {
  color: #424245 !important;
}

#gallery .gallery-module > h2 {
  display: none !important;
}

.logo-contact-btn,
.wechat-pill-btn,
.new-filter-btn,
.new-filter-btn.has-new-products {
  animation: none !important;
  transform: none !important;
}

.wechat-pill-btn:hover,
.wechat-pill-btn:focus-visible,
.new-filter-btn:hover,
.new-filter-btn:focus-visible,
.new-filter-btn.has-new-products:hover,
.new-filter-btn.has-new-products:focus-visible {
  transform: none !important;
}

/* Final mobile customer catalog controls. Keep this as the last mobile toolbar rule. */
@media (max-width: 780px) {
  #customerContent > .toolbar {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    align-items: stretch !important;
    position: relative !important;
  }

  #customerContent > .toolbar .search-box,
  #customerContent > .toolbar .mobile-toolbar-wechat,
  #customerContent > .toolbar .ghost-btn,
  #customerContent > .toolbar #categoryFilter {
    display: none !important;
  }

  #customerContent > .toolbar > .category-strip {
    grid-column: 1 / -1 !important;
    display: none !important;
  }

  #customerContent > .toolbar .mobile-category-btn {
    grid-column: 1 / -1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    height: 42px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 15px !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: var(--flat-radius-md, 8px) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    background-image: none !important;
    color: #1d1d1f !important;
    font-size: 14px !important;
    font-weight: 950 !important;
    box-shadow: none !important;
    cursor: pointer !important;
  }

  #customerContent > .toolbar .mobile-category-btn::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 160ms ease;
  }

  #customerContent > .toolbar .mobile-category-btn[aria-expanded="true"]::after {
    transform: translateY(2px) rotate(225deg);
  }

  #customerContent > .toolbar .new-filter-btn {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    border-radius: var(--flat-radius-md, 8px) !important;
    letter-spacing: 0 !important;
  }

  #customerContent > .toolbar .new-filter-btn[hidden] {
    display: none !important;
  }
}

/* Final correction: compact desktop category capsule, restore desktop title, remove title-row capsule. */
@media (min-width: 781px) {
  .category-strip {
    width: fit-content !important;
    max-width: 100% !important;
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    justify-self: start !important;
    gap: 0 !important;
    padding: 5px !important;
    background: #e8e8ed !important;
    background-color: #e8e8ed !important;
  }

  .category-strip::before {
    content: "" !important;
    position: absolute !important;
    z-index: 0 !important;
    left: 0 !important;
    top: 5px !important;
    width: var(--customer-category-pill-w, 76px) !important;
    height: 32px !important;
    border-radius: 999px !important;
    background: #ff6f00 !important;
    box-shadow:
      0 8px 18px rgba(255, 111, 0, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.32) !important;
    transform: translate3d(var(--customer-category-pill-x, 5px), 0, 0) !important;
    transition:
      transform 560ms cubic-bezier(0.16, 1, 0.3, 1),
      width 560ms cubic-bezier(0.16, 1, 0.3, 1),
      box-shadow 260ms ease !important;
    will-change: transform, width !important;
    pointer-events: none !important;
  }

  .category-strip.is-pill-stretching::before {
    box-shadow:
      0 10px 24px rgba(255, 111, 0, 0.3),
      0 0 0 1px rgba(255, 154, 80, 0.18) inset,
      inset 0 1px 0 rgba(255, 255, 255, 0.42) !important;
    filter: saturate(1.08) brightness(1.04) !important;
  }

  #gallery .gallery-module > h2 {
    display: block !important;
  }
}

#gallery .gallery-module {
  border-color: transparent !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

@media (max-width: 780px) {
  #customerContent > .toolbar > .category-strip {
    display: none !important;
  }

  #customerContent > .toolbar > .category-strip::before {
    content: none !important;
    display: none !important;
  }

  #gallery .gallery-module > h2,
  #gallery .gallery-module > span {
    display: none !important;
  }
}

/* Final desktop catalog row: category left, search right, no extra controls. */
@media (min-width: 781px) {
  #customerContent {
    --customer-desktop-section-gap: 12px;
    display: grid !important;
    grid-template-columns: max-content minmax(260px, 1fr) !important;
    column-gap: 10px !important;
    row-gap: var(--customer-desktop-section-gap) !important;
    align-items: center !important;
  }

  #customerContent > .hero-image-banner,
  #customerContent > .hero,
  #customerContent > .store-info,
  #customerContent > #gallery,
  #customerContent > #galleryGrid,
  #customerContent > #emptyState {
    grid-column: 1 / -1 !important;
  }

  #customerContent > .toolbar {
    display: contents !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
  }

  #customerContent > .toolbar .search-box {
    grid-column: 2 !important;
    grid-row: 3 !important;
    justify-self: end !important;
    width: min(520px, 100%) !important;
    margin: 0 !important;
  }

  #customerContent > .toolbar .mobile-toolbar-wechat,
  #customerContent > .toolbar #categoryFilter,
  #customerContent > .toolbar #clearSearchBtn,
  #customerContent > .toolbar #newOnlyBtn {
    display: none !important;
  }

  #customerContent > .category-strip {
    grid-column: 1 !important;
    grid-row: 3 !important;
    margin: 0 !important;
  }

  #customerContent > .hero-image-banner,
  #customerContent > .store-info,
  #customerContent > #gallery {
    margin-top: 0 !important;
  }

  #customerContent > #gallery {
    margin-bottom: 10px !important;
  }

  #gallery.section-head,
  #gallery .gallery-module {
    border-color: transparent !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  #customerContent > .store-info {
    border-color: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  #customerContent > .store-info .store-address {
    box-sizing: border-box !important;
    padding: 0 0 0 10px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  #customerContent > .store-info .store-address > .wechat-pill-btn {
    display: none !important;
  }

  #customerContent > .store-info .map-marker {
    display: grid !important;
    width: 18px !important;
    height: 18px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
  }

  #customerContent > .store-info .store-address {
    grid-template-columns: 18px minmax(0, auto) !important;
    column-gap: 6px !important;
  }

  #customerContent .quote-list-row-btn {
    border-color: #ff6f00 !important;
    background: #ff6f00 !important;
    background-image: none !important;
    color: #fff !important;
    box-shadow: none !important;
  }

  #customerContent .quote-list-row-btn.has-quote-notice {
    border-color: rgba(255, 255, 255, 0.96) !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.72)),
      rgba(255, 255, 255, 0.9) !important;
    color: #ff6f00 !important;
    box-shadow:
      0 0 0 4px rgba(255, 111, 0, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.96) !important;
  }

  #customerContent .cart-count-badge {
    display: none !important;
  }

  #customerContent .quote-list-row-btn::after {
    content: none !important;
    display: none !important;
  }
}

/* Final mobile customer controls: plain address, dropdown category, desktop quote action. */
@media (max-width: 780px) {
  #customerContent > .store-info,
  #customerContent > .store-info .store-address,
  #customerContent > .store-info .address-copy-btn {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  #customerContent > .store-info {
    margin-top: 8px !important;
    padding: 0 !important;
    display: block !important;
    color: #6e6e73 !important;
  }

  #customerContent > .store-info .store-address {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
  }

  #customerContent > .store-info .map-marker,
  #customerContent > .store-info .store-address > .wechat-pill-btn {
    display: none !important;
  }

  #customerContent > .store-info .address-copy-btn {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    color: inherit !important;
    font: inherit !important;
    line-height: 1.42 !important;
    text-align: left !important;
  }

  #customerContent > .toolbar #categoryFilter {
    display: none !important;
  }

  #customerContent > .toolbar > .category-strip {
    display: none !important;
  }

  #customerContent > .toolbar > .category-strip.is-mobile-open {
    position: absolute !important;
    z-index: 25 !important;
    top: 54px !important;
    left: 0 !important;
    right: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    width: 100% !important;
    max-height: min(58dvh, 420px) !important;
    margin: 0 !important;
    padding: 6px !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: var(--flat-radius-md, 8px) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    background-image: none !important;
    box-shadow: 0 14px 32px rgba(29, 29, 31, 0.12) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    backdrop-filter: blur(12px) saturate(1.08) !important;
    -webkit-backdrop-filter: blur(12px) saturate(1.08) !important;
  }

  #customerContent > .toolbar > .category-strip.is-mobile-open button {
    width: 100% !important;
    min-height: 42px !important;
    justify-content: flex-start !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: var(--flat-radius-sm, 6px) !important;
    background: transparent !important;
    color: #1d1d1f !important;
    font-size: 14px !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;
    text-align: left !important;
    white-space: normal !important;
  }

  #customerContent > .toolbar > .category-strip.is-mobile-open button.active {
    background: #ff6f00 !important;
    color: #fff !important;
  }
}

#customerContent .quote-list-row-btn {
  border-color: #ff6f00 !important;
  background: #ff6f00 !important;
  background-image: none !important;
  color: #fff !important;
  box-shadow: none !important;
}

#customerContent .quote-list-row-btn.has-quote-notice {
  border-color: rgba(255, 255, 255, 0.96) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.72)),
    rgba(255, 255, 255, 0.9) !important;
  color: #ff6f00 !important;
  box-shadow:
    0 0 0 4px rgba(255, 111, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.96) !important;
}

#customerContent .cart-count-badge {
  display: none !important;
}

#customerContent .quote-list-row-btn::after {
  content: none !important;
  display: none !important;
}

/* Final mobile card scale and quote action color. */
@media (max-width: 780px) {
  #galleryGrid.gallery-grid {
    gap: 14px !important;
  }

  #galleryGrid.gallery-grid > .product-card,
  #galleryGrid.gallery-grid > .product-card:not(.product-group-card) {
    --info-height: 66px !important;
    aspect-ratio: 1 / 1.16 !important;
    grid-template-rows: minmax(0, 1fr) var(--info-height) !important;
  }

  #galleryGrid.gallery-grid > .product-card.product-group-card {
    --info-height: 66px !important;
    aspect-ratio: 1 / 1.16 !important;
    grid-template-rows: minmax(0, 1fr) var(--info-height) !important;
  }

  #galleryGrid.gallery-grid > .product-card:not(.product-group-card) > .product-copy,
  #galleryGrid.gallery-grid > .product-card:not(.product-group-card) > .product-copy.no-name {
    min-height: var(--info-height) !important;
    padding: 7px 9px 6px !important;
    gap: 2px !important;
  }

  #detailDialog .cart-add-btn,
  #detailDialog .cart-add-btn:not(:disabled) {
    border-color: #ff6f00 !important;
    background: #ff6f00 !important;
    background-image: none !important;
    color: #fff !important;
    box-shadow: none !important;
  }
}

/* Final detail action colors. */
#detailDialog .cart-add-btn,
#detailDialog .cart-add-btn:not(:disabled) {
  border-color: #ff6f00 !important;
  background: #ff6f00 !important;
  background-image: none !important;
  color: #fff !important;
  box-shadow: none !important;
}

@media (max-width: 780px) {
  #detailDialog > .detail-series-nav {
    border: 1px solid #ff6f00 !important;
    border-radius: var(--flat-radius-md, 8px) !important;
    background: rgba(255, 255, 255, 0.88) !important;
    background-image: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  #detailDialog > .detail-series-nav .detail-series-arrow {
    border: 0 !important;
    background: transparent !important;
    background-image: none !important;
    color: #ff6f00 !important;
    box-shadow: none !important;
    font-weight: 1000 !important;
  }

  #detailDialog > .detail-series-nav .detail-series-prev,
  #detailDialog > .detail-series-nav .detail-series-next {
    border-color: #ff6f00 !important;
  }

  #detailDialog > .detail-series-nav .detail-series-next {
    border-left: 1px solid #ff6f00 !important;
  }

  #detailDialog > .detail-series-nav .detail-series-arrow:active {
    background: rgba(255, 111, 0, 0.08) !important;
    color: #ff6f00 !important;
    transform: none !important;
  }
}

/* Final mobile collection fix: equal catalog cards and remove the square dialog underlay. */
@media (max-width: 780px) {
  #galleryGrid.gallery-grid > .product-card,
  #galleryGrid.gallery-grid > .product-card.product-group-card,
  #galleryGrid.gallery-grid > .product-card:not(.product-group-card) {
    --info-height: 66px !important;
    aspect-ratio: 1 / 1.16 !important;
    grid-template-rows: minmax(0, 1fr) var(--info-height) !important;
  }

  #galleryGrid.gallery-grid > .product-card:not(.product-group-card) > img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  #galleryGrid.gallery-grid > .product-card.product-group-card .group-stack-img,
  .group-dialog .group-gallery-grid .product-card > img {
    object-position: center center !important;
  }

  #galleryGrid.gallery-grid > .product-card.product-group-card > .group-copy {
    min-height: var(--info-height) !important;
  }

  .group-dialog[open] {
    width: min(calc(100vw - 24px), 680px) !important;
    max-width: calc(100vw - 24px) !important;
    height: auto !important;
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 28px) !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .group-dialog .group-box {
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 28px) !important;
    padding: 18px 8px 8px !important;
    border-radius: var(--flat-radius-md, 8px) !important;
    background: #fff !important;
    background-image: none !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  .group-dialog .group-gallery-grid {
    padding: 6px 0 0 !important;
    margin: 0 !important;
  }
}

/* Final mobile sheet and detail paging refinement. */
@media (max-width: 780px) {
  .group-dialog[open] {
    align-items: start !important;
    margin: max(env(safe-area-inset-top), 12px) auto auto !important;
  }

  #detailDialog > .detail-series-nav {
    border: 1px solid rgba(255, 255, 255, 0.56) !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
  }

  #detailDialog > .detail-series-nav .detail-series-arrow {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: #ff6f00 !important;
    box-shadow: none !important;
  }

  #detailDialog > .detail-series-nav .detail-series-prev,
  #detailDialog > .detail-series-nav .detail-series-next {
    border-color: rgba(255, 255, 255, 0.56) !important;
  }

  #detailDialog > .detail-series-nav .detail-series-next {
    border-left: 1px solid rgba(255, 255, 255, 0.56) !important;
  }

  #detailDialog > .detail-series-nav .detail-series-arrow:active {
    background: #ff6f00 !important;
    background-color: #ff6f00 !important;
    background-image: none !important;
    color: #fff !important;
    box-shadow: none !important;
  }
}

/* Final mobile filter cleanup: no wrapper capsule and no New border. */
@media (max-width: 780px) {
  #customerContent > .toolbar {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  #customerContent > .toolbar .new-filter-btn,
  #customerContent > .toolbar .new-filter-btn.has-new-products,
  #customerContent > .toolbar .new-filter-btn:hover,
  #customerContent > .toolbar .new-filter-btn:focus-visible {
    border: 0 !important;
    box-shadow: none !important;
  }
}

/* Final mobile card selection reset: no visual prompt, keep card corners clipped. */
@media (max-width: 780px) {
  #galleryGrid.gallery-grid > .product-card,
  .group-dialog .group-gallery-grid .product-card {
    overflow: hidden !important;
  }

  #galleryGrid.gallery-grid > .product-card::before,
  .group-dialog .group-gallery-grid .product-card::before {
    content: none !important;
    display: none !important;
  }

  #galleryGrid.gallery-grid > .product-card::after,
  .group-dialog .group-gallery-grid .product-card::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 0 var(--info-height) 0 !important;
    z-index: 4 !important;
    height: auto !important;
    border-radius: var(--flat-radius-md, 8px) var(--flat-radius-md, 8px) 0 0 !important;
    background: rgba(255, 255, 255, 0.001) !important;
    pointer-events: none !important;
    transition: none !important;
  }

  #galleryGrid.gallery-grid > .product-card:focus,
  #galleryGrid.gallery-grid > .product-card:focus-visible,
  #galleryGrid.gallery-grid > .product-card.is-quote-return-target,
  .group-dialog .group-gallery-grid .product-card:focus,
  .group-dialog .group-gallery-grid .product-card:focus-visible,
  .group-dialog .group-gallery-grid .product-card.is-quote-return-target {
    border-color: rgba(0, 0, 0, 0.06) !important;
    outline: 0 !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
  }

  #galleryGrid.gallery-grid > .product-card:focus::after,
  #galleryGrid.gallery-grid > .product-card:focus-visible::after,
  #galleryGrid.gallery-grid > .product-card.is-quote-return-target::after,
  .group-dialog .group-gallery-grid .product-card:focus::after,
  .group-dialog .group-gallery-grid .product-card:focus-visible::after,
  .group-dialog .group-gallery-grid .product-card.is-quote-return-target::after {
    height: auto !important;
  }

  .group-dialog .group-gallery-grid .product-card.is-quote-return-target .pill,
  .group-dialog .group-gallery-grid .product-card.is-quote-return-target .material-line,
  .group-dialog .group-gallery-grid .product-card.is-quote-return-target .product-copy strong,
  .group-dialog .group-gallery-grid .product-card:focus .pill,
  .group-dialog .group-gallery-grid .product-card:focus .material-line,
  .group-dialog .group-gallery-grid .product-card:focus .product-copy strong,
  .group-dialog .group-gallery-grid .product-card:focus-visible .pill,
  .group-dialog .group-gallery-grid .product-card:focus-visible .material-line,
  .group-dialog .group-gallery-grid .product-card:focus-visible .product-copy strong {
    color: inherit !important;
  }
}
