:root {
  --bg: #F6F1EB;
  --surface: #FCF9F5;
  --ink: #1E1916;
  --muted: #6E655D;
  --hermes: #F37021;
  --hermes-deep: #D85A10;
  --gold: #B68A45;
  --line: rgba(30, 25, 22, 0.12);
  --font-serif: "Cormorant Garamond", "Noto Serif SC", "Songti SC", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--ink);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg);
  /* Subtle archival paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.028'/%3E%3C/svg%3E");
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.45s ease;
}

/* Museum gallery wall atmosphere when switched to gold frame mode */
body[data-frame="museum"] {
  --bg: #E6DED2;
  background-color: #E6DED2;
  background-image:
    radial-gradient(ellipse 85% 42% at 50% 0%, rgba(255, 248, 232, 0.55), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.032'/%3E%3C/svg%3E");
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

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

/* Top Couture Ribbon */
.maison-ribbon {
  background: var(--ink);
  color: #EAE1D5;
  text-align: center;
  padding: 7px 16px;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 15px clamp(20px, 4vw, 56px);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.45s ease;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.header-nav a {
  position: relative;
  padding: 4px 0;
  color: var(--muted);
  transition: color 0.2s ease;
}

.header-nav a:hover {
  color: var(--hermes);
}

.brand-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}

.brand-emblem {
  color: var(--ink);
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.28em;
  line-height: 1.1;
  padding-left: 0.28em;
}

.brand-sub {
  font-size: 9px;
  letter-spacing: 0.26em;
  color: var(--muted);
}

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

.frame-switch,
.mode-pill {
  display: inline-flex;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 2px;
}

.switch-btn,
.mode-btn {
  border: 0;
  background: transparent;
  padding: 6px 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.switch-btn.is-active,
.mode-btn.is-active {
  background: var(--ink);
  color: var(--surface);
}

.bag-btn {
  border: 1px solid var(--ink);
  background: transparent;
  padding: 7px 14px;
  font-size: 12px;
  letter-spacing: 0.12em;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bag-btn:hover {
  background: var(--hermes);
  border-color: var(--hermes);
  color: #fff;
}

/* Hero */
.hero {
  max-width: 1380px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 68px) clamp(20px, 4vw, 56px);
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.15fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--hermes);
  font-weight: 600;
}

.hero-title {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.4vw, 60px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.04em;
}

.hero-sub {
  margin: 0 0 22px;
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.hero-desc {
  margin: 0 0 30px;
  max-width: 44ch;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn-primary {
  border: 1px solid var(--hermes);
  background: var(--hermes);
  color: #fff;
  padding: 13px 28px;
  font-size: 13px;
  letter-spacing: 0.16em;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-primary:hover:not(:disabled) {
  background: var(--hermes-deep);
  border-color: var(--hermes-deep);
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

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

.btn-ghost {
  display: inline-block;
  border: 1px solid var(--line);
  padding: 13px 24px;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--ink);
  transition: border-color 0.2s ease;
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.hero-artwork-btn {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
}

/* Editorial Divider */
.editorial-divider {
  max-width: 1380px;
  margin: 0 auto;
  padding: 6px clamp(20px, 4vw, 56px) 12px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.divider-label {
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--muted);
  white-space: nowrap;
}

/* Artwork Frames: Scarf vs Museum + 3D tilt */
.artwork-frame {
  position: relative;
  transform: perspective(900px) translateY(var(--ty, 0px)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, padding 0.35s ease;
  will-change: transform;
}

.frame-inner {
  position: relative;
  overflow: hidden;
  background: #EDE5DA;
}

.hero-stage .frame-inner img,
.modal-artwork-frame .frame-inner img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 62vh;
  object-fit: contain;
  background: #1C1613;
}

.gallery-grid .frame-inner {
  aspect-ratio: 1 / 1;
}

.gallery-grid .frame-inner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.art-card-trigger:hover .frame-inner img {
  transform: scale(1.035);
}

/* Scarf Hallmark & Card Discover Micro-pill */
.scarf-hallmark {
  display: none;
}

.discover-pill {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  padding: 5px 11px;
  font-size: 10px;
  letter-spacing: 0.2em;
  background: rgba(30, 25, 22, 0.84);
  color: #FCF9F5;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.art-card-trigger:hover .discover-pill,
.art-card-trigger:focus-visible .discover-pill {
  opacity: 1;
  transform: translateY(0);
}

/* Hermès Carré Scarf Mode */
body[data-frame="scarf"] .artwork-frame {
  padding: 20px;
  background-color: var(--surface);
  /* Four geometric corner flourishes */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'%3E%3Cpath d='M2 20V2h18M6 20V6h14' fill='none' stroke='%23F37021' stroke-width='1.3'/%3E%3Ccircle cx='6' cy='6' r='1.6' fill='%23B68A45'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'%3E%3Cpath d='M2 2h18v18M2 6h14v14' fill='none' stroke='%23F37021' stroke-width='1.3'/%3E%3Ccircle cx='16' cy='6' r='1.6' fill='%23B68A45'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'%3E%3Cpath d='M2 2v18h18M6 2v14h14' fill='none' stroke='%23F37021' stroke-width='1.3'/%3E%3Ccircle cx='6' cy='16' r='1.6' fill='%23B68A45'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'%3E%3Cpath d='M20 2v18H2M16 2v14H2' fill='none' stroke='%23F37021' stroke-width='1.3'/%3E%3Ccircle cx='16' cy='16' r='1.6' fill='%23B68A45'/%3E%3C/svg%3E");
  background-position: 6px 6px, calc(100% - 6px) 6px, 6px calc(100% - 6px), calc(100% - 6px) calc(100% - 6px);
  background-repeat: no-repeat;
  border: 1px solid rgba(30, 25, 22, 0.14);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.75),
    inset 0 2px 6px rgba(30, 25, 22, 0.06),
    0 22px 46px rgba(30, 25, 22, 0.09);
}

body[data-frame="scarf"] .artwork-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2.5px solid var(--hermes);
  outline: 1px solid var(--gold);
  outline-offset: 2px;
  pointer-events: none;
  z-index: 2;
}

body[data-frame="scarf"] .artwork-frame::after {
  content: "";
  position: absolute;
  inset: 20px;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.05) 0px,
    rgba(255, 255, 255, 0.05) 2px,
    transparent 2px,
    transparent 5px
  );
  pointer-events: none;
  z-index: 3;
}

body[data-frame="scarf"] .frame-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle 260px at var(--mx, 50%) var(--my, 50%),
    rgba(255, 250, 240, 0.24),
    rgba(255, 250, 240, 0) 70%
  );
  opacity: var(--glare, 0);
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 2;
}

body[data-frame="scarf"] .scarf-hallmark {
  display: block;
  position: absolute;
  right: 26px;
  bottom: 4px;
  z-index: 4;
  padding: 0 6px;
  background: var(--surface);
  font-family: var(--font-serif);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--gold);
}

/* Museum Gold Frame Mode */
body[data-frame="museum"] .artwork-frame {
  padding: 22px;
  background: linear-gradient(138deg, #DFBE74 0%, #9E7533 34%, #6D4E1D 62%, #C9A255 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 214, 0.8),
    inset 0 0 0 3px #D8B76F,
    inset 0 0 0 9px #5E4116,
    inset 0 0 0 12px #B68D42,
    0 26px 52px rgba(28, 21, 16, 0.26);
}

/* Subtle warm gallery overhead spotlight above each frame */
body[data-frame="museum"] .artwork-frame::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: -18px;
  height: 20px;
  background: radial-gradient(ellipse at center, rgba(255, 243, 205, 0.72), transparent 72%);
  pointer-events: none;
}

body[data-frame="museum"] .artwork-frame .frame-inner {
  padding: 15px;
  background: #F4EFE6;
  border: 1px solid #C8BEA9;
  box-shadow:
    inset 0 0 0 1px rgba(155, 138, 108, 0.35),
    inset 0 4px 14px rgba(0, 0, 0, 0.26);
}

/* Museum Brushed Brass Plaque */
.museum-plaque {
  display: none;
}

body[data-frame="museum"] .museum-plaque {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: center;
  margin-top: -2px;
  padding: 5px 16px;
  background: linear-gradient(135deg, #D5B36A 0%, #EFE0B8 48%, #B48B3E 100%);
  border: 1px solid #8A6526;
  box-shadow: 0 3px 8px rgba(30, 25, 22, 0.14);
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #2A1E0C;
}

.museum-plaque::before,
.museum-plaque::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #6F5019;
  opacity: 0.7;
}

/* Collection Grid */
.collection {
  max-width: 1380px;
  margin: 0 auto;
  padding: 16px clamp(20px, 4vw, 56px) 84px;
}

.collection-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  margin-bottom: 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab-btn {
  border: 0;
  background: transparent;
  padding: 8px 14px;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

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

.tab-btn.is-active {
  color: var(--ink);
  border-bottom-color: var(--hermes);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
}

.art-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.art-card.reveal-pending {
  opacity: 0;
  transform: translateY(18px);
}

.art-card.reveal-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.art-card-trigger {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
}

.art-card-trigger:hover .artwork-frame {
  --ty: -4px;
}

.card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
}

.card-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.card-price {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--ink);
  white-space: nowrap;
}

.card-sub {
  margin: -8px 0 0;
  padding: 0 2px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Footer */
.site-footer {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px) 56px;
  text-align: center;
}

.footer-rule {
  height: 1px;
  background: var(--line);
  margin-bottom: 36px;
}

.footer-brand {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 16px;
  letter-spacing: 0.28em;
}

.footer-meta {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

/* Native <dialog> + Top-Layer Entry/Exit Animations per Modern Web Guidance */
dialog {
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  max-width: min(1060px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  box-shadow: 0 32px 80px rgba(30, 25, 22, 0.28);
  opacity: 0;
  transition-property: opacity, transform, display, overlay;
  transition-duration: 0.28s;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  transition-behavior: allow-discrete;
}

@media (prefers-reduced-motion: no-preference) {
  dialog {
    transform: scale(0.95);
  }
  .drawer-dialog {
    transform: translateX(100%);
  }
}

dialog:is([open]):where(:not([data-closing])) {
  display: block;
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  dialog:is([open]):where(:not([data-closing])) {
    transform: scale(1);
  }
  .drawer-dialog:is([open]):where(:not([data-closing])) {
    transform: translateX(0);
  }
}

@starting-style {
  dialog:is([open]):where(:not([data-closing])) {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @starting-style {
    dialog:is([open]):where(:not([data-closing])) {
      transform: scale(0.95);
    }
    .drawer-dialog:is([open]):where(:not([data-closing])) {
      transform: translateX(100%);
    }
  }
}

dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  background-color: rgba(30, 25, 22, 0);
  backdrop-filter: blur(0px);
  overflow: hidden;
  overscroll-behavior: contain;
  transition-property: background-color, backdrop-filter, display, overlay;
  transition-duration: 0.28s;
  transition-timing-function: ease-out;
  transition-behavior: allow-discrete;
}

dialog:is([open]):where(:not([data-closing]))::backdrop {
  background-color: rgba(30, 25, 22, 0.56);
  backdrop-filter: blur(4px);
}

@starting-style {
  dialog:is([open]):where(:not([data-closing]))::backdrop {
    background-color: rgba(30, 25, 22, 0);
    backdrop-filter: blur(0px);
  }
}

.modal-shell {
  position: relative;
  padding: clamp(20px, 3vw, 40px);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 4;
}

.icon-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.icon-close:hover {
  background: var(--ink);
  color: var(--surface);
}

.modal-layout {
  display: grid;
  grid-template-columns: minmax(260px, 1.15fr) minmax(260px, 0.85fr);
  gap: clamp(24px, 3.5vw, 44px);
  align-items: center;
}

.modal-stage-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-zoom-stage {
  cursor: zoom-in;
}

.modal-zoom-stage img {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: var(--zx, 50%) var(--zy, 50%);
}

.modal-zoom-stage.is-zoomed {
  cursor: zoom-out;
}

.modal-zoom-stage.is-zoomed img {
  transform: scale(1.85);
}

.modal-controls-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-nav-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-step-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 6px 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.nav-step-btn:hover {
  border-color: var(--ink);
}

.modal-counter {
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--muted);
  min-width: 52px;
  text-align: center;
}

.modal-frame-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 2px;
}

.modal-title {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 500;
}

.modal-subtitle {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.modal-spec {
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--muted);
}

.modal-price {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
}

.hairline {
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}

.modal-desc {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

.edition-group {
  margin-bottom: 24px;
}

.edition-label {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.edition-options {
  display: grid;
  gap: 8px;
}

.edition-btn {
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 13px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.edition-btn.is-active {
  border-color: var(--hermes);
  background: rgba(243, 112, 33, 0.08);
}

/* Bag Drawer Dialog */
.drawer-dialog {
  margin: 0 0 0 auto;
  width: min(440px, 100vw);
  height: 100dvh;
  max-height: 100dvh;
  border: 0;
  border-left: 1px solid var(--line);
}

.drawer-dialog:is([open]):where(:not([data-closing])) {
  display: flex;
  flex-direction: column;
}

.drawer-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px;
}

.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.drawer-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bag-empty {
  margin: 48px 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.bag-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.bag-thumb {
  width: 64px;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg);
}

.bag-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bag-item-title {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: 16px;
}

.bag-item-spec {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.bag-item-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.bag-remove {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 11px;
  color: var(--muted);
  text-decoration: underline;
}

.drawer-footer {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.bag-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
  font-size: 14px;
}

.bag-total-row strong {
  font-family: var(--font-serif);
  font-size: 22px;
}

.certificate-box {
  margin-bottom: 16px;
  background: linear-gradient(180deg, #FFFDF9 0%, #FAF4E8 100%);
  border: 1.5px solid var(--gold);
  padding: 8px;
  box-shadow: 0 8px 20px rgba(30, 25, 22, 0.08);
}

.cert-border {
  border: 1px dashed rgba(182, 138, 69, 0.8);
  padding: 16px 14px;
  text-align: center;
}

.cert-kicker {
  margin: 0 0 6px;
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--hermes);
}

.cert-heading {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
}

.cert-serial {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.cert-summary {
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.6;
}

.cert-delivery {
  margin: 0 0 12px;
  font-size: 11px;
  color: var(--hermes-deep);
}

.cert-seal {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.cert-stamp {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  dialog,
  dialog::backdrop {
    transition-duration: 0.1s;
  }
  .artwork-frame,
  .gallery-grid .frame-inner img,
  .art-card.reveal-visible,
  .modal-zoom-stage img {
    transition: none;
    transform: none;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }
  .header-nav {
    display: none;
  }
  .brand-mark {
    justify-self: start;
    align-items: flex-start;
    text-align: left;
  }
  .brand-name {
    padding-left: 0;
  }
  .hero,
  .modal-layout {
    grid-template-columns: 1fr;
  }
  .modal-shell {
    padding: 58px 20px 24px;
  }
  .modal-close-btn {
    top: 12px;
    right: 14px;
  }
}

@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .frame-switch,
  .maison-ribbon {
    display: none;
  }
}
