.brand-mark { padding: 0; overflow: hidden; background: transparent; box-shadow: none; }
.brand-mark svg { width: 31px; height: 31px; display: block; }
.catalog-search { min-width: min(240px, 100%); }
.catalog-search input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  background: #fff;
}
.category-tabs { margin: 0 0 18px; }
.product-photo { aspect-ratio: 1 / 1; height: auto; overflow: hidden; background: #e8eef1; }
.product-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; transition: opacity .25s; }
.product-photo img.is-loaded { opacity: 1; }
.product-card:hover img { transform: none; }
.card-stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 3px;
}
.card-stepper b { min-width: 22px; text-align: center; font-size: 14px; }
.card-stepper button {
  min-width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: #f4f7fa;
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  box-shadow: none;
}
.card-stepper .add-button { background: var(--coral); color: #fff; min-width: 34px; width: 34px; padding: 0; }
.cart-item img { object-fit: cover; background: #eef3f5; }
.back-top {
  position: fixed;
  z-index: 15;
  left: 14px;
  bottom: 96px;
  min-width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #17202b;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: .2s;
}
.back-top.show { opacity: 1; pointer-events: auto; }
.mascot {
  position: fixed;
  z-index: 16;
  right: 14px;
  bottom: 92px;
  width: 104px;
  border: 0;
  background: transparent;
  padding: 0;
  filter: drop-shadow(0 12px 18px rgba(23, 32, 43, .18));
}
.mascot svg { width: 104px; height: auto; display: block; animation: mascot-float 3.2s ease-in-out infinite; }
.mascot-bubble {
  position: absolute;
  right: 96px;
  bottom: 70px;
  min-width: 128px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #17202b;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: .25s;
  white-space: nowrap;
}
.mascot.speak .mascot-bubble { opacity: 1; transform: none; }
.mascot.happy svg { animation: mascot-bounce .45s ease; }
.mascot.sad svg { animation: mascot-shake .4s ease; }
.pig-tail { transform-origin: 172px 150px; animation: tail-wag .8s ease-in-out infinite; }
.pig-snack { transform-origin: 158px 158px; animation: snack-bob 1.6s ease-in-out infinite; }
@keyframes mascot-float { 50% { transform: translateY(-6px); } }
@keyframes mascot-bounce { 30% { transform: translateY(-14px) scale(1.05); } 100% { transform: none; } }
@keyframes mascot-shake { 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
@keyframes tail-wag { 50% { transform: rotate(18deg); } }
@keyframes snack-bob { 50% { transform: translateY(-4px) rotate(-8deg); } }
@media (max-width: 760px) {
  .catalog-search { width: 100%; }
  .mascot { right: 8px; bottom: 86px; width: 86px; }
  .mascot svg { width: 86px; }
  .mascot-bubble { right: 78px; font-size: 11px; }
  .back-top { left: 8px; bottom: 86px; }
}
@media (prefers-reduced-motion: reduce) {
  .mascot svg, .pig-tail, .pig-snack { animation: none; }
}
html.storefront body:not(.shop-ready) { overflow: hidden; }
html.storefront body:not(.shop-ready) main,
html.storefront body:not(.shop-ready) .site-header,
html.storefront body:not(.shop-ready) .mascot,
html.storefront body:not(.shop-ready) .mobile-cart-bar,
html.storefront body:not(.shop-ready) .back-top { visibility: hidden; pointer-events: none; }
.building-switch {
  max-width: 148px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(23, 32, 43, .12);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.building-gate {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 28px 16px 36px;
  overflow: auto;
  background:
    radial-gradient(circle at 12% 8%, rgba(242, 95, 92, .18), transparent 30%),
    radial-gradient(circle at 88% 0%, rgba(46, 186, 198, .18), transparent 28%),
    rgba(245, 247, 251, .94);
  transition: opacity .28s ease, visibility .28s ease;
}
html.storefront body.shop-ready .building-gate,
.building-gate.is-leaving { opacity: 0; visibility: hidden; pointer-events: none; }
.building-gate-card { width: min(760px, 100%); }
.building-gate-card h2 { margin: 0; font-size: clamp(36px, 6vw, 64px); letter-spacing: -1px; }
.building-gate-card > p:last-of-type { max-width: 460px; color: var(--muted); }
.building-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 22px; }
.building-choice {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 92px;
  padding: 14px;
  border: 1px solid rgba(23, 32, 43, .08);
  border-radius: 18px;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 16px 40px rgba(32, 55, 80, .08);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  animation: building-rise .45s ease both;
}
.building-choice:hover,
.building-choice.is-chosen { transform: translateY(-3px); border-color: rgba(242, 95, 92, .45); }
.building-choice.is-current { border-color: rgba(46, 186, 198, .7); }
.building-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: #17202b;
  color: #fff;
  font-weight: 700;
}
.building-copy { display: grid; gap: 4px; min-width: 0; }
.building-copy strong,
.building-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.building-copy small { color: var(--muted); font-weight: 600; }
.building-go { color: var(--coral, #f25f5c); font-size: 13px; font-weight: 700; }
.building-empty { padding: 22px; border-radius: 16px; background: #fff; color: var(--muted); }
@keyframes building-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-card { min-width: 0; }
  .product-bottom { gap: 6px; }
  .product-bottom strong { font-size: 14px; }
  .card-stepper button { min-width: 28px; width: 28px; height: 28px; padding: 0; }
  .building-switch { max-width: 28vw; padding: 0 8px; font-size: 12px; }
  .building-choice { grid-template-columns: auto 1fr; min-height: 76px; }
  .building-go { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .building-gate, .building-choice { animation: none; transition: none; }
}