@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter-300.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Cinzel;
  src: url("/assets/fonts/cinzel-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Cinzel;
  src: url("/assets/fonts/cinzel-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
:root {
  --ink: #0b1320;
  --gold: #c5a059;
  --line: #e2e8f0;
  --muted: #64748b;
  --soft: #f8fafc;
  --serif: Cinzel, "Songti SC", SimSun, serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 2px 5px #0b132008;
  --shadow-hover: 0 8px 22px #0b132014;
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  font-family: Inter, "Microsoft YaHei", sans-serif;
  color: var(--ink);
}
[hidden] {
  display: none !important;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
a {
  text-underline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #a97828;
  outline-offset: 3px;
}
::selection {
  background: #c5a059;
  color: #0b1320;
}
input,
textarea {
  caret-color: #91651c;
}
img {
  max-width: 100%;
}
body:has(dialog[open]) {
  overflow: hidden;
}
.os-theme-yalina {
  --os-size: 14px;
  --os-padding-perpendicular: 4px;
  --os-padding-axis: 8px;
  --os-track-border-radius: 10px;
  --os-handle-border-radius: 10px;
  --os-handle-bg: #9b9285b3;
  --os-handle-bg-hover: #817565;
  --os-handle-bg-active: #946b25;
  --os-handle-min-size: 40px;
  --os-handle-perpendicular-size: 75%;
  --os-handle-perpendicular-size-hover: 100%;
  --os-handle-perpendicular-size-active: 100%;
}
dialog > .os-theme-yalina {
  --os-padding-axis: 16px;
}
body:has(dialog[open]) > .os-scrollbar {
  visibility: hidden;
}
.os-scrollbar.os-scrollbar-edge:not(.os-scrollbar-unusable) {
  opacity: 1;
  visibility: visible;
}
#mobileNavDrawer a[aria-current="location"] {
  color: #946b25;
  background: #faf3e4;
}
#lead-verification {
  min-width: 0;
}
#lead-verification:empty,
#verification-status:empty {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .os-theme-yalina,
  .os-theme-yalina * {
    transition: none !important;
  }
}
.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  background: #fff;
  padding: 12px;
}
.skip:focus {
  top: 8px;
}
.preview-toolbar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 8px 24px;
  background: var(--ink);
  color: #cbd5e1;
  font-size: 11px;
  line-height: 1.5;
}
.preview-notice {
  max-width: 800px;
}
.preview-link {
  color: #e0c992;
  text-decoration: underline;
  white-space: nowrap;
}

.topbar {
  background: #ba6d38;
  color: white;
  font-size: 11px;
  padding: 7px 0;
}
.official-header {
  background: #fffffff7;
}
.official-header > div > div {
  gap: 24px;
}
.official-header nav {
  gap: 22px;
  white-space: nowrap;
}
.official-header nav .nav-item .text-sm {
  font-size: 12px;
}
.official-header [data-i18n="navLeadBtn"] {
  letter-spacing: 0.02em;
}
@media (max-width: 1499px) {
  .official-header #navAuthBtn {
    display: none;
  }
}
.official-header nav > .nav-item {
  margin-left: 0;
  font-size: 12px;
}
.official-header nav .nav-item > span:last-child {
  width: 0;
}
.official-header nav .nav-item[aria-current="location"] {
  color: #8b652c;
}
.official-header nav .nav-item[aria-current="location"] > span:last-child,
.official-header nav .nav-item:hover > span:last-child {
  width: 100%;
}
html[lang="en"] .nav-english {
  display: none;
}
.official-header .shrink-0 {
  flex-shrink: 0;
}
.official-header #navAuthBtn {
  white-space: nowrap;
}
.official-header button {
  flex-shrink: 0;
}
/* Language switcher: globe trigger + small menu (hover, click/tap, keyboard). */
.lang-switch {
  position: relative;
}
.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  transition:
    border-color 0.15s,
    color 0.15s;
}
.lang-trigger .fa-globe {
  font-size: 14px;
  color: #64748b;
  transition: color 0.15s;
}
.lang-trigger .lang-caret {
  font-size: 9px;
  color: #94a3b8;
  transition: transform 0.18s var(--ease);
}
.lang-switch.is-open .lang-trigger,
.lang-trigger:hover {
  border-color: #c5a059;
  color: #8b652c;
}
.lang-switch.is-open .lang-trigger .fa-globe,
.lang-trigger:hover .fa-globe {
  color: #8b652c;
}
.lang-switch.is-open .lang-caret {
  transform: rotate(180deg);
}
.lang-trigger:focus-visible,
.lang-menu button:focus-visible {
  outline: 2px solid #c5a059;
  outline-offset: 2px;
}
.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  min-width: 148px;
  padding: 4px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition:
    opacity 0.14s,
    transform 0.14s var(--ease),
    visibility 0s 0.14s;
}
/* Invisible bridge so the pointer can travel from trigger to menu. */
.lang-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  height: 8px;
}
.lang-switch.is-open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.14s,
    transform 0.14s var(--ease);
}
.lang-menu button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 10px;
  border-radius: 6px;
  background: transparent;
  color: #334155;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}
.lang-menu button:hover {
  background: #f8fafc;
  color: #0b1320;
}
.lang-menu button .fa-check {
  font-size: 11px;
  visibility: hidden;
}
.lang-menu button.is-current {
  color: #8b652c;
  font-weight: 600;
}
.lang-menu button.is-current .fa-check {
  visibility: visible;
}
@media (prefers-reduced-motion: reduce) {
  .lang-menu,
  .lang-switch.is-open .lang-menu,
  .lang-trigger .lang-caret {
    transition: none;
  }
}
#mobileNavDrawer {
  transform-origin: top center;
}
#mobileNavDrawer:not(.hidden) {
  animation: menu-enter 0.22s var(--ease) both;
}

.gold-button,
.button,
form button:not(.quiet),
.admin-page button:not(.quiet) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  background: var(--ink);
  border: 1px solid transparent;
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.18s;
}
.gold-button {
  background: var(--gold);
  color: #0b1320;
}
.gold-button:hover {
  background: #d3b477;
}
.button:hover,
form button:not(.quiet):hover,
.admin-page button:not(.quiet):hover {
  background: #29384c;
}
.quiet {
  padding: 9px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: white;
  color: #334155;
  font-size: 12px;
  font-weight: 500;
}
.quiet:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}
.text-link {
  color: #8b652c;
  font-size: 13px;
  text-decoration: underline;
  margin-top: 20px;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.eyebrow {
  color: #976f32;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  margin-bottom: 28px;
  border-bottom: 1px solid #f1f5f9;
}
.filters button {
  border: 0;
  border-radius: 30px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  padding: 8px 17px;
  transition:
    background 0.2s,
    color 0.2s;
}
.filters button:hover {
  background: #e8edf2;
}
.filters button[aria-pressed="true"] {
  background: var(--ink);
  color: white;
}
.masonry-grid {
  column-count: 1;
  column-gap: 24px;
}
.product {
  break-inside: avoid;
  margin-bottom: 24px;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  box-shadow:
    var(--shadow-card),
    inset 0 0 0 1px #e2e8f0;
  transition: box-shadow 0.3s ease;
}
.product:hover,
.product:focus-within {
  box-shadow:
    var(--shadow-hover),
    inset 0 0 0 1px #e2e8f0;
}
.product-cover {
  position: relative;
  background: #f1f5f9;
  overflow: hidden;
}
.product-cover > button {
  display: block;
  width: 100%;
  padding: 0;
  text-align: inherit;
}
.product-cover > button > img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.product:nth-child(2n) .product-cover > button > img {
  height: 286px;
}
.product:hover .product-cover > button > img,
.product:focus-within .product-cover > button > img {
  transform: scale(1.05);
}
.product-info {
  padding: 16px;
}
.product-code {
  display: block;
  color: #64748b;
  font:
    10px/1.5 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
}
.product-category {
  color: #64748b;
  font-size: 10px;
}
.product-info h3 {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  margin: 5px 0 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}
.product-footer p {
  min-width: 0;
  flex: 1;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.detail-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink);
  transition: color 0.2s;
}
.detail-button:hover {
  color: #8b652c;
}
.detail-button i {
  transition: transform 0.2s var(--ease);
}
.detail-button:hover i,
.detail-button:focus-visible i {
  transform: translateX(3px);
}
.product-tags {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 46px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  pointer-events: none;
}
.product-tag,
.collection-tag {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 4px;
  font-size: 9px;
  line-height: 1.3;
}
.product-tag {
  background: #fffffff0;
  color: #334155;
}
.collection-tag {
  background: #0b1320d9;
  color: #fff;
}
.image-count {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 4px 6px;
  background: #0b1320b3;
  color: white;
  font-size: 9px;
  border-radius: 4px;
  pointer-events: none;
}
.image-placeholder {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 42px 24px 28px;
  text-align: center;
  background: #334155;
  color: #e2e8f0;
}
.product:nth-child(2n) .image-placeholder {
  min-height: 286px;
}
.image-placeholder > :not(.sample-backdrop) {
  position: relative;
  z-index: 1;
}
.image-placeholder > .sample-backdrop {
  position: absolute;
  inset: -16px;
  width: calc(100% + 32px);
  height: calc(100% + 32px);
  filter: blur(14px);
  opacity: 0.22;
}
.lock-emblem {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: #c5a059;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #ffffff26;
  margin-bottom: 3px;
  animation: lock-float 2.6s ease-in-out infinite;
}
.lock-emblem i {
  font-size: 18px;
}
.image-placeholder strong {
  font-family: var(--serif);
  font-size: 15px;
  color: #fff;
}
.image-placeholder p {
  font-size: 11px;
  max-width: 205px;
  line-height: 1.75;
  margin: 0;
  color: #e2e8f0;
}
.lock-prompt {
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  background: white;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  margin-top: 5px;
}
.empty {
  column-span: all;
  padding: 40px 24px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  line-height: 1.8;
}
.masonry-grid > .feedback {
  column-span: all;
}
.sample-caption {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin: -4px 0 24px;
}
.news-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    var(--shadow-card),
    inset 0 0 0 1px #e2e8f0;
  transition: box-shadow 0.3s ease;
}
.news-card:hover,
.news-card:focus-within {
  box-shadow:
    var(--shadow-hover),
    inset 0 0 0 1px #e2e8f0;
}
.news-card-media {
  position: relative;
  height: 192px;
  overflow: hidden;
}
.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.news-card:hover .news-card-media img,
.news-card:focus-within .news-card-media img {
  transform: scale(1.05);
}
.news-card-no-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #c5a059;
  background: var(--ink);
}
.news-card-no-image > i {
  font-size: 34px;
}
.news-card-no-image > span:not(.news-category):not(.news-date) {
  font: 500 15px var(--serif);
  letter-spacing: 0.08em;
}
.news-category {
  position: absolute;
  left: 14px;
  top: 14px;
  color: #fff;
  background: #0b1320db;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 10px;
}
.news-date {
  position: absolute;
  right: 14px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fffffff2;
  color: #475569;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
}
.news-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}
.news-card h3 {
  font-size: 14px;
  line-height: 1.6;
  font-weight: 600;
  margin: 0 0 10px;
  min-height: 44.8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.news-card:hover h3 {
  color: #8b652c;
}
.news-card p {
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 20px;
}
.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}
.news-card-footer > span {
  font-size: 10px;
  color: var(--muted);
}
#news-list > .empty {
  grid-column: 1/-1;
}

dialog {
  position: fixed;
  border: 0;
  border-radius: 16px;
  padding: 32px;
  width: calc(100% - 32px);
  max-width: 560px;
  max-height: 90dvh;
  margin: auto;
  overflow-x: hidden;
  color: var(--ink);
  background: white;
  box-shadow: 0 24px 80px #0004;
}
dialog[data-overlayscrollbars] {
  position: fixed;
}
dialog[open] {
  z-index: 60;
  animation: dialog-enter 0.22s var(--ease) both;
}
dialog[open]:not(:modal) {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: fit-content;
}
body:has(dialog[open]:not(:modal))::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #0b1320b3;
  backdrop-filter: blur(3px);
  animation: backdrop-enter 0.2s ease both;
}
dialog::backdrop {
  background: #0b1320b3;
  backdrop-filter: blur(3px);
}
dialog[open]::backdrop {
  animation: backdrop-enter 0.2s ease both;
}
dialog h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
  padding-right: 20px;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.dialog-head .eyebrow {
  margin-bottom: 8px;
}
.dialog-intro,
dialog > p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin: 12px 0 22px;
}
.close.quiet {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  z-index: 2;
}
.close.quiet:hover {
  background: #f1f5f9;
  color: var(--ink);
}
.dialog-head .close {
  position: static;
  flex-shrink: 0;
}
form {
  display: grid;
  gap: 14px;
}
#lead-form {
  grid-template-columns: 1fr 1fr;
}
label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  color: #334155;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #cbd5e1;
  background: white;
  padding: 11px 12px;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  color: #0f172a;
  transition:
    border-color 0.2s,
    background 0.2s;
}
textarea {
  resize: vertical;
  min-height: 95px;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
textarea:focus,
select:focus {
  border-color: #a97828;
  outline: 2px solid #a97828;
  outline-offset: -2px;
  box-shadow: none;
}
.full {
  grid-column: 1/-1;
}
.consent,
.check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  line-height: 1.7;
}
.consent input,
.check input {
  width: auto;
  margin-top: 3px;
  accent-color: #8b652c;
}
.trap {
  position: absolute;
  left: -9999px;
}
.feedback {
  font-size: 12px;
  white-space: pre-wrap;
  line-height: 1.8;
  margin: 0;
}
.feedback:empty {
  display: none;
}
.feedback.error {
  color: #b42318;
}
.feedback.success {
  color: #17623e;
}
#lead-application-notice:not(:empty) {
  padding: 10px 12px;
  background: #faf6eb;
  color: #79591e;
  border-radius: 6px;
  margin-bottom: 18px;
}
.privacy-note {
  font-size: 10px !important;
  line-height: 1.7;
  color: var(--muted);
  margin: 16px 0 !important;
}
#lead-dialog .text-link {
  display: block;
  margin: 18px auto 0;
  font-size: 11px;
}
#auth-dialog {
  max-width: 448px;
  text-align: center;
  padding-top: 36px;
}
.access-emblem {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #faf3e4;
  color: #946b25;
  font-size: 21px;
}
#auth-dialog h2 {
  padding: 0;
  font-size: 20px;
}
#auth-form {
  text-align: left;
  margin-top: 24px;
}
#auth-form input {
  text-align: center;
  font:
    600 17px/1.5 ui-monospace,
    Consolas,
    monospace;
  letter-spacing: 0.08em;
  padding: 14px;
}
#auth-form button {
  background: #c5a059;
  color: var(--ink);
  padding: 13px;
}
#auth-form button:hover {
  background: #d3b477;
}
#auth-dialog .text-link {
  margin-top: 20px;
  font-size: 12px;
}
/* Product detail follows the design draft: wide two-column gallery,
   dark image panel, sticky toolbar and a spec card beside the enquiry. */
#product-dialog {
  width: calc(100% - 32px);
  max-width: 1152px;
  max-height: 94dvh;
  padding: 0;
  border-radius: 24px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 32px 100px #0b132066;
}
#product-dialog::backdrop {
  background: #0b1320d9;
  backdrop-filter: blur(10px);
}
.product-detail-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px 12px 32px;
  background: white;
  border-bottom: 1px solid #f1f5f9;
}
.product-detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
}
.product-detail-meta .collection-tag {
  padding: 4px 12px;
  border-radius: 999px;
  color: #b08a45;
  background: #c5a05926;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.product-detail-meta .product-code {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.product-detail-meta .product-code::before {
  content: "";
  width: 1px;
  height: 14px;
  background: #cbd5e1;
}
.access-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
}
.access-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.access-tag.is-authorized {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}
.product-detail-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.detail-original {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition:
    background 0.18s,
    color 0.18s;
}
.detail-original[hidden] {
  display: none;
}
.detail-original i {
  color: var(--gold);
  font-size: 11px;
}
.detail-original:hover {
  background: #f1f5f9;
  color: var(--ink);
}
#product-dialog .product-detail-bar .close.quiet {
  position: static;
  width: 36px;
  height: 36px;
  color: #94a3b8;
  font-size: 16px;
}
#product-dialog .product-detail-bar .close.quiet:hover {
  color: #334155;
}
.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.detail-images {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 28px;
  background: #0f172af2;
  border-right: 1px solid #1e293b;
}
.detail-images > .empty {
  display: grid;
  place-items: center;
  min-height: 320px;
  margin: 0;
  border-radius: 16px;
  background: #020617;
  color: #94a3b8;
}
.detail-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(320px, calc(94dvh - 240px), 590px);
  overflow: hidden;
  border: 1px solid #ffffff1a;
  border-radius: 16px;
  background: #020617;
  box-shadow: 0 25px 50px -12px #00000080;
  cursor: zoom-in;
  user-select: none;
}
.detail-main {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform-origin: center center;
  transition: transform 0.3s ease-out;
}
.detail-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  visibility: hidden;
}
.detail-stage.is-loading .detail-placeholder {
  visibility: visible;
}
.detail-stage.is-loading .detail-main {
  opacity: 0;
}
/* Appears only if the original takes longer than a moment. */
.detail-stage.is-loading::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 18px;
  height: 18px;
  border: 2px solid #ffffff40;
  border-top-color: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation:
    detail-spin 0.8s linear infinite,
    detail-spinner-in 0.2s ease-out 0.15s forwards;
}
@keyframes detail-spin {
  to {
    rotate: 360deg;
  }
}
@keyframes detail-spinner-in {
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .detail-stage.is-loading::after {
    animation: detail-spinner-in 0.2s ease-out 0.15s forwards;
  }
}
.detail-counter,
.detail-zoom-hint {
  position: absolute;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid #ffffff1a;
  border-radius: 999px;
  background: #00000099;
  backdrop-filter: blur(12px);
  color: #ffffffe6;
  font-size: 11px;
  font-weight: 500;
  pointer-events: none;
}
.detail-counter {
  right: 16px;
  border-color: #ffffff26;
  background: #0b1320d9;
  color: white;
  font:
    600 12px/1.5 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  letter-spacing: 0.05em;
}
.detail-zoom-hint {
  left: 16px;
  max-width: calc(100% - 110px);
}
.detail-zoom-hint::before {
  content: "\f00e";
  font: 900 10px/1 "Font Awesome 7 Free";
  color: var(--gold);
}
.detail-zoom-hint[hidden] {
  display: none;
}
.detail-nav {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: auto 0;
  border: 1px solid #ffffff33;
  border-radius: 999px;
  background: #00000073;
  backdrop-filter: blur(12px);
  color: white;
  font-size: 14px;
  box-shadow: 0 10px 15px -3px #0000004d;
  cursor: pointer;
  opacity: 0;
  transition:
    opacity 0.2s,
    background 0.2s,
    transform 0.2s;
}
.detail-nav-prev {
  left: 14px;
}
.detail-nav-next {
  right: 14px;
}
.detail-stage:hover .detail-nav,
.detail-nav:focus-visible {
  opacity: 1;
}
.detail-nav:hover,
.detail-nav:focus-visible {
  background: #000000bf;
  transform: scale(1.08);
}
.detail-nav:focus-visible {
  outline: 2px solid #c5a059;
  outline-offset: 2px;
}
@media (hover: none) {
  .detail-stage {
    cursor: auto;
  }
  .detail-zoom-hint {
    display: none;
  }
  .detail-nav {
    opacity: 0.85;
  }
}
.detail-thumb-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid #ffffff1a;
}
.detail-thumb-label,
.detail-thumb-count {
  flex-shrink: 0;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.detail-thumb-count {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.detail-thumbs {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  gap: 12px;
  min-width: 0;
  overflow-x: auto;
  padding: 6px 6px;
  scrollbar-width: none;
}
.detail-thumbs::-webkit-scrollbar {
  display: none;
}
.detail-thumbs button {
  position: relative;
  flex: 0 0 80px;
  height: 80px;
  padding: 0;
  overflow: hidden;
  border: 2px solid #ffffff33;
  border-radius: 12px;
  background: #020617;
  opacity: 0.5;
  cursor: pointer;
  transition:
    border-color 0.2s,
    opacity 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
.detail-thumbs button:hover,
.detail-thumbs button:focus-visible {
  border-color: #ffffff99;
  opacity: 1;
}
.detail-thumbs button:focus-visible {
  outline: 2px solid #c5a059;
  outline-offset: 2px;
}
.detail-thumbs button[aria-pressed="true"] {
  border-color: var(--gold);
  opacity: 1;
  transform: scale(1.05);
  box-shadow: 0 0 0 4px #c5a0594d;
}
.detail-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.detail-thumb-index {
  position: absolute;
  right: 4px;
  bottom: 4px;
  padding: 0 4px;
  border-radius: 4px;
  background: #00000099;
  color: #ffffffe6;
  font:
    9px/1.5 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
}
.detail-image-note {
  text-align: center;
  color: var(--muted);
  font-size: 10px;
  margin: 0;
}
.product-detail-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
  padding: 36px;
  background: white;
}
.product-detail-eyebrow {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
#product-title {
  font-size: 24px;
  line-height: 1.4;
  padding: 0;
  color: #0f172a;
}
#product-description {
  font-size: 13px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.9;
  white-space: pre-wrap;
  margin: 14px 0 22px;
}
.product-specs {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid #e2e8f0e6;
  border-radius: 16px;
  background: #f8fafccc;
  box-shadow: 0 1px 2px #0b13200d;
  color: #334155;
  font-size: 12px;
  margin: 0;
}
.product-specs > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.product-specs[hidden] {
  display: none;
}
/* Labels and values are admin text: a long unbroken word (e.g. a 40-character
   English label) must wrap inside its column instead of running into the value. */
.product-specs dt {
  flex: 0 0 auto;
  min-width: 0;
  max-width: 45%;
  color: #94a3b8;
  line-height: 1.7;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.product-specs dt i {
  width: 14px;
  margin-right: 6px;
  color: #94a3b8;
  text-align: center;
}
.product-specs dd {
  text-align: right;
  margin: 0;
  line-height: 1.7;
  font-weight: 500;
  color: #1e293b;
  flex: 1 1 0;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.product-detail-action {
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}
#product-contact {
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 10px 15px -3px #0b132033;
  transition:
    background 0.2s,
    box-shadow 0.2s;
}
#product-contact:hover {
  background: var(--gold);
}
#product-contact i {
  transition: transform 0.2s;
}
#product-contact:hover i {
  transform: translateX(2px);
}
.product-detail-action .privacy-note {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 6px;
  text-align: center;
  font-size: 11px !important;
  color: #94a3b8;
  margin: 10px 0 0 !important;
}
.product-detail-action .privacy-note i {
  color: #10b981;
  font-size: 10px;
}
@media (max-width: 1023px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-images {
    border-right: 0;
    border-bottom: 1px solid #1e293b;
  }
  .detail-stage {
    height: clamp(320px, 60dvh, 520px);
  }
}
#news-dialog {
  max-width: 720px;
  padding: 36px;
}
.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #8b652c;
  font-size: 11px;
  margin-bottom: 12px;
}
#news-cover:empty {
  display: none;
}
#news-cover img {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 24px;
}
.news-body {
  white-space: pre-wrap;
  line-height: 1.95;
  font-size: 14px;
  margin: 22px 0;
}
#lead-nudge {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 45;
  background: white;
  width: 340px;
  max-width: calc(100% - 32px);
  padding: 24px;
  box-shadow: 0 12px 40px #0b132024;
  border-radius: 14px;
  animation: nudge-enter 0.5s var(--ease) both;
}
#lead-nudge.is-leaving {
  animation: nudge-leave 0.18s ease both;
}
#lead-nudge h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  margin: 12px 0 18px;
}
#lead-nudge > button {
  position: absolute;
  right: 12px;
  top: 12px;
  border: 0;
  background: transparent;
  padding: 5px;
}
.nudge-icon {
  color: #8b652c;
  font-size: 22px;
}
#lead-nudge a {
  display: block;
  background: var(--ink);
  padding: 12px;
  text-align: center;
  border-radius: 8px;
  color: white;
  font-size: 12px;
  transition: background 0.2s;
}
#lead-nudge a:hover {
  background: #29384c;
}

.admin-page {
  background: #f1f5f9;
  font-size: 14px;
}
.admin-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.admin-brand {
  display: flex;
  gap: 14px;
  align-items: center;
}
.brand-symbol {
  height: 44px;
  width: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #0b1320;
  color: #c5a059;
  font:
    bold 24px Cinzel,
    serif;
}
.admin-brand strong {
  display: block;
  font-size: 17px;
}
.admin-brand small {
  display: block;
  color: #64748b;
  font-size: 11px;
  margin-top: 4px;
}
.admin-header-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 12px;
}
.admin-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 30px;
}
.admin-page h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px;
}
.admin-page h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 18px;
}
.admin-page h3 {
  font-size: 14px;
  font-weight: 600;
}
.admin-page p {
  line-height: 1.7;
}
.admin-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 20px;
}
.admin-overview p {
  color: #64748b;
  font-size: 12px;
}
.admin-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: visible;
}
.admin-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 20px;
  overflow: auto;
  white-space: nowrap;
}
.admin-page .admin-tabs button,
.admin-page .admin-tabs button.quiet {
  background: transparent;
  color: #64748b;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 19px 20px;
  display: flex;
  gap: 9px;
}
.admin-page .admin-tabs button:not(.quiet) {
  color: #9b742e;
  border-bottom-color: #c5a059;
  background: #fdfbf6;
}
#admin-content {
  padding: 24px;
}
.admin-editor {
  padding: 0 24px 24px;
  margin: 0 0 24px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.admin-editor form {
  grid-template-columns: 1fr 1fr;
}
.admin-editor-bar {
  position: sticky;
  top: 0;
  z-index: 3;
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin: 0 -24px 4px;
  padding: 14px 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  border-radius: 9px 9px 0 0;
}
.admin-editor-bar h2 {
  margin: 0;
  font-size: 16px;
}
#editor-status {
  flex: 1 1 180px;
  margin: 0;
}
.admin-editor-bar .row-actions {
  margin-left: auto;
  flex-wrap: nowrap;
}
.admin-editor :is(input, textarea, select, button, .admin-hint) {
  scroll-margin-top: 76px;
}
.admin-hint,
.admin-upload small {
  color: #475569;
  font-size: 13px;
}
.admin-upload {
  max-width: 420px;
}
.admin-catalog-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.admin-catalog-tools input {
  flex: 1 1 220px;
  max-width: 360px;
}
.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.admin-page .admin-filters button,
.admin-page .admin-filters button.quiet {
  padding: 7px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 500;
}
.admin-page .admin-filters button:hover {
  background: #f1f5f9;
  color: #334155;
}
.admin-page .admin-filters button[aria-pressed="true"],
.admin-page .admin-filters button[aria-pressed="true"]:hover {
  background: #0b1320;
  border-color: #0b1320;
  color: #fff;
}
.admin-search {
  display: flex;
  flex: 1 1 280px;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.admin-search input {
  flex: 1;
  max-width: none;
}
.admin-page input::placeholder,
.admin-page textarea::placeholder {
  color: #64748b;
  opacity: 1;
}
.admin-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.admin-row > div:first-of-type {
  flex: 1;
  min-width: 0;
}
.admin-row p {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}
.admin-row h3 {
  overflow-wrap: anywhere;
}
.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-thumbnail {
  width: 64px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  background: #f1f5f9;
}
.admin-images {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.admin-images > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 112px;
}
.admin-images img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}
.admin-images button {
  width: 100%;
  padding: 7px 8px;
}
.admin-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 22px;
}
.admin-toolbar input {
  max-width: 350px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
th,
td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  background: #f8fafc;
  color: #64748b;
  white-space: nowrap;
}
td {
  white-space: pre-wrap;
}
td button {
  margin: 3px;
}
.login {
  max-width: 430px;
  margin: 64px auto;
  padding: 36px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 30px #0b132008;
}
.login .brand-symbol {
  margin-bottom: 24px;
}
.login p {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 24px;
}
#admin-status {
  min-height: 24px;
  margin-bottom: 16px;
}
.status-pill {
  display: inline-flex;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 20px;
  background: #f1f5f9;
  color: #64748b;
}
.admin-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 16px;
}
.admin-list-summary {
  color: #334155;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.admin-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.admin-product-grid > .empty {
  grid-column: 1/-1;
}
.admin-product-card {
  min-width: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px #e2e8f0;
  transition: box-shadow 0.25s;
}
.admin-product-card:hover {
  box-shadow:
    inset 0 0 0 1px #c5a059,
    0 4px 12px #0b132008;
}
.admin-product-cover {
  position: relative;
  height: 190px;
  background: #f1f5f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #475569;
  font-size: 12px;
}
.admin-page button.admin-product-cover {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 500;
  overflow: hidden;
}
.admin-page button.admin-product-cover:hover {
  background: #e8eef5;
  color: #475569;
}
.admin-page button.admin-product-cover:focus-visible {
  outline-offset: -3px;
}
.admin-product-cover > i {
  font-size: 28px;
}
.admin-product-cover .admin-thumbnail {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}
.admin-access-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  border-radius: 5px;
  padding: 4px 7px;
  font-size: 10px;
}
.admin-access-badge.is-public {
  background: #ecfdf5;
  color: #17623e;
}
.admin-access-badge.is-restricted {
  background: #fffbeb;
  color: #79591e;
}
.admin-image-count {
  position: absolute;
  bottom: 10px;
  right: 10px;
  color: white;
  background: #0b1320bf;
  border-radius: 4px;
  padding: 3px 7px;
  font-size: 10px;
}
.admin-product-card > div:not(.admin-product-cover) {
  padding: 14px;
}
.admin-product-card h3 {
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.admin-product-card p {
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-product-card .row-actions {
  padding-top: 0 !important;
}
.admin-product-card .row-actions button {
  flex: 1;
}
.admin-publish-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 10px;
}
.admin-publish-badge.is-published {
  background: #ecfdf5;
  color: #17623e;
}
.admin-publish-badge.is-draft {
  background: #f1f5f9;
  color: #475569;
}
.admin-mail-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
}
.admin-mail-badge.is-pending,
.admin-mail-badge.is-sending {
  background: #fffbeb;
  color: #79591e;
}
.admin-mail-badge.is-accepted {
  background: #ecfdf5;
  color: #17623e;
}
.admin-mail-badge.is-failed {
  background: #fff5f4;
  color: #b42318;
}
.admin-page button.quiet {
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s;
}
.admin-page button.danger {
  color: #b42318;
  background: #fff5f4;
  border-color: #fee4e2;
}
.admin-page button.danger:hover {
  background: #fee4e2;
  border-color: #fecdca;
}
.admin-page tbody tr {
  transition: background 0.15s;
}
.admin-page tbody tr:hover {
  background: #f8fafc;
}
.admin-page td {
  max-width: 300px;
  overflow-wrap: anywhere;
}
.admin-page .admin-row {
  padding: 16px 0;
}
@media (max-width: 1099px) {
  .admin-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 799px) {
  .admin-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 479px) {
  .admin-product-grid {
    grid-template-columns: 1fr;
  }
}
code {
  overflow-wrap: anywhere;
}
@keyframes dialog-enter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes backdrop-enter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes menu-enter {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes lock-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}
@keyframes nudge-enter {
  from {
    opacity: 0;
    transform: translateX(-32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes nudge-leave {
  to {
    opacity: 0;
    transform: translateX(-16px);
  }
}
.sample-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #eee8df;
}
.sample-crop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transition: transform 0.7s var(--ease);
}
.sample-crop img {
  position: absolute;
  width: 400%;
  max-width: none;
  height: 200%;
  object-fit: fill;
}
.product:hover .product-cover > button > .sample-visual > .sample-crop,
.product:focus-within .product-cover > button > .sample-visual > .sample-crop {
  transform: scale(1.05);
}
.sample-cell-0 img {
  left: 0;
  top: 0;
}
.sample-cell-1 img {
  left: -100%;
  top: 0;
}
.sample-cell-2 img {
  left: -200%;
  top: 0;
}
.sample-cell-3 img {
  left: -300%;
  top: 0;
}
.sample-cell-4 img {
  left: 0;
  top: -100%;
}
.sample-cell-5 img {
  left: -100%;
  top: -100%;
}
.sample-cell-6 img {
  left: -200%;
  top: -100%;
}
.sample-cell-7 img {
  left: -300%;
  top: -100%;
}
.sample-detail {
  width: 100%;
  border-radius: 12px;
}
@media (min-width: 640px) {
  .masonry-grid {
    column-count: 2;
  }
}
@media (min-width: 1024px) {
  .masonry-grid {
    column-count: 3;
  }
}
@media (min-width: 1280px) {
  .masonry-grid {
    column-count: 4;
  }
}
@media (max-width: 1279px) {
  .official-header nav {
    gap: 18px;
  }
  .official-header > div > div {
    gap: 18px;
  }
  .official-header #navAuthBtn {
    display: none;
  }
  .official-header nav .nav-item .text-sm {
    font-size: 12px;
  }
  html[lang="en"] .official-header [data-i18n="navLeadBtn"] {
    max-width: 96px;
    line-height: 1.4;
  }
}
@media (max-width: 1099px) {
  .official-header nav {
    display: none;
  }
  .official-header #mobileMenuBtn {
    display: block;
  }
  #mobileNavDrawer:not(.hidden) {
    display: block;
  }
}
@media (max-width: 639px) {
  :root {
    scroll-padding-top: 90px;
  }
  .preview-toolbar {
    flex-direction: column;
    gap: 2px;
    padding: 7px 16px;
    text-align: center;
    font-size: 10px;
  }
  .official-header > div > div {
    gap: 8px;
    height: 76px;
  }
  .official-header .shrink-0 {
    gap: 8px;
    flex-shrink: 1;
  }
  .official-header .shrink-0 > div:first-child {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }
  .official-header .shrink-0 > div:last-child > div:first-child {
    font-size: 13px;
  }
  .official-header .shrink-0 > div:last-child > div:last-child {
    font-size: 8px;
  }
  .official-header [data-lead] {
    display: none;
  }
  .lang-trigger {
    padding: 0 8px;
  }
  .topbar .tracking-widest {
    display: none;
  }
  .product-info {
    padding: 18px;
  }
  .product-info h3 {
    font-size: 14px;
    white-space: normal;
  }
  .product-cover > button > img {
    height: 380px;
  }
  .product:nth-child(2n) .product-cover > button > img {
    height: 340px;
  }
  .product:nth-child(2n) .product-cover > button > .sample-visual {
    aspect-ratio: 3/4;
  }
  .filters {
    margin-bottom: 22px;
  }
  dialog {
    padding: 24px;
  }
  dialog h2 {
    font-size: 20px;
  }
  #lead-form,
  .admin-editor form {
    grid-template-columns: 1fr;
  }
  #product-dialog {
    width: calc(100% - 16px);
    max-height: 96dvh;
    padding: 0;
    border-radius: 20px;
  }
  .product-detail-bar {
    padding: 10px 12px 10px 20px;
  }
  .product-detail-meta {
    gap: 8px;
  }
  .product-detail-meta .product-code {
    gap: 8px;
    font-size: 12px;
  }
  .access-tag,
  .detail-original {
    display: none;
  }
  .detail-images {
    padding: 14px;
    gap: 12px;
  }
  .detail-stage {
    height: clamp(300px, 52dvh, 420px);
  }
  .detail-thumb-label,
  .detail-thumb-count {
    display: none;
  }
  .detail-thumbs button {
    flex-basis: 64px;
    height: 64px;
  }
  .sample-detail {
    max-width: 320px;
    margin: auto;
  }
  .product-detail-copy {
    padding: 24px 20px;
  }
  #product-title {
    font-size: 21px;
  }
  #news-dialog {
    padding: 28px 24px;
  }
  .news-card-media {
    height: 210px;
  }
  #lead-nudge {
    left: 16px;
    bottom: 16px;
  }
  .admin-header {
    padding: 16px;
  }
  .admin-brand strong {
    font-size: 14px;
  }
  .admin-header-actions {
    gap: 8px;
  }
  .admin-main {
    padding: 20px 14px;
  }
  .admin-tabs {
    padding: 0 4px;
  }
  .admin-page .admin-tabs button,
  .admin-page .admin-tabs button.quiet {
    padding: 16px 13px;
  }
  #admin-content {
    padding: 16px;
  }
  .admin-row {
    flex-wrap: wrap;
  }
  .row-actions {
    width: 100%;
  }
  .admin-editor {
    padding: 0 16px 16px;
  }
  .admin-editor-bar {
    margin: 0 -16px 4px;
    padding: 12px 16px;
  }
  .login {
    padding: 26px;
    margin: 24px auto;
  }
  .admin-overview {
    align-items: flex-start;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .product:hover .sample-crop,
  .product:focus-within .sample-crop,
  .product:hover .product-cover > button > img,
  .product:focus-within .product-cover > button > img,
  .news-card:hover img,
  .news-card:focus-within img {
    transform: none !important;
  }
}

section.bg-white .text-brand-gold,
#about .text-brand-gold,
#news .text-brand-gold {
  color: #8b652c;
}
section.bg-white .text-slate-400,
#about .text-slate-400,
header .text-slate-400 {
  color: #64748b;
}

/* Admin workspace: overview and focused editing, scoped away from the showroom. */
.admin-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; margin-bottom:28px; }
.admin-page .admin-metric { display:flex; flex-direction:column; align-items:flex-start; gap:9px; padding:20px; background:#fff; color:#334155; border:1px solid #e2e8f0; border-radius:12px; text-align:left; min-width:0; }
.admin-page button.admin-metric:hover { background:#faf8f3; border-color:#b99552; color:#0b1320; }
.admin-metric > span { font-size:13px; font-weight:500; }
.admin-metric strong { font-size:28px; line-height:1.2; color:#0b1320; font-variant-numeric:tabular-nums; }
.admin-metric small { font-size:12px; line-height:1.6; color:#526176; }
.admin-catalog-tools { flex-wrap:wrap; }
.admin-catalog-tools select { width:auto; min-width:130px; }
.admin-mail-tools { display:flex; align-items:center; flex-wrap:wrap; gap:12px; padding:20px 0; font-size:13px; }
.admin-mail-tools select { width:auto; margin-left:auto; }
.admin-product-card .row-actions { flex-wrap:wrap; }
.admin-product-card .row-actions button:first-child { flex-basis:100%; }
.admin-product-card p.admin-category-name { margin:8px 0 0; color:#475569; }
#admin-content:has(> #editor) > :not(#editor) { display:none; }
.admin-editor { margin:0; background:#fff; border:0; padding-bottom:20px; }
.admin-editor-bar { top:0; }
.admin-page :is(button,a,input,textarea,select):focus-visible { outline:2px solid #926b2c; outline-offset:3px; }
@media (max-width:900px) { .admin-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:540px) {
  .admin-metrics { gap:10px; margin-bottom:20px; }
  .admin-page .admin-metric { padding:14px; }
  .admin-metric strong { font-size:24px; }
  .admin-metric small { font-size:11px; }
  .admin-catalog-tools select { flex:1; min-width:0; }
  .admin-catalog-tools .admin-filters { flex-basis:100%; }
  .admin-mail-tools select { margin-left:0; }
  .admin-overview .status-pill { display:none; }
}
