/* Dreamcraft landing page styles */
:root {
  --navy: #091a33;
  --navy2: #102b50;
  --orange: #ff9c1a;
  --yellow: #ffd451;
  --cream: #fffaf1;
  --ink: #18243a;
  --muted: #586477;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: 'DM Sans',Arial,sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
h1, h2, h3, p {
  margin-top: 0;
}
h1, h2, h3, .button, .nav-button {
  font-family: Fredoka,Arial,sans-serif;
}

/* Layout and accessibility */
.container {
  width: min(1180px,calc(100% - 64px));
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  padding: 12px;
  background: #fff;
  z-index: 30;
}
.skip-link:focus {
  top: 16px;
}
a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

/* Header and navigation */
.site-header {
  background: var(--navy);
  color: #fff;
}
.nav {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand img {
  width: 132px;
  height: 72px;
  object-fit: contain;
}
.nav nav {
  display: flex;
  gap: 34px;
  font-size: 13px;
  font-weight: 700;
}
.nav nav a:hover, .button-link:hover {
  color: var(--orange);
}
.nav-button {
  background: var(--orange);
  color: var(--navy);
  padding: 14px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.nav-button span, .button span, .button-link span {
  margin-left: 11px;
}

/* Hero section */
.hero {
  background: radial-gradient(circle at 74% 25%,#29466d 0,#142e53 32%,var(--navy) 70%);
  color: #fff;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 53% 47%;
  min-height: 630px;
  align-items: center;
}
.hero-copy {
  padding: 55px 0 70px;
  position: relative;
  z-index: 3;
}
.eyebrow, .kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
}
.eyebrow {
  color: var(--yellow);
}
.sparkle {
  font-size: 19px;
  vertical-align: middle;
  margin-right: 8px;
}
.hero h1 {
  font-size: clamp(54px,6vw,84px);
  line-height: 1.04;
  letter-spacing: -2px;
  margin: 24px 0;
  max-width: 680px;
}
.hero h1 em, .section-heading h2 em, .custom-copy h2 em, .about-grid h2 em, .contact-inner h2 em {
  font-style: normal;
  color: var(--orange);
}
.hero-copy>p {
  font-size: 16px;
  line-height: 1.8;
  color: #d2dbea;
  max-width: 510px;
  margin-bottom: 28px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 17px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform .2s,box-shadow .2s;
}
.button:hover, .nav-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px #0003;
}
.button-orange {
  background: var(--orange);
  color: var(--navy);
}
.button-link {
  font-size: 14px;
  font-weight: 700;
  border-bottom: 2px solid currentColor;
  padding: 5px 0;
}
.hero-small {
  color: #9fb1c9;
  font-size: 12px;
  margin-top: 55px;
}
.hero-small span {
  color: var(--orange);
  margin-right: 7px;
}
.hero-visual {
  height: 570px;
  position: relative;
  isolation: isolate;
}
.hero-visual:before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle,#4778a6 0,#27466c 50%,transparent 70%);
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
}
.hero-visual:after {
  content: '';
  position: absolute;
  width: 430px;
  height: 430px;
  border: 1px dashed #7292b466;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
}
.keychain {
  position: absolute;
  z-index: 2;
  filter: drop-shadow(14px 20px 8px #0005);
}
.keychain-blue {
  width: 250px;
  height: 340px;
  left: 9%;
  top: 12%;
  transform: rotate(-17deg);
}
.keychain-yellow {
  width: 165px;
  height: 240px;
  right: 4%;
  top: 7%;
  transform: rotate(17deg);
}
.keychain-pink {
  width: 160px;
  height: 220px;
  right: 9%;
  bottom: 3%;
  transform: rotate(-12deg);
}
.ring {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  border: 10px solid #d9e1ed;
  border-radius: 50%;
  box-shadow: inset 2px 2px 4px #607188,3px 3px 4px #0007;
}
.chain {
  position: absolute;
  left: 50%;
  top: 47px;
  width: 7px;
  height: 48px;
  background: repeating-linear-gradient(#c7d3e0 0 6px,#7b8da1 7px 10px);
  transform: translateX(-50%);
}
.charm {
  position: absolute;
  left: 50%;
  top: 92px;
  transform: translateX(-50%);
  box-shadow: inset -15px -15px 0 #0002,8px 10px 0 #0003;
}
.blue-charm {
  width: 210px;
  height: 190px;
  background: #68beed;
  border: 8px solid #347baa;
  border-radius: 45% 45% 48% 48%;
  z-index: 1;
}
.ear {
  position: absolute;
  z-index: -1;
  width: 90px;
  height: 110px;
  background: #69bdee;
  border: 8px solid #347baa;
  border-radius: 15% 80% 30% 80%;
  top: -16px;
}
.ear.left {
  left: -57px;
  transform: rotate(-30deg);
}
.ear.right {
  right: -57px;
  transform: scaleX(-1) rotate(-30deg);
}
.eye {
  position: absolute;
  top: 74px;
  width: 24px;
  height: 32px;
  background: #112b4a;
  border-radius: 50%;
}
.eye-left {
  left: 49px;
}
.eye-right {
  right: 49px;
}
.nose {
  position: absolute;
  width: 52px;
  height: 30px;
  background: #183b60;
  border-radius: 50%;
  left: 50%;
  top: 104px;
  transform: translateX(-50%);
}
.yellow-charm {
  width: 145px;
  height: 140px;
  background: #ffdc55;
  border: 7px solid #e7a83c;
  border-radius: 50%;
}
.face {
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 100px;
  line-height: 1;
  color: #c07a28;
  font-family: Arial,sans-serif;
  font-weight: 400;
}
.pink-charm {
  width: 145px;
  height: 135px;
  background: #ff95b7;
  border: 7px solid #e26892;
  border-radius: 34%;
}
.heart {
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 88px;
  color: #fff0f3;
}
.visual-star {
  position: absolute;
  color: var(--yellow);
  z-index: 4;
}
.star-one {
  left: 8%;
  top: 7%;
  font-size: 33px;
}
.star-two {
  right: 7%;
  top: 47%;
  font-size: 47px;
}
.star-three {
  left: 35%;
  bottom: 5%;
  font-size: 27px;
}
.visual-sticker {
  position: absolute;
  left: 22%;
  bottom: 4%;
  z-index: 4;
  background: #fff7e7;
  color: var(--navy);
  padding: 13px 18px;
  border-radius: 13px;
  transform: rotate(8deg);
  font: 700 17px/1.1 Fredoka,Arial,sans-serif;
  box-shadow: 4px 7px 0 #0003;
}

/* Moving banner */
.marquee {
  background: var(--orange);
  color: var(--navy);
  overflow: hidden;
  white-space: nowrap;
  padding: 16px 0;
  font: 700 15px Fredoka,Arial,sans-serif;
  letter-spacing: 2px;
}
.marquee span {
  display: block;
  text-align: center;
}

/* Collection section */
.section {
  padding: 105px 0;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 35px;
}
.kicker {
  color: #cd7100;
}
.section-heading h2, .custom-copy h2, .about-grid h2, .contact-inner h2 {
  font-size: clamp(44px,5vw,67px);
  line-height: 1.08;
  letter-spacing: -1px;
  margin: 15px 0 0;
}
.section-heading p {
  max-width: 330px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 4px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 23px;
}
.card-art {
  height: 310px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 24px;
}
.card-blue {
  background: #d5edf8;
}
.card-peach {
  background: #ffe0d1;
}
.card-yellow {
  background: #fff0b5;
}
.card-art:after {
  content: '';
  position: absolute;
  width: 210px;
  height: 210px;
  border: 1px dashed #ffffffb9;
  border-radius: 50%;
  transform: scale(1.3);
}
.card-badge {
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 18px;
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}
.mini-charm {
  z-index: 2;
  position: relative;
  display: grid;
  place-items: center;
  filter: drop-shadow(13px 18px 5px #0003);
}
.mini-charm:before {
  content: '';
  position: absolute;
  width: 36px;
  height: 36px;
  border: 8px solid #a0adba;
  border-radius: 50%;
  top: -43px;
  left: 50%;
  transform: translateX(-50%);
}
.mini-blue {
  width: 155px;
  height: 145px;
  border-radius: 45%;
  background: #62b8e9;
  border: 7px solid #3c8cbe;
  transform: rotate(-12deg);
}
.mini-blue i {
  position: absolute;
  width: 205px;
  height: 85px;
  background: #62b8e9;
  border: 7px solid #3c8cbe;
  border-radius: 40%;
  z-index: -1;
  top: 1px;
}
.mini-blue b {
  font: 700 47px Fredoka;
  color: #173959;
}
.mini-heart {
  width: 155px;
  height: 145px;
  background: #f799ad;
  border: 7px solid #e46d87;
  border-radius: 35%;
  transform: rotate(11deg);
}
.mini-heart b {
  font-size: 105px;
  color: #fff4f5;
}
.mini-smile {
  width: 155px;
  height: 155px;
  background: #ffd650;
  border: 7px solid #e8aa32;
  border-radius: 50%;
  transform: rotate(-9deg);
}
.mini-smile b {
  font: 400 112px Arial;
  color: #aa7628;
  line-height: 1;
}
.card h3 {
  font-size: 23px;
  margin: 19px 0 5px;
}
.card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}
.collection-note {
  text-align: center;
  margin: 45px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.collection-note a {
  font-weight: 700;
  color: var(--navy);
  border-bottom: 1px solid;
}

/* Custom orders section */
.custom-section {
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}
.custom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 535px;
  gap: 40px;
}
.custom-copy {
  padding: 80px 0;
}
.custom-copy .kicker {
  color: var(--yellow);
}
.custom-copy p {
  max-width: 480px;
  color: #c6d1e0;
  line-height: 1.8;
  margin: 25px 0;
}
.custom-art {
  height: 440px;
  position: relative;
}
.draw-ring {
  position: absolute;
  width: 360px;
  height: 360px;
  border: 2px dashed #6d88a9;
  border-radius: 50%;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
}
/* Custom products showcase: example products take turns inside the ring. Resting styles are each product's finished look. */
.custom-showcase {
  position: absolute;
  top: 90px;
  left: 50%;
  width: 260px;
  height: 260px;
  margin-left: -130px;
}
.showcase-scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility 0s linear .4s;
}
.showcase-scene.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity .3s ease;
}
.scene-print {
  position: relative;
}
.scene-label {
  position: absolute;
  left: 50%;
  bottom: -50px;
  transform: translateX(-50%);
  padding: 7px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font: 700 15px Fredoka;
  white-space: nowrap;
  box-shadow: 0 6px 18px #0004;
}
.showcase-dots {
  position: absolute;
  left: 50%;
  top: 418px;
  display: flex;
  gap: 7px;
  transform: translateX(-50%);
}
.showcase-dots i {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: #6d88a9;
  transition: width .3s, background .3s;
}
.showcase-dots i.is-active {
  width: 24px;
  background: var(--orange);
}
/* Lithophane: a printed plate in a frame, lit warmly from behind. */
.litho-glow {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd27a 0%, #ff9c1a55 42%, transparent 70%);
}
.litho-frame {
  padding: 11px;
  border-radius: 10px;
  background: #ed7e15;
  box-shadow: inset 0 0 0 3px #ffb347, 16px 18px 0 #0005;
  transform: rotate(-4deg);
}
.litho-plate {
  width: 126px;
  height: 158px;
  border-radius: 3px;
  background: #ffe7b3;
}
.litho-plate svg {
  display: block;
  width: 100%;
  height: 100%;
}
.litho-sun { fill: #b8742c; }
.litho-heart { fill: #8a4f1d; }
.litho-hill-back { fill: #a2662a; }
.litho-hill { fill: #6b3a14; }
/* Name clicker keychain: raised letters on a tag with a keyring. */
.name-tag {
  display: flex;
  align-items: center;
  padding: 14px 26px 14px 50px;
  border-radius: 28px;
  background: #ffd451;
  box-shadow: inset 0 -7px 0 #e9a725, 14px 16px 0 #0005;
  transform: rotate(-6deg);
}
.name-ring {
  position: absolute;
  left: -22px;
  top: 50%;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  border: 7px solid #c9d3df;
  border-radius: 50%;
}
.name-tag b {
  font: 700 62px/1 Fredoka;
  color: var(--navy);
  text-shadow: 0 5px 0 #e07b10, 0 7px 0 #0003;
}
.name-click {
  position: absolute;
  right: 6px;
  top: 52px;
  padding: 5px 11px;
  border-radius: 10px;
  background: #fff;
  color: var(--orange);
  font: 700 16px Fredoka;
  opacity: 0;
  transform: rotate(10deg);
}
/* Star map: a night sky poster with a constellation and a caption. */
.star-poster {
  padding: 11px 11px 10px;
  border-radius: 6px;
  background: var(--cream);
  box-shadow: 14px 16px 0 #0005;
  transform: rotate(5deg);
  text-align: center;
}
.star-poster svg {
  display: block;
  width: 158px;
  height: 158px;
}
.star-sky { fill: #10284a; stroke: #ffd451; stroke-width: 1.5; }
.star-poster circle:not(.star-sky) { fill: #fff; }
.star-line { fill: none; stroke: #ffd451; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; }
.star-caption {
  display: block;
  margin-top: 8px;
  color: var(--navy);
  font: 700 11px/1 'DM Sans', sans-serif;
  letter-spacing: .14em;
}
/* Polaroid frame: a sunset photo with a handwritten caption. */
.polaroid {
  width: 178px;
  padding: 12px 12px 14px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 14px 16px 0 #0005;
  transform: rotate(-6deg);
}
.polaroid-photo {
  height: 138px;
  overflow: hidden;
  border-radius: 2px;
  background: #1b2430;
}
.polaroid-photo svg {
  display: block;
  width: 100%;
  height: 100%;
}
.polaroid-caption {
  display: block;
  margin-top: 11px;
  color: var(--navy);
  font: 600 18px/1 Fredoka;
  text-align: center;
}
.custom-star {
  position: absolute;
  left: 10%;
  top: 55px;
  color: var(--orange);
  font-size: 65px;
}
.draw-note {
  position: absolute;
  right: 0;
  top: 30px;
  background: #fff;
  color: var(--navy);
  padding: 15px 21px;
  transform: rotate(8deg);
  border-radius: 13px;
  font: 700 19px Fredoka;
}
.draw-note span {
  color: var(--orange);
}

/* About section */
.about-section {
  padding: 105px 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8%;
  align-items: center;
}
.about-logo {
  height: 370px;
  background: radial-gradient(circle at center,#244268,var(--navy) 72%);
  border-radius: 28px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.about-logo img {
  width: 80%;
  height: 85%;
  object-fit: contain;
}
.about-grid p {
  max-width: 470px;
  color: var(--muted);
  line-height: 1.8;
  margin: 24px 0;
}

/* Contact section */
.contact-section {
  background: #ffe2a3;
  text-align: center;
  padding: 100px 0;
}
.contact-inner h2 em {
  color: #e27400;
}
.contact-inner p {
  max-width: 530px;
  line-height: 1.8;
  margin: 22px auto;
  color: #485367;
}
.contact-prompt {
  display: inline-block;
  border: 2px dashed #d9881d;
  background: #fff8e9;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  margin: 0 auto 30px;
}
.button-navy {
  background: var(--navy);
  color: #fff;
  margin: 0 auto;
}
.contact-inner .button {
  display: flex;
  width: max-content;
}

/* Footer */
footer {
  background: var(--navy);
  color: #fff;
}
.footer-contact {
  min-height: 145px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 60px;
  padding: 32px 0;
}
.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.footer-policy,
.footer-company {
  border-left: 1px solid rgba(255,255,255,.16);
  padding-left: 60px;
}
.footer-contact h2 {
  margin: 0;
  color: #fff;
  font-size: 22px;
}
.footer-policy a {
  color: #aabbd0;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.footer-policy a:hover,
.footer-policy a:focus-visible {
  color: #ffd36b;
  text-decoration: underline;
}
.footer-contact span {
  margin: 0;
  font-size: 12px;
  color: #aabbd0;
}
.footer-email {
  color: #ffd36b;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.footer-email:hover,
.footer-email:focus-visible {
  color: #fff;
  text-decoration: underline;
}
.footer-socials {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.footer-socials a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #aabbd0;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.footer-socials svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.footer-socials a:hover,
.footer-socials a:focus-visible {
  color: #ffd36b;
}

/* Standalone terms and privacy page */
.policy-page { background: #f5f1e9; }
.policy-page .site-header nav .is-current { color: var(--orange); }
.policy-main { padding: clamp(55px, 8vw, 100px) 0; }
.policy-document { width: min(900px, calc(100% - 40px)); padding: clamp(30px, 6vw, 68px); border-radius: 28px; background: #fff; box-shadow: 0 22px 60px rgba(9,26,51,.1); }
.policy-document-header { padding-bottom: 28px; border-bottom: 1px solid #dce3e8; }
.policy-document-header h1 { margin: 10px 0 8px; color: var(--navy); font: 700 clamp(38px, 7vw, 68px)/1 Fredoka, Arial, sans-serif; }
.policy-document-header p { margin: 0; color: #768390; font-size: 14px; }
.policy-document section { padding-top: 30px; }
.policy-document section h2 { margin: 0 0 9px; color: var(--navy); font: 700 clamp(21px, 3vw, 27px)/1.2 Fredoka, Arial, sans-serif; }
.policy-document section p { margin: 0; color: #526171; line-height: 1.72; }
.policy-document section p + p { margin-top: 14px; }
.policy-document section a { color: #a84f00; font-weight: 700; }
.policy-change-note { margin-top: 34px; padding: 18px 20px; border-radius: 14px; background: #fff4df; color: #674516; line-height: 1.6; }

/* Tablet layout */
@media(max-width:900px) {
  .nav nav {
    gap: 15px;
  }
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero h1 {
    font-size: 55px;
  }
  .hero-visual {
    transform: scale(.82);
    transform-origin: center;
  }
  .custom-grid {
    gap: 15px;
  }
}

/* Mobile layout */
@media(max-width:700px) {
  .container {
    width: calc(100% - 36px);
  }
  .nav {
    min-height: 77px;
  }
  .brand img {
    width: 95px;
    height: 62px;
  }
  .nav nav {
    gap: 14px;
    font-size: 11px;
  }
  .nav nav a:last-child, .nav-button {
    display: none;
  }
  .hero-grid {
    display: block;
  }
  .hero-copy {
    padding: 64px 0 20px;
  }
  .hero h1 {
    font-size: clamp(52px,11vw,70px);
  }
  .hero-visual {
    height: 430px;
    transform: scale(.8);
    width: 125%;
    margin-left: -12.5%;
    margin-top: -25px;
  }
  .hero-small {
    margin-top: 35px;
  }
  .section, .about-section {
    padding: 75px 0;
  }
  .section-heading {
    display: block;
  }
  .section-heading p {
    margin: 18px 0 0;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .card-art {
    height: 290px;
  }
  .collection-note {
    line-height: 1.8;
  }
  .custom-grid, .about-grid {
    grid-template-columns: 1fr;
  }
  .custom-copy {
    padding: 75px 0 0;
  }
  .custom-art {
    height: 390px;
  }
  .about-logo {
    height: 310px;
  }
  .contact-section {
    padding: 75px 0;
  }
  .footer-contact {
    padding: 20px 0;
    min-height: 0;
    gap: 24px;
  }
  .footer-policy,
  .footer-company {
    padding-left: 24px;
  }
}

/* Small phones */
@media(max-width:420px) {
  .footer-contact {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .footer-policy,
  .footer-company {
    padding-left: 16px;
  }
  .hero-visual {
    transform: scale(.67);
    height: 350px;
    width: 150%;
    margin-left: -25%;
    margin-top: -55px;
  }
  .hero-actions {
    gap: 18px;
  }
  .hero h1 {
    font-size: 50px;
  }
  .marquee {
    font-size: 12px;
  }
  .custom-art {
    transform: scale(.8);
    transform-origin: top center;
    height: 365px;
  }
}

/* Accessibility: reduced motion */
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
  .button {
    transition: none;
  }
}

/* Hero and collection: show toys alongside keychains */
.keychain-yellow .ring,
.keychain-yellow .chain,
.keychain-pink .ring,
.keychain-pink .chain,
.mini-blue::before,
.mini-smile::before {
  display: none;
}
.keychain-yellow .charm,
.keychain-pink .charm {
  top: 55px;
}

/* Account links in the landing page header */
.account-links {
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
}
.login-link {
  font-size: 13px;
  font-weight: 700;
}
.login-link:hover {
  color: var(--orange);
}

/* Login and registration pages */
.auth-page {
  min-height: 100vh;
  background: var(--navy);
  color: #fff;
}
.auth-header {
  min-height: 106px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.auth-header img {
  width: 132px;
  height: 86px;
  object-fit: contain;
}
.auth-home {
  font-size: 13px;
  font-weight: 700;
}
.auth-home:hover {
  color: var(--orange);
}
.auth-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 106px);
  gap: 8%;
  align-items: center;
  padding-bottom: 60px;
}
.auth-art {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: radial-gradient(circle at center, #2b547e, #102b50 68%, #0a203c);
  overflow: hidden;
}
.auth-art::before {
  content: '';
  position: absolute;
  width: 360px;
  height: 360px;
  border: 2px dashed #8da9c05c;
  border-radius: 50%;
}
.auth-charm {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 235px;
  height: 235px;
  border: 12px solid #e38c20;
  border-radius: 43%;
  background: #ffd657;
  box-shadow: inset -18px -18px 0 #e9ad37, 20px 25px 0 #0716297a;
  transform: rotate(-12deg);
}
.auth-charm::before {
  content: '';
  position: absolute;
  width: 55px;
  height: 55px;
  top: -69px;
  border: 11px solid #b9c9d6;
  border-radius: 50%;
}
.auth-charm span {
  color: var(--navy);
  font: 400 155px/1 Arial, sans-serif;
}
.auth-art p {
  position: absolute;
  bottom: 25px;
  font: 600 20px Fredoka, Arial, sans-serif;
}
.auth-star {
  position: absolute;
  z-index: 2;
  color: var(--orange);
}
.auth-star-one {
  left: 12%;
  top: 12%;
  font-size: 40px;
}
.auth-star-two {
  right: 11%;
  bottom: 18%;
  font-size: 52px;
}
.auth-card {
  max-width: 480px;
  padding: 30px 0;
}
.auth-card .kicker {
  color: var(--yellow);
}
.auth-card h1 {
  font-size: clamp(48px, 5vw, 69px);
  line-height: 1.05;
  margin: 17px 0;
}
.auth-card h1 em {
  color: var(--orange);
  font-style: normal;
}
.auth-card > p {
  color: #bfcbdb;
  line-height: 1.6;
}
.auth-form {
  display: grid;
  gap: 10px;
  margin-top: 27px;
}
.auth-form label {
  font-size: 13px;
  font-weight: 700;
  margin-top: 8px;
}
.auth-form input {
  width: 100%;
  min-height: 54px;
  border: 1px solid #738ca9;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 13px 16px;
  font: inherit;
}
.auth-form input:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}
.auth-policy-check { display: flex !important; align-items: flex-start; gap: 10px; margin: 10px 0 0 !important; color: #dbe5ef; font-weight: 500 !important; line-height: 1.5; }
.auth-policy-check input { width: 20px; min-height: 20px; margin: 1px 0 0; flex: 0 0 20px; accent-color: var(--orange); }
.auth-policy-link { padding: 0; border: 0; background: transparent; color: var(--orange); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.registration-code-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 22px; }
.auth-code-action { padding: 0; border: 0; background: transparent; color: var(--yellow); font: 700 13px 'DM Sans', Arial, sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.auth-code-action:disabled { cursor: wait; opacity: .65; }
#registration-code-timer { color: #dbe5ef; font-size: 12px; font-variant-numeric: tabular-nums; }
#registration-code-timer[hidden] { display: none; }
.policy-dialog { width: min(760px, calc(100% - 28px)); max-height: 88vh; padding: 0; border: 0; border-radius: 22px; color: var(--ink); box-shadow: 0 30px 90px #0008; }
.policy-dialog::backdrop { background: #071629c9; backdrop-filter: blur(3px); }
.policy-dialog article { position: relative; padding: clamp(28px, 5vw, 50px); background: #fff; }
.policy-dialog h2 { margin: 10px 48px 4px 0; font: 700 clamp(32px, 5vw, 48px)/1.05 Fredoka, Arial, sans-serif; color: var(--navy); }
.policy-dialog h3 { margin: 24px 0 7px; font: 700 20px Fredoka, Arial, sans-serif; color: var(--navy); }
.policy-dialog p { margin: 0; color: #526171; line-height: 1.65; }
.policy-dialog section p + p { margin-top: 12px; }
.policy-dialog .policy-updated { color: #7b8793; font-size: 13px; }
.policy-dialog .policy-note { margin: 25px 0; padding: 14px 16px; border-radius: 12px; background: #fff4df; color: #674516; }
.policy-dialog-close { position: absolute; top: 20px; right: 20px; display: grid; width: 40px; height: 40px; place-items: center; border: 0; border-radius: 50%; background: #eaf0f3; color: var(--navy); font-size: 26px; cursor: pointer; }
.password-rules {
  margin: 0 0 5px;
  color: #bfcbdb;
  font-size: 12px;
  line-height: 1.6;
}
.auth-submit {
  width: 100%;
  margin-top: 15px;
  border: 0;
}
.auth-submit:disabled {
  cursor: not-allowed;
  opacity: .6;
}
.auth-submit:disabled:hover {
  transform: none;
  box-shadow: none;
}
.auth-notice {
  padding: 13px 15px;
  border: 1px solid #8ea4bb;
  border-radius: 10px;
  font-size: 12px;
}
.auth-switch {
  font-size: 14px;
  margin: 22px 0 0;
}
.auth-switch a {
  color: var(--orange);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Account page and navigation on smaller screens */
.auth-notice.auth-error {
  border-color: #ff9c1a;
  color: #ffe0b4;
}
.auth-text-button {
  display: inline-block;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--orange);
  font: 700 13px 'DM Sans', Arial, sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.auth-form + .auth-text-button {
  margin-top: 16px;
}
.auth-inline-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 18px;
  margin-top: 4px;
}
.auth-inline-actions .auth-text-button[hidden] {
  display: none;
}
.auth-resend-inline {
  width: max-content;
  margin-top: -4px;
  justify-self: start;
  text-align: left;
}
.auth-resend-inline[hidden] {
  display: none;
}
.auth-resend-inline:disabled {
  cursor: not-allowed;
  opacity: .45;
}
.auth-code-action {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 22px;
}
.auth-code-action #password-reset-countdown {
  color: #bfcbdb;
  font-size: 12px;
  font-weight: 700;
}
.account-main {
  min-height: calc(100vh - 106px);
  display: grid;
  place-items: center;
  padding-bottom: 70px;
}
.account-card {
  width: min(100%, 660px);
  padding: 45px;
  border-radius: 24px;
  background: #18365b;
}
.account-card .kicker {
  color: var(--yellow);
}
.account-card h1 {
  font-size: clamp(45px, 5vw, 65px);
  line-height: 1.1;
  margin: 16px 0 24px;
}
.account-card p {
  line-height: 1.7;
}
.account-name {
  color: var(--orange);
}
.admin-badge {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--navy);
  font: 700 13px Fredoka, Arial, sans-serif;
}
.admin-badge[hidden] {
  display: none;
}
.account-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  margin-top: 27px;
}

/* Account page and navigation on smaller screens */
@media (max-width: 900px) {
  .account-links {
    gap: 12px;
  }
  .auth-main {
    gap: 5%;
  }
}
@media (max-width: 700px) {
  .nav nav {
    display: none;
  }
  .account-links .nav-button {
    display: inline-flex;
    padding: 11px 14px;
    font-size: 12px;
  }
  .account-links .login-link {
    font-size: 12px;
  }
  .auth-header {
    min-height: 80px;
  }
  .auth-header img {
    width: 105px;
    height: 67px;
  }
  .auth-main {
    display: block;
    padding: 30px 0 75px;
  }
  .auth-art {
    display: none;
  }
  .auth-card {
    max-width: 520px;
    margin-inline: auto;
  }
  .account-main {
    min-height: calc(100vh - 80px);
  }
  .account-card {
    padding: 28px;
  }
}

/* Floating customer help chat */
.dreamcraft-chat { position: fixed; z-index: 1000; right: 22px; bottom: 22px; font-family: 'DM Sans', Arial, sans-serif; }
.dreamcraft-chat-launcher { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 18px 8px 9px; border: 0; border-radius: 999px; background: var(--navy); color: #fff; box-shadow: 0 14px 38px #07162942; font: 700 15px 'DM Sans', Arial, sans-serif; cursor: pointer; }
.dreamcraft-chat-launcher:hover, .dreamcraft-chat-launcher:focus-visible { background: #133d68; transform: translateY(-2px); }
.dreamcraft-chat-launcher-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--orange); font-size: 19px; }
.dreamcraft-chat-panel { position: absolute; right: 0; bottom: 68px; display: flex; width: min(370px, calc(100vw - 28px)); height: min(560px, calc(100vh - 110px)); flex-direction: column; overflow: hidden; border: 1px solid #dce4eb; border-radius: 22px; background: #fff; box-shadow: 0 24px 70px #07162955; opacity: 0; pointer-events: none; transform: translateY(14px) scale(.97); transform-origin: bottom right; transition: opacity .18s ease, transform .18s ease; }
.dreamcraft-chat.is-open .dreamcraft-chat-panel { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.dreamcraft-chat.is-open .dreamcraft-chat-launcher-label { display: none; }
.dreamcraft-chat-header { display: flex; align-items: center; gap: 11px; padding: 16px 17px; background: var(--navy); color: #fff; }
.dreamcraft-chat-avatar { display: grid; width: 42px; height: 42px; place-items: center; flex: 0 0 auto; border-radius: 14px; background: var(--orange); color: var(--navy); font: 700 15px Fredoka, Arial, sans-serif; }
.dreamcraft-chat-header strong, .dreamcraft-chat-header span { display: block; }
.dreamcraft-chat-header strong { font-family: Fredoka, Arial, sans-serif; font-size: 17px; }
.dreamcraft-chat-header span { margin-top: 2px; color: #d8e8f5; font-size: 12px; }
.dreamcraft-chat-header span i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #61dc8b; }
.dreamcraft-chat-close { width: 34px; height: 34px; margin-left: auto; padding: 0; border: 0; border-radius: 50%; background: #ffffff16; color: #fff; font: 300 26px/1 Arial, sans-serif; cursor: pointer; }
.dreamcraft-chat-close:hover { background: #ffffff2b; }
.dreamcraft-chat-messages { display: flex; min-height: 0; flex: 1; flex-direction: column; gap: 10px; overflow-y: auto; padding: 18px 16px; background: #f4f7f9; }
.dreamcraft-chat-message { max-width: 84%; padding: 11px 13px; border-radius: 15px; font-size: 14px; line-height: 1.45; box-shadow: 0 3px 10px #0716290d; }
.dreamcraft-chat-message.is-assistant { align-self: flex-start; border-bottom-left-radius: 4px; background: #fff; color: var(--navy); }
.dreamcraft-chat-message.is-customer { align-self: flex-end; border-bottom-right-radius: 4px; background: var(--navy); color: #fff; }
.dreamcraft-chat-quick { display: flex; gap: 7px; padding: 10px 12px; overflow-x: auto; border-top: 1px solid #e5ebef; background: #fff; }
.dreamcraft-chat-quick button { flex: 0 0 auto; padding: 7px 10px; border: 1px solid #cad7e0; border-radius: 999px; background: #fff; color: var(--navy); font: 700 11px 'DM Sans', Arial, sans-serif; cursor: pointer; }
.dreamcraft-chat-quick button:hover { border-color: var(--orange); background: #fff5e6; }
.dreamcraft-chat-form { display: grid; grid-template-columns: 1fr 42px; gap: 8px; padding: 11px 12px 7px; border-top: 1px solid #e5ebef; background: #fff; }
.dreamcraft-chat-form input { min-width: 0; padding: 11px 13px; border: 1px solid #ccd7df; border-radius: 12px; outline: 0; font: 14px 'DM Sans', Arial, sans-serif; }
.dreamcraft-chat-form input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px #ff972426; }
.dreamcraft-chat-form button { border: 0; border-radius: 12px; background: var(--orange); color: var(--navy); font-size: 20px; cursor: pointer; }
.dreamcraft-chat-form.is-waiting button { opacity: .55; }
.dreamcraft-chat-note { margin: 0; padding: 0 13px 10px; background: #fff; color: #76828d; font-size: 10px; text-align: center; }
.dreamcraft-chat-quick[hidden] { display: none; }
.admin-support-tab { position: relative; }
.admin-support-tab span { display: inline-grid; min-width: 21px; height: 21px; margin-left: 5px; padding: 0 5px; place-items: center; border-radius: 999px; background: #d84040; color: #fff; font-size: 11px; }
.admin-support-tab span[hidden] { display: none; }
.support-admin-layout { display: grid; grid-template-columns: minmax(240px, .38fr) minmax(0, 1fr); min-height: 540px; overflow: hidden; border: 1px solid #dce4eb; border-radius: 18px; background: #fff; }
.support-chat-list { overflow-y: auto; border-right: 1px solid #dce4eb; background: #f5f7f8; }
.support-chat-list-item { display: flex; width: 100%; gap: 10px; justify-content: space-between; padding: 15px; border: 0; border-bottom: 1px solid #dde5ea; background: transparent; color: var(--navy); text-align: left; cursor: pointer; }
.support-chat-list-item:hover, .support-chat-list-item.is-active { background: #fff; }
.support-chat-list-item.is-unread { box-shadow: inset 4px 0 var(--orange); background: #fff8ec; }
.support-chat-list-item span, .support-chat-list-item strong, .support-chat-list-item small { display: block; min-width: 0; }
.support-chat-list-item strong, .support-chat-list-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.support-chat-list-item small { max-width: 210px; margin-top: 5px; color: #65727d; }
.support-chat-list-item time { flex: 0 0 auto; color: #7b8790; font-size: 10px; }
.support-admin-conversation { display: flex; min-width: 0; flex-direction: column; }
.support-admin-empty { display: grid; min-height: 100%; place-items: center; color: #74808a; }
.support-conversation-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 18px; border-bottom: 1px solid #dce4eb; }
.support-conversation-header strong, .support-conversation-header span { display: block; }
.support-conversation-header span { margin-top: 3px; color: #697782; font-size: 12px; }
.support-conversation-messages { display: flex; min-height: 360px; flex: 1; flex-direction: column; gap: 10px; overflow-y: auto; padding: 18px; background: #f5f7f8; }
.support-admin-message { max-width: 78%; }
.support-admin-message p { margin: 0; padding: 10px 13px; border-radius: 14px; line-height: 1.45; }
.support-admin-message time { display: block; margin-top: 3px; color: #7a858d; font-size: 10px; }
.support-admin-message.is-customer { align-self: flex-start; }
.support-admin-message.is-customer p { border-bottom-left-radius: 4px; background: #fff; }
.support-admin-message.is-admin { align-self: flex-end; text-align: right; }
.support-admin-message.is-admin p { border-bottom-right-radius: 4px; background: var(--navy); color: #fff; text-align: left; }
.support-admin-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 13px; border-top: 1px solid #dce4eb; }
.support-admin-form input { min-width: 0; padding: 12px 14px; border: 1px solid #cbd6de; border-radius: 12px; font: 14px 'DM Sans', Arial, sans-serif; }
@media (max-width: 760px) { .support-admin-layout { grid-template-columns: 1fr; }.support-chat-list { max-height: 220px; border-right: 0; border-bottom: 1px solid #dce4eb; }.support-conversation-messages { min-height: 300px; } }
@media (max-width: 520px) {
  .dreamcraft-chat { right: 12px; bottom: 12px; }
  .dreamcraft-chat-panel { position: fixed; right: 10px; bottom: 76px; width: calc(100vw - 20px); height: min(620px, calc(100dvh - 94px)); }
  .dreamcraft-chat-launcher { min-height: 50px; padding-right: 14px; }
}

/* Customer product search */
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.shop-search { display: flex; align-items: center; gap: 9px; min-width: min(100%, 245px); padding: 10px 13px; border: 1px solid #cfd9df; border-radius: 12px; background: #fff; color: #657381; }
.shop-search:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px #ff8a1c25; }
.shop-search input { min-width: 0; width: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: var(--navy); font: 600 14px 'DM Sans', Arial, sans-serif; }
.shop-search input::placeholder { color: #7d8994; }
.shop-search-empty { grid-column: 1 / -1; padding: 50px 24px; border: 2px dashed #d8e0e5; border-radius: 18px; color: #586675; text-align: center; }
.shop-search-empty > span { display: block; margin-bottom: 8px; color: var(--orange); font-size: 48px; }
.shop-search-empty h3 { margin: 0 0 7px; color: var(--navy); font: 700 24px Fredoka, Arial, sans-serif; }
.shop-search-empty p { margin: 0; }
@media (max-width: 700px) { .shop-search { width: 100%; } }

/* Signed-in shop: header and welcome */
.shop-page { background: #f8f6f0; color: var(--navy); min-height: 100vh; }
.shop-header { background: var(--navy); color: #fff; }
.shop-nav { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.shop-logo img { display: block; width: 122px; height: 76px; object-fit: contain; }
.shop-nav nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 700; }
.shop-nav nav a:hover, .shop-signout:hover { color: var(--orange); }
#cart-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; margin-left: 4px; border-radius: 999px; background: var(--orange); color: var(--navy); font-size: 12px; }
.shop-signout { border: 0; background: none; color: #fff; font: 700 13px 'DM Sans', Arial, sans-serif; cursor: pointer; }
.shop-header-links { margin-left: auto; }
.shop-header-links .is-current { color: var(--yellow); text-decoration: underline; text-underline-offset: 7px; }
.shop-header-links .profile-link { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: 0 0 32px; overflow: hidden; border: 1px solid currentColor; border-radius: 50%; }
.shop-header-links .profile-link[hidden] { display: none; }
.shop-header-links .profile-header-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.shop-header-links .profile-link.is-current { text-decoration: none; background: rgba(255, 207, 53, .13); }
.profile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.profile-form { display: grid; gap: 10px; }
.profile-form label { font-weight: 700; }
.profile-form input { width: 100%; padding: 13px 15px; border: 1px solid #cbd4df; border-radius: 10px; font: inherit; }
.profile-form input[readonly] { background: #f4f6f8; color: #526170; }
.profile-form select, .profile-form textarea { width: 100%; padding: 13px 15px; border: 1px solid #cbd4df; border-radius: 10px; font: inherit; background: #fff; }
.profile-form .button { justify-self: start; margin-top: 8px; }
.profile-hint { color: #586675; line-height: 1.6; }
.profile-photo-wrap { width: 120px; height: 120px; margin-bottom: 14px; overflow: hidden; border-radius: 50%; background: #eaf0f5; }
.profile-photo, .profile-photo-placeholder { width: 100%; height: 100%; object-fit: cover; }
.profile-photo-placeholder { display: grid; place-items: center; font-size: 54px; }
.profile-photo[hidden], .profile-photo-placeholder[hidden] { display: none; }
.profile-photo-upload { display: inline-block; font-weight: 700; cursor: pointer; }
.profile-photo-upload input { display: block; margin-top: 8px; max-width: 100%; }
#profile-address-form + .admin-text-button { display: inline-block; margin-top: 24px; }
@media (max-width: 700px) { .profile-grid { grid-template-columns: 1fr; } }
.shop-main { padding-top: 42px; padding-bottom: 95px; }
.shop-loading { text-align: center; padding: 60px 0; }
.shop-hero { display: grid; grid-template-columns: 1fr .65fr; align-items: center; gap: 25px; min-height: 360px; padding: 45px 7%; border-radius: 28px; background: var(--navy); color: #fff; overflow: hidden; }
.shop-hero .kicker { color: var(--yellow); }
.shop-hero h1 { margin: 16px 0; font-size: clamp(44px, 5vw, 66px); line-height: 1.06; }
.shop-hero h1 em { color: var(--orange); font-style: normal; }
.shop-hero p { max-width: 440px; color: #c8d4e2; line-height: 1.65; }
.shop-hero .button { margin-top: 15px; }
.shop-hero-art { position: relative; width: 220px; height: 220px; justify-self: center; display: grid; place-items: center; border-radius: 50%; background: #1a426a; }
.shop-toy { display: grid; place-items: center; width: 160px; height: 160px; border-radius: 38%; background: #ffd657; color: var(--navy); box-shadow: inset -13px -13px #e9a725, 13px 15px #07162980; font: 120px/1 Arial, sans-serif; transform: rotate(-10deg); }
.shop-spark { position: absolute; top: 0; left: 0; color: var(--orange); font-size: 48px; }
.shop-spark-two { top: auto; left: auto; right: -18px; bottom: 0; color: #fff; }
.shop-welcome { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin: 25px 0 70px; font-weight: 700; }
.shop-email { color: #5b6878; font-size: 13px; font-weight: 500; }
.shop-welcome .admin-badge { font-size: 11px; }

/* Signed-in shop: category filters and product cards */
.shop-heading, .cart-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; }
.shop-heading h2, .cart-heading h2 { margin: 10px 0 0; font-size: clamp(31px, 3vw, 44px); }
.shop-heading > p, .cart-heading > p { max-width: 310px; color: #566270; font-size: 14px; line-height: 1.6; }
/* Search, categories and sort share one line; the category buttons scroll sideways when they don't fit.
   The wrapper around categories + sort steps aside (display: contents) so all three are siblings in the row. */
.shop-controls { display: flex; align-items: center; gap: 14px; margin: 30px 0 25px; }
.shop-controls .shop-search { flex: 0 0 250px; width: auto; max-width: none; }
.shop-filter-row { display: contents; }
.shop-filters { display: flex; flex: 1 1 auto; gap: 10px; min-width: 0; padding: 2px; overflow-x: auto; scrollbar-width: thin; }
.shop-filter { flex: 0 0 auto; padding: 10px 20px; border: 1px solid #cad1d9; border-radius: 999px; background: #fff; color: var(--navy); font: 700 13px 'DM Sans', Arial, sans-serif; cursor: pointer; }
.shop-filter:hover, .shop-filter.is-active { border-color: var(--navy); background: var(--navy); color: #fff; }
.shop-sort { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; color: #586675; font-size: 11px; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.shop-sort select { width: 175px; min-width: 0; padding: 11px 34px 11px 12px; border: 1px solid #cad1d9; border-radius: 11px; background: #fff; color: var(--navy); font: 700 13px 'DM Sans', Arial, sans-serif; }
.shop-sort select:focus { border-color: var(--orange); outline: 3px solid #ff8a1c25; }
.shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.shop-product { overflow: hidden; border: 1px solid #e5e8eb; border-radius: 18px; background: #fff; box-shadow: 0 8px 25px #102a4a0b; }
.shop-product-art { position: relative; }
.product-love { position: absolute; z-index: 3; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 7px 10px; border: 1px solid #ffffffaa; border-radius: 99px; background: #ffffffdf; color: #7b8792; font: 800 12px 'DM Sans', Arial, sans-serif; cursor: pointer; box-shadow: 0 3px 10px #091a3320; }
.product-love.is-loved { background: #ffe3ec; color: #c3285d; }.product-love:hover { transform: scale(1.04); }
.admin-item-sales { margin-top: 34px; padding-top: 28px; border-top: 1px solid #e3e8ec; }.admin-item-sales h3 { margin: 7px 0 0; font: 700 26px Fredoka, Arial, sans-serif; }
/* Phones: search and sort share the first line, the category buttons get their own line below. */
@media (max-width: 700px) { .shop-controls { flex-wrap: wrap; gap: 10px; }.shop-controls .shop-search { flex: 1 1 0; min-width: 0; }.shop-sort { order: 2; }.shop-sort-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }.shop-sort select { width: 140px; }.shop-filters { order: 3; flex: 1 0 100%; }.product-love { top: 7px; right: 7px; } }
.shop-product-art { display: grid; place-items: center; min-height: 175px; font-size: 84px; }
.shop-product-art span { filter: drop-shadow(6px 10px 2px #0716291c); }
.shop-product-art img { display: block; width: 100%; height: 175px; padding: 8px; object-fit: contain; transition: transform .25s ease; }
.shop-product:hover .shop-product-art img, .shop-product:focus-within .shop-product-art img { transform: scale(.88); }
.shop-card-gallery-arrow { position: absolute; z-index: 3; top: 50%; display: grid; width: 34px; height: 34px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: #071629c7; color: #fff; font: 27px/1 Arial, sans-serif; cursor: pointer; transform: translateY(-50%); opacity: 0; transition: opacity .18s ease, background .18s ease; }
.shop-card-gallery-arrow.is-prev { left: 8px; }.shop-card-gallery-arrow.is-next { right: 8px; }
.shop-product-art:hover .shop-card-gallery-arrow, .shop-product-art:focus-within .shop-card-gallery-arrow { opacity: 1; }
.shop-card-gallery-arrow:hover { background: var(--orange); color: var(--navy); }
.shop-card-gallery-count { position: absolute; z-index: 2; right: 9px; bottom: 8px; padding: 4px 8px; border-radius: 999px; background: #071629b8; color: #fff; font: 700 10px 'DM Sans', Arial, sans-serif; filter: none !important; }
@media (hover: none), (max-width: 700px) { .shop-card-gallery-arrow { opacity: 1; }.shop-card-gallery-arrow { width: 31px; height: 31px; } }
.art-lemon { background: #fff1ae; }.art-sky { background: #cce9fa; }.art-mint { background: #d4f0dd; }.art-peach { background: #ffdfc8; }.art-pink { background: #ffdbeb; }.art-lavender { background: #e6dcfb; }
.shop-product-body { display: flex; flex-direction: column; min-height: 190px; padding: 18px; }
.shop-product-category { color: #a8590b; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.shop-product h3 { margin: 9px 0 5px; font: 700 22px Fredoka, Arial, sans-serif; }
.shop-product p { margin: 0 0 18px; color: #586675; font-size: 13px; line-height: 1.5; }
.shop-product-price { display: block; margin: auto 0 14px; font: 700 18px Fredoka, Arial, sans-serif; }
.shop-sale-price { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: auto 0 14px; }
.shop-sale-price del { color: #7a8793; font-size: 13px; }.shop-sale-price strong { color: #c65315; font: 700 19px Fredoka, Arial, sans-serif; }
.shop-sale-price span { padding: 3px 7px; border-radius: 99px; background: #fff0d5; color: #985300; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.shop-stock { display: block; margin: -7px 0 12px; color: #a8590b; font-size: 12px; font-weight: 800; }
.shop-stock.is-out { color: #a52a2a; }
.shop-add { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: auto; padding: 12px 14px; border: 0; border-radius: 9px; background: var(--navy); color: #fff; font: 700 12px 'DM Sans', Arial, sans-serif; cursor: pointer; }
.shop-add:hover { background: #234771; }
.shop-add:disabled { opacity: .55; cursor: not-allowed; }

/* Catalog motion: hover lift, scroll entrance, and add-to-cart pop */
.shop-product { transition: transform .3s cubic-bezier(.2, .7, .3, 1), box-shadow .3s ease, border-color .3s ease; }
.shop-product:hover, .shop-product:focus-within { transform: translateY(-5px); border-color: #d5dbe1; box-shadow: 0 18px 36px #102a4a1f; }
.shop-product.is-reveal { opacity: 0; transform: translateY(24px); }
.shop-product.is-reveal.is-visible { opacity: 1; transform: none; transition: opacity .55s ease var(--reveal-delay, 0ms), transform .55s cubic-bezier(.2, .7, .3, 1) var(--reveal-delay, 0ms); }
.shop-add { transition: background .2s ease, transform .15s ease, box-shadow .2s ease; }
.shop-add:hover:not(:disabled) { box-shadow: 0 6px 16px #091a3333; }
.shop-add:active:not(:disabled) { transform: scale(.97); }
.product-love { transition: transform .2s ease, background .2s ease, color .2s ease; }
.product-love:active { transform: scale(.92); }
@keyframes dreamcraft-pop { 0% { transform: scale(1); } 35% { transform: scale(1.07); } 65% { transform: scale(.98); } 100% { transform: scale(1); } }
@keyframes dreamcraft-flash { 0% { background: #ffd9a3; } 100% { background: transparent; } }
.shop-card-quantity.is-popped { animation: dreamcraft-pop .4s ease; }
.shop-card-quantity.is-popped input { animation: dreamcraft-flash .4s ease; }
@media (prefers-reduced-motion: reduce) {
  .shop-product, .shop-add, .product-love, .shop-product-art img { transition: none; }
  .shop-product:hover, .shop-product:focus-within, .shop-add:active:not(:disabled), .product-love:active { transform: none; }
  .shop-product.is-reveal { opacity: 1; transform: none; }
  .shop-card-quantity.is-popped, .shop-card-quantity.is-popped input { animation: none; }
}

/* Signed-in shop: cart */
.cart-heading { margin-bottom: 24px; }
.cart-heading h2 span { color: #789; }
.cart-empty { padding: 55px 20px; border: 2px dashed #cbd3da; border-radius: 20px; text-align: center; }
.cart-empty > span { font-size: 50px; }.cart-empty h3 { margin: 10px 0 0; font: 700 24px Fredoka, Arial, sans-serif; }.cart-empty p { color: #586675; }.cart-empty a { color: #a8590b; font-weight: 700; }
.cart-row { display: flex; align-items: center; gap: 20px; padding: 16px 20px; margin-bottom: 10px; border: 1px solid #e5e8eb; border-radius: 14px; background: #fff; }
.cart-row-image { display: grid; place-items: center; flex: 0 0 60px; width: 60px; height: 60px; overflow: hidden; border-radius: 10px; background: #e8eef4; color: var(--navy); font-size: 26px; }.cart-row-image img { display: block; width: 100%; height: 100%; padding: 3px; object-fit: contain; }.cart-row-info { display: grid; gap: 4px; flex: 1; }.cart-row-info strong { font: 700 19px Fredoka, Arial, sans-serif; }.cart-row-info span { color: #667382; font-size: 12px; text-transform: capitalize; }
.cart-quantity { display: flex; align-items: center; gap: 12px; }.cart-quantity button { width: 29px; height: 29px; border: 1px solid #ccd4db; border-radius: 50%; background: #fff; color: var(--navy); cursor: pointer; }.cart-quantity span { min-width: 18px; text-align: center; font-weight: 700; }.cart-remove { border: 0; background: transparent; color: #a8590b; font: 700 12px 'DM Sans', Arial, sans-serif; text-decoration: underline; cursor: pointer; }
.cart-note { margin-top: 20px; color: #667382; font-size: 12px; line-height: 1.5; }
.cart-total { margin: 18px 0; padding-top: 14px; border-top: 1px solid #dce3e8; font-weight: 800; }

@media (max-width: 1050px) { .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .shop-nav { min-height: 72px; gap: 12px; }.shop-logo img { width: 85px; height: 58px; }.shop-nav nav { gap: 13px; font-size: 12px; }.shop-signout { font-size: 12px; }.shop-main { padding-top: 20px; }.shop-hero { grid-template-columns: 1fr; padding: 35px 28px; }.shop-hero-art { display: none; }.shop-welcome { margin-bottom: 55px; }.shop-heading, .cart-heading { display: block; }.shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }.shop-product-art { min-height: 140px; font-size: 62px; }.shop-product-body { min-height: 205px; padding: 13px; }.shop-product h3 { font-size: 18px; }.cart-row { flex-wrap: wrap; gap: 12px; }.cart-quantity { margin-left: auto; } }
@media (max-width: 420px) { .shop-grid { grid-template-columns: 1fr; }.shop-product-body { min-height: 155px; }.shop-product-art { min-height: 170px; } }

/* Shop layout: the collection uses the full width; the cart is the site-wide slide-in panel below. */
.shop-layout { display: block; }
.shop-products { min-width: 0; }
.shop-layout .shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .shop-layout .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 420px) { .shop-layout .shop-grid { grid-template-columns: 1fr; } }
#shop-message:empty { display: none; }

/* Cart panel (js/cart-drawer.js): slides in from the right on every page. */
.cart-drawer { position: fixed; z-index: 1101; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(420px, 92vw); padding: 26px 22px 22px; border-radius: 22px 0 0 22px; background: var(--cream); color: var(--ink); box-shadow: -24px 0 60px #07162940; transform: translateX(105%); visibility: hidden; transition: transform .32s cubic-bezier(.2, .8, .3, 1), visibility 0s linear .32s; }
.cart-drawer.is-open { transform: none; visibility: visible; transition: transform .32s cubic-bezier(.2, .8, .3, 1); }
.cart-drawer .cart-heading { display: flex; align-items: center; margin-bottom: 18px; }
.cart-drawer .cart-heading h2 { font-size: 29px; }
.cart-close { display: grid; place-items: center; flex: none; width: 38px; height: 38px; margin-left: auto; border: 0; border-radius: 50%; background: #eaf0f3; color: var(--navy); font-size: 26px; line-height: 1; cursor: pointer; }
.cart-drawer-items { flex: 1; min-height: 0; margin: 0 -6px; padding: 0 6px; overflow-y: auto; }
.cart-drawer .cart-row { flex-wrap: wrap; gap: 8px; padding: 11px; }
.cart-drawer .cart-row-image { flex-basis: 52px; width: 52px; height: 52px; font-size: 22px; }
.cart-drawer .cart-row-info strong { font-size: 16px; } .cart-drawer .cart-row-info { flex: 1 1 calc(100% - 64px); }
.cart-drawer .cart-quantity { margin-left: 60px; }
.cart-drawer .cart-remove { margin-left: auto; }
.cart-drawer .cart-empty { padding: 32px 12px; }
.cart-drawer-footer { display: grid; gap: 10px; padding-top: 12px; }
.cart-drawer-footer [hidden] { display: none; }
.cart-drawer-footer .cart-total, .cart-drawer-footer .cart-note { margin: 0; }
.cart-drawer-footer .button { justify-content: center; width: 100%; }
.cart-backdrop:not([hidden]) { position: fixed; z-index: 1100; inset: 0; display: block; width: 100%; height: 100%; border: 0; background: #0716299c; cursor: pointer; animation: site-fade-in .3s ease; }
body.cart-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .cart-drawer, .cart-drawer.is-open { transition: none; } .cart-backdrop:not([hidden]) { animation: none; } }

/* Checkout page */
.checkout-main { padding-top: 52px; padding-bottom: 90px; }
.checkout-main h1 { margin: 12px 0; font: 700 clamp(44px, 5vw, 66px) Fredoka, Arial, sans-serif; }
.checkout-intro { color: #586675; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 28px; max-width: 880px; margin: 32px auto 0; }
.checkout-card { padding: 30px; border: 1px solid #e3e8ec; border-radius: 22px; background: #fff; box-shadow: 0 8px 25px #102a4a0b; }
.checkout-card h2 { margin: 0 0 24px; font: 700 29px Fredoka, Arial, sans-serif; }
.checkout-card h3 { margin: 24px 0 15px; font: 700 23px Fredoka, Arial, sans-serif; }
.checkout-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.checkout-fields label { display: grid; gap: 7px; color: var(--navy); font-size: 13px; font-weight: 700; }
.checkout-wide { grid-column: 1 / -1; }
.checkout-optional { font-weight: 400; }
.checkout-fields input, .checkout-fields select, .checkout-fields textarea { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #b8c4ce; border-radius: 9px; background: #fff; color: var(--navy); font: 400 14px 'DM Sans', Arial, sans-serif; }
.checkout-fields input[readonly] { background: #f3f5f7; color: #586675; }
.checkout-fields textarea { resize: vertical; }
.checkout-fields input:focus-visible, .checkout-fields select:focus-visible, .checkout-fields textarea:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.checkout-save { display: flex; align-items: start; gap: 10px; margin: 23px 0; font-size: 14px; cursor: pointer; }
.checkout-save input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--navy); }
.checkout-continue { width: 100%; border: 0; cursor: pointer; }
.checkout-continue:disabled { opacity: .5; cursor: not-allowed; }
.checkout-address-book { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(180px, .7fr); align-items: end; gap: 14px; margin-bottom: 22px; padding: 18px; border: 1px solid #dfe6ec; border-radius: 14px; background: #f8fafc; }
.checkout-address-book label { display: grid; gap: 7px; color: var(--navy); font-size: 12px; font-weight: 700; }
.checkout-address-book select, .checkout-address-book input { width: 100%; padding: 12px 13px; border: 1px solid #cbd4df; border-radius: 10px; background: #fff; color: var(--navy); font: 500 14px 'DM Sans', Arial, sans-serif; }
.checkout-address-book .admin-text-button { min-height: 43px; white-space: nowrap; }
.checkout-summary { position: sticky; top: 20px; }
.checkout-review { position: static; margin: 26px 0 18px; padding: 24px; border: 1px solid #e3e8ec; border-radius: 16px; background: #f8fafc; }
.checkout-item { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid #e3e8ec; font-size: 14px; }
.checkout-subtotal { margin: 22px 0; font-weight: 800; }
.checkout-summary > a { color: #a8590b; font-weight: 700; }
#checkout-payment[hidden], #payment-setup[hidden] { display: none; }
#edit-checkout { margin-top: 15px; }
@media (max-width: 800px) { .checkout-layout { grid-template-columns: 1fr; }.checkout-summary { position: static; }.checkout-address-book { grid-template-columns: 1fr; align-items: stretch; } }
@media (max-width: 560px) { .checkout-card { padding: 22px; }.checkout-fields { grid-template-columns: 1fr; }.checkout-wide { grid-column: auto; } }

/* Custom lithophane page */
.lithophane-main { padding-top: 42px; padding-bottom: 90px; }
.lithophane-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 48px 6%; border-radius: 26px; background: var(--navy); color: #fff; }
.lithophane-hero .kicker { color: var(--yellow); }
.lithophane-hero h1 { max-width: 680px; margin: 13px 0; font: 700 clamp(42px, 5vw, 65px)/1.08 Fredoka, Arial, sans-serif; }
.lithophane-hero p { max-width: 620px; margin: 0; color: #c8d4e2; line-height: 1.6; }
.lithophane-hero > span { color: var(--orange); font-size: 140px; }
.lithophane-dialog { width: min(720px, calc(100% - 28px)); max-height: 90vh; padding: 0; border: 0; border-radius: 20px; box-shadow: 0 28px 80px #07162970; overflow-y: auto; }
.lithophane-dialog::backdrop { background: #071629bd; }
.lithophane-dialog-card { position: relative; border: 0; border-radius: 20px; box-shadow: none; }
.lithophane-dialog-card h2 { margin-top: 10px; padding-right: 45px; }
.lithophane-dialog-close { position: absolute; top: 20px; right: 20px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #eaf0f3; color: var(--navy); font-size: 25px; cursor: pointer; }
.lithophane-selected-type { margin: 0 0 22px; color: #586675; font-weight: 700; }
.lithophane-form { display: grid; gap: 23px; }
.lithophane-photo-label { display: grid; gap: 8px; padding: 20px; border: 2px dashed #a7b9c9; border-radius: 15px; background: #f5f8fa; cursor: pointer; }
.lithophane-photo-label strong { font: 700 20px Fredoka, Arial, sans-serif; }
.lithophane-photo-label span { color: #586675; font-size: 13px; }
.lithophane-photo-label input { width: 100%; font: inherit; font-size: 13px; }
.lithophane-preview { display: grid; place-items: center; min-height: 190px; overflow: hidden; border-radius: 16px; background: #f2f4f6; color: #667382; text-align: center; }
.lithophane-preview > span { font-size: 64px; }
.lithophane-preview > p { margin: -45px 0 20px; }
.lithophane-preview img { display: block; width: 100%; max-height: 420px; object-fit: contain; }
.lithophane-price { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 17px 0; border-top: 1px solid #dce3e8; border-bottom: 1px solid #dce3e8; font-weight: 700; }
.lithophane-price strong { font: 700 22px Fredoka, Arial, sans-serif; }
.lithophane-submit { border: 0; cursor: pointer; }
.lithophane-submit:disabled { opacity: .5; cursor: not-allowed; }
.admin-custom-price { max-width: 430px; }
.admin-custom-price .button { border: 0; cursor: pointer; }
.admin-custom-photo { width: 130px; height: 130px; flex: 0 0 130px; border-radius: 12px; background: #f2f4f6; object-fit: contain; }
@media (max-width: 850px) { .lithophane-hero > span { display: none; } }
@media (max-width: 520px) { .customer-nav { flex-wrap: wrap; gap: 0 8px; padding: 8px 0 13px; }.shop-header-links { width: 100%; justify-content: space-between; gap: 8px !important; font-size: 11px !important; }.shop-header-links .shop-signout { font-size: 11px; }.lithophane-hero { padding: 34px 26px; }.admin-custom-photo { width: 100%; height: 220px; flex-basis: 100%; } }

/* Admin dashboard */
.admin-page {
  min-height: 100vh;
  background: #f8f6f0;
  color: var(--navy);
}
.admin-nav-label {
  color: #ffd657;
  font: 700 19px Fredoka, Arial, sans-serif;
}
.admin-page .shop-nav nav {
  gap: 22px;
}
.admin-main {
  padding-top: 42px;
  padding-bottom: 90px;
}
.admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 45px 6%;
  border-radius: 26px;
  background: var(--navy);
  color: #fff;
}
.admin-hero .kicker {
  color: var(--yellow);
}
.admin-hero h1 {
  margin: 12px 0;
  font-size: clamp(38px, 4vw, 58px);
}
.admin-hero p {
  color: #c8d4e2;
  line-height: 1.6;
}
.admin-hero-mark {
  color: var(--orange);
  font-size: 130px;
  line-height: 1;
}
.admin-signed-in {
  margin: 18px 0 36px;
  color: #667382;
  font-size: 13px;
}
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 38px;
}
.admin-tab {
  padding: 12px 20px;
  border: 1px solid #cbd3da;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font: 700 13px 'DM Sans', Arial, sans-serif;
  cursor: pointer;
}
.admin-tab.is-active,
.admin-tab:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}
.admin-inventory-tab span { display: inline-grid; min-width: 21px; height: 21px; margin-left: 5px; padding: 0 6px; place-items: center; border-radius: 999px; background: #d84040; color: #fff; font-size: 11px; }
.admin-inventory-tab span[hidden] { display: none; }
.admin-inventory-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 22px; }
.admin-inventory-filter { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border: 1px solid #cbd3da; border-radius: 999px; background: #fff; color: var(--navy); font: 700 13px 'DM Sans', Arial, sans-serif; cursor: pointer; }
.admin-inventory-filter span { min-width: 22px; padding: 3px 7px; border-radius: 999px; background: #eef2f5; font-size: 11px; text-align: center; }
.admin-inventory-filter.is-active { border-color: var(--navy); background: var(--navy); color: #fff; }
.admin-inventory-filter.is-active span { background: var(--orange); color: var(--navy); }
.admin-inventory-history { margin-top: 38px; padding-top: 28px; border-top: 1px solid #dce2e8; }
.admin-inventory-history h3 { margin: 2px 0 0; font: 700 24px Fredoka, Arial, sans-serif; }
.admin-inventory-history .admin-table-wrap { margin-top: 18px; }
.inventory-change-positive { color: #187348; font-weight: 800; }
.inventory-change-negative { color: #b13b2f; font-weight: 800; }
.admin-view h2 {
  margin: 9px 0 25px;
  font-size: clamp(30px, 3vw, 43px);
}
.admin-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.admin-audience-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 24px; }
.admin-audience-row article { padding: 16px 18px; border: 1px solid #e0e6eb; border-radius: 14px; background: #fff; box-shadow: 0 6px 18px #102a4a0a; }
.admin-audience-row span { display: block; color: #667482; font-size: 12px; font-weight: 700; }
.admin-audience-row strong { display: block; margin-top: 4px; color: var(--navy); font: 700 28px Fredoka, Arial, sans-serif; }
@media (max-width: 620px) { .admin-audience-row { grid-template-columns: 1fr; } }
.admin-overview-card,
.admin-list-card,
.admin-form {
  border: 1px solid #e3e8ec;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 25px #102a4a0b;
}
.admin-overview-card {
  padding: 27px;
}
.admin-overview-card > span {
  display: block;
  font-size: 42px;
}
.admin-overview-card strong {
  display: block;
  margin: 14px 0 0;
  font: 700 42px Fredoka, Arial, sans-serif;
}
.admin-overview-card h3 {
  margin: 3px 0;
  font: 700 22px Fredoka, Arial, sans-serif;
}
.admin-overview-card p,
.admin-help {
  color: #586675;
  line-height: 1.6;
}
.admin-sales { margin-top: 28px; padding: 28px; border: 1px solid #e3e8ec; border-radius: 20px; background: #fff; box-shadow: 0 8px 25px #102a4a0b; }
/* Analytics has its own page in the admin bar, so its card sits at the top of that page. */
.admin-analytics-view .admin-sales { margin-top: 0; }
.admin-low-stock { margin-top: 28px; padding: 28px; border: 1px solid #e3e8ec; border-radius: 20px; background: #fff; box-shadow: 0 8px 25px #102a4a0b; }
.admin-table-wrap { overflow-x: auto; }
.admin-inventory-table { width: 100%; border-collapse: collapse; }
.admin-inventory-table th, .admin-inventory-table td { padding: 13px 12px; border-bottom: 1px solid #e8edf1; text-align: left; }
.admin-inventory-table th { color: #667382; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.admin-inventory-table td { color: var(--navy); font-size: 14px; }
.admin-inventory-input { width: 92px; padding: 9px 10px; border: 1px solid #ccd6df; border-radius: 9px; color: var(--navy); font: inherit; background: #fff; }
.admin-inventory-input:focus { outline: 3px solid #ffad1f33; border-color: var(--orange); }
.admin-stock-badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.admin-stock-badge.is-low { background: #fff0d5; color: #985300; }
.admin-stock-badge.is-out { background: #ffe2e2; color: #9d2525; }
/* Each product's own low-stock limit, under its status badge and in the product editor. */
.admin-stock-limit { display: block; margin-top: 4px; color: #7a8795; font-size: 11px; }
.admin-field-help { display: block; margin-top: 6px; color: #667482; font-size: 12px; font-weight: 400; line-height: 1.4; }
.admin-restock-warning { margin: 14px 0; padding: 14px 16px; border: 1px solid #f1b75c; border-radius: 12px; background: #fff5df; color: #784300; }
.admin-restock-warning strong { display: block; margin-bottom: 4px; }
.admin-restock-warning p { margin: 0; }
/* Sales analytics: a header with the all-time total, an alert for missing production costs, six KPI cards with the change
   from last month, then the ready-made vs custom split beside the six-month chart. */
.admin-sales-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.admin-sales-heading h2 { margin-bottom: 0; }
.admin-sales-heading p { margin: 4px 0 0; color: #667482; font-size: 14px; }
.admin-sales-alltime { flex: none; padding: 12px 18px; border-radius: 14px; background: linear-gradient(135deg, #12305a, var(--navy)); color: #fff; text-align: right; }
.admin-sales-alltime span { display: block; color: #b9c7d8; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.admin-sales-alltime strong { display: block; margin-top: 2px; font: 700 24px Fredoka, Arial, sans-serif; }
.admin-sales-alert { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; margin: 20px 0 0; padding: 12px 16px; border: 1px solid #f1b75c; border-radius: 12px; background: #fff5df; color: #784300; font-size: 14px; font-weight: 600; }
.admin-sales-alert[hidden] { display: none; }
.admin-sales-alert span::before { content: '\26A0\FE0E  '; }
.admin-sales-alert .admin-text-button { color: #784300; font-weight: 800; }
.admin-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 22px 0 18px; }
.admin-kpi { display: grid; align-content: start; gap: 4px; min-width: 0; padding: 18px 18px 16px; border: 1px solid #e6ebef; border-radius: 16px; background: #f7f9fb; }
.admin-kpi > span { color: #667482; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.admin-kpi strong { overflow: hidden; color: var(--navy); font: 700 clamp(24px, 2.6vw, 32px)/1.15 Fredoka, Arial, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.admin-kpi small { color: #667482; font-size: 12px; }
.admin-kpi-delta { justify-self: start; padding: 3px 9px; border-radius: 999px; background: #e9eef2; color: #536171; font-size: 12px; font-style: normal; font-weight: 800; }
.admin-kpi-delta:empty { display: none; }
.admin-kpi-delta.is-up { background: #dff5e7; color: #1d7a45; }
.admin-kpi-delta.is-down { background: #ffe5e3; color: #b23a2f; }
.admin-kpi.is-primary { border-color: transparent; background: linear-gradient(140deg, #ffb238, var(--orange)); }
.admin-kpi.is-primary > span, .admin-kpi.is-primary small { color: #5a3300; }
.admin-kpi.is-primary .admin-kpi-delta { background: #ffffff8c; color: #5a3300; }
.admin-sales-panels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 14px; }
.admin-sales-panel { min-width: 0; padding: 20px; border: 1px solid #e6ebef; border-radius: 16px; }
.admin-sales-panel h3 { margin: 0; font: 700 20px Fredoka, Arial, sans-serif; }
.admin-sales-panel p { margin: 4px 0 0; color: #667482; font-size: 13px; }
.admin-sales-mix-bar { display: flex; gap: 3px; height: 16px; margin: 22px 0 16px; overflow: hidden; border-radius: 999px; background: #edf1f4; }
.admin-sales-mix-bar span { flex: 0 1 0; min-width: 0; transition: flex-grow .4s ease; }
.admin-sales-mix-bar.is-empty span { flex-grow: 0 !important; }
.admin-sales :is(.admin-sales-mix-bar, .admin-sales-mix-legend) .is-ready { background: var(--orange); }
.admin-sales :is(.admin-sales-mix-bar, .admin-sales-mix-legend) .is-custom { background: #4b7bd8; }
.admin-sales-mix-legend { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.admin-sales-mix-legend li { display: flex; align-items: center; gap: 8px; color: #4c5c6b; font-size: 14px; }
.admin-sales-mix-legend i { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.admin-sales-mix-legend strong { margin-left: auto; color: var(--navy); }
.admin-sales-trend-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.admin-sales-chart { display: grid; grid-template-columns: repeat(6, minmax(52px, 1fr)); align-items: end; gap: 10px; margin-top: 14px; overflow-x: auto; background: repeating-linear-gradient(to top, transparent 0 calc(25% - 1px), #eef2f5 calc(25% - 1px) 25%) 0 26px / 100% 140px no-repeat; }
.admin-sales-column { display: grid; grid-template-rows: 20px 140px auto auto; gap: 5px; min-width: 52px; text-align: center; }
.admin-sales-column strong { align-self: end; overflow: hidden; color: #4c5c6b; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.admin-sales-track { display: flex; align-items: end; justify-content: center; height: 140px; }
.admin-sales-track span { display: block; width: 62%; min-height: 0; border-radius: 8px 8px 3px 3px; background: #ffd79c; transition: height .4s ease; }
.admin-sales-column.is-current .admin-sales-track span { background: linear-gradient(180deg, #ffb238, var(--orange)); box-shadow: 0 6px 14px #ff9c1a40; }
.admin-sales-column > span { color: #536171; font-size: 12px; font-weight: 700; }
.admin-sales-column.is-current > span, .admin-sales-column.is-current strong { color: var(--navy); font-weight: 800; }
.admin-sales-column small { color: #8592a0; font-size: 11px; }
.admin-sales-empty { margin: 18px 0 0; color: #667482; text-align: center; }
.admin-sales-empty[hidden] { display: none; }
.admin-sales-note { margin: 16px 0 0; color: #7a8795; font-size: 12px; line-height: 1.5; }
.admin-sales-note::before { content: '\24D8  '; }
@media (max-width: 1000px) { .admin-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .admin-sales-panels { grid-template-columns: 1fr; } }
.admin-view-button,
.admin-text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #a8590b;
  font: 700 13px 'DM Sans', Arial, sans-serif;
  text-decoration: underline;
  cursor: pointer;
}
.admin-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.admin-log-actions { display: flex; align-items: center; gap: 14px; }
.admin-clear-log { color: #a22929; }
.admin-clear-log:disabled { cursor: wait; opacity: .55; }
.admin-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.admin-order-toolbar { display: grid; grid-template-columns: minmax(220px, 1fr) 190px 170px auto; align-items: end; gap: 12px; margin-top: 22px; padding: 16px; border: 1px solid #dbe1e7; border-radius: 14px; background: #f7f9fb; }
.admin-order-toolbar label { display: grid; gap: 6px; color: #415063; font: 700 12px 'DM Sans', Arial, sans-serif; }
.admin-order-toolbar input, .admin-order-toolbar select, .admin-order-note, .admin-refund-input, .admin-cancel-reason { width: 100%; padding: 10px 12px; border: 1px solid #cbd4df; border-radius: 9px; background: #fff; color: var(--navy); font: 600 12px 'DM Sans', Arial, sans-serif; }
.admin-export-orders { padding: 11px 16px; white-space: nowrap; }
.admin-order-results { margin: 12px 2px 0; color: var(--muted); font-size: 13px; }
.admin-order-section { display: grid; gap: 7px; padding-top: 10px; border-top: 1px solid #e0e5ea; }
.admin-order-section strong { font-size: 12px; }
.admin-order-note { min-height: 72px; resize: vertical; }
.admin-order-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.admin-order-actions .button, .admin-order-actions .admin-text-button { flex: 1 1 auto; padding: 9px 10px; font-size: 12px; }
.admin-refund-note { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.admin-refund-status { margin: 0; padding: 8px 10px; border-radius: 8px; background: #fff3cd; color: #715400; font-size: 12px; }
@media (max-width: 900px) { .admin-order-toolbar { grid-template-columns: 1fr 1fr; }.admin-order-search { grid-column: 1 / -1; } }
@media (max-width: 560px) { .admin-order-toolbar { grid-template-columns: 1fr; }.admin-order-search { grid-column: auto; } }
.admin-list-card {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 19px 22px;
}
.admin-list-icon {
  font-size: 35px;
}
.admin-list-image { display: block; width: 44px; height: 44px; border-radius: 9px; object-fit: contain; }
.admin-list-details {
  flex: 1;
  min-width: 200px;
}
.admin-order-custom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(20, 42, 67, .14);
}
.admin-order-custom .admin-custom-photo {
  width: 100px;
  height: 100px;
  flex: 0 0 100px;
}
.admin-order-custom > div { flex: 1; min-width: 180px; }
.admin-list-details h3 {
  margin: 0 0 4px;
  font: 700 20px Fredoka, Arial, sans-serif;
}
.admin-list-details p {
  margin: 3px 0;
  color: #586675;
  font-size: 13px;
  line-height: 1.5;
}
.admin-order-controls { display: grid; gap: 9px; width: min(290px, 100%); }
.admin-order-controls select, .admin-tracking-input { width: 100%; padding: 10px 12px; border: 1px solid #cbd4df; border-radius: 9px; background: #fff; color: var(--navy); font: 600 12px 'DM Sans', Arial, sans-serif; }
.admin-tracking-save { width: 100%; padding: 10px 12px; font-size: 12px; }
.admin-tracking-hint { margin: 0; color: var(--muted); font-size: .9rem; }
.admin-order-controls [hidden] { display: none !important; }
.admin-list-card.is-locked { border-color: #cfd8df; background: #f8fafb; }
.admin-order-locked { padding: 16px; border: 1px solid #cfd8df; border-radius: 10px; background: #eef3f6; color: #415365; }
.admin-order-locked strong { display: block; color: var(--navy); }
.admin-order-locked p { margin: 6px 0 0; font-size: 12px; line-height: 1.5; }
.admin-list-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.admin-form {
  display: grid;
  gap: 18px;
  max-width: 760px;
  margin-top: 24px;
  padding: 26px;
}
.admin-form[hidden] {
  display: none;
}
.admin-form h3 {
  margin: 0;
  font: 700 25px Fredoka, Arial, sans-serif;
}
.admin-form-message { margin: 0; padding: 11px 13px; border-radius: 9px; background: #e8f5ed; color: #17613d; font: 700 13px 'DM Sans', Arial, sans-serif; }
.admin-form-message.is-error { background: #fff0ed; color: #a53529; }
.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}
.admin-form-section { margin: 4px 0; padding: 18px; border: 1px solid #dbe4ea; border-radius: 14px; background: #f8fafb; }
.admin-form-section legend { padding: 0 7px; color: #10233d; font: 800 15px 'DM Sans', Arial, sans-serif; }
.admin-form-section > p { margin: 0 0 14px; color: #657385; font-size: 13px; }
#keychain-stock-field[hidden] { display: none !important; }
#new-category-field[hidden] { display: none !important; }
.admin-form label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
}
.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  min-height: 45px;
  padding: 11px 13px;
  border: 1px solid #b8c4ce;
  border-radius: 9px;
  background: #fff;
  color: var(--navy);
  font: inherit;
}
.admin-form-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.admin-media-fields { display: grid; gap: 10px; padding: 18px; border: 1px solid #dce3e8; border-radius: 12px; }
.admin-media-fields p { margin: -4px 0 6px; color: #667382; font-size: 12px; line-height: 1.5; }
.admin-media-preview { width: 120px; height: 120px; border-radius: 10px; object-fit: contain; }
.admin-media-remove { display: flex !important; align-items: center; gap: 9px; }
.admin-media-remove input { width: auto; min-height: auto; }
.admin-message {
  margin-top: 25px;
  padding: 13px 16px;
  border-radius: 9px;
  background: #e9f5ed;
  color: #1d5c39;
}
.admin-message.is-error {
  background: #fff0e4;
  color: #873c17;
}
.admin-request-status {
  padding: 8px 11px;
  border-radius: 999px;
  background: #e6edf5;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}
.admin-empty {
  padding: 35px;
  border: 2px dashed #cbd3da;
  border-radius: 16px;
  color: #586675;
  text-align: center;
}
@media (max-width: 700px) {
  .admin-nav-label,
  .admin-hero-mark {
    display: none;
  }
  .admin-page .shop-nav nav {
    gap: 12px;
  }
  .admin-main {
    padding-top: 20px;
  }
  .admin-hero {
    padding: 32px 26px;
  }
  .admin-overview-grid,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }
  .admin-sales { padding: 22px 18px; }
  .admin-sales-heading { flex-direction: column; align-items: stretch; }
  .admin-sales-alltime { text-align: left; }
  .admin-kpis { gap: 10px; }
  .admin-kpi { padding: 14px; }
  .admin-kpi strong { font-size: 22px; }
}

/* Customer order history */
.orders-main { max-width: 900px; padding-top: 62px; padding-bottom: 100px; }
.orders-main h1 { margin: 12px 0; font: 700 clamp(42px, 5vw, 64px) Fredoka, Arial, sans-serif; }
.orders-intro { margin: 0 0 28px; color: #586675; line-height: 1.6; }
.orders-list { display: grid; gap: 18px; }
.orders-list[hidden] { display: none; }
.orders-empty { text-align: center; padding: 42px 24px; }
.orders-empty p { margin-bottom: 26px; color: #586675; }
.order-history-card { padding: 26px 30px; }
.order-history-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.order-history-top h2 { margin: 0 0 6px; font: 700 22px Fredoka, Arial, sans-serif; overflow-wrap: anywhere; }
.order-history-top p { margin: 0; color: #586675; font-size: 14px; }
.order-history-status { flex: none; padding: 8px 12px; border-radius: 99px; background: #eaf4ed; color: #235c37; font-size: 13px; font-weight: 700; }
.order-history-status.is-refunded { background: #edf1f5; color: #435363; }
.order-history-status.is-partial-refund { background: #fff4dc; color: #7a4b08; }
.order-history-card.is-refunded { border-color: #d9e0e6; box-shadow: 0 12px 34px #091a330d; }
.order-refund-summary { display: flex; align-items: flex-start; gap: 13px; margin: 22px 0 4px; padding: 16px 18px; border: 1px solid #d9e3ea; border-radius: 14px; background: #f6f9fb; }
.order-refund-mark { display: grid; flex: 0 0 28px; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: #526577; color: #fff; font-size: 14px; font-weight: 800; }
.order-refund-summary strong { display: block; margin: 1px 0 4px; color: var(--navy); font-size: 15px; }
.order-refund-summary p { margin: 0; color: #5f6d79; font-size: 13px; line-height: 1.5; }
.order-progress { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 24px 0; padding: 0; list-style: none; }
.order-progress li { position: relative; padding: 31px 6px 0; color: #7a8793; font-size: 11px; font-weight: 700; text-align: center; }
.order-progress li::before { content: ''; position: absolute; z-index: 2; top: 5px; left: 50%; width: 15px; height: 15px; border: 3px solid #cbd4dc; border-radius: 50%; background: #fff; transform: translateX(-50%); }
.order-progress li::after { content: ''; position: absolute; top: 12px; right: 50%; width: 100%; height: 3px; background: #dce2e7; }
.order-progress li:first-child::after { display: none; }
.order-progress li.is-complete { color: var(--navy); }
.order-progress li.is-complete::before { border-color: var(--orange); background: var(--orange); }
.order-progress li.is-complete::after { background: var(--orange); }
.order-progress li.is-current::before { box-shadow: 0 0 0 5px rgba(255, 151, 36, .18); }
.order-progress.is-cancelled { opacity: .45; }
.order-history-items { list-style: none; padding: 14px 0; margin: 18px 0 0; border-top: 1px solid #e3e8ec; }
.order-history-items li { display: grid; grid-template-columns: minmax(0, 1fr) 120px 170px; align-items: center; gap: 16px; padding: 7px 0; font-size: 14px; }
.order-history-items li > strong { justify-self: end; text-align: right; }
.order-history-items li > .order-item-cancel-choice { justify-self: end; }
.order-history-items strong { white-space: nowrap; }
.order-history-totals { margin-top: 4px; padding-top: 12px; border-top: 1px solid #e3e8ec; }
.order-history-totals p { display: flex; justify-content: flex-end; gap: 30px; margin: 0; padding: 3px 0; font-size: 14px; }
.order-history-totals span { color: #586675; }
.order-history-totals strong { min-width: 86px; color: var(--navy); text-align: right; }
.order-history-totals .order-history-refund-line strong { color: #a45022; }
.order-history-totals .order-history-net-line { margin-top: 5px; padding-top: 8px; border-top: 1px dashed #d9e0e6; font-size: 15px; }
.order-cancellation { display: grid; gap: 6px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #e3e8ec; }
.order-cancellation p, .order-cancellation small { margin: 0; color: #5f6d79; line-height: 1.5; }
.order-cancel-request { justify-self: start; color: #a4491d; }
.admin-cancellation-request { display: grid; gap: 8px; padding: 14px; border: 1px solid #f0c47a; border-radius: 10px; background: #fff8e8; }
.admin-cancellation-request p { margin: 0; color: #624718; font-size: 13px; line-height: 1.5; }
@media (max-width: 620px) {
  .order-history-card { padding: 22px 18px; }
  .order-history-top { display: grid; }
  .order-history-status { justify-self: start; }
  .order-refund-summary { padding: 14px; }
}
.order-tracking { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 14px; margin-top: 18px; padding: 15px 17px; border-radius: 12px; background: #eef5ff; }
.order-tracking code { padding: 5px 8px; border-radius: 6px; background: #fff; color: var(--navy); font-weight: 700; }
.order-tracking a { margin-left: auto; color: #a8590b; font-weight: 700; }

/* Lithophane types and example galleries */
.lithophane-types-section { margin: 46px 0; }
.lithophane-types-section h2 { margin: 10px 0; font: 700 clamp(30px, 4vw, 44px) Fredoka, Arial, sans-serif; }
.lithophane-types-section > p { margin: 0 0 24px; color: #586675; }
.lithophane-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.lithophane-type-card { overflow: hidden; border: 2px solid #e3e8ec; border-radius: 20px; background: #fff; box-shadow: 0 8px 26px #091a3310; }
.lithophane-type-card:has([aria-pressed="true"]) { border-color: var(--orange); }
.lithophane-example-gallery { display: flex; gap: 7px; height: 205px; padding: 8px; overflow-x: auto; background: transparent; scroll-snap-type: x mandatory; }
.lithophane-example-gallery img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; border-radius: 12px; scroll-snap-align: center; background: transparent; }
.lithophane-type-body { padding: 18px 20px 22px; }
.lithophane-type-body h3 { margin: 0 0 8px; font: 700 23px Fredoka, Arial, sans-serif; }
.lithophane-type-body p { min-height: 44px; margin: 0 0 12px; color: #586675; font-size: 14px; line-height: 1.55; }
.lithophane-type-body strong { display: block; margin-bottom: 14px; font-size: 19px; }
.lithophane-type-body .lithophane-type-size { display: flex; align-items: center; gap: 7px; min-height: 0; margin: -4px 0 12px; color: var(--navy); font-size: 13px; font-weight: 600; }
.lithophane-type-size::before { content: ""; flex: none; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='2' y='8' width='20' height='8' rx='1.5'/%3E%3Cpath d='M6 8v3M10 8v4M14 8v3M18 8v4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='2' y='8' width='20' height='8' rx='1.5'/%3E%3Cpath d='M6 8v3M10 8v4M14 8v3M18 8v4'/%3E%3C/svg%3E") center / contain no-repeat; }
.lithophane-gallery-controls { display: flex; gap: 8px; margin: 0 0 14px; }
.lithophane-type-body .lithophane-gallery-controls button { padding: 7px; background: #eaf0f3; color: var(--navy); font-size: 12px; }
.lithophane-type-body button, .lithophane-type-body .lithophane-choose { width: 100%; padding: 11px; border: 0; border-radius: 12px; background: var(--navy); color: #fff; font: 700 14px 'DM Sans', Arial, sans-serif; cursor: pointer; }
.lithophane-type-body .lithophane-choose { display: block; box-sizing: border-box; text-align: center; text-decoration: none; }
.lithophane-type-body button[aria-pressed="true"] { background: var(--orange); color: var(--navy); }
@media (max-width: 650px) { .lithophane-types { grid-template-columns: 1fr; } }

/* Links from customer product cards to individual product pages */
.shop-product-art[data-product-link], .product-detail-title { cursor: pointer; }
.shop-product-art[data-product-link]:focus-visible { outline: 4px solid var(--orange); outline-offset: -4px; }
.product-detail-title { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; }
.product-detail-title:hover, .product-detail-title:focus-visible { color: #df580d; }
.product-detail-title { text-decoration: none; }

.product-page-main { min-height: 70vh; padding-top: 34px; padding-bottom: 70px; }
.product-page-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr); max-width: 960px; margin: 0 auto; overflow: hidden; border: 1px solid #e0e5e9; border-radius: 22px; background: #fff; box-shadow: 0 18px 50px #07162914; }
.product-page-gallery { position: relative; min-width: 0; background: #f0f3f3; }
.product-page-media { display: grid; min-height: 400px; place-items: center; overflow: hidden; }
.product-page-media > span { font-size: 90px; }
.product-page-media img { display: block; width: 100%; height: 400px; padding: 22px; object-fit: contain; }
.product-page-gallery .product-gallery-arrow { top: 45%; width: 34px; height: 34px; font-size: 24px; }
.product-page-gallery .product-gallery-thumbs { padding: 10px 14px 14px; }
.product-page-copy { display: flex; flex-direction: column; justify-content: center; padding: 36px 38px; }
.product-page-back { align-self: flex-start; margin-bottom: 22px; color: #647283; font-size: 14px; font-weight: 700; text-decoration: none; }
.product-page-copy h1 { margin: 8px 0 12px; font: 700 clamp(28px, 3.4vw, 40px)/1.05 Fredoka, Arial, sans-serif; }
.product-page-copy > p { margin: 0 0 12px; color: #586675; font-size: 15px; line-height: 1.6; }
.product-page-copy .product-detail-price { font-size: 17px; }
.product-page-add { width: 100%; border: 0; cursor: pointer; }
.product-page-cart-link { align-self: center; margin-top: 14px; }
.product-page-not-found { padding: 90px 20px; text-align: center; }
.product-page-not-found h1 { font: 700 48px Fredoka, Arial, sans-serif; }
@media (max-width: 820px) { .product-page-card { grid-template-columns: 1fr; }.product-page-media { min-height: 300px; }.product-page-media img { height: 300px; }.product-page-copy { padding: 28px 22px; }.product-page-back { margin-bottom: 16px; } }

/* "You may also like": a row of product cards that scrolls sideways. */
.product-suggestions { max-width: 960px; margin: 44px auto 0; }
.product-suggestions[hidden] { display: none; }
.product-suggestions-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.product-suggestions-head h2 { margin: 0; font: 700 26px Fredoka, Arial, sans-serif; }
.product-suggestions-arrows { display: flex; gap: 8px; }
.product-suggestions-arrows[hidden] { display: none; }
.product-suggestions-arrows button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--navy); color: #fff; font: 24px/1 Arial, sans-serif; cursor: pointer; }
.product-suggestions-arrows button:hover { background: var(--orange); color: var(--navy); }
.product-suggestions-row { display: flex; gap: 14px; padding: 4px 2px 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.product-suggestion { display: flex; flex: 0 0 180px; flex-direction: column; gap: 8px; padding: 10px 10px 12px; scroll-snap-align: start; border: 1px solid #e0e5e9; border-radius: 16px; background: #fff; transition: transform .2s, box-shadow .2s; }
.product-suggestion:hover, .product-suggestion:focus-within { transform: translateY(-3px); box-shadow: 0 12px 28px #07162918; }
.product-suggestion-link { display: flex; flex: 1; flex-direction: column; gap: 4px; color: var(--navy); text-decoration: none; }
.product-suggestion-add { align-self: flex-start; padding: 6px 12px; border: 0; border-radius: 999px; background: var(--orange); color: var(--navy); font: 700 12px 'DM Sans', Arial, sans-serif; cursor: pointer; }
.product-suggestion-add:hover { background: var(--navy); color: #fff; }
.product-suggestion-add.is-added { background: #d4f0dd; color: #17603a; }
.product-suggestion-art { display: grid; height: 150px; margin-bottom: 6px; place-items: center; overflow: hidden; border-radius: 11px; font-size: 54px; }
.product-suggestion-art img { width: 100%; height: 100%; padding: 8px; object-fit: contain; }
.product-suggestion-name { overflow: hidden; font: 600 16px Fredoka, Arial, sans-serif; white-space: nowrap; text-overflow: ellipsis; }
.product-suggestion-price { font-size: 14px; }
.product-suggestion-price del { color: #8a96a3; font-size: 12px; }
.product-suggestion-loves { color: #c8466e; font-size: 13px; font-weight: 600; }
@media (max-width: 560px) { .product-suggestion { flex-basis: 150px; }.product-suggestion-art { height: 124px; } }
.product-gallery-arrow { position: absolute; z-index: 2; top: 45%; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #071629c7; color: #fff; font: 30px/1 Arial, sans-serif; cursor: pointer; transform: translateY(-50%); }
.product-gallery-arrow.is-prev { left: 12px; }.product-gallery-arrow.is-next { right: 12px; }
.product-gallery-arrow:hover { background: var(--orange); color: var(--navy); }
.product-gallery-thumbs { display: flex; max-width: 100%; gap: 8px; padding: 10px; overflow-x: auto; background: #fff; }
.product-gallery-thumbs[hidden] { display: none; }
.product-gallery-thumbs button { width: 58px; height: 52px; padding: 3px; flex: 0 0 auto; overflow: hidden; border: 2px solid transparent; border-radius: 9px; background: #eef2f4; cursor: pointer; }
.product-gallery-thumbs button.is-active { border-color: var(--orange); }
.product-gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
/* Product pictures fill their whole box (cropped at the edges, never stretched) on the shop cards, the product page and
   "You may also like". The color background only shows behind products that have no picture yet (the emoji). */
:is(.shop-product-art, .product-page-media, .product-suggestion-art):has(> img) { background: none; }
/* All three picture boxes share one 6:5 shape, so one photo (for example 1200 × 1000 px) fits every one exactly. */
:is(.shop-product-art, .product-page-media, .product-suggestion-art) { height: auto; min-height: 0; aspect-ratio: 6 / 5; }
:is(.shop-product-art, .product-page-media, .product-suggestion-art) > img { width: 100%; height: 100%; padding: 0; object-fit: cover; }
.shop-product-art { overflow: hidden; }
.shop-product:hover .shop-product-art img, .shop-product:focus-within .shop-product-art img { transform: scale(1.05); }
.admin-product-gallery-preview { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-product-gallery-preview[hidden] { display: none; }
.admin-product-gallery-item { position: relative; width: 92px; height: 78px; border-radius: 10px; overflow: hidden; }
.admin-product-gallery-preview img { width: 100%; height: 100%; object-fit: contain; border: 1px solid #d8e0e6; border-radius: 10px; background: #f4f6f7; }
.admin-product-gallery-delete { position: absolute; inset: 0; border: 0; border-radius: 10px; background: rgba(111, 17, 17, .82); color: #fff; font: 700 13px/1 "DM Sans", sans-serif; cursor: pointer; opacity: 0; transition: opacity .18s ease; }
.admin-product-gallery-item:hover .admin-product-gallery-delete,
.admin-product-gallery-delete:focus-visible { opacity: 1; }
.order-photo-privacy { display: grid; justify-items: start; gap: 5px; margin-top: 8px; color: #667382; }
.shop-customer-id { color: #667382; font-size: 13px; font-weight: 700; }
.order-customer-identity { color: #667382; font-size: 13px; margin-top: 4px; }
/* Quantity controls shown on a product after it enters the cart */
.shop-card-quantity { display: grid; grid-template-columns: 46px 1fr 46px; align-items: center; min-height: 46px; margin-top: auto; overflow: hidden; border: 2px solid var(--navy); border-radius: 12px; background: #fff; color: var(--navy); text-align: center; }
.shop-card-quantity button { height: 100%; padding: 0; border: 0; background: var(--navy); color: #fff; font: 700 20px 'DM Sans', Arial, sans-serif; cursor: pointer; }
.shop-card-quantity button:hover:not(:disabled) { background: var(--orange); color: var(--navy); }
.shop-card-quantity button:disabled { opacity: .4; cursor: not-allowed; }
.shop-card-quantity input { width: 100%; height: 100%; padding: 0 4px; border: 0; outline: 0; background: transparent; color: var(--navy); font: 700 17px Fredoka, Arial, sans-serif; text-align: center; appearance: textfield; }
.shop-card-quantity input::-webkit-inner-spin-button, .shop-card-quantity input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.shop-card-quantity input:focus { background: #fff1d9; box-shadow: inset 0 0 0 2px var(--orange); }
@media (max-width: 520px) {
  .shop-header-links { flex-wrap: wrap; justify-content: flex-start; gap: 10px 14px !important; }
  .orders-main { padding-top: 36px; }
  .order-history-card { padding: 20px; }
  .order-history-top { flex-wrap: wrap; }
  .order-progress li { padding-inline: 2px; font-size: 9px; }
  .order-tracking a { width: 100%; margin-left: 0; }
}

/* Shared admin and customer announcement slideshow */
.shared-slideshow { position: relative; isolation: isolate; min-height: 360px; overflow: hidden; }
.shared-slideshow [hidden], .admin-slideshow-manager [hidden] { display: none !important; }
.shared-slideshow .hero-slide-copy { position: relative; z-index: 2; max-width: 610px; }
.shared-slideshow .hero-slide-media { position: relative; z-index: 1; width: min(38vw, 420px); height: 280px; justify-self: end; flex: 0 0 min(38vw, 420px); display: grid; place-items: center; overflow: hidden; border-radius: 22px; background: #173b61; }
.shared-slideshow .hero-slide-media img { width: 100%; height: 100%; object-fit: cover; }
.image-slideshow .hero-slide-media > a { display: block; width: 100%; height: 100%; }
.image-slideshow .hero-slide-media > a[href] { cursor: pointer; }
.shop-product:target { border-color: var(--orange); box-shadow: 0 0 0 4px #ff972433, 0 12px 32px #102a4a18; }
.shared-slideshow .hero-slide-media span { color: var(--orange); font-size: 120px; }
.image-slideshow { display: block; min-height: 0; padding: 0; }
.image-slideshow .hero-slide-media { width: 100%; height: clamp(280px, 38vw, 460px); max-width: none; border-radius: 0; background: linear-gradient(135deg, #102d50, #071629); }
.hero-slide-fallback { width: 100%; }
.admin-slide-fallback { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.customer-slide-fallback { display: grid; grid-template-columns: 1fr .65fr; align-items: center; gap: 25px; }
.image-slideshow.is-empty .hero-slide-media { display: none; }
.admin-hero.image-slideshow.is-empty { display: block; padding: 45px 6%; }
.shop-hero.image-slideshow.is-empty { display: block; padding: 45px 7%; }
.hero-slide-arrow { position: absolute; z-index: 4; top: 50%; width: 40px; height: 40px; border: 1px solid #ffffff55; border-radius: 50%; background: #07162999; color: #fff; font: 34px/1 Arial, sans-serif; cursor: pointer; transform: translateY(-50%); }
.hero-slide-arrow:hover { background: var(--orange); color: var(--navy); }
.hero-slide-arrow.is-prev { left: 12px; }.hero-slide-arrow.is-next { right: 12px; }
.hero-slide-dots { position: absolute; z-index: 4; left: 50%; bottom: 14px; display: flex; gap: 8px; transform: translateX(-50%); }
.hero-slide-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: #ffffff66; cursor: pointer; }
.hero-slide-dot.is-active { width: 24px; border-radius: 99px; background: var(--yellow); }
.admin-slideshow-manager { margin: 22px 0 28px; padding: 24px; border: 1px solid #e0e5ea; border-radius: 20px; background: #fff; }
.hero-slide-admin-list { display: grid; gap: 10px; margin-top: 18px; }
.hero-slide-admin-item { display: grid; grid-template-columns: 74px 1fr auto; align-items: center; gap: 14px; padding: 10px; border: 1px solid #e1e6eb; border-radius: 14px; }
.hero-slide-admin-item img, .hero-slide-admin-thumb { width: 74px; height: 54px; display: grid; place-items: center; object-fit: cover; border-radius: 9px; background: #eaf0f5; color: var(--orange); font-size: 24px; }
.hero-slide-admin-item strong, .hero-slide-admin-item small { display: block; }.hero-slide-admin-item small { margin-top: 3px; color: #667382; }
.hero-slide-admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 700px) {
  .shared-slideshow { min-height: 470px; padding: 34px 32px 58px; }
  .admin-hero.shared-slideshow { flex-direction: column; align-items: stretch; }
  .shared-slideshow .hero-slide-media { width: 100%; height: 190px; flex-basis: auto; order: -1; }
  .image-slideshow { min-height: 0; padding: 0; }
  .image-slideshow .hero-slide-media { height: 240px; }
  .admin-hero.image-slideshow.is-empty, .shop-hero.image-slideshow.is-empty { padding: 35px 28px; }
  .admin-slide-fallback, .customer-slide-fallback { display: grid; grid-template-columns: 1fr; }
  .customer-slide-fallback .shop-hero-art { display: none; }
  .hero-slide-arrow { top: 190px; }
  .hero-slide-admin-item { grid-template-columns: 58px 1fr; }
  .hero-slide-admin-item img, .hero-slide-admin-thumb { width: 58px; height: 48px; }
  .hero-slide-admin-actions { grid-column: 1 / -1; }
}
.profile-danger-zone { grid-column: 1 / -1; border-color: #efb0a8; background: #fffafa; }
.profile-danger-zone h2 { color: #9b2418; }
.profile-danger-zone > p { max-width: 760px; color: #5e3a36; }
.profile-danger-zone .profile-form { max-width: 560px; }
.button-danger { border: 1px solid #a52a1e; background: #a52a1e; color: #fff; }
.button-danger:hover { background: #7f1f17; }
.admin-delete-action { color: #a52a1e; }
.admin-delete-action:hover { color: #7f1f17; }


.order-item-cancel-choice { display: inline-flex; align-items: center; gap: 6px; color: #526171; font-size: 12px; }
.order-item-cancel-choice input[type='number'] { width: 58px; padding: 5px; border: 1px solid #cbd6de; border-radius: 7px; }
.order-item-cancelled { grid-column: 1 / -1; justify-self: end; color: #8a3d20; font-weight: 700; }
.order-history-items .order-photo-privacy { grid-column: 1 / -1; }
@media (max-width: 700px) {
  .order-history-items li { grid-template-columns: minmax(0, 1fr) auto; }
  .order-history-items li > .order-item-cancel-choice { grid-column: 1 / -1; justify-self: start; }
}

.order-cancel-panel { display: grid; gap: 12px; padding: 14px; border: 1px solid #d9e1e7; border-radius: 12px; background: #f8fafb; }
.order-cancel-panel[hidden] { display: none; }
.order-cancel-panel label { display: grid; gap: 7px; color: var(--navy); font-weight: 700; }
.order-cancel-panel textarea { width: 100%; resize: vertical; padding: 11px 12px; border: 1px solid #becbd5; border-radius: 10px; font: inherit; color: var(--ink); }
.order-cancel-panel textarea:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.order-cancel-panel .button { justify-self: start; }

/* Clear action hierarchy for administrator order controls */
.admin-order-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: 700 12px 'DM Sans', Arial, sans-serif;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.admin-order-button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 7px 16px rgba(9,26,51,.14); }
.admin-order-button:focus-visible { outline: 3px solid #ffd451; outline-offset: 2px; }
.admin-order-button:disabled { cursor: not-allowed; opacity: .55; box-shadow: none; }
.admin-order-button.is-primary { background: var(--orange); color: var(--navy); }
.admin-order-button.is-primary:hover:not(:disabled) { background: #ffad3b; }
.admin-order-button.is-secondary { border-color: #aebdca; background: #fff; color: var(--navy); }
.admin-order-button.is-secondary:hover:not(:disabled) { border-color: var(--navy); background: #f2f6f9; }
.admin-order-button.is-danger { border-color: #e4b8b8; background: #fff5f5; color: #922727; }
.admin-order-button.is-danger:hover:not(:disabled) { border-color: #bd3b3b; background: #ffe8e8; }
.admin-order-controls > .admin-order-button,
.admin-order-section > .admin-order-button { width: 100%; }
.admin-order-actions .admin-order-button { flex: 1 1 125px; }
.admin-order-action-heading { margin-top: 4px; color: #33465a; font-size: 11px !important; letter-spacing: .08em; text-transform: uppercase; }
.admin-cancellation-request .admin-order-button + .admin-order-button { margin-top: 2px; }

.admin-orders-tab span { display: inline-grid; min-width: 21px; height: 21px; margin-left: 5px; padding: 0 6px; place-items: center; border-radius: 999px; background: #d84040; color: #fff; font-size: 11px; }
.admin-orders-tab span[hidden] { display: none; }

.shop-pagination { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 28px; }
.shop-pagination[hidden] { display: none; }
.shop-pagination-summary { color: #657381; font-size: 13px; font-weight: 700; }
.shop-pagination-controls { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.shop-pagination-controls button { min-width: 38px; min-height: 38px; padding: 8px 11px; border: 1px solid #cad4dc; border-radius: 9px; background: #fff; color: var(--navy); font: 700 13px 'DM Sans', Arial, sans-serif; cursor: pointer; }
.shop-pagination-controls button:hover:not(:disabled), .shop-pagination-controls button.is-current { border-color: var(--navy); background: var(--navy); color: #fff; }
.shop-pagination-controls button:focus-visible { outline: 3px solid #ff8a1c55; outline-offset: 2px; }
.shop-pagination-controls button:disabled { opacity: .42; cursor: not-allowed; }
.shop-pagination-gap { padding: 0 2px; color: #7a8793; }
@media (max-width: 700px) { .shop-pagination { align-items: flex-start; flex-direction: column; }.shop-pagination-controls { justify-content: flex-start; }.shop-layout .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .shop-layout .shop-grid { grid-template-columns: 1fr; } }
/* Browser storage and analytics consent */
.cookie-consent { position: fixed; z-index: 1000; right: 20px; bottom: 20px; left: 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1080px; margin: auto; padding: 20px 22px; border: 1px solid #d6dee5; border-radius: 18px; background: #fff; box-shadow: 0 18px 55px #07162938; }
.cookie-consent h2 { margin: 0 0 7px; color: var(--navy); font: 700 20px Fredoka, Arial, sans-serif; }
.cookie-consent p { max-width: 720px; margin: 0; color: #556473; font-size: 13px; line-height: 1.55; }
.cookie-consent a { color: #a65408; font-weight: 700; }
.cookie-consent-actions { display: flex; flex: none; gap: 10px; }
.cookie-consent-actions .button { white-space: nowrap; cursor: pointer; }
.cookie-decline { border: 1px solid #b9c6cf; background: #fff; color: var(--navy); }
.cookie-decline:hover { border-color: var(--navy); }
.policy-preference-button { margin-top: 12px; border: 1px solid var(--navy); background: #fff; color: var(--navy); cursor: pointer; }
.policy-preference-button:hover { background: var(--navy); color: #fff; }
@media (max-width: 700px) { .cookie-consent { align-items: stretch; flex-direction: column; }.cookie-consent-actions { display: grid; grid-template-columns: 1fr 1fr; }.cookie-consent-actions .button { justify-content: center; } }
@media (max-width: 420px) { .cookie-consent { right: 10px; bottom: 10px; left: 10px; padding: 17px; }.cookie-consent-actions { grid-template-columns: 1fr; } }
/* Bounded order pagination */
.bounded-pagination{display:flex;align-items:center;justify-content:center;gap:1rem;margin:1.5rem 0}.bounded-pagination button:disabled{opacity:.45;cursor:not-allowed}

/* Administrator settings for each custom-design category. */
#custom-design-option-fields .custom-design-option { display:grid; gap:7px; align-content:start; font-size:13px; font-weight:700; }
#custom-design-option-fields .custom-design-option-toggle { display:grid; grid-template-columns:18px 1fr; align-items:start; gap:8px; }
#custom-design-option-fields input[type="checkbox"] { width:18px; height:18px; min-height:0; margin:0; padding:0; accent-color:#bc6100; }
#custom-design-option-fields textarea:disabled, #custom-design-option-fields input:disabled { opacity:.6; background:#eef1f4; cursor:not-allowed; }
@media(min-width:650px) { #custom-design-option-fields { grid-template-columns:repeat(2,minmax(0,1fr)); } }

/* Dynamic custom-design form and immutable order choices. */
.lithophane-form [hidden], #lithophane-preview[hidden] { display:none !important; }
.custom-order-selections { display:block; margin-top:5px; font-weight:400; white-space:normal; overflow-wrap:anywhere; }

/* Landing page motion: printed-figure hero intro, idle life, scrolling banner, and scroll reveals */
@property --bob { syntax: '<length>'; inherits: false; initial-value: 0px; }
@keyframes landing-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes landing-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes landing-orbit-in { from { opacity: 0; transform: translate(-50%, -50%) scale(.6); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes landing-orbit-spin { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes landing-print { from { clip-path: inset(115% -45% -15% -45%); } to { clip-path: inset(-15% -45% -15% -45%); } }
@keyframes landing-nozzle { from { top: 115%; opacity: 1; } to { top: -15%; opacity: 1; } }
@keyframes landing-layers { 0%, 75% { opacity: .9; } 100% { opacity: 0; } }
@keyframes landing-swing { 0%, 100% { transform: translate(-42px, 6px) rotate(-21deg); } 50% { transform: translate(-42px, 6px) rotate(-13deg); } }
@keyframes landing-bob { 0%, 100% { --bob: 0px; } 50% { --bob: -12px; } }
@keyframes landing-twinkle { 0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; } 50% { transform: scale(.55) rotate(45deg); opacity: .45; } }
@keyframes landing-sticker { 0% { opacity: 0; transform: rotate(-12deg) scale(.3); } 70% { opacity: 1; transform: rotate(11deg) scale(1.08); } 100% { opacity: 1; transform: rotate(8deg) scale(1); } }
@keyframes landing-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes landing-wiggle { 0%, 100% { rotate: 0deg; } 25% { rotate: -6deg; } 75% { rotate: 6deg; } }
@keyframes landing-ring-spin { from { transform: translateX(-50%) rotate(0deg); } to { transform: translateX(-50%) rotate(360deg); } }

.hero-copy > * { animation: landing-rise .7s cubic-bezier(.2, .7, .3, 1) backwards; }
.hero-copy > :nth-child(1) { animation-delay: .05s; }
.hero-copy > :nth-child(2) { animation-delay: .15s; }
.hero-copy > :nth-child(3) { animation-delay: .3s; }
.hero-copy > :nth-child(4) { animation-delay: .45s; }
.hero-copy > :nth-child(5) { animation-delay: .6s; }
.hero-visual:before { animation: landing-fade 1s ease .1s backwards; }
.hero-visual:after { animation: landing-orbit-in 1s cubic-bezier(.2, .7, .3, 1) .2s backwards, landing-orbit-spin 60s linear 1.2s infinite; }

/* Each figure prints bottom-up in visible layers, with a glowing nozzle line at the current layer. */
.hero-visual .keychain { translate: calc(var(--px, 0) * var(--depth, 10px)) calc(var(--py, 0) * var(--depth, 10px) + var(--bob)); transition: translate .4s ease-out; }
.hero-visual .keychain-blue { --depth: 14px; transform-origin: 50% 26px; transform: translate(-42px, 6px) rotate(-17deg); animation: landing-swing 5.5s ease-in-out 3s infinite; }
.hero-visual .keychain-yellow { --depth: 22px; animation: landing-bob 4.2s ease-in-out 3s infinite; }
.hero-visual .keychain-pink { --depth: 18px; animation: landing-bob 5s ease-in-out 3.6s infinite; }
.hero-visual .ring, .hero-visual .chain { animation: landing-fade .5s ease .35s backwards; }
.hero-visual .charm { animation: landing-print 1.5s steps(18, end) var(--print-delay, .5s) backwards; }
.hero-visual .charm::before, .hero-visual .charm::after { content: ''; position: absolute; z-index: 4; pointer-events: none; opacity: 0; }
.hero-visual .charm::before { inset: 0; border-radius: inherit; background: repeating-linear-gradient(to bottom, #ffffff40 0 2px, transparent 2px 7px); animation: landing-layers 2.3s ease var(--print-delay, .5s) backwards; }
.hero-visual .charm::after { left: -14%; right: -14%; height: 3px; margin-top: -1px; border-radius: 3px; background: linear-gradient(90deg, transparent, #fff5d6 20%, var(--orange) 50%, #fff5d6 80%, transparent); box-shadow: 0 0 14px 3px #ff9c1aaa; animation: landing-nozzle 1.5s steps(18, end) var(--print-delay, .5s) backwards; }
.hero-visual .keychain-blue .charm { --print-delay: .5s; }
.hero-visual .keychain-yellow .charm { --print-delay: 1s; }
.hero-visual .keychain-pink .charm { --print-delay: 1.5s; }
.hero-visual .visual-star { translate: calc(var(--px, 0) * 30px) calc(var(--py, 0) * 30px); transition: translate .4s ease-out; animation: landing-fade .6s ease .4s backwards, landing-twinkle 3.2s ease-in-out 1s infinite; }
.hero-visual .star-two { animation-delay: .6s, 2.1s; animation-duration: .6s, 4s; }
.hero-visual .star-three { animation-delay: .8s, 1.6s; animation-duration: .6s, 2.7s; }
.hero-visual .visual-sticker { animation: landing-sticker .7s cubic-bezier(.3, 1.4, .5, 1) 2.6s backwards; }
.hero.is-offscreen *, .hero.is-offscreen *::before, .hero.is-offscreen *::after,
.hero-visual.is-waiting, .hero-visual.is-waiting::before, .hero-visual.is-waiting::after,
.hero-visual.is-waiting *, .hero-visual.is-waiting *::before, .hero-visual.is-waiting *::after { animation-play-state: paused; }

/* The banner scrolls as a seamless loop of two identical halves. */
.marquee-track { display: flex; width: max-content; animation: landing-marquee 32s linear infinite; }
.marquee .marquee-track span { display: block; padding-right: 1.6em; text-align: left; }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* Below-the-fold sections rise in once as they enter the viewport (classes added by landing-motion.js). */
.landing-reveal { opacity: 0; transform: translateY(30px); }
.landing-reveal.is-visible { opacity: 1; transform: none; transition: opacity .7s ease var(--reveal-delay, 0ms), transform .7s cubic-bezier(.2, .7, .3, 1) var(--reveal-delay, 0ms); }
.card .card-art { transition: transform .35s cubic-bezier(.2, .7, .3, 1), box-shadow .35s ease; }
.card:hover .card-art { transform: translateY(-6px); box-shadow: 0 18px 36px #102a4a24; }
.card:hover .mini-charm { animation: landing-wiggle .6s ease-in-out; }
.custom-art .draw-ring { animation: landing-ring-spin 45s linear infinite; }
.custom-art .custom-star { animation: landing-twinkle 3.5s ease-in-out infinite; }
.custom-art .custom-showcase { translate: 0 var(--bob); animation: landing-bob 4.6s ease-in-out infinite; }

/* Custom showcase: each product prints in under the nozzle, then shows what makes it special.
   Animations only run on the active scene, so they replay every time it comes back around. */
@keyframes showcase-plate-light { 0%, 30% { background-color: #f3efe8; } 100% { background-color: #ffe7b3; } }
@keyframes showcase-plate-image { 0%, 30% { filter: grayscale(1) brightness(1.9) contrast(.3); } 100% { filter: none; } }
@keyframes showcase-glow { 0%, 30% { opacity: 0; transform: scale(.6); } 75% { opacity: 1; transform: scale(1.06); } 100% { opacity: 1; transform: scale(1); } }
@keyframes showcase-letter { from { opacity: 0; transform: translateY(26px) scale(.4); } 70% { opacity: 1; transform: translateY(-6px) scale(1.12); } to { opacity: 1; transform: none; } }
@keyframes showcase-press { 0%, 100% { scale: 1; } 40% { scale: .92; } }
@keyframes showcase-click { 0% { opacity: 0; transform: rotate(10deg) scale(.4); } 25% { opacity: 1; transform: rotate(10deg) scale(1.15); } 70% { opacity: 1; transform: rotate(10deg) scale(1); } 100% { opacity: 0; transform: rotate(10deg) translateY(-14px); } }
@keyframes showcase-star { from { opacity: 0; transform: scale(0); } 60% { opacity: 1; transform: scale(1.9); } to { opacity: 1; transform: scale(1); } }
@keyframes showcase-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes showcase-develop { from { filter: brightness(.12) saturate(0) blur(2px); } 60% { filter: brightness(.8) saturate(.5) blur(.5px); } to { filter: none; } }
@keyframes showcase-write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes showcase-label-in { from { opacity: 0; translate: 0 10px; } }
.showcase-scene.is-active .scene-print { animation: landing-print 1.1s steps(14, end) .15s backwards; }
.showcase-scene.is-active .scene-print::before, .showcase-scene.is-active .scene-print::after { content: ''; position: absolute; z-index: 4; pointer-events: none; opacity: 0; }
.showcase-scene.is-active .scene-print::before { inset: 0; border-radius: inherit; background: repeating-linear-gradient(to bottom, #ffffff40 0 2px, transparent 2px 7px); animation: landing-layers 1.7s ease .15s backwards; }
.showcase-scene.is-active .scene-print::after { left: -10%; right: -10%; height: 3px; margin-top: -1px; border-radius: 3px; background: linear-gradient(90deg, transparent, #fff5d6 20%, var(--orange) 50%, #fff5d6 80%, transparent); box-shadow: 0 0 14px 3px #ff9c1aaa; animation: landing-nozzle 1.1s steps(14, end) .15s backwards; }
.showcase-scene.is-active .scene-label { animation: showcase-label-in .5s ease .5s backwards; }
.showcase-scene.is-active .litho-plate { animation: showcase-plate-light 1.5s ease 1.3s backwards; }
.showcase-scene.is-active .litho-plate svg { animation: showcase-plate-image 1.5s ease 1.3s backwards; }
.showcase-scene.is-active .litho-glow { animation: showcase-glow 1.7s ease 1.3s backwards; }
.showcase-scene.is-active .name-tag { animation: landing-print 1.1s steps(14, end) .15s backwards, showcase-press .3s ease 2.6s; }
.showcase-scene.is-active .name-tag b { animation: showcase-letter .5s cubic-bezier(.3, 1.4, .5, 1) calc(1.2s + var(--i) * .22s) backwards; }
.showcase-scene.is-active .name-click { animation: showcase-click 1.2s ease 2.6s; }
.showcase-scene.is-active .star-poster circle:not(.star-sky) { transform-box: fill-box; transform-origin: center; animation: showcase-star .45s ease-out calc(1.1s + var(--i) * .08s) backwards; }
.showcase-scene.is-active .star-line { animation: showcase-draw 1s ease-in-out 2.2s backwards; }
.showcase-scene.is-active .star-line-two { animation-delay: 2.8s; }
.showcase-scene.is-active .polaroid-photo svg { animation: showcase-develop 2s ease-out 1.2s backwards; }
.showcase-scene.is-active .polaroid-caption { animation: showcase-write 1s steps(16, end) 2.6s backwards; }

@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .hero-visual:before, .hero-visual:after, .hero-visual .keychain, .hero-visual .ring, .hero-visual .chain,
  .hero-visual .charm, .hero-visual .charm::before, .hero-visual .charm::after, .hero-visual .visual-star, .hero-visual .visual-sticker,
  .marquee-track, .card:hover .mini-charm, .custom-art .draw-ring, .custom-art .custom-star, .custom-art .custom-showcase { animation: none; }
  .custom-showcase *, .custom-showcase *::before, .custom-showcase *::after { animation: none !important; }
  .hero-visual .keychain, .hero-visual .visual-star { translate: none; transition: none; }
  .marquee-track { width: auto; }
  .marquee .marquee-track span { width: 100%; text-align: center; }
  .marquee .marquee-track span + span { display: none; }
  .landing-reveal { opacity: 1; transform: none; }
  .card .card-art { transition: none; }
  .card:hover .card-art { transform: none; }
}

/* Site-wide motion: the shop pages share the landing page's 3D-printing language. */
@keyframes site-print-in { from { opacity: 0; clip-path: inset(100% -40px -40px -40px); transform: translateY(14px); } 55% { opacity: 1; } to { opacity: 1; clip-path: inset(-40px); transform: none; } }
@keyframes site-print-loop { 0% { background-size: 64% 0%; } 85%, 100% { background-size: 64% 100%; } }
@keyframes site-nozzle-loop { 0% { top: 98px; } 85%, 100% { top: 60px; } }
@keyframes site-backlight { 0% { opacity: .5; filter: grayscale(1) brightness(2.3) contrast(.25); } 45% { opacity: 1; filter: grayscale(1) sepia(.55) brightness(1.2) contrast(.9); } 100% { opacity: 1; filter: none; } }
@keyframes site-backlight-glow { 0% { opacity: 0; } 40% { opacity: 1; } 100% { opacity: 0; } }
@keyframes site-dialog-in { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes site-fade-in { from { opacity: 0; } }
@keyframes site-page-out { to { opacity: 0; } }
@keyframes site-page-in { from { opacity: 0; transform: translateY(10px); } }

/* Cards build up from the bottom when they first appear, including when a hidden section is shown. */
.auth-card, .auth-art, .product-page-card, .checkout-card, .orders-list, .shop-hero, .lithophane-types > * { animation: site-print-in .75s cubic-bezier(.2, .7, .3, 1) backwards; }
.auth-art { animation-delay: .15s; }
.checkout-card:nth-of-type(2), .lithophane-types > :nth-child(2) { animation-delay: .1s; }
.checkout-card:nth-of-type(3), .lithophane-types > :nth-child(3) { animation-delay: .2s; }
.lithophane-types > :nth-child(n + 4) { animation-delay: .3s; }

/* Loading messages show a small print stacking up under a moving nozzle. */
.shop-loading, #checkout-loading, #lithophane-loading { position: relative; text-align: center; padding: 60px 0; }
.shop-loading::before, #checkout-loading::before, #lithophane-loading::before { content: ''; display: block; width: 56px; height: 42px; margin: 0 auto 18px; border-bottom: 4px solid var(--navy); border-radius: 2px; background: repeating-linear-gradient(to top, var(--orange) 0 4px, #ffc46e 4px 5px) bottom / 64% 100% no-repeat; animation: site-print-loop 1.8s steps(9, end) infinite; }
/* The plate's printable area runs from 98px (bottom, above its 4px base) up to 60px (top padding). */
.shop-loading::after, #checkout-loading::after, #lithophane-loading::after { content: ''; position: absolute; top: 98px; left: 50%; width: 46px; height: 3px; margin: -2px 0 0 -23px; border-radius: 3px; background: linear-gradient(90deg, transparent, #fff5d6 25%, var(--orange) 50%, #fff5d6 75%, transparent); box-shadow: 0 0 12px 2px #ff9c1a88; animation: site-nozzle-loop 1.8s steps(9, end) infinite; }

/* A lithophane is a blank white plate until light shines through it, so the photo preview "lights up". */
.lithophane-preview { position: relative; }
.lithophane-preview img { animation: site-backlight 1.6s ease-out backwards; }
.lithophane-preview:has(img)::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 55%, #fff1cc, transparent 68%); mix-blend-mode: screen; opacity: 0; animation: site-backlight-glow 1.6s ease-out; }

/* Buttons: a filament shine on hover and a press-in on click. */
.button-orange { background-image: linear-gradient(110deg, transparent 38%, #ffffff80 50%, transparent 62%); background-size: 260% 100%; background-position: 130% 0; background-repeat: no-repeat; transition: transform .2s, box-shadow .2s, background-position .7s ease; }
.button-orange:hover { background-position: -30% 0; }
.button:active, .nav-button:active { transform: translateY(0) scale(.97); transition-duration: .08s; }

/* Dialogs spring open over a fading backdrop. */
dialog[open] { animation: site-dialog-in .35s cubic-bezier(.3, 1.3, .5, 1); }
dialog[open]::backdrop { animation: site-fade-in .3s ease; }

/* The spark that flies into the cart, and the confetti after a successful payment. */
.cart-flyer, .site-confetti { position: fixed; z-index: 1000; pointer-events: none; translate: -50% -50%; }
.cart-flyer { color: var(--orange); font-size: 24px; text-shadow: 0 0 12px #ff9c1aaa; }
.site-confetti { font: 700 18px/1 Fredoka, 'DM Sans', sans-serif; }

/* Page-to-page transitions in browsers that support them; the header stays put while the page fades. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header, .shop-header { view-transition-name: site-header; }
  ::view-transition-old(root) { animation: site-page-out .16s ease-in both; }
  ::view-transition-new(root) { animation: site-page-in .32s cubic-bezier(.2, .7, .3, 1) both; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-card, .auth-art, .product-page-card, .checkout-card, .orders-list, .shop-hero, .lithophane-types > *,
  .shop-loading::before, #checkout-loading::before, #lithophane-loading::before,
  .lithophane-preview img, .lithophane-preview::after, dialog[open], dialog[open]::backdrop { animation: none; }
  .shop-loading::after, #checkout-loading::after, #lithophane-loading::after { display: none; }
  .button-orange { transition: none; background-image: none; }
}

/* Lithophane studio: a live, framed preview at the true 140 × 104 mm proportions that reacts to every choice. */
@keyframes studio-print { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
@keyframes studio-lights-on { from { filter: grayscale(1) contrast(.18) brightness(1.75); } }
@keyframes studio-nozzle { from { top: 100%; opacity: 1; } to { top: 0%; opacity: 1; } }
@keyframes studio-turn { 0% { rotate: 0deg; } 35% { rotate: -9deg; } 70% { rotate: 3deg; } 100% { rotate: 0deg; } }
@keyframes studio-tint { 0%, 100% { scale: 1; } 40% { scale: 1.05; } }
@keyframes studio-breathe { 0%, 100% { transform: scale(.94); } 50% { transform: scale(1.05); } }
.lithophane-dialog.is-studio { width: min(1060px, calc(100% - 28px)); }
.studio-layout { display: grid; gap: 26px; }
.lithophane-dialog.is-studio .studio-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.litho-studio { position: sticky; top: 0; z-index: 1; display: grid; gap: 12px; padding: 20px; border-radius: 22px; background: radial-gradient(circle at 50% 38%, #1f3d66, var(--navy) 72%); color: #fff; }
.litho-studio[hidden], .studio-empty[hidden] { display: none; }
.studio-stage { position: relative; display: grid; place-items: center; height: 330px; perspective: 900px; }
.studio-glow { position: absolute; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, #ffd27aa6, #ff9c1a30 45%, transparent 70%); animation: studio-breathe 4.5s ease-in-out infinite; transition: opacity .6s ease; }
.studio-frame { --frame: #1f2023; --w: 168px; --h: 226px; position: relative; padding: 14px; border-radius: 10px; background: var(--frame); box-shadow: inset 0 0 0 2px #ffffff26, inset 0 -6px 0 #0000002e, 18px 22px 34px #00000070; transform: rotateX(calc(var(--tilt-y, 0) * -14deg)) rotateY(calc(var(--tilt-x, 0) * 16deg)); transition: background-color .6s ease, transform .35s ease-out; }
.studio-frame[data-orientation="landscape"] { --w: 226px; --h: 168px; }
.studio-frame.is-turning { animation: studio-turn .7s ease; }
.studio-frame.is-tinting { animation: studio-tint .45s ease; }
.studio-plate { --look: grayscale(1) sepia(.3) contrast(1.08) brightness(1.04); position: relative; width: var(--w); height: var(--h); overflow: hidden; border-radius: 3px; background: #f4efe6; transition: width .7s cubic-bezier(.3, 1.35, .5, 1), height .7s cubic-bezier(.3, 1.35, .5, 1), background-color .6s ease; }
.studio-plate[data-style="colored"] { --look: saturate(1.12) contrast(1.03) brightness(1.05); }
.studio-plate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: var(--look); transition: filter .9s ease; }
/* Fine printed layer lines, plus a warm sheen where the light shines through. */
.studio-plate::before, .studio-plate::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.studio-plate::before { background: repeating-linear-gradient(to bottom, #ffffff14 0 1px, transparent 1px 3px); }
.studio-plate::after { background: radial-gradient(circle at 50% 45%, #fff3d460, transparent 70%); mix-blend-mode: screen; transition: opacity .6s ease; }
.studio-plate.is-printing img { animation: studio-print 1.3s steps(18, end), studio-lights-on 1.1s ease 1.3s backwards; }
.studio-nozzle { position: absolute; z-index: 2; top: 0; left: -6%; right: -6%; height: 3px; margin-top: -1px; border-radius: 3px; background: linear-gradient(90deg, transparent, #fff5d6 20%, var(--orange) 50%, #fff5d6 80%, transparent); box-shadow: 0 0 14px 3px #ff9c1aaa; opacity: 0; pointer-events: none; }
.studio-plate.is-printing .studio-nozzle { animation: studio-nozzle 1.3s steps(18, end); }
.studio-empty { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; gap: 8px; margin: 0; padding: 16px; color: #8a8172; font-size: 13px; line-height: 1.4; text-align: center; }
.studio-empty span { color: var(--orange); font-size: 30px; }
/* Light off shows the bare white plate; switching it back on reveals the picture. */
.litho-studio.is-dark .studio-plate { --look: grayscale(1) contrast(.18) brightness(1.75); background-color: #ece8e1; }
.litho-studio.is-dark .studio-plate::after, .litho-studio.is-dark .studio-glow { opacity: 0; }
.studio-size { margin: 0; color: #c8d4e2; font-size: 13px; letter-spacing: .06em; text-align: center; }
.studio-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.studio-light { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border: 0; border-radius: 999px; background: #ffffff1c; color: #fff; font: 700 14px 'DM Sans', sans-serif; cursor: pointer; transition: background .2s; }
.studio-light:hover { background: #ffffff30; }
.studio-light span { width: 12px; height: 12px; border-radius: 50%; background: #ffd451; box-shadow: 0 0 10px 3px #ffd45199; transition: background .3s, box-shadow .3s; }
.litho-studio.is-dark .studio-light span { background: #5b6878; box-shadow: none; }
.studio-caption { margin: 0; color: #c8d4e2; font-size: 13px; }
/* Choices as tappable chips, each showing what it will look like. */
.studio-chips { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.studio-chips legend { width: 100%; margin-bottom: 8px; padding: 0; font-weight: 700; }
/* Scoped under .checkout-fields so it outranks the form's stacked label layout. */
.checkout-fields .studio-chip { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 2px solid #dfe5ea; border-radius: 999px; background: #fff; color: var(--navy); font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .2s, background-color .2s, transform .15s; }
.studio-chip:hover { transform: translateY(-2px); }
.studio-chip:has(input:checked) { border-color: var(--orange); background: #fff6e8; }
.studio-chip:has(input:focus-visible) { outline: 3px solid #ffb347; outline-offset: 2px; }
.studio-chip input { position: absolute; opacity: 0; pointer-events: none; }
.studio-chip small { color: #c26a00; font-weight: 700; }
.studio-chip-icon { flex: none; width: 18px; height: 18px; border: 2px solid #00000022; border-radius: 50%; }
.studio-chip-icon:not([data-kind]):not([style]):not([data-texture]) { display: none; }
.studio-chip-icon[data-kind="portrait"] { width: 13px; height: 18px; border-radius: 3px; background: #c9d3df; }
.studio-chip-icon[data-kind="landscape"] { width: 20px; height: 14px; border-radius: 3px; background: #c9d3df; }
.studio-chip-icon[data-kind="mono"] { background: linear-gradient(135deg, #fff, #4a4a4a); }
.studio-chip-icon[data-kind="colored"] { background: conic-gradient(#ff7aa8, #ffd451, #7be08a, #4fa3ff, #ff7aa8); }
#lithophane-price { display: inline-block; }
#lithophane-price.is-popped { animation: dreamcraft-pop .4s ease; }
@media (max-width: 820px) {
  .lithophane-dialog.is-studio .studio-layout { grid-template-columns: 1fr; }
  /* On phones the preview sits above the options, so it stays pinned to the top of the window while the customer
     scrolls through them; it is more compact here so the options below stay usable. */
  .litho-studio { top: 0; z-index: 3; gap: 8px; padding: 12px 14px; box-shadow: 0 10px 24px #07162959; }
  .studio-stage { height: 200px; }
  .studio-frame { zoom: .78; }
  .studio-round { width: auto; height: 190px; }
  .studio-star { height: 190px; }
  .studio-size { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .studio-glow, .studio-frame.is-turning, .studio-frame.is-tinting, .studio-plate.is-printing img, .studio-plate.is-printing .studio-nozzle, #lithophane-price.is-popped { animation: none; }
  .studio-frame, .studio-plate, .studio-plate img, .studio-chip { transition: none; }
}

/* Header bars stay at the top while scrolling. --header-h is their height, so other sticky panels and
   in-page links (#collection, #about) settle just below the bar instead of underneath it. */
:root { --header-h: 92px; }
@media (max-width: 700px) { :root { --header-h: 72px; } }
html { scroll-padding-top: calc(var(--header-h) + 12px); }
.site-header, .shop-header { position: sticky; top: 0; z-index: 90; }
.checkout-summary { top: calc(var(--header-h) + 20px); }
/* A soft shadow fades in once the page scrolls, where the browser supports scroll-linked animation. */
@keyframes header-lift { to { box-shadow: 0 8px 24px #0716294d; } }
@supports (animation-timeline: scroll()) {
  .site-header, .shop-header { animation: header-lift linear both; animation-timeline: scroll(); animation-range: 0 80px; }
}

/* Header cart icon (js/cart-badge.js): always visible in the sticky header, with an item count. */
.header-cart { position: relative; display: inline-flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: inherit; transition: background-color .2s, color .2s; }
.header-cart:hover { background: #ffffff1f; color: var(--orange); }
.header-cart:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.header-cart-count { position: absolute; top: -3px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--orange); color: var(--navy); font: 700 11px/20px 'DM Sans', Arial, sans-serif; text-align: center; box-shadow: 0 0 0 2px var(--navy); }
.header-cart-count[hidden] { display: none; }
.header-cart.is-bumped { animation: dreamcraft-pop .45s ease; }
@media (prefers-reduced-motion: reduce) { .header-cart.is-bumped { animation: none; } }

/* Header ☰ menu (js/header-menu.js). The cart icon is its own item in the bar; on the homepage the menu links
   stay centered between the logo and the cart. */
.site-header .nav > nav { margin: 0 auto; }
.has-header-menu > .header-cart { flex: none; }
.header-menu-toggle { display: none; }
@media (max-width: 860px) {
  .has-header-menu { flex-wrap: wrap; align-content: center; gap: 0 10px !important; padding-top: 0 !important; padding-bottom: 0 !important; }
  .has-header-menu > nav, .has-header-menu > .account-links { display: none !important; }
  /* The logo, cart and ☰ always share the top row; the opened links come after them. */
  .has-header-menu > .header-cart { order: 1; margin-left: auto; }
  .has-header-menu > .header-menu-toggle { order: 2; }
  .has-header-menu > nav, .has-header-menu > .account-links { order: 3; }
  .header-menu-toggle { display: inline-flex; flex: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: #ffffff14; cursor: pointer; transition: background .2s; }
  .header-menu-toggle:hover { background: #ffffff26; }
  .header-menu-toggle:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
  .header-menu-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: #fff; transition: transform .25s ease, opacity .2s ease; }
  /* Open: the links drop down below the logo row as large, easy-to-tap rows; the ☰ turns into ×. */
  .menu-open .header-menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .header-menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .header-menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  /* The open menu is taller than the bar, so keep the logo row where it sat when closed (about 7px from the top). */
  .menu-open .has-header-menu { align-content: flex-start; padding-top: 7px !important; padding-bottom: 14px !important; }
  .menu-open .has-header-menu > nav, .menu-open .has-header-menu > .account-links { display: flex !important; flex: 1 0 100%; flex-direction: column; align-items: stretch; gap: 0 !important; width: 100%; margin: 0; font-size: 16px !important; white-space: normal; animation: site-fade-in .2s ease; }
  .menu-open .has-header-menu > nav > :not([hidden]), .menu-open .has-header-menu > .account-links > :not([hidden]) { display: flex; align-items: center; width: 100%; min-height: 48px; padding: 0 4px; border-top: 1px solid #ffffff1a; font-size: 16px; text-align: left; }
  .menu-open .has-header-menu .shop-signout { justify-content: flex-start; background: none; border-left: 0; border-right: 0; border-bottom: 0; color: inherit; cursor: pointer; }
  .menu-open .has-header-menu > .account-links { padding-top: 6px; }
  .menu-open .has-header-menu > .account-links > .nav-button, .menu-open .has-header-menu > nav > .nav-button { justify-content: center; min-height: 46px; margin-top: 10px; border: 0; }
  .menu-open .has-header-menu .is-current { text-underline-offset: 5px; }
  /* The round profile icon becomes a labelled row in the open menu. */
  .menu-open .shop-header-links .profile-link { flex: none; justify-content: flex-start; gap: 12px; height: auto; overflow: visible; border-width: 1px 0 0; border-radius: 0; background: none; }
  .menu-open .shop-header-links .profile-link > * { width: 28px; height: 28px; border-radius: 50%; }
  .menu-open .shop-header-links .profile-link::after { content: 'Your profile'; font-weight: 700; }
}
@media (prefers-reduced-motion: reduce) { .header-menu-toggle span { transition: none; } }

/* Folding fan studio (js/lithophane.js): 11 blades unfold around the rivet; the photo spreads across the open fan. */
.studio-fan-wrap { position: relative; display: grid; place-items: center; width: 100%; transform: rotateX(calc(var(--tilt-y, 0) * -10deg)) rotateY(calc(var(--tilt-x, 0) * 12deg)); transition: transform .35s ease-out; }
.studio-fan-wrap[hidden] { display: none; }
.studio-fan-wrap.is-tinting { animation: studio-tint .45s ease; }
.studio-fan { --frame: #f3f1ec; --look: grayscale(1) sepia(.3) contrast(1.08) brightness(1.04); width: min(100%, 400px); overflow: visible; filter: drop-shadow(14px 18px 18px #0007); }
.studio-fan[data-style="colored"] { --look: saturate(1.12) contrast(1.03) brightness(1.05); }
.litho-studio.is-dark .studio-fan { --look: grayscale(1) contrast(.18) brightness(1.75); }
.fan-blade { transform-box: view-box; transform-origin: 0 0; transform: rotate(0deg); transition: transform .75s cubic-bezier(.3, 1.2, .5, 1) calc(var(--i) * 35ms); }
.studio-fan.is-open .fan-blade { transform: rotate(var(--angle)); }
.studio-fan.is-snapping .fan-blade { transition: none; }
.fan-plate { fill: #f4efe6; transition: fill .6s ease; }
.litho-studio.is-dark .fan-plate { fill: #ece8e1; }
.fan-photo { filter: var(--look); transition: filter .9s ease; }
.studio-fan.is-lighting .fan-photo { animation: studio-lights-on 1.1s ease .55s backwards; }
.fan-blade-edge { fill: none; stroke: var(--frame); stroke-width: 2.5; stroke-linejoin: round; transition: stroke .6s ease; }
.fan-rib { stroke: var(--frame); stroke-width: 6; stroke-linecap: round; transition: stroke .6s ease; }
.fan-rivet { fill: var(--frame); stroke: #0003; stroke-width: 2; transition: fill .6s ease; }
.fan-rivet-shine { fill: #ffffff99; }
.studio-fan-empty { position: absolute; bottom: 14%; left: 50%; margin: 0; padding: 8px 14px; border-radius: 999px; background: #091a33d9; color: #fff; font-size: 13px; white-space: nowrap; transform: translateX(-50%); }
.studio-fan-empty[hidden] { display: none; }
.studio-fan-empty span { margin-right: 6px; color: var(--orange); }
.studio-chip-icon[data-kind="fan-shape"] { width: 14px; height: 22px; border: 0; border-radius: 0; }
.studio-chip-icon[data-kind="fan-shape"] svg { display: block; width: 100%; height: 100%; }
.studio-chip-icon[data-kind="fan-shape"] path { fill: #c9d3df; stroke: var(--navy); stroke-width: 7; }
@media (prefers-reduced-motion: reduce) {
  .fan-blade, .studio-fan-wrap, .fan-photo { transition: none; }
  .studio-fan.is-lighting .fan-photo, .studio-fan-wrap.is-tinting { animation: none; }
}

/* Admin: a tick box per fixed option (such as the folding fan shapes). */
#custom-design-option-fields .custom-design-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; margin: 0; padding: 0; border: 0; }
#custom-design-option-fields .custom-design-pick legend { margin-bottom: 8px; padding: 0; font-weight: 700; }

/* Moving the photo on the fan: drag it (the page doesn't scroll while a finger is on the fan), or zoom below. */
.studio-fan.has-photo { cursor: grab; touch-action: none; }
.studio-fan.is-dragging { cursor: grabbing; }
.studio-fan:focus-visible { outline: 3px solid var(--orange); outline-offset: 6px; border-radius: 12px; }
.studio-adjust { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; color: #c8d4e2; font-size: 13px; }
.studio-adjust[hidden] { display: none; }
.studio-adjust-hint::before { content: '✥ '; color: var(--orange); }
.studio-adjust label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; }
.studio-adjust input[type="range"] { width: 120px; accent-color: var(--orange); }
.studio-adjust-reset { padding: 6px 12px; border: 1px solid #ffffff40; border-radius: 999px; background: transparent; color: #fff; font: 700 12px 'DM Sans', Arial, sans-serif; cursor: pointer; }
.studio-adjust-reset:hover { background: #ffffff1c; }

/* Round fan studio (js/lithophane.js): a photo panel on a handle that sways gently, as if someone is holding it. */
@keyframes round-sway { 0%, 100% { rotate: -2.5deg; } 50% { rotate: 2.5deg; } }
@keyframes round-arrive { from { scale: .8; rotate: -14deg; } }
.studio-round { --frame: #a8713f; --look: grayscale(1) sepia(.3) contrast(1.08) brightness(1.04); width: min(100%, 200px); overflow: visible; filter: drop-shadow(14px 18px 18px #0007); }
.studio-round[data-style="colored"] { --look: saturate(1.12) contrast(1.03) brightness(1.05); }
.litho-studio.is-dark .studio-round { --look: grayscale(1) contrast(.18) brightness(1.75); }
.round-body { transform-box: view-box; transform-origin: 0 176px; animation: round-sway 4.5s ease-in-out infinite; }
.studio-round.is-dragging .round-body { animation-play-state: paused; }
.round-panel { transform-box: view-box; transform-origin: 0 0; transition: scale .26s ease, opacity .26s ease; }
.studio-round.is-morphing .round-panel { scale: .55; opacity: .2; }
.studio-round.is-arriving .round-panel { animation: round-arrive .8s cubic-bezier(.3, 1.3, .5, 1); }
.round-plate { fill: #f4efe6; transition: fill .6s ease; }
.litho-studio.is-dark .round-plate { fill: #ece8e1; }
.round-photo { filter: var(--look); transition: filter .9s ease; }
.studio-round.is-lighting .round-photo { animation: studio-lights-on 1.1s ease .45s backwards; }
.round-rim { fill: none; stroke: var(--frame); stroke-width: 4; stroke-linejoin: round; transition: stroke .6s ease; }
.round-handle, .round-handle-cap { fill: var(--frame); stroke: #0003; stroke-width: 1; transition: fill .6s ease; }
.studio-round.has-photo { cursor: grab; touch-action: none; }
.studio-round.is-dragging { cursor: grabbing; }
.studio-round:focus-visible { outline: 3px solid var(--orange); outline-offset: 6px; border-radius: 12px; }
.studio-chip-icon[data-kind="round-shape"] { width: 20px; height: 20px; border: 0; border-radius: 0; }
.studio-chip-icon[data-kind="round-shape"] svg { display: block; width: 100%; height: 100%; }
.studio-chip-icon[data-kind="round-shape"] path { fill: #c9d3df; stroke: var(--navy); stroke-width: 12; }
@media (prefers-reduced-motion: reduce) {
  .round-body, .studio-round.is-arriving .round-panel, .studio-round.is-lighting .round-photo { animation: none; }
  .round-panel, .round-photo { transition: none; }
}

/* Star map studio: the real sky over the customer's place, drawn on a framed poster. */
.studio-star-wrap[hidden], .studio-clicker-wrap[hidden] { display: none; }
.studio-star-wrap { display: grid; place-items: center; width: 100%; transform: rotateX(calc(var(--tilt-y, 0) * -10deg)) rotateY(calc(var(--tilt-x, 0) * 12deg)); transition: transform .35s ease-out; }
.studio-star-wrap.is-tinting { animation: studio-tint .45s ease; }
.studio-star { --frame: #f3f1ec; height: 300px; max-width: 100%; overflow: visible; filter: drop-shadow(12px 16px 16px #0007); }
.star-frame { fill: var(--frame); stroke: #ffffff30; stroke-width: .4; transition: fill .4s ease; }
.star-paper { fill: #1c1d21; }
.star-lines path { fill: none; stroke: #f4f1e4; stroke-width: .5; stroke-linecap: round; stroke-linejoin: round; }
.star-dots circle { fill: #f4f1e4; }
.star-dots .is-bright { animation: star-twinkle 2.6s ease-in-out infinite alternate; }
.star-text text { fill: #f4f1e4; text-anchor: middle; font: 700 3.4px 'DM Sans', Arial, sans-serif; letter-spacing: .14em; }
.star-text .star-title { font: 600 6.4px Fredoka, Arial, sans-serif; letter-spacing: .04em; }
.star-text .star-coords { font-size: 2.9px; }
.star-text .is-placeholder { opacity: .4; }
.studio-star.is-drawing .star-dots { animation: star-appear .9s ease-out both; }
.studio-star.is-drawing .star-lines path { stroke-dasharray: 1; animation: star-trace 1.6s ease-in-out .35s both; }
@keyframes star-appear { from { opacity: 0; } }
@keyframes star-trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes star-twinkle { to { opacity: .4; } }
.litho-studio[data-kind="star"] .studio-light { display: none; }
.star-search { position: relative; display: grid; gap: 6px; font-weight: 600; }
.star-search small { color: #586675; font-size: 12px; font-weight: 400; }
.star-results { position: absolute; z-index: 5; top: 68px; right: 0; left: 0; max-height: 260px; margin: 0; padding: 6px; overflow-y: auto; list-style: none; border: 1px solid #d9e0e6; border-radius: 12px; background: #fff; box-shadow: 0 14px 30px #091a3324; }
.star-results li { padding: 9px 12px; border-radius: 8px; font-weight: 500; cursor: pointer; }
.star-results li:hover { background: #eef3f6; }
.star-results .star-results-empty { color: #586675; cursor: default; }
.star-results .star-results-empty:hover { background: none; }
@media (max-width: 560px) { .studio-star { height: 262px; } }
@media (prefers-reduced-motion: reduce) {
  .studio-star-wrap.is-tinting, .studio-star.is-drawing .star-dots, .studio-star.is-drawing .star-lines path, .star-dots .is-bright { animation: none; }
}

/* Clicker keychain studio: a true 3D model built from CSS faces. Each key sits on its own block of the base (walls show the
   chosen texture) and carries a sloped keycap with the letter on its dished top. A flat loop on the first block holds the chain
   and split ring, lying on the table. Pointer tilt turns the whole model. --s is one key's width; everything scales from it. */
.studio-clicker-wrap { container-type: inline-size; display: grid; place-items: center; width: 100%; height: 100%; perspective: 1100px; }
.studio-clicker-wrap.is-tinting { animation: studio-tint .45s ease; }
.studio-clicker { --base: #f2a7bd; --n: 3; --s: clamp(28px, calc((100cqw - 32px) / (var(--n) + 2.3)), 84px); --h: calc(var(--s) * .62); --ch: calc(var(--s) * .3); position: relative; margin: calc(var(--s) * .25) 0 0 calc(var(--s) * 1.7); transform-style: preserve-3d; transform: rotateX(calc(42deg + var(--tilt-y, 0) * -14deg)) rotateZ(calc(14deg + var(--tilt-x, 0) * 22deg)); transition: transform .35s ease-out; }
.clicker-row { position: relative; display: flex; transform-style: preserve-3d; }
.clicker-shadow { position: absolute; inset: 6% -3% -10% 1%; border-radius: calc(var(--s) * .25); background: #000; opacity: .5; filter: blur(calc(var(--s) * .16)); transform: translate(calc(var(--s) * .14), calc(var(--s) * .2)); }
/* Keyring: lies flat on the table beside the first block; the loop is a tab moulded onto the block's end. */
.clicker-hang { position: absolute; right: calc(100% - 2px); top: 50%; display: flex; align-items: center; transform-style: preserve-3d; transform: translateY(-50%); }
.clicker-split-ring { width: calc(var(--s) * 1.05); height: calc(var(--s) * 1.05); border-radius: 50%; background: radial-gradient(circle, transparent 0 55%, #6f767e 57%, #dfe3e7 63%, #fff 66%, #b7bec5 72%, #6f767e 77%, transparent 79%); filter: drop-shadow(calc(var(--s) * .06) calc(var(--s) * .08) calc(var(--s) * .05) #0008); }
.clicker-link { width: calc(var(--s) * .28); height: calc(var(--s) * .17); margin: 0 calc(var(--s) * -.06); border-radius: 50%; background: radial-gradient(closest-side, transparent 0 46%, #6f767e 52%, #e6e9ec 66%, #8e959d 88%, transparent 96%); filter: drop-shadow(calc(var(--s) * .04) calc(var(--s) * .05) calc(var(--s) * .03) #0008); }
.clicker-link.is-turned { width: calc(var(--s) * .24); height: calc(var(--s) * .06); background: linear-gradient(#6f767e, #f2f4f6 45%, #8e959d); }
.clicker-tab { width: calc(var(--s) * .34); height: calc(var(--s) * .44); border-radius: 50% 0 0 50%; background: radial-gradient(circle at 48% 50%, transparent 0 calc(var(--s) * .07), color-mix(in srgb, var(--base) 60%, #000) calc(var(--s) * .075) calc(var(--s) * .095), var(--base) calc(var(--s) * .1)); box-shadow: inset calc(var(--s) * .02) calc(var(--s) * .03) 0 #ffffff55; transform: translateZ(calc(var(--h) * .12)); }
.clicker-key { position: relative; flex: none; width: var(--s); height: var(--s); padding: 0; border: 0; background: none; cursor: pointer; transform-style: preserve-3d; }
.clicker-key:focus { outline: none; }
/* A box is four walls (front, right, back, left) turned around the key's centre, plus a top face. The vertical edges are
   rounded like the printed part: each wall stops short of the corner by --r, and three narrow slices (<b>) fill the curve
   to the next wall, shaded between the two walls' light. Keycap walls lean inward (--lean) to a smaller dished top. */
.clicker-base, .clicker-cap, .clicker-base > i, .clicker-cap > i { position: absolute; inset: 0; transform-style: preserve-3d; }
.clicker-base { --bw: var(--s); --r: calc(var(--s) * .16); --wh: var(--h); --lean: -90deg; }
.clicker-cap { inset: 8%; --bw: calc(var(--s) * .84); --r: calc(var(--s) * .17); --wh: calc(var(--ch) * 1.02); --lean: -79deg; transform: translateZ(var(--h)); transition: transform .12s ease; }
.clicker-base > i:nth-of-type(1), .clicker-cap > i:nth-of-type(1) { --shade: .02; --shade2: .26; }
.clicker-base > i:nth-of-type(2), .clicker-cap > i:nth-of-type(2) { --shade: .26; --shade2: .32; transform: rotateZ(-90deg); }
.clicker-base > i:nth-of-type(3), .clicker-cap > i:nth-of-type(3) { --shade: .32; --shade2: 0; transform: rotateZ(180deg); }
.clicker-base > i:nth-of-type(4), .clicker-cap > i:nth-of-type(4) { --shade: 0; --shade2: .02; transform: rotateZ(90deg); }
:is(.clicker-base, .clicker-cap) b { position: absolute; left: calc(var(--bw) - var(--r)); top: calc(var(--bw) - var(--r)); transform-style: preserve-3d; }
:is(.clicker-base, .clicker-cap) b:nth-of-type(1) { --f: .17; transform: rotateZ(-15deg); }
:is(.clicker-base, .clicker-cap) b:nth-of-type(2) { --f: .5; transform: rotateZ(-45deg); }
:is(.clicker-base, .clicker-cap) b:nth-of-type(3) { --f: .83; transform: rotateZ(-75deg); }
:is(.clicker-base, .clicker-cap) :is(i, b)::before { content: ''; position: absolute; height: var(--wh); transform-origin: bottom; transform: rotateX(var(--lean)); backface-visibility: hidden; }
:is(.clicker-base, .clicker-cap) > i::before { left: calc(var(--r) - .5px); right: calc(var(--r) - .5px); bottom: 0; }
:is(.clicker-base, .clicker-cap) b::before { left: calc(var(--r) * -.3); width: calc(var(--r) * .6); top: calc(var(--r) - var(--wh)); }
.clicker-base :is(i, b)::before { background: linear-gradient(rgb(0 0 0 / calc(var(--shade) + (var(--shade2) - var(--shade)) * var(--f, 0))) 0 0), linear-gradient(#ffffff38, transparent 14% 80%, #0000003d), var(--side); }
.clicker-cap :is(i, b)::before { background: linear-gradient(rgb(0 0 0 / calc(var(--shade) + (var(--shade2) - var(--shade)) * var(--f, 0))) 0 0), linear-gradient(color-mix(in srgb, var(--cap) 97%, #fff), color-mix(in srgb, var(--cap) 80%, #000)); }
.clicker-top { position: absolute; inset: 0; border-radius: var(--r); background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--base) 78%, #fff), var(--base) 70%); box-shadow: inset 0 0 0 1px #ffffff59, inset 0 0 calc(var(--s) * .08) #00000026; transform: translateZ(var(--h)); }
/* Keycap top: inset by how far the walls lean in, with the matching smaller corner radius, and gently dished. */
.clicker-face { position: absolute; inset: calc(var(--wh) * .19); display: grid; place-items: center; border-radius: calc(var(--r) - var(--wh) * .19); background: radial-gradient(ellipse at 50% 58%, color-mix(in srgb, var(--cap) 93%, #000), var(--cap) 48%, color-mix(in srgb, var(--cap) 80%, #fff)); box-shadow: inset 0 0 0 1px #ffffff4d; transform: translateZ(var(--wh)); }
.clicker-glyph { display: grid; place-items: center; color: var(--letter); font: 700 calc(var(--s) * .46)/1 Fredoka, Arial, sans-serif; text-shadow: 0 1px 0 #ffffff59; }
.clicker-glyph svg { width: calc(var(--s) * .46); height: calc(var(--s) * .46); fill: currentColor; }
.clicker-key:hover .clicker-cap { transform: translateZ(calc(var(--h) + var(--s) * .04)); }
.clicker-key:is(.is-selected, :focus-visible) .clicker-top { background: var(--orange, #f6a121); box-shadow: inset 0 0 0 1px #ffffff80, 0 0 calc(var(--s) * .18) var(--orange, #f6a121); }
.clicker-key.is-pressed .clicker-cap { animation: clicker-press .32s ease; }
.clicker-key.is-new { animation: clicker-new .45s cubic-bezier(.3, 1.5, .6, 1); }
@keyframes clicker-press { 40% { transform: translateZ(calc(var(--h) - var(--ch) * .55)); } }
@keyframes clicker-new { from { transform: translateZ(calc(var(--s) * 1.6)) scale(.4); } }
/* Body textures: --side paints the base walls, and the same pattern fills each texture's chip. Sizes follow the key
   (--rib, --k), so the pattern looks the same at any size, like the real print. */
:is(.studio-clicker, .studio-chip-icon[data-texture]) { --dark: color-mix(in srgb, var(--base) 84%, #000); --deep: color-mix(in srgb, var(--base) 62%, #000); --lite: color-mix(in srgb, var(--base) 72%, #fff); --side: linear-gradient(var(--base), var(--dark)); }
.studio-clicker { --rib: calc(var(--h) / 7); --k: calc(var(--h) / 4.5); }
.studio-chip-icon[data-texture] { --rib: 4px; --k: 6px; }
:is(.studio-clicker, .studio-chip-icon)[data-texture="ribs"] { --side: repeating-linear-gradient(var(--lite) 0, var(--base) calc(var(--rib) * .25), var(--dark) calc(var(--rib) * .6), var(--deep) calc(var(--rib) * .88), color-mix(in srgb, var(--base) 45%, #000) var(--rib)); }
:is(.studio-clicker, .studio-chip-icon)[data-texture="fluted"] { --side: repeating-linear-gradient(90deg, var(--lite) 0, var(--base) calc(var(--rib) * .3), var(--dark) calc(var(--rib) * .65), var(--deep) calc(var(--rib) * .9), color-mix(in srgb, var(--base) 45%, #000) var(--rib)); }
:is(.studio-clicker, .studio-chip-icon)[data-texture="diamond"] { --side: conic-gradient(from 45deg, var(--lite) 0 25%, var(--base) 0 50%, var(--deep) 0 75%, var(--dark) 0) 0 0 / var(--k) var(--k); }
:is(.studio-clicker, .studio-chip-icon)[data-texture="dots"] { --side: radial-gradient(circle at 42% 38%, var(--lite) 0 9%, var(--base) 20%, var(--deep) 33%, transparent 37%) 0 0 / var(--k) var(--k), var(--dark); }
:is(.studio-clicker, .studio-chip-icon)[data-texture="waves"] { --side: radial-gradient(ellipse 50% 55% at 50% 100%, transparent 0 55%, var(--lite) 60%, var(--base) 72%, var(--deep) 88%, transparent 92%) 0 0 / var(--k) calc(var(--k) * .55), var(--dark); }
.studio-chip-icon[data-texture] { --base: #c3cdd8; width: 24px; height: 16px; border-radius: 4px; background: var(--side); }
/* Column layout: the keys stack top to bottom (each letter still upright) and the keyring hangs from the top key. */
.studio-clicker[data-layout="column"] { --s: clamp(22px, min(calc((100cqw - 40px) / 2.4), calc(290px / (var(--n) + 1.4))), 62px); margin: calc(var(--s) * 1.1) 0 0; transform: rotateX(calc(26deg + var(--tilt-y, 0) * -14deg)) rotateZ(calc(-10deg + var(--tilt-x, 0) * 22deg)); }
.studio-clicker[data-layout="column"] .clicker-row { flex-direction: column; }
.studio-clicker[data-layout="column"] .clicker-hang { right: auto; top: auto; left: 50%; bottom: calc(100% - 2px); flex-direction: column; transform: translateX(-50%); }
.studio-clicker[data-layout="column"] .clicker-link { width: calc(var(--s) * .17); height: calc(var(--s) * .28); margin: calc(var(--s) * -.06) 0; }
.studio-clicker[data-layout="column"] .clicker-link.is-turned { width: calc(var(--s) * .06); height: calc(var(--s) * .24); background: linear-gradient(90deg, #6f767e, #f2f4f6 45%, #8e959d); }
.studio-clicker[data-layout="column"] .clicker-tab { width: calc(var(--s) * .44); height: calc(var(--s) * .34); border-radius: 50% 50% 0 0; background: radial-gradient(circle at 50% 52%, transparent 0 calc(var(--s) * .07), color-mix(in srgb, var(--base) 60%, #000) calc(var(--s) * .075) calc(var(--s) * .095), var(--base) calc(var(--s) * .1)); }
.studio-chip-icon:is([data-kind="keys-row"], [data-kind="keys-column"]) { width: 22px; height: 8px; border: 0; border-radius: 0; background: linear-gradient(90deg, #c9d3df 0 6px, transparent 6px 8px, #c9d3df 8px 14px, transparent 14px 16px, #c9d3df 16px); }
.studio-chip-icon[data-kind="keys-column"] { width: 8px; height: 22px; background: linear-gradient(#c9d3df 0 6px, transparent 6px 8px, #c9d3df 8px 14px, transparent 14px 16px, #c9d3df 16px); }
.litho-studio[data-kind="clicker"] .studio-light { display: none; }
.clicker-editor { display: grid; gap: 14px; }
.clicker-count { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.clicker-count button { width: 34px; height: 34px; border: 1px solid #d9e0e6; border-radius: 50%; background: #fff; color: var(--navy); font: 700 18px/1 'DM Sans', Arial, sans-serif; cursor: pointer; }
.clicker-count button:disabled { opacity: .4; cursor: default; }
.clicker-count output { min-width: 2ch; text-align: center; font: 700 20px Fredoka, Arial, sans-serif; }
.clicker-count small { color: #586675; font-weight: 400; }
.clicker-tiles { display: flex; flex-wrap: wrap; gap: 7px; }
.clicker-tile { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 10px; background: var(--cap); color: var(--letter); font: 700 19px Fredoka, Arial, sans-serif; box-shadow: inset 0 0 0 1px #0000001a, 0 3px 0 color-mix(in srgb, var(--cap) 70%, #000); cursor: pointer; }
.clicker-tile svg { width: 21px; height: 21px; fill: currentColor; }
.clicker-tile.is-selected { outline: 2px solid var(--orange); outline-offset: 2px; }
.clicker-slot { display: grid; gap: 12px; padding: 14px; border: 1px solid #e3e8ec; border-radius: 14px; background: #f8fafb; }
.clicker-char-label { display: grid; gap: 6px; font-weight: 600; }
.clicker-char-label .clicker-char { width: 70px; text-align: center; font: 700 22px Fredoka, Arial, sans-serif; text-transform: uppercase; }
.clicker-symbols { display: flex; flex-wrap: wrap; gap: 8px; }
.clicker-symbols button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid #d9e0e6; border-radius: 10px; background: #fff; cursor: pointer; }
.clicker-symbols button svg { width: 21px; height: 21px; fill: var(--navy); }
.clicker-symbols button[aria-pressed="true"] { border-color: var(--orange); box-shadow: 0 0 0 2px #f6a12133; }
.clicker-colors { display: grid; gap: 10px; }
.clicker-all { justify-self: start; padding: 0; border: 0; background: none; color: var(--navy); font: 600 14px 'DM Sans', Arial, sans-serif; text-decoration: underline; cursor: pointer; }
.clicker-tip { margin: 0; color: #586675; font-size: 13px; }
@media (prefers-reduced-motion: reduce) {
  .studio-clicker-wrap.is-tinting, .clicker-key.is-pressed .clicker-cap, .clicker-key.is-new { animation: none; }
}

/* Show/hide password button (js/password-toggle.js) */
.password-field { position: relative; display: block; width: 100%; }
.password-field input { width: 100%; padding-right: 78px; }
.password-toggle { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); min-width: 60px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--navy2); font: 700 13px 'DM Sans', Arial, sans-serif; letter-spacing: .02em; cursor: pointer; }
.password-toggle:hover { background: #eef2f7; }
.password-toggle:focus-visible { outline: 3px solid var(--orange); outline-offset: 1px; }
.password-field input::-ms-reveal, .password-field input::-ms-clear { display: none; }

/* Order history: Buy again / Make this design again / Need help with this order? (js/orders.js) */
.order-actions { margin-top: 18px; padding-top: 16px; border-top: 1px solid #e3e8ec; }
.order-actions-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.order-buy-again { min-height: 44px; padding: 10px 22px; }
.order-design-again { color: #a8590b; font-weight: 700; }
.order-help { margin-left: auto; min-height: 44px; }
.order-actions-message:empty { display: none; }
.order-actions-message { margin: 10px 0 0; }
@media (max-width: 560px) { .order-help { margin-left: 0; } }

/* ENG/SP language switch (js/i18n.js). It stays in the header bar on phones, beside the cart and ☰ menu. */
.language-switch { display: inline-flex; flex: none; align-items: center; gap: 2px; padding: 3px; border: 1px solid #ffffff59; border-radius: 999px; }
.language-switch button { min-width: 42px; height: 32px; padding: 0 10px; border: 0; border-radius: 999px; background: none; color: inherit; font: 700 12px/1 'DM Sans', Arial, sans-serif; letter-spacing: .05em; cursor: pointer; transition: background-color .2s, color .2s; }
.language-switch button[aria-pressed="true"] { background: var(--orange); color: var(--navy); }
.language-switch button[aria-pressed="false"]:hover { color: var(--orange); }
.language-switch button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.auth-header .auth-home { margin-left: auto; }
@media (max-width: 860px) {
  .has-header-menu > .language-switch { order: 1; margin-left: auto; }
  .has-header-menu > .language-switch ~ .header-cart { margin-left: 0; }
}
/* Login/register pages on phones: logo and ENG/SP on top, "← Back" on its own row below. */
@media (max-width: 600px) {
  .auth-header { flex-wrap: wrap; gap: 0 16px; padding-bottom: 8px; }
  .auth-header .language-switch { order: 1; margin-left: auto; }
  .auth-header .auth-home { order: 2; flex-basis: 100%; margin-left: 0; }
}
@media (max-width: 380px) { .language-switch button { min-width: 36px; padding: 0 7px; } }
@media (max-width: 340px) { .language-switch button { min-width: 32px; padding: 0 5px; font-size: 11px; } }

/* While the Spanish text is swapped in (at most 3 s), the page stays hidden so English does not flash. */
html.i18n-pending body { visibility: hidden; }
/* Only one copy of the policy is shown: the official English text, or the Spanish courtesy translation. */
html[lang="es"] article.policy-document:not([lang="es"]) { display: none; }
html:not([lang="es"]) article.policy-document[lang="es"], html:not([lang="es"]) [data-es-only] { display: none !important; }
.policy-translation-note { margin: 0 0 24px; padding: 16px 18px; border-left: 4px solid var(--orange); border-radius: 12px; background: #fff4e0; color: var(--ink); font-size: 15px; line-height: 1.55; }
.policy-translation-note p { margin: 0 0 10px; }
.policy-translation-note p:last-child { margin-bottom: 0; }
.policy-translation-note button { padding: 0; border: 0; background: none; color: #a8590b; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }

/* Home page category cards: the whole card opens its shop category (the link stretches over the card). */
.card { position: relative; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--navy); font-size: 14px; font-weight: 700; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.card-link:after { content: ''; position: absolute; inset: 0; border-radius: 24px; }
.card-link span { transition: transform .2s ease; }
.card:hover .card-link span, .card-link:focus-visible span { transform: translateX(4px); }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible:after { outline: 3px solid var(--orange); outline-offset: 6px; }

/* Header logo: the navy logo sits on a light tile so it stands out on the dark header bar. */
.brand img, .shop-logo img { width: 64px; height: 64px; padding: 4px; border-radius: 16px; background: #fffaf1; box-shadow: 0 6px 18px #0716294d; object-fit: contain; }
@media (max-width: 700px) { .brand img, .shop-logo img { width: 52px; height: 52px; padding: 3px; border-radius: 13px; } }

/* Phones: the chat button shrinks to its round icon so it covers less of the page, and the footer leaves room for it. */
@media (max-width: 520px) {
  .dreamcraft-chat:not(.is-open) .dreamcraft-chat-launcher { min-height: 0; padding: 6px; }
  .dreamcraft-chat-launcher-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  body > footer { padding-bottom: 76px; }
}

/* Home page "How it works" steps for custom orders, under "Your idea. Made for you." */
.custom-steps { padding: 0 0 80px; }
.custom-steps .kicker { color: var(--yellow); }
.custom-steps ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 18px 0 0; padding: 0; list-style: none; }
.custom-steps li { padding: 24px; border: 1px solid #ffffff1f; border-radius: 20px; background: #ffffff0d; }
.custom-steps li b { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--orange); color: var(--navy); font-size: 17px; }
.custom-steps h3 { margin: 16px 0 6px; font-size: 20px; }
.custom-steps p { margin: 0; color: #c6d1e0; font-size: 14px; line-height: 1.7; }
@media (max-width: 760px) { .custom-steps { padding-top: 44px; padding-bottom: 60px; }.custom-steps ol { grid-template-columns: 1fr; gap: 12px; }.custom-steps li { display: grid; grid-template-columns: 38px 1fr; column-gap: 14px; padding: 18px; }.custom-steps li b { grid-row: span 2; }.custom-steps h3 { margin: 6px 0 4px; } }

/* Home page "Most loved" row: real products with photo, price and Add to cart (js/home-products.js). */
.home-products { padding: 0 0 96px; }
.home-products-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.home-products-heading h2 { margin: 12px 0 0; font: 700 clamp(36px, 5vw, 58px)/1 Fredoka, Arial, sans-serif; }
.home-products-heading h2 em { color: var(--orange); font-style: normal; }
.home-products-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.home-product .shop-product-art { display: grid; text-decoration: none; }
.home-product .shop-product-body { min-height: 0; }
.home-product h3 a { color: inherit; text-decoration: none; }
.home-product .shop-product-price, .home-product .shop-sale-price { margin: 6px 0 14px; }
.shop-add.is-added { background: #2f8f57; }
@media (max-width: 980px) { .home-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .home-products { padding-bottom: 72px; }
  .home-products-heading { display: block; }
  .home-products-heading .button-link { display: inline-flex; margin-top: 16px; }
  .home-products-grid { gap: 12px; }
  .home-product .shop-product-art { min-height: 140px; }
  .home-product .shop-product-art img { height: 140px; }
  .home-product .shop-product-body { padding: 13px; }
  .home-product h3 { font-size: 17px; }
}

/* The product card stays hidden while loading and when the product is not found (its grid display overrode [hidden]). */
.product-page-card[hidden] { display: none; }

/* Product reviews (js/product.js) and the "Rate this item" form on Order history (js/orders.js). */
.review-stars { color: #f5a300; letter-spacing: 2px; }
.product-rating-summary { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 14px; color: var(--navy); font-size: 14px; text-decoration: none; }
a.product-rating-summary:hover span:last-child { text-decoration: underline; }
.product-reviews { max-width: 960px; margin: 40px auto 0; padding: 28px; border: 1px solid #e0e5e9; border-radius: 22px; background: #fff; }
.product-reviews-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px; }
.product-reviews-head h2 { margin: 0; font: 700 28px Fredoka, Arial, sans-serif; }
.product-reviews-head .product-rating-summary { margin: 0; font-size: 16px; }
.product-reviews-list { margin: 18px 0 0; padding: 0; list-style: none; }
.product-review { padding: 16px 0; border-top: 1px solid #edf0f3; }
.product-review-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; color: #586675; }
.product-review-buyer { color: #2f8f57; font-weight: 700; }
.product-review-buyer:before { content: '✓ '; }
.product-review p { margin: 8px 0 0; color: var(--ink, #091a33); line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.product-review .admin-text-button { margin-top: 8px; }
.product-reviews-note { margin: 14px 0 0; color: #7a8794; font-size: 12px; }
.order-review { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; margin-top: 8px; }
.order-review small { color: #586675; }
.order-review-stars { color: #f5a300; letter-spacing: 1px; }
.order-review-thanks { width: 100%; color: #2f8f57 !important; font-weight: 700; }
.order-review-form { display: grid; gap: 10px; width: 100%; padding: 14px; border: 1px solid #e0e5e9; border-radius: 14px; background: #fffaf1; }
.order-review-form textarea { width: 100%; padding: 10px 12px; border: 1px solid #cbd6de; border-radius: 10px; font: 14px 'DM Sans', Arial, sans-serif; resize: vertical; }
.order-review-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.order-review-actions .button { padding: 10px 18px; font-size: 13px; }
.order-review-delete { margin-left: auto; color: #b3261e; }
.order-review-status { margin: 0; color: #b3261e; font-size: 13px; }
.order-review-status:empty { display: none; }
/* Five stars, 1 to 5 left to right (arrow keys move the expected way). The chosen star and every star before it
   light up; while hovering, the hovered star and the ones before it do. */
.review-star-picker { margin: 0; padding: 0; border: 0; }
.review-star-picker legend { margin-bottom: 4px; padding: 0; font-weight: 700; font-size: 14px; }
.review-star-row { display: inline-flex; gap: 2px; }
.review-star-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.review-star-row label { color: #cfd6dd; font-size: 30px; line-height: 1; cursor: pointer; transition: color .15s ease, transform .15s ease; }
.review-star-row:has(input:checked) label { color: #f5a300; }
.review-star-row input:checked + label ~ label { color: #cfd6dd; }
.review-star-row.review-star-row:hover label { color: #f5a300; }
.review-star-row.review-star-row label:hover ~ label { color: #cfd6dd; }
.review-star-row label:hover { transform: scale(1.12); }
.review-star-row input:focus-visible + label { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
@media (max-width: 600px) { .product-reviews { padding: 20px 16px; margin-top: 28px; } .product-reviews-head h2 { font-size: 24px; } }

/* Reviews sit on their own line under the item in Order history. */
.order-history-items .order-review { grid-column: 1 / -1; }
