:root {
  --ink: #f5f7fb;
  --paper: #07080d;
  --cream: #11131b;
  --line: rgba(245, 247, 251, 0.14);
  --muted: #a3a9b6;
  --ember: #d85732;
  --acid: #d8ff5f;
  --teal: #006d77;
  --blue: #3578f6;
  --plum: #4c335f;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  --soft-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  color: var(--ink);
  background:
    url("/img/topleft.PNG") left top / min(32vw, 26rem) auto no-repeat,
    url("/img/topright.PNG") right -3rem top -1.5rem / min(22vw, 16rem) auto no-repeat,
    url("/img/botommidright.PNG") center bottom / min(38vw, 30rem) auto no-repeat,
    radial-gradient(circle at 18% 6%, rgba(53, 120, 246, 0.18), transparent 26rem),
    radial-gradient(circle at 88% 20%, rgba(216, 87, 50, 0.12), transparent 24rem),
    linear-gradient(180deg, #07080d 0%, #0d1018 42%, #090a10 100%),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.home-page {
  background-color: var(--paper);
  background-image:
    url("/img/topleft.PNG"),
    url("/img/topright.PNG"),
    url("/img/botommidright.PNG"),
    radial-gradient(circle at 18% 6%, rgba(53, 120, 246, 0.18), transparent 26rem),
    radial-gradient(circle at 88% 20%, rgba(216, 87, 50, 0.12), transparent 24rem),
    linear-gradient(180deg, #07080d 0%, #0d1018 42%, #090a10 100%);
  background-position:
    left calc(2.5rem + var(--bg-top-left-y, 0px)),
    right calc(0rem + var(--bg-top-right-y, 0px)) top calc(0rem + var(--bg-top-right-y, 0px)),
    center calc(100% - var(--bg-bottom-y, 0px)),
    18% 6%,
    88% 20%,
    0 0;
  background-size:
    min(20vw, 14rem) auto,
    min(18vw, 12rem) auto,
    min(24vw, 16rem) auto,
    auto,
    auto,
    100% 100%;
  background-repeat:
    no-repeat,
    no-repeat,
    no-repeat,
    no-repeat,
    no-repeat,
    no-repeat;
}

body::before,
body::after {
  content: none;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(7, 8, 13, 0.78);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  border-color: var(--line);
}

.brand,
.site-nav,
.footer-links,
.hero-actions,
.price-row,
.admin-title-row,
.actions,
.inline-form {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.75rem;
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  width: clamp(6.5rem, 12vw, 9rem);
  height: 2.75rem;
  object-fit: contain;
  border-radius: var(--radius);
  filter: brightness(0) invert(1) contrast(1.08) drop-shadow(0 8px 20px rgba(0, 0, 0, 0.45));
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  color: var(--paper);
  background: var(--ink);
  border-radius: 50%;
  font-weight: 950;
  letter-spacing: 0;
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-copy strong {
  font-size: 1.1rem;
}

.brand-copy small {
  color: var(--muted);
  font-weight: 700;
}

.site-nav {
  gap: 1rem;
  flex-wrap: nowrap;
  justify-content: flex-end;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  font-weight: 800;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav form {
  margin: 0;
}

.nav-cta,
.pill,
.status {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: rgba(255, 255, 255, 0.08);
}

.status.warn {
  border-color: rgba(255, 77, 46, 0.35);
  color: #ff8f77;
}

.pill {
  padding: 0.12rem 0.45rem;
  font-size: 0.78rem;
}

.toast {
  position: fixed;
  top: 5.4rem;
  right: 1rem;
  z-index: 30;
  max-width: min(22rem, calc(100vw - 2rem));
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: var(--shadow);
  font-weight: 850;
}

.toast.success {
  border-color: rgba(14, 124, 123, 0.35);
}

.toast.warn {
  border-color: rgba(255, 77, 46, 0.45);
}

.hero {
  min-height: calc(100svh - 5rem);
  display: grid;
  grid-template-columns: minmax(20rem, 1.08fr) minmax(18rem, 0.72fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
  padding: clamp(1.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-media {
  position: relative;
  min-height: clamp(28rem, 58vw, 46rem);
  isolation: isolate;
  perspective: 1100px;
  transform-style: preserve-3d;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 6% 4% 4%;
  z-index: -2;
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at 50% 30%, rgba(53, 120, 246, 0.16), transparent 32rem);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    var(--soft-shadow);
}

.hero-media::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 6%;
  bottom: 4%;
  z-index: -1;
  height: 4rem;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.56), transparent 68%);
  filter: blur(12px);
}

.float-layer {
  --float-y: 0px;
  --float-rotate: 0deg;
  transform: translate3d(0, var(--float-y), 0) rotate(var(--float-rotate));
  transition: transform 120ms linear;
  will-change: transform;
}

.hero-logo {
  position: absolute;
  left: 50%;
  top: 3%;
  z-index: 3;
  width: clamp(10rem, 18vw, 16rem);
  height: auto;
  opacity: 0.84;
  filter: brightness(0) invert(1) contrast(1.08) drop-shadow(0 16px 34px rgba(0, 0, 0, 0.5));
  translate: -50% 0;
}

.product-float {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(245, 247, 251, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
}

.product-float::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), transparent 34%),
    linear-gradient(180deg, transparent 62%, rgba(17, 17, 17, 0.16));
  pointer-events: none;
}

.product-float img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.product-float-main {
  left: 31%;
  top: 17%;
  z-index: 2;
  width: min(38%, 23rem);
  transform: translate3d(0, var(--float-y), 90px) rotateX(5deg) rotateY(-12deg) rotate(var(--float-rotate));
}

.product-float-side {
  z-index: 1;
  width: min(30%, 18rem);
}

.product-float-side.one {
  left: 2%;
  top: 33%;
  transform: translate3d(0, var(--float-y), 20px) rotateX(3deg) rotateY(14deg) rotate(var(--float-rotate));
}

.product-float-side.two {
  right: 2%;
  bottom: 10%;
  transform: translate3d(0, var(--float-y), 50px) rotateX(-2deg) rotateY(10deg) rotate(var(--float-rotate));
}

.hero-copy h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(4rem, 8vw, 8.4rem);
  line-height: 0.86;
  font-weight: 950;
}

.hero-copy p:not(.eyebrow) {
  max-width: 32rem;
  color: #d3d8e3;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.35;
  font-weight: 720;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--teal);
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.button,
.link-button {
  border: 0;
  cursor: pointer;
  font-weight: 900;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 0 rgba(245, 247, 251, 0.18);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

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

.button.primary.dark {
  color: var(--ink);
  background: var(--acid);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.08);
}

.button.small {
  min-height: 2.35rem;
  padding: 0.45rem 0.75rem;
  background: var(--ink);
  color: var(--paper);
}

.button.full {
  width: 100%;
}

.link-button {
  padding: 0;
  color: var(--ink);
  background: transparent;
}

.danger {
  color: #c03720;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: clamp(1rem, 4vw, 2.5rem) clamp(1.5rem, 5vw, 4rem);
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  perspective: 900px;
}

.feature-strip div {
  display: grid;
  gap: 0.2rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--soft-shadow);
}

.feature-strip strong {
  font-size: clamp(1.8rem, 4vw, 3.4rem);
}

.feature-strip span {
  color: var(--muted);
  font-weight: 800;
}

.section-head,
.page-shell,
.admin-shell,
.product-page {
  padding: clamp(1.5rem, 5vw, 4rem);
}

.section-head h2,
.catalog-header h1,
.page-shell h1,
.admin-main h1,
.product-detail h1,
.auth-panel h1 {
  margin: 0;
  max-width: 58rem;
  font-size: clamp(2.2rem, 5vw, 5.5rem);
  line-height: 0.95;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 0 clamp(1.5rem, 5vw, 4rem) clamp(2rem, 5vw, 4rem);
}

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

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

.product-art,
.product-hero-art,
.mini-art {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.product-art img,
.product-hero-art img,
.mini-art img,
.admin-thumb img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.product-art:not(.has-photo) img,
.product-hero-art:not(.has-photo) img,
.mini-art:not(.has-photo) img,
.admin-thumb img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

.product-art.has-photo,
.product-hero-art.has-photo,
.mini-art.has-photo {
  background: rgba(255, 255, 255, 0.05);
}

.product-art.has-photo::before,
.product-hero-art.has-photo::before,
.mini-art.has-photo::before {
  z-index: 1;
  background:
    linear-gradient(180deg, transparent 55%, rgba(17, 17, 17, 0.42)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 34%);
  pointer-events: none;
}

.product-art.has-photo img {
  transition: transform 450ms ease, filter 450ms ease;
}

.product-card:hover .product-art.has-photo img {
  transform: scale(1.055);
  filter: saturate(1.05) contrast(1.02);
}

.product-art {
  aspect-ratio: 4 / 5;
}

.product-art.has-photo,
.product-hero-art.has-photo {
  aspect-ratio: auto;
}

.mini-art.has-photo {
  display: grid;
  place-items: center;
  aspect-ratio: auto;
  min-height: 4.5rem;
}

.product-art::before,
.product-hero-art::before,
.mini-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 30%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 14px);
}

.hanger {
  position: absolute;
  left: 50%;
  top: 12%;
  width: 5rem;
  height: 2.5rem;
  border-top: 3px solid rgba(17, 17, 17, 0.7);
  border-radius: 50%;
  transform: translateX(-50%);
}

.cloth {
  position: absolute;
  left: 17%;
  right: 17%;
  top: 24%;
  bottom: 10%;
  border-radius: 2rem 2rem 0.75rem 0.75rem;
  background:
    linear-gradient(90deg, transparent 47%, rgba(255, 255, 255, 0.32) 48% 51%, transparent 52%),
    linear-gradient(145deg, rgba(17, 17, 17, 0.9), rgba(255, 255, 255, 0.2));
  clip-path: polygon(28% 0, 72% 0, 96% 30%, 80% 100%, 20% 100%, 4% 30%);
}

.shine {
  position: absolute;
  inset: auto 8% 8% auto;
  width: 38%;
  height: 18%;
  background: rgba(255, 250, 240, 0.52);
  border-radius: 50%;
  filter: blur(20px);
}

.tone-obsidian { background: linear-gradient(135deg, #111, #57534e, #f7f4ed); }
.tone-ember { background: linear-gradient(135deg, #ff4d2e, #111, #f7f4ed); }
.tone-sage { background: linear-gradient(135deg, #0e7c7b, #d9ef8b, #f7f4ed); }
.tone-clay { background: linear-gradient(135deg, #b95f35, #24211f, #f7f4ed); }
.tone-cloud { background: linear-gradient(135deg, #f7f4ed, #87a9bf, #111); }
.tone-volt { background: linear-gradient(135deg, #c6ff39, #111, #fff); }
.tone-copper { background: linear-gradient(135deg, #c97438, #ffd29d, #111); }

.product-copy {
  padding: 0.85rem 0.1rem 0;
}

.product-copy p,
.product-copy span {
  color: var(--muted);
  font-weight: 760;
}

.product-copy p {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.product-copy h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.price-row {
  gap: 0.65rem;
  margin-top: 0.6rem;
}

.price-row strong {
  font-size: 1.15rem;
}

del {
  color: var(--muted);
}

.atelier-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  margin: clamp(1.5rem, 5vw, 4rem);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  color: var(--ink);
  background:
    url("/img/botommidright.PNG") right -1.5rem center / min(46vw, 26rem) auto no-repeat,
    radial-gradient(circle at 10% 18%, rgba(53, 120, 246, 0.18), transparent 16rem),
    radial-gradient(circle at 88% 82%, rgba(216, 87, 50, 0.1), transparent 14rem),
    linear-gradient(145deg, rgba(13, 16, 24, 0.98), rgba(6, 7, 11, 0.98));
  border: 1px solid rgba(245, 247, 251, 0.1);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.atelier-band::before {
  content: "";
  position: absolute;
  inset: 0.85rem;
  border: 1px solid rgba(245, 247, 251, 0.06);
  border-radius: 1.1rem;
  pointer-events: none;
}

.atelier-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, transparent 0 42%, rgba(255, 255, 255, 0.03) 43% 44%, transparent 45%),
    linear-gradient(70deg, transparent 0 72%, rgba(255, 255, 255, 0.03) 73% 74%, transparent 75%);
  opacity: 0.35;
  pointer-events: none;
}

.atelier-band-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.85rem;
  max-width: 44rem;
  font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

.atelier-band-cta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.atelier-band-cta::before {
  content: none;
}

.atelier-band-copy .eyebrow {
  color: rgba(245, 247, 251, 0.56);
  margin-bottom: 0.2rem;
  font-family: inherit;
  font-size: 1rem;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.03em;
}

.atelier-band-text {
  max-width: 36rem;
  margin: 0;
  color: rgba(245, 247, 251, 0.72);
  font-weight: 700;
  line-height: 1.55;
}

.atelier-band h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.9vw, 3.35rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 12ch;
}

.atelier-band-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.atelier-band-meta span {
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(245, 247, 251, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(245, 247, 251, 0.82);
  font-size: 0.82rem;
  font-weight: 780;
  letter-spacing: 0.01em;
}

.atelier-button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem;
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  padding: 0.95rem 1rem 0.95rem 1.2rem;
  align-self: start;
  border: 1px solid rgba(245, 247, 251, 0.24);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(13, 16, 24, 0.96), rgba(13, 16, 24, 0.8)),
    linear-gradient(135deg, rgba(245, 247, 251, 0.14), rgba(255, 255, 255, 0.05));
  color: rgba(245, 247, 251, 0.98);
  letter-spacing: 0.04em;
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: none;
  white-space: nowrap;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  isolation: isolate;
  transform-origin: center;
  animation: atelier-button-jump 2.2s ease-in-out 0.8s infinite;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.atelier-button-text {
  position: relative;
  z-index: 1;
}

.atelier-button-text-short {
  display: none;
}

.atelier-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, transparent 0 18%, rgba(255, 255, 255, 0.09) 19% 26%, transparent 27% 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 45%);
  opacity: 0.75;
  pointer-events: none;
}

.atelier-button::after {
  content: "→";
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 247, 251, 0.16);
  background: rgba(255, 255, 255, 0.08);
  font-size: 1rem;
  line-height: 1;
  flex: 0 0 auto;
  transition: transform 160ms ease;
}

.atelier-button:hover {
  border-color: rgba(245, 247, 251, 0.38);
  background:
    linear-gradient(180deg, rgba(18, 22, 31, 0.98), rgba(18, 22, 31, 0.84)),
    linear-gradient(135deg, rgba(245, 247, 251, 0.18), rgba(255, 255, 255, 0.07));
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.atelier-button:hover::after {
  transform: translateX(3px);
}

@keyframes atelier-button-jump {
  0%,
  60%,
  100% {
    transform: translateY(0) scale(1);
  }

  68% {
    transform: translateY(-8px) scale(1.03);
  }

  76% {
    transform: translateY(0) scale(1);
  }

  84% {
    transform: translateY(-4px) scale(1.015);
  }

  92% {
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .atelier-button {
    animation: none;
  }
}

.catalog-header {
  display: grid;
  grid-template-columns: minmax(18rem, 1fr) minmax(18rem, 0.9fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.filter-bar,
.checkout-form,
.admin-form,
.auth-panel form {
  display: grid;
  gap: 1rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.85rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

label {
  display: grid;
  gap: 0.4rem;
  color: #dce1eb;
  font-weight: 850;
}

.product-page {
  display: grid;
  grid-template-columns: minmax(18rem, 0.95fr) minmax(18rem, 0.8fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.product-hero-art {
  box-shadow: var(--shadow);
}

.product-hero-art:not(.has-photo) {
  min-height: min(72vh, 44rem);
}

.product-hero-art.has-photo {
  min-height: 0;
}

.product-detail .lead {
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1.45;
  font-weight: 750;
}

.giant strong {
  font-size: 2rem;
}

.spec-grid,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.spec-grid div,
.metric-grid article,
.summary-panel,
.auth-panel,
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.spec-grid div,
.metric-grid article {
  padding: 1rem;
}

dt,
.metric-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

dd {
  margin: 0.25rem 0 0;
  font-weight: 850;
}

.buy-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.buy-box .button {
  grid-column: 1 / -1;
}

.split-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem);
  gap: 2rem;
  align-items: start;
}

.cart-list {
  display: grid;
  gap: 1rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) 5rem auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.cart-item h3,
.cart-item p {
  margin: 0.1rem 0;
}

.cart-item p {
  color: var(--muted);
  font-weight: 760;
}

.mini-art {
  width: 5rem;
  aspect-ratio: 1;
}

.saved-addresses {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0 1.5rem;
}

.section-head.mini {
  padding: 0;
  margin-bottom: 0;
}

.section-head.mini h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1;
}

.saved-address-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.saved-address {
  display: grid;
  gap: 0.3rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.saved-address:hover,
.saved-address.is-selected {
  border-color: rgba(245, 247, 251, 0.34);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.saved-address strong {
  font-size: 1rem;
}

.saved-address span,
.saved-address small {
  color: var(--muted);
  font-weight: 720;
  line-height: 1.4;
}

.saved-address small {
  font-size: 0.8rem;
}

.account-shell {
  display: grid;
  gap: 1.25rem;
}

.account-hero {
  display: grid;
  gap: 0.9rem;
  max-width: 40rem;
}

.account-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.account-orders {
  display: grid;
  gap: 0.75rem;
}

.account-order {
  display: grid;
  gap: 0.2rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.account-order span,
.account-order small {
  color: var(--muted);
  font-weight: 720;
}

.admin-product-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 13rem;
}

.admin-thumb {
  position: relative;
  display: inline-block;
  width: 3.5rem;
  aspect-ratio: 1;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.summary-panel {
  position: sticky;
  top: 6rem;
  padding: 1.25rem;
}

.checkout-note,
.payment-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  font-weight: 700;
}

.stock-note {
  margin-top: 0.5rem;
}

.payment-status {
  min-height: 1.5rem;
}

.summary-panel p {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.8rem;
}

.summary-panel .total {
  font-size: 1.25rem;
  border: 0;
}

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

.wide {
  grid-column: 1 / -1;
}

.check {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.check input {
  width: 1.2rem;
  min-height: 1.2rem;
}

.auth-shell {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.auth-panel {
  width: min(100%, 30rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.admin-shell {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.admin-rail {
  position: sticky;
  top: 6rem;
  display: grid;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink);
}

.admin-rail a {
  color: var(--paper);
  padding: 0.75rem;
  border-radius: var(--radius);
  font-weight: 850;
}

.admin-rail a:hover {
  background: rgba(255, 250, 240, 0.14);
}

.admin-main {
  min-width: 0;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 1.5rem 0;
}

.metric-grid strong {
  display: block;
  margin-top: 0.4rem;
  font-size: clamp(1.7rem, 4vw, 3rem);
}

.admin-title-row {
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.table-wrap {
  overflow-x: auto;
  padding: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.9rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.actions,
.inline-form {
  gap: 0.75rem;
}

.inline-form {
  justify-content: flex-end;
}

.inline-form select {
  min-height: 2.35rem;
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 1rem;
  min-height: 32vh;
  text-align: center;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 800;
}

.site-footer > div:first-child {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.footer-logo {
  display: block;
  width: 8rem;
  height: 2.6rem;
  object-fit: contain;
  border-radius: var(--radius);
}

.footer-links {
  gap: 1rem;
}

@media (max-width: 980px) {
  .hero,
  .catalog-header,
  .product-page,
  .split-page,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 4rem;
  }

  .hero-media {
    min-height: clamp(26rem, 72vw, 38rem);
    order: -1;
  }

  .hero-logo {
    top: 2%;
    width: clamp(9rem, 26vw, 14rem);
  }

  .product-float-main {
    left: 28%;
    top: 18%;
    width: min(42%, 22rem);
  }

  .product-float-side {
    width: min(32%, 17rem);
  }

  .product-float-side.one {
    left: 2%;
    top: 36%;
  }

  .product-float-side.two {
    right: 1%;
    bottom: 6%;
  }

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

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

  .summary-panel,
  .admin-rail {
    position: static;
  }

  .admin-rail {
    display: flex;
    overflow-x: auto;
  }
}

@media (max-width: 640px) {
  body.home-page {
    background-position:
      left calc(0.75rem + var(--bg-top-left-y, 0px)) top 1rem,
      right calc(0rem + var(--bg-top-right-y, 0px)) top calc(0rem + var(--bg-top-right-y, 0px)),
      center calc(100% - var(--bg-bottom-y, 0px)),
      18% 6%,
      88% 20%,
      0 0;
    background-size:
      min(28vw, 10rem) auto,
      min(18vw, 8rem) auto,
      min(30vw, 11rem) auto,
      auto,
      auto,
      100% 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
  }

  .brand {
    width: 100%;
  }

  .atelier-band {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
    padding: 0.85rem;
    margin: 1rem;
    border-radius: 1.1rem;
  }

  .atelier-button {
    width: fit-content;
    min-width: 0;
    padding: 0.58rem 0.75rem 0.58rem 0.9rem;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    white-space: nowrap;
  }

  .atelier-button::after {
    width: 2rem;
    height: 2rem;
    font-size: 0.85rem;
  }

  .atelier-button-text-full {
    display: none;
  }

  .atelier-button-text-short {
    display: inline;
  }

  .atelier-band-copy {
    gap: 0.35rem;
  }

  .atelier-band-copy .eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  .atelier-band h2 {
    font-size: clamp(0.98rem, 4.5vw, 1.25rem);
    line-height: 1;
  }

  .atelier-band-text {
    font-size: 0.68rem;
    line-height: 1.35;
  }

  .atelier-band-meta span {
    font-size: 0.58rem;
    padding: 0.25rem 0.45rem;
  }

  .site-nav {
    width: 100%;
    gap: 0.45rem;
    font-size: 0.84rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    white-space: normal;
    overflow-x: visible;
    text-align: left;
  }

  .site-nav > a,
  .site-nav > form {
    align-self: center;
    flex: 0 0 auto;
  }

  .site-nav > a,
  .site-nav .link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.4rem;
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
  }

  .brand-logo {
    width: 6.5rem;
    height: 2.25rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.2rem, 13vw, 3rem);
    line-height: 0.95;
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero-media {
    min-height: 18rem;
  }

  .hero-logo {
    left: 50%;
    top: 1%;
    width: 5.75rem;
  }

  .product-float-main {
    left: 50%;
    top: 18%;
    width: min(72%, 16rem);
    transform: translate3d(-50%, var(--float-y), 80px) rotateX(4deg) rotateY(-8deg) rotate(var(--float-rotate));
  }

  .product-float-side {
    display: none;
  }

  .feature-strip {
    gap: 0.75rem;
    margin: 0 1rem;
    padding: 0.85rem;
  }

  .feature-strip,
  .product-grid,
  .product-grid.compact,
  .spec-grid,
  .form-grid,
  .buy-box,
  .metric-grid,
  .saved-address-grid {
    grid-template-columns: 1fr;
  }

  .account-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-shell,
  .section-head,
  .admin-shell,
  .product-page {
    padding: 0.85rem;
  }

  .catalog-header h1,
  .page-shell h1,
  .product-detail h1,
  .auth-panel h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .table-wrap {
    padding: 0.75rem;
  }

  th,
  td {
    padding: 0.65rem 0.7rem;
  }

  .site-footer {
    padding: 1.5rem 1rem;
    gap: 0.75rem;
  }

  .footer-logo {
    width: 6.5rem;
    height: 2.2rem;
  }

  .cart-item {
    grid-template-columns: 4.5rem minmax(0, 1fr);
  }

  .cart-item input,
  .cart-item .danger,
  .cart-item strong {
    grid-column: 2;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
  }

  .section-head {
    margin-bottom: 1.25rem;
  }

  .section-head h2 {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .feature-strip {
    grid-template-columns: 1fr;
  }

  .feature-strip div {
    padding: 0.9rem 1rem;
  }

  .feature-strip strong {
    font-size: 1rem;
  }

  .feature-strip span {
    font-size: 0.82rem;
  }

  .atelier-band h2 {
    font-size: clamp(1.5rem, 8vw, 2.15rem);
  }

  .atelier-band-text {
    font-size: 0.82rem;
    line-height: 1.3;
  }

  .atelier-band-meta {
    gap: 0.5rem;
  }

  .atelier-band-meta span {
    font-size: 0.77rem;
    padding: 0.4rem 0.65rem;
  }

  .mini-art {
    width: 4.5rem;
  }
}
