:root {
  color-scheme: light;
  --ink: #171614;
  --muted: #706b63;
  --paper: #f7f5ef;
  --panel: #fffdf8;
  --line: #ded8cc;
  --accent: #c84630;
  --accent-2: #287271;
  --shadow: 0 20px 50px rgba(23, 22, 20, 0.16);
  --page-max: 1080px;
  --page-gutter: 32px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(23, 22, 20, 0.1);
  background: rgba(247, 245, 239, 0.88);
  backdrop-filter: blur(18px);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(calc(100% - var(--page-gutter)), var(--page-max));
  min-height: 58px;
  margin: 0 auto;
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  width: 18px;
  height: 28px;
  border: 2px solid var(--ink);
  border-radius: 5px;
  background: linear-gradient(135deg, var(--accent), #f2c078 45%, var(--accent-2));
}

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

.orders-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  padding: 0 12px;
  font-weight: 900;
}

.orders-button:hover {
  border-color: var(--ink);
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: #fffdf8;
  padding: 0 12px;
  font-weight: 900;
}

.cart-button strong {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fffdf8;
  color: var(--accent);
  font-size: 12px;
}

.cart-glyph {
  position: relative;
  display: inline-block;
  width: 17px;
  height: 14px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 2px 2px 5px 5px;
}

.cart-glyph::before,
.cart-glyph::after {
  content: "";
  position: absolute;
  bottom: -6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.cart-glyph::before {
  left: 1px;
}

.cart-glyph::after {
  right: 1px;
}

.top-nav {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.top-nav::-webkit-scrollbar {
  display: none;
}

.nav-chip,
.sub-chip,
.preview-meta button,
.copy-order {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  padding: 0 15px;
}

.nav-chip.is-active,
.sub-chip.is-active,
.preview-meta button,
.copy-order {
  border-color: var(--ink);
  background: var(--ink);
  color: #fffdf8;
}

main {
  min-height: 100vh;
  scroll-margin-top: 76px;
}

.hero {
  width: min(calc(100% - var(--page-gutter)), var(--page-max));
  min-height: 0;
  margin: 0 auto;
  padding: 48px 0 36px;
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(44px, 6vw, 68px);
  line-height: 1;
  letter-spacing: 0;
}

.hero-text {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.gallery-section {
  width: min(calc(100% - var(--page-gutter)), var(--page-max));
  margin: 0 auto;
  padding: 18px 0 64px;
  scroll-margin-top: 76px;
}

.section-head {
  display: grid;
  gap: 7px;
  margin-bottom: 18px;
}

.section-head span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.1;
}

.product-nav {
  margin-bottom: 12px;
}

.sub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.sub-chip {
  min-height: 34px;
  padding: 0 13px;
  color: var(--muted);
  background: transparent;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}

.wallpaper-card {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  border: 1px solid rgba(23, 22, 20, 0.1);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(23, 22, 20, 0.08);
  cursor: pointer;
}

.wallpaper-card img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.wallpaper-card:hover img {
  transform: scale(1.04);
}

.card-id {
  position: absolute;
  left: 50%;
  bottom: 10px;
  max-width: calc(100% - 28px);
  transform: translateX(-50%);
  color: #fffdf8;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.72);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.placeholder-card {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  min-height: 280px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(200, 70, 48, 0.12), rgba(40, 114, 113, 0.18)), var(--panel);
}

.placeholder-inner {
  display: grid;
  gap: 12px;
  text-align: center;
}

.placeholder-inner small {
  justify-self: center;
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid rgba(200, 70, 48, 0.3);
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.placeholder-inner span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.placeholder-inner strong {
  font-size: 28px;
}

.placeholder-inner em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.7;
}

.preview {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  overflow-y: auto;
  padding: 16px;
  background: rgba(23, 22, 20, 0.78);
}

.preview.is-open {
  display: grid;
}

.preview-close,
.panel-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: rgba(23, 22, 20, 0.72);
  color: #fff;
  font-size: 24px;
}

.preview-body {
  display: grid;
  grid-template-columns: minmax(240px, 380px) minmax(240px, 360px);
  align-items: center;
  gap: 28px;
  max-width: 860px;
}

.preview-body.has-carousel {
  grid-template-columns: minmax(260px, 520px) minmax(240px, 360px);
  max-width: 980px;
  transform: translateY(-48px);
}

.preview-body img {
  width: 100%;
  max-height: 84vh;
  border-radius: 18px;
  object-fit: contain;
  box-shadow: var(--shadow);
}

.preview-carousel {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 14px;
  max-width: min(72vw, 430px);
  overflow: visible;
  padding: 4px;
}

.preview-carousel img,
.preview-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.preview-carousel img:hover,
.preview-placeholder:hover {
  transform: scale(1.045);
  box-shadow: 0 24px 58px rgba(23, 22, 20, 0.28);
}

.preview-placeholder {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(200, 70, 48, 0.16), rgba(40, 114, 113, 0.2)), var(--panel);
  color: var(--ink);
  text-align: center;
}

.preview-placeholder strong {
  font-size: 26px;
}

.preview-placeholder span {
  color: var(--muted);
}

.preview-meta {
  display: grid;
  align-content: center;
  justify-items: start;
  min-width: 0;
  color: white;
}

.preview-meta h2 {
  margin: 0 0 6px;
  font-size: clamp(26px, 3.5vw, 40px);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.preview-kind {
  margin: 0 0 14px;
  color: rgba(255, 253, 248, 0.68);
  font-size: 13px;
  font-weight: 800;
}

.spec-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  max-width: min(280px, 70vw);
  margin-bottom: 12px;
  padding: 0 14px;
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.preview-price {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 0;
  padding: 0 14px;
  border-radius: 8px;
  background: #fffdf8;
  color: var(--accent);
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.preview-price:hover {
  background: #fff3ec;
}

.add-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  padding: 0 14px;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  transition: transform 0.16s ease, background 0.16s ease;
}

.add-cart:hover,
.add-cart.is-added {
  background: #fff3ec;
  color: var(--accent);
  transform: translateY(-1px);
}

.add-cart:disabled,
.preview-price:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}

#preview .preview-meta .preview-price {
  border: 0;
  background: #fffdf8;
  color: var(--accent);
}

#preview .preview-meta .preview-price:hover {
  background: #fff3ec;
}

#preview .preview-meta .add-cart {
  border: 0;
  background: #fffdf8;
  color: var(--ink);
}

#preview .preview-meta .add-cart:hover,
#preview .preview-meta .add-cart.is-added {
  background: #fff3ec;
  color: var(--accent);
}

.buy-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.info-panel {
  display: inline-grid;
  justify-items: start;
  gap: 8px;
  margin-bottom: 10px;
}

.info-panel div {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
}

.info-panel span {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
}

.info-panel strong {
  max-width: min(260px, 70vw);
  overflow: hidden;
  font-size: 15px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.info-panel .price-row strong {
  color: var(--accent);
}

.variant-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0 0 12px;
}

.variant-label {
  flex: 0 0 100%;
  color: rgba(255, 253, 248, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.variant-actions button {
  min-height: 30px;
  border: 1px solid rgba(255, 253, 248, 0.34);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.08);
  color: #fffdf8;
  padding: 0 10px;
  font-size: 12px;
}

.variant-actions button.is-active {
  border-color: #fffdf8;
  background: #fffdf8;
  color: var(--ink);
  font-weight: 900;
}

.pay-panel,
.cart-panel,
.orders-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 70;
  width: min(520px, 100vw);
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  padding: 30px 30px max(30px, env(safe-area-inset-bottom));
  background: var(--panel);
  box-shadow: var(--shadow);
  transform: translateX(105%);
  transition: transform 0.28s ease;
}

.pay-panel.is-open,
.cart-panel.is-open,
.orders-panel.is-open {
  transform: translateX(0);
}

.pay-panel h2,
.cart-panel h2,
.orders-panel h2 {
  margin: 0 0 12px;
  font-size: 38px;
}

.cart-intro {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.7;
}

.cart-items {
  display: grid;
  gap: 10px;
}

.cart-empty {
  margin: 0;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  line-height: 1.7;
}

.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.cart-item div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.cart-item strong,
.cart-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-item strong {
  color: var(--ink);
  font-size: 15px;
}

.cart-item span {
  color: var(--muted);
  font-size: 12px;
}

.cart-item b {
  color: var(--accent);
}

.cart-item button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.cart-total span {
  color: var(--muted);
  font-weight: 900;
}

.cart-total strong {
  color: var(--accent);
  font-size: 28px;
}

.cart-checkout {
  width: 100%;
  min-height: 44px;
  margin-top: 16px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fffdf8;
  font-weight: 900;
}

.cart-checkout:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.orders-list {
  display: grid;
  gap: 10px;
}

.order-history-empty {
  margin: 0;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  line-height: 1.7;
}

.order-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.order-history-main,
.order-history-side {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.order-history-main strong,
.order-history-main span,
.order-history-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-history-main strong {
  color: var(--ink);
  font-size: 15px;
}

.order-history-main span,
.order-history-main small {
  color: var(--muted);
  font-size: 12px;
}

.order-history-side {
  justify-items: end;
}

.order-history-side b {
  color: var(--accent);
  font-size: 18px;
}

.order-history-side em {
  color: var(--accent-2);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.order-history-side button,
.clear-orders {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.clear-orders {
  width: 100%;
  min-height: 40px;
  margin-top: 16px;
  color: var(--muted);
}

.clear-orders:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.panel-note {
  color: var(--muted);
  line-height: 1.7;
  margin: 14px 0 0;
}

.panel-note a {
  color: var(--accent);
  font-weight: 900;
}

.order-warning {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(200, 70, 48, 0.34);
  border-radius: 8px;
  background: rgba(200, 70, 48, 0.08);
  color: var(--accent);
}

.order-warning strong {
  font-size: 18px;
}

.order-warning span {
  color: #8a2f22;
  font-weight: 800;
  line-height: 1.6;
}

.order-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.order-form label {
  display: grid;
  gap: 7px;
}

.order-form label span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.required-mark {
  color: var(--accent);
  font-size: 14px;
}

.order-form input,
.order-form select,
.order-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
  padding: 11px 12px;
  outline: none;
}

.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(40, 114, 113, 0.12);
}

.order-form input[readonly] {
  background: #f7f5ef;
  font-weight: 900;
}

.policy-check {
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px !important;
  margin-top: 2px;
  padding: 12px;
  border: 1px solid rgba(200, 70, 48, 0.26);
  border-radius: 8px;
  background: rgba(200, 70, 48, 0.06);
}

.policy-check input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.policy-check span {
  color: #7e3025 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.65;
}

.form-help {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(200, 70, 48, 0.32);
  border-radius: 8px;
  background: rgba(200, 70, 48, 0.08);
}

.form-help strong {
  color: var(--accent);
  font-size: 13px;
}

.form-help span {
  color: #7e3025;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.qr-grid figure {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f5ef;
}

.qr-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
  background:
    linear-gradient(45deg, #e7dfd0 25%, transparent 25%),
    linear-gradient(-45deg, #e7dfd0 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e7dfd0 75%),
    linear-gradient(-45deg, transparent 75%, #e7dfd0 75%);
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
}

.qr-grid figcaption {
  margin-top: 10px;
  text-align: center;
  font-weight: 800;
}

.order-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.copy-order,
.submit-order {
  width: 100%;
}

.submit-order {
  min-height: 38px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: #fffdf8;
  padding: 0 15px;
  font-weight: 900;
}

.copy-order:disabled,
.submit-order:disabled {
  cursor: not-allowed;
  opacity: 0.44;
}

.copy-status {
  min-height: 24px;
  color: var(--accent-2);
  text-align: center;
}

.site-footer {
  padding: 0 var(--page-gutter);
  border-top: 1px solid var(--line);
  background: #efebe2;
  color: var(--muted);
}

.footer-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 28px 0 22px;
}

.footer-directory {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.35fr;
  gap: 56px;
  padding-bottom: 28px;
}

.footer-directory section {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 8px;
}

.footer-directory h3 {
  margin: 0 0 3px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.site-footer a,
.site-footer span,
.footer-info-button {
  color: #6f6a61;
  font-size: 12px;
  line-height: 1.45;
  text-decoration: none;
}

.site-footer a:hover,
.footer-info-button:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-info-button {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  font-weight: 500;
}

.social-link {
  display: inline-block;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.footer-legal-link {
  position: relative;
}

.footer-legal-link::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 50%;
  width: 1px;
  height: 10px;
  background: var(--line);
  transform: translateY(-50%);
}

.footer-email {
  width: fit-content;
  color: var(--accent) !important;
  font-weight: 900;
}

.info-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 75;
  display: none;
  width: min(460px, calc(100vw - 32px));
  padding: 28px;
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%);
}

.info-modal.is-open {
  display: block;
}

.info-modal h2 {
  margin: 0 0 16px;
  font-size: 30px;
}

.info-content {
  display: grid;
  gap: 10px;
}

.info-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  background: rgba(23, 22, 20, 0.32);
}

.scrim.is-open {
  display: block;
}

@media (max-width: 860px) {
  .orders-button {
    padding: 0 10px;
  }

  .cart-button span:not(.cart-glyph) {
    display: none;
  }

  .top-nav {
    justify-content: start;
  }

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

  .wallpaper-card {
    min-height: 220px;
  }

  .site-footer {
    padding: 0 16px;
  }

  .footer-directory {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .preview-meta {
    text-align: center;
  }

  .qr-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 540px) {
  .preview {
    place-items: start center;
    padding: 62px 14px 20px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .wallpaper-card {
    min-height: 210px;
  }

  .preview-body,
  .preview-body.has-carousel {
    grid-template-columns: 1fr;
    width: min(100%, 360px);
    max-width: 360px;
    gap: 16px;
    transform: none;
  }

  .preview-body img {
    max-height: 42vh;
  }

  .preview-meta {
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(255, 253, 248, 0.16);
    border-radius: 12px;
    background: rgba(23, 22, 20, 0.5);
    backdrop-filter: blur(10px);
  }

  .preview-meta h2 {
    margin-bottom: 10px;
    font-size: 28px;
  }

  .info-panel {
    width: 100%;
  }

  .info-panel div {
    width: fit-content;
    max-width: 100%;
  }

  .info-panel strong {
    max-width: 240px;
  }

  .preview-carousel {
    max-width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qr-grid {
    grid-template-columns: 1fr;
  }

  .order-actions {
    grid-template-columns: 1fr;
  }

  .order-history-item {
    grid-template-columns: 1fr;
  }

  .order-history-side {
    justify-items: start;
  }

  .footer-directory {
    gap: 18px;
  }
}

#preview .preview-meta {
  display: grid;
  align-content: center;
  justify-items: start;
  min-width: 0;
}

#preview .info-panel {
  display: inline-grid;
  justify-items: start;
  gap: 8px;
  margin: 0 0 10px;
}

#preview .info-panel div {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  width: fit-content;
  max-width: 100%;
  padding: 0 14px;
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
}

#preview .info-panel span {
  display: inline;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

#preview .info-panel strong {
  display: inline;
  max-width: min(260px, 70vw);
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#preview .info-panel .price-row strong {
  color: var(--accent);
}

@media (max-width: 540px) {
  #preview {
    place-items: start center;
    overflow-y: auto;
    padding: 62px 14px 20px;
  }

  #preview .preview-body,
  #preview .preview-body.has-carousel {
    grid-template-columns: 1fr;
    width: min(100%, 360px);
    max-width: 360px;
    gap: 16px;
    transform: none;
  }

  #preview .preview-meta {
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(255, 253, 248, 0.16);
    border-radius: 12px;
    background: rgba(23, 22, 20, 0.5);
    backdrop-filter: blur(10px);
  }
}
