body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  box-sizing: border-box;
  margin: 0;
  padding: 28px clamp(18px, 5vw, 72px);
  background-color: black;
  font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, Arial Sans, Helvetica, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

button,
input {
  font: inherit;
}

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

.donut-background {
  position: fixed;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.18;
  pointer-events: auto;
}

.donut-hint {
  position: fixed;
  z-index: 3;
  right: 0;
  bottom: 32px;
  left: 0;
  margin: 0;
  color: #fff;
  font-size: 0.95rem;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 500ms ease, transform 500ms ease, visibility 0s linear 500ms;
  pointer-events: none;
}

.donut-focus .donut-hint {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

.donut-focus .shop-main,
.donut-focus .cart-dialog,
.donut-focus .site-footer {
  opacity: 0;
  transform: perspective(1200px) rotateX(16deg) rotateY(-9deg) scale(0.86) translate3d(0, 32px, -120px);
  pointer-events: none;
}

.donut-focus .cart-dialog,
.donut-focus .site-footer {
  transition: opacity 700ms ease, transform 1100ms cubic-bezier(0.16, 1, 0.3, 1);
}

.donut-focus::before,
.donut-focus::after {
  opacity: 0;
  transition: opacity 500ms ease;
}

.donut-focus .cursor-invert {
  z-index: 4;
}

.introo .donut-background {
  visibility: hidden;
}

.ambient-blur {
  position: fixed;
  z-index: 1;
  inset: 0;
  pointer-events: none;
}

.shop,
.shop * {
  cursor: none !important;
}

.cursor-invert {
  position: fixed;
  z-index: 10;
  top: var(--cursor-y, 50vh);
  left: var(--cursor-x, 50vw);
  width: 24px;
  height: 32px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='32' viewBox='0 0 24 32'%3E%3Cpath d='M2 1v27l6.7-6.4 4.1 9 4.1-1.9-4.2-8.9 9.2-.1L2 1z' fill='white' stroke='black' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat;
  background-size: contain;
  transform: translate(-2px, -1px);
  mix-blend-mode: difference;
  pointer-events: none;
}

body.cursor-outside .cursor-invert {
  visibility: hidden;
}

body::before,
body::after {
  position: fixed;
  z-index: -2;
  content: "";
  pointer-events: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  filter: blur(40px);
}

body::before {
  top: var(--cursor-y, 50vh);
  left: var(--cursor-x, 50vw);
  width: 70px;
  height: 60px;
  transform: translate(-50%, -50%);
  border-color: rgba(245, 247, 250, 0.45);
  background: rgba(235, 239, 245, 0.32);
  box-shadow: 0 0 55px 32px rgba(235, 239, 245, 0.24), 55px 45px 65px rgba(255, 255, 255, 0.18);
  opacity: 0.82;
  transition: none;
  animation: glow-pulse 3s ease-in-out infinite alternate;
}

body::after {
  right: 8%;
  bottom: 7%;
  width: 300px;
  height: 300px;
  box-shadow: -80px -60px 100px rgba(240, 243, 248, 0.13);
}

@keyframes glow-pulse {
  from { opacity: 0.65; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none;
  }
}

.shop {
  color: rgb(255, 255, 255);
}

.glass-panel {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: background-color 700ms ease, border-color 700ms ease;
}

body.persistent-transparency .glass-panel {
  border-color: rgba(255, 255, 255, 0.035);
  background-color: rgba(255, 255, 255, 0.025);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 76px;
  padding: 14px 20px;
}

.bag-button {
  position: relative;
}

.bag-count {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 11px;
}

.shop-main {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: calc(100vh - 132px);
  margin-top: 20px;
  align-content: center;
  justify-items: center;
  gap: 24px;
  transform-style: preserve-3d;
  transition: opacity 700ms ease, transform 1100ms cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 1100ms;
}

.shop-title-card {
  display: flex;
  width: min(1040px, 100%);
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(20px, 4vw, 34px) clamp(24px, 5vw, 52px);
  text-align: left;
}

.shop-title-card h1 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.06em;
}

.intro-panel {
  display: flex;
  width: min(760px, 100%);
  min-height: 340px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: clamp(36px, 8vw, 76px);
  text-align: center;
  animation: intro-arrive 900ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.intro-title {
  margin: 0;
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.06em;
}

.intro-copy {
  min-height: 1.6em;
  margin: 0;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 1.6;
}

.intro-copy::after {
  content: "";
  display: inline-block;
  height: 1em;
  margin-left: 3px;
  border-left: 1px solid currentColor;
  vertical-align: -0.12em;
  animation: caret-blink 850ms steps(2, start) infinite;
}

.enterr {
  display: grid;
  width: 52px;
  height: 52px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  color: rgb(255, 255, 255);
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  animation: intro-button-in 450ms ease-out both;
}

.enterr .material-symbols-outlined {
  font-size: 24px;
}

.introo .site-header,
.introo .shop-title-card,
.introo .shop-panel,
.introo .site-footer {
  display: none;
}

.introo .shop-main {
  min-height: calc(100vh - 56px);
}

.enter .intro-panel {
  display: none;
}

@keyframes intro-arrive {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes intro-button-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes caret-blink {
  to { visibility: hidden; }
}

.shop-panel {
  display: flex;
  width: min(1040px, 100%);
  flex-direction: column;
  gap: 28px;
  padding: clamp(24px, 5vw, 52px);
}

.shop-heading {
  text-align: center;
}

.shop-heading h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.06em;
}

.shop-heading p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.catalog-tools {
  display: grid;
  gap: 16px;
}

.search-wrap {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.search-wrap .material-symbols-outlined {
  font-size: 20px;
  opacity: 0.7;
}

.search-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  color: inherit;
  background: transparent;
}

.search-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-button,
.add-button,
.quantity-button,
.remove-button {
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: inherit;
  background: rgba(255, 255, 255, 0.06);
}

.category-button {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
}

.category-button.active {
  background: rgba(255, 255, 255, 0.16);
}

.catalog-status {
  min-height: 1em;
  margin: -12px 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 14px;
}

.product-card {
  display: flex;
  min-height: 176px;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.product-category {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  text-transform: lowercase;
}

.product-card h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 500;
}

.product-card p:not(.product-category) {
  margin: 8px 0 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.5;
}

.product-buy-row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.add-button {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 12px;
}

.add-button:hover,
.category-button:hover,
.quantity-button:hover,
.remove-button:hover,
.icon-button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.icon-button {
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  color: rgb(255, 255, 255);
  background: rgba(255, 255, 255, 0.06);
}

.icon-button .material-symbols-outlined {
  font-size: 22px;
}

#cart {
  width: min(520px, calc(100% - 32px));
  max-width: none;
  max-height: min(80vh, 700px);
  margin: auto;
  padding: 28px;
  overflow: auto;
  color: inherit;
}

#cart::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

#cart h2 {
  margin: 4px 58px 24px 0;
  font-size: 1.6rem;
  font-weight: 500;
}

.close-button {
  float: right;
}

.cart-items {
  display: grid;
  gap: 12px;
}

.cart-empty {
  margin: 0;
  padding: 22px 0;
  color: rgba(255, 255, 255, 0.7);
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-item-name {
  margin: 0;
  font-weight: 500;
}

.cart-item-price {
  color: rgba(255, 255, 255, 0.72);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quantity-button,
.remove-button {
  min-width: 30px;
  min-height: 30px;
  border-radius: 9px;
}

.remove-button {
  padding: 0 9px;
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-picker {
  position: relative;
  margin-top: 18px;
}

.payment-picker[hidden],
.payment-dropdown-menu[hidden] {
  display: none;
}

.payment-type-label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.payment-dropdown-toggle {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: inherit;
  background: #211d29;
  text-align: left;
}

.payment-dropdown-toggle .material-symbols-outlined {
  font-size: 20px;
}

.payment-dropdown-menu {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: calc(100% + 8px);
  left: 0;
  max-height: 280px;
  padding: 10px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: #211d29;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.payment-search-wrap {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.payment-search-wrap .material-symbols-outlined {
  font-size: 18px;
  opacity: 0.7;
}

.payment-search-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  color: inherit;
  background: transparent;
}

.payment-option-group {
  display: grid;
  gap: 3px;
  margin-top: 10px;
}

.payment-group-label {
  padding: 4px 8px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.payment-option {
  min-height: 36px;
  padding: 0 9px;
  border: 0;
  border-radius: 8px;
  color: inherit;
  background: transparent;
  text-align: left;
}

.payment-option:hover,
.payment-option[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.12);
}

.payment-search-status {
  margin: 8px 4px 2px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
}

.checkout-button {
  width: 100%;
  min-height: 44px;
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: inherit;
  background: rgba(255, 255, 255, 0.08);
}

.checkout-popup {
  width: min(420px, calc(100% - 32px));
  max-width: none;
  margin: auto;
  padding: 28px;
  color: inherit;
}

.checkout-popup::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.checkout-popup h2 {
  margin: 4px 58px 16px 0;
  font-size: 1.5rem;
  font-weight: 500;
}

.checkout-popup p {
  line-height: 1.6;
}

.checkout-popup a {
  color: #fff;
  text-decoration: underline;
}

.site-footer {
  min-height: 0;
}

.easter-egg-toast {
  position: fixed;
  z-index: 20;
  right: 20px;
  bottom: 20px;
  max-width: min(360px, calc(100vw - 40px));
  max-height: calc(50vh - 30px);
  overflow: auto;
  margin: 0;
  padding: 13px 18px;
  border: 1px solid #fff;
  border-radius: 16px;
  color: #fff;
  background: #000;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  pointer-events: none;
}

.easter-egg-toast[hidden] {
  display: none;
}

.easter-egg-toast-secondary {
  bottom: 110px;
}

@media (max-width: 560px) {
  body {
    padding: 16px;
  }

  .site-header {
    min-height: 64px;
  }

  .shop-main {
    min-height: calc(100vh - 96px);
  }

  .shop-panel,
  .shop-title-card,
  .intro-panel {
    border-radius: 20px;
  }

  .shop-panel {
    padding: 22px 16px;
  }

  .intro-panel {
    min-height: 280px;
  }

  .introo .shop-main {
    min-height: calc(100vh - 32px);
  }

  #cart {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-panel,
  .icon-button {
    transition: none;
  }

  .intro-panel,
  .intro-copy::after,
  .enterr {
    animation: none;
  }
}
