@font-face {
  font-family: "GoogleSansFlex";
  src: url("../fonts/GoogleSansFlex-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 75% 100%;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 700;
}

:root {
  --font-ui: "GoogleSansFlex", "Microsoft YaHei UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Segoe UI", Arial, sans-serif;
  --background: #ffffff;
  --foreground: #111111;
  --card: #ffffff;
  --accent: #ffffff;
  --border: #dedede;
  --text-muted: #707070;
  --shadow: 0 24px 68px rgba(0, 0, 0, 0.10);
  --radius: 24px;
  --font-page-title: 44px;
  --font-section-title: 32px;
  --font-panel-title: 20px;
  --font-card-title: 16px;
  --font-body: 16px;
  --font-body-long: 17px;
  --font-control: 14px;
  --font-meta: 12px;
  --font-price: 24px;
  --site-header-offset: 80px;
  /* Shared width for ordinary storefront/content pages. Specialized
     customizers keep their own viewport and canvas sizing. */
  --site-content-max: 1440px;
  --site-content-gutter: clamp(20px, 2.78vw, 40px);
  --site-content-width: min(calc(var(--site-content-max) - (var(--site-content-gutter) * 2)), calc(100% - (var(--site-content-gutter) * 2)));
}

body.dark-theme {
  --background: #0b0b0b;
  --foreground: #f6f6f6;
  --card: #151515;
  --accent: #1f1f1f;
  --border: #2d2d2d;
  --text-muted: #9a9a9a;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* 锁定移动端/微信 WebView 的自动字体缩放，避免不同机型文字忽大忽小 */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--foreground);
  background: var(--background);
  font-family: var(--font-ui);
  letter-spacing: 0;
  transition: background-color 0.25s ease, color 0.2s ease;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 0.7rem 1rem;
  color: var(--background);
  background: var(--foreground);
  transform: translateY(calc(-100% - 20px));
  transition: transform 0.16s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background: var(--background);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.42;
  background-image:
    linear-gradient(color-mix(in srgb, var(--foreground), transparent 96%) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--foreground), transparent 96%) 1px, transparent 1px);
  background-size: 56px 56px;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.ui-icon,
.nav-chevron,
.nav-inline-icon,
.nav-account-icon,
.mobile-nav-icon,
.mobile-chevron,
.tab-icon,
.customizer-nav-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

button,
input,
textarea,
select {
  font: inherit;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.map-static-template .header,
body[data-draft-save-url] .header {
  z-index: 1000;
}

.header-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  width: min(1660px, 100%);
  height: 76px;
  margin: 0 auto;
  padding: 0 clamp(28px, 3vw, 52px);
  gap: 1.5rem;
}

.logo,
.footer-brand {
  font-weight: 300;
  letter-spacing: 0.3em;
}

.logo {
  display: grid;
  justify-items: center;
  color: var(--foreground);
  font-size: clamp(1.45rem, 1.8vw, 2rem);
  line-height: 1;
}

.logo small {
  margin-top: 0.28rem;
  color: var(--text-muted);
  font-size: 0.5rem;
  font-weight: 400;
  letter-spacing: 0;
}

.footer-brand {
  font-size: clamp(1.05rem, 2vw, 1.45rem);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.6rem, 3.2vw, 3.4rem);
  color: var(--foreground);
  font-size: clamp(0.82rem, 0.74vw, 0.95rem);
  font-weight: 400;
  white-space: nowrap;
}

.nav-right {
  justify-content: flex-end;
  gap: clamp(1.15rem, 2.2vw, 2.6rem);
}

.nav a,
.nav-parent-link,
.mobile-link {
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav a:hover,
.nav-parent-link:hover,
.mobile-link:hover {
  color: var(--text-muted);
}

.nav-parent-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-parent-link::after {
  width: 0.5rem;
  height: 0.5rem;
  margin-top: -0.22rem;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  content: "";
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.nav-parent-link[aria-expanded="true"]::after {
  margin-top: 0.2rem;
  transform: rotate(225deg);
}

.nav-inline-icon {
  display: inline-grid;
  width: 14px;
  height: 14px;
  margin-left: 0.2rem;
  place-items: center;
  border: 1.4px solid currentColor;
  border-radius: 999px;
  font-size: 0.58rem;
  line-height: 1;
  vertical-align: 1px;
}

.nav-account-icon {
  display: inline-block;
  position: relative;
  width: 14px;
  height: 14px;
  margin-left: 0.2rem;
  vertical-align: -1px;
}

.nav-account-icon::before,
.nav-account-icon::after {
  position: absolute;
  left: 50%;
  content: "";
  transform: translateX(-50%);
}

.nav-account-icon::before {
  top: 1px;
  width: 5px;
  height: 5px;
  border: 1.4px solid currentColor;
  border-radius: 999px;
}

.nav-account-icon::after {
  bottom: 0;
  width: 11px;
  height: 6px;
  border: 1.4px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.nav-language,
.header-language {
  display: inline-grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  color: var(--foreground);
  font-weight: 400;
  line-height: 1;
}

.nav-cart {
  position: relative;
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
}

.nav-cart svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.nav-cart span {
  position: absolute;
  top: -7px;
  right: -8px;
  color: var(--foreground);
  font-size: 0.78rem;
  line-height: 1;
}

.actions {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
}

.icon-button,
.hamburger-btn,
.theme-toggle-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--foreground);
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.icon-button:hover,
.hamburger-btn:hover,
.theme-toggle-btn:hover {
  opacity: 0.62;
}

.icon-button svg,
.hamburger-btn svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.hamburger-btn {
  display: none;
  justify-self: start;
}

.cart-dot {
  position: relative;
}

.cart-dot span {
  position: absolute;
  top: -8px;
  right: -11px;
  color: var(--foreground);
  background: transparent;
  font-size: 0.9rem;
  line-height: 1;
}

.cart-dot span::before {
  content: "";
}

.desktop-subnav {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 1001;
  width: 100%;
  min-height: 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.12);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}

.desktop-subnav.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

.desktop-subnav-inner {
  display: grid;
  width: min(1660px, 100%);
  grid-template-columns: minmax(190px, 245px) minmax(0, 1fr);
  gap: clamp(1.8rem, 3vw, 3rem);
  align-items: start;
  margin: 0 auto;
  padding: 1.65rem clamp(28px, 3vw, 52px) 1.55rem;
}

.desktop-subnav-intro {
  padding-right: clamp(1.3rem, 2vw, 2rem);
  border-right: 1px solid var(--border);
}

.desktop-subnav-intro p,
.desktop-subnav-products p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.desktop-subnav-intro h2 {
  max-width: 220px;
  margin: 1.2rem 0 1.1rem;
  color: var(--foreground);
  font-size: clamp(1.25rem, 1.4vw, 1.55rem);
  font-weight: 300;
  line-height: 1.35;
}

.desktop-subnav-intro span {
  display: block;
  max-width: 220px;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.desktop-subnav-products {
  display: grid;
  align-content: start;
  min-width: 0;
}

.desktop-subnav-products > p {
  margin-bottom: 1.35rem;
  color: var(--foreground);
  font-size: 1.05rem;
}

.desktop-subnav-grid {
  display: grid;
  grid-template-columns: repeat(7, 104px);
  gap: clamp(1rem, 2vw, 2.4rem);
  justify-content: space-between;
  max-width: 1160px;
}

.nav-product-tile {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  width: 104px;
  min-width: 104px;
  color: var(--text-muted);
  text-align: center;
}

.nav-product-tile span,
.nav-product-tile img,
.mobile-product-tile span,
.mobile-product-tile img {
  display: block;
  width: 96px;
  aspect-ratio: 1;
  object-fit: contain;
  background-color: #e8e8e8;
}

.nav-product-tile span,
.mobile-product-tile span {
  background:
    linear-gradient(45deg, transparent calc(50% - 1.1px), #c8c8c8 calc(50% - 1.1px) calc(50% + 1.1px), transparent calc(50% + 1.1px)),
    linear-gradient(-45deg, transparent calc(50% - 1.1px), #c8c8c8 calc(50% - 1.1px) calc(50% + 1.1px), transparent calc(50% + 1.1px)),
    #e8e8e8;
}

.nav-product-tile strong,
.mobile-product-tile strong {
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.25;
}

.mobile-product-tile {
  min-width: 0;
}

.mobile-product-tile span,
.mobile-product-tile img {
  width: min(100%, 76px);
}

.mobile-scrim {
  position: fixed;
  inset: 0;
  z-index: 1002;
  display: none;
  background: rgba(255, 255, 255, 0.01);
}

.mobile-scrim.open {
  display: block;
}

.mobile-menu {
  position: fixed;
  top: 58px;
  bottom: 0;
  left: 0;
  z-index: 1003;
  display: grid;
  width: min(84vw, 390px);
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  background: var(--card);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  visibility: hidden;
  transform: translateX(-100%);
  transition: transform 0.24s ease, visibility 0s linear 0.24s;
}

.mobile-menu.open {
  visibility: visible;
  transform: translateX(0);
  transition-delay: 0s;
}

.mobile-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.mobile-close::before,
.mobile-close::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 1.5px;
  background: var(--text-muted);
  content: "";
}

.mobile-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-menu-top {
  display: flex;
  min-height: 54px;
  align-items: center;
  padding: 0 64px 0 28px;
  border-bottom: 1px solid var(--border);
}

.mobile-menu-language {
  display: inline-grid;
  min-width: 32px;
  height: 32px;
  place-items: center;
  color: var(--foreground);
  font-size: 0.95rem;
  font-weight: 400;
}

.mobile-menu-nav {
  display: grid;
  align-content: start;
  overflow: auto;
  padding: 1rem 28px 1.6rem;
}

.mobile-link {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 0.4rem 0;
  color: var(--foreground);
  background: transparent;
  border: 0;
  text-align: left;
}

.mobile-link-large {
  gap: 0.8rem;
  font-size: clamp(1.05rem, 3.5vw, 1.28rem);
  font-weight: 400;
  line-height: 1.1;
}

.mobile-divider {
  width: 100%;
  height: 1px;
  margin: 0.75rem 0 1rem;
  background: var(--border);
}

.mobile-link-group {
  display: grid;
  gap: 0.3rem;
  margin-top: 1.55rem;
}

.mobile-nav-icon {
  position: relative;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  color: var(--foreground);
}

.icon-home::before {
  position: absolute;
  inset: 8px 5px 4px;
  border: 2px solid currentColor;
  border-top: 0;
  content: "";
}

.icon-home::after {
  position: absolute;
  top: 3px;
  left: 6px;
  width: 19px;
  height: 19px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.icon-custom::before {
  position: absolute;
  inset: 4px;
  border: 2px solid currentColor;
  border-radius: 3px;
  content: "";
}

.icon-custom::after {
  position: absolute;
  inset: 9px;
  background:
    radial-gradient(circle at 0 0, currentColor 0 2px, transparent 2.5px),
    radial-gradient(circle at 100% 0, currentColor 0 2px, transparent 2.5px),
    radial-gradient(circle at 0 100%, currentColor 0 2px, transparent 2.5px),
    radial-gradient(circle at 100% 100%, currentColor 0 2px, transparent 2.5px);
  content: "";
}

.icon-art::before {
  position: absolute;
  inset: 6px 4px 5px;
  border: 2px solid currentColor;
  border-radius: 3px;
  content: "";
}

.icon-art::after {
  position: absolute;
  right: 4px;
  top: 3px;
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 999px;
  background: #f7f7f9;
  content: "";
}

.icon-gallery::before {
  position: absolute;
  inset: 5px;
  background:
    radial-gradient(circle at 50% 4px, currentColor 0 2px, transparent 2.5px),
    radial-gradient(circle at 50% calc(100% - 4px), currentColor 0 2px, transparent 2.5px),
    radial-gradient(circle at 4px 50%, currentColor 0 2px, transparent 2.5px),
    radial-gradient(circle at calc(100% - 4px) 50%, currentColor 0 2px, transparent 2.5px);
  border: 2px dotted currentColor;
  border-radius: 999px;
  content: "";
}

.icon-help::before {
  position: absolute;
  inset: 4px;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 999px;
  content: "?";
  font-size: 1rem;
  line-height: 1;
}

.icon-orders::before {
  position: absolute;
  inset: 4px 6px;
  border: 2px solid currentColor;
  border-radius: 4px;
  content: "";
}

.icon-orders::after {
  position: absolute;
  top: 10px;
  left: 12px;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
}

.icon-account::before {
  position: absolute;
  top: 5px;
  left: 50%;
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 999px;
  content: "";
  transform: translateX(-50%);
}

.icon-account::after {
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 18px;
  height: 10px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  content: "";
  transform: translateX(-50%);
}

.mobile-subnav-trigger {
  cursor: pointer;
}

.mobile-chevron {
  width: 11px;
  height: 11px;
  margin-left: 0.45rem;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

.mobile-subnav-trigger[aria-expanded="false"] .mobile-chevron {
  transform: rotate(-45deg);
}

/* Lucide icons replace the legacy CSS-drawn navigation glyphs. */
.nav-parent-link::after,
.nav-account-icon::before,
.nav-account-icon::after,
.mobile-close::before,
.mobile-close::after {
  content: none;
}

.nav-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.nav-parent-link[aria-expanded="true"] .nav-chevron {
  transform: rotate(180deg);
}

.nav-inline-icon,
.nav-account-icon {
  display: inline-block;
  position: static;
  width: 15px;
  height: 15px;
  margin-left: 0.2rem;
  border: 0;
  border-radius: 0;
  vertical-align: -2px;
}

.mobile-close .ui-icon {
  width: 28px;
  height: 28px;
  margin: auto;
  color: var(--text-muted);
}

.mobile-nav-icon {
  position: static;
}

.mobile-chevron {
  width: 16px;
  height: 16px;
  border: 0;
  transform: none;
}

.mobile-subnav-trigger[aria-expanded="false"] .mobile-chevron {
  transform: rotate(-90deg);
}

.customizer-nav-icon {
  width: 16px;
  height: 16px;
}

.customizer-nav-icon--cart {
  width: 20px;
  height: 20px;
}

.close-drawer .ui-icon {
  width: 20px;
  height: 20px;
  margin: auto;
}

.mobile-product-subnav {
  display: none;
  padding: 0.9rem 0 1.5rem;
}

.mobile-product-subnav.open {
  display: block;
}

.mobile-product-subnav p {
  margin: 0 0 0.9rem;
  color: var(--foreground);
  font-size: clamp(0.95rem, 3vw, 1.15rem);
  text-align: center;
}

.mobile-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1rem;
}

.mobile-product-tile {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  color: var(--foreground);
  text-align: center;
}

.mobile-product-tile strong {
  font-size: clamp(0.72rem, 2.5vw, 0.86rem);
  font-weight: 400;
}

.mobile-auth {
  display: grid;
  place-items: center;
  min-height: 64px;
  color: var(--foreground);
  background: var(--card);
  border-top: 1px solid var(--border);
  font-size: clamp(1rem, 3vw, 1.18rem);
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 72px);
  place-items: center;
  overflow: hidden;
  padding: clamp(5rem, 10vw, 8rem) 1.25rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--background);
}

.hero-grid {
  position: absolute;
  inset: 0;
  color: var(--foreground);
  opacity: 0.72;
  background-image:
    linear-gradient(color-mix(in srgb, currentColor, transparent 94%) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, currentColor, transparent 94%) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  text-align: center;
}

.eyebrow {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 1.15rem 0;
  font-size: clamp(3rem, 8vw, 6.9rem);
  line-height: 1.02;
  font-weight: 200;
  letter-spacing: 0;
}

.hero h1 span {
  color: var(--text-muted);
}

.hero-copy {
  max-width: 690px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.14rem);
  font-weight: 300;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.2rem;
}

.button,
.btn,
.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.78rem 1.6rem;
  color: var(--foreground);
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--foreground), transparent 78%);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button.primary,
.btn.primary,
.btn-primary {
  color: var(--background);
  background: var(--foreground);
  border-color: var(--foreground);
}

.button.secondary,
.btn-outline {
  color: var(--foreground);
  background: transparent;
}

.button:hover,
.btn:hover,
.btn-primary:hover,
.btn-outline:hover {
  transform: translateY(-1px);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.section,
.page-hero,
.page-head,
.product-hero,
.cart-layout,
.checkout-layout,
.success-shell,
.case-grid,
.contact-grid {
  padding: 6rem 1rem;
}

.container {
  width: var(--site-content-width);
  margin: 0 auto;
}

.section-title {
  max-width: 780px;
  margin: 0 auto 2.1rem;
  text-align: center;
}

.section-title.align-left {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: none;
  text-align: left;
}

.section-title h2,
.edition-header h2 {
  margin: 0.6rem 0 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.06;
  font-weight: 200;
  letter-spacing: 0;
}

.page-hero,
.page-head,
.product-hero {
  padding-top: clamp(6rem, 10vw, 9rem);
  text-align: center;
}

.page-hero h1,
.page-head h1,
.product-hero h1 {
  margin: 0.75rem auto 0;
  max-width: 930px;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  font-weight: 200;
  letter-spacing: 0;
}

.page-hero p:last-child,
.page-head p,
.product-hero .hero-copy {
  max-width: 720px;
  margin: 1rem auto 0;
  color: var(--text-muted);
  line-height: 1.72;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: 2rem;
  overflow: hidden;
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--border), transparent 12%);
  border-radius: 8px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.category-card:hover,
.reference-card:hover,
.edition-tile:hover,
.detail-grid article:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--foreground), transparent 70%);
}

.round-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: auto;
  color: var(--background);
  background: var(--foreground);
  border-radius: 999px;
}

.arrow-icon {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  color: var(--text-muted);
  font-size: 0.76rem;
}

.category-card small,
.product-info small,
.edition-copy small,
.footer-title,
.panel-label {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.footer-title {
  margin: 0;
}

.category-card h3 {
  margin: 0.6rem 0;
  font-size: 1.8rem;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: 0;
}

.category-card p,
.product-info p,
.footer p,
.product-copy p,
.detail-grid p,
.summary-panel p,
.checkout-form p {
  color: var(--text-muted);
  line-height: 1.65;
}

.payment-method-grid {
  display: grid;
  gap: 12px;
}

.payment-method-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  background: color-mix(in srgb, var(--card), var(--background) 12%);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.payment-method-option:has(input:checked) {
  border-color: var(--foreground);
  background: var(--card);
}

.payment-method-option input {
  margin-top: 4px;
}

.payment-method-option span {
  display: grid;
  gap: 4px;
}

.payment-method-option small,
.payment-method-option em {
  color: var(--text-muted);
  font-size: 13px;
  font-style: normal;
}

.payment-qr-image {
  display: block;
  width: min(220px, 100%);
  aspect-ratio: 1;
  margin: 14px 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.feature-tags,
.product-meta,
.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.6rem;
}

.tag,
.product-meta span,
.product-badges span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0.25rem 0.65rem;
  color: var(--foreground);
  background: var(--accent);
  border: 1px solid color-mix(in srgb, var(--border), transparent 10%);
  border-radius: 999px;
  font-size: 0.76rem;
}

.editions {
  overflow: hidden;
}

.edition-marquee {
  color: var(--background);
  background: var(--foreground);
  border-block: 1px solid var(--border);
}

.edition-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.edition-track span {
  padding: 0.9rem 2rem;
  white-space: nowrap;
  text-transform: uppercase;
  font-size: 0.78rem;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.edition-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.edition-link {
  color: var(--text-muted);
  font-weight: 700;
}

.edition-mosaic {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 1rem;
}

.edition-side {
  display: grid;
  gap: 1rem;
}

.edition-tile {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.edition-tile.large {
  min-height: 620px;
}

.edition-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.map-room {
  background: linear-gradient(#f5f5f5, #cfcfcf 58%, #1e1e1e 58%);
}

.night-room {
  background: radial-gradient(circle at 50% 42%, #363636, #050505 70%);
}

.layout-room {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  background: #f4f4f4;
}

.wall-print {
  position: absolute;
  top: 18%;
  left: 50%;
  width: 34%;
  aspect-ratio: 0.72;
  background: #f7f7f7;
  border: 8px solid #111;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
  transform: translateX(-50%);
}

.map-print::before {
  position: absolute;
  inset: 12%;
  content: "";
  background:
    linear-gradient(0deg, transparent 48%, rgba(0, 0, 0, 0.16) 49%, transparent 50%),
    linear-gradient(90deg, transparent 48%, rgba(0, 0, 0, 0.16) 49%, transparent 50%),
    radial-gradient(circle at 50% 48%, transparent 0 26%, rgba(0, 0, 0, 0.32) 27% 28%, transparent 29%);
  background-size: 38px 38px, 38px 38px, 100% 100%;
}

.star-print {
  background: #050505;
  border-color: #343434;
}

.star-print::before {
  position: absolute;
  inset: 12%;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 26%, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 68% 34%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 46% 70%, #fff 0 2px, transparent 3px);
}

.mini-print {
  width: 24%;
  aspect-ratio: 0.7;
  background: #fff;
  border: 3px solid #111;
}

.sofa-line {
  position: absolute;
  right: 14%;
  bottom: 30%;
  left: 14%;
  height: 74px;
  background: #151515;
  border-radius: 28px;
}

.edition-copy {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 2;
}

.edition-copy h3 {
  max-width: 540px;
  margin: 0.35rem 0 0;
  font-size: clamp(1.6rem, 3.2vw, 3.8rem);
  line-height: 0.98;
  font-weight: 200;
  letter-spacing: 0;
}

.edition-tile:not(.light) .edition-copy {
  color: #fff;
}

.section.alt {
  background: color-mix(in srgb, var(--accent), transparent 45%);
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.reference-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.85fr) 1fr;
  min-height: 300px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--border), transparent 18%);
  border-radius: 8px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.product-media {
  display: grid;
  min-height: 300px;
  place-items: center;
  overflow: hidden;
  background: var(--accent);
}

.product-media.star,
.product-media-large.star {
  color: #f6f6f6;
  background: #050505;
}

.product-media img,
.product-media-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-placeholder {
  width: min(210px, 70%);
}

.product-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem;
}

.product-info h3 {
  margin: 0.6rem 0;
  font-size: 0.98rem;
  line-height: 1.25;
}

.product-info p {
  margin: 0;
  font-size: 0.9rem;
}

.price {
  font-weight: 700;
}

.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 1rem;
  margin-bottom: 0.5rem;
}

.filter-chip {
  min-height: 40px;
  padding: 0.55rem 0.95rem;
  color: var(--text-muted);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.filter-chip:hover {
  color: var(--foreground);
  border-color: color-mix(in srgb, var(--foreground), transparent 60%);
}

.filter-chip.active {
  color: var(--background);
  background: var(--foreground);
  border-color: var(--foreground);
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  gap: 2rem;
  width: var(--site-content-width);
  margin: 0 auto;
  padding-top: 0;
  align-items: start;
}

.product-media-panel,
.purchase-panel,
.cart-list,
.checkout-form,
.summary-panel,
.cart-item,
.empty-state,
.success-shell article,
.case-grid article,
.contact-grid article,
.detail-grid article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.product-media-panel {
  overflow: hidden;
}

.product-media-large {
  display: grid;
  min-height: 520px;
  place-items: center;
  overflow: hidden;
  background: var(--accent);
}

.product-media-large img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.product-gallery-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
  padding: 0.75rem;
  background: color-mix(in srgb, var(--card), var(--background) 12%);
  border-top: 1px solid var(--border);
}

.product-gallery-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--accent);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.poster-placeholder.large {
  position: relative;
  display: grid;
  width: min(360px, 70%);
  aspect-ratio: 0.72;
  place-items: center;
  color: var(--foreground);
  background: color-mix(in srgb, var(--card), transparent 4%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
}

.poster-frame {
  position: absolute;
  inset: 8%;
  border: 1px solid currentColor;
}

.poster-core {
  display: grid;
  gap: 0.8rem;
  width: 72%;
  text-align: center;
}

.poster-core span {
  color: var(--text-muted);
  font-size: 0.76rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.poster-core strong {
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.product-copy {
  display: grid;
  gap: 1rem;
  padding: 1.75rem;
  border-top: 1px solid var(--border);
}

.purchase-panel {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 1.5rem;
  align-self: start;
  padding: 1.75rem;
}

.panel-block {
  display: grid;
  gap: 0.75rem;
}

.choice-grid,
.size-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.size-grid {
  display: grid;
  gap: 0.9rem;
}

.size-group {
  display: grid;
  gap: 0.6rem;
}

.size-group strong {
  font-size: 0.9rem;
}

.choice-pill,
.frame-choice,
.color-choice {
  display: block;
}

.choice-pill input,
.frame-choice input,
.color-choice input {
  position: absolute;
  opacity: 0;
}

.choice-pill span,
.frame-choice > span,
.color-choice > span {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  color: var(--foreground);
  background: color-mix(in srgb, var(--card), var(--background) 12%);
  border: 1px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.choice-pill:hover span,
.frame-choice:hover > span,
.color-choice:hover > span {
  border-color: color-mix(in srgb, var(--foreground), transparent 55%);
  transform: translateY(-1px);
}

.choice-pill input:checked + span,
.frame-choice input:checked + span,
.color-choice input:checked + span {
  color: var(--background);
  background: var(--foreground);
  border-color: var(--foreground);
}

.frame-grid {
  display: grid;
  gap: 0.55rem;
}

.frame-choice > span {
  justify-content: flex-start;
}

.frame-choice i {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 1px solid color-mix(in srgb, var(--foreground), transparent 75%);
  border-radius: 50%;
}

.frame-color-panel {
  display: grid;
  gap: 0.55rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
}

.frame-color-panel[hidden],
.frame-color-grid[hidden] {
  display: none;
}

.frame-color-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.color-choice > span {
  min-height: 42px;
  justify-content: flex-start;
  padding: 0.65rem 0.75rem;
}

.color-choice i {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border: 1px solid color-mix(in srgb, var(--foreground), transparent 72%);
  border-radius: 50%;
}

.frame-choice small {
  color: inherit;
  opacity: 0.7;
}

.price-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.price-strip > div {
  display: grid;
  gap: 0.15rem;
}

.price-strip span {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.price-strip strong {
  display: block;
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

.button.full,
.btn.full {
  width: 100%;
}

.form-note {
  min-height: 22px;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.detail-grid article {
  padding: 1.75rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.detail-grid h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
}

.cart-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
  width: var(--site-content-width);
  margin: 0 auto;
  padding-top: 0;
}

.cart-list {
  display: grid;
  gap: 0.75rem;
  padding: 0.75rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
}

.cart-item-main {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  min-width: 0;
}

.cart-item-image {
  width: 88px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.cart-item h3 {
  margin: 0;
  font-size: 1rem;
}

.cart-item p,
.summary-panel p {
  color: var(--text-muted);
}

.cart-design-note {
  margin-top: 0.35rem;
  font-size: 0.82rem;
}

.cart-price {
  display: grid;
  gap: 0.45rem;
  justify-items: end;
  text-align: right;
}

.text-button {
  min-height: 40px;
  padding: 0.45rem 0.85rem;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
}

.text-button:hover {
  color: var(--foreground);
  border-color: color-mix(in srgb, var(--foreground), transparent 60%);
}

.summary-panel,
.checkout-form,
.empty-state {
  padding: 1.75rem;
}

.summary-panel {
  position: sticky;
  top: 92px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
}

.checkout-item-list {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.checkout-item-mini {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
}

.checkout-item-mini img {
  width: 54px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.checkout-item-mini strong,
.checkout-item-mini span {
  display: block;
}

.checkout-item-mini span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.coupon-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.75rem;
  align-items: end;
}

.discount-breakdown {
  margin-top: 0.4rem;
  padding: 0.2rem 0.8rem;
  background: color-mix(in srgb, var(--card), var(--background) 12%);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.checkout-saved-choice {
  display: grid;
  gap: 0.35rem;
  margin: 0.25rem 0 1rem;
  color: var(--text-muted);
}

.member-address-list {
  display: grid;
  gap: 0.8rem;
  margin: 0 0 1rem;
}

.member-address {
  padding: 1rem;
  background: color-mix(in srgb, var(--card), var(--background) 12%);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.address-default-choice {
  display: flex !important;
  min-height: 34px;
  grid-template-columns: none !important;
  align-items: center;
  gap: 0.5rem !important;
  color: var(--foreground) !important;
  font-size: 0.9rem;
}

.address-default-choice input[type="radio"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  accent-color: var(--foreground);
}

.account-head {
  padding-bottom: 2rem;
}

.account-grid,
.account-shell {
  display: grid;
  gap: 1rem;
  width: var(--site-content-width);
  margin: 0 auto;
}

.account-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-auth-shell {
  width: min(520px, calc(100% - 2rem));
  margin: 0 auto 4rem;
}

.account-auth-card {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.account-auth-intro {
  display: grid;
  gap: 0.5rem;
}

.account-auth-intro h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.account-auth-intro p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.account-auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.35rem;
  background: var(--accent);
  border-radius: 14px;
}

.account-auth-tabs button {
  min-height: 42px;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-radius: 10px;
  font-weight: 700;
}

.account-auth-tabs button.active {
  color: var(--foreground);
  background: var(--card);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.account-auth-form {
  display: none;
  gap: 1rem;
}

.account-auth-form.active {
  display: grid;
}

.account-shell {
  grid-template-columns: 240px 1fr;
  align-items: start;
}

.account-nav,
.account-main,
.account-panel,
.account-summary article,
.favorite-row,
.order-row {
  background: var(--card);
  border: 1px solid var(--border);
}

.account-nav {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 0.25rem;
  padding: 0.7rem;
  border-radius: 18px;
}

.account-nav a {
  padding: 0.76rem 0.85rem;
  color: var(--text-muted);
  border-radius: 12px;
  font-size: 0.9rem;
}

.account-nav a:hover,
.account-nav a.active {
  color: var(--foreground);
  background: var(--accent);
}

.account-main {
  display: grid;
  gap: 1rem;
  padding: 0;
  background: transparent;
  border: 0;
}

.account-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.account-summary article {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border-radius: 16px;
}

.account-summary span {
  color: var(--text-muted);
  font-size: 0.76rem;
}

.account-summary strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-favorites,
.account-orders {
  display: grid;
  gap: 0.75rem;
}

.favorite-row,
.order-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-radius: 16px;
}

.favorite-row p,
.order-row p {
  margin: 0.2rem 0 0;
  color: var(--text-muted);
}

.favorite-row button {
  min-height: 38px;
  padding: 0.45rem 0.8rem;
  color: var(--foreground);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
}

.order-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.45rem 0.8rem;
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.account-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.account-detail-grid > div,
.order-detail-card {
  padding: 1rem;
  background: color-mix(in srgb, var(--card), var(--background) 12%);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.account-detail-grid span,
.order-detail-card p,
.order-item-list span {
  color: var(--text-muted);
}

.account-detail-grid strong,
.order-item-list strong {
  display: block;
  margin-top: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-detail-card {
  display: grid;
  gap: 1rem;
}

.order-detail-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.order-detail-card-head span {
  padding: 0.28rem 0.65rem;
  font-size: 0.76rem;
  color: var(--foreground);
  background: var(--accent);
  border-radius: 999px;
}

.order-item-list {
  display: grid;
  gap: 0.6rem;
}

.order-item-list > div {
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
}

.order-item-mini {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
}

.order-item-mini img {
  width: 58px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.favorite-form {
  margin-top: 1rem;
}

.map-customizer-page main {
  min-height: calc(100vh - 72px);
}

.map-customizer-page .footer {
  display: none;
}

.map-customizer-shell {
  --map-tab-width: 82px;
  --map-drawer-width: 390px;
  --map-frame-width: 1000;
  --map-frame-height: 1500;
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  background:
    linear-gradient(color-mix(in srgb, var(--foreground), transparent 97%) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--foreground), transparent 97%) 1px, transparent 1px),
    var(--background);
  background-size: 52px 52px, 52px 52px, auto;
}

.map-customizer-form {
  min-height: calc(100vh - 72px);
}

.map-customizer-main {
  display: grid;
  min-height: calc(100vh - 72px);
  margin-right: calc(var(--map-drawer-width) + var(--map-tab-width));
  place-items: center;
  padding: clamp(1.5rem, 4vw, 4rem);
  transition: margin-right 0.28s ease;
}

.map-customizer-main.drawer-collapsed {
  margin-right: var(--map-tab-width);
}

.map-artwork-stage {
  display: grid;
  width: min(
    calc(100vw - var(--map-drawer-width) - var(--map-tab-width) - 4rem),
    calc((100vh - 150px) * var(--map-frame-width) / var(--map-frame-height)),
    760px
  );
  aspect-ratio: calc(var(--map-frame-width) / var(--map-frame-height));
  place-items: center;
}

.map-artwork-scale {
  width: calc(var(--map-frame-width) * 1px);
  height: calc(var(--map-frame-height) * 1px);
  transform-origin: center;
}

.map-artwork-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: var(--foreground);
  background: #ffffff;
  border: 1px solid color-mix(in srgb, var(--foreground), transparent 82%);
  outline: 0 solid transparent;
  outline-offset: 0;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
  transition: outline-color 0.2s ease, outline-width 0.2s ease, background 0.2s ease;
}

.map-artwork-canvas,
.map-surface,
.map-poster-overlay {
  position: absolute;
  inset: 0;
}

.map-surface {
  z-index: 1;
  background:
    linear-gradient(90deg, transparent 49%, rgba(17, 17, 17, 0.12) 50%, transparent 51%),
    linear-gradient(transparent 49%, rgba(17, 17, 17, 0.12) 50%, transparent 51%),
    #ffffff;
  background-size: 92px 92px;
}

.map-poster-overlay {
  z-index: 2;
  pointer-events: none;
}

.map-white-frame,
.map-black-frame-outer,
.map-black-frame-inner {
  position: absolute;
  pointer-events: none;
}

.map-white-frame {
  inset: 0;
  border: 60px solid #fff;
  outline: 1px solid #777;
}

.map-black-frame-outer {
  inset: 60px;
  border: 4px solid #111;
}

.map-black-frame-inner {
  inset: 50px;
  border: 1px solid #111;
}

.map-text-layer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  min-height: 265px;
  place-items: end center;
  padding: 0 72px 56px;
  background: linear-gradient(to top, #fff 0%, rgba(255, 255, 255, 0.96) 56%, rgba(255, 255, 255, 0) 100%);
}

.map-text-wrapper {
  width: 100%;
  text-align: center;
}

.map-text-wrapper h1 {
  margin: 0;
  font-size: 60px;
  line-height: 0.9;
  text-transform: uppercase;
}

.map-country-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 20px 0 12px;
  font-size: 14px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.map-country-line span {
  width: 54px;
  height: 1px;
  background: currentColor;
}

.map-text-wrapper p {
  margin: 0;
  font-size: 12px;
}

.map-artwork-frame.layout-2 .map-white-frame,
.map-artwork-frame.layout-2 .map-black-frame-outer,
.map-artwork-frame.layout-2 .map-black-frame-inner {
  display: none;
}

.map-artwork-frame.layout-2 .map-text-layer {
  min-height: 220px;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
}

.map-tab-bar {
  position: fixed;
  top: 72px;
  right: 0;
  bottom: 0;
  z-index: 35;
  display: grid;
  width: var(--map-tab-width);
  align-content: start;
  background: var(--card);
  border-left: 1px solid var(--border);
}

.map-tab-item {
  display: grid;
  min-height: 82px;
  place-items: center;
  gap: 0.35rem;
  padding: 0.75rem 0.4rem;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.map-tab-item svg {
  width: 22px;
  height: 22px;
}

.map-tab-item span {
  font-size: 0.68rem;
}

.map-tab-item.active,
.map-tab-item:hover {
  color: var(--foreground);
  background: var(--accent);
}

.map-drawer {
  position: fixed;
  top: 72px;
  right: var(--map-tab-width);
  bottom: 0;
  z-index: 34;
  display: grid;
  width: var(--map-drawer-width);
  grid-template-rows: auto 1fr auto auto;
  background: color-mix(in srgb, var(--card), var(--background) 4%);
  border-left: 1px solid var(--border);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.12);
  transform: translateX(0);
  transition: transform 0.28s ease;
}

.map-drawer:not(.open) {
  transform: translateX(calc(100% + var(--map-tab-width)));
}

.map-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.map-drawer-head h1 {
  margin: 0.3rem 0 0;
  font-size: 1.25rem;
}

.map-drawer-close {
  width: 36px;
  height: 36px;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
}

.map-drawer-panel {
  display: none;
  min-height: 0;
  overflow: auto;
  padding: 1.15rem;
}

.map-drawer-panel.active {
  display: block;
}

.map-panel-intro h2 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
}

.map-panel-intro p,
.map-control-block label {
  color: var(--text-muted);
}

.map-control-block {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.map-control-label {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.map-chip-grid,
.map-size-grid,
.map-frame-list,
.map-frame-colors {
  display: grid;
  gap: 0.55rem;
}

.map-chip-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.map-chip-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.map-chip,
.map-size-card,
.map-frame-card,
.map-color-chip {
  min-height: 42px;
  padding: 0.7rem;
  color: var(--foreground);
  background: color-mix(in srgb, var(--card), var(--background) 12%);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
}

.map-chip.active,
.map-size-card.active,
.map-frame-card.active,
.map-color-chip.active {
  color: var(--background);
  background: var(--foreground);
  border-color: var(--foreground);
}

.map-chip i,
.map-frame-card i,
.map-color-chip i {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 0.45rem;
  border: 1px solid color-mix(in srgb, currentColor, transparent 74%);
  border-radius: 999px;
  vertical-align: -2px;
}

.map-size-card {
  display: grid;
  gap: 0.22rem;
}

.map-size-card span,
.map-size-card small,
.map-frame-card small {
  color: inherit;
  opacity: 0.68;
  font-size: 0.72rem;
}

.map-size-card strong {
  font-size: 0.92rem;
}

.map-frame-card {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.map-frame-card span {
  display: grid;
  gap: 0.14rem;
}

.map-frame-colors {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 0.25rem;
}

.map-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.map-search-results {
  display: grid;
  gap: 0.45rem;
}

.map-search-result {
  padding: 0.65rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.map-search-result small {
  color: var(--text-muted);
}

.map-purchase-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-top: 1px solid var(--border);
}

.map-purchase-bar span {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.map-purchase-bar strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.35rem;
}

.map-drawer > .form-note {
  padding: 0 1.15rem 1rem;
}

.full {
  width: 100%;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.form-grid label,
.checkout-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--text-muted);
}

input,
textarea,
select {
  min-height: 46px;
  padding: 0 0.92rem;
  color: var(--foreground);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
}

textarea {
  min-height: 112px;
  padding: 0.8rem 0.92rem;
  resize: vertical;
}

.wide {
  grid-column: 1 / -1;
}

.success-shell {
  width: var(--site-content-width);
  max-width: var(--site-content-max);
  margin: 0 auto;
}

.suborder-grid,
.case-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.success-shell article,
.case-grid article,
.contact-grid article {
  padding: 1.2rem;
}

.contact-grid {
  width: var(--site-content-width);
  margin: 0 auto;
  padding-top: 0;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  width: var(--site-content-width);
  margin: 0 auto;
  padding-top: 0;
}

.case-card {
  display: grid;
  grid-template-rows: 220px 1fr;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--foreground), transparent 70%);
}

.case-visual {
  display: grid;
  place-items: center;
  overflow: hidden;
}

.case-body {
  display: grid;
  gap: 0.6rem;
  align-content: start;
  padding: 1.5rem;
}

.case-body h3 {
  margin: 0.2rem 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.case-body p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.case-card-cta {
  grid-template-rows: 1fr;
  background: color-mix(in srgb, var(--accent), var(--card) 45%);
}

.case-cta-inner {
  display: grid;
  gap: 0.75rem;
  align-content: center;
  padding: 2rem 1.75rem;
}

.case-cta-inner h3 {
  margin: 0.2rem 0 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.case-cta-inner p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}

.case-cta-inner .hero-actions {
  margin-top: 0.5rem;
  justify-content: flex-start;
}

.footer {
  padding: 3rem clamp(18px, 5vw, 72px) 1.4rem;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  width: var(--site-content-width);
  margin: 0 auto;
}

.footer-column {
  display: grid;
  gap: 0.6rem;
  align-content: start;
  color: var(--text-muted);
}

.footer-column a:hover {
  color: var(--foreground);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: var(--site-content-width);
  margin: 2rem auto 0;
  padding-top: 1rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.article-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-card {
  display: grid;
  overflow: hidden;
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--border), transparent 12%);
  border-radius: 8px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.article-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--foreground), transparent 70%);
}

.article-card-media {
  display: grid;
  aspect-ratio: 16 / 10;
  place-items: center;
  overflow: hidden;
  color: var(--text-muted);
  background:
    linear-gradient(color-mix(in srgb, var(--foreground), transparent 94%) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--foreground), transparent 94%) 1px, transparent 1px),
    var(--accent);
  background-size: 34px 34px;
}

.article-card-media img,
.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card-media span {
  padding: 0.45rem 0.75rem;
  color: var(--foreground);
  background: color-mix(in srgb, var(--card), transparent 8%);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.76rem;
}

.article-card-body {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding: 1.25rem;
}

.article-meta,
.article-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.article-card h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.article-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.72;
}

.article-empty {
  grid-column: 1 / -1;
}

.article-detail {
  width: var(--site-content-width);
  margin: 0 auto;
  padding: 64px 0 48px;
}

.article-detail-hero {
  display: grid;
  max-width: 800px;
  gap: 1rem;
  text-align: left;
}

.article-detail-hero h1 {
  max-width: 800px;
  margin: 0;
  font-size: var(--font-page-title, 44px);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: 0;
}

.article-detail-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--text-muted);
  font-size: var(--font-body-long, 17px);
  line-height: 1.78;
}

.article-detail-meta {
  justify-content: flex-start;
}

.article-cover {
  width: min(1040px, 100%);
  aspect-ratio: 16 / 9;
  margin: 2.5rem auto 0;
  overflow: hidden;
  background: var(--accent);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.article-body {
  display: grid;
  gap: 1.1rem;
  max-width: 720px;
  margin: 48px auto 0;
  color: color-mix(in srgb, var(--foreground), var(--text-muted) 18%);
  font-size: var(--font-body-long, 17px);
  line-height: 1.82;
}

.article-body p {
  margin: 0;
}

.article-related {
  padding-top: 2rem;
}

@media (max-width: 760px) {
  .article-detail {
    width: min(100% - 40px, 1120px);
    padding: 40px 0 32px;
  }

  .article-cover {
    margin-top: 32px;
    border-radius: 4px;
  }

  .article-body {
    margin-top: 32px;
    font-size: var(--font-body-long, 16px);
    line-height: 1.78;
  }
}

.wall-simulator-page main {
  min-height: calc(100vh - 76px);
}

.wall-simulator-page {
  overflow: hidden;
}

.wall-simulator-page .footer {
  display: none;
}

.wall-simulator {
  --sim-panel: 380px;            /* 抽屉宽度：与地图定制页 --drawer-width 一致 */
  --sim-tab: 80px;               /* 右侧 tab 条宽度：与定制页 --tab-width 一致 */
  --sim-tab-bar-height: 64px;    /* 移动端底部 tab 条高度 */
  --sim-ink: #151816;
  --sim-muted: #65716d;
  --sim-line: rgba(21, 24, 22, 0.13);
  --sim-soft: #ffffff;
  --sim-panel-bg: #ffffff;
  --sim-accent: #0f6f68;
  --sim-warm: #b66b43;
  --sim-art: #2f3836;
  --sim-ref: #82917b;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  height: calc(100vh - 76px);
  min-height: calc(100vh - 76px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--sim-ink);
  background: #ffffff;
  background-size: auto;
}

.wall-simulator::after {
  position: absolute;
  inset: -60%;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: wall-sim-grain 9s steps(8) infinite;
}

.wall-sim-panel {
  display: grid;
  align-content: start;
  gap: 0.68rem;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 0.78rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(246, 248, 242, 0.94)),
    var(--sim-panel-bg);
  border-color: var(--sim-line);
  scrollbar-width: thin;
}

/* 右侧 tab 条 + 抽屉面板：宽度与地图定制页的 --tab-width / --drawer-width 对齐 */
.wall-sim-tab-bar {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  width: var(--sim-tab);
  padding: 0.85rem 0.45rem;
  background: rgba(255, 255, 255, 0.88);
  border-left: 1px solid var(--sim-line);
  backdrop-filter: blur(14px);
}

.wall-sim-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  min-height: 62px;
  padding: 0.48rem 0.2rem;
  color: #4e5a55;
  background: transparent;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  border-radius: 0;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.wall-sim-tab svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wall-sim-tab span {
  max-width: 100%;
  font-size: 0.68rem;
  line-height: 1.1;
  text-align: center;
  overflow-wrap: anywhere;
}

.wall-sim-tab:hover {
  color: #151816;
  background: rgba(21, 24, 22, 0.05);
}

.wall-sim-tab.active {
  color: #151816;
  background: rgba(21, 24, 22, 0.07);
  border-color: rgba(21, 24, 22, 0.12);
  border-left-color: #151816;
}

.wall-sim-drawer {
  position: absolute;
  top: 0;
  right: var(--sim-tab);
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-content: stretch;
  gap: 0;
  width: var(--sim-panel);
  padding: 0;
  overflow: hidden;
  border-left: 1px solid var(--sim-line);
  box-shadow: -24px 0 64px rgba(21, 24, 22, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.wall-sim-drawer.open {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.wall-sim-drawer-head {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.95rem 1rem 0.8rem;
  border-bottom: 1px solid var(--sim-line);
}

.wall-sim-drawer-title {
  color: #2f3835;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.wall-sim-drawer-close {
  display: grid;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  place-items: center;
  padding: 0;
  color: #4e5a55;
  background: transparent;
  border: 1px solid var(--sim-line);
  border-radius: 50%;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}

.wall-sim-drawer-close:hover {
  color: #151816;
  background: rgba(21, 24, 22, 0.06);
}

.wall-sim-drawer-body {
  display: grid;
  flex: 1 1 auto;
  align-content: start;
  gap: 0.68rem;
  min-height: 0;
  padding: 0.78rem;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
}

.wall-sim-section-title,
.wall-sim-scale,
.wall-sim-selected-empty,
.wall-sim-selected-form label span,
.wall-sim-fields label span {
  color: var(--sim-muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.wall-sim-control {
  display: grid;
  gap: 0.58rem;
  min-width: 0;
  padding: 0.68rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--sim-line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(21, 24, 22, 0.045);
  backdrop-filter: blur(14px);
}

.wall-sim-control > * {
  min-width: 0;
}

.wall-sim-control.compact {
  grid-template-columns: 1fr;
  overflow: hidden;
}

.wall-sim-control.list {
  min-height: 0;
}

.wall-sim-section-title {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  color: #2f3835;
  letter-spacing: 0.07em;
}

.wall-sim-section-title::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--sim-accent);
  border-radius: 999px;
  content: "";
}

.wall-sim-fields {
  display: grid;
  gap: 0.5rem;
}

.wall-sim-fields.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wall-sim-spacing-row {
  display: grid;
  grid-template-columns: minmax(0, 86px) minmax(0, 1fr);
  gap: 0.42rem;
  align-items: center;
}

.wall-sim-spacing-row label {
  display: block;
}

.wall-sim-fields label,
.wall-sim-selected-form label {
  display: grid;
  gap: 0.35rem;
}

.wall-simulator input {
  width: 100%;
  min-height: 34px;
  padding: 0 0.6rem;
  color: var(--sim-ink);
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--sim-line);
  border-radius: 8px;
  font-size: 0.78rem;
  outline: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.wall-simulator input:focus {
  background: #fff;
  border-color: color-mix(in srgb, var(--sim-accent), #ffffff 18%);
  box-shadow: 0 0 0 3px rgba(15, 111, 104, 0.12);
}

.wall-sim-preset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.42rem;
}

.wall-sim-preset-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wall-sim-wall-presets {
  display: grid;
  gap: 0.36rem;
}

.wall-sim-subtitle {
  color: var(--sim-muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.wall-sim-preset-grid + .wall-sim-subtitle {
  margin-top: 0.4rem;
}

.wall-sim-wall-presets .wall-sim-preset-grid button {
  min-height: 30px;
  padding: 0.32rem 0.36rem;
  font-size: 0.7rem;
  text-align: center;
}

.wall-sim-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.24rem;
  padding: 0.22rem;
  background: rgba(21, 24, 22, 0.055);
  border: 1px solid var(--sim-line);
  border-radius: 8px;
}

.wall-sim-tabs button {
  min-height: 28px;
  padding: 0 0.34rem;
  color: #4e5a55;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.wall-sim-tabs button.active {
  color: #fff;
  background: var(--sim-ink);
  box-shadow: 0 8px 18px rgba(21, 24, 22, 0.16);
}

.wall-sim-art-panel[hidden] {
  display: none;
}

.wall-sim-control-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.wall-sim-swatches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.45rem;
}

.wall-sim-swatches button {
  min-height: 34px;
  padding: 0;
  background: var(--swatch);
  border: 2px solid rgba(21, 24, 22, 0.14);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.wall-sim-swatches button:hover {
  transform: translateY(-1px);
}

.wall-sim-swatches button.active {
  border-color: var(--sim-accent);
  box-shadow: 0 0 0 2px rgba(15, 111, 104, 0.15);
}

.wall-sim-swatches.compact {
  flex: 0 0 auto;
  grid-template-columns: repeat(5, 18px);
  gap: 0.28rem;
}

.wall-sim-swatches.compact button {
  width: 18px;
  min-height: 18px;
  border-width: 1px;
  border-radius: 3px;
}

.wall-sim-swatches.compact button.active {
  border-color: var(--sim-ink);
  box-shadow: 0 0 0 2px rgba(21, 24, 22, 0.12);
}

.wall-sim-preset-grid button,
.wall-sim-action,
.wall-sim-actions-row button,
.wall-sim-list-row {
  min-height: 34px;
  padding: 0.44rem 0.58rem;
  color: var(--sim-ink);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--sim-line);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 700;
  text-align: left;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.wall-sim-preset-grid button:hover,
.wall-sim-action:hover,
.wall-sim-actions-row button:hover,
.wall-sim-list-row:hover {
  background: #fff;
  border-color: rgba(15, 111, 104, 0.38);
  box-shadow: 0 10px 22px rgba(21, 24, 22, 0.07);
  transform: translateY(-2px);
}

.wall-sim-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 100%);
  max-width: 100%;
  font-size: 0.76rem;
  text-align: center;
}

.wall-sim-action.primary {
  color: #fff;
  background: var(--sim-ink);
  border-color: var(--sim-ink);
}

.wall-sim-action.secondary {
  background: rgba(238, 242, 236, 0.88);
}

.wall-sim-action.danger,
.wall-sim-actions-row .danger {
  color: #b42318;
  border-color: #f1b8b4;
}

.wall-sim-toggle {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  color: #2f3835;
  font-weight: 700;
  font-size: 0.76rem;
}

.wall-sim-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wall-sim-toggle span {
  position: relative;
  width: 42px;
  height: 24px;
  flex: 0 0 auto;
  background: #cfd6d0;
  border-radius: 999px;
  transition: background 0.18s ease;
}

.wall-sim-toggle span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  content: "";
  transition: transform 0.18s ease;
}

.wall-sim-toggle input:checked + span {
  background: var(--sim-accent);
}

.wall-sim-toggle input:checked + span::after {
  transform: translateX(18px);
}

.wall-sim-workspace {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
  min-width: 0;
  margin-right: var(--sim-tab);
  transition: margin-right 0.3s ease;
}

.wall-simulator:has(.wall-sim-drawer.open) .wall-sim-workspace {
  margin-right: calc(var(--sim-panel) + var(--sim-tab));
}

.wall-sim-stage-wrap {
  position: relative;
  display: grid;
  min-height: 0;
  place-items: center;
  overflow-x: hidden;
  overflow-y: auto;
  padding: clamp(1.7rem, 3vw, 3.2rem) clamp(1rem, 2.6vw, 2.8rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(21, 24, 22, 0.05)),
    transparent;
  background-size: auto;
}

.wall-sim-room-rail {
  position: absolute;
  top: clamp(1.1rem, 2.5vw, 2.4rem);
  right: clamp(1rem, 2.6vw, 2.8rem);
  left: clamp(1rem, 2.6vw, 2.8rem);
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(21, 24, 22, 0.24), transparent);
}

.wall-sim-room-floor {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 24%;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(21, 24, 22, 0), rgba(21, 24, 22, 0.075));
  transform: perspective(560px) rotateX(62deg);
  transform-origin: bottom;
}

.wall-sim-stage {
  position: relative;
  width: min(var(--wall-fit-width, 100%), 1560px);
  aspect-ratio: 420 / 280;
  overflow: visible;
  touch-action: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0) 32%),
    var(--wall-color, #ffffff);
  background-size: auto;
  border: 1px solid rgba(21, 24, 22, 0.18);
  box-shadow:
    0 38px 80px rgba(21, 24, 22, 0.18),
    0 2px 0 rgba(255, 255, 255, 0.86) inset;
  animation: wall-sim-stage-in 680ms cubic-bezier(.2, .8, .2, 1) both;
}

.wall-sim-brand {
  position: absolute;
  top: 16px;
  left: 18px;
  z-index: 1;
  color: rgba(21, 24, 22, 0.28);
  font-size: clamp(0.68rem, 0.95vw, 0.88rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  pointer-events: none;
}

.wall-sim-ruler {
  position: absolute;
  z-index: 1;
  color: rgba(21, 24, 22, 0.60);
  font-size: clamp(0.62rem, 0.82vw, 0.82rem);
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.wall-sim-ruler::before,
.wall-sim-ruler::after {
  position: absolute;
  content: "";
}

.wall-sim-ruler-width {
  top: 10px;
  right: 38px;
  left: 16px;
  height: 20px;
  border-top: 1px solid rgba(21, 24, 22, 0.42);
}

.wall-sim-ruler-width::before,
.wall-sim-ruler-width::after {
  top: -5px;
  width: 1px;
  height: 9px;
  background: currentColor;
}

.wall-sim-ruler-width::before {
  left: 0;
}

.wall-sim-ruler-width::after {
  right: 0;
}

.wall-sim-ruler-width span {
  position: absolute;
  top: -0.45rem;
  left: 50%;
  padding: 0 0.35rem;
  background: var(--wall-color, #ffffff);
  transform: translateX(-50%);
}

.wall-sim-ruler-height {
  top: 34px;
  right: 10px;
  bottom: 16px;
  width: 20px;
  border-right: 1px solid rgba(21, 24, 22, 0.42);
}

.wall-sim-ruler-height::before,
.wall-sim-ruler-height::after {
  right: -5px;
  width: 9px;
  height: 1px;
  background: currentColor;
}

.wall-sim-ruler-height::before {
  top: 0;
}

.wall-sim-ruler-height::after {
  bottom: 0;
}

.wall-sim-ruler-height span {
  position: absolute;
  top: 50%;
  right: -0.5rem;
  padding: 0.35rem 0;
  background: var(--wall-color, #ffffff);
  writing-mode: vertical-rl;
  transform: translateY(-50%);
}

.wall-sim-empty {
  position: absolute;
  top: 1rem;
  left: 50%;
  z-index: 8;
  padding: 0.52rem 0.78rem;
  color: rgba(21, 24, 22, 0.68);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(21, 24, 22, 0.12);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(21, 24, 22, 0.10);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
}

.wall-guide {
  position: absolute;
  z-index: 6;
  display: none;
  pointer-events: none;
  background: var(--sim-accent);
  box-shadow: 0 0 0 1px rgba(15, 111, 104, 0.12);
}

.wall-guide.show {
  display: block;
}

.wall-guide.vertical {
  top: 0;
  bottom: 0;
  width: 1px;
}

.wall-guide.horizontal {
  right: 0;
  left: 0;
  height: 1px;
}

.wall-sim-marquee {
  position: absolute;
  z-index: 9;
  background: rgba(15, 111, 104, 0.10);
  border: 1px solid rgba(15, 111, 104, 0.72);
  pointer-events: none;
}

.wall-sim-item {
  position: absolute;
  z-index: 2;
  display: block;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  cursor: grab;
  user-select: none;
  touch-action: none;
  box-shadow: 0 10px 22px rgba(21, 24, 22, 0.14);
  transition: box-shadow 0.18s ease, filter 0.18s ease, transform 0.18s ease;
}

.wall-sim-item:hover {
  filter: saturate(1.03);
}

.wall-sim-item:active {
  cursor: grabbing;
}

.wall-sim-item.art {
  --art-mat: clamp(7px, 1.25vw, 20px);
  color: #3f3f3f;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0)),
    #ffffff;
  border: clamp(2px, 0.35vw, 4px) solid #171717;
  border-radius: 0;
  box-shadow:
    7px 8px 8px rgba(0, 0, 0, 0.28),
    17px 20px 24px rgba(0, 0, 0, 0.16);
}

.wall-sim-item.art::before {
  position: absolute;
  top: var(--art-mat);
  right: var(--art-mat);
  bottom: var(--art-mat);
  left: var(--art-mat);
  width: calc(100% - (var(--art-mat) * 2));
  height: calc(100% - (var(--art-mat) * 2));
  z-index: 0;
  background:
    linear-gradient(140deg, rgba(15, 111, 104, 0.18), transparent 42%),
    linear-gradient(320deg, rgba(182, 107, 67, 0.16), transparent 50%),
    #e5e4df;
  content: "";
}

.wall-sim-item.reference {
  color: #46524e;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(21, 24, 22, 0.04)),
    #e2e6df;
  border-color: rgba(70, 82, 78, 0.22);
  border-radius: 0;
  box-shadow: 0 10px 24px rgba(21, 24, 22, 0.075);
}

.wall-sim-item.selected {
  z-index: 4;
  box-shadow:
    0 0 0 2px var(--sim-accent),
    0 0 0 7px rgba(15, 111, 104, 0.10),
    7px 8px 8px rgba(0, 0, 0, 0.26),
    17px 20px 24px rgba(0, 0, 0, 0.13);
}

.wall-sim-item.reference.selected {
  box-shadow:
    0 0 0 2px var(--sim-accent),
    0 0 0 7px rgba(15, 111, 104, 0.10),
    0 12px 24px rgba(21, 24, 22, 0.12);
}

.wall-sim-ref-visual {
  position: absolute;
  inset: 30% 24% 36%;
  display: grid;
  place-items: center;
  color: #6d7772;
  pointer-events: none;
}

.wall-sim-ref-visual svg {
  width: 100%;
  height: 100%;
}

.wall-sim-item-name,
.wall-sim-item-size {
  position: absolute;
  right: 0.35rem;
  left: 0.35rem;
  z-index: 2;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wall-sim-item-name {
  top: 0.34rem;
  font-size: clamp(0.55rem, 1vw, 0.78rem);
  font-weight: 700;
}

.wall-sim-item.art .wall-sim-item-name {
  display: none;
}

.wall-sim-item-size {
  bottom: 0.32rem;
  font-size: clamp(0.5rem, 0.8vw, 0.68rem);
  opacity: 0.82;
  pointer-events: none;
}

.wall-sim-item.art .wall-sim-item-size {
  top: 50%;
  bottom: auto;
  display: grid;
  min-height: 24px;
  place-items: center;
  padding: 0.12rem 0.3rem;
  color: #fff;
  background: transparent;
  border-radius: 4px;
  font-size: clamp(0.62rem, 0.95vw, 0.9rem);
  font-weight: 700;
  line-height: 1;
  mix-blend-mode: difference;
  transform: translateY(-50%);
}

.wall-sim-item.reference .wall-sim-item-size {
  bottom: 0.42rem;
  color: #2f3741;
  font-size: clamp(0.78rem, 1.18vw, 1.08rem);
  font-weight: 800;
}

.wall-sim-item.reference .wall-sim-item-name,
.wall-sim-item.reference .wall-sim-item-size {
  z-index: 1;
}

.wall-sim-inline-toolbar {
  position: absolute;
  bottom: calc(100% + 30px);
  left: 50%;
  z-index: 12;
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.28rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(21, 24, 22, 0.14);
  border-radius: 8px;
  box-shadow: 0 16px 30px rgba(21, 24, 22, 0.16);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
}

.wall-sim-inline-toolbar button {
  min-width: 48px;
  min-height: 28px;
  padding: 0 0.45rem;
  color: var(--sim-ink);
  background: #ffffff;
  border: 1px solid var(--sim-line);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.wall-sim-inline-toolbar button:hover {
  background: #ffffff;
}

.wall-sim-inline-toolbar button.danger {
  color: #b42318;
  border-color: #f1b8b4;
}

.wall-sim-dim {
  position: absolute;
  z-index: 11;
  display: inline-grid;
  min-height: 22px;
  place-items: center;
  padding: 0.15rem 0.36rem;
  color: var(--sim-ink);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(21, 24, 22, 0.10);
  border-radius: 999px;
  box-shadow: 0 8px 16px rgba(21, 24, 22, 0.10);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  text-shadow: none;
}

.wall-sim-dim-width {
  bottom: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
}

.wall-sim-dim-height {
  top: 50%;
  left: calc(100% + 6px);
  writing-mode: vertical-rl;
  transform: translateY(-50%);
}

.wall-sim-size-edit {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.16rem;
  pointer-events: auto;
}

.wall-sim-size-edit input {
  width: 3.1ch;
  min-height: 24px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  font: inherit;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.wall-sim-size-edit input:focus {
  outline: 0;
  border-bottom-color: var(--sim-accent);
}

.wall-sim-size-edit span {
  font-size: 0.74em;
  font-weight: 700;
}

.wall-sim-item i {
  position: absolute;
  z-index: 5;
  display: none;
  background: #fff;
  border: 1px solid var(--sim-accent);
  border-radius: 999px;
  box-shadow: 0 3px 8px rgba(21, 24, 22, 0.16);
}

.wall-sim-item.selected i {
  display: block;
}

.wall-sim-item i[data-resize="n"],
.wall-sim-item i[data-resize="s"] {
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  cursor: ns-resize;
}

.wall-sim-item i[data-resize="n"] {
  top: -6px;
}

.wall-sim-item i[data-resize="s"] {
  bottom: -6px;
}

.wall-sim-item i[data-resize="e"],
.wall-sim-item i[data-resize="w"] {
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  cursor: ew-resize;
}

.wall-sim-item i[data-resize="e"] {
  right: -6px;
}

.wall-sim-item i[data-resize="w"] {
  left: -6px;
}

.wall-sim-item i[data-resize="ne"],
.wall-sim-item i[data-resize="nw"],
.wall-sim-item i[data-resize="se"],
.wall-sim-item i[data-resize="sw"] {
  width: 14px;
  height: 14px;
}

.wall-sim-item i[data-resize="ne"] {
  top: -7px;
  right: -7px;
  cursor: nesw-resize;
}

.wall-sim-item i[data-resize="nw"] {
  top: -7px;
  left: -7px;
  cursor: nwse-resize;
}

.wall-sim-item i[data-resize="se"] {
  right: -7px;
  bottom: -7px;
  cursor: nwse-resize;
}

.wall-sim-item i[data-resize="sw"] {
  bottom: -7px;
  left: -7px;
  cursor: nesw-resize;
}

.wall-sim-selected-form {
  display: grid;
  gap: 0.7rem;
}

.wall-sim-actions-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.wall-sim-actions-row.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wall-sim-actions-row button {
  text-align: center;
}

.wall-sim-item-list {
  display: grid;
  gap: 0.55rem;
  max-height: calc(100vh - 370px);
  overflow: auto;
}

.wall-sim-list-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 0.5rem 0.7rem;
  align-items: center;
}

.wall-sim-list-row span {
  grid-row: 1 / span 2;
  width: 10px;
  height: 32px;
  border-radius: 999px;
}

.wall-sim-list-row span.art {
  background: var(--sim-art);
}

.wall-sim-list-row span.reference {
  background: var(--sim-ref);
}

.wall-sim-list-row strong,
.wall-sim-list-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wall-sim-list-row small {
  color: var(--sim-muted);
  font-size: 0.73rem;
}

.wall-sim-list-row.active {
  border-color: var(--sim-accent);
  background: rgba(15, 111, 104, 0.08);
}

body.dark-theme .wall-simulator {
  --sim-ink: #f1f2eb;
  --sim-muted: #a7aea8;
  --sim-line: rgba(241, 242, 235, 0.14);
  --sim-panel-bg: #121411;
  --sim-soft: #20251f;
  --sim-accent: #72c8bc;
  --sim-warm: #d89a72;
  color: var(--sim-ink);
  background:
    linear-gradient(118deg, rgba(114, 200, 188, 0.10), transparent 34%),
    linear-gradient(242deg, rgba(216, 154, 114, 0.08), transparent 38%),
    #0e100d;
}

body.dark-theme .wall-sim-panel {
  background:
    linear-gradient(180deg, rgba(28, 31, 27, 0.84), rgba(15, 17, 14, 0.96)),
    var(--sim-panel-bg);
}

body.dark-theme .wall-sim-control,
body.dark-theme .wall-sim-preset-grid button,
body.dark-theme .wall-sim-action,
body.dark-theme .wall-sim-actions-row button {
  background: rgba(24, 27, 23, 0.78);
}

body.dark-theme .wall-simulator input,
body.dark-theme .wall-sim-inline-toolbar,
body.dark-theme .wall-sim-dim,
body.dark-theme .wall-sim-empty {
  color: #f1f2eb;
  background: rgba(24, 27, 23, 0.86);
}

body.dark-theme .wall-sim-section-title {
  color: #e7e9df;
}

body.dark-theme .wall-sim-tabs {
  background: rgba(241, 242, 235, 0.08);
}

body.dark-theme .wall-sim-tabs button {
  color: #b7beb7;
}

body.dark-theme .wall-sim-tabs button.active,
body.dark-theme .wall-sim-action.primary {
  color: #10120f;
  background: #f1f2eb;
  border-color: #f1f2eb;
}

body.dark-theme .wall-sim-tab-bar {
  background: rgba(18, 20, 17, 0.88);
}

body.dark-theme .wall-sim-tab {
  color: #b7beb7;
}

body.dark-theme .wall-sim-tab:hover {
  color: #f1f2eb;
  background: rgba(241, 242, 235, 0.08);
}

body.dark-theme .wall-sim-tab.active {
  color: #f1f2eb;
  background: rgba(241, 242, 235, 0.12);
  border-color: rgba(241, 242, 235, 0.16);
  border-left-color: #f1f2eb;
}

body.dark-theme .wall-sim-drawer-title {
  color: #e7e9df;
}

body.dark-theme .wall-sim-drawer-close {
  color: #b7beb7;
}

body.dark-theme .wall-sim-toggle {
  color: #e7e9df;
}

body.dark-theme .wall-sim-room-floor {
  background:
    linear-gradient(180deg, rgba(241, 242, 235, 0), rgba(241, 242, 235, 0.055));
}

@keyframes wall-sim-stage-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes wall-sim-grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -4%); }
  60% { transform: translate(5%, 2%); }
  80% { transform: translate(-2%, -3%); }
}

@media (prefers-reduced-motion: reduce) {
  .wall-simulator::after,
  .wall-sim-stage {
    animation: none;
  }

  .wall-sim-item,
  .wall-sim-preset-grid button,
  .wall-sim-action,
  .wall-sim-actions-row button,
  .wall-sim-swatches button {
    transition-duration: 0.01ms;
  }
}

@media (max-width: 1100px) {
  .wall-simulator-page {
    overflow: auto;
    overflow-x: hidden;
  }

  .header-inner {
    grid-template-columns: minmax(76px, 1fr) auto minmax(76px, 1fr);
    column-gap: 0;
    height: 58px;
    padding: 0 clamp(18px, 4.5vw, 34px);
  }

  .nav,
  .desktop-subnav {
    display: none;
  }

  .hamburger-btn {
    display: grid;
  }

  .actions {
    display: flex;
    min-width: 76px;
    justify-self: end;
  }

  .logo {
    justify-self: center;
    font-size: clamp(1.25rem, 3.5vw, 1.55rem);
  }

  .logo small {
    display: none;
  }

  .category-grid,
  .detail-grid,
  .suborder-grid,
  .case-grid,
  .contact-grid,
  .article-grid,
  .article-grid.compact {
    grid-template-columns: 1fr;
  }

  .reference-grid,
  .edition-mosaic,
  .product-layout,
  .account-grid,
  .account-shell,
  .cart-layout,
  .checkout-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .purchase-panel,
  .summary-panel,
  .account-nav {
    position: static;
  }

  .account-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wall-simulator {
    grid-template-columns: 1fr;
    height: auto;
    min-height: calc(100vh - 58px);
    overflow: visible;
    padding-bottom: calc(var(--sim-tab-bar-height) + env(safe-area-inset-bottom));
  }

  .wall-sim-workspace,
  .wall-simulator:has(.wall-sim-drawer.open) .wall-sim-workspace {
    grid-column: auto;
    grid-row: auto;
    margin-right: 0;
  }

  /* 移动端：tab 条固定在底部横排 */
  .wall-sim-tab-bar {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    height: calc(var(--sim-tab-bar-height) + env(safe-area-inset-bottom));
    padding: 0.3rem 0.55rem calc(0.3rem + env(safe-area-inset-bottom));
    border-left: 0;
    border-top: 1px solid var(--sim-line);
  }

  .wall-sim-tab {
    flex: 0 1 116px;
    min-height: 52px;
    padding: 0.3rem 0.2rem;
    border-left: 1px solid transparent;
    border-top: 3px solid transparent;
  }

  .wall-sim-tab.active {
    border-left-color: rgba(21, 24, 22, 0.12);
    border-top-color: #151816;
  }

  /* 移动端：抽屉从底部升起并覆盖工作区 */
  .wall-sim-drawer {
    position: fixed;
    top: auto;
    right: 0;
    bottom: calc(var(--sim-tab-bar-height) + env(safe-area-inset-bottom));
    left: 0;
    z-index: 29;
    width: 100%;
    max-height: 72vh;
    padding: 0;
    border-left: 0;
    border-top: 1px solid var(--sim-line);
    transform: translateY(16px);
  }

  .wall-sim-drawer.open {
    transform: translateY(0);
  }

  .wall-sim-drawer-body {
    padding: 0.9rem 0.95rem 1.15rem;
  }

  .wall-sim-stage {
    max-height: 62vh;
  }

  .wall-sim-item-list {
    max-height: none;
  }
}

@media (max-width: 760px) {
  :root {
    --font-page-title: 32px;
    --font-section-title: 24px;
    --font-panel-title: 18px;
    --font-body: 15px;
    --font-body-long: 16px;
    --font-price: 22px;
    --site-header-offset: 74px;
    --site-content-gutter: 20px;
  }

  .header-inner {
    height: 56px;
    padding: 0 18px;
  }

  .hamburger-btn,
  .icon-button {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
  }

  .hamburger-btn svg,
  .icon-button svg {
    width: 26px;
    height: 26px;
  }

  .cart-dot span {
    top: -7px;
    right: -9px;
  }

  .mobile-menu {
    top: 56px;
    right: 0;
    bottom: 0;
    width: auto;
    max-width: none;
    border-right: 0;
  }

  .mobile-menu-nav {
    padding: 0.85rem 22px 1.4rem;
  }

  .mobile-close {
    right: 14px;
  }

  .mobile-menu-top {
    min-height: 50px;
    padding: 0 54px 0 22px;
  }

  .mobile-link-large {
    gap: 0.7rem;
    min-height: 42px;
  }

  .mobile-product-grid {
    gap: 0.9rem 0.8rem;
  }

  .mobile-product-subnav {
    padding-bottom: 1.25rem;
  }

  .mobile-link-group {
    margin-top: 1.35rem;
  }

  .hero {
    min-height: calc(100vh - 56px);
  }

  .hero h1 {
    font-size: clamp(3.2rem, 19vw, 5.4rem);
  }

  .reference-card,
  .form-grid,
  .choice-grid,
  .size-options {
    grid-template-columns: 1fr;
  }

  .edition-tile,
  .edition-tile.large {
    min-height: 420px;
  }

  .product-media-large {
    min-height: 430px;
  }

  .footer-bottom,
  .section-title.align-left,
  .edition-header,
  .cart-item,
  .favorite-row,
  .order-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .favorite-row,
  .order-row {
    grid-template-columns: 1fr;
  }

  .account-summary,
  .account-detail-grid,
  .account-nav {
    grid-template-columns: 1fr;
  }

  .coupon-actions {
    grid-template-columns: 1fr;
  }

  .order-row a {
    width: 100%;
  }

  .order-detail-card-head {
    display: grid;
  }

  .cart-price {
    justify-items: start;
    text-align: left;
  }

  .cart-item-main {
    width: 100%;
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .cart-item-image {
    width: 74px;
  }

  .button,
  .btn {
    min-height: 46px;
    padding: 0.72rem 1.1rem;
  }

  .map-customizer-shell {
    --map-tab-width: 0px;
    --map-drawer-width: 100vw;
    min-height: calc(100vh - 64px);
    padding-bottom: 50vh;
  }

  .map-customizer-form,
  .map-customizer-main {
    min-height: calc(100vh - 64px);
  }

  .map-customizer-main,
  .map-customizer-main.drawer-collapsed {
    margin-right: 0;
    padding: 1rem;
  }

  .map-artwork-stage {
    width: min(calc(100vw - 2rem), calc((100vh - 230px) * var(--map-frame-width) / var(--map-frame-height)), 430px);
  }

  .map-tab-bar {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    width: auto;
    height: 68px;
    align-content: stretch;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .map-tab-item {
    min-height: 68px;
    border-right: 1px solid var(--border);
    border-bottom: 0;
  }

  .map-drawer {
    top: auto;
    right: 0;
    bottom: 68px;
    width: 100vw;
    max-height: min(62vh, 560px);
    border-top: 1px solid var(--border);
    border-left: 0;
    transform: translateY(0);
  }

  .map-drawer:not(.open) {
    transform: translateY(calc(100% + 68px));
  }

  .map-drawer-head {
    padding: 0.9rem 1rem;
  }

  .map-chip-grid,
  .map-frame-colors {
    grid-template-columns: 1fr;
  }

  .wall-simulator {
    min-height: calc(100vh - 56px);
  }

  .wall-sim-drawer {
    padding: 0;
  }

  .wall-sim-drawer-body {
    padding: 0.8rem 0.85rem 1.1rem;
  }

  .wall-sim-control {
    padding: 0.86rem;
  }

  .wall-sim-workspace {
    min-height: 58vh;
  }

  .wall-sim-stage-wrap {
    padding: 1.35rem 0.9rem 1.9rem;
  }

  .wall-sim-stage {
    width: min(var(--wall-fit-width, 100%), 1560px);
    max-height: none;
  }

  .wall-sim-preset-grid,
  .wall-sim-fields.two,
  .wall-sim-actions-row {
    grid-template-columns: 1fr;
  }
}

/* ─── Customizer top navigation bar ───────────────────────────── */
.customizer-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 52px;
  padding: 0 clamp(1rem, 2.5vw, 2rem);
  background: var(--bg-card, #ffffff);
  border-bottom: 1px solid var(--border-card, var(--border, #dedede));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.customizer-topbar-brand {
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--text-primary, var(--foreground, #111));
  text-decoration: none;
  white-space: nowrap;
}

.customizer-topbar-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-secondary, var(--text-muted, #707070));
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 280px;
}

.customizer-topbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: flex-end;
}

.customizer-topbar-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary, var(--text-muted, #707070));
  text-decoration: none;
  transition: color 0.15s ease;
}

.customizer-topbar-back:hover {
  color: var(--text-primary, var(--foreground, #111));
}

.customizer-topbar-back svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.customizer-topbar-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--text-primary, var(--foreground, #111));
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.customizer-topbar-cart:hover { opacity: 0.7; }

.customizer-topbar-cart svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.customizer-topbar-cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--foreground, #111);
  color: var(--background, #fff);
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.customizer-topbar-cart-count:empty,
.customizer-topbar-cart-count[data-count="0"] {
  display: none;
}

/* offset body content below topbar when topbar is present */
body:has(.customizer-topbar) .app-wrapper {
  padding-top: 52px;
}

@media (max-width: 480px) {
  .customizer-topbar {
    grid-template-columns: auto 1fr auto;
    gap: 0.5rem;
    padding: 0 0.75rem;
  }
  .customizer-topbar-title {
    max-width: 140px;
  }
  .customizer-topbar-back span {
    display: none;
  }

  /* Typography scale at very small screens */
  .page-hero h1,
  .page-head h1,
  .product-hero h1 {
    font-size: clamp(1.8rem, 9vw, 2.6rem);
  }

  /* Purchase / summary panels: tighter on small screens */
  .purchase-panel,
  .summary-panel,
  .checkout-form,
  .empty-state {
    padding: 1.25rem;
  }

  /* Price strip: stack vertically at 480px */
  .price-strip {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .price-strip .button,
  .price-strip .btn {
    width: 100%;
    justify-content: center;
  }

  /* Frame choice: single column */
  .frame-grid {
    grid-template-columns: 1fr;
  }

  /* Case grid: 1 column at 480px */
  .case-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Cases: reduce visual height */
  .case-card {
    grid-template-rows: 160px 1fr;
  }

  .case-card-cta {
    grid-template-rows: 1fr;
  }

  /* Filter bar: horizontal scroll on very small screens */
  .filter-bar {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 0.75rem;
  }

  .filter-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    flex-shrink: 0;
  }

  /* Article grid: already 1fr at 1100px but reinforce */
  .article-grid {
    grid-template-columns: 1fr;
  }

  /* Section padding reduction */
  .section,
  .page-hero,
  .page-head,
  .product-hero,
  .cart-layout,
  .checkout-layout,
  .success-shell,
  .case-grid.section,
  .contact-grid {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  /* Contact grid: single column */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* Favorite-row and order-row fix */
  .favorite-row {
    gap: 0.6rem;
  }

  /* Detail grid: 1 column */
  .detail-grid {
    grid-template-columns: 1fr;
  }

  /* Hero actions: full width buttons */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button,
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* 2026 public storefront polish: restrained commerce surfaces and product-led pages. */
.product-list-hero h1 {
  margin: 0;
  color: var(--foreground);
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
  max-width: 940px;
}

.product-list-hero p {
  max-width: 620px;
  color: var(--muted);
}

/* Product and article category listings */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(30px, 4vw, 58px) clamp(16px, 2vw, 28px);
}

.catalog-card {
  display: block;
  min-width: 0;
  color: var(--foreground);
}

.catalog-card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #e8e9e8;
  border-radius: 8px;
}

.catalog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(0.16, 1, 0.3, 1), filter 350ms ease;
}

.catalog-card:hover .catalog-card-media img,
.catalog-card:focus-visible .catalog-card-media img {
  filter: saturate(1.04);
  transform: scale(1.025);
}

.catalog-card:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: 5px;
}

.catalog-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 7px 13px;
  color: #fff;
  background: #155d4c;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.catalog-card-copy {
  display: grid;
  gap: 5px;
  padding-top: 14px;
}

.catalog-card-category {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.catalog-card-copy h2 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
}

.catalog-card-price {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .catalog-grid,
  .article-grid.catalog-grid,
  .product-grid.catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 12px;
  }

  .catalog-card-copy {
    padding-top: 10px;
  }

  .catalog-card-category {
    font-size: 0.68rem;
  }

  .catalog-card-copy h2,
  .catalog-card-price {
    font-size: 0.88rem;
  }

  .catalog-card-badge {
    top: 9px;
    left: 9px;
    padding: 6px 9px;
    font-size: 0.62rem;
  }
}

.category-card,
.reference-card,
.purchase-panel,
.summary-panel,
.cart-item,
.account-auth-card,
.account-summary article {
  border-radius: 8px;
}

.category-card {
  padding: 28px;
  min-height: 280px;
}

.category-card .arrow-icon {
  display: none;
}

.product-list-hero {
  padding-bottom: 42px;
}

.filter-bar {
  gap: 8px;
  padding: 14px clamp(18px, 5vw, 72px);
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--background), var(--card) 55%);
}

.filter-chip {
  border-radius: 999px;
}

.reference-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.reference-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.reference-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--foreground), transparent 70%);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.10);
}

.reference-card .product-media {
  min-height: 0;
  aspect-ratio: 4 / 3;
  background: #ffffff;
}

.reference-card .product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding: 20px;
}

.product-info h3 {
  font-size: 22px;
  letter-spacing: 0;
}

.product-info p {
  color: var(--muted);
}

.product-meta {
  align-items: center;
}

.product-meta .price {
  color: var(--foreground);
  font-weight: 700;
}

.product-layout {
  gap: 28px;
  align-items: start;
}

.product-media-panel,
.purchase-panel,
.summary-panel,
.checkout-form,
.account-main .purchase-panel {
  border: 1px solid var(--line);
  background: var(--card);
}

.product-media-large {
  border-radius: 4px;
}

.purchase-panel {
  padding: 24px;
}

.panel-label {
  color: var(--foreground);
}

.choice-pill,
.frame-choice,
.color-choice,
.payment-method-option,
.checkout-form input,
.checkout-form select,
.account-auth-form input,
.form-grid input,
.form-grid select {
  border-radius: 8px;
}

.price-strip {
  border-radius: 8px;
  border: 1px solid var(--foreground);
  background: var(--foreground);
  color: var(--background);
}

.price-strip .button.primary {
  background: var(--background);
  color: var(--foreground);
}

.cart-layout,
.checkout-layout,
.account-shell {
  max-width: 1180px;
}

.cart-item {
  border: 1px solid var(--line);
}

.cart-item-image,
.checkout-item-mini img {
  border-radius: 4px;
  background: #ffffff;
}

.account-auth-card {
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.10);
}

.account-nav {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card);
}

.account-nav a {
  border-radius: 6px;
}

@media (max-width: 900px) {
  .product-list-hero h1 {
    font-size: clamp(38px, 12vw, 58px);
  }

  .reference-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: auto;
  }

}

@media (max-width: 560px) {
  :root {
    --site-content-gutter: 14px;
  }

  .product-info {
    padding: 16px;
  }

  .price-strip {
    grid-template-columns: 1fr;
    gap: 12px;
  }

}

:root {
  --ui-space-1: 4px;
  --ui-space-2: 8px;
  --ui-space-3: 12px;
  --ui-space-4: 16px;
  --ui-space-5: 24px;
  --ui-space-6: 32px;
  --ui-radius-sm: 2px;
  --ui-radius-md: 4px;
  --ui-focus-ring: 2px solid currentColor;
}

picture {
  display: block;
}

picture > img {
  display: block;
  max-width: 100%;
}

.checkout-error-summary {
  margin: 0 0 24px;
  padding: 14px 16px;
  color: var(--commerce-danger);
  background: color-mix(in srgb, var(--commerce-danger) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--commerce-danger) 30%, transparent);
}

.checkout-error-summary ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.commerce-page .checkout-field-error {
  display: block;
  margin-top: 6px;
  color: var(--commerce-danger);
  font-size: 12px;
  line-height: 1.45;
}

.commerce-page input[aria-invalid="true"],
.commerce-page select[aria-invalid="true"],
.commerce-page textarea[aria-invalid="true"] {
  border-color: var(--commerce-danger);
  box-shadow: 0 0 0 1px var(--commerce-danger);
}
