/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgb(0 0 0);
}

::-webkit-scrollbar-thumb {
  background: hsl(var(--primary));
  border-radius: 10px;
  border: 2px solid rgb(0 0 0);
}

::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--primary) / 0.8);
}

/* Firefox support */
* {
  scrollbar-width: thin;
  scrollbar-color: hsl(var(--primary)) rgb(12 10 14);
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
}

@keyframes fade-in {
  from {
      background-color: rgba(0, 0, 0, 0);
  }
  to {
      background-color: rgba(0, 0, 0, 0.8);
  }
}

@keyframes fade-out {
  from {
      background-color: rgba(0, 0, 0, 0.8);
  }
  to {
      background-color: rgba(0, 0, 0, 0);
  }
}

@keyframes slide-in {
  from {
      transform: translateX(500px);
  }
  to {
      transform: translateX(0px);
  }
}

@keyframes slide-out {
  from {
      transform: translateX(0px);
  }
  to {
      transform: translateX(500px);
  }
}

body.cart-open {
  overflow: hidden;
  padding-right: var(--scrollbar-width, 0px);
}

#cart-drawer[data-state="open"] {
  animation: fade-in 0.4s forwards;
}

#cart-drawer[data-state="closed"] {
  animation: fade-out 0.4s forwards;
}

#cart-drawer[data-state="open"] > div {
  animation: slide-in 0.4s forwards;
}

#cart-drawer[data-state="closed"] > div {
  animation: slide-out 0.4s forwards;
}

.dialog[data-state="open"] {
  animation: fade-in 0.4s forwards;
}

.dialog[data-state="closed"] {
  animation: fade-out 0.4s forwards;
}

.dialog[data-state="open"] > div {
  animation: dialog-in 0.2s forwards;
}

.dialog[data-state="closed"] > div {
  animation: dialog-out 0.2s forwards;
}

@keyframes dialog-in {
  from {
      opacity: 0;
      scale: 50%;
  }
  to {
      opacity: 1;
      scale: 100%;
  }
}

@keyframes dialog-out {
  from {
      opacity: 1;
      scale: 100%;
  }
  to {
      opacity: 0;
      scale: 50%;
  }
}

.reveal-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  transition-delay: var(--delay, 0s);
}

.reveal-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.centralcart-content iframe {
  aspect-ratio: 16 / 9;
  border-radius: 0.5rem;
  width: 100%;
  height: auto;
}

.grid-background {
  background-image: linear-gradient(to right, hsla(327, 100%, 65%, 0.1) 1px, transparent 1px), linear-gradient(to bottom, hsla(327, 100%, 65%, 0.1) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at 50% 30%, rgba(0,0,0,1) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.1) 90%, rgba(0,0,0,0) 100%);
}

.custom-bg-mask {
	mask-image: linear-gradient(hsl(var(--background)), rgba(0, 0, 0, 0.3), rgb(0, 0, 0, 0));
}

/* Nav link hover animation */
.nav-link-item {
  position: relative;
}

.nav-link-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: hsl(var(--primary));
  border-radius: 999px;
  transition: width 0.2s ease;
}

.nav-link-item:hover::after {
  width: 60%;
}



@keyframes loading {
  0% {
      left: -50%;
  }

  to {
      left: 100%;
  }
}

.detail-dash {
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.1) 50%, hsl(var(--foreground) / 0) 0%);
  background-position: center bottom;
  background-size: 16px;
  background-repeat: repeat-x;
  width: 100%;
  height: 1px;
}

/* Sidebar categories */
.custom-scrollbar::-webkit-scrollbar {
  width: 3px;
  height: 3px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: hsl(var(--primary));
  border-radius: 0.25rem;
}

.cat-dropdown {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: top;
}

.cat-dropdown:not(.hidden) {
  animation: slideDown 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: scaleY(0);
  }
  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

#mobile-categories-dropdown:not(.hidden) {
  animation: slideInMobile 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInMobile {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-subcategories:not(.hidden) {
  animation: slideInSub 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInSub {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Footer — estilos em CSS puro para aplicar na loja mesmo com Tailwind CDN (evita classes “sumirem”) */
.footer-bg {
  height: 320px;
  width: 100%;
  background:
    radial-gradient(ellipse 75% 55% at 50% 100%, hsl(var(--primary) / 0.18), transparent 58%),
    radial-gradient(ellipse 45% 40% at 15% 95%, hsl(var(--primary) / 0.08), transparent 52%);
}

.blox-footer {
  position: relative;
  z-index: 10;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(
    180deg,
    rgba(18, 18, 22, 0.97) 0%,
    rgba(12, 12, 14, 0.94) 45%,
    rgba(10, 10, 12, 0.96) 100%
  );
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.blox-footer__top {
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.blox-footer__top::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 130% 90% at 50% -25%, hsl(var(--primary) / 0.14), transparent 58%);
}

.blox-footer__row {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2.35rem 0 2.5rem;
}

@media (min-width: 768px) {
  .blox-footer__row {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2.5rem;
    padding: 2.85rem 0 3rem;
  }
}

.blox-footer__col {
  display: flex;
  max-width: 38rem;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .blox-footer__col {
    gap: 1.2rem;
  }
}

.blox-footer__brand {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 0.85rem;
  padding: 0.2rem;
  margin: -0.2rem;
  border-radius: 1rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.blox-footer__brand:hover {
  background-color: rgba(255, 255, 255, 0.04);
}

.blox-footer__logo {
  position: relative;
  display: flex;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), transparent 55%);
  box-shadow: 0 0 36px -10px hsl(var(--primary) / 0.55);
}

.blox-footer__brand:hover .blox-footer__logo {
  border-color: hsl(var(--primary) / 0.35);
  box-shadow: 0 0 42px -8px hsl(var(--primary) / 0.65);
}

.blox-footer__logo-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, hsl(var(--primary) / 0.28), transparent 60%);
  opacity: 0.85;
  pointer-events: none;
}

.blox-footer__logo-img {
  position: relative;
  width: 2.65rem;
  height: 2.65rem;
  object-fit: contain;
}

.blox-footer__brand-text {
  min-width: 0;
}

.blox-footer__title {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

@media (min-width: 768px) {
  .blox-footer__title {
    font-size: 1.55rem;
  }
}

.blox-footer__title-line {
  display: block;
  width: 2.5rem;
  height: 3px;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--primary) / 0.35), transparent);
}

.blox-footer__tagline {
  margin: 0;
  max-width: 32rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgb(var(--muted-foreground));
}

.blox-footer__business {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  border-left: 2px solid hsl(var(--primary) / 0.35);
  padding-left: 1rem;
}

.blox-footer__biz-line {
  margin: 0;
  font-size: 0.875rem;
  color: rgb(var(--muted-foreground));
}

.blox-footer__biz-link {
  font-weight: 600;
  color: rgb(var(--foreground));
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.blox-footer__biz-link:hover {
  color: hsl(var(--primary));
  text-decoration: underline;
}

.blox-footer__biz-strong {
  font-weight: 600;
  color: rgb(var(--foreground));
}

.blox-footer__credit {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.8125rem;
  color: rgb(var(--muted-foreground));
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.blox-footer__credit:hover {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(16, 185, 129, 0.1);
  color: rgb(var(--foreground));
  transform: translateY(-1px);
}

.blox-footer__credit-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 0.35rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.15rem 0.45rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.blox-footer__credit:hover .blox-footer__credit-badge {
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.35);
}

.blox-footer__credit-img {
  display: block;
  height: 1rem;
  opacity: 0.95;
}

.blox-footer__credit:hover .blox-footer__credit-img {
  opacity: 1;
}

.blox-footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

@media (min-width: 768px) {
  .blox-footer__socials {
    flex-shrink: 0;
    justify-content: flex-end;
    padding-top: 0.25rem;
  }
}

/* Discord / redes no roxo do tema (secondary), como no layout original */
.blox-footer__social-link {
  display: flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid hsl(var(--primary) / 0.4);
  background: hsl(var(--primary) / 0.2);
  box-shadow: 0 10px 30px -14px hsl(var(--primary) / 0.65);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.blox-footer__social-link:hover {
  transform: scale(1.07);
  border-color: hsl(var(--primary) / 0.65);
  background: hsl(var(--primary) / 0.32);
  box-shadow: 0 14px 38px -12px hsl(var(--primary) / 0.55);
}

.blox-footer__social-link:active {
  transform: scale(0.98);
}

.blox-footer__social-svg {
  width: 1.15rem;
  height: 1.15rem;
  background: rgb(var(--foreground));
}

.blox-footer__bar {
  position: relative;
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.blox-footer__bar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, hsl(var(--primary) / 0.5), transparent);
  pointer-events: none;
}

.blox-footer__bar-inner {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.1rem 0 1.2rem;
  font-size: 0.875rem;
  color: rgb(var(--muted-foreground));
}

@media (min-width: 640px) {
  .blox-footer__bar-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
}

.blox-footer__copy {
  margin: 0;
}

.blox-footer__terms {
  width: fit-content;
  color: inherit;
  text-decoration: none;
  border-radius: 0.375rem;
  padding: 0.2rem 0.45rem;
  margin: -0.2rem -0.45rem;
  transition: color 0.2s ease, background 0.2s ease;
}

.blox-footer__terms:hover {
  color: rgb(var(--foreground));
  background: rgba(255, 255, 255, 0.06);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Evitar desfoque/desalinhamento (blur/aliasing) ao dar hover/scale nos cards dos produtos */
.package {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform, border-color, box-shadow;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.package:hover {
  border-color: hsl(var(--primary)) !important;
  box-shadow: 0 0 18px hsl(var(--primary) / 0.5), 0 0 6px hsl(var(--primary) / 0.2) !important;
}

.package img {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform;
}

/* Aumentar o tamanho do widget de chat de suporte flutuante (JivoChat, Tawk.to, Zendesk, Smartsupp, etc.) */
#jivo-iframe-container,
.jivo-iframe-container,
iframe[name="jivo_container"],
#tawkchat-iframe-container,
.tawk-min-container,
iframe[title="chat widget"],
#smartsupp-widget-container,
iframe#smartsupp-widget-iframe,
#webWidget,
iframe#webWidget,
.centralcart-chat,
#centralcart-chat,
.centralcart-chat-widget,
#centralcart-chat-widget,
.cc-chat-widget,
#cc-chat-widget,
.cc-chat,
#cc-chat,
#chat-widget-container,
iframe[title="LiveChat chat widget"],
.helpcrunch-iframe-container,
iframe.helpcrunch-iframe,
.whatsapp-float,
.whatsapp-btn,
.whatsapp-button,
#whatsapp-float,
#whatsapp-btn,
#whatsapp-button {
  transform: scale(1.25) !important;
  transform-origin: bottom right !important;
  transition: transform 0.2s ease-in-out !important;
}

/* Responsividade para celulares */
@media (max-width: 640px) {
  #jivo-iframe-container,
  .jivo-iframe-container,
  iframe[name="jivo_container"],
  #tawkchat-iframe-container,
  .tawk-min-container,
  iframe[title="chat widget"],
  #smartsupp-widget-container,
  iframe#smartsupp-widget-iframe,
  #webWidget,
  iframe#webWidget,
  .centralcart-chat,
  #centralcart-chat,
  .centralcart-chat-widget,
  #centralcart-chat-widget,
  .cc-chat-widget,
  #cc-chat-widget,
  .cc-chat,
  #cc-chat,
  #chat-widget-container,
  iframe[title="LiveChat chat widget"],
  .helpcrunch-iframe-container,
  iframe.helpcrunch-iframe,
  .whatsapp-float,
  .whatsapp-btn,
  .whatsapp-button,
  #whatsapp-float,
  #whatsapp-btn,
  #whatsapp-button {
    transform: scale(1.15) !important;
    transform-origin: bottom right !important;
  }
}

/* Overrides for product description (.centralcart-content) to guarantee readable font sizing and spacing */
.centralcart-content {
  font-size: 0.95rem !important;
  line-height: 1.7 !important;
  color: hsla(var(--foreground), 0.9) !important;
}

.centralcart-content p,
.centralcart-content span,
.centralcart-content div {
  font-size: 0.95rem !important;
  line-height: 1.7 !important;
  color: inherit !important;
}

.centralcart-content h1 { font-size: 1.6rem !important; font-weight: 800 !important; margin-top: 1.25rem !important; margin-bottom: 0.75rem !important; color: #fff !important; }
.centralcart-content h2 { font-size: 1.4rem !important; font-weight: 700 !important; margin-top: 1.25rem !important; margin-bottom: 0.65rem !important; color: #fff !important; }
.centralcart-content h3 { font-size: 1.25rem !important; font-weight: 700 !important; margin-top: 1rem !important; margin-bottom: 0.5rem !important; color: #fff !important; }
.centralcart-content h4, 
.centralcart-content h5, 
.centralcart-content h6 { font-size: 1.1rem !important; font-weight: 700 !important; margin-top: 1rem !important; margin-bottom: 0.5rem !important; color: #fff !important; }

.centralcart-content ul,
.centralcart-content ol {
  margin-left: 1.5rem !important;
  margin-bottom: 1.25rem !important;
  list-style-type: disc !important;
  display: block !important;
}

.centralcart-content ol {
  list-style-type: decimal !important;
}

.centralcart-content li {
  font-size: 0.95rem !important;
  margin-bottom: 0.5rem !important;
  color: inherit !important;
  line-height: 1.7 !important;
  display: list-item !important;
}
