:root {
  color-scheme: light;
  --paper: #f7f1e8;
  --paper-2: #fffaf2;
  --ink: #17130f;
  --muted: #6f6559;
  --line: rgba(35, 28, 21, 0.14);
  --charcoal: #26221d;
  --brass: #aa7a38;
  --brass-dark: #78501e;
  --olive: #596047;
  --clay: #b85d38;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(30, 24, 18, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
select {
  cursor: pointer;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr minmax(280px, 380px) auto;
  align-items: center;
  gap: 26px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 250, 242, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: var(--ink);
  color: var(--paper-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
}

.brand strong {
  display: block;
  font-size: 18px;
  letter-spacing: 0;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 2.2vw, 34px);
  color: #393029;
  font-size: 15px;
}

.desktop-nav a {
  padding: 10px 0;
  border-bottom: 1px solid transparent;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  border-color: var(--brass);
}

.header-search {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
}

.header-search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 0 14px;
  color: var(--ink);
  outline: none;
}

.header-search button,
.cart-button,
.primary-action,
.secondary-action,
.text-button,
.icon-button {
  border: 0;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.header-search button {
  align-self: stretch;
  padding: 0 16px;
  background: var(--charcoal);
  color: var(--paper-2);
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 15px;
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
}

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

.account-shell {
  position: relative;
}

.account-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  min-width: 112px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink);
  padding: 0 12px;
  font-weight: 800;
}

.account-avatar {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  overflow: hidden;
  background-color: var(--brass);
  background-position: center;
  background-size: cover;
  color: var(--white);
  font-size: 13px;
}

.account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 40;
  display: none;
  min-width: 220px;
  padding: 8px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.account-menu.open {
  display: grid;
}

.account-menu button,
.site-footer button {
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.account-menu button {
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink);
}

.account-menu button:hover {
  background: var(--paper);
}

.danger-link {
  color: #9d3324 !important;
}

.admin-only,
.danger-link,
.is-logged-in .account-menu [data-account-action="auth"] {
  display: none;
}

.is-admin .admin-only,
.is-logged-in .danger-link {
  display: block;
}

.cart-button strong {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  background: var(--ink);
  color: var(--paper-2);
  font-size: 13px;
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  background: #f4eee5;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: none;
  transform: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 252, 246, 0.92) 0%, rgba(255, 252, 246, 0.76) 30%, rgba(255, 252, 246, 0.24) 52%, rgba(255, 252, 246, 0.02) 76%),
    radial-gradient(circle at 20% 44%, rgba(255, 255, 255, 0.7), transparent 24%);
  pointer-events: none;
}

.hero::after {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 4;
  width: min(700px, calc(100% - 36px));
  padding: clamp(72px, 11vw, 148px) clamp(18px, 5vw, 72px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--brass-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 700px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(54px, 7vw, 104px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-copy {
  max-width: 620px;
  margin: 28px 0 0;
  color: #40372f;
  font-size: clamp(18px, 2vw, 22px);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-action,
.secondary-action {
  min-height: 50px;
  padding: 0 22px;
  font-weight: 700;
}

.primary-action {
  background: var(--ink);
  color: var(--paper-2);
}

.secondary-action {
  background: rgba(255, 250, 242, 0.82);
  color: var(--ink);
  border: 1px solid rgba(23, 19, 15, 0.28);
}

.primary-action:hover,
.secondary-action:hover,
.cart-button:hover,
.header-search button:hover,
.text-button:hover {
  transform: translateY(-1px);
}

.hero-panel {
  position: absolute;
  right: clamp(18px, 4vw, 56px);
  bottom: 30px;
  z-index: 2;
  width: min(360px, calc(100% - 36px));
  padding: 20px;
  background: rgba(255, 250, 242, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-art {
  display: none;
}

.hero-art-frame {
  position: absolute;
  right: clamp(72px, 10vw, 170px);
  top: clamp(86px, 12vh, 142px);
  z-index: 2;
  width: min(38vw, 580px);
  padding: clamp(7px, 0.65vw, 11px);
  background: #2b241c;
  box-shadow:
    0 22px 55px rgba(70, 52, 34, 0.24),
    11px 14px 0 rgba(61, 43, 27, 0.08);
}

.hero-art img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #e8ded1;
}

.hero-art figcaption {
  position: absolute;
  right: clamp(72px, 10vw, 170px);
  top: calc(clamp(86px, 12vh, 142px) + min(38vw, 580px) + 24px);
  z-index: 3;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  text-align: right;
}

.hero-side-room {
  position: absolute;
  right: 0;
  top: 0;
  width: 18%;
  height: 72%;
  background:
    linear-gradient(90deg, rgba(66, 52, 39, 0.16), transparent 12%),
    linear-gradient(180deg, #d8cab9 0%, #eee7dd 100%);
  box-shadow: inset 18px 0 30px rgba(70, 52, 34, 0.11);
}

.hero-side-room::before {
  content: "";
  position: absolute;
  right: 18%;
  top: 16%;
  width: 70%;
  height: 1px;
  background: rgba(64, 52, 42, 0.26);
  box-shadow:
    34px 18px 0 -1px rgba(64, 52, 42, 0.24),
    68px 36px 0 -1px rgba(64, 52, 42, 0.2);
  transform: rotate(-16deg);
}

.hero-bench {
  position: absolute;
  right: clamp(38px, 7vw, 126px);
  bottom: 11%;
  z-index: 2;
  width: min(44vw, 720px);
  height: 34px;
  background: linear-gradient(180deg, #b89670, #8e6845);
  box-shadow:
    0 12px 24px rgba(72, 50, 31, 0.18),
    inset 0 4px 0 rgba(255, 235, 205, 0.23);
}

.hero-bench::before,
.hero-bench::after {
  content: "";
  position: absolute;
  top: 28px;
  width: 28px;
  height: 84px;
  background: linear-gradient(180deg, #9f7750, #765333);
}

.hero-bench::before {
  left: 18%;
}

.hero-bench::after {
  right: 13%;
}

.hero-small-art {
  position: absolute;
  right: clamp(16px, 3vw, 48px);
  top: 43%;
  z-index: 2;
  width: 72px;
  height: 112px;
  border: 6px solid #6b5032;
  background:
    linear-gradient(135deg, rgba(170, 122, 56, 0.35), transparent),
    #efe5d8;
  box-shadow: 0 14px 24px rgba(70, 52, 34, 0.13);
}

.hero-dots {
  position: absolute;
  left: clamp(18px, 5vw, 72px);
  bottom: 34px;
  z-index: 3;
  display: flex;
  gap: 9px;
}

.hero-dots button {
  width: 34px;
  height: 4px;
  border: 0;
  background: rgba(23, 19, 15, 0.25);
}

.hero-dots button.active {
  background: var(--ink);
}

.hero-variant-2 {
  background:
    linear-gradient(90deg, #faf5ed 0%, #f0e8dc 42%, #ded0bf 100%);
}

.hero-variant-3 {
  background:
    linear-gradient(90deg, #fbf8f1 0%, #f1f1e9 42%, #dce5df 100%);
}

.hero-variant-4 {
  background:
    linear-gradient(90deg, #fbf4ec 0%, #efe4dd 42%, #dfd0c6 100%);
}

.hero-variant-5 {
  background:
    linear-gradient(90deg, #fbf7ec 0%, #eff0df 42%, #d8dbc3 100%);
}

.hero-panel span,
.format-cards span,
.cart-header span {
  color: var(--brass-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-panel strong {
  display: block;
  margin-top: 6px;
  font-size: 20px;
}

.hero-panel p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
  background: var(--paper-2);
}

.quick-strip div {
  min-height: 138px;
  padding: 28px clamp(18px, 4vw, 52px);
  border-right: 1px solid var(--line);
}

.quick-strip div:last-child {
  border-right: 0;
}

.quick-strip span {
  color: var(--brass);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.quick-strip strong {
  display: block;
  margin-top: 10px;
  font-size: 20px;
}

.quick-strip p {
  margin: 8px 0 0;
  color: var(--muted);
}

.account-page {
  display: none;
  max-width: 1160px;
  margin: 0 auto;
  padding: 76px clamp(18px, 4vw, 40px);
}

.account-page.open {
  display: block;
}

.account-page-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}

.account-page h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 500;
  line-height: 1.08;
}

.account-page-body {
  display: grid;
  gap: 16px;
}

.inline-panel {
  border: 1px solid var(--line);
  background: var(--paper-2);
  box-shadow: none;
}

.text-button.compact {
  width: auto;
  min-width: 120px;
  padding: 0 16px;
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  margin-top: 12px;
  padding: 12px;
  background: var(--paper);
}

.avatar-choice {
  position: relative;
  display: block !important;
  width: 48px;
  height: 48px;
  padding: 0;
  color: transparent;
}

.avatar-choice input {
  position: absolute;
  opacity: 0;
}

.avatar-choice span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid transparent;
  color: var(--white);
  font-size: 18px;
  font-weight: 900;
  background-size: cover;
}

.avatar-choice.active span,
.avatar-choice input:checked + span {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(170, 122, 56, 0.24);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) minmax(0, 1fr);
  gap: 34px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 86px clamp(18px, 4vw, 40px) 28px;
}

.section-intro.compact {
  padding: 0;
}

.section-intro h2,
.promise h2 {
  margin: 0;
  max-width: 900px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 500;
  line-height: 1.08;
  text-wrap: balance;
}

.section-intro p:not(.eyebrow),
.promise p {
  max-width: 680px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.shop-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 32px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px clamp(18px, 4vw, 40px) 96px;
}

.filters {
  position: sticky;
  top: 100px;
  align-self: start;
  padding: 22px;
  background: rgba(255, 250, 242, 0.74);
  border: 1px solid var(--line);
}

.filter-group {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.filter-group label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.filter-group select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  padding: 0 12px;
}

.text-button {
  width: 100%;
  min-height: 44px;
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-weight: 700;
}

.products-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.products-toolbar p {
  margin: 0;
  color: var(--muted);
}

.view-note {
  color: var(--brass-dark);
  font-size: 13px;
  font-weight: 800;
}

.display-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
}

.display-tools > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.segmented-control {
  display: inline-grid;
  grid-template-columns: repeat(3, 44px);
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.segmented-control button {
  min-height: 36px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-weight: 800;
}

.segmented-control button:last-child {
  border-right: 0;
}

.segmented-control button.active {
  background: var(--ink);
  color: var(--paper-2);
}

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

.product-grid.size-small {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.product-grid.size-large {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.product-card {
  position: relative;
  display: grid;
  background: var(--paper-2);
  border: 1px solid var(--line);
  overflow: hidden;
}

.art-wrap {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  aspect-ratio: 1;
  overflow: hidden;
  background: #e8ded1;
}

.art-wrap:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: -3px;
}

.art-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.product-card:hover .art-wrap img {
  transform: scale(1.035);
}

.discount-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 6px 10px;
  background: var(--ink);
  color: var(--paper-2);
  font-size: 12px;
  font-weight: 800;
}

.favorite-button {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  min-height: 34px;
  border: 1px solid rgba(255, 250, 242, 0.78);
  background: rgba(255, 250, 242, 0.92);
  color: var(--ink);
  padding: 0 11px;
  font-size: 12px;
  font-weight: 900;
}

.favorite-button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper-2);
}

.product-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.product-title-row {
  display: block;
}

.product-card h3 {
  margin: 0;
  font-size: 20px;
}

.product-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.product-grid.size-small .product-body {
  gap: 10px;
  padding: 14px;
}

.product-grid.size-small .product-card h3 {
  font-size: 17px;
}

.product-grid.size-small .product-card p {
  display: none;
}

.product-grid.size-large .product-card h3 {
  font-size: 24px;
}

.product-grid.size-large .product-card p {
  font-size: 15px;
}

.price {
  white-space: nowrap;
  color: var(--brass-dark);
  font-weight: 800;
}

.price strong,
.mini-line strong,
.preview-caption strong {
  color: var(--brass-dark);
}

.price del,
.mini-line del,
.preview-caption del {
  margin-left: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.tag-row,
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  padding: 5px 8px;
  background: rgba(170, 122, 56, 0.11);
  color: #5d4225;
  font-size: 12px;
}

.product-actions button {
  flex: 1 1 135px;
  min-height: 56px;
  border: 1px solid rgba(35, 28, 21, 0.12);
  background: #f1eee8;
  color: var(--ink);
  font-weight: 800;
}

.product-actions button:first-child {
  background: #e5e0d8;
  color: var(--ink);
}

.price-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  align-content: center;
  text-align: left;
  padding: 8px 10px;
}

.price-option span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.price-option strong {
  color: #241f1a;
  font-size: 13px;
  line-height: 1.1;
}

.price-option del {
  color: #8f867b;
  font-size: 11px;
  line-height: 1.1;
}

.format-band,
.framing,
.promise {
  padding: 90px clamp(18px, 4vw, 56px);
}

.format-band {
  background: #201c18;
  color: var(--paper-2);
}

.format-band .section-intro {
  max-width: 1160px;
  margin: 0 auto 34px;
}

.format-band .section-intro p:not(.eyebrow) {
  color: rgba(255, 250, 242, 0.72);
}

.format-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 1160px;
  margin: 0 auto;
}

.format-cards article {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(255, 250, 242, 0.18);
  background: rgba(255, 250, 242, 0.045);
}

.format-cards h3 {
  margin: 12px 0 0;
  font-size: 30px;
}

.format-cards p,
.format-cards li {
  color: rgba(255, 250, 242, 0.72);
}

.format-cards ul {
  margin: 22px 0 0;
  padding-left: 20px;
}

.framing {
  background: var(--paper-2);
}

.framing .section-intro,
.promise {
  max-width: 1160px;
  margin: 0 auto;
}

.process {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1160px;
  margin: 34px auto 0;
  padding: 0;
  list-style: none;
}

.process li {
  min-height: 210px;
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.process span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  background: var(--brass);
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.process strong {
  display: block;
  margin-top: 26px;
  font-size: 22px;
}

.process p {
  margin: 10px 0 0;
  color: var(--muted);
}

.promise {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) 1.4fr;
  gap: 48px;
}

.promise-grid {
  display: grid;
  gap: 14px;
}

.promise-grid article {
  padding: 24px;
  background: var(--paper-2);
  border: 1px solid var(--line);
}

.promise-grid strong {
  font-size: 20px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 34px clamp(18px, 4vw, 56px);
  background: var(--ink);
  color: var(--paper-2);
}

.site-footer p {
  margin: 6px 0 0;
  color: rgba(255, 250, 242, 0.68);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

.cart-drawer.open {
  pointer-events: auto;
  opacity: 1;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 13, 10, 0.46);
}

.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  width: min(430px, 100%);
  height: 100%;
  padding: 24px;
  background: var(--paper-2);
  box-shadow: var(--shadow);
  transform: translateX(24px);
  transition: transform 180ms ease;
}

.cart-drawer.open .cart-panel {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.cart-header h2 {
  margin: 4px 0 0;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 34px;
  font-weight: 500;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--ink);
  color: var(--paper-2);
  font-size: 28px;
  line-height: 1;
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 14px;
  overflow: auto;
  padding: 24px 0;
}

.empty-cart {
  padding: 28px;
  background: var(--paper);
  color: var(--muted);
}

.cart-line {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--paper);
}

.cart-line img {
  width: 76px;
  height: 76px;
  object-fit: cover;
}

.cart-line h3 {
  margin: 0;
  font-size: 16px;
}

.cart-line p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.remove-line {
  min-width: 34px;
  min-height: 34px;
  border: 1px solid var(--line);
  background: transparent;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 20px;
}

.primary-action.full {
  width: 100%;
}

.checkout-dialog,
.account-dialog,
.content-dialog {
  width: min(540px, calc(100% - 28px));
  border: 0;
  padding: 0;
  background: transparent;
}

.content-dialog {
  width: min(760px, calc(100% - 28px));
}

.content-dialog.wide {
  width: min(980px, calc(100% - 28px));
}

.checkout-dialog::backdrop,
.account-dialog::backdrop,
.content-dialog::backdrop {
  background: rgba(17, 13, 10, 0.48);
}

.checkout-form,
.account-form,
.content-panel {
  display: grid;
  gap: 16px;
  padding: 26px;
  background: var(--paper-2);
  box-shadow: var(--shadow);
}

.form-note {
  margin: 0;
  color: var(--muted);
}

.checkout-form label,
.account-form label,
.content-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
}

.checkout-form input,
.checkout-form textarea,
.account-form input,
.account-form textarea,
.content-panel input,
.content-panel textarea,
.content-panel select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  padding: 12px;
  outline: none;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
}

.auth-tabs button {
  min-height: 42px;
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-weight: 900;
}

.auth-tabs button:last-child {
  border-right: 0;
}

.auth-tabs button.active {
  background: var(--ink);
  color: var(--paper-2);
}

.register-field {
  display: none !important;
}

.account-form.registering .register-field {
  display: grid !important;
}

.mini-list {
  display: grid;
  gap: 12px;
  max-height: min(62vh, 620px);
  overflow: auto;
}

.mini-line,
.order-line {
  display: grid;
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: var(--paper);
}

.mini-line {
  grid-template-columns: 70px 1fr auto;
}

.mini-line img {
  width: 70px;
  height: 70px;
  object-fit: cover;
}

.mini-art-button {
  border: 0;
  padding: 0;
  background: transparent;
}

.mini-line h3,
.order-line h3 {
  margin: 0;
  font-size: 17px;
}

.mini-line p,
.order-line p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.mini-line button {
  min-height: 36px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink);
  padding: 0 10px;
}

.mini-actions {
  display: grid;
  gap: 8px;
}

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

.status-pill {
  padding: 6px 9px;
  background: rgba(89, 96, 71, 0.13);
  color: var(--olive);
  font-size: 12px;
  font-weight: 900;
}

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

.legal-copy {
  display: grid;
  gap: 12px;
  color: var(--muted);
}

.legal-copy p {
  margin: 0;
}

.success-message {
  min-height: 24px;
  margin: 0;
  color: var(--olive);
  font-weight: 800;
}

.preview-dialog {
  width: min(1180px, calc(100vw - 34px));
  max-height: calc(100vh - 34px);
  border: 0;
  padding: 0;
  background: transparent;
}

.preview-dialog::backdrop {
  background: rgba(17, 13, 10, 0.72);
}

.preview-frame {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 0;
  max-height: calc(100vh - 34px);
  background: var(--paper-2);
  box-shadow: var(--shadow);
}

.preview-frame img {
  width: 100%;
  height: min(86vh, 900px);
  object-fit: contain;
  background: #efe6da;
}

.preview-caption {
  display: grid;
  align-content: end;
  gap: 12px;
  padding: 32px;
  border-left: 1px solid var(--line);
}

.preview-caption h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.02;
}

.preview-caption p {
  display: grid;
  gap: 12px;
  margin: 0;
  color: var(--muted);
}

.preview-caption span {
  display: block;
}

.preview-description {
  color: #80776d !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
}

.preview-close {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 1;
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: auto auto;
    gap: 14px;
  }

  .desktop-nav,
  .header-search {
    grid-column: 1 / -1;
  }

  .desktop-nav {
    justify-content: start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .header-actions {
    justify-self: end;
  }

  .hero {
    min-height: 860px;
  }

  .hero-content {
    width: min(680px, calc(100% - 36px));
  }

  .hero-art {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    height: 54%;
    transform: none;
  }

  .hero-art-frame {
    right: clamp(28px, 7vw, 70px);
    top: 12%;
    width: min(48vw, 420px);
  }

  .hero-bench {
    right: clamp(24px, 6vw, 70px);
    bottom: 16%;
    width: min(56vw, 520px);
  }

  .hero-side-room,
  .hero-small-art {
    display: none;
  }

  .product-grid,
  .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid.size-small,
  .product-grid.size-medium {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid.size-large {
    grid-template-columns: 1fr;
  }

  .shop-layout {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  .filter-group {
    margin-bottom: 0;
  }

  .preview-frame {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .preview-frame img {
    height: min(70vh, 760px);
  }

  .preview-caption {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: auto;
    padding: 12px 14px;
  }

  .brand strong {
    font-size: 17px;
  }

  .desktop-nav {
    gap: 18px;
    font-size: 14px;
  }

  .header-search {
    grid-template-columns: 1fr 72px;
  }

  .header-actions {
    gap: 8px;
  }

  .account-button {
    min-width: 92px;
    padding: 0 9px;
  }

  .cart-button span {
    display: none;
  }

  .hero {
    min-height: 860px;
  }

  .hero h1 {
    max-width: 420px;
    font-size: clamp(42px, 12vw, 58px);
    line-height: 1.1;
  }

  .hero-copy {
    max-width: 430px;
    font-size: 17px;
  }

  .hero-content {
    padding-top: 56px;
  }

  .hero-art {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 46%;
  }

  .hero-art-frame {
    right: 18px;
    top: 16%;
    width: min(54vw, 220px);
    padding: 8px;
  }

  .hero-art figcaption {
    display: none;
  }

  .hero-bench {
    right: 18px;
    bottom: 16%;
    width: 58%;
    height: 24px;
  }

  .hero-bench::before,
  .hero-bench::after {
    top: 20px;
    height: 50px;
  }

  .hero-panel {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .hero-dots {
    left: 18px;
    bottom: 104px;
  }

  .quick-strip,
  .section-intro,
  .format-cards,
  .process,
  .promise {
    grid-template-columns: 1fr;
  }

  .quick-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .product-grid.size-small,
  .product-grid.size-medium,
  .product-grid.size-large {
    grid-template-columns: 1fr;
  }

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

  .section-intro {
    padding-top: 64px;
  }

  .products-toolbar,
  .site-footer,
  .account-page-header {
    align-items: start;
    flex-direction: column;
  }

  .display-tools {
    justify-content: flex-start;
  }

  .preview-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .preview-frame {
    max-height: calc(100vh - 20px);
  }

  .preview-frame img {
    height: min(64vh, 620px);
  }

  .preview-caption {
    padding: 22px;
  }

  .format-band,
  .framing,
  .promise {
    padding: 64px 18px;
  }

  .cart-line {
    grid-template-columns: 64px 1fr auto;
  }

  .cart-line img {
    width: 64px;
    height: 64px;
  }

  .admin-grid,
  .mini-line,
  .order-line {
    grid-template-columns: 1fr;
  }

  .mini-line img,
  .mini-art-button img {
    width: 100%;
    height: auto;
    aspect-ratio: 1.35;
  }
}
