:root {
  --base-scale: 0.4;
  --base-border-width: 1.5px;
}

market-layout {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  max-width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
}

market-layout > nav {
  position: fixed;
  top: 0px;
  left: 0px;
  right: 0px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 19px;
  height: 68px;
  padding: 0px 3.6%;
  background: linear-gradient(
    color-mix(in srgb, transparent, var(--background) 85%) 10%,
    color-mix(in srgb, transparent, var(--background) 0%)
  );
  transition: background 0.3s;
  font-size: 14px;
}

market-layout > nav :is(div, ul) {
  display: flex;
  align-items: center;
  gap: 8px;
  gap: 19px;
}

market-layout > nav ul {
  gap: 19px;
  color: var(--text);
  justify-content: space-between;
  width: 100%;
}

market-layout > nav ul > div:nth-of-type(2) {
  gap: 10px;
}

market-layout > nav ul li {
  position: relative;
  transition: all 0.5s ease;
  /* transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1); */
}


market-layout > nav ul li > a {
  text-decoration: none;
  font-weight: 400;
  padding-bottom: 2px;
  background-size: 0 2px;
  background-repeat: no-repeat;
  background-position: left bottom;
  background-image: linear-gradient(var(--text), var(--text));
  transition:
    color 1s cubic-bezier(0.23, 1, 0.32, 1),
    background 1s cubic-bezier(0.23, 1, 0.32, 1);
}

market-layout > nav ul li > a:hover {
  background-size: 100% 2px;
}

market-layout > nav ul li > a[active] {
  font-weight: 600;
  background-size: 100% 2px;
}

market-layout > nav ul li > a[active]:hover {
  background-size: 0 2px;
}

market-layout > nav ul li > button[cart] {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: none;
  color: var(--text);
  cursor: pointer;
  transition: opacity ease 300ms;
}

market-layout > nav ul li > button[cart]:hover {
  opacity: 0.7;
}

market-layout > nav ul li > button[cart] svg {
  width: 22px;
  height: 22px;
}

market-layout > nav ul li > button[cart] [indicator] {
  position: absolute;
  top: -4px;
  right: -6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent, #ec4899);
}

market-layout > nav ul li > button[cart] [indicator][hidden] {
  display: none;
}

market-layout > nav social-links {
  gap: 8px;
}

market-layout > nav social-links li a {
  position: relative;
  transition: all 0.5s ease;
}

market-layout > nav social-links:has(a:hover) li a:not(:hover) {
  opacity: 0.5;
}

market-layout > nav social-links li a span {
  transition: all 0.5s ease;
  position: absolute;
  top: calc(100% + 2px);
}

market-layout > nav social-links li a:not(:hover) span {
  opacity: 0;
}

market-layout > nav social-links li a svg {
  height: 21px;
  width: 26px;
}

market-layout > nav button[menu] {
  z-index: 9001;
  padding: 0;
  background: none;
  font-size: 13px;
  color: var(--text);
  display: none;
}

market-layout > nav button[menu] span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px 0;
  background-color: var(--text);
  transition:
    transform 0.3s,
    background 1s cubic-bezier(0.23, 1, 0.32, 1);
}

market-layout > nav:has(ul[open]) button[menu] span:nth-child(1) {
  transform: translate(0, 3px) rotate(45deg);
}

market-layout > nav:has(ul[open]) button[menu] span:nth-child(2) {
  transform: translate(0, -3px) rotate(-45deg);
}

@media (max-width: 768px) {
  market-layout > nav ul {
    z-index: 9000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100dvw;
    height: 100dvh;
    background: var(--background);
    flex-direction: column;
    gap: 19px;
    color: var(--text);
    padding: 2.33rem 1.66rem;
    align-items: flex-start;
    justify-content: flex-end;
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
    overflow-y: scroll;
  }

  market-layout > nav ul:not([open]) {
    transform: translateX(-100%);
  }

  market-layout > nav ul > div {
    flex-direction: column;
    align-items: flex-start;
  }

  market-layout > nav ul li > a {
    font-size: 36px;
    font-weight: 900 !important;
    padding-bottom: 3px;
  }

  market-layout > nav ul li > button[cart] svg {
    width: 32px;
    height: 32px;
  }

  market-layout > nav ul li > a[active] {
    background-size: 100% 3px;
  }

  market-layout > nav ul:not([open]) li > a {
    opacity: 0;
    visibility: hidden;
    margin-top: 15px;
    transform: translateX(-10px);
  }

  market-layout > nav button[menu] {
    display: block;
  }

  market-layout > nav social-links {
    margin: 0;
    margin-top: 1rem;
  }

  market-layout > nav social-links li a svg {
    height: 28px;
    width: 34px;
  }
}

.site-topbar-auth {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  font-size: 14px;
}

.site-topbar-auth a {
  text-decoration: none;
  font-weight: 500;
}

.site-topbar-auth a:hover {
  text-decoration: underline;
}

.site-viewport {
  position: relative;
  gap: 1rem;
  /* padding: 1rem; */
  display: flex;
  align-items: stretch;
  flex-grow: 1;
  overflow: hidden;
}

.site-viewport > * {
  /* transition: all ease 300ms; */
}

.site-viewport:not(.sidebar-open) {
  gap: 0;
}

@media (max-width: 768px) {
  .site-viewport {
    padding-top: 0;
  }
}

.site-view {
  position: relative;
  flex-grow: 1;
  overflow: scroll;
  max-width: 100vw;
  display: flex;
  scrollbar-width: none;
}

.site-view-container {
  flex-grow: 1;
  height: 100%;
  display: flex;
  min-width: 100%;
  justify-content: center;
}

.sidebar-open .site-view-container {
  width: 100vw;
  min-width: 100%;
  max-width: 100%;
}

@media (max-width: 768px) {
  .sidebar-open .site-view-container {
    max-width: none;
  }
}

.site-view-container > * {
  max-width: 100%;
}



.c-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  direction: ltr;
  contain: layout style size;
  pointer-events: none;
  transition:
    opacity 0.5s cubic-bezier(0.38, 0.005, 0.215, 1),
    color 0.5s cubic-bezier(0.38, 0.005, 0.215, 1);
}

.c-cursor:before {
  content: '';
  position: absolute;
  top: -1.8rem;
  left: -1.8rem;
  display: block;
  width: 3.6rem;
  height: 3.6rem;
  transform: scale(var(--base-scale));
  border-radius: 50%;
  opacity: 0.2;
  border: calc(var(--base-border-width) / var(--base-scale)) solid var(--text);
  transition:
    transform 0.5s cubic-bezier(0.38, 0.005, 0.215, 1),
    border 0.6s cubic-bezier(0.38, 0.005, 0.215, 1),
    opacity 0.5s cubic-bezier(0.38, 0.005, 0.215, 1);
}

@media (min-width: 2000px) {
  .c-cursor:before {
    top: -1.9rem;
    left: -1.9rem;
    width: 3.8rem;
    height: 3.8rem;
    --base-border-width: 2px;
  }
}

.c-cursor.-inverse {
  color: var(--text);
}

.c-cursor.-pointer:before {
  --base-scale: 0.2;
  transition:
    transform 0.2s cubic-bezier(0.38, 0.005, 0.215, 1),
    border 0.4s cubic-bezier(0.38, 0.005, 0.215, 1),
    opacity 0.2s cubic-bezier(0.38, 0.005, 0.215, 1);
  opacity: 1;
}

.c-cursor.-text:before {
  --base-scale: 1.45;
  opacity: 1;
  transition:
    transform 0.7s cubic-bezier(0.38, 0.005, 0.215, 1),
    border 0.5s cubic-bezier(0.38, 0.005, 0.215, 1),
    opacity 1s cubic-bezier(0.38, 0.005, 0.215, 1);
  transition-delay: 100ms;
}

.c-cursor.-active.-text:before {
  --base-scale: 1.35;
  opacity: 1;
  transition:
    transform 0.3s cubic-bezier(0.38, 0.005, 0.215, 1),
    border 0.5s cubic-bezier(0.38, 0.005, 0.215, 1),
    opacity 0.3s cubic-bezier(0.38, 0.005, 0.215, 1);
  transition-delay: 0ms;
}

.c-cursor.-icon:before {
  --base-scale: 1.1;
  transition:
    transform 0.5s cubic-bezier(0.38, 0.005, 0.215, 1),
    border 0.1s cubic-bezier(0.38, 0.005, 0.215, 1),
    opacity 0.5s cubic-bezier(0.38, 0.005, 0.215, 1);
  opacity: 1;
}

.c-cursor.-hidden:before {
  transform: scale(0);
}

.c-cursor-text {
  position: absolute;
  top: -3rem;
  left: -3rem;
  width: 6rem;
  height: 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.55em;
  letter-spacing: 0.04em;
  transform: scale(0) rotate(10deg);
  opacity: 0;
  color: var(--text);
  font-size: 0.7em;
  line-height: 112%;
  text-align: center;
  transition:
    opacity 0.5s cubic-bezier(0.38, 0.005, 0.215, 1),
    transform 0.5s cubic-bezier(0.38, 0.005, 0.215, 1);
}

.c-cursor svg {
  max-width: 1.4rem;
}

.c-cursor .c-cursor-text-icon {
  width: 1.1rem;
  max-width: 1.1rem;
  margin-top: -0.2rem;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
  isolation: isolate;
  transform: translate3d(0, 0, 0);
}

.c-cursor .c-cursor-text-icon.-rotate {
  animation: rotate-switch 400ms cubic-bezier(0.38, 0.005, 0.215, 1);
}

.c-cursor.-active .c-cursor-text-icon.-rotate {
  animation: none;
}

.c-cursor.-text .c-cursor-text {
  transition:
    opacity 0.7s cubic-bezier(0.38, 0.005, 0.215, 1),
    transform 0.7s cubic-bezier(0.38, 0.005, 0.215, 1);
  transition-delay: 100ms;
}

.c-cursor.-text .c-cursor-text,
.c-cursor.-icon .c-cursor-text {
  opacity: 1;
  transform: scale(1);
}
