/* src/theme-tokens.css */
/*
  UXPIN THEME TOKENS - integrated with the Wire theme editor.
  This file is the single source of truth for the design: every color, font,
  radius and shadow lives here as a CSS variable.
  KEEP THE STRUCTURE: exactly one "html:root:not(.dark)" block (light scheme)
  and one "html:root.dark" block (dark scheme), one "--token: value;" per line.
  Change VALUES or add/remove token lines - never rename or merge the blocks.
*/
html:root:not(.dark) {
  --mui-palette-primary-main: #141414;
  --mui-palette-primary-mainChannel: 20 20 20;
  --mui-palette-primary-light: rgb(67, 67, 67);
  --mui-palette-primary-lightChannel: 67 67 67;
  --mui-palette-primary-dark: rgb(14, 14, 14);
  --mui-palette-primary-darkChannel: 14 14 14;
  --mui-palette-primary-contrastText: #ffffff;
  --mui-palette-primary-contrastTextChannel: 255 255 255;
  --mui-palette-secondary-main: #5c5b57;
  --mui-palette-secondary-mainChannel: 92 91 87;
  --mui-palette-secondary-light: rgb(125, 124, 121);
  --mui-palette-secondary-lightChannel: 125 124 121;
  --mui-palette-secondary-dark: rgb(64, 64, 61);
  --mui-palette-secondary-darkChannel: 64 64 61;
  --mui-palette-secondary-contrastText: #ffffff;
  --mui-palette-secondary-contrastTextChannel: 255 255 255;
  --mui-palette-background-default: #edebe6;
  --mui-palette-background-defaultChannel: 237 235 230;
  --mui-palette-background-paper: #edebe6;
  --mui-palette-background-paperChannel: 237 235 230;
  --mui-palette-text-primary: #141414;
  --mui-palette-text-primaryChannel: 20 20 20;
  --mui-palette-text-secondary: #5c5b57;
  --mui-palette-text-secondaryChannel: 92 91 87;
  --mui-palette-divider: rgba(20, 20, 20, 0.2);
  --mui-palette-dividerChannel: 20 20 20;
  --mui-palette-error-main: #b3261e;
  --mui-palette-error-mainChannel: 179 38 30;
  --mui-palette-error-light: rgb(194, 81, 75);
  --mui-palette-error-lightChannel: 194 81 75;
  --mui-palette-error-dark: rgb(125, 27, 21);
  --mui-palette-error-darkChannel: 125 27 21;
  --mui-palette-error-contrastText: #fff;
  --mui-palette-error-contrastTextChannel: 255 255 255;
  --mui-palette-success-main: #1e6b3a;
  --mui-palette-success-mainChannel: 30 107 58;
  --mui-palette-success-light: rgb(75, 137, 97);
  --mui-palette-success-lightChannel: 75 137 97;
  --mui-palette-success-dark: rgb(21, 75, 41);
  --mui-palette-success-darkChannel: 21 75 41;
  --mui-palette-success-contrastText: #fff;
  --mui-palette-success-contrastTextChannel: 255 255 255;
  --mui-palette-warning-main: #8a5a00;
  --mui-palette-warning-mainChannel: 138 90 0;
  --mui-palette-warning-light: rgb(161, 123, 51);
  --mui-palette-warning-lightChannel: 161 123 51;
  --mui-palette-warning-dark: rgb(97, 63, 0);
  --mui-palette-warning-darkChannel: 97 63 0;
  --mui-palette-warning-contrastText: #fff;
  --mui-palette-warning-contrastTextChannel: 255 255 255;
  --mui-palette-info-main: #141414;
  --mui-palette-info-mainChannel: 20 20 20;
  --mui-palette-info-light: rgb(67, 67, 67);
  --mui-palette-info-lightChannel: 67 67 67;
  --mui-palette-info-dark: rgb(14, 14, 14);
  --mui-palette-info-darkChannel: 14 14 14;
  --mui-palette-info-contrastText: #fff;
  --mui-palette-info-contrastTextChannel: 255 255 255;
  --mui-font-family: "Martian Mono", monospace;
  --mui-font-family-h1: "Unbounded", "Martian Mono", sans-serif;
  --mui-font-family-h2: "Unbounded", "Martian Mono", sans-serif;
  --mui-font-family-h3: "Unbounded", "Martian Mono", sans-serif;
  --mui-font-size-h1: 3.5rem;
  --mui-font-weight-h1: 600;
  --mui-font-lineHeight-h1: 1;
  --mui-font-size-h2: 1.5rem;
  --mui-font-weight-h2: 600;
  --mui-font-lineHeight-h2: 1.2;
  --mui-font-size-h3: 1rem;
  --mui-font-weight-h3: 500;
  --mui-font-lineHeight-h3: 1.3;
  --mui-font-size-body1: 0.875rem;
  --mui-font-size-body2: 0.75rem;
  --mui-font-size-button: 0.75rem;
  --mui-font-weight-button: 600;
  --mui-font-size-caption: 0.6875rem;
  --mui-shape-borderRadius: 0px;
  --mui-comp-button-radius: 0px;
  --mui-comp-button-text-transform: none;
  --mui-comp-button-shadow: none;
  --mui-comp-button-shadow-hover: none;
  --mui-comp-button-shadow-active: none;
  --ds-mono-font: "Martian Mono", monospace;
  --ds-stage-terracotta: #c8553d;
  --ds-stage-terracotta-text: #ffffff;
  --ds-stage-olive: #6b7040;
  --ds-stage-olive-text: #ffffff;
  --ds-stage-butter: #f1d98a;
  --ds-stage-butter-text: #1f2430;
  --ds-stage-ink: #1f2430;
  --ds-stage-ink-text: #ffffff;
  --ds-accent: #f0440f;
  --ds-accent-contrast: #ffffff;
  --ds-surface-alt: #edeae4;
  --ds-surface-alt-text: #1f2430;
  --ds-glow: radial-gradient(circle at 50% 40%, #FFE2B0 0%, rgba(255,226,176,0) 70%);
  --mui-font-weight-caption: 400;
  --ds-display-font: "Doto", "Martian Mono", monospace;
  --ds-border: 1px solid var(--mui-palette-text-primary);
  --ds-rule: 1px solid var(--mui-palette-divider);
  --ds-receipt-paper: #ffffff;
  --ds-receipt-ink: #141414;
  --ds-photo-surface: #edebe6;
  --ds-photo-ink: #141414;
}
html:root.dark {
  --mui-palette-primary-main: #ebebe6;
  --mui-palette-primary-mainChannel: 235 235 230;
  --mui-palette-primary-light: rgb(239, 239, 235);
  --mui-palette-primary-lightChannel: 239 239 235;
  --mui-palette-primary-dark: rgb(165, 165, 161);
  --mui-palette-primary-darkChannel: 165 165 161;
  --mui-palette-primary-contrastText: #141414;
  --mui-palette-primary-contrastTextChannel: 20 20 20;
  --mui-palette-secondary-main: #a3a29c;
  --mui-palette-secondary-mainChannel: 163 162 156;
  --mui-palette-secondary-light: rgb(181, 181, 176);
  --mui-palette-secondary-lightChannel: 181 181 176;
  --mui-palette-secondary-dark: rgb(114, 113, 109);
  --mui-palette-secondary-darkChannel: 114 113 109;
  --mui-palette-secondary-contrastText: rgba(0, 0, 0, 0.87);
  --mui-palette-secondary-contrastTextChannel: 0 0 0;
  --mui-palette-background-default: #141414;
  --mui-palette-background-defaultChannel: 20 20 20;
  --mui-palette-background-paper: #141414;
  --mui-palette-background-paperChannel: 20 20 20;
  --mui-palette-text-primary: #edebe6;
  --mui-palette-text-primaryChannel: 237 235 230;
  --mui-palette-text-secondary: #a3a29c;
  --mui-palette-text-secondaryChannel: 163 162 156;
  --mui-palette-divider: rgba(237, 235, 230, 0.2);
  --mui-palette-dividerChannel: 237 235 230;
  --mui-palette-error-main: #f87171;
  --mui-palette-error-mainChannel: 248 113 113;
  --mui-palette-error-light: rgb(249, 141, 141);
  --mui-palette-error-lightChannel: 249 141 141;
  --mui-palette-error-dark: rgb(174, 79, 79);
  --mui-palette-error-darkChannel: 174 79 79;
  --mui-palette-error-contrastText: rgba(0, 0, 0, 0.87);
  --mui-palette-error-contrastTextChannel: 0 0 0;
  --mui-palette-success-main: #4ade80;
  --mui-palette-success-mainChannel: 74 222 128;
  --mui-palette-success-light: rgb(110, 229, 153);
  --mui-palette-success-lightChannel: 110 229 153;
  --mui-palette-success-dark: rgb(52, 155, 90);
  --mui-palette-success-darkChannel: 52 155 90;
  --mui-palette-success-contrastText: rgba(0, 0, 0, 0.87);
  --mui-palette-success-contrastTextChannel: 0 0 0;
  --mui-palette-warning-main: #fbbf24;
  --mui-palette-warning-mainChannel: 251 191 36;
  --mui-palette-warning-light: rgb(252, 204, 80);
  --mui-palette-warning-lightChannel: 252 204 80;
  --mui-palette-warning-dark: rgb(176, 134, 25);
  --mui-palette-warning-darkChannel: 176 134 25;
  --mui-palette-warning-contrastText: rgba(0, 0, 0, 0.87);
  --mui-palette-warning-contrastTextChannel: 0 0 0;
  --mui-palette-info-main: #3b82f6;
  --mui-palette-info-mainChannel: 59 130 246;
  --mui-palette-info-light: rgb(98, 155, 248);
  --mui-palette-info-lightChannel: 98 155 248;
  --mui-palette-info-dark: rgb(41, 91, 172);
  --mui-palette-info-darkChannel: 41 91 172;
  --mui-palette-info-contrastText: #fff;
  --mui-palette-info-contrastTextChannel: 255 255 255;
  --mui-font-family: "Martian Mono", monospace;
  --mui-font-family-h1: "Unbounded", "Martian Mono", sans-serif;
  --mui-font-family-h2: "Unbounded", "Martian Mono", sans-serif;
  --mui-font-family-h3: "Unbounded", "Martian Mono", sans-serif;
  --mui-font-size-h1: 3.5rem;
  --mui-font-weight-h1: 600;
  --mui-font-lineHeight-h1: 1;
  --mui-font-size-h2: 1.5rem;
  --mui-font-weight-h2: 600;
  --mui-font-lineHeight-h2: 1.2;
  --mui-font-size-h3: 1rem;
  --mui-font-weight-h3: 500;
  --mui-font-lineHeight-h3: 1.3;
  --mui-font-size-body1: 0.875rem;
  --mui-font-size-body2: 0.75rem;
  --mui-font-size-button: 0.75rem;
  --mui-font-weight-button: 600;
  --mui-font-size-caption: 0.6875rem;
  --mui-shape-borderRadius: 0px;
  --mui-comp-button-radius: 0px;
  --mui-comp-button-text-transform: none;
  --mui-comp-button-shadow: none;
  --mui-comp-button-shadow-hover: none;
  --mui-comp-button-shadow-active: none;
  --ds-mono-font: "Martian Mono", monospace;
  --ds-stage-terracotta: #c8553d;
  --ds-stage-terracotta-text: #ffffff;
  --ds-stage-olive: #6b7040;
  --ds-stage-olive-text: #ffffff;
  --ds-stage-butter: #f1d98a;
  --ds-stage-butter-text: #1f2430;
  --ds-stage-ink: #21242c;
  --ds-stage-ink-text: #ffffff;
  --ds-accent: #f0440f;
  --ds-accent-contrast: #ffffff;
  --ds-surface-alt: #21242c;
  --ds-surface-alt-text: #ebecef;
  --ds-glow: radial-gradient(circle at 50% 40%, #FFE2B0 0%, rgba(255,226,176,0) 70%);
  --mui-font-weight-caption: 400;
  --ds-display-font: "Doto", "Martian Mono", monospace;
  --ds-border: 1px solid var(--mui-palette-text-primary);
  --ds-rule: 1px solid var(--mui-palette-divider);
  --ds-receipt-paper: #ffffff;
  --ds-receipt-ink: #141414;
  --ds-photo-surface: #edebe6;
  --ds-photo-ink: #141414;
}


/* src/styles/CollectionPlate.css */
.ondo-plate { position: relative; flex: 1; min-width: 0; text-decoration: none; color: inherit; cursor: pointer; }
.ondo-plate .ondo-bar { transform: scaleX(0); transform-origin: left; transition: transform 240ms cubic-bezier(0.2, 0, 0, 1); }
.ondo-plate.ondo-lit .ondo-bar { transform: scaleX(1); }
.ondo-plate .ondo-name { color: var(--mui-palette-text-secondary); transition: color 240ms cubic-bezier(0.2, 0, 0, 1); }
.ondo-plate.ondo-lit .ondo-name { color: var(--mui-palette-text-primary); }
.ondo-plate .ondo-photo-on, .ondo-plate .ondo-shade-glow { opacity: 0; transition: opacity 240ms cubic-bezier(0.2, 0, 0, 1); pointer-events: none; }
.ondo-plate.ondo-lit .ondo-photo-on, .ondo-plate.ondo-lit .ondo-shade-glow { opacity: 1; }
.ondo-plate .ondo-photo-off { transition: opacity 240ms cubic-bezier(0.2, 0, 0, 1); }
.ondo-plate.ondo-lit .ondo-photo-off.ondo-has-on { opacity: 0; }
.ondo-shade-glow { position: absolute; background: var(--ds-glow); mix-blend-mode: multiply; }
.ondo-plate:focus-visible { outline: 2px solid var(--mui-palette-text-primary); outline-offset: -4px; }
.ondo-dim-label { writing-mode: vertical-rl; transform: rotate(180deg); }
/* Two classes: MUI's Typography sets its own font with one, and is injected after this file. */
.ondo-plate .ondo-num { font-family: var(--ds-display-font); font-weight: 900; font-variation-settings: "wght" 900; }

.ondo-collection { --plateH: max(276px, min(calc(100vh - 324px), 31.25vw)); }
.ondo-ground { display: none; }
@media (min-width: 900px) { .ondo-ground { display: block; top: calc(60px + var(--plateH)); } }
.ondo-plates { display: flex; flex-direction: column; }
@media (min-width: 600px) and (max-width: 899.98px) { .ondo-plates { display: grid; grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .ondo-plates { flex-direction: row; flex: 1; min-height: 0; } }
@media (prefers-reduced-motion: reduce) {
  .ondo-plate .ondo-bar, .ondo-plate .ondo-name, .ondo-plate .ondo-photo-on, .ondo-plate .ondo-photo-off, .ondo-plate .ondo-shade-glow { transition: none; }
}


/* src/styles/Product.css */
.ondo-product { --lampH: min(max(320px, 53.34vh), calc((46vw - 48px) * 1.2)); }
@media (max-width: 899.98px) { .ondo-product { --lampH: 320px; } }
@media (max-width: 599.98px) { .ondo-product { --lampH: 240px; } }
.ondo-switch-hit { display: flex; align-items: center; }
@media (pointer: coarse) {
  .ondo-product .ondo-opt { min-height: 44px; }
  .ondo-product .ondo-opt[role="button"] { width: 44px; height: 44px; }
  .ondo-product .ondo-qtyval { height: 44px; }
  .ondo-product .ondo-add { min-height: 44px; }
  .ondo-product .ondo-slider { touch-action: none; }
  .ondo-product .ondo-slider .MuiSlider-thumb { width: 28px; height: 28px; }
  .ondo-product .ondo-switch-hit { min-height: 44px; min-width: 52px; justify-content: center; }
}


/* src/styles/Cart.css */
.ondo-cart { --qtyw: 96px; }
@media (pointer: coarse) { .ondo-cart { --qtyw: 132px; } }


/* Checkout: the receipt prints again as paid, line by line under a print head,
   the PAID stamp lands with a thud, then the thank-you rises. About 1.3 s. */
@keyframes ondoPrintPaid { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes ondoPrintHead { from { top: 0; opacity: 1; } 94% { opacity: 1; } to { top: 100%; opacity: 0; } }
@keyframes ondoThud { 0%, 100% { transform: none; } 35% { transform: translateY(3px) rotate(-0.4deg); } 70% { transform: translateY(-1px); } }
@keyframes ondoRise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ondo-receipt-paid { animation: ondoPrintPaid 900ms steps(16, end) both, ondoThud 220ms 1050ms cubic-bezier(0.3, 0, 0, 1) both; }
.ondo-receipt-paid::after { content: ''; position: absolute; left: 0; right: 0; height: 2px; transform: translateY(-2px); background: var(--ds-receipt-ink); opacity: 0; pointer-events: none; animation: ondoPrintHead 900ms steps(16, end) both; }
.ondo-receipt-paid .ondo-stamp { animation-delay: 950ms; }
.ondo-thanks { animation: ondoRise 320ms cubic-bezier(0.3, 0, 0, 1) 1150ms both; }
@media (prefers-reduced-motion: reduce) {
  .ondo-receipt-paid, .ondo-thanks { animation: none; }
  .ondo-receipt-paid::after { display: none; }
  .ondo-receipt-paid .ondo-stamp { animation-delay: 0ms; }
}


/* src/styles/transitions.css */
:root { --vt-ease: cubic-bezier(0.3, 0, 0, 1); }

/* names that stay put on every page */
.ondo-navtext { position: relative; display: inline-block; }
.ondo-underline { position: absolute; left: 0; right: 0; bottom: 1px; height: 1px; background: currentColor; view-transition-name: nav-underline; }

::view-transition { pointer-events: none; }

/* header: identical on every page, never moves */
::view-transition-group(site-header) { animation: none; }
::view-transition-old(site-header) { display: none; }
::view-transition-new(site-header) { animation: none; }
::view-transition-old(nav-underline), ::view-transition-new(nav-underline) { width: 100%; height: 100%; }

/* sections: sideways slide in menu order */
html[data-vt="fwd"]::view-transition-old(root), html[data-vt="fwd"]::view-transition-new(root),
html[data-vt="back"]::view-transition-old(root), html[data-vt="back"]::view-transition-new(root) {
  mix-blend-mode: normal; animation-duration: 240ms; animation-timing-function: var(--vt-ease); animation-fill-mode: both;
}
html[data-vt="fwd"]::view-transition-old(root) { animation-name: ondo-out-left; }
html[data-vt="fwd"]::view-transition-new(root) { animation-name: ondo-in-right; }
html[data-vt="back"]::view-transition-old(root) { animation-name: ondo-out-right; }
html[data-vt="back"]::view-transition-new(root) { animation-name: ondo-in-left; }
html[data-vt="fwd"]::view-transition-group(nav-underline), html[data-vt="back"]::view-transition-group(nav-underline) {
  animation-duration: 240ms; animation-timing-function: var(--vt-ease);
}
html[data-vt="fwd"]::view-transition-group(site-strip), html[data-vt="back"]::view-transition-group(site-strip) { animation-duration: 240ms; }
@media (max-width: 599.98px) {
  html[data-vt="fwd"]::view-transition-old(root), html[data-vt="fwd"]::view-transition-new(root),
  html[data-vt="back"]::view-transition-old(root), html[data-vt="back"]::view-transition-new(root),
  html[data-vt="fwd"]::view-transition-group(nav-underline), html[data-vt="back"]::view-transition-group(nav-underline) { animation-duration: 160ms; }
  html[data-vt="fwd"]::view-transition-group(site-strip), html[data-vt="back"]::view-transition-group(site-strip) { animation-duration: 160ms; }
}
@keyframes ondo-out-left { to { transform: translateX(-100%); } }
@keyframes ondo-in-right { from { transform: translateX(100%); } }
@keyframes ondo-out-right { to { transform: translateX(100%); } }
@keyframes ondo-in-left { from { transform: translateX(-100%); } }

/* collection <-> product: the lamp, its surface and its name are shared elements */
html[data-vt="lamp"] .ondo-product .ondo-vt-surface { view-transition-name: lamp-surface; }
html[data-vt="lamp"] .ondo-product .ondo-vt-name { view-transition-name: lamp-name; }
html[data-vt="lamp"] .ondo-product .ondo-vt-photo, html[data-vt="swap"] .ondo-product .ondo-vt-photo { view-transition-name: lamp-photo; }
html[data-vt="swap"] .ondo-product .ondo-vt-counter { view-transition-name: lamp-counter; }

html[data-vt="lamp"]::view-transition-group(lamp-surface),
html[data-vt="lamp"]::view-transition-group(lamp-photo),
html[data-vt="lamp"]::view-transition-group(lamp-name) { animation-duration: 320ms; animation-timing-function: var(--vt-ease); }
html[data-vt="lamp"]::view-transition-old(root), html[data-vt="lamp"]::view-transition-new(root),
html[data-vt="lamp"]::view-transition-old(site-strip), html[data-vt="lamp"]::view-transition-new(site-strip) { animation-duration: 240ms; }

/* the photograph keeps multiply, so it blends into the surface that travels with it */
::view-transition-group(lamp-photo) { mix-blend-mode: multiply; }
::view-transition-old(lamp-photo), ::view-transition-new(lamp-photo) { width: 100%; height: 100%; object-fit: contain; }
::view-transition-old(lamp-surface), ::view-transition-new(lamp-surface) { width: 100%; height: 100%; }
::view-transition-old(lamp-name), ::view-transition-new(lamp-name) { width: 100%; height: 100%; object-fit: contain; object-position: left center; }

/* product -> product: photographs cross-fade in place, the counter flips */
html[data-vt="swap"]::view-transition-group(lamp-photo) { animation-duration: 200ms; }
html[data-vt="swap"]::view-transition-old(root), html[data-vt="swap"]::view-transition-new(root) { animation-duration: 200ms; }
html[data-vt="swap"]::view-transition-group(lamp-counter) { overflow: clip; animation-duration: 240ms; }
html[data-vt="swap"]::view-transition-old(lamp-counter), html[data-vt="swap"]::view-transition-new(lamp-counter) {
  mix-blend-mode: normal; animation-duration: 240ms; animation-timing-function: var(--vt-ease); animation-fill-mode: both;
}
html[data-vt="swap"]::view-transition-old(lamp-counter) { animation-name: ondo-flip-out; }
html[data-vt="swap"]::view-transition-new(lamp-counter) { animation-name: ondo-flip-in; }
@keyframes ondo-flip-out { to { transform: translateY(-100%); opacity: 0; } }
@keyframes ondo-flip-in { from { transform: translateY(100%); opacity: 0; } }

/* reduced motion (and anything unclassified): a plain short cross-fade */
html[data-vt="fade"]::view-transition-group(*) { animation-duration: 0.001s; }
html[data-vt="fade"]::view-transition-old(*), html[data-vt="fade"]::view-transition-new(*) { animation-duration: 120ms; }

/* header cart count flip, receipt stamp */
.ondo-count { display: inline-block; }
.ondo-count.ondo-tick { animation: ondo-tick 200ms var(--vt-ease) both; }
@keyframes ondo-tick { from { transform: translateY(70%) rotateX(-80deg); opacity: 0; } to { transform: none; opacity: 1; } }
.ondo-stamp { animation: ondo-stamp 200ms var(--vt-ease) both; }
@keyframes ondo-stamp {
  from { transform: rotate(-6deg) scale(1.8); opacity: 0; }
  to { transform: rotate(-6deg) scale(1); opacity: 1; }
}
/* add to cart: a tile flies to "Cart" in the header and lands there (utils/flyToCart.js) */
.ondo-fly { position: fixed; z-index: 2000; pointer-events: none; will-change: transform; }
.ondo-fly-tile {
  box-sizing: border-box; padding: 6px 10px; white-space: nowrap; will-change: transform, opacity;
  background: var(--mui-palette-text-primary); color: var(--mui-palette-background-default);
  font-family: var(--ds-display-font); font-weight: 900; font-variation-settings: "wght" 900; font-size: 20px; line-height: 1;
}
.ondo-fly-tile.ondo-fly-photo { width: 64px; height: 96px; padding: 0; background: var(--ds-photo-surface); border: 1px solid var(--ds-photo-ink); isolation: isolate; }
.ondo-fly-photo img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ondo-cart-hit { animation: ondo-cart-hit 360ms var(--vt-ease) both; }
@keyframes ondo-cart-hit { from { background-color: var(--ds-accent); color: var(--ds-accent-contrast); } }
@media (prefers-reduced-motion: reduce) {
  .ondo-count.ondo-tick, .ondo-stamp, .ondo-cart-hit { animation: none; }
}
