/* Lighter mobile category dropdown background and back button */
#mobile-categories-dropdown {
  background: rgba(255,255,255,0.82) !important;
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
  border: 1.5px solid rgba(124, 58, 237, 0.13);
}
#mobile-categories-dropdown button {
  font-weight: 600;
}
#mobile-categories-dropdown .btn-ghost,
#mobile-categories-dropdown .btn-secondary {
  color: #2d1e5a;
}
#mobile-categories-dropdown .btn-ghost:hover,
#mobile-categories-dropdown .btn-secondary:hover {
  background: #ede9fe;
  color: #6d28d9;
}
#mobile-categories-dropdown .mobile-category-group > button {
  background: #f3f0ff;
  color: #4c1d95;
}
#mobile-categories-dropdown .mobile-category-group > button:hover {
  background: #ede9fe;
  color: #6d28d9;
}
#mobile-categories-dropdown .mobile-subcategories a {
  color: #2d1e5a;
}
#mobile-categories-dropdown .mobile-subcategories a:hover {
  background: #ede9fe;
  color: #6d28d9;
}
#mobile-categories-dropdown .flex.items-center.p-2.pb-0 button {
  background: #ede9fe !important;
  color: #4c1d95 !important;
  border: none;
  box-shadow: 0 2px 8px 0 rgba(124,58,237,0.07);
}
/* Mobile-first navbar improvements */
@media (max-width: 640px) {
  nav {
    min-height: 54px;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
  .navbar-logo {
    max-width: 70vw;
    height: auto;
  }
  .navbar-actions {
    gap: 0.25rem;
  }
  .navbar-actions button, .navbar-actions a {
    min-width: 40px;
    min-height: 40px;
    font-size: 1rem;
    padding: 0.5rem 0.5rem;
  }
}
/* Mobile Menu Drawer Styles */
#mobile-menu-drawer {
  transition: opacity 0.3s;
  opacity: 1;
}
#mobile-menu-drawer[data-state="closed"] {
  opacity: 0;
  pointer-events: none;
}
#mobile-menu-drawer[data-state="open"] {
  opacity: 1;
  pointer-events: auto;
}
#mobile-menu-drawer nav {
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  background: rgba(34, 24, 64, 0.95);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border-right: 2px solid rgba(124, 58, 237, 0.25);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
#mobile-menu-drawer .bg-black\/60 {
  transition: opacity 0.3s;
  opacity: 0;
}
#mobile-menu-drawer[data-state="open"] .bg-black\/60 {
  opacity: 1;
}
#mobile-menu-drawer[data-state="closed"] nav {
  transform: translateX(-100%);
}
#mobile-menu-drawer[data-state="open"] nav {
  transform: translateX(0);
}
@media (min-width: 768px) {
  #mobile-menu-drawer {
    display: none !important;
  }
}
/* End Mobile Menu Drawer Styles */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  appearance: textfield;
  -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;
}


.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);
  }
}
/* Sidebar categories */

/* Cartoon / bordas mais fortes (reutilizável no site) */
.cc-cartoon-card {
  position: relative;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: black;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 0 2px rgba(0, 0, 0, 0.55);
}

.cc-cartoon-card::before {
  position: absolute;
  inset: 10px;
  border-radius: calc(1.25rem - 10px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  pointer-events: none;
  opacity: 0.9;
}

/* Efeito shimmer sutil nos containers */
.cc-cartoon-card.cc-shimmer::after,
.cc-cartoon-card:not(.cc-no-shimmer)::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.02) 25%,
    rgba(255, 255, 255, 0.04) 50%,
    rgba(255, 255, 255, 0.02) 75%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 4s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.25;
  z-index: 1;
}

.cc-cartoon-hover {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.cc-cartoon-hover:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.24);
  background: black;
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.10) inset,
    0 0 0 2px rgba(0, 0, 0, 0.60);
}

.cc-cartoon-outline {
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.35),
    0 0 0 3px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.cc-cartoon-chip {
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: black;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.cc-bubble {
  position: relative;
}

.cc-bubble:after {
  content: "";
  position: absolute;
  left: 22px;
  bottom: -10px;
  width: 16px;
  height: 16px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 2px solid rgba(255, 255, 255, 0.14);
  border-bottom: 2px solid rgba(255, 255, 255, 0.14);
  transform: rotate(45deg);
}

@keyframes shimmer {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Brilho periódico dos cards de categoria (home) */
.category-pulse-shine {
  isolation: isolate;
}

.category-pulse-shine::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -140%;
  width: 60%;
  height: 140%;
  transform: rotate(18deg);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.05) 30%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.05) 70%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  animation: category-shine-sweep 10s linear infinite;
}

@keyframes category-shine-sweep {
  0% {
    left: -140%;
    opacity: 0;
  }
  4% {
    opacity: 1;
  }
  10% {
    left: 150%;
    opacity: 0;
  }
  100% {
    left: 150%;
    opacity: 0;
  }
}