:root {
  --bg: #21b571;
  --yellow: #ffd600;
  --pink: #ff1f8b;
  --orange: #f3a01d;
}

@font-face {
  font-family: "BlackBoton";
  src: url("/fonts/bb.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--pink);
  font-family: Arial, Helvetica, sans-serif;
  cursor: url("/cursor.ico"), default;
}

body {
  overflow-x: hidden;
}

.shop-shell {
  position: relative;
  min-height: 100vh;
  background: var(--bg);
  overflow: hidden;
}

.shop-shell-content {
  position: relative;
  min-height: 100vh;
  padding-bottom: calc(var(--shop-nav-height) + (var(--shop-promo-size) * 0.7) + 24px);
  overflow: hidden;
}

.shop-shell-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: var(--bg);
}

.shop-shell-frame.frame-current {
  z-index: 1;
}

.shop-shell-frame.frame-incoming {
  z-index: 2;
  transform: translateY(100%);
  will-change: transform;
}

@keyframes blindDrop {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0%);
  }
}

a,
button {
  cursor: url("/cursora.ico"), pointer;
}

.shop-page {
  min-height: 100vh;
  background: var(--bg);
  padding: 24px;
}

.shop-wrap {
  width: min(1240px, 100%);
  margin: 0 auto;
}

.shop-stage {
  position: relative;
  z-index: 1;
}

.shop-stage-inner {
  min-height: 200px;
}

.empty-state,
.product-page-panel,
.product-media-panel {
  background: var(--yellow);
  border-radius: 0 26px 26px 26px;
  padding: 24px;
  box-shadow: 8px 8px 0 rgba(255, 31, 139, 0.95);
}

.empty-state p {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
  color: var(--pink);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  align-items: start;
}

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

.shop-card-link {
  display: block;
  background: var(--yellow);
  border-radius: 0 26px 26px 26px;
  padding: 18px;
  text-decoration: none;
  box-shadow: 8px 8px 0 rgba(255, 31, 139, 0.95);
  transition: transform 120ms ease;
}

.shop-card-link:hover,
.shop-card-link:focus-visible {
  transform: translate(-2px, -2px);
}

.shop-card-media {
  margin-bottom: 14px;
  background: var(--bg);
  border-radius: 0 20px 20px 20px;
  padding: 12px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  box-shadow: 6px 6px 0 rgba(255, 31, 139, 0.95);
}

.shop-card-media img,
.product-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0 10px 10px 10px;
}

.shop-thumb-placeholder,
.thumb-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--yellow);
  color: var(--pink);
  font-family: "BlackBoton", Arial, sans-serif;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 0.9;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 var(--orange);
  border-radius: 0 10px 10px 10px;
  padding: 14px;
}

.thumb-placeholder.large {
  min-height: 420px;
}

.shop-card-copy {
  min-width: 0;
}

.shop-card-category,
.product-category {
  display: inline-block;
  margin-bottom: 10px;
  padding: 8px 12px;
  background: var(--pink);
  color: var(--yellow);
  font-weight: 700;
  border-radius: 0 12px 12px 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 12px;
}

.shop-card-copy h2,
.product-page-panel h1 {
  margin: 0 0 10px 0;
  color: var(--pink);
  font-family: "BlackBoton", Arial, sans-serif;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 rgba(255, 214, 0, 0.95);
  overflow-wrap: anywhere;
}

.shop-card-desc,
.product-short-description p,
.product-description p,
.breadcrumbs {
  margin: 0 0 14px 0;
  color: var(--pink);
  font-size: 17px;
  line-height: 1.4;
}

.shop-card-desc {
  min-height: 2.8em;
}

.shop-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.shop-price,
.detail-price {
  display: inline-block;
  padding: 8px 12px;
  background: var(--pink);
  color: var(--yellow);
  font-weight: 700;
  border-radius: 0 12px 12px 12px;
}

.detail-price {
  margin-bottom: 10px;
}

.shop-stock,
.detail-stock {
  display: inline-block;
  padding: 8px 12px;
  font-weight: 700;
  border-radius: 0 12px 12px 12px;
  box-shadow: 4px 4px 0 rgba(255, 31, 139, 0.95);
}

.shop-stock.in-stock,
.detail-stock.in-stock {
  background: var(--bg);
  color: var(--yellow);
}

.shop-stock.sold-out,
.detail-stock.sold-out {
  background: var(--orange);
  color: var(--pink);
}

.product-page {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
  align-items: start;
}

.product-media-panel {
  padding: 18px;
}

.product-image-frame {
  background: var(--bg);
  border-radius: 0 22px 22px 22px;
  padding: 12px;
  box-shadow: 6px 6px 0 rgba(255, 31, 139, 0.95);
}

.breadcrumbs a {
  font-weight: 700;
}

.buy-panel {
  margin-top: 24px;
}

.buy-button {
  display: inline-block;
  padding: 14px 18px;
  background: var(--bg);
  color: var(--yellow);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  border: 0;
  border-radius: 0 16px 16px 16px;
  box-shadow: 4px 4px 0 rgba(255, 31, 139, 0.95);
  font-family: Arial, Helvetica, sans-serif;
}

.buy-button:hover {
  background: var(--orange);
  color: var(--pink);
}

.buy-button.disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.back-wrap {
  text-align: center;
  padding: 24px 0 20px;
}

.back-wrap a {
  display: inline-block;
  padding: 12px 16px;
  background: var(--yellow);
  border-radius: 0 16px 16px 16px;
  box-shadow: 4px 4px 0 rgba(255, 31, 139, 0.95);
  text-decoration: none;
  font-weight: 700;
  color: var(--pink);
}

.shop-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--shop-nav-height) + (var(--shop-promo-size) * 0.34));
  z-index: 1000;
  pointer-events: none;
}

.shop-bottom-nav-band {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 0;
  height: var(--shop-nav-height);
  background: var(--yellow);
  clip-path: polygon(
    var(--shop-dogear) 0,
    calc(100% - var(--shop-dogear)) 0,
    100% var(--shop-dogear),
    100% 100%,
    0 100%,
    0 var(--shop-dogear)
  );
  pointer-events: none;
}

.shop-bottom-nav-links {
  position: absolute;
  bottom: 14px;
  height: calc(var(--shop-nav-height) - 28px);
  display: flex;
  align-items: center;
  gap: var(--shop-link-gap);
  pointer-events: auto;
  z-index: 2;
}

.shop-bottom-nav-links-left {
  left: 36px;
  right: calc(50% + (var(--shop-promo-size) * 0.5) + 26px);
  justify-content: flex-start;
}

.shop-bottom-nav-links-right {
  left: calc(50% + (var(--shop-promo-size) * 0.5) + 26px);
  right: 36px;
  justify-content: flex-end;
}

.shop-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 62px;
  min-width: 0;
  padding: 0 16px;
  background: var(--yellow);
  border: 4px solid var(--orange);
  border-radius: 0 16px 16px 16px;
  color: var(--pink);
  text-decoration: none;
  font-family: "BlackBoton", Arial, sans-serif;
  font-size: var(--shop-link-font);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-shadow: 3px 3px 0 var(--orange);
}

.shop-nav-link.is-active {
  transform: translateY(-2px);
}

.shop-promo-circle {
  position: absolute;
  left: 50%;
  bottom: calc(var(--shop-nav-height) * 0.5);
  transform: translateX(-50%);
  width: var(--shop-promo-size);
  height: var(--shop-promo-size);
  border-radius: 50%;
  overflow: hidden;
  background: var(--yellow);
  z-index: 3;
  pointer-events: auto;
}

.shop-promo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-nav-link span {
  display: inline-block;
}

.shop-nav-link:hover span,
.shop-nav-link:focus-visible span {
  animation: wiggleY 0.6s ease-in-out infinite;
}

html {
  scrollbar-width: auto;
  scrollbar-color: var(--yellow) var(--bg);
}

html:hover {
  scrollbar-color: var(--orange) var(--bg);
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--yellow);
  border-radius: 0;
  border: none;
}

::-webkit-scrollbar-thumb:hover,
::-webkit-scrollbar-thumb:active {
  background: var(--orange);
}

::-webkit-scrollbar-corner {
  background: var(--bg);
}

@media (max-width: 860px) {
  .product-page {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .shop-page {
    padding: 16px 12px;
  }

.shop-shell-content {
  padding-bottom: 200px;
}

  .shop-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 420px) {
  .shop-card-link,
  .product-page-panel,
  .product-media-panel {
    padding: 14px;
  }

  .shop-card-copy h2,
  .product-page-panel h1 {
    font-size: 30px;
  }
  
  .shop-shell-content {
  padding-bottom: 200px;
}

  .shop-card-desc,
  .product-short-description p,
  .product-description p,
  .breadcrumbs {
    font-size: 15px;
  }
}