:root {
  --red: #770b08;
  --red-2: #a01812;
  --red-deep: #250403;
  --gold: #d3aa55;
  --gold-soft: #f2d489;
  --wood: #4b2413;
  --ink: #191310;
  --ivory: #fbf5e8;
  --paper: #efe1c8;
  --muted: rgba(251, 245, 232, 0.72);
  --dark-muted: rgba(25, 19, 16, 0.62);
  --line: rgba(211, 170, 85, 0.28);
  --ease: cubic-bezier(.19, 1, .22, 1);
  --ease-game: cubic-bezier(.16, 1.22, .24, 1);
  --product-media-size: clamp(220px, 32vw, 360px);
  --product-thumb-size: 58px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  cursor: url("mouse-cursor-32.png") 8 8, auto;
}

body.is-pointer-down,
body.is-pointer-down * {
  cursor: url("mouse-cursor-click-32.png") 8 8, auto;
}

@media (pointer: coarse) {
  html,
  body.is-pointer-down,
  body.is-pointer-down * {
    cursor: auto;
  }
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #130302 0%, var(--red-deep) 46%, #160806 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.click-ripple {
  position: fixed;
  z-index: 9999;
  left: var(--ripple-x);
  top: var(--ripple-y);
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 221, 124, .72);
  border-radius: 999px;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.22);
  box-shadow:
    0 0 10px rgba(255, 220, 120, .32),
    inset 0 0 10px rgba(255, 220, 120, .18);
  animation: clickRipple 720ms var(--ease) forwards;
}

.click-ripple::before,
.click-ripple::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(255, 210, 98, .48);
  border-radius: inherit;
}

.click-ripple::before {
  animation: clickRippleInner 720ms var(--ease) forwards;
}

.click-ripple::after {
  animation: clickRippleOuter 720ms var(--ease) forwards;
}

@keyframes clickRipple {
  0% {
    opacity: .72;
    transform: translate(-50%, -50%) scale(.22);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(4.6);
  }
}

@keyframes clickRippleInner {
  0% {
    opacity: .56;
    transform: scale(.72);
  }

  100% {
    opacity: 0;
    transform: scale(2.2);
  }
}

@keyframes clickRippleOuter {
  0% {
    opacity: .38;
    transform: scale(.95);
  }

  100% {
    opacity: 0;
    transform: scale(3.2);
  }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .18;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(180deg, #000, transparent 76%);
}

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

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

button {
  font: inherit;
}

.site-header {
  position: fixed;
  left: 22px;
  right: 22px;
  top: 18px;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 22px;
  min-height: 64px;
  padding: 10px 12px 10px 10px;
  color: var(--ivory);
  border: 1px solid rgba(211, 170, 85, .24);
  border-radius: 8px;
  background: rgba(28, 5, 3, .58);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .22);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--red-deep);
  border: 1px solid rgba(255, 239, 190, .5);
  border-radius: 8px;
  background: linear-gradient(145deg, var(--gold-soft), var(--gold));
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 0 32px rgba(211, 170, 85, .28);
}

.brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: rgba(251, 245, 232, .62);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.nav-links a,
.header-action,
.cart-trigger,
.panel-link,
.consultation a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .02em;
}

.nav-links a {
  padding: 0 14px;
  color: rgba(251, 245, 232, .74);
}

.nav-links a:hover {
  color: var(--gold-soft);
  background: rgba(251, 245, 232, .08);
}

.header-action,
.cart-trigger,
.panel-link,
.consultation a {
  color: var(--red-deep);
  padding: 0 18px;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  box-shadow: 0 12px 30px rgba(211, 170, 85, .18);
}

.cart-trigger {
  gap: 8px;
  border: 1px solid rgba(242, 212, 137, .34);
  cursor: pointer;
}

.cart-trigger b {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  color: var(--ivory);
  background: rgba(70, 6, 4, .9);
  font-size: 12px;
}

.altar-scroll {
  min-height: 100vh;
}

.altar-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 96px clamp(18px, 3vw, 46px) 34px;
  color: var(--ivory);
  overflow: hidden;
}

.altar-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 72% 19%, rgba(255, 187, 80, .18), transparent 24%),
    linear-gradient(115deg, rgba(35, 4, 3, .96), rgba(106, 10, 7, .9) 48%, rgba(24, 3, 2, .98));
}

.altar-stage::after {
  content: "";
  position: absolute;
  left: -20vw;
  right: -20vw;
  bottom: -24vh;
  z-index: -1;
  height: 48vh;
  background: radial-gradient(ellipse at 50% 30%, rgba(207, 54, 26, .35), transparent 62%);
  pointer-events: none;
}

.intro-video-layer {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 209, 104, .16), transparent 30%),
    #080201;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 780ms ease,
    filter 900ms ease;
}

.intro-video-layer video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(1.08) contrast(1.05);
}

body.is-intro-playing .intro-video-layer {
  opacity: 1;
}

body.is-intro-revealing .intro-video-layer {
  opacity: .18;
  filter: blur(6px);
}

body.is-intro-done .intro-video-layer {
  opacity: 0;
  visibility: hidden;
}

body.is-intro-playing .site-header {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}

body.is-intro-revealing .site-header,
body.is-intro-done .site-header {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

body.is-intro-playing .scene-copy,
body.is-intro-playing .altar-camera,
body.is-intro-playing .hit-area,
body.is-intro-playing .scan-line,
body.is-intro-playing .cine-toggle,
body.is-intro-playing .step-dock,
body.is-intro-playing .calibration-panel {
  opacity: 0;
  transform: translateY(18px) scale(.992);
  pointer-events: none;
}

body.is-intro-revealing .scene-copy,
body.is-intro-revealing .altar-camera,
body.is-intro-revealing .hit-area,
body.is-intro-revealing .cine-toggle,
body.is-intro-revealing .step-dock,
body.is-intro-revealing .calibration-panel,
body.is-intro-done .scene-copy,
body.is-intro-done .altar-camera,
body.is-intro-done .hit-area,
body.is-intro-done .cine-toggle,
body.is-intro-done .step-dock,
body.is-intro-done .calibration-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

body.is-intro-revealing .scan-line,
body.is-intro-done .scan-line {
  opacity: var(--scan-opacity, .2);
  transform: translateY(0) scale(1);
  pointer-events: none;
}

.site-header,
.altar-camera,
.hit-area,
.scan-line,
.cine-toggle,
.step-dock,
.calibration-panel {
  transition:
    opacity 760ms ease,
    transform 920ms var(--ease);
}

.scene-copy {
  position: absolute;
  left: clamp(24px, 4vw, 64px);
  top: 118px;
  z-index: 8;
  max-width: 430px;
  pointer-events: none;
  transform: translateY(calc(var(--intro-lift, 0) * -18px));
  opacity: var(--intro-opacity, 1);
  transition:
    opacity 420ms ease,
    transform 620ms var(--ease);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-soft);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .22em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: 0;
}

h1 {
  max-width: 10ch;
  font-size: clamp(44px, 5.2vw, 80px);
  line-height: .92;
}

.scene-copy p:not(.eyebrow) {
  max-width: 34ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.altar-viewport {
  position: relative;
  aspect-ratio: 1672 / 941;
  width: min(100%, 1480px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(211, 170, 85, .28);
  border-radius: 8px;
  background: #3a0503;
  box-shadow:
    0 42px 120px rgba(0, 0, 0, .4),
    inset 0 0 0 1px rgba(251, 245, 232, .05);
  transform: translateZ(0);
  -webkit-touch-callout: none;
  user-select: none;
  transition:
    border-color 760ms ease,
    border-radius 760ms var(--ease),
    box-shadow 900ms var(--ease),
    background 760ms ease;
}

body.is-intro-playing:not(.is-intro-revealing) .altar-viewport {
  border-color: transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.altar-camera {
  position: absolute;
  inset: 0;
  transform-origin: 50% 50%;
  transform: translate3d(0, 0, 0);
  transition:
    transform 980ms var(--ease),
    filter 820ms var(--ease),
    opacity 760ms ease;
  will-change: transform;
}

body.is-cine-preview .altar-camera {
  transform-origin: 0 0;
  transform:
    translate3d(var(--cine-tx, 0%), var(--cine-ty, 0%), 0)
    scale(var(--cine-scale, 1));
  filter: saturate(1.08) contrast(1.04);
  transition:
    transform 700ms cubic-bezier(.16, .76, .18, 1),
    filter 150ms ease;
}

body.is-cine-preview.is-cine-revealing .altar-camera,
body.is-cine-preview.is-cine-settled .altar-camera {
  filter: saturate(1.02) contrast(1.02) blur(5px);
  transition:
    transform 700ms cubic-bezier(.16, .76, .18, 1),
    filter 140ms ease;
}

body.is-cine-preview.is-cine-retreating .altar-camera {
  filter: saturate(1.06) contrast(1.03);
  transition:
    transform 360ms cubic-bezier(.5, 0, .2, 1),
    filter 180ms ease;
}

.altar-picture,
.altar-image {
  display: block;
  width: 100%;
  height: 100%;
}

.altar-image {
  object-fit: cover;
  filter: none;
  -webkit-user-drag: none;
  user-select: none;
}

.scan-line {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent, rgba(255, 225, 145, .2), transparent),
    radial-gradient(circle at var(--active-x, 50%) var(--active-y, 50%), rgba(255, 216, 128, .2), transparent 18%);
  mix-blend-mode: screen;
  opacity: var(--scan-opacity, .2);
  pointer-events: none !important;
  transition: background 720ms var(--ease);
}

.cine-toggle {
  position: absolute;
  z-index: 24;
  right: 14px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(242, 212, 137, .52);
  border-radius: 8px;
  color: var(--gold-soft);
  background:
    linear-gradient(180deg, rgba(93, 7, 4, .82), rgba(38, 4, 3, .78));
  box-shadow:
    0 0 18px rgba(255, 193, 72, .12),
    0 12px 28px rgba(0, 0, 0, .24);
  padding: 0;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  backdrop-filter: blur(14px);
  transition:
    color 220ms ease,
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms var(--ease);
}

.cine-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 227, 150, .8);
  box-shadow:
    0 0 24px rgba(255, 201, 82, .22),
    0 16px 34px rgba(0, 0, 0, .3);
}

.cine-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
}

.cine-icon svg {
  display: block;
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(255, 200, 82, .24));
}

.cine-toggle.is-active {
  color: var(--red-deep);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  border-color: rgba(255, 238, 170, .9);
  box-shadow:
    0 0 24px rgba(255, 209, 94, .32),
    0 14px 32px rgba(0, 0, 0, .28);
}

.altar-viewport.is-cine-preview .object-glow,
.altar-viewport.is-cine-preview .cover-overlay,
.altar-viewport.is-cine-preview .scene-aura {
  pointer-events: none;
}

.altar-viewport.is-cine-preview.is-cine-revealing .object-glow,
.altar-viewport.is-cine-preview.is-cine-revealing .cover-overlay,
.altar-viewport.is-cine-preview.is-cine-settled .object-glow,
.altar-viewport.is-cine-preview.is-cine-settled .cover-overlay {
  transition: none;
}

.cine-nav {
  position: fixed;
  right: max(20px, calc((100vw - min(1040px, calc(100vw - 36px))) / 2));
  bottom: 108px;
  z-index: 64;
  display: flex;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 220ms ease,
    transform 320ms var(--ease);
}

body.is-cine-preview.is-product-inspect .cine-nav {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.cine-nav-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(242, 212, 137, .48);
  border-radius: 8px;
  color: var(--gold-soft);
  background:
    linear-gradient(180deg, rgba(93, 7, 4, .86), rgba(38, 4, 3, .8));
  box-shadow:
    0 0 18px rgba(255, 193, 72, .12),
    0 12px 28px rgba(0, 0, 0, .24);
  backdrop-filter: blur(14px);
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    opacity 180ms ease,
    transform 180ms var(--ease);
}

.cine-nav-button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(255, 227, 150, .78);
  color: var(--ivory);
}

.cine-nav-button:disabled {
  opacity: .34;
  cursor: not-allowed;
}

.cine-nav-button svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.object-glow {
  position: absolute;
  z-index: 3;
  width: var(--w);
  max-width: none;
  left: var(--x);
  top: var(--y);
  display: block;
  height: auto;
  opacity: 1;
  cursor: grab;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  mix-blend-mode: normal;
  overflow: visible;
  filter: none;
  will-change: transform;
  transition:
    opacity 420ms ease,
    transform 320ms var(--ease-game);
}

.object-glow.is-motion-target::after,
.cover-overlay.is-motion-target::after {
  content: "☯";
  position: absolute;
  z-index: 18;
  right: -7px;
  top: 10%;
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  color: rgba(255, 239, 174, .96);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  background: rgba(55, 7, 4, .54);
  box-shadow:
    0 0 0 1px rgba(255, 220, 126, .34),
    0 0 8px rgba(255, 239, 172, .58),
    0 0 18px rgba(255, 185, 48, .28);
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, -50%) scale(.72);
  transition:
    opacity 240ms ease,
    transform 260ms var(--ease);
}

.altar-viewport.is-banner-hover .object-glow.is-motion-target::after,
.altar-viewport.is-banner-hover .cover-overlay.is-motion-target::after {
  opacity: .44;
  transform: translate(50%, -50%) scale(1);
}

.altar-viewport.is-banner-intro .object-glow.is-motion-target::after,
.altar-viewport.is-banner-intro .cover-overlay.is-motion-target::after {
  animation: markerSpark 1180ms ease-out both;
  animation-delay: var(--intro-delay, 0s);
}

.object-glow.is-motion-target.is-near::after,
.object-glow.is-motion-target:hover::after,
.cover-overlay.is-motion-target.is-near::after,
.cover-overlay.is-motion-target:hover::after,
.object-glow.is-cine-focus::after,
.cover-overlay.is-cine-focus::after {
  opacity: .88;
  transform: translate(50%, -50%) scale(1.22);
}

.heo-overlay::after {
  right: 8%;
  top: 18%;
  transform: translate(0, -50%) scale(.72);
}

.glow-than-tai-overlay::after {
  left: -12%;
  right: auto;
  top: 12%;
  transform: translate(0, -50%) scale(.72);
}

.altar-viewport.is-banner-hover .glow-than-tai-overlay {
  z-index: 10;
}

.altar-viewport.is-banner-hover .heo-overlay::after {
  transform: translate(0, -50%) scale(1);
}

.altar-viewport.is-banner-hover .glow-than-tai-overlay::after {
  transform: translate(0, -50%) scale(1);
}

.heo-overlay.is-motion-target.is-near::after,
.heo-overlay.is-motion-target:hover::after {
  transform: translate(0, -50%) scale(1.22);
}

.glow-than-tai-overlay.is-motion-target.is-near::after,
.glow-than-tai-overlay.is-motion-target:hover::after {
  transform: translate(0, -50%) scale(1.22);
}

.object-photo {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  opacity: 0;
  filter: none;
  image-rendering: auto;
  -webkit-user-drag: none;
  user-select: none;
  transition:
    opacity 180ms ease,
    filter 180ms ease;
}

.scene-aura {
  position: absolute;
  z-index: 2;
  left: var(--x);
  top: var(--y);
  width: var(--aura-w);
  aspect-ratio: .92;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(ellipse at 50% 54%,
      rgba(255, 246, 190, .48) 0%,
      rgba(255, 214, 94, .34) 24%,
      rgba(255, 133, 34, .2) 48%,
      rgba(255, 74, 18, .08) 66%,
      transparent 82%);
  filter: blur(14px);
  mix-blend-mode: screen;
  transition:
    opacity 220ms ease,
    width 220ms var(--ease),
    filter 220ms ease;
}

.altar-viewport.is-banner-hover .object-glow {
  opacity: 1;
}

.altar-viewport.is-banner-hover .object-photo {
  opacity: 1;
  filter: none;
}

.object-glow.is-always-visible .object-photo {
  opacity: 1;
}

.altar-viewport.is-banner-hover .scene-aura {
  opacity: 0;
}

.object-glow.is-active,
.object-glow.is-editing {
  z-index: 7;
  transform: translate(-50%, -50%);
}

.object-glow.is-editing {
  animation: none;
}

.object-glow:hover,
.object-glow.is-near,
.object-glow.is-cine-focus {
  z-index: 6;
  opacity: 1;
  transform: translate(-50%, calc(-50% - 9px)) scale(1.038);
  animation: nearObjectPop 520ms var(--ease-game) both;
}

.scene-aura.is-near {
  opacity: .86;
  transform: translate(-50%, -50%) scale(1.16);
  background:
    radial-gradient(ellipse at 50% 54%,
      rgba(255, 246, 190, .5) 0%,
      rgba(255, 214, 94, .38) 26%,
      rgba(255, 133, 34, .24) 52%,
      rgba(255, 74, 18, .1) 70%,
      transparent 84%);
  filter: blur(22px);
}

.object-tooltip {
  display: none !important;
  position: absolute;
  z-index: 13;
  left: var(--tooltip-x, 50%);
  top: var(--tooltip-y, 50%);
  display: block;
  max-width: min(220px, 38vw);
  color: var(--gold-soft);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, .86),
    0 0 12px rgba(255, 45, 22, .64),
    0 0 22px rgba(255, 195, 70, .34);
  opacity: 0;
  pointer-events: none;
  transform: translate(0, -50%);
  transition:
    opacity 150ms ease,
    left 120ms ease,
    top 120ms ease,
    transform 180ms var(--ease);
}

.object-tooltip.is-visible {
  opacity: 1;
  transform: translate(0, -50%);
}

.object-tooltip.is-left {
  text-align: right;
  transform: translate(-100%, -50%);
}

.object-glow.is-muted {
  opacity: 1;
}

.altar-viewport.is-banner-hover .object-glow.is-muted {
  opacity: 1;
}

.altar-viewport.is-banner-hover .scene-aura.is-muted {
  opacity: 0;
}

.glow-than-tai-overlay {
  --ratio: 542 / 819;
}

.glow-tho-dia-outline {
  --ratio: 592 / 808;
}

.glow-than-tai-overlay,
.glow-tho-dia-outline {
  --x: 50%;
  --y: 50%;
  --w: 13%;
  z-index: 20;
}

.cover-overlay {
  position: absolute;
  z-index: 8;
  left: var(--x);
  top: var(--y);
  display: block;
  width: var(--w);
  max-width: none;
  height: auto;
  cursor: grab;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  outline: 0 solid transparent;
  will-change: transform;
  transition: transform 320ms var(--ease-game);
}

.cover-overlay img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  filter: none;
  -webkit-user-drag: none;
  user-select: none;
  transition: filter 260ms var(--ease);
}

.nhang-overlay {
  z-index: 40;
}

.den-overlay {
  z-index: 45;
}

.lien-than-tai-overlay {
  z-index: 2;
}

.lien-than-tai-overlay.is-editing {
  z-index: 7;
}

.tu-than-tai-marker {
  z-index: 0;
  background: transparent;
}

.bo-tach-overlay {
  z-index: 30;
}

.de-tuong-overlay {
  z-index: 23;
}

.de-overlay {
  z-index: 25;
}

.sp2-overlay {
  z-index: 17;
}

.sp1-overlay {
  z-index: 18;
}

.tu-than-tai-marker::after {
  left: 50%;
  right: auto;
  top: 50%;
  transform: translate(-50%, -50%) scale(.72);
}

.altar-viewport.is-banner-hover .tu-than-tai-marker::after {
  transform: translate(-50%, -50%) scale(1);
}

.tu-than-tai-marker.is-motion-target.is-near::after,
.tu-than-tai-marker.is-motion-target:hover::after {
  transform: translate(-50%, -50%) scale(1.22);
}

.altar-viewport.is-banner-hover .cover-overlay.is-motion-target img {
  filter: none;
}

.altar-viewport.is-banner-intro .object-glow.is-motion-target,
.altar-viewport.is-banner-intro .cover-overlay.is-motion-target {
  animation: introObjectHop 1180ms cubic-bezier(.22, .74, .26, 1) both;
  animation-delay: var(--intro-delay, 0s);
}

.altar-viewport.is-banner-hover .object-glow.is-near .object-photo,
.altar-viewport.is-banner-hover .object-glow:hover .object-photo,
.altar-viewport.is-cine-preview .object-glow.is-cine-focus .object-photo,
.altar-viewport.is-banner-hover .cover-overlay.is-motion-target.is-near img,
.altar-viewport.is-banner-hover .cover-overlay.is-motion-target:hover img,
.altar-viewport.is-cine-preview .cover-overlay.is-cine-focus img {
  animation: none;
  filter:
    drop-shadow(0 0 9px rgba(255, 246, 184, .78))
    drop-shadow(0 0 22px rgba(255, 195, 62, .6))
    drop-shadow(0 0 46px rgba(255, 102, 18, .34))
    drop-shadow(0 0 72px rgba(255, 66, 10, .16));
}

@keyframes introObjectHop {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }

  34% {
    transform: translate(-50%, calc(-50% - 3px)) scale(1.003);
  }

  58% {
    transform: translate(-50%, calc(-50% + .8px)) scale(.999);
  }

  78% {
    transform: translate(-50%, calc(-50% - .5px)) scale(1.0005);
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes markerSpark {
  0% {
    opacity: 0;
    transform: translate(50%, -50%) scale(.48);
  }

  34% {
    opacity: .92;
    transform: translate(50%, -50%) scale(1.24);
  }

  64% {
    opacity: .36;
    transform: translate(50%, -50%) scale(.92);
  }

  100% {
    opacity: .44;
    transform: translate(50%, -50%) scale(1);
  }
}

@keyframes nearObjectPop {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }

  44% {
    transform: translate(-50%, calc(-50% - 12px)) scale(1.052);
  }

  72% {
    transform: translate(-50%, calc(-50% - 7px)) scale(1.032);
  }

  100% {
    transform: translate(-50%, calc(-50% - 9px)) scale(1.038);
  }
}

@keyframes nearCoverPop {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }

  44% {
    transform: translate(-50%, calc(-50% - 12px)) scale(1.052);
  }

  72% {
    transform: translate(-50%, calc(-50% - 7px)) scale(1.032);
  }

  100% {
    transform: translate(-50%, calc(-50% - 9px)) scale(1.038);
  }
}

.cover-overlay.is-editing {
  outline: 1px solid rgba(255, 228, 120, .82);
  outline-offset: 3px;
  animation: none;
}

.cover-overlay.is-motion-target.is-near,
.cover-overlay.is-motion-target:hover,
.cover-overlay.is-cine-focus {
  transform: translate(-50%, calc(-50% - 9px)) scale(1.038);
  animation: nearCoverPop 520ms var(--ease-game) both;
}

.altar-viewport.is-cine-preview.is-cine-revealing .object-glow.is-cine-focus,
.altar-viewport.is-cine-preview.is-cine-revealing .cover-overlay.is-cine-focus {
  z-index: 15;
  animation: none;
  transform: translate(-50%, calc(-50% - 3px)) scale(1.006);
}

.altar-viewport.is-cine-preview.is-cine-settled .object-glow.is-cine-focus,
.altar-viewport.is-cine-preview.is-cine-settled .cover-overlay.is-cine-focus {
  z-index: 15;
  animation: none;
  transform: translate(-50%, calc(-50% - 3px)) scale(1.006);
}

.altar-viewport.is-cine-preview.is-cine-retreating .object-glow.is-cine-focus,
.altar-viewport.is-cine-preview.is-cine-retreating .cover-overlay.is-cine-focus {
  animation: cineObjectRetreat 320ms cubic-bezier(.44, 0, .24, 1) both;
}

.altar-viewport.is-cine-preview.is-cine-revealing .object-glow.is-cine-focus .object-photo,
.altar-viewport.is-cine-preview.is-cine-revealing .cover-overlay.is-cine-focus img,
.altar-viewport.is-cine-preview.is-cine-settled .object-glow.is-cine-focus .object-photo,
.altar-viewport.is-cine-preview.is-cine-settled .cover-overlay.is-cine-focus img {
  filter:
    drop-shadow(0 0 7px rgba(255, 250, 205, .68))
    drop-shadow(0 0 20px rgba(255, 205, 70, .48))
    drop-shadow(0 0 44px rgba(255, 119, 22, .26))
    drop-shadow(0 0 72px rgba(255, 70, 12, .12));
}

@keyframes cineObjectLift {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }

  35% {
    transform: translate(-50%, calc(-50% - 2px)) scale(1.004);
  }

  68% {
    transform: translate(-50%, calc(-50% - 5px)) scale(1.012);
  }

  100% {
    transform: translate(-50%, calc(-50% - 5px)) scale(1.012);
  }
}

@keyframes cineObjectRetreat {
  0% {
    transform: translate(-50%, calc(-50% - 5px)) scale(1.012);
  }

  62% {
    transform: translate(-50%, calc(-50% - 2px)) scale(1.004);
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

.cover-overlay.tu-than-tai-marker.is-motion-target.is-near,
.cover-overlay.tu-than-tai-marker.is-motion-target:hover,
.cover-overlay.tu-than-tai-marker.is-cine-focus {
  transform: translate(-50%, -50%);
  animation: none;
}

.cover-overlay.is-static-element.is-near,
.cover-overlay.is-static-element:hover,
.cover-overlay.is-locked.is-near,
.cover-overlay.is-locked:hover {
  transform: translate(-50%, -50%);
  animation: none;
}

.cover-overlay.is-locked {
  cursor: default;
  pointer-events: none;
  outline: 0;
}

.resize-handle {
  position: absolute;
  z-index: 20;
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid var(--red-deep);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
  pointer-events: auto;
}

.resize-nw {
  left: -7px;
  top: -7px;
  cursor: nwse-resize;
}

.resize-ne {
  right: -7px;
  top: -7px;
  cursor: nesw-resize;
}

.resize-sw {
  left: -7px;
  bottom: -7px;
  cursor: nesw-resize;
}

.resize-se {
  right: -7px;
  bottom: -7px;
  cursor: nwse-resize;
}

.is-editing:not(.is-locked) > .resize-handle {
  display: block;
}

.top-overlay,
.decor-overlay,
.cat-overlay,
.bo-tach-overlay,
.de-tuong-overlay,
.de-overlay,
.sp1-overlay,
.sp2-overlay,
.heo-overlay,
.den-overlay,
.nhang-overlay,
.lien-than-tai-overlay,
.ngua-overlay,
.giay-vang-overlay {
  --x: 50%;
  --y: 70%;
  --w: 10%;
}

.hit-area {
  display: none;
}

.hit-area.is-disabled {
  cursor: default;
  pointer-events: none;
}

.hit-cabinet,
.hit-decor,
.hit-incense,
.hit-paper,
.hit-offering,
.hit-service {
  left: 0;
  top: 0;
  width: 0;
  height: 0;
}

body.is-calibrating .category-panel:not(.product-popup),
body.is-calibrating .step-dock {
  display: none;
}

body.is-calibrating .altar-camera,
body.is-calibrating .object-glow,
body.is-calibrating .cover-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.is-calibrating .scan-line,
body.is-calibrating .scene-aura {
  display: none !important;
  opacity: 0 !important;
}

body.is-calibrating .object-glow,
body.is-calibrating .cover-overlay,
body.is-calibrating .object-glow:hover,
body.is-calibrating .object-glow.is-near,
body.is-calibrating .cover-overlay:hover,
body.is-calibrating .cover-overlay.is-near {
  animation: none !important;
  filter: none !important;
  transform: translate(-50%, -50%) !important;
  transition:
    left 80ms linear,
    top 80ms linear,
    width 80ms linear !important;
}

body.is-calibrating .object-glow::after,
body.is-calibrating .cover-overlay::after {
  display: none !important;
  animation: none !important;
}

body.is-calibrating .object-glow img,
body.is-calibrating .cover-overlay img,
body.is-calibrating .object-photo {
  animation: none !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.glow-than-tai-overlay,
.glow-tho-dia-outline {
  z-index: 24 !important;
}

body:not(.is-calibrating) .calibration-panel {
  display: none;
}

.calibration-panel {
  position: relative;
  z-index: 14;
  display: grid;
  gap: 14px;
  width: min(100%, 1480px);
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(211, 170, 85, .24);
  border-radius: 8px;
  color: var(--ivory);
  background: rgba(24, 3, 2, .66);
  backdrop-filter: blur(16px);
}

.calibration-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.calibration-head .eyebrow {
  margin-bottom: 6px;
}

.calibration-head h2 {
  font-size: 24px;
  line-height: 1;
}

.calibration-copy,
.calibration-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.calibration-copy {
  flex: 0 0 auto;
  color: var(--red-deep);
  padding: 0 14px;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
}

.calibration-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.calibration-tabs::-webkit-scrollbar {
  display: none;
}

.calibration-tabs button {
  flex: 0 0 auto;
  color: rgba(251, 245, 232, .72);
  padding: 0 12px;
  background: rgba(251, 245, 232, .08);
}

.calibration-tabs button.is-active {
  color: var(--red-deep);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
}

.calibration-tabs button.is-locked {
  opacity: .56;
}

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

.calibration-controls label {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 76px;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(211, 170, 85, .18);
  border-radius: 8px;
  background: rgba(251, 245, 232, .06);
}

.calibration-controls span {
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 900;
}

.calibration-controls input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
}

.calibration-controls input[type="number"] {
  width: 76px;
  min-height: 34px;
  border: 1px solid rgba(211, 170, 85, .22);
  border-radius: 7px;
  color: var(--ivory);
  background: rgba(0, 0, 0, .18);
  padding: 0 8px;
  font: inherit;
}

.calibration-panel textarea {
  width: 100%;
  min-height: 170px;
  resize: vertical;
  border: 1px solid rgba(211, 170, 85, .18);
  border-radius: 8px;
  color: rgba(251, 245, 232, .86);
  background: rgba(0, 0, 0, .22);
  padding: 12px;
  font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.category-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 9;
  display: grid;
  grid-template-columns: 88px minmax(220px, 330px) minmax(330px, 1fr);
  align-items: center;
  gap: clamp(16px, 2.2vw, 34px);
  width: min(980px, calc(100vw - 70px));
  min-height: 0;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid rgba(211, 170, 85, .3);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(251, 245, 232, .12), rgba(251, 245, 232, .045)),
    rgba(35, 5, 3, .5);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .22);
}

.product-popup {
  opacity: var(--popup-opacity, 0);
  pointer-events: none;
  position: relative;
  transform: translate3d(-50%, calc(-50% + 18px), 0) scale(.985);
  transform-origin: 50% 50%;
  transition:
    opacity 360ms ease,
    transform 520ms var(--ease);
}

.panel-close {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(242, 212, 137, .32);
  border-radius: 8px;
  color: var(--gold-soft);
  background: rgba(38, 2, 1, .58);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.panel-close:hover,
.panel-close:focus-visible {
  color: var(--red-deep);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  outline: 0;
}

.product-popup.is-open {
  --popup-opacity: 1;
  pointer-events: auto;
  transform: translate3d(-50%, -50%, 0) scale(1);
}

body.is-product-inspect .product-popup {
  position: fixed;
  left: 50%;
  top: auto;
  bottom: 22px;
  z-index: 60;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  width: min(1040px, calc(100vw - 36px));
  padding: 14px 16px;
  transform: translate3d(-50%, 22px, 0) scale(.985);
}

body.is-cine-preview.is-cine-revealing .product-popup {
  transition-delay: 40ms;
}

body.is-product-inspect .product-popup.is-open {
  transform: translate3d(-50%, 0, 0) scale(1);
}

body.is-cine-preview.is-cine-retreating .product-popup,
body.is-cine-preview.is-cine-retreating .product-popup.is-open {
  opacity: 0;
  transform: translate3d(-50%, 12px, 0) scale(.988);
  transition:
    opacity 180ms ease,
    transform 300ms cubic-bezier(.5, 0, .2, 1);
}

body.is-product-inspect .category-panel figure {
  display: none;
}

body.is-product-inspect .panel-copy {
  display: none;
}

body.is-product-inspect .panel-link {
  grid-column: 3;
  align-self: center;
  margin-top: 0;
  justify-self: end;
}

body.is-product-inspect .category-panel h2 {
  font-size: clamp(24px, 2.4vw, 42px);
}

body.is-product-inspect .scene-copy {
  max-width: 500px;
}

body.is-product-inspect .scene-copy h1 {
  max-width: 11ch;
}

body.is-product-inspect .scene-copy p:not(.eyebrow) {
  max-width: 36ch;
}

.product-showcase {
  position: fixed;
  z-index: 58;
  left: 50%;
  top: 43%;
  display: grid;
  place-items: center;
  width: var(--product-media-size);
  height: var(--product-media-size);
  pointer-events: none;
  opacity: 0;
  perspective: 900px;
  overflow: hidden;
  contain: layout;
  transform: translate3d(-50%, -50%, 0) scale(.82);
  transition:
    opacity 240ms ease,
    transform 620ms var(--ease);
}

.product-showcase.is-visible {
  opacity: 1;
  transform: translate3d(-50%, -50%, 0) scale(1);
}

body.is-product-inspect .product-showcase.is-visible {
  pointer-events: auto;
}

body.is-cine-preview .product-showcase {
  opacity: 0;
  transform:
    translate3d(
      calc(-50% + var(--showcase-from-x, 0px)),
      calc(-50% + var(--showcase-from-y, 0px)),
      0
    )
    scale(.16)
    rotateX(5deg);
  transition:
    opacity 160ms ease,
    transform 760ms cubic-bezier(.16, .76, .18, 1);
}

body.is-cine-preview .product-showcase.is-visible {
  opacity: 1;
  transform: translate3d(-50%, -50%, 0) scale(1) rotateX(0);
}

body.is-cine-preview.is-cine-revealing .product-showcase.is-visible {
  animation: cineShowcaseEnter 760ms cubic-bezier(.16, .76, .18, 1) both;
}

body.is-cine-preview .product-showcase.is-retreating {
  opacity: 0;
  transform:
    translate3d(
      calc(-50% + var(--showcase-from-x, 0px)),
      calc(-50% + var(--showcase-from-y, 0px)),
      0
    )
    scale(.18)
    rotateX(5deg);
  transition:
    opacity 170ms ease,
    transform 360ms cubic-bezier(.46, 0, .22, 1);
}

.product-showcase img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter:
    drop-shadow(0 34px 36px rgba(0, 0, 0, .38))
    drop-shadow(0 0 42px rgba(255, 190, 72, .16));
  transform-origin: 50% 70%;
  transform: translate3d(var(--showcase-shift-x, 0px), var(--showcase-shift-y, 0px), 0) scale(var(--showcase-scale, 1));
  animation: productFloat3d 4.2s ease-in-out infinite;
  -webkit-user-drag: none;
  user-select: none;
}

body.is-cine-preview.is-cine-revealing .product-showcase img {
  animation: cineShowcaseObject 760ms cubic-bezier(.16, .76, .18, 1) both;
}

body.is-cine-preview.is-cine-settled .product-showcase img {
  animation: productFloat3d 4.2s ease-in-out infinite;
}

@keyframes cineShowcaseEnter {
  0% {
    opacity: 0;
    transform:
      translate3d(
        calc(-50% + var(--showcase-from-x, 0px)),
        calc(-50% + var(--showcase-from-y, 0px)),
        0
      )
      scale(.16)
      rotateX(5deg);
  }

  10% {
    opacity: .68;
  }

  42% {
    transform:
      translate3d(
        calc(-50% + var(--showcase-mid-x, 0px)),
        calc(-50% + var(--showcase-mid-y, -22px)),
        0
      )
      scale(.8)
      rotateX(1deg);
  }

  70% {
    opacity: 1;
    transform: translate3d(-50%, calc(-50% - 4px), 0) scale(1.006) rotateX(-.25deg);
  }

  100% {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) scale(1) rotateX(0);
  }
}

@keyframes cineShowcaseObject {
  0% {
    transform:
      translate3d(var(--showcase-shift-x, 0px), var(--showcase-shift-y, 0px), 0)
      rotateY(-2deg)
      rotateX(1deg)
      scale(var(--showcase-scale, 1));
    filter:
      drop-shadow(0 14px 22px rgba(0, 0, 0, .3))
      drop-shadow(0 0 10px rgba(255, 184, 48, .18));
  }

  42% {
    transform:
      translate3d(var(--showcase-shift-x, 0px), calc(var(--showcase-shift-y, 0px) - 4px), 0)
      rotateY(1deg)
      rotateX(0)
      scale(var(--showcase-scale, 1));
    filter:
      drop-shadow(0 38px 38px rgba(0, 0, 0, .38))
      drop-shadow(0 0 24px rgba(255, 224, 128, .38))
      drop-shadow(0 0 58px rgba(255, 111, 18, .22));
  }

  100% {
    transform:
      translate3d(var(--showcase-shift-x, 0px), var(--showcase-shift-y, 0px), 0)
      rotateY(-7deg)
      rotateX(2deg)
      scale(var(--showcase-scale, 1));
    filter:
      drop-shadow(0 34px 36px rgba(0, 0, 0, .38))
      drop-shadow(0 0 42px rgba(255, 190, 72, .16));
  }
}

@keyframes productFloat3d {
  0%,
  100% {
    transform:
      translate3d(var(--showcase-shift-x, 0px), var(--showcase-shift-y, 0px), 0)
      rotateY(-7deg)
      rotateX(2deg)
      scale(var(--showcase-scale, 1));
  }

  50% {
    transform:
      translate3d(var(--showcase-shift-x, 0px), calc(var(--showcase-shift-y, 0px) - 10px), 0)
      rotateY(8deg)
      rotateX(-1deg)
      scale(var(--showcase-scale, 1));
  }
}

body.is-cabinet-inspect .product-popup {
  position: fixed;
  top: auto;
  bottom: 24px;
  z-index: 42;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  width: min(1040px, calc(100vw - 48px));
  min-height: 0;
  transform: translate3d(-50%, 18px, 0) scale(.985);
}

body.is-cabinet-inspect .product-popup.is-open {
  transform: translate3d(-50%, 0, 0) scale(1);
}

body.is-cabinet-inspect .category-panel figure {
  display: none;
}

body.is-cabinet-inspect .panel-link {
  grid-column: 3;
  align-self: center;
  margin-top: 0;
}

.panel-count {
  display: grid;
  justify-items: start;
  align-items: center;
  gap: 8px;
  color: rgba(251, 245, 232, .62);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .14em;
}

.panel-count i {
  display: block;
  width: 48px;
  height: 1px;
  background: var(--line);
}

.category-panel figure {
  display: grid;
  place-items: center;
  height: min(34vh, 260px);
  margin: 0;
  border: 1px solid rgba(211, 170, 85, .16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 212, 116, .14), transparent 62%),
    rgba(255, 255, 255, .03);
  overflow: hidden;
}

.category-panel figure img {
  width: auto;
  max-width: 88%;
  max-height: 94%;
  object-fit: contain;
  filter: drop-shadow(0 28px 36px rgba(0, 0, 0, .42));
  opacity: var(--preview-opacity, 1);
  transform: translateY(var(--product-lift, 0)) scale(var(--product-scale, 1));
  transition:
    opacity 320ms ease,
    transform 780ms var(--ease);
}

.panel-copy {
  min-width: 0;
}

.panel-products {
  grid-column: 2;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(112px, 138px);
  gap: 10px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 4px;
  scrollbar-width: none;
}

.panel-products::-webkit-scrollbar {
  display: none;
}

.panel-product-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 58px;
  padding: 8px;
  border: 1px solid rgba(242, 212, 137, .2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 219, 130, .16), transparent 54%),
    rgba(255, 255, 255, .045);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms var(--ease);
}

.panel-product-card:hover,
.panel-product-card:focus-visible {
  border-color: rgba(242, 212, 137, .58);
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 219, 130, .22), transparent 54%),
    rgba(255, 255, 255, .07);
  transform: translateY(-1px);
}

.panel-product-image {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
}

.panel-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 10px 12px rgba(0, 0, 0, .34))
    drop-shadow(0 0 12px rgba(255, 191, 66, .12));
}

.panel-product-title {
  min-width: 0;
  color: rgba(251, 245, 232, .86);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.panel-product-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(242, 212, 137, .34);
  border-radius: 8px;
  color: var(--red-deep);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.panel-product-action.is-secondary {
  color: var(--gold-soft);
  background: rgba(255, 255, 255, .045);
}

.category-panel h2 {
  color: var(--ivory);
  font-size: clamp(28px, 3.4vw, 58px);
  line-height: 1;
}

.panel-copy p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

.category-panel .eyebrow {
  margin-bottom: 9px;
}

.panel-link {
  grid-column: 3;
  justify-self: start;
  width: min(220px, 100%);
  margin-top: 24px;
}

.step-dock {
  position: absolute;
  left: 50%;
  top: 96px;
  z-index: 12;
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(211, 170, 85, .22);
  border-radius: 8px;
  background: rgba(24, 3, 2, .52);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
  pointer-events: auto;
  touch-action: manipulation;
}

.step-dock button {
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  color: rgba(251, 245, 232, .74);
  background: transparent;
  padding: 0 13px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .02em;
  cursor: pointer;
}

.step-dock button.is-active {
  color: var(--red-deep);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
}

.step-dock button.is-disabled {
  cursor: default;
  opacity: .38;
}

.intro-band,
.ritual-builder,
.consultation,
.site-footer {
  position: relative;
  z-index: 2;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(280px, .86fr) minmax(300px, .72fr);
  gap: 42px;
  padding: 106px clamp(24px, 7vw, 112px) 62px;
  color: var(--ivory);
  background: linear-gradient(180deg, #170403, #2b0705);
}

.intro-band h2,
.ritual-builder h2,
.consultation h2 {
  color: var(--ivory);
  max-width: 760px;
  font-size: clamp(36px, 4.6vw, 68px);
  line-height: .98;
}

.intro-band > p,
.ritual-builder p,
.consultation p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: rgba(211, 170, 85, .22);
}

.category-grid > article {
  display: flex;
  flex-direction: column;
  min-height: 470px;
  padding: 28px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(255, 246, 226, .92)),
    var(--paper);
  cursor: pointer;
  transition:
    background 260ms ease,
    box-shadow 260ms ease,
    transform 260ms var(--ease);
}

.category-grid > article > img {
  width: 100%;
  height: 210px;
  object-fit: contain;
  object-position: center;
  margin-bottom: 22px;
  filter: drop-shadow(0 22px 26px rgba(80, 35, 16, .2));
  transition: transform 520ms var(--ease);
}

.category-grid > article:hover > img {
  transform: translateY(-8px) scale(1.03);
}

.category-grid > article:hover,
.category-grid > article:focus-visible,
.category-grid > article.is-active {
  background:
    radial-gradient(circle at 50% 30%, rgba(211, 170, 85, .18), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 246, 226, .98)),
    var(--paper);
  box-shadow: inset 0 0 0 2px rgba(119, 11, 8, .28);
  outline: 0;
}

.category-grid > article > span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
}

.category-grid > article > h3 {
  margin-top: 10px;
  color: var(--red-deep);
  font-size: 30px;
}

.category-grid > article > p {
  margin: 14px 0 22px;
  color: var(--dark-muted);
  font-size: 15px;
  line-height: 1.58;
}

.category-grid > article > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(119, 11, 8, .26);
  border-radius: 8px;
  color: var(--red);
  background: transparent;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.category-grid > article.is-active > button {
  color: var(--ivory);
  border-color: rgba(119, 11, 8, .88);
  background: var(--red);
}

.category-bestsellers {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
}

.category-bestsellers > span {
  color: rgba(119, 11, 8, .78);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.category-bestsellers > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.category-bestsellers button {
  display: grid;
  grid-template-rows: 48px auto;
  gap: 6px;
  min-width: 0;
  border: 1px solid rgba(119, 11, 8, .16);
  border-radius: 8px;
  padding: 7px;
  color: var(--red-deep);
  background: rgba(255, 255, 255, .34);
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 220ms var(--ease);
}

.category-bestsellers button:hover,
.category-bestsellers button:focus-visible {
  border-color: rgba(119, 11, 8, .38);
  background: rgba(255, 248, 234, .76);
  outline: 0;
  transform: translateY(-2px);
}

.category-bestsellers img {
  width: 100%;
  height: 48px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 8px 10px rgba(80, 35, 16, .2));
}

.category-bestsellers b {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--red-deep);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-products {
  grid-column: 1 / -1;
  display: none;
  position: relative;
  z-index: 1;
  gap: 22px;
  padding: clamp(22px, 3vw, 34px);
  color: var(--ivory);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 206, 84, .18), transparent 34%),
    radial-gradient(circle at 86% 18%, rgba(119, 11, 8, .32), transparent 38%),
    linear-gradient(135deg, #2b0705, #180302 58%, #330805);
  border-top: 1px solid rgba(211, 170, 85, .32);
  box-shadow:
    inset 0 1px 0 rgba(255, 235, 175, .12),
    0 -18px 70px rgba(41, 6, 4, .28);
}

.category-products.is-open {
  display: grid;
  animation: categoryProductsIn 480ms var(--ease) both;
}

.category-products-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.category-products-head .eyebrow {
  margin: 0 0 8px;
}

.category-products-head h3 {
  margin: 0;
  color: var(--ivory);
  font-size: clamp(32px, 4vw, 58px);
  letter-spacing: 0;
}

.category-products-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(211, 170, 85, .38);
  border-radius: 8px;
  color: var(--gold-soft);
  background: rgba(255, 255, 255, .045);
  font-weight: 850;
  cursor: pointer;
}

.category-products-close:hover,
.category-products-close:focus-visible {
  color: var(--red-deep);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  outline: 0;
}

.category-product-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 8px;
  scrollbar-width: none;
}

.category-product-filters::-webkit-scrollbar {
  display: none;
}

.category-product-filters button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(211, 170, 85, .22);
  border-radius: 8px;
  color: rgba(251, 245, 232, .72);
  background: rgba(255, 255, 255, .045);
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    transform 220ms var(--ease);
}

.category-product-filters button:hover,
.category-product-filters button:focus-visible {
  color: var(--gold-soft);
  border-color: rgba(211, 170, 85, .52);
  background: rgba(255, 255, 255, .075);
  outline: 0;
  transform: translateY(-1px);
}

.category-product-filters button.is-active {
  color: var(--red-deep);
  border-color: rgba(255, 217, 126, .82);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  box-shadow: 0 12px 32px rgba(211, 170, 85, .18);
}

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

@keyframes categoryProductsIn {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card {
  display: grid;
  grid-template-rows: 190px 1fr auto;
  min-height: 430px;
  border: 1px solid rgba(211, 170, 85, .18);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(251, 245, 232, .1), rgba(251, 245, 232, .045)),
    rgba(31, 5, 4, .72);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .18);
  cursor: pointer;
  transition:
    border-color 220ms ease,
    box-shadow 260ms ease,
    transform 260ms var(--ease);
}

.product-card:hover,
.product-card:focus-visible {
  border-color: rgba(211, 170, 85, .42);
  box-shadow: 0 28px 86px rgba(0, 0, 0, .28);
  outline: 0;
  transform: translateY(-3px);
}

.product-card-media {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  padding: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 213, 104, .18), transparent 56%),
    rgba(255, 255, 255, .035);
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 28px rgba(0, 0, 0, .32));
}

.product-card-copy {
  padding: 18px 18px 10px;
}

.product-card-copy span {
  color: var(--gold-soft);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.product-card-copy h3 {
  margin-top: 8px;
  color: var(--ivory);
  font-size: 24px;
}

.product-card-copy p {
  margin: 10px 0 0;
  color: rgba(251, 245, 232, .68);
  font-size: 14px;
  line-height: 1.5;
}

.product-card-buy {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 4px 10px;
  padding: 16px 18px 18px;
}

.product-card-buy strong {
  color: var(--gold-soft);
  font-size: 20px;
}

.product-card-buy small {
  justify-self: start;
  color: rgba(251, 245, 232, .54);
  font-size: 12px;
}

.product-card-buy a,
.product-card-buy button {
  position: relative;
  grid-row: 1 / span 2;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  font-weight: 850;
  cursor: pointer;
}

.product-card-buy a {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-soft);
  border: 1px solid rgba(211, 170, 85, .22);
  background: rgba(255, 255, 255, .045);
}

.product-card-buy button {
  grid-column: 3;
  color: var(--red-deep);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
}

.product-card-buy button[data-open-product] {
  grid-column: 2;
  color: var(--gold-soft);
  border: 1px solid rgba(211, 170, 85, .22);
  background: rgba(255, 255, 255, .045);
}

.product-card-buy button.is-added {
  animation: addButtonPulse 620ms var(--ease-game) both;
}

.product-card-buy button.is-fly-plus::after,
.panel-product-action.is-fly-plus::after {
  content: "+1";
  position: absolute;
  left: 50%;
  top: -10px;
  z-index: 3;
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(255, 239, 181, .72);
  border-radius: 999px;
  color: var(--red-deep);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  box-shadow: 0 12px 26px rgba(0, 0, 0, .24);
  font-size: 12px;
  font-weight: 950;
  pointer-events: none;
  transform: translateX(-50%);
  animation: addPlusFly 920ms var(--ease-game) both;
}

.panel-product-action {
  position: relative;
}

.cart-trigger.is-bumped {
  animation: cartTriggerHop 680ms var(--ease-game) both;
}

.cart-trigger.is-bumped b {
  animation: cartBadgeBump 680ms var(--ease-game) both;
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 88;
  background: rgba(12, 2, 1, .46);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

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

.cart-drawer {
  position: fixed;
  right: 18px;
  top: 18px;
  bottom: 18px;
  z-index: 90;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(430px, calc(100vw - 36px));
  border: 1px solid rgba(211, 170, 85, .28);
  border-radius: 8px;
  color: var(--ivory);
  background:
    linear-gradient(180deg, rgba(251, 245, 232, .09), rgba(251, 245, 232, .035)),
    rgba(30, 5, 3, .94);
  box-shadow: 0 30px 100px rgba(0, 0, 0, .42);
  backdrop-filter: blur(22px);
  transform: translateX(calc(100% + 30px));
  transition: transform 360ms var(--ease);
}

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

.cart-drawer.is-peeking {
  animation: cartPeekIn 520ms var(--ease-game) both;
}

.cart-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 22px 14px;
  border-bottom: 1px solid rgba(211, 170, 85, .14);
}

.cart-head h2 {
  color: var(--ivory);
  font-size: 34px;
}

.cart-close {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(211, 170, 85, .22);
  border-radius: 8px;
  color: var(--gold-soft);
  background: rgba(255, 255, 255, .04);
  font-size: 26px;
  cursor: pointer;
}

.cart-items {
  overflow: auto;
  padding: 14px;
}

.cart-empty {
  align-self: start;
  margin: 18px;
  color: rgba(251, 245, 232, .62);
  font-size: 14px;
  line-height: 1.5;
}

.cart-empty[hidden] {
  display: none;
}

.cart-line {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(211, 170, 85, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  overflow: hidden;
}

.cart-line + .cart-line {
  margin-top: 10px;
}

.cart-line.is-just-added {
  border-color: rgba(255, 218, 126, .52);
  background:
    linear-gradient(135deg, rgba(255, 218, 126, .12), rgba(255, 255, 255, .04)),
    rgba(255, 255, 255, .04);
  animation: cartLineArrive 720ms var(--ease-game) both;
}

.cart-line.is-just-added::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -55%;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 235, 174, .38), transparent);
  transform: skewX(-18deg);
  animation: cartLineSheen 860ms ease-out both;
  pointer-events: none;
}

.cart-line img {
  width: var(--product-thumb-size);
  height: var(--product-thumb-size);
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .28));
}

@keyframes addButtonPulse {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 rgba(255, 218, 126, 0);
  }

  38% {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 0 0 8px rgba(255, 218, 126, .12);
  }

  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 rgba(255, 218, 126, 0);
  }
}

@keyframes cartBadgeBump {
  0%,
  100% {
    transform: scale(1);
  }

  42% {
    transform: scale(1.22);
  }
}

@keyframes cartTriggerHop {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  34% {
    transform: translateY(-5px) scale(1.035);
  }

  58% {
    transform: translateY(1px) scale(.995);
  }
}

@keyframes addPlusFly {
  0% {
    opacity: 0;
    transform: translate(-50%, 10px) scale(.72);
  }

  24% {
    opacity: 1;
    transform: translate(-50%, -6px) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -34px) scale(.94);
  }
}

@keyframes cartPeekIn {
  0% {
    transform: translateX(calc(100% + 30px)) scale(.985);
  }

  100% {
    transform: translateX(0) scale(1);
  }
}

@keyframes cartLineArrive {
  from {
    opacity: .72;
    transform: translateX(12px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes cartLineSheen {
  from {
    left: -55%;
  }

  to {
    left: 118%;
  }
}

.cart-line h3 {
  color: var(--ivory);
  font-size: 16px;
}

.cart-line p {
  margin: 4px 0 8px;
  color: rgba(251, 245, 232, .58);
  font-size: 12px;
}

.cart-line > strong {
  color: var(--gold-soft);
  font-size: 14px;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cart-qty button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(211, 170, 85, .22);
  border-radius: 7px;
  color: var(--gold-soft);
  background: rgba(255, 255, 255, .05);
  cursor: pointer;
}

.cart-item-note {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.cart-item-note span {
  color: rgba(251, 245, 232, .52);
  font-size: 11px;
  font-weight: 850;
}

.cart-item-note textarea {
  width: 100%;
  resize: vertical;
  min-height: 48px;
  border: 1px solid rgba(211, 170, 85, .14);
  border-radius: 7px;
  color: var(--ivory);
  background: rgba(0, 0, 0, .18);
  padding: 9px;
  font: inherit;
  font-size: 12px;
  line-height: 1.4;
}

.cart-item-note textarea:focus {
  border-color: rgba(211, 170, 85, .46);
  outline: 0;
}

.cart-summary {
  display: grid;
  gap: 14px;
  padding: 16px 18px 18px;
  border-top: 1px solid rgba(211, 170, 85, .14);
}

.cart-summary label {
  display: grid;
  gap: 7px;
  color: rgba(251, 245, 232, .72);
  font-size: 12px;
  font-weight: 800;
}

.cart-summary textarea {
  width: 100%;
  resize: none;
  border: 1px solid rgba(211, 170, 85, .18);
  border-radius: 8px;
  color: var(--ivory);
  background: rgba(0, 0, 0, .2);
  padding: 10px;
  font: inherit;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(251, 245, 232, .68);
}

.cart-total strong {
  color: var(--gold-soft);
  font-size: 24px;
}

.checkout-button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  color: var(--red-deep);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  font-weight: 900;
  cursor: pointer;
}

.checkout-drawer {
  position: fixed;
  right: 18px;
  top: 18px;
  bottom: 18px;
  z-index: 91;
  display: grid;
  grid-template-rows: auto 1fr;
  width: min(560px, calc(100vw - 36px));
  border: 1px solid rgba(211, 170, 85, .3);
  border-radius: 8px;
  color: var(--ivory);
  background:
    radial-gradient(circle at 20% 0%, rgba(211, 170, 85, .16), transparent 34%),
    linear-gradient(180deg, rgba(251, 245, 232, .1), rgba(251, 245, 232, .035)),
    rgba(28, 4, 3, .96);
  box-shadow: 0 34px 110px rgba(0, 0, 0, .48);
  backdrop-filter: blur(22px);
  transform: translateX(calc(100% + 34px));
  transition: transform 380ms var(--ease);
}

.checkout-drawer.is-open {
  transform: translateX(0);
}

.checkout-form {
  display: grid;
  gap: 16px;
  overflow: auto;
  padding: 18px;
}

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

.checkout-grid label,
.checkout-note {
  display: grid;
  gap: 7px;
  color: rgba(251, 245, 232, .72);
  font-size: 12px;
  font-weight: 850;
}

.checkout-grid .is-wide,
.checkout-note {
  grid-column: 1 / -1;
}

.checkout-grid input,
.checkout-grid select,
.checkout-note textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(211, 170, 85, .16);
  border-radius: 8px;
  color: var(--ivory);
  background: rgba(0, 0, 0, .22);
  padding: 0 11px;
  font: inherit;
}

.checkout-note textarea {
  min-height: 86px;
  resize: vertical;
  padding: 10px 11px;
}

.checkout-grid input:focus,
.checkout-grid select:focus,
.checkout-note textarea:focus {
  border-color: rgba(211, 170, 85, .5);
  outline: 0;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.payment-methods legend {
  grid-column: 1 / -1;
  margin-bottom: 8px;
  color: rgba(251, 245, 232, .72);
  font-size: 12px;
  font-weight: 850;
}

.payment-methods label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid rgba(211, 170, 85, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  color: rgba(251, 245, 232, .76);
  font-weight: 800;
}

.checkout-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border: 1px solid rgba(211, 170, 85, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  color: rgba(251, 245, 232, .68);
}

.checkout-total strong {
  color: var(--gold-soft);
  font-size: 26px;
}

.checkout-message {
  min-height: 20px;
  margin: 0;
  color: var(--gold-soft);
  font-size: 13px;
  line-height: 1.45;
}

.checkout-page {
  min-height: 100vh;
  color: var(--ivory);
  background:
    radial-gradient(circle at 76% 0%, rgba(211, 170, 85, .18), transparent 30%),
    radial-gradient(circle at 12% 20%, rgba(119, 11, 8, .32), transparent 34%),
    linear-gradient(180deg, #2a0604, #130302 72%);
}

.checkout-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(211, 170, 85, .18);
  background: rgba(24, 3, 2, .76);
  backdrop-filter: blur(18px);
}

.checkout-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(211, 170, 85, .28);
  border-radius: 8px;
  color: var(--gold-soft);
  font-weight: 850;
}

.checkout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  gap: clamp(18px, 3vw, 42px);
  width: min(1260px, calc(100vw - 36px));
  margin: 0 auto;
  padding: clamp(34px, 6vw, 78px) 0;
}

.checkout-main > h1 {
  max-width: 720px;
  color: var(--ivory);
  font-size: clamp(48px, 7vw, 104px);
  line-height: .92;
}

.checkout-main > p:not(.eyebrow) {
  max-width: 620px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.checkout-page-form {
  margin-top: 34px;
  padding: 24px;
  border: 1px solid rgba(211, 170, 85, .18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(251, 245, 232, .08), rgba(251, 245, 232, .035)),
    rgba(255, 255, 255, .025);
}

.checkout-auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 30px;
  padding: 18px;
  border: 1px solid rgba(211, 170, 85, .18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 0% 0%, rgba(211, 170, 85, .12), transparent 38%),
    rgba(255, 255, 255, .035);
}

.checkout-auth h2 {
  color: var(--ivory);
  font-size: clamp(24px, 3vw, 38px);
}

.checkout-auth p:not(.eyebrow) {
  margin-top: 8px;
  color: rgba(251, 245, 232, .66);
  font-size: 14px;
  line-height: 1.55;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

.auth-actions button,
.auth-profile button {
  min-height: 40px;
  border: 1px solid rgba(211, 170, 85, .24);
  border-radius: 8px;
  color: var(--gold-soft);
  background: rgba(255, 255, 255, .045);
  padding: 0 14px;
  font-weight: 850;
  cursor: pointer;
}

.auth-actions button:hover,
.auth-actions button:focus-visible,
.auth-profile button:hover,
.auth-profile button:focus-visible {
  color: var(--red-deep);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  outline: 0;
}

.auth-profile {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 8px;
}

.auth-profile[hidden],
.auth-actions[hidden] {
  display: none;
}

.auth-profile > div {
  display: grid;
  justify-items: end;
  min-width: 180px;
}

.auth-profile strong {
  color: var(--ivory);
  font-size: 15px;
}

.auth-profile span {
  color: rgba(251, 245, 232, .56);
  font-size: 12px;
}

.checkout-summary-card {
  position: sticky;
  top: 92px;
  align-self: start;
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(211, 170, 85, .22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 80% 0%, rgba(211, 170, 85, .14), transparent 32%),
    linear-gradient(180deg, rgba(251, 245, 232, .1), rgba(251, 245, 232, .04)),
    rgba(25, 4, 3, .72);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .28);
}

.checkout-summary-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.checkout-summary-head h2 {
  color: var(--ivory);
  font-size: 28px;
}

.checkout-summary-head > span {
  color: var(--gold-soft);
  font-size: 13px;
  font-weight: 900;
}

.checkout-items {
  display: grid;
  gap: 10px;
  max-height: min(48vh, 520px);
  overflow: auto;
  padding-right: 2px;
}

.checkout-item {
  display: grid;
  grid-template-columns: var(--product-thumb-size) minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(211, 170, 85, .13);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
}

.checkout-item img {
  width: var(--product-thumb-size);
  height: var(--product-thumb-size);
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .28));
}

.checkout-item h3 {
  color: var(--ivory);
  font-size: 15px;
}

.checkout-item p {
  margin: 4px 0 0;
  color: rgba(251, 245, 232, .58);
  font-size: 12px;
}

.checkout-item > strong {
  color: var(--gold-soft);
  font-size: 13px;
  white-space: nowrap;
}

.checkout-empty {
  display: grid;
  gap: 10px;
  padding: 24px;
  border: 1px dashed rgba(211, 170, 85, .22);
  border-radius: 8px;
  color: rgba(251, 245, 232, .66);
  text-align: center;
}

.checkout-empty h3 {
  color: var(--ivory);
  font-size: 24px;
}

.checkout-empty a {
  justify-self: center;
  color: var(--gold-soft);
  font-weight: 850;
}

.checkout-order-note {
  grid-column: auto;
}

.product-page {
  min-height: 100vh;
  color: var(--ivory);
  background:
    radial-gradient(circle at 76% 0%, rgba(211, 170, 85, .18), transparent 30%),
    radial-gradient(circle at 12% 20%, rgba(119, 11, 8, .32), transparent 34%),
    linear-gradient(180deg, #2a0604, #130302 72%);
}

.product-detail-shell {
  display: grid;
  grid-template-columns: minmax(300px, .86fr) minmax(320px, .74fr);
  gap: clamp(22px, 5vw, 74px);
  align-items: center;
  width: min(1180px, calc(100vw - 36px));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  padding: clamp(34px, 6vw, 78px) 0;
}

.product-detail-media {
  display: grid;
  place-items: center;
  min-height: min(66vh, 620px);
  overflow: hidden;
  border: 1px solid rgba(211, 170, 85, .18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 213, 104, .2), transparent 58%),
    rgba(255, 255, 255, .04);
}

.product-detail-media img {
  width: min(82%, 520px);
  height: min(58vh, 520px);
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 34px 44px rgba(0, 0, 0, .34));
}

.product-detail-copy {
  display: grid;
  gap: 20px;
}

.product-detail-copy h1,
.product-detail-empty h1 {
  color: var(--ivory);
  font-size: clamp(46px, 6vw, 88px);
  line-height: .94;
}

.product-detail-copy > p:not(.eyebrow) {
  max-width: 580px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.product-detail-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(211, 170, 85, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
}

.product-detail-meta span {
  color: rgba(251, 245, 232, .62);
  font-weight: 850;
}

.product-detail-meta strong {
  color: var(--gold-soft);
  font-size: 24px;
}

.product-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-detail-actions .checkout-button,
.product-detail-actions .checkout-back {
  min-width: 180px;
}

.product-detail-empty {
  display: grid;
  gap: 20px;
  place-items: start;
  width: min(820px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 120px 0;
}

.ritual-builder {
  display: grid;
  grid-template-columns: minmax(300px, .78fr) minmax(320px, 1fr);
  gap: 42px;
  align-items: center;
  padding: 112px clamp(24px, 7vw, 112px);
  color: var(--ivory);
  background:
    linear-gradient(90deg, rgba(28, 4, 3, .95), rgba(119, 11, 8, .7)),
    url("altar-main.png") center / cover;
}

.builder-copy p:not(.eyebrow) {
  max-width: 620px;
  margin-top: 20px;
}

.bundle-rail {
  display: grid;
  gap: 14px;
}

.bundle-rail article {
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px solid rgba(211, 170, 85, .24);
  border-radius: 8px;
  background: rgba(251, 245, 232, .08);
  backdrop-filter: blur(14px);
}

.bundle-rail b {
  color: var(--gold-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 600;
}

.bundle-rail span {
  color: var(--muted);
  font-size: 15px;
}

.consultation {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding: 94px clamp(24px, 7vw, 112px);
  color: var(--ivory);
  background: #160403;
}

.consultation h2 {
  max-width: 880px;
  font-size: clamp(34px, 4vw, 60px);
}

.consultation a {
  flex: 0 0 auto;
  min-width: 180px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(24px, 7vw, 112px) 34px;
  color: rgba(251, 245, 232, .7);
  border-top: 1px solid rgba(211, 170, 85, .16);
  background: #100302;
}

.site-footer strong {
  color: var(--gold-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

@media (max-width: 1120px) {
  .altar-stage {
    display: grid;
    align-content: start;
    gap: 16px;
    padding: 94px 18px 28px;
  }

  .altar-scroll {
    height: auto;
    min-height: 0;
  }

  .altar-stage {
    position: relative;
  }

  .scene-copy {
    position: relative;
    left: auto;
    top: auto;
    z-index: 8;
    align-self: auto;
    padding: 0;
    max-width: 620px;
    pointer-events: auto;
    transform: none;
    opacity: 1;
  }

  .scene-copy h1 {
    max-width: 12ch;
    font-size: clamp(42px, 12vw, 74px);
  }

  .scene-copy p:not(.eyebrow) {
    max-width: 56ch;
    margin-top: 14px;
    font-size: 15px;
  }

  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .cart-trigger span {
    display: none;
  }

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

  .altar-viewport {
    width: 100%;
  }

  .altar-camera {
    transform: scale(1) translate3d(0, 0, 0) !important;
  }

  .category-panel {
    position: relative;
    right: auto;
    left: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    grid-template-columns: 58px minmax(112px, 160px) minmax(0, 1fr);
    min-height: 0;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .product-popup,
  .product-popup.is-open {
    transform: none;
  }

  .product-popup {
    opacity: 0;
    pointer-events: none;
  }

  .product-popup.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  body.is-product-inspect .product-popup,
  body.is-product-inspect .product-popup.is-open {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    grid-template-columns: 46px minmax(0, 1fr);
    width: auto;
    transform: none;
  }

  body.is-product-inspect .panel-link {
    grid-column: 1 / -1;
    width: 100%;
  }

  .panel-products {
    grid-column: 2;
    grid-auto-columns: minmax(104px, 128px);
  }

  .product-showcase {
    top: 42%;
    width: min(68vw, 280px);
    height: min(34vh, 280px);
  }

  .cine-nav {
    right: 12px;
    bottom: 128px;
  }

  .cine-nav-button {
    width: 40px;
    height: 40px;
  }

  .category-panel figure {
    height: 150px;
    margin: 18px 0;
  }

  .panel-link {
    grid-column: 3;
    margin-top: 0;
  }

  .step-dock {
    position: relative;
    left: auto;
    top: auto;
    display: flex;
    gap: 8px;
    width: 100%;
    overflow-x: auto;
    padding: 8px;
    scrollbar-width: none;
    transform: none;
  }

  .step-dock::-webkit-scrollbar {
    display: none;
  }

  .step-dock button {
    flex: 0 0 auto;
    min-height: 40px;
    font-size: 13px;
  }
}

@media (max-width: 820px) {
  .site-header {
    left: 10px;
    right: 10px;
    top: 10px;
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .brand small {
    display: none;
  }

  .header-action {
    min-height: 38px;
    padding: 0 13px;
  }

  .category-panel {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .panel-count {
    display: flex;
  }

  .category-panel figure {
    height: 170px;
  }

  .panel-link {
    grid-column: auto;
  }

  .intro-band,
  .ritual-builder {
    grid-template-columns: 1fr;
    padding: 72px 18px 44px;
  }

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

  .category-grid > article {
    min-height: 0;
    padding: 24px 18px 28px;
  }

  .category-grid > article > img {
    height: 190px;
  }

  .category-bestsellers > div {
    display: flex;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .category-bestsellers > div::-webkit-scrollbar {
    display: none;
  }

  .category-bestsellers button {
    flex: 0 0 104px;
  }

  .consultation {
    display: grid;
    padding: 72px 18px;
  }

  .consultation a {
    width: 100%;
  }

  .site-footer {
    display: grid;
    padding: 24px 18px 32px;
  }
}

@media (max-width: 680px) {
  .site-header {
    left: 10px;
    right: 10px;
    top: 10px;
    gap: 8px;
  }

  .header-action {
    display: none;
  }

  .category-products {
    padding: 24px 12px;
  }

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

  .product-card {
    min-height: 0;
  }

  .cart-drawer {
    inset: 10px;
    width: auto;
  }

  .checkout-drawer {
    inset: 10px;
    width: auto;
  }

  .checkout-header {
    padding: 12px;
  }

  .checkout-shell {
    grid-template-columns: 1fr;
    width: min(100vw - 24px, 640px);
    padding: 28px 0 48px;
  }

  .checkout-summary-card {
    position: static;
    order: -1;
  }

  .checkout-page-form {
    padding: 16px;
  }

  .checkout-auth {
    grid-template-columns: 1fr;
  }

  .auth-actions,
  .auth-profile {
    justify-content: start;
  }

  .auth-profile {
    align-items: start;
    flex-wrap: wrap;
  }

  .auth-profile > div {
    justify-items: start;
    width: 100%;
  }

  .checkout-item {
    grid-template-columns: var(--product-thumb-size) minmax(0, 1fr);
  }

  .checkout-item > strong {
    grid-column: 2;
  }

  .product-detail-shell {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 92px 0 48px;
  }

  .product-detail-media {
    min-height: 320px;
  }

  .product-detail-meta {
    align-items: start;
    flex-direction: column;
  }

  .product-detail-actions .checkout-button,
  .product-detail-actions .checkout-back {
    width: 100%;
  }

.checkout-grid,
  .payment-methods {
    grid-template-columns: 1fr;
  }
}

.admin-page {
  min-height: 100vh;
  color: var(--ivory);
  background:
    linear-gradient(180deg, rgba(26, 4, 3, .92), rgba(54, 10, 7, .88)),
    image-set(url("altar-bg.webp") type("image/webp"), url("altar-bg.png") type("image/png")) center top / cover fixed;
}

.admin-page::before {
  opacity: .12;
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(24, 5, 3, .78);
  backdrop-filter: blur(18px);
}

.admin-shell {
  width: min(100vw - 32px, 1240px);
  margin: 0 auto;
  padding: 36px 0 72px;
}

.admin-login {
  width: min(100%, 560px);
  margin: 64px auto;
}

.admin-login h1,
.admin-title-row h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 600;
  line-height: 1;
}

.admin-token-form {
  margin-top: 24px;
}

.admin-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.admin-dashboard[hidden],
.admin-login[hidden],
.admin-panel {
  display: none;
}

.admin-panel.is-active {
  display: block;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-stats article,
.admin-order,
.admin-product,
.admin-empty,
.admin-token-form {
  border: 1px solid rgba(211, 170, 85, .22);
  border-radius: 8px;
  background: rgba(251, 245, 232, .08);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .18);
  backdrop-filter: blur(16px);
}

.admin-stats article {
  min-height: 104px;
  padding: 18px;
}

.admin-stats span,
.admin-toolbar span,
.admin-actions span,
.admin-product-fields span {
  display: block;
  margin-bottom: 8px;
  color: rgba(251, 245, 232, .62);
  font-size: 12px;
}

.admin-stats strong {
  display: block;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.1;
}

.admin-tabs {
  display: inline-flex;
  gap: 6px;
  margin: 0 0 18px;
  padding: 5px;
  border: 1px solid rgba(211, 170, 85, .2);
  border-radius: 8px;
  background: rgba(20, 5, 3, .48);
}

.admin-tabs button,
.admin-product-fields button {
  min-height: 38px;
  padding: 0 14px;
  color: var(--ivory);
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
}

.admin-tabs button.is-active,
.admin-product-fields button {
  color: var(--red-deep);
  border-color: rgba(255, 239, 190, .5);
  background: linear-gradient(145deg, var(--gold-soft), var(--gold));
}

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 220px;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-toolbar input,
.admin-toolbar select,
.admin-actions select,
.admin-product-fields input,
.admin-product-fields select,
.admin-token-form input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  color: var(--ivory);
  border: 1px solid rgba(211, 170, 85, .24);
  border-radius: 8px;
  outline: none;
  background: rgba(22, 6, 4, .74);
}

.admin-orders,
.admin-products {
  display: grid;
  gap: 12px;
}

.admin-order,
.admin-product,
.admin-empty {
  padding: 16px;
}

.admin-order-head,
.admin-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.admin-order h2,
.admin-product h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.admin-order p,
.admin-product p,
.admin-line-items small {
  margin: 4px 0 0;
  color: rgba(251, 245, 232, .66);
  font-size: 13px;
  line-height: 1.45;
}

.admin-order-head strong {
  font-size: 20px;
}

.admin-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.admin-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  color: var(--gold-soft);
  border: 1px solid rgba(211, 170, 85, .22);
  border-radius: 999px;
  background: rgba(22, 6, 4, .42);
  font-size: 12px;
}

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

.admin-order-grid b,
.admin-notes b {
  display: block;
  margin-bottom: 3px;
  color: rgba(251, 245, 232, .92);
}

.admin-line-items {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 12px;
  border-radius: 8px;
  background: rgba(22, 6, 4, .42);
}

.admin-line-items div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.admin-line-items small {
  grid-column: 1 / -1;
}

.admin-actions,
.admin-product-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 12px;
  margin-top: 14px;
}

.admin-product {
  grid-template-columns: 84px minmax(0, 1fr);
}

.admin-product img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  border: 1px solid rgba(211, 170, 85, .16);
  border-radius: 8px;
  background: rgba(22, 6, 4, .36);
}

.admin-product-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.admin-product-fields {
  grid-template-columns: 150px 150px auto;
  margin-top: 0;
}

.admin-message {
  min-height: 22px;
  margin-top: 16px;
}

.admin-message.is-error {
  color: #ffd1c7;
}

@media (max-width: 820px) {
  .admin-title-row,
  .admin-order-head,
  .admin-product-body {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .admin-stats,
  .admin-order-grid,
  .admin-notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-toolbar,
  .admin-actions,
  .admin-product-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .admin-shell {
    width: min(100vw - 20px, 1240px);
    padding-top: 24px;
  }

  .admin-stats,
  .admin-order-grid,
  .admin-notes,
  .admin-product {
    grid-template-columns: 1fr;
  }
}

.admin-app-page {
  color: #f8efe2;
  background:
    linear-gradient(135deg, rgba(18, 3, 2, .96), rgba(72, 11, 7, .92)),
    image-set(url("altar-bg.webp") type("image/webp"), url("altar-bg.png") type("image/png")) center / cover fixed;
}

.admin-app {
  min-height: 100vh;
}

.admin-auth {
  display: grid;
  align-content: center;
  width: min(100vw - 36px, 520px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 48px 0;
}

.admin-auth-brand {
  margin-bottom: 36px;
}

.admin-auth h1 {
  margin: 0 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  line-height: .98;
}

.admin-auth-form,
.admin-editor,
.admin-table-panel,
.admin-kpis article,
.admin-order,
.admin-empty {
  border: 1px solid rgba(229, 190, 112, .2);
  border-radius: 8px;
  background: rgba(17, 6, 4, .7);
  box-shadow: 0 20px 70px rgba(0, 0, 0, .26);
  backdrop-filter: blur(18px);
}

.admin-auth-form {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.admin-workspace {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-workspace[hidden],
.admin-auth[hidden],
.admin-section {
  display: none;
}

.admin-section.is-active {
  display: block;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 24px;
  height: 100vh;
  padding: 22px;
  border-right: 1px solid rgba(229, 190, 112, .18);
  background: rgba(14, 4, 3, .82);
  backdrop-filter: blur(18px);
}

.admin-nav {
  display: grid;
  gap: 8px;
}

.admin-nav button,
.admin-secondary-button,
.admin-primary-button,
.admin-danger-button,
.admin-data-table button,
.admin-auth-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
}

.admin-nav button,
.admin-secondary-button,
.admin-data-table button {
  color: #f8efe2;
  border: 1px solid rgba(229, 190, 112, .22);
  background: rgba(255, 255, 255, .04);
}

.admin-nav button.is-active {
  color: #2b0704;
  border-color: rgba(255, 241, 192, .65);
  background: linear-gradient(145deg, #f2d489, #d3aa55);
}

.admin-primary-button,
.admin-auth-form button {
  color: #2b0704;
  border: 1px solid rgba(255, 241, 192, .65);
  background: linear-gradient(145deg, #f2d489, #d3aa55);
}

.admin-danger-button {
  color: #ffe7df;
  border: 1px solid rgba(255, 122, 92, .42);
  background: rgba(142, 20, 12, .7);
}

.admin-current-user {
  align-self: end;
  display: grid;
  gap: 3px;
  padding: 14px;
  border: 1px solid rgba(229, 190, 112, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
}

.admin-current-user span,
.admin-current-user small,
.admin-module-head p,
.admin-role-help,
.admin-editor-head span {
  color: rgba(248, 239, 226, .64);
  font-size: 12px;
  line-height: 1.45;
}

.admin-current-user strong {
  font-size: 15px;
}

.admin-main {
  min-width: 0;
  padding: 26px;
}

.admin-topbar,
.admin-module-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-topbar h1,
.admin-module-head h2,
.admin-editor h3 {
  margin: 0;
}

.admin-topbar h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 600;
  line-height: 1;
}

.admin-topbar-actions {
  display: flex;
  gap: 8px;
}

.admin-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-kpis article {
  min-height: 96px;
  padding: 16px;
}

.admin-kpis span {
  display: block;
  color: rgba(248, 239, 226, .62);
  font-size: 12px;
}

.admin-kpis strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
}

.admin-product-layout,
.admin-user-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 14px;
  align-items: start;
}

.admin-table-panel,
.admin-editor {
  padding: 14px;
}

.admin-filter-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 150px;
  gap: 10px;
  margin-bottom: 12px;
}

.admin-auth-form label,
.admin-filter-row label,
.admin-editor label,
.admin-actions label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.admin-auth-form span,
.admin-filter-row span,
.admin-editor label span,
.admin-actions span {
  color: rgba(248, 239, 226, .68);
  font-size: 12px;
}

.admin-auth-form input,
.admin-filter-row input,
.admin-filter-row select,
.admin-editor input,
.admin-editor select,
.admin-actions select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  color: #f8efe2;
  border: 1px solid rgba(229, 190, 112, .24);
  border-radius: 8px;
  outline: none;
  background: rgba(13, 4, 3, .76);
}

.admin-data-table {
  overflow-x: auto;
}

.admin-data-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.admin-data-table th,
.admin-data-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(229, 190, 112, .12);
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
}

.admin-data-table th {
  color: rgba(248, 239, 226, .62);
  font-weight: 500;
}

.admin-data-table td small {
  display: block;
  margin-top: 3px;
  color: rgba(248, 239, 226, .56);
}

.admin-product-cell {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.admin-product-cell img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border: 1px solid rgba(229, 190, 112, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
}

.admin-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(229, 190, 112, .2);
  border-radius: 999px;
  color: #f2d489;
  background: rgba(255, 255, 255, .04);
  font-size: 12px;
}

.admin-status-pill.is-active,
.admin-status-pill.is-paid {
  color: #aef1c2;
  border-color: rgba(111, 227, 148, .36);
}

.admin-status-pill.is-hidden,
.admin-status-pill.is-disabled {
  color: #ffd0c2;
  border-color: rgba(255, 122, 92, .36);
}

.admin-status-pill.is-draft {
  color: #d7d6ff;
  border-color: rgba(151, 148, 255, .34);
}

.admin-editor {
  position: sticky;
  top: 18px;
}

.admin-editor form {
  display: grid;
  gap: 13px;
}

.admin-editor-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.admin-icon-button {
  width: 36px;
  height: 36px;
  color: #2b0704;
  border: 1px solid rgba(255, 241, 192, .65);
  border-radius: 8px;
  background: linear-gradient(145deg, #f2d489, #d3aa55);
  font-size: 22px;
  line-height: 1;
}

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

.admin-image-preview {
  display: grid;
  place-items: center;
  min-height: 150px;
  border: 1px dashed rgba(229, 190, 112, .26);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
}

.admin-image-preview img {
  max-height: 140px;
  object-fit: contain;
}

.admin-image-preview span {
  color: rgba(248, 239, 226, .52);
  font-size: 13px;
}

.admin-editor-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.admin-toast {
  position: fixed;
  right: 24px;
  bottom: 20px;
  z-index: 50;
  max-width: min(520px, calc(100vw - 40px));
  margin: 0;
  padding: 12px 14px;
  color: #f8efe2;
  border: 1px solid rgba(229, 190, 112, .24);
  border-radius: 8px;
  background: rgba(14, 4, 3, .88);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .24);
}

.admin-toast:empty {
  display: none;
}

.admin-toast.is-error {
  color: #ffd1c7;
  border-color: rgba(255, 122, 92, .36);
}

@media (max-width: 1120px) {
  .admin-workspace {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    grid-template-columns: 1fr;
    height: auto;
  }

  .admin-product-layout,
  .admin-user-layout {
    grid-template-columns: 1fr;
  }

  .admin-editor {
    position: static;
  }
}

@media (max-width: 760px) {
  .admin-main,
  .admin-sidebar {
    padding: 16px;
  }

  .admin-topbar,
  .admin-module-head {
    align-items: start;
    flex-direction: column;
  }

  .admin-kpis,
  .admin-filter-row,
  .admin-form-grid,
  .admin-editor-actions {
    grid-template-columns: 1fr;
  }

  .admin-topbar-actions {
    width: 100%;
  }

  .admin-topbar-actions > * {
    flex: 1;
  }
}

@media (pointer: fine) {
  body,
  body * {
    cursor: url("mouse-cursor-32.png") 8 8, auto !important;
  }

  a,
  button,
  input,
  textarea,
  select,
  summary,
  [role="button"],
  .object-glow.is-motion-target,
  .cover-overlay.is-motion-target,
  .calibration-tabs button,
  .calibration-copy,
  .resize-handle {
    cursor: url("mouse-cursor-click-32.png") 8 8, pointer !important;
  }

  .cine-toggle,
  .cine-nav-button:not(:disabled) {
    cursor: url("mouse-cursor-click-32.png") 8 8, pointer !important;
  }

  body.is-pointer-down,
  body.is-pointer-down * {
    cursor: url("mouse-cursor-click-32.png") 8 8, auto !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
