:root {
  --store-sheet-width: 1280px;
  --action-height: calc(68px + env(safe-area-inset-bottom));
  --floating-icon-size: clamp(34px, 10vw, 40px);
  --floating-social-height: calc(var(--floating-icon-size) + 12px);
  --cream: #fff9f1;
  --page-background: #ffe2c2;
  --apricot: #ffe5cc;
  --orange: #f45116;
  --ink: #412617;
  --muted: #785c4b;
  --line: #e8d8c9;
  --paper: #fffdfa;
  --soft: #fff0df;
  --radius: 20px;
  --thumb: #ba8160;
  --track: #fff1e3;
  --shadow: 0 12px 40px #4126170a;
}

* {
  box-sizing: border-box;
  scrollbar-color: var(--thumb) var(--track);
  scrollbar-width: thin;
}
html {
  --page-scroll-offset: 115px;
  scrollbar-width: none;
  scroll-behavior: smooth;
  scroll-padding-bottom: var(--action-height);
  scroll-padding-top: var(--page-scroll-offset);
}
body {
  margin: 0;
  padding-bottom: var(--action-height);
  background: #ffae2c;
  color: var(--ink);
  font:
    17px/1.65 "DM Sans",
    sans-serif;
}
.store-sheet {
  width: 100%;
  max-width: var(--store-sheet-width);
  min-height: 100svh;
  margin-inline: auto;
  background: linear-gradient(#fff0d966, #fff0d966), #deac74 url("assets/kraft-fondo.webp") 0 0 / 512px 512px repeat;
}
@media (min-width: 1281px) {
  .store-sheet {
    box-shadow: 0 0 0 1px #fff4e3, 0 12px 36px #41261735;
  }
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:active {
  transform: translateY(1px);
}
:focus {
  outline: none;
}
button:disabled {
  opacity: 0.65;
  cursor: default;
  transform: none;
}
img {
  display: block;
  width: 100%;
  object-fit: cover;
}
h1,
h2,
h3,
.logo {
  font-family: "Nunito", sans-serif;
  line-height: 1.12;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(44px, 4.5vw, 64px);
  font-weight: 1000;
  letter-spacing: -2.2px;
  margin-bottom: 22px;
}
h2 {
  font-size: clamp(27px, 2.6vw, 37px);
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 0;
}
h3 {
  font-size: 20px;
  font-weight: 900;
}
.ui-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
[hidden] {
  display: none;
}
.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 50;
  background: white;
  padding: 10px;
}
.skip:focus {
  top: 10px;
}

/* A compact retail header keeps the product visible on the first screen. */
.announcement {
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--orange);
  color: white;
  padding: 0;
  font-size: 14px;
  letter-spacing: 0.4px;
}
.announcement-window {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.announcement-track {
  display: flex;
  width: max-content;
  animation: shipping-ticker 38s linear infinite;
}
.announcement-group {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-shrink: 0;
  min-width: 100vw;
  gap: 48px;
  padding-right: 48px;
}
.announcement-message {
  font-weight: 600;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 16px;
  padding: 8px 0;
  white-space: nowrap;
}
.announcement .ui-icon {
  width: 12px;
  height: 12px;
}
.announcement:hover .announcement-track {
  animation-play-state: paused;
}
@keyframes shipping-ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
header {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 19px max(28px, calc((100vw - 1256px) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}
.header-inner {
  display: contents;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 40px;
  font-weight: 1000;
  letter-spacing: -2px;
  white-space: nowrap;
}
.logo img {
  width: 240px;
  max-width: 70vw;
  height: auto;
  object-fit: contain;
}
.brand-mark {
  width: 43px;
  height: 43px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand-rays,
.brand-dot {
  color: var(--orange);
  stroke: var(--orange);
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-right: auto;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.desktop-nav button {
  padding: 12px 0;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  order: 4;
}
.account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}
.account .desktop-label {
  display: none;
}
.mobile-menu {
  display: none;
}

/* The approved warm, photograph-led direction with a restrained scalloped edge. */
.hero {
  max-width: 1376px;
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: 1fr 1.07fr;
  background: var(--apricot);
  overflow: hidden;
  position: relative;
  min-height: 510px;
  border-radius: 26px;
}
.hero::after {
  content: "";
  position: absolute;
  height: 12px;
  bottom: -1px;
  left: 0;
  right: 0;
  background: radial-gradient(
      circle at 14px 14px,
      var(--cream) 13px,
      transparent 14px
    )
    0 0 / 28px 20px repeat-x;
  pointer-events: none;
}
.hero-copy {
  align-self: center;
  z-index: 1;
  padding: 56px 40px 56px 64px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 1.8px;
  font-weight: 700;
  margin-bottom: 16px;
}
.eyebrow-line {
  width: 22px;
  height: 1px;
  background: var(--orange);
}
.hero h1 {
  max-width: 515px;
}
.hero h1 span {
  color: var(--orange);
}
.hero-description {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 27px;
}
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  min-height: 50px;
  padding: 13px 24px;
  background: var(--orange);
  border: 1px solid var(--orange);
  border-radius: 28px;
  color: white;
  font-size: 16px;
  font-weight: 700;
  transition:
    background 0.18s,
    box-shadow 0.18s;
}
.primary .ui-icon {
  width: 20px;
  height: 20px;
}
.primary:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
  box-shadow: 0 5px 18px #f4511620;
}
.hero-link {
  display: flex;
  align-items: center;
  width: fit-content;
  gap: 9px;
  margin-top: 16px;
  font-size: 14px;
}
.hero-link .ui-icon {
  width: 16px;
  height: 16px;
}
.hero-photo {
  position: relative;
  min-width: 0;
}
.hero-photo img {
  height: 100%;
  object-position: 52% center;
}
.photo-note {
  position: absolute;
  bottom: 28px;
  right: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  min-height: 106px;
  padding: 15px 20px;
  background: var(--cream);
  transform: rotate(7deg);
  border-radius: 48% 46% 48% 43%;
  font-family: "Nunito", sans-serif;
  font-size: 13px;
  line-height: 1.35;
  box-shadow: 0 4px 20px #4126170a;
}
.photo-note strong {
  font-weight: 900;
}
.photo-note .ui-icon {
  color: var(--orange);
  width: 18px;
  height: 18px;
  margin-top: 5px;
}
.trust {
  display: flex;
  justify-content: center;
  gap: 85px;
  padding: 23px 20px;
  font-size: 14px;
  color: var(--muted);
}
.trust > span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.trust .ui-icon {
  color: var(--orange);
  width: 20px;
  height: 20px;
}

/* Category buttons and product cards share the same quiet paper surfaces. */
.section {
  max-width: 1256px;
  margin: 0 auto;
  padding: 48px 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 27px;
}
.section-head .eyebrow {
  color: var(--muted);
  margin-bottom: 10px;
}
.accent {
  color: var(--orange);
  display: inline-flex;
  margin-left: 10px;
  vertical-align: top;
}
.accent .ui-icon {
  width: 26px;
  height: 26px;
}
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 5px;
  white-space: nowrap;
}
.text-button .ui-icon {
  width: 17px;
  height: 17px;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}
.category {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  padding: 21px 7px 17px;
  background: var(--soft);
  border: 1px solid transparent;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 600;
  transition:
    border-color 0.18s,
    background 0.18s,
    transform 0.18s;
}
.category > .ui-icon {
  width: 31px;
  height: 31px;
  color: var(--orange);
  stroke-width: 1.4;
}
.category-art {
  display: block;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  background-image: url("assets/category-illustrations.webp");
  background-repeat: no-repeat;
  background-size: 300% 300%;
}
.category:hover,
.category[aria-pressed="true"] {
  border-color: var(--orange);
  background: var(--apricot);
}
.category[aria-pressed="true"] {
  color: var(--orange);
}
.category:hover {
  transform: translateY(-2px);
}
.catalog {
  min-height: var(--catalog-tabs-height, 0px);
  padding-top: 25px;
  scroll-margin-top: calc(8px - var(--page-scroll-offset));
}
.catalog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 51px;
  align-items: start;
  gap: 12px;
}
.catalog-main {
  min-width: 0;
}
.catalog-category-tabs {
  position: fixed;
  top: 12px;
  right: max(0px, calc((100vw - var(--store-sheet-width)) / 2));
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding-left: 5px;
  padding-bottom: 5px;
  max-height: calc(100dvh - var(--action-height) - 20px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 240ms;
}
.catalog-category-tabs.is-visible {
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}
@media (max-width: 600px) {
  .catalog-tabs-track {
    position: absolute;
    inset: 6px 0 0 auto;
    z-index: 4;
    pointer-events: none;
  }
  #catalog-tabs {
    position: sticky;
    top: 8px;
    right: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .catalog-category-tabs {
    transition: none;
  }
}
.catalog-category-tabs::-webkit-scrollbar {
  display: none;
}
.catalog-tab {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 46px;
  min-height: 46px;
  padding: 7px 3px;
  border: 0;
  border-radius: 13px 0 0 13px;
  color: #fff;
  font: 900 11px/1.08 Nunito, sans-serif;
  letter-spacing: .05em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  align-self: flex-end;
  padding-right: 9px;
  transform: translateX(100%);
  transition: width 320ms cubic-bezier(.2, 1.65, .45, 1), translate 120ms ease-out,
    transform 240ms ease, visibility 0s linear 240ms;
  visibility: hidden;
}
.catalog-category-tabs .catalog-tab.is-revealed {
  transform: translateX(0);
  visibility: visible;
  transition-delay: 0s;
}
@media (prefers-reduced-motion: reduce) {
  .catalog-category-tabs .catalog-tab,
  .catalog-category-tabs .catalog-tab.is-revealed {
    transition: none;
  }
}
.catalog-tab span {
  writing-mode: vertical-rl;
  rotate: 180deg;
}
#catalog-tabs[data-fitted] .catalog-tab {
  font-size: calc(11px * var(--tab-fit));
  min-height: calc(32px * var(--tab-fit));
  padding-block: calc(5px * var(--tab-fit));
}
@media (prefers-reduced-motion: no-preference) {
  .catalog-tab[aria-pressed="true"] span {
    animation: catalog-label-bounce 340ms ease-out;
  }
}
@keyframes catalog-label-bounce {
  38% { translate: 3px 0; }
  70% { translate: -1px 0; }
}
.catalog-tab[data-category="Chilenas"] { --tab-paper-color: #e51f43; }
.catalog-tab[data-category="Trabajo"] { --tab-paper-color: #009447; }
.catalog-tab[data-category="Otaku"] { --tab-paper-color: #8127df; }
.catalog-tab[data-category="Gamer"] { --tab-paper-color: #0067e8; }
.catalog-tab[data-category="Celebraciones"] { --tab-paper-color: #d91682; }
.catalog-tab[data-category="Humor"] { --tab-paper-color: var(--orange); }
.catalog-tab:hover,
.catalog-tab:active,
.catalog-tab:focus-visible {
  color: #fff;
}
.catalog-tab[aria-pressed="true"] {
  width: 38px;
}
.catalog-tab:active:not([aria-pressed="true"]) {
  translate: 4px 0;
}
.catalog-tab-all {
  min-height: 48px;
  --tab-paper-color: #bb7800;
}
.catalog-tab-all[hidden] {
  display: none;
}
.catalog-tab[data-category="Personalizables"] { --tab-paper-color: #008e92; }
.catalog-count {
  margin: -10px 0 16px;
  color: var(--muted);
  font-size: 14px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.catalog-more {
  display: flex;
  width: max-content;
  min-width: 180px;
  margin: 28px auto 0;
  justify-content: center;
}
.catalog-more[hidden] {
  display: none;
}
.product {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 10px 10px 15px;
  background: var(--paper);
  border: 1px solid #e8d8c999;
  border-radius: 22px;
  box-shadow: 4px 5px 6px -3px #70401f59;
}
.product > .add {
  margin-top: auto;
  flex-shrink: 0;
}
.product-view {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0;
  border-radius: 14px;
}
.product-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 14px;
}
.product-image::after {
  content: "Ver detalles";
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--cream);
  font-size: 14px;
  opacity: 0;
  transform: translateY(3px);
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.product-view:hover .product-image::after,
.product-view:focus-visible .product-image::after {
  opacity: 1;
  transform: none;
}
.tag {
  position: absolute;
  top: 11px;
  left: 11px;
  padding: 4px 10px;
  background: #fff9f1ed;
  border-radius: 20px;
  font-size: 13px;
  letter-spacing: 0.2px;
}
.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 9px;
  margin: 17px 5px 14px;
}
.product-meta h3 {
  font-size: 18px;
  margin: 0 0 5px;
  letter-spacing: -0.3px;
}
.product-meta h3 button {
  padding: 0;
  font: inherit;
  text-align: left;
}
.product-meta p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 100%;
  padding: 9px 13px;
  border: 1px solid var(--orange);
  color: var(--orange);
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  transition:
    background 0.18s,
    color 0.18s;
}
.add-action {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 14px;
  line-height: 1.25;
  white-space: normal;
}
.add-price-inline {
  font-weight: 800;
}
.add:hover {
  background: var(--soft);
}
.add:disabled {
  color: var(--orange);
  background: var(--soft);
  border-color: var(--line);
  opacity: 1;
}

.personal-banner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 65px;
  margin-top: 25px;
  padding: 50px 80px;
  border-radius: 24px;
  background: var(--apricot);
}
.personal-banner h2 {
  font-size: 40px;
}
.personal-banner p:not(.eyebrow) {
  margin: 18px 0 23px;
  font-size: 16px;
  color: var(--muted);
}
.how {
  text-align: center;
  padding-top: 80px;
}
.how > .eyebrow {
  justify-content: center;
  color: var(--muted);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 45px;
  margin-top: 38px;
}
.steps article {
  padding: 10px 25px;
}
.steps article + article {
  border-left: 1px solid var(--line);
}
.steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  margin-bottom: 17px;
  border: 1px solid #dfbda3;
  border-radius: 50%;
  color: var(--orange);
  font-size: 14px;
}
.steps h3 {
  margin-bottom: 10px;
  font-size: 19px;
}
.steps p {
  max-width: 260px;
  margin: auto;
  font-size: 15px;
  color: var(--muted);
}
.faq {
  max-width: 780px;
}
.faq h2 {
  margin-bottom: 25px;
  text-align: center;
}
.faq details {
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.faq summary {
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  color: var(--orange);
  font-size: 21px;
  line-height: 1;
}
.faq details[open] summary::after {
  content: "−";
}
.faq details p {
  color: var(--muted);
  margin: 14px 30px 0 0;
  line-height: 1.8;
}
footer {
  margin: 18px auto 0;
  padding: 0 0 calc(var(--floating-social-height) + 52px + env(safe-area-inset-bottom));
}
.footer-line {
  position: relative;
  z-index: 2;
  isolation: isolate;
  width: calc(100% - 32px);
  max-width: 880px;
  min-height: 68px;
  margin-inline: auto;
  padding: 16px 26px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 2.5vw, 36px);
}
.footer-line > .logo {
  display: block;
  width: 128px;
  line-height: 0;
}
.footer-line > .logo img {
  display: block;
  width: 100%;
  height: auto;
}
.footer-links {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px clamp(16px, 2vw, 30px);
  font-size: 13px;
}
.footer-links > :is(a, button) {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0;
  color: var(--ink);
  white-space: nowrap;
}
.footer-links > :is(a, button):hover {
  color: var(--orange);
}
.footer-line small {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.floating-actions {
  position: fixed;
  right: 12px;
  bottom: calc(8px + env(safe-area-inset-bottom));
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .24s ease, transform .24s ease, visibility 0s .24s;
}
.floating-actions.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}
.floating-actions.is-visible > * {
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .floating-actions {
    transition: none;
  }
}
.back-to-top,
.scene-cart {
  display: grid;
  place-items: center;
  width: var(--floating-social-height);
  height: var(--floating-social-height);
  padding: 0;
  border-radius: 32px;
  background: var(--orange);
  box-shadow: 0 6px 22px #41261721;
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}
.back-to-top-icon {
  position: relative;
  width: 22px;
  height: 24px;
}
.back-to-top-icon::before,
.back-to-top-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 3px;
  border-radius: 3px;
  background: currentColor;
}
.back-to-top-icon::before {
  inset: 4px auto 3px 50%;
  transform: translateX(-50%);
}
.back-to-top-icon::after {
  top: 4px;
  width: 11px;
  height: 11px;
  background: none;
  border-top: 3px solid;
  border-left: 3px solid;
  transform: translateX(-50%) rotate(45deg);
}
.back-to-top:is(:hover, :focus-visible, :active) {
  color: #fff;
}
.social-tabs,
.floating-cart {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 32px;
  background: var(--orange);
  box-shadow: 0 6px 22px #41261721;
}
.social-tabs {
  height: var(--floating-social-height);
}
.floating-cart {
  justify-content: center;
  min-width: 108px;
  height: var(--floating-social-height);
  padding-inline: 12px;
  font-weight: 800;
  white-space: nowrap;
  color: #fff;
}
.floating-cart img {
  filter: brightness(0) invert(1);
}
.social-tabs__link {
  display: grid;
  width: var(--floating-icon-size);
  height: var(--floating-icon-size);
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
}
.social-tabs__link img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
@media (max-width: 600px), (max-height: 760px) {
  #catalog-tabs {
    gap: 2px;
  }
  #catalog-tabs .catalog-tab {
    width: 42px;
    min-height: 32px;
    padding-block: 6px;
    border-radius: 11px 0 0 11px;
    font: 900 11px/1.08 Nunito, sans-serif;
    letter-spacing: .04em;
  }
  #catalog-tabs .catalog-tab[aria-pressed="true"] {
    width: 38px;
  }
}
@media (max-width: 600px) and (max-height: 780px) {
  #catalog-tabs .catalog-tab {
    padding-block: 5px;
    letter-spacing: .04em;
  }
}

/* One native dialog primitive, with named detail, drawer and customization variants. */
dialog {
  width: min(560px, calc(100% - 32px));
  max-height: 90dvh;
  padding: 27px;
  overflow: auto;
  scrollbar-width: none;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 100px #41261733;
}
dialog::backdrop {
  background: #29170e66;
  backdrop-filter: blur(5px);
}
body:has(dialog[open]) {
  overflow: hidden;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 23px;
}
.dialog-head h2 {
  font-size: 27px;
}
#modal[data-mode="cart"] .dialog-head h2 {
  display: inline-flex;
  align-items: center;
}
.cart-title-icon {
  display: inline-block;
  width: 1.568em;
  height: 1.568em;
  margin-inline-start: 0.2em;
  vertical-align: middle;
  transform-origin: center;
  background-color: currentColor;
  mask: url("assets/cart-title.webp") center / contain no-repeat;
}
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 8px;
  border-radius: 50%;
}
.icon:hover {
  background: var(--soft);
}
.icon .ui-icon {
  width: 22px;
  height: 22px;
}
.dialog-copy {
  font-size: 15px;
  color: var(--muted);
}
.full {
  width: 100%;
}
.empty {
  text-align: center;
  padding: 40px 10px;
}
.empty h3 {
  font-size: 24px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
.empty p {
  font-size: 13px;
  color: var(--muted);
  max-width: 320px;
  margin: 0 auto 25px;
}
.free-design-form {
  display: grid;
  gap: 10px;
  margin: 18px auto 0;
  max-width: 360px;
  text-align: left;
}
.free-design-form label {
  font-weight: 800;
}
.cart-design-editor {
  grid-column: 1 / -1;
  margin-top: 8px;
}
.cart-design-editor summary {
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid var(--orange);
  border-radius: 10px;
  color: var(--orange);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.cart-design-editor .free-design-form {
  margin: 10px 0 0;
}
.free-design-form :is(.primary, .free-design-browse) {
  font-size: 15px;
}
.free-design-browse {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--orange);
  border-radius: 999px;
  color: var(--orange);
  font-weight: 700;
}
.free-design-browse:hover {
  background: var(--soft);
}
.free-design-count {
  justify-self: end;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.free-design-form textarea {
  width: 100%;
  min-height: 96px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  resize: none;
  overflow-y: hidden;
}
.cart-row .cart-design-notes {
  white-space: pre-wrap;
}
.empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--orange);
  margin: 0 auto 20px;
}
.empty-icon .ui-icon {
  width: 34px;
  height: 34px;
  stroke-width: 1.3;
}
.notice,
.storage-warning {
  padding: 13px 16px;
  margin: 15px 0;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.7;
}
dialog[data-mode="detail"],
dialog[data-mode="custom"] {
  width: min(860px, calc(100% - 48px));
  padding: 28px;
}
.detail-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  align-items: start;
}
dialog[data-mode="detail"] .dialog-head {
  margin-bottom: 8px;
}
.detail-gallery {
  display: flex;
  gap: 8px;
  align-items: end;
  justify-content: center;
  min-width: 0;
}
.detail-image {
  flex: 0 1 auto;
  width: min(100%, 380px, 52dvh);
  min-width: 0;
  aspect-ratio: 1;
}
.detail-image::after {
  display: none;
}
.detail-image .mug-image {
  position: absolute;
  inset: 0;
  padding: 3%;
}
.detail-photo-caption {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}
.detail-info {
  min-width: 0;
}
.detail-info .eyebrow {
  font-size: 11px;
  margin-bottom: 6px;
}
.detail-description {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}
.detail-price {
  font-size: 30px;
  color: var(--orange);
  font-weight: 700;
  margin: 8px 0;
  line-height: 1.25;
}
.detail-price span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.detail-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 132px), 1fr));
  gap: 8px;
}
.detail-actions .primary {
  min-width: 0;
  min-height: 44px;
  padding: 8px 6px;
  font-size: clamp(12px, 3.5vw, 15px);
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  line-height: 1.2;
}
dialog[data-mode="cart"] {
  width: min(480px, calc(100% - 28px));
  max-height: calc(100dvh - 24px);
  padding: clamp(12px, 3vw, 20px);
}
.cart-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.cart-thumb {
  aspect-ratio: 1;
  align-self: start;
  border-radius: 12px;
}
.cart-items > .cart-row:last-child {
  border-bottom: 0;
}
.cart-row > div:nth-child(2) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  column-gap: 6px;
}
.cart-row h3,
.cart-row p {
  grid-column: 1;
}
.custom-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--apricot);
  color: var(--orange);
}
.custom-thumb .ui-icon {
  width: 37px;
  height: 37px;
  stroke-width: 1.3;
}
.cart-row h3 {
  font-size: 16px;
  overflow-wrap: anywhere;
  align-self: end;
  line-height: 1.2;
  margin: 0 0 2px;
}
.cart-row p {
  font-size: 12px;
  margin: 0 0 5px;
  overflow-wrap: anywhere;
  color: var(--muted);
}
.cart-row p:last-of-type {
  grid-row: 2;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0;
  color: var(--orange);
  white-space: nowrap;
}
.cart-row p.cart-design-notes {
  grid-column: 1 / -1;
  grid-row: 3;
  margin: 6px 0 0;
}
.quantity {
  --quantity-control-size: 38px;
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
}
.quantity button[data-qty] {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 var(--quantity-control-size);
  width: var(--quantity-control-size);
  height: var(--quantity-control-size);
  padding: 0;
  border-radius: 50%;
  background: var(--orange);
  color: white;
  font-size: 0;
}
.quantity button[data-qty]::before,
.quantity button[data-delta="1"]::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 12px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}
.quantity button[data-delta="1"]::after {
  width: 2px;
  height: 12px;
}
.quantity button[data-qty]:hover:not(:disabled) {
  box-shadow: inset 0 0 0 2px #ffffff65;
}
.quantity button[data-qty]:disabled {
  opacity: .5;
}
.quantity input {
  width: 28px;
  min-width: 0;
  height: var(--quantity-control-size);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink);
  text-align: center;
}
.quantity .remove,
.undo-row button {
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid var(--orange);
  border-radius: 10px;
  color: var(--orange);
  background: var(--paper);
  font-size: 12px;
  font-weight: 700;
}
.quantity .remove:hover,
.undo-row button:hover {
  background: var(--soft);
}
.quantity .remove {
  display: inline-grid;
  place-items: center;
  min-height: var(--quantity-control-size);
  margin-inline-start: max(8px, 1vw);
  padding-inline: 9px;
}
.cart-summary {
  padding: 20px 0 0;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 10px;
}
.cart-total + p {
  font-size: 12px;
}
.cart-total > :last-child {
  color: var(--orange);
}
.undo-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-block: 10px;
  flex-shrink: 0;
  padding: 9px 13px;
  border-radius: 10px;
  font-size: 12px;
}
.custom-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 32px;
}
.custom-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  padding: 30px 35px 25px 20px;
  background: var(--apricot);
  border-radius: 18px;
}
.preview-label {
  font-size: 11px;
  letter-spacing: 1.8px;
  color: var(--muted);
  margin-bottom: 40px;
  margin-right: -15px;
}
.cup {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 173px;
  min-height: 180px;
  padding: 20px 18px;
  border-radius: 8px 8px 36px 36px;
  background: linear-gradient(
    90deg,
    #f3ece2,
    #fffefb 25%,
    #fffefb 65%,
    #ecdfd0
  );
  box-shadow:
    0 16px 20px #8b4f2820,
    inset 0 5px 0 #e5d4c3;
  font-family: "Nunito", sans-serif;
  font-weight: 900;
  line-height: 1.3;
  text-align: center;
  isolation: isolate;
}
.cup::before {
  content: "";
  position: absolute;
  top: 29px;
  right: -36px;
  width: 42px;
  height: 70px;
  border: 11px solid #fffcf6;
  border-left-width: 5px;
  border-radius: 0 48% 48% 0;
  z-index: -1;
}
#preview-icon .ui-icon {
  width: 32px;
  height: 32px;
  color: var(--orange);
  stroke-width: 1.3;
  margin: 0 0 8px;
}
#preview-text {
  font-size: 18px;
  overflow-wrap: anywhere;
  max-width: 135px;
}
.cup-signature {
  margin-top: 12px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
}
.preview-caption {
  font-size: 12px;
  color: var(--muted);
  margin: 33px -15px 0 0;
}
.field {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 18px 0;
}
.field input,
.field select {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 7px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  font-size: 15px;
}
.field input::placeholder {
  font-size: 14px;
  color: var(--muted);
}
.field input[aria-invalid="true"] {
  border-color: #a3210e;
}
.field small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.form-error {
  min-height: 20px;
  margin: 0 0 10px;
  color: #a3210e;
  font-size: 12px;
}
.custom-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.custom-price small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.custom-price strong {
  font-size: 20px;
  color: var(--orange);
}
.google-pending {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  font-size: 13px;
}
.google-pending small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
.google-g {
  font-size: 22px;
  font-weight: 700;
}
.pending-pill {
  margin-left: auto;
  padding: 3px 8px;
  background: var(--soft);
  border-radius: 15px;
  color: var(--orange);
  font-size: 11px;
}
.account-tabs {
  display: flex;
  padding: 4px;
  gap: 5px;
  background: var(--soft);
  border-radius: 25px;
  margin: 23px 0 0;
}
.account-tabs button {
  width: 50%;
  min-height: 42px;
  border-radius: 23px;
  font-size: 12px;
}
.account-tabs button[aria-pressed="true"] {
  background: var(--paper);
  color: var(--orange);
  box-shadow: 0 2px 8px #4126170a;
}
.toast {
  position: fixed;
  bottom: calc(var(--action-height) + 10px);
  left: 50%;
  transform: translate(-50%, 8px);
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 12px 22px;
  border-radius: 15px;
  font-size: 14px;
  text-align: center;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.toast,
.notice,
.storage-warning,
.undo-row,
.form-error:not(:empty),
#scene-photo-status,
.tz-aviso {
  background: var(--orange);
  color: #fff;
}
.form-error:not(:empty),
#scene-photo-status,
.tz-aviso {
  padding: 8px 12px;
  border-radius: 10px;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.cart-confetti-burst {
  position: fixed;
  z-index: 21;
  pointer-events: none;
}
.cart-confetti-burst i {
  position: absolute;
  width: 6px;
  height: 9px;
  border-radius: 1px;
}
.cart-flying-mug {
  position: fixed;
  z-index: 1001;
  inset: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  width: 74px;
  height: 74px;
  object-fit: contain;
  pointer-events: none;
}

dialog[data-mode="cart"][open] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
dialog[data-mode="cart"] .dialog-head {
  flex: 0 0 auto;
  margin-bottom: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
dialog[data-mode="cart"] #modal-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
dialog[data-mode="cart"] .cart-items {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--orange) var(--track);
  padding-inline-end: 6px;
}
dialog[data-mode="cart"] #modal-body::-webkit-scrollbar {
  display: none;
}
dialog[data-mode="cart"] .cart-summary {
  flex: none;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 8px 0 0;
}
dialog[data-mode="cart"] .cart-summary .notice {
  margin: 4px 0 8px;
  padding: 6px 10px;
}
dialog[data-mode="cart"] .empty {
  padding: 10px 0 0;
}
dialog[data-mode="cart"] .empty h3 {
  margin: 0 auto 4px;
  font-size: 20px;
}
dialog[data-mode="cart"] .empty p {
  margin: 0 auto 6px;
}
dialog[data-mode="cart"] .empty .free-design-form {
  max-width: none;
  gap: 5px;
  margin-top: 6px;
}
dialog[data-mode="cart"] .empty textarea {
  min-height: 56px;
  max-height: 112px;
  overflow-y: auto;
}

/* Native high-contrast scrollbars remain operable. */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-thumb {
  background: var(--thumb);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--orange);
}
::-webkit-scrollbar-track {
  background: var(--track);
}

@media (max-width: 1430px) {
  .hero {
    margin-left: 24px;
    margin-right: 24px;
  }
  .hero-copy {
    padding-left: 45px;
  }
}
@media (max-width: 1320px) {
  .section {
    margin-left: 32px;
    margin-right: 32px;
  }
  .faq {
    margin-left: auto;
    margin-right: auto;
  }
  header {
    gap: 21px;
  }
  .desktop-nav {
    gap: 18px;
    font-size: 12px;
  }
}
@media (max-width: 1050px) {
  header {
    gap: 20px;
  }
  .desktop-nav a:last-child {
    display: none;
  }
  .hero {
    min-height: 470px;
  }
  .hero-copy {
    padding: 40px 28px;
  }
  h1 {
    font-size: 47px;
  }
  .hero-description {
    font-size: 16px;
  }
  .category {
    font-size: 14px;
  }
  .product-meta {
    flex-direction: column;
  }
  .product-meta h3 {
    font-size: 17px;
  }
  .personal-banner {
    padding: 40px 50px;
  }
  .personal-banner h2 {
    font-size: 34px;
  }
}
@media (max-width: 800px) {
  header {
    gap: 16px;
    padding: 15px 24px;
  }
  .desktop-nav {
    display: none;
  }
  .hero-copy {
    padding: 32px 24px;
  }
  h1 {
    font-size: 39px;
    letter-spacing: -1.5px;
  }
  .hero {
    min-height: 420px;
  }
  .hero-description {
    font-size: 16px;
  }
  .trust {
    gap: 30px;
    font-size: 14px;
  }
  .category-grid {
    gap: 8px;
  }
  .category {
    font-size: 14px;
    padding: 18px 3px;
  }
  .category .ui-icon {
    width: 27px;
    height: 27px;
  }
  .product-grid {
    gap: 14px;
  }
  .product {
    padding: 8px 8px 12px;
    border-radius: 18px;
  }
  .product-meta {
    margin: 12px 3px;
  }
  .product-meta h3 {
    font-size: 16px;
  }
  .personal-banner {
    padding: 32px;
    gap: 30px;
  }
  .personal-banner h2 {
    font-size: 30px;
  }
  .steps {
    gap: 15px;
  }
  .steps article {
    padding: 10px;
  }
  .faq {
    margin-left: 32px;
    margin-right: 32px;
  }
}
@media (max-width: 600px) {
  body {
    padding-bottom: 24px;
  }
  html {
    --page-scroll-offset: 150px;
  }
  .announcement {
    font-size: 13px;
    letter-spacing: 0.3px;
  }
  .announcement-message {
    padding: 8px 0;
  }
  .announcement .ui-icon {
    width: 10px;
    height: 10px;
  }
  header {
    display: block;
    position: sticky;
    top: 0;
    z-index: 4;
    padding: 0;
    box-shadow: 0 4px 16px #41261704;
  }
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 17px 7px;
  }
  .logo {
    font-size: 34px;
    gap: 6px;
  }
  .brand-mark {
    width: 37px;
    height: 37px;
    stroke-width: 2.5;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .header-actions {
    gap: 0;
  }
  .account {
    display: none;
  }
  .desktop-label {
    display: none;
  }
  .hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin: 12px 12px 0;
    border-radius: 21px;
  }
  .hero-copy {
    padding: 30px 22px 24px;
    text-align: center;
  }
  .eyebrow {
    font-size: 12px;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
  }
  .hero-copy > .eyebrow {
    justify-content: center;
    font-size: 12px;
  }
  .eyebrow-line {
    width: 18px;
  }
  h1 {
    max-width: 340px;
    margin: 0 auto 16px;
    font-size: clamp(32px, 9.5vw, 43px);
    line-height: 1.06;
    letter-spacing: -1.6px;
  }
  .hero-description {
    max-width: 300px;
    margin: 0 auto 22px;
    font-size: 16px;
    line-height: 1.7;
  }
  .primary {
    min-height: 48px;
    padding: 12px 20px;
    font-size: 15px;
  }
  .hero .primary {
    width: 100%;
    max-width: 330px;
    gap: 25px;
  }
  .hero-link {
    justify-content: center;
    margin: 13px auto 0;
    font-size: 14px;
  }
  .hero-photo {
    height: 225px;
  }
  .hero-photo img {
    object-position: center 57%;
  }
  .photo-note {
    min-width: 90px;
    min-height: 76px;
    padding: 12px 15px;
    bottom: 17px;
    right: 14px;
    font-size: 12px;
  }
  .photo-note .ui-icon {
    width: 14px;
    height: 14px;
    margin-top: 3px;
  }
  .trust {
    justify-content: space-around;
    gap: 10px;
    padding: 19px 15px 12px;
    font-size: 13px;
  }
  .trust > span {
    gap: 7px;
  }
  .trust > span:first-child {
    display: none;
  }
  .trust .ui-icon {
    width: 17px;
    height: 17px;
  }
  .section {
    margin: 0;
    padding: 29px 19px;
  }
  .section-head {
    align-items: center;
    gap: 10px;
    margin-bottom: 19px;
  }
  h2 {
    font-size: 27px;
    letter-spacing: -0.8px;
  }
  .section-head .eyebrow {
    display: none;
    font-size: 10px;
    letter-spacing: 1.2px;
    margin-bottom: 8px;
  }
  .accent {
    margin-left: 5px;
  }
  .accent .ui-icon {
    width: 20px;
    height: 20px;
  }
  .text-button {
    gap: 5px;
    font-size: 14px;
  }
  .text-button .ui-icon {
    width: 14px;
    height: 14px;
  }
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .category {
    flex-direction: column;
    gap: 5px;
    padding: 10px 5px 14px;
    min-height: 101px;
    border-radius: 11px;
    font-size: 13px;
  }
  .category > .ui-icon {
    width: 23px;
    height: 23px;
    stroke-width: 1.5;
  }
  .category-art {
    width: 65px;
    height: 65px;
  }
  .category:last-child {
    flex-direction: row;
    gap: 9px;
    grid-column: 1 / -1;
    min-height: 44px;
    padding: 10px;
    background: transparent;
    border-color: var(--line);
  }
  .category:last-child[aria-pressed="true"] {
    border-color: var(--orange);
    background: var(--apricot);
  }
  .category:last-child .category-art {
    width: 42px;
    height: 42px;
  }
  .category:last-child .ui-icon {
    width: 18px;
    height: 18px;
  }
  .category:hover {
    transform: none;
  }
  .catalog {
    padding-top: 12px;
    padding-right: 0;
  }
  .catalog-layout {
    grid-template-columns: minmax(0, 1fr) 47px;
    gap: 8px;
  }
  .catalog-category-tabs {
    top: 8px;
    right: 0;
    gap: 3px;
    max-height: calc(100dvh - var(--action-height) - 16px);
  }
  .catalog-tab {
    width: 40px;
    min-height: 40px;
    padding: 6px 8px 6px 2px;
    border-radius: 11px 0 0 11px;
    font-size: 11px;
    letter-spacing: .04em;
  }
  .catalog-tab[aria-pressed="true"] {
    width: 32px;
  }
  .catalog-tab-all {
    min-height: 42px;
  }
  .catalog .section-head {
    align-items: end;
    gap: 10px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px 10px;
  }
  .product {
    padding: 6px 6px 10px;
    border-radius: 16px;
  }
  .product-image,
  .product-view {
    border-radius: 10px;
  }
  .product .product-image {
    aspect-ratio: 1.2;
  }
  .product .mug-image {
    padding: 4%;
  }
  .product-meta {
    margin: 8px 3px 8px;
    gap: 4px;
  }
  .product-meta h3 {
    font-size: 17px;
    line-height: 1.15;
    letter-spacing: -0.4px;
    margin: 0 0 3px;
  }
  .product-meta p {
    font-size: 12px;
    line-height: 1.4;
  }
  .tag {
    display: none;
    font-size: 10px;
    padding: 3px 6px;
    left: 6px;
    top: 6px;
  }
  .product-image::after {
    display: none;
  }
  .add {
    min-height: 44px;
    padding: 6px 9px;
  }
  .add-action {
    gap: 3px;
    font-size: 12px;
  }
  .personal-banner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 19px 0;
    padding: 28px 24px 31px;
    text-align: center;
    border-radius: 20px;
  }
  .personal-banner .eyebrow {
    justify-content: center;
  }
  .personal-banner h2 {
    font-size: 30px;
  }
  .personal-banner p:not(.eyebrow) {
    font-size: 14px;
    margin: 14px 0 22px;
  }
  .personal-banner .primary {
    width: 100%;
  }
  .how {
    padding-top: 45px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 29px;
    text-align: left;
  }
  .steps article {
    position: relative;
    padding: 0 5px 0 64px;
  }
  .steps article + article {
    border: 0;
  }
  .steps span {
    position: absolute;
    left: 0;
    width: 43px;
    height: 43px;
    margin: 0;
  }
  .steps h3 {
    font-size: 18px;
    margin-bottom: 7px;
  }
  .steps p {
    max-width: none;
    font-size: 15px;
  }
  .faq h2 {
    text-align: left;
  }
  .faq details {
    font-size: 16px;
    padding: 22px 0;
  }
  footer {
    margin-top: 15px;
    padding-inline: 0;
  }
  .footer-line {
    min-height: 0;
    padding: 16px 16px 17px;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .footer-line > .logo {
    width: 108px;
  }
  .footer-links {
    width: 100%;
    gap: 0 12px;
    font-size: 12px;
    line-height: 1.2;
  }
  .footer-links > :is(a, button) {
    min-height: 32px;
  }
  .footer-line small {
    font-size: 11px;
  }
  dialog,
  dialog[data-mode="detail"],
  dialog[data-mode="custom"] {
    width: calc(100% - 22px);
    padding: 20px;
    max-height: calc(100dvh - 32px);
    border-radius: 22px;
  }
  .dialog-head {
    margin-bottom: 18px;
    gap: 10px;
  }
  .dialog-head h2 {
    font-size: 24px;
    letter-spacing: -0.7px;
  }
  .dialog-head .icon {
    margin-right: -6px;
  }
  .dialog-copy {
    font-size: 14px;
  }
  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  dialog[data-mode="detail"] {
    padding: 12px 16px;
  }
  .detail-gallery {
    max-width: 100%;
  }
  .detail-image {
    width: min(100%, 340px, 43dvh);
  }
  .detail-photo-caption {
    font-size: 11px;
    margin-top: 8px;
  }
  .detail-info {
    padding-top: 0;
  }
  .detail-info .eyebrow {
    margin-bottom: 5px;
  }
  .detail-description {
    font-size: 14px;
    margin-bottom: 0;
  }
  .detail-price {
    font-size: 28px;
    margin: 8px 0;
  }
  .quantity .remove {
    min-width: 44px;
  }
  .cart-summary {
    padding-bottom: 15px;
  }
  .custom-layout {
    grid-template-columns: 1fr;
    gap: 21px;
  }
  .custom-preview {
    min-height: 260px;
    padding: 20px 35px 15px 20px;
  }
  .preview-label {
    margin-bottom: 20px;
    font-size: 12px;
  }
  .cup {
    min-height: 145px;
    width: 150px;
    padding: 15px;
    border-radius: 8px 8px 30px 30px;
  }
  .cup::before {
    width: 38px;
    height: 58px;
    right: -32px;
    top: 25px;
    border-width: 9px;
    border-left-width: 5px;
  }
  #preview-text {
    font-size: 17px;
    max-width: 120px;
  }
  #preview-icon .ui-icon {
    width: 26px;
    height: 26px;
  }
  .preview-caption {
    margin-top: 22px;
    font-size: 13px;
  }
  .custom-layout .dialog-copy {
    font-size: 14px;
  }
  .field input,
  .field select {
    font-size: 16px;
  }
  .field {
    font-size: 14px;
  }
}
@media (max-width: 480px) {
  .cart-row {
    grid-template-columns: 92px minmax(0, 1fr);
  }
  .cart-row > div:last-child {
    grid-template-columns: minmax(0, 1fr);
  }
  .cart-row .quantity {
    grid-column: 1;
    grid-row: 4;
    margin-top: 6px;
  }
  .quantity {
    --quantity-control-size: 32px;
  }
  .quantity .remove {
    margin-inline-start: auto;
  }
}
@media (max-width: 360px) {
  .cart-row {
    grid-template-columns: 80px minmax(0, 1fr);
    column-gap: 8px;
  }
  .quantity {
    --quantity-control-size: 28px;
    gap: 2px;
  }
  .quantity input {
    width: 23px;
  }
  .quantity .remove {
    padding-inline: 3px;
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none;
    animation: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .announcement-track {
    animation: none;
    transform: none;
    width: 100%;
  }
  .announcement-group {
    min-width: 0;
    width: 100%;
    padding: 8px 18px;
    gap: 0;
  }
  .announcement-message {
    flex-shrink: 1;
    white-space: normal;
    text-align: center;
    padding: 0;
  }
  .announcement-group[aria-hidden="true"],
  .announcement-message[aria-hidden="true"],
  .announcement-toggle {
    display: none;
  }
}
@media (forced-colors: active) {
  * {
    scrollbar-color: auto;
  }
  .primary,
  .add {
    border: 1px solid ButtonText;
  }
}

@media (max-width: 359px) {
  .category {
    flex-direction: column;
    gap: 5px;
    padding: 12px 4px;
    min-height: 75px;
  }
  .category:last-child {
    flex-direction: row;
    min-height: 44px;
  }
}


#preview-icon .category-art {
  width: 58px;
  height: 58px;
  margin-bottom: 5px;
}

/* Approved warm palette logo for the storefront header. */
header .header-logo { display: flex; align-items: center; width: 230px; height: 84px; flex-shrink: 0; }
.header-logo img { display: block; width: 100%; height: auto; }
@media (max-width: 600px) {
 header .header-logo { width: 150px; height: 54px; }
}


.hero-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 42px);
  background: var(--soft);
}

.hero-photo img {
  width: 50%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.product-image,
.cart-thumb,
.detail-alternate {
  background: var(--cream);
}

.mug-image {
  display: block;
  width: 100%;
  height: 100%;
  padding: 8%;
  object-fit: contain;
}

.detail-alternate {
  width: min(82px, 18vw);
  aspect-ratio: 1;
  flex-shrink: 0;
  border-radius: 12px;
}

:is(.detail-image, .detail-alternate, .cart-thumb):has(.modal-mug-image) {
  position: relative;
  display: grid;
  place-items: center;
}
.mug-image-placeholder {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 30%;
  height: 30%;
  color: var(--ink);
  opacity: .24;
  pointer-events: none;
}
.modal-mug-image { opacity: 0; }
.modal-mug-image.image-ready { opacity: 1; }
:has(> .modal-mug-image.image-ready) > .mug-image-placeholder { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .modal-mug-image { transition: opacity 180ms ease-out; }
}


.opening-scene {
  position: relative;
  isolation: isolate;
  --opening-height: clamp(430px, 64svh, 680px);
  height: var(--opening-height);
  overflow: hidden;
  background: #ffae2c;
}

.scene-cart {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  background: #000;
}
.scene-cart[hidden] {
  display: none;
}
.scene-cart img {
  width: 36px;
  height: 36px;
  translate: -1.75px 0;
  filter: brightness(0) invert(1);
}
.scene-brand {
  position: relative;
  z-index: 2;
  width: clamp(149.6px, 20.4vw, 216.75px);
  margin: 0 auto;
  padding-top: 10px;
  pointer-events: none;
}

.scene-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.banner-art,
.banner-viewer,
.banner-viewer .tz-visor {
  position: absolute;
  inset: 0;
}

.banner-viewer canvas {
  display: block;
  width: 100%;
  height: 100%;
}


.banner-viewer {
  --viewer-top: calc(var(--opening-height) * .16);
  --viewer-bottom: calc(var(--opening-height) * .13);
  --viewer-offset: 0px;
  inset: var(--viewer-top) 8% var(--viewer-bottom);
}

.banner-viewer .tz-visor {
  --tz-zoom: .96;
  cursor: grab;
  touch-action: pan-y;
}

.banner-viewer .tz-visor.arrastrando {
  cursor: grabbing;
}

.banner-fallback {
  width: 100%;
  height: 100%;
  padding: 36px;
  object-fit: contain;
}

.banner-art .tz-aviso,
.banner-art .tz-carga {
  position: absolute;
  bottom: 0;
  inset-inline: 12px;
  margin: 0;
  text-align: center;
}

.scene-photo-tabs {
  position: absolute;
  z-index: 1;
  right: 0;
  top: 43%;
  transform: translateY(calc(-1 * clamp(78px, 24svh, 106px) - 2px));
  display: grid;
  gap: 4px;
}
.banner-art.is-expanded {
  position: fixed;
  z-index: 100;
}
.opening-scene:has(.banner-art.is-expanded) {
  z-index: 30;
  overflow: visible;
}
body:has(.banner-art.is-expanded) {
  overflow: hidden;
}
.banner-art:is(:fullscreen, .is-expanded) {
  background: #ffae2c;
  --expanded-scene-scale: 1.14;
  --expanded-viewer-inset: calc((clamp(90px, 16dvh, 135px) + 2dvh) / 2);
}
.banner-art:is(:fullscreen, .is-expanded) .banner-viewer {
  inset: var(--expanded-viewer-inset) 0;
  translate: none;
}
.banner-art:is(:fullscreen, .is-expanded) .scene-brand {
  position: absolute;
  inset-inline: 0;
  width: clamp(179.52px, 24.48vw, 260.1px);
  padding-top: 0;
  top: var(--expanded-brand-bottom, max(60px, calc(50dvh - min(36vw, 34dvh))));
  transform: translateY(-100%);
}
.banner-art:is(:fullscreen, .is-expanded) .tz-visor {
  --tz-zoom: 1;
  touch-action: none;
}
@media (max-width: 800px) and (orientation: portrait),
       (pointer: coarse) and (max-height: 600px) and (orientation: landscape) {
  .banner-art:is(:fullscreen, .is-expanded) {
    --expanded-scene-scale: 1.08;
  }
}
@media (max-width: 800px) and (orientation: portrait) {
  .banner-art:is(:fullscreen, .is-expanded) .scene-brand {
    top: var(--expanded-brand-bottom, max(60px, calc(50dvh - min(56vw, 39dvh))));
  }
}
.banner-art:is(:fullscreen, .is-expanded) .scene-photo-tabs {
  inset: auto 12px max(16px, env(safe-area-inset-bottom));
  transform: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.banner-art:is(:fullscreen, .is-expanded) :is(label.scene-custom, .scene-photo-remove, .scene-photo-feedback) {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  body.scene-switching :is(footer, .floating-actions.is-visible) {
    animation: scene-controls-out 150ms ease-in both;
    pointer-events: none;
  }
  .banner-art:is(:fullscreen, .is-expanded) .scene-photo-tabs {
    animation: scene-buttons-rise 280ms cubic-bezier(.2,.75,.25,1) 650ms both;
  }
  body.scene-switching .banner-art:is(:fullscreen, .is-expanded) .scene-photo-tabs {
    animation: scene-buttons-rise 280ms cubic-bezier(.7,.25,.8,1) reverse both;
    pointer-events: none;
  }
  body:has(.opening-scene.scene-returned) .floating-actions.is-visible {
    animation: scene-buttons-rise 300ms cubic-bezier(.22,.8,.25,1) 710ms both;
  }
  .opening-scene.scene-returned {
    animation: scene-contract 650ms cubic-bezier(.45,0,.25,1) both;
  }
  body:has(.opening-scene.scene-returned) .page-below-hero {
    animation: scene-paper-out 650ms cubic-bezier(.45,0,.25,1) reverse both;
  }
  .opening-scene.scene-returned .banner-viewer {
    overflow: visible;
  }
  body.scene-entering .opening-scene {
    animation: scene-expand 480ms cubic-bezier(.45,0,.25,1) both;
  }
  :is(body.scene-entering, .opening-scene.scene-returned) .banner-art:not(:fullscreen, .is-expanded) .banner-viewer {
    bottom: auto;
    height: calc(var(--opening-height) - var(--viewer-top) - var(--viewer-bottom));
  }
  body.scene-entering .page-below-hero {
    animation: scene-paper-out 480ms cubic-bezier(.45,0,.25,1) both;
  }
  .opening-scene :is(label.scene-custom, .scene-photo-remove) {
    --paper-entry-x: calc(-100% - 8px);
  }
  .opening-scene .scene-fullscreen {
    --paper-entry-x: calc(100% + 8px);
  }
  body.scene-entering .banner-art:not(:fullscreen, .is-expanded) .scene-photo-tabs :is(.scene-custom, .scene-photo-remove) {
    animation: scene-paper-slide 360ms cubic-bezier(.22,.72,.26,1) reverse both;
    pointer-events: none;
  }
  .opening-scene.scene-returned .banner-art:not(:fullscreen, .is-expanded) .scene-photo-tabs :is(.scene-custom, .scene-photo-remove) {
    animation: scene-paper-slide 360ms cubic-bezier(.22,.72,.26,1) 650ms both;
  }
  body.scene-entering .opening-scene .scene-cart {
    animation: scene-logo-descend 360ms cubic-bezier(.22,.72,.26,1) reverse both;
    pointer-events: none;
  }
  .opening-scene.scene-returned .scene-cart {
    animation: scene-logo-descend 360ms cubic-bezier(.22,.72,.26,1) 650ms both;
  }
  @keyframes scene-controls-out {
    from { opacity: 1; }
    to { opacity: 0; }
  }
  @keyframes scene-expand {
    from { height: var(--opening-height); }
    to { height: max(var(--opening-height), 100dvh); }
  }
  @keyframes scene-contract {
    from { height: max(var(--opening-height), 100dvh); }
    to { height: var(--opening-height); }
  }
  @keyframes scene-paper-out {
    from { opacity: 1; translate: 0 0; }
    to { opacity: 0; translate: 0 28px; }
  }
  @keyframes scene-buttons-rise {
    from { opacity: 0; translate: 0 24px; }
    to { opacity: 1; translate: 0 0; }
  }
}

.scene-custom,
.scene-photo-remove {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: clamp(78px, 24svh, 106px);
  padding: 5px 2px;
  transform: rotate(180deg);
  writing-mode: vertical-rl;
  border-radius: 0 14px 14px 0;
  font: 900 10px/1.15 Nunito, sans-serif;
  letter-spacing: .05em;
  text-align: center;
  text-transform: uppercase;
}

.scene-custom {
  color: var(--ink);
}
.scene-fullscreen.scene-custom {
  --tab-paper-color: #ae2528;
  color: #fff;
}

.scene-photo-remove {
  --tab-paper-color: #ae2528;
  color: #fff;
  white-space: nowrap;
}

.catalog-tab,
.scene-photo-tabs :is(.scene-custom, .scene-photo-remove) {
  isolation: isolate;
  background: transparent;
  filter: drop-shadow(0 1px 1px #421a1538);
}

.catalog-tab::before,
.scene-photo-tabs :is(.scene-custom, .scene-photo-remove)::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: var(--tab-paper-color, #fff) url("assets/pestana-papel.webp") center / 100% 100% no-repeat;
  background-blend-mode: multiply;
  mask: url("assets/pestana-papel.webp") center / 100% 100% no-repeat;
  pointer-events: none;
}

.scene-photo-tabs :is(.scene-custom, .scene-photo-remove)::before {
  rotate: 180deg;
  border-radius: 14px 0 0 14px;
}

.banner-art:is(:fullscreen, .is-expanded) .scene-fullscreen[aria-pressed="true"]::before {
  content: none;
}

.scene-photo-remove[hidden] {
  display: none;
}

.scene-photo-tabs button:is(:hover, :focus-visible, :active) {
  color: #fff;
  transform: rotate(180deg);
}

.banner-art:is(:fullscreen, .is-expanded) .scene-photo-tabs :is(.scene-fullscreen, .scene-fullscreen-add) {
  writing-mode: horizontal-tb;
  transform: none;
  width: auto;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: #ae2528;
  color: #fff;
  font: 900 12px/1 Nunito, sans-serif;
  text-transform: uppercase;
  white-space: nowrap;
}

.scene-fullscreen-add:disabled { opacity: .8; }

.scene-custom input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.scene-photo-feedback {
  position: absolute;
  z-index: 2;
  inset: auto 10px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.scene-photo-feedback p {
  margin: 0;
  padding: 6px 9px;
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
  font-size: 12px;
}

@media (max-width: 600px) {
  .opening-scene {
    --mobile-scene-height: clamp(350px, 54svh, 470px);
    --mobile-cut-clearance: 48px;
    --opening-height: calc(var(--mobile-scene-height) + var(--mobile-cut-clearance));
  }

  .scene-photo-tabs {
    top: calc(var(--mobile-scene-height) * .37);
  }

  .scene-photo-tabs :is(.scene-custom, .scene-photo-remove) {
    width: 40px;
    padding: 6px 2px 6px 8px;
    border-radius: 0 11px 11px 0;
    font-size: 11px;
    letter-spacing: .04em;
    white-space: nowrap;
  }
  .scene-photo-tabs .scene-fullscreen {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: pre-line;
  }

  .banner-viewer {
    --viewer-top: calc(var(--mobile-scene-height) * .19);
    --viewer-bottom: var(--mobile-cut-clearance);
    --viewer-offset: -26px;
    inset: calc(var(--viewer-top) + var(--viewer-offset)) 5.5% calc(var(--viewer-bottom) - var(--viewer-offset));
  }

}

.opening-collections {
  position: relative;
  z-index: 1;
  color: var(--ink);
  padding: clamp(20px, 2.4vw, 38px) 0 clamp(36px, 5vw, 80px);
  background: #1d6479 url("assets/papel-azul-vendidas.webp") 0 0 / 180px auto repeat;
  background-blend-mode: soft-light;
}

.opening-collections::after {
  content: "";
  position: absolute;
  inset: auto 0 calc(100% - var(--blue-edge-height) * .53);
  --blue-edge-height: clamp(33px, 4.2vw, 72px);
  height: var(--blue-edge-height);
  background: var(--blue-edge-image, url("assets/rasgado-superior-pc.webp")) center / 100% 100% no-repeat;
  mask-image: linear-gradient(#000 55%, transparent 100%);
  pointer-events: none;
}

.catalog-paper-surface {
  position: relative;
  z-index: 2;
  --catalog-cut-height: clamp(60px, 7vw, 118px);
  --catalog-cut-overlap: calc(var(--catalog-cut-height) * .64);
  --catalog-cut-clearance: calc(var(--catalog-cut-height) - var(--catalog-cut-overlap) + 8px);
  --catalog-cut-image: url("assets/canto-catalogo-todas.webp?v=kraft-nitido");
  --catalog-grain: url("assets/grano-papel-catalogo.svg");
}
.catalog-paper-surface::before,
.catalog-paper-surface::after {
  content: "";
  position: absolute;
  inset: calc(-1 * var(--catalog-cut-overlap)) 0 auto;
  height: var(--catalog-cut-height);
  pointer-events: none;
}
.catalog-paper-surface::before {
  z-index: 1;
  background: var(--catalog-cut-image) center / 100% 100% no-repeat;
}
.catalog-paper-surface::after {
  background: var(--catalog-paper, #e9c496) var(--catalog-grain) 0 var(--catalog-cut-overlap) repeat;
  background-blend-mode: soft-light;
  mask: var(--catalog-cut-mask, url("assets/mascara-canto-catalogo.webp")) center / 100% 100% no-repeat;
}
.catalog-paper-surface {
  background: var(--catalog-paper, #e9c496) var(--catalog-grain) 0 0 repeat;
  background-blend-mode: soft-light;
}
.catalog-paper-surface {
  --catalog-cut-height: clamp(42px, 4.2vw, 72px);
  --catalog-cut-overlap: calc(var(--catalog-cut-height) * .66);
  --catalog-cut-mask: var(--catalog-cut-image);
}
.catalog-paper-surface::before { mask-image: linear-gradient(#000 55%, transparent 100%); }
.catalog-paper-surface[data-category="Chilenas"] {
  --catalog-paper: #a21b3d;
  --catalog-cut-image: url("assets/rasgado-chilenas-pc.webp?v=cartulina-v1");
}
.catalog-paper-surface:not([data-category]), .catalog-paper-surface[data-category="Todas"] {
  --catalog-paper: #e0b683;
  --catalog-cut-image: url("assets/rasgado-todas-pc.webp?v=cartulina-v1");
}
.catalog-paper-surface[data-category="Trabajo"] {
  --catalog-paper: #0e4e12;
  --catalog-cut-image: url("assets/rasgado-trabajo-pc.webp?v=cartulina-v1");
}
.catalog-paper-surface[data-category="Otaku"] {
  --catalog-paper: #632788;
  --catalog-cut-image: url("assets/rasgado-otaku-pc.webp?v=cartulina-v1");
}
.catalog-paper-surface[data-category="Gamer"] {
  --catalog-paper: #023587;
  --catalog-cut-image: url("assets/rasgado-gamer-pc.webp?v=cartulina-v1");
}
.catalog-paper-surface[data-category="Humor"] {
  --catalog-paper: #f25206;
  --catalog-cut-image: url("assets/rasgado-humor-pc.webp?v=cartulina-v1");
}
.catalog-paper-surface[data-category="Celebraciones"] {
  --catalog-paper: #e11652;
  --catalog-cut-image: url("assets/rasgado-celebraciones-pc.webp?v=cartulina-v1");
}
.catalog-paper-surface[data-category="Personalizables"] {
  --catalog-paper: #dc9604;
  --catalog-cut-image: url("assets/rasgado-personalizables-ocre-pc.webp");
}
@media (max-width: 600px) {
  .catalog-paper-surface { --catalog-cut-height: 36px; }
  .catalog-paper-surface[data-category="Chilenas"] { --catalog-cut-image: url("assets/rasgado-chilenas-movil.webp?v=cartulina-v1"); }
  .catalog-paper-surface:not([data-category]), .catalog-paper-surface[data-category="Todas"] { --catalog-cut-image: url("assets/rasgado-todas-movil.webp?v=cartulina-v1"); }
  .catalog-paper-surface[data-category="Trabajo"] { --catalog-cut-image: url("assets/rasgado-trabajo-movil.webp?v=cartulina-v1"); }
  .catalog-paper-surface[data-category="Otaku"] { --catalog-cut-image: url("assets/rasgado-otaku-movil.webp?v=cartulina-v1"); }
  .catalog-paper-surface[data-category="Gamer"] { --catalog-cut-image: url("assets/rasgado-gamer-movil.webp?v=cartulina-v1"); }
  .catalog-paper-surface[data-category="Humor"] { --catalog-cut-image: url("assets/rasgado-humor-movil.webp?v=cartulina-v1"); }
  .catalog-paper-surface[data-category="Celebraciones"] { --catalog-cut-image: url("assets/rasgado-celebraciones-movil.webp?v=cartulina-v1"); }
  .catalog-paper-surface[data-category="Personalizables"] { --catalog-cut-image: url("assets/rasgado-personalizables-ocre-movil.webp"); }
}
.catalog {
  position: relative;
  z-index: 2;
  padding-top: max(25px, var(--catalog-cut-clearance));
}
.opening-collections:not(.cut-ready) + .catalog-paper-surface::before,
.opening-collections:not(.cut-ready) + .catalog-paper-surface::after { visibility: hidden; }
.opening-collections .collections-inner {
  position: relative;
}

.collections-inner {
  max-width: 880px;
  margin-inline: auto;
}

.featured-mug {
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 0;
  font: 800 14px/1.2 Nunito, sans-serif;
  color: inherit;
  scroll-snap-align: start;
}

.featured-mug-photo {
  display: block;
  background: transparent;
}

.featured-mug-photo img {
  filter: drop-shadow(0 4px 2.5px #41261740);
}

.featured-mugs .section-head {
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0 14px;
}

.featured-mugs h2 {
  font-size: clamp(18px, 4vw, 25px);
}

.featured-mugs h2,
.catalog-paper-heading {
  position: relative;
  isolation: isolate;
  padding: .4em .65em;
  filter: drop-shadow(0 2px 2px #50301840);
}

.featured-mugs h2::before,
.catalog-paper-heading::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("assets/papel-crema-rasgado.webp") center / 100% 100% no-repeat;
}

.featured-mug > span:last-child {
  display: none;
}

.catalog-main > .section-head {
  justify-content: center;
  text-align: center;
}

.catalog-paper-heading {
  padding: 10px 16px 12px;
}

.catalog-paper-heading .catalog-count {
  margin: 4px 0 0;
}


.featured-mug {
  flex: 0 0 clamp(114.4px, 28.6vw, 192.4px);
  text-align: center;
}

.featured-mug-photo {
  aspect-ratio: 1.14;
  display: grid;
  place-items: center;
  border-radius: 13px;
}

.featured-mug-viewport {
  overflow: hidden;
  padding: 5px 14px 8px;
  touch-action: pan-y pinch-zoom;
  user-select: none;
}

.featured-mug-viewport .featured-mug { cursor: grab; }
.featured-mug-viewport.is-dragging,
.featured-mug-viewport.is-dragging .featured-mug { cursor: grabbing; }

@media (min-width: 601px) {
  main {
    --desktop-content-width: min(1256px, calc(100% - 128px));
  }
  .page-below-hero > .section,
  .restoration-opening > .section,
  main .collections-inner {
    width: var(--desktop-content-width);
    max-width: none;
    margin-inline: auto;
  }
  main .catalog-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .featured-mugs .section-head {
    margin-inline: 14px;
  }
  .featured-mug-viewport {
    padding-inline: 0;
  }
}

.featured-mug-track {
  display: flex;
  width: max-content;
  animation: featured-mugs-scroll 26.67s linear infinite;
  will-change: transform;
}

.featured-mug-track[data-in-view="false"],
.featured-mug-track[data-page-visible="false"] {
  animation-play-state: paused;
  will-change: auto;
}

.featured-mug-group {
  display: flex;
  flex: none;
  gap: 12px;
  width: max-content;
  padding-right: 12px;
}

@keyframes featured-mugs-scroll {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .featured-mug-viewport {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .featured-mug-track {
    animation: none;
    will-change: auto;
  }

  .featured-mug-group[aria-hidden="true"] {
    display: none;
  }
}

.restoration-opening {
  --tear-depth: clamp(32px, 5vw, 72px);
  position: relative;
  isolation: isolate;
  background: linear-gradient(to bottom,
    transparent 0, #fff3df calc(var(--tear-depth) * .54),
    #fff3df calc(100% - var(--tear-depth) * .54), transparent 100%);
  padding-block: var(--tear-depth);
}

.restoration-opening::before,
.restoration-opening::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: var(--tear-depth);
  background: url("assets/kraft-fibra-fina.webp") center / 100% 100% no-repeat;
  filter: brightness(1.09);
  mask-image: linear-gradient(#000 55%, transparent);
  pointer-events: none;
  z-index: -1;
}

.restoration-opening::before {
  top: -1px;
  transform: rotate(180deg);
}

.restoration-opening::after {
  bottom: -1px;
}

@media (min-width: 901px) {
  .restoration-opening::before,
  .restoration-opening::after {
    background-size: 100% auto;
    background-position: center top;
  }
}

.restoration {
  scroll-margin-top: 24px;
  padding-block: clamp(12px, 2vw, 28px);
}

.restoration > p {
  max-width: 55ch;
  margin: 8px auto 20px;
  text-align: center;
}

.restoration-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 3vw, 28px);
  max-width: 860px;
  margin-inline: auto;
}

.restoration-photos figure,
.restoration-photo-slot {
  position: relative;
  isolation: isolate;
  margin: 0;
  padding: clamp(8px, 2vw, 16px);
  filter: drop-shadow(1px 4px 3px #50301835);
}

.restoration-photos figure::before,
.restoration-photo-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 8px solid transparent;
  border-image: url("assets/papel-crema-rasgado.webp") 38 25 fill / 8px round;
  filter: grayscale(.85) brightness(1.12);
}

.restoration-photos img,
.restoration-photo-slot::after {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #eaddc6;
}

.restoration-photo-slot::after {
  content: "";
}

.restoration-photos figcaption {
  margin-top: 8px;
  font-weight: 700;
}

.order-paper {
  position: relative;
  isolation: isolate;
  padding: clamp(26px, 4vw, 48px) clamp(18px, 4vw, 48px);
  text-align: left;
}

#how-title,
#restoration-title {
  text-align: center;
}

.order-paper::before,
.footer-line::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: solid transparent;
  border-width: 18px 12px;
  border-image: url("assets/papel-crema-rasgado.webp") 38 25 fill / 18px 12px round round;
}

.order-status {
  margin: 10px 0 24px;
  max-width: 55ch;
  color: var(--muted);
}

.order-journey {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 20px 28px;
  padding: 0;
  margin: 0;
}

.order-journey li,
.order-shipping dl > div {
  position: relative;
  isolation: isolate;
  min-width: 0;
  padding: 16px;
  filter: drop-shadow(1px 3px 2px #50301830);
}

.order-journey li::before,
.order-shipping dl > div::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 8px solid transparent;
  border-image: url("assets/papel-crema-rasgado.webp") 38 25 fill / 8px round round;
  filter: grayscale(1) brightness(1.18);
}

.order-illustrations {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
}

.order-illustrations--stacked {
  gap: 14px;
}

.order-journey img {
  display: block;
  width: min(100%, 144px);
  height: auto;
  object-fit: contain;
}

@media (min-width: 801px) {
  .order-journey {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
  }

  .order-journey li {
    display: grid;
    grid-template-columns: minmax(96px, 30%) minmax(0, 1fr);
    align-items: center;
    gap: 16px;
  }

  .order-illustrations { margin: 0; }
  .order-illustrations--stacked img + img { display: none; }

  .order-journey li:last-child {
    grid-column: 1 / -1;
    grid-template-columns: 144px max-content;
    justify-content: center;
  }
}

.order-journey .order-step-label {
  color: #963922;
  font-weight: 900;
  margin-bottom: 4px;
}
 
.order-paper h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.order-journey p,
.order-shipping dd {
  margin: 0;
  line-height: 1.55;
}

.order-shipping {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px dashed #9f7350;
}

.order-shipping dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 12px 24px;
  margin: 8px 0 0;
}

.order-shipping dt {
  font-weight: 800;
}

.order-paper,
.footer-line { filter: drop-shadow(0 4px 6px #50301830); }

.faq .faq-paper {
  padding-inline: clamp(14px, 4vw, 38px);
}
.faq .faq-paper h2 {
  margin-bottom: 18px;
  text-align: center;
}
.faq .faq-paper details {
  position: relative;
  isolation: isolate;
  margin-block: 10px;
  padding: 0;
  border: 0;
  filter: drop-shadow(0 2px 2px #50301825);
}
.faq-paper details::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--faq-note);
  mask-border: url("assets/papel-crema-rasgado.webp") 38 25 fill / 8px round;
  -webkit-mask-box-image: url("assets/papel-crema-rasgado.webp") 38 25 38 25 fill / 8px round;
}
.faq-paper details:nth-of-type(1) { --faq-note: #ffe29f; }
.faq-paper details:nth-of-type(2) { --faq-note: #ffd0b1; }
.faq-paper details:nth-of-type(3) { --faq-note: #f7c5d6; }
.faq-paper details:nth-of-type(4) { --faq-note: #ddcdf4; }
.faq-paper details:nth-of-type(5) { --faq-note: #c6dff8; }
.faq-paper details:nth-of-type(6) { --faq-note: #bde8df; }
.faq-paper details:nth-of-type(7) { --faq-note: #d4eab9; }
.faq-paper details:nth-of-type(8) { --faq-note: #ffedba; }
.faq-paper details:nth-of-type(9) { --faq-note: #e5c9b4; }
.faq-paper details:nth-of-type(10) { --faq-note: #f6bfaf; }
.faq-paper details:nth-of-type(11) { --faq-note: #cbdcca; }
.faq-paper details:nth-of-type(12) { --faq-note: #d3def3; }
.faq-paper summary {
  min-height: 44px;
  padding: 11px 14px;
  gap: 10px;
  font-weight: 750;
}
.faq-paper summary::after {
  color: var(--ink);
}
.faq .faq-paper details p {
  margin: 0;
  padding: 0 14px 14px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.personalizables-cta {
  display: flex;
  justify-content: center;
  text-align: center;
}
.order-journey .personalizables-cta {
  margin-top: 8px;
}
.order-journey .personalizables-cta .primary {
  min-height: 44px;
  padding: 8px 12px;
}
.faq-paper .personalizables-cta {
  padding: 0 14px 14px;
}

.faq-wholesale {
  inline-size: calc(100% - 28px);
  margin: 0 14px 12px;
  border-collapse: collapse;
  table-layout: fixed;
  color: var(--ink);
  font-size: 0.875rem;
  text-align: center;
}
.faq-wholesale caption {
  padding-block-end: 8px;
  font-weight: 800;
}
.faq-wholesale :is(th, td) {
  padding: 6px 3px;
  border-bottom: 1px solid #50301836;
}
@media (max-width: 800px) {
  .order-journey {
    grid-template-columns: 1fr;

  }
  .order-shipping dl { grid-template-columns: 1fr; }
}

.order-notes {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed #9f7350;
}
.order-notes p { margin: 4px 0; }
@media (min-width: 360px) and (max-width: 800px) {
  .order-journey li {
    display: grid;
    grid-template-columns: minmax(72px, 29%) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
  }
  .order-illustrations { margin: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .intro-loading {
    --rays-grow-duration: 3200ms;
    --mug-entrance-delay: 2650ms;
    --mug-entrance-duration: 1500ms;
    --paper-delay: calc(var(--mug-entrance-delay) + var(--mug-entrance-duration));
  }
  .intro-loading .banner-art:not(.scene-entered) .scene-brand {
    visibility: hidden;
  }
  .intro-loading .banner-art:not(.scene-entered) .banner-viewer canvas {
    opacity: 0;
  }
  .intro-loading .scene-entered:not(.scene-entered-with-preview) .banner-viewer canvas,
  .intro-loading .scene-entered-with-preview .scene-preview {
    animation: scene-mug-enter var(--mug-entrance-duration) cubic-bezier(.2,.75,.3,1) var(--mug-entrance-delay) both;
  }
  .intro-loading .page-below-hero:not(:has(.collections-entered)),
  .intro-loading main:not(:has(.collections-entered)) + footer {
    visibility: hidden;
  }
  .intro-loading .opening-scene:not(:has(.scene-entered)) {
    height: max(100dvh, var(--opening-height));
  }
  .intro-loading .opening-scene:has(.scene-entered) {
    animation: paper-rise 650ms cubic-bezier(.22,.8,.25,1) var(--paper-delay) backwards;
  }
  .intro-loading .opening-scene {
    --intro-rise: max(0px, 50svh - var(--opening-height) / 2);
  }
  .intro-loading .opening-scene .banner-art:not(.is-expanded):not(:fullscreen) .banner-viewer {
    bottom: auto;
    top: var(--viewer-top);
    height: calc(var(--opening-height) - var(--viewer-top) - var(--viewer-bottom));
    top: calc(var(--viewer-top) + var(--intro-rise) + var(--viewer-offset));
  }
  .intro-loading .opening-scene .banner-art.scene-entered:not(.is-expanded):not(:fullscreen) .banner-viewer {
    animation: mug-rise 650ms cubic-bezier(.22,.8,.25,1) var(--paper-delay) both;
  }
  .intro-loading .banner-art:not(.scene-entered) .scene-photo-tabs {
    visibility: hidden;
  }
  .intro-loading .opening-scene:not(.scene-returned) .scene-entered:not(.is-expanded):not(:fullscreen) .scene-photo-tabs :is(.scene-custom, .scene-photo-remove) {
    --paper-entry-x: calc(-100% - 8px);
    animation: scene-paper-slide 680ms cubic-bezier(.22,.72,.26,1) calc(var(--paper-delay) + 650ms) backwards;
  }
  .intro-loading .opening-scene:not(.scene-returned) .scene-entered:not(.is-expanded):not(:fullscreen) .scene-photo-tabs .scene-fullscreen {
    --paper-entry-x: calc(100% + 8px);
    animation-delay: calc(var(--paper-delay) + 730ms);
  }
  .intro-loading .banner-art.scene-entered .scene-brand {
    animation: scene-logo-descend 800ms cubic-bezier(.22,.72,.26,1) calc(var(--paper-delay) + 1140ms) backwards;
  }
}
.scene-preview {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(76%, 340px);
  height: 85%;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
}
.scene-preview-active .scene-preview-ready { opacity: 1; }
.scene-preview-active .banner-viewer .tz-visor { visibility: hidden; }
.scene-preview-active .banner-viewer canvas { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .scene-preview, .scene-3d-ready .banner-viewer canvas { transition: opacity 360ms ease, scale 650ms cubic-bezier(.22,.8,.25,1); }
}
@keyframes scene-logo-descend {
  from { transform: translateY(calc(-100% - 16px)); }
  to { transform: translateY(0); }
}
@keyframes scene-mug-enter {
  from { opacity: 0; transform: scale(.12) rotate(-12deg); }
  65% { opacity: 1; transform: scale(.97) rotate(3deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes mug-rise {
  from { top: calc(var(--viewer-top) + var(--intro-rise) + var(--viewer-offset)); }
  to { top: calc(var(--viewer-top) + var(--viewer-offset)); }
}
@keyframes paper-rise {
  from { height: max(100dvh, var(--opening-height)); }
  to { height: var(--opening-height); }
}
@keyframes scene-paper-slide {
  from { translate: var(--paper-entry-x) 0; }
  to { translate: 0 0; }
}

/* El centro del SVG acompaña al visor mediante el mismo movimiento CSS. */
.banner-rays {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 165vmax;
  height: 165vmax;
  translate: -50% -50%;
  pointer-events: none;
  scale: 1;
  transition: scale 650ms cubic-bezier(.22,.8,.25,1), top 650ms cubic-bezier(.22,.8,.25,1);
}
.banner-art:is(:fullscreen, .is-expanded) :is(.banner-rays, .banner-viewer canvas, .scene-preview) {
  scale: var(--expanded-scene-scale);
}
@media (prefers-reduced-motion: no-preference) {
  .banner-rays {
    animation: banner-rays-turn 420s linear infinite;
    animation-play-state: running;
  }
  .intro-loading .banner-rays path {
    transform-origin: 0 0;
    animation: banner-rays-grow var(--rays-grow-duration) cubic-bezier(.42,0,.58,1) both;
  }
  .intro-loading .opening-scene .banner-art.scene-entered:not(.is-expanded):not(:fullscreen) .banner-rays {
    animation-name: banner-rays-turn, banner-rays-rise;
    animation-duration: 420s, 650ms;
    animation-timing-function: linear, cubic-bezier(.22,.8,.25,1);
    animation-iteration-count: infinite, 1;
    animation-delay: 0s, var(--paper-delay);
    animation-fill-mode: none, both;
  }
}
@keyframes banner-rays-grow {
  0%, 12% { transform: scale(0); }
  to { transform: scale(1); }
}
@keyframes banner-rays-turn {
  to { rotate: 1turn; }
}
@keyframes banner-rays-rise {
  to { top: calc((var(--opening-height) + var(--viewer-top) - var(--viewer-bottom)) / 2 + var(--viewer-offset) + var(--mug-center-shift, 0px)); }
}
.banner-art:not(:fullscreen, .is-expanded) .banner-rays {
  position: fixed;
  top: calc((var(--opening-height) + var(--viewer-top) - var(--viewer-bottom)) / 2 + var(--viewer-offset) + var(--mug-center-shift, 0px) + var(--intro-rise, 0px));
  left: 50%;
}
.banner-art:is(:fullscreen, .is-expanded) .banner-rays {
  position: fixed;
  top: calc(50% + var(--mug-center-shift, 0px));
}
.scene-preview-active .banner-rays {
  --mug-center-shift: 0px;
}
.scene-mug-moving .banner-rays {
  transition-property: scale;
}
html.intro-loading,
html.intro-loading body {
  overflow: hidden;
  overscroll-behavior: none;
  background: #ffae2c;
}
@media (prefers-reduced-motion: no-preference) {
  .intro-loading .page-below-hero:has(.collections-entered) {
    animation: reveal-paper-cut 1ms steps(1, end) var(--paper-delay) backwards;
  }
}
@keyframes reveal-paper-cut {
  from { visibility: hidden; }
  to { visibility: visible; }
}

.scene-brand,
.scene-cart,
.banner-art:not(.is-expanded):not(:fullscreen) .scene-photo-tabs :is(.scene-custom, .scene-photo-remove) {
  isolation: isolate;
  filter: drop-shadow(0 2px 2px #41261755);
}

.banner-art:not(.is-expanded):not(:fullscreen) .scene-brand {
  margin-inline: 10px auto;
}

.scene-cart::before,
.banner-art:not(.is-expanded):not(:fullscreen) .scene-photo-tabs :is(.scene-custom, .scene-photo-remove)::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: 0;
  rotate: none;
  background: var(--scene-paper) url("assets/papel-crema-rasgado.webp") center / 100% 100% no-repeat;
  background-blend-mode: multiply;
  mask: url("assets/papel-crema-rasgado.webp") center / 100% 100% no-repeat;
  pointer-events: none;
}

.scene-cart {
  --scene-paper: #ef292c;
  top: -4px;
  left: auto;
  right: 14px;
  width: 53px;
  height: 88px;
  padding-bottom: 31px;
  background: transparent;
  box-shadow: none;
  transform-origin: 50% 0;
  filter: drop-shadow(3px 5px 1px #412617c4);
}
@media (min-width: 1281px) {
  .opening-scene {
    --sheet-side-space: calc((100vw - var(--store-sheet-width)) / 2);
    margin-inline: calc(-1 * var(--sheet-side-space));
  }

  .opening-scene .banner-art:not(.is-expanded, :fullscreen) {
    inset-inline: var(--sheet-side-space);
  }

  .opening-scene > .scene-cart {
    right: calc(var(--sheet-side-space) + 14px);
  }
}

.scene-cart::before {
  /* El borde superior rasgado queda fuera de la portada durante el balanceo. */
  inset-block-start: -12px;
  clip-path: polygon(
    0 0, 100% 0,
    98% 13%, 100% 23%, 97% 34%, 99% 46%, 97% 57%, 99% 69%,
    96% 80%, 98% 91%, 97% 100%,
    86% 94%, 80% 89%, 73% 86%, 66% 81%, 60% 79%, 51% 72%,
    43% 78%, 36% 81%, 31% 85%, 23% 89%, 16% 94%, 10% 96%, 3% 100%,
    1% 92%, 3% 84%, 1% 74%, 3% 63%, 0 51%, 2% 39%, 1% 28%, 3% 16%
  );
  background-size: 108% 116%;
  mask-size: 110% 125%;
  mask-position: center top;
}

.banner-art:not(.is-expanded):not(:fullscreen) .scene-photo-tabs {
  inset: auto -16px 24px;
  transform: none;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  pointer-events: none;
}

.banner-art:not(.is-expanded):not(:fullscreen) .scene-photo-tabs :is(.scene-custom, .scene-photo-remove) {
  grid-row: 2;
  display: grid;
  width: auto;
  min-height: 44px;
  height: auto;
  padding: 9px 16px;
  border-radius: 0;
  writing-mode: horizontal-tb;
  transform: none;
  font: 900 11px/1.08 Nunito, sans-serif;
  letter-spacing: .04em;
  white-space: nowrap;
  color: #fff;
  pointer-events: auto;
  filter: drop-shadow(2px 4px 1px #412617b3);
}

.banner-art:not(.is-expanded):not(:fullscreen) .scene-photo-tabs label.scene-custom {
  --scene-paper: #007e92;
  grid-column: 1;
  padding-inline-start: 34px;
  transform-origin: left center;
}

.banner-art:not(.is-expanded):not(:fullscreen) .scene-fullscreen.scene-custom {
  --scene-paper: #197739;
  grid-column: 3;
  padding-inline-end: 34px;
  transform-origin: right center;
}

.banner-art:not(.is-expanded):not(:fullscreen) .scene-photo-tabs .scene-photo-remove {
  --scene-paper: #b9402d;
  grid-area: 1 / 1;
  padding-inline-start: 34px;
}

.banner-art:not(.is-expanded):not(:fullscreen) .scene-photo-tabs .scene-photo-remove[hidden] {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  html:not(.intro-loading) body:not(.scene-entering) .opening-scene:not(.scene-returned) .scene-cart {
    animation: scene-paper-sway 5.8s ease-in-out infinite;
  }
  html:not(.intro-loading) body:not(.scene-entering) .opening-scene:not(.scene-returned) .banner-art:not(.is-expanded):not(:fullscreen) .scene-photo-tabs :is(label.scene-custom, .scene-fullscreen) {
    animation: scene-paper-sway 6.8s ease-in-out infinite;
  }
  html:not(.intro-loading) body:not(.scene-entering) .opening-scene:not(.scene-returned) .banner-art:not(.is-expanded):not(:fullscreen) .scene-photo-tabs .scene-fullscreen {
    animation-duration: 7.6s;
    animation-direction: reverse;
  }
  @keyframes scene-paper-sway {
    0%, 50%, 100% { rotate: 0deg; }
    25% { rotate: 2deg; }
    75% { rotate: -2deg; }
  }
  .intro-loading .opening-scene:not(:has(.scene-entered)) .scene-cart {
    visibility: hidden;
  }
  .intro-loading .opening-scene:has(.scene-entered) .scene-cart {
    animation: scene-logo-descend 680ms cubic-bezier(.22,.72,.26,1) calc(var(--paper-delay) + 810ms) backwards;
  }
  .collections-entered .featured-mugs h2,
  .page-below-hero:has(.collections-entered) .catalog-paper-heading {
    transform-origin: center top;
    animation: scene-paper-sway 7.2s ease-in-out infinite;
  }
}

@media (max-width: 600px) {
  .restoration-opening::before,
  .restoration-opening::after {
    background-image: url("assets/kraft-fibra-fina-mobile.webp");
  }
}

:is(.detail-actions [data-action="cart"], .floating-cart) {
  position: relative;
}
:is(.detail-actions [data-action="cart"], .floating-cart).cart-impact-added > span {
  opacity: 0;
}
.cart-impact-added::after {
  content: "+1";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.cart-impact-reaction {
  position: fixed;
  inset-inline-end: auto;
  right: auto;
  bottom: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  scrollbar-width: none;
  width: max-content;
  height: max-content;
  max-width: none;
  max-height: none;
  font-family: "Noto Color Emoji", "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
  z-index: 1000;
  font-size: 2rem;
  line-height: 1;
  pointer-events: none;
}

.floating-cart.cart-impact-added > img {
  opacity: 0;
}
.scene-cart.cart-impact-added::after {
  inset: auto -1.5em 0 auto;
  color: var(--orange, #f45116);
  font-size: .65em;
}

.dialog-head h2:has(.cart-title-icon.cart-impact-added)::after {
  content: "+1";
  color: var(--orange);
  margin-inline-start: .35em;
  font-size: .65em;
}
.cart-title-icon.cart-impact-added::after {
  content: none;
}
@media (prefers-reduced-motion: no-preference) {
  :is(.detail-actions [data-action="cart"], .floating-cart) > span,
  :is(.detail-actions [data-action="cart"], .floating-cart)::after {
    transition: opacity 180ms ease, transform 260ms cubic-bezier(.22,.8,.3,1.25);
  }
  :is(.detail-actions [data-action="cart"], .floating-cart).cart-impact-added > span {
    transform: perspective(160px) translateY(-.55em) rotateX(72deg);
  }
  :is(.detail-actions [data-action="cart"], .floating-cart)::after {
    content: "+1";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
    opacity: 0;
    transform: perspective(160px) translateY(.55em) rotateX(-72deg);
  }
  .floating-cart > img {
    transition: opacity 180ms ease;
  }
  :is(.detail-actions [data-action="cart"], .floating-cart).cart-impact-added::after {
    opacity: 1;
    transform: none;
  }
}

.featured-mug-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  scale: 1.07;
}
@media (max-width: 600px) {
  .opening-collections {
    --blue-edge-image: url("assets/rasgado-superior-movil.webp");
    padding-block: 14px 28px;
  }
  .featured-mugs .section-head {
    gap: 6px 12px;
    flex-wrap: wrap;
  }
  .featured-mug-viewport {
    padding-block: 2px 4px;
  }
}


/* The rotating fan is the only page backdrop. */
.store-sheet,
.opening-collections,
.catalog-paper-surface,
.restoration-opening,
.store-sheet footer {
  background: transparent;
  box-shadow: none;
}
.opening-collections::after,
.catalog-paper-surface::before,
.catalog-paper-surface::after,
.restoration-opening::before,
.restoration-opening::after,
.store-sheet footer::before,
.store-sheet footer::after {
  content: none;
}
.restoration-opening { --tear-depth: clamp(16px, 3vw, 36px); }
.restoration-copy {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 24px;
  text-align: center;
}
.restoration-copy p { max-width: 55ch; margin: 8px auto 0; }
.store-sheet footer { padding-top: 0; }

/* A separate paper panel over the fan, with a single sheet of grain. */
.opening-collections .featured-mugs {
  position: relative;
  isolation: isolate;
  padding-block: clamp(18px, 3vw, 34px);
}
.featured-mugs::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: #145b72 url("assets/papel-calipso-referencia.png") center / 100% 100% no-repeat;
  clip-path: polygon(0 1%, 5% 0, 9% 1%, 14% .4%, 20% 1.3%, 27% .4%, 34% 1%, 40% 0, 46% .9%, 53% .4%, 60% 1.4%, 67% .4%, 74% 1%, 81% 0, 90% 1%, 96% .3%, 100% 1%, 99.7% 44%, 100% 99%, 95% 98.8%, 89% 100%, 81% 99%, 73% 99.6%, 64% 98.7%, 56% 100%, 48% 99%, 41% 99.8%, 34% 98.7%, 27% 99.7%, 19% 99%, 13% 100%, 8% 98.8%, 0 99%, .3% 60%);
}

@media (min-width: 901px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(14px, 1.6vw, 24px);
  }
}

@media (max-width: 600px) {
  .banner-art:not(.is-expanded):not(:fullscreen) .scene-brand {
    margin-inline: auto;
    width: min(42%, 170px);
    padding-top: max(12px, env(safe-area-inset-top));
  }
  .banner-art:is(.is-expanded, :fullscreen) .scene-brand {
    top: max(76px, calc(var(--expanded-brand-bottom, 120px) - 60px));
  }
}
