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);
  }
}


#cart-drawer[data-state="open"] {
  animation: fade-in 0.4s forwards;
}

body.cart-open {
  overflow: hidden;
  padding-right: var(--scrollbar-width, 0px);
}

#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(0,0%,100%,.03) 1px,transparent 1px),linear-gradient(to bottom,hsla(0,0%,100%,.03) 1px,transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 60% 85% at 40% 30%, #000 0%, #fff0 110%)
}

.checkout-offer-banner[data-expired="true"] {
  opacity: 0.72;
  filter: saturate(0.85);
}

.checkout-offer-banner[data-expired="true"] #checkout-offer-countdown,
.checkout-offer-banner[data-expired="true"] .checkout-offer-banner__countdown svg {
  color: rgb(148 163 184) !important;
}

.checkout-offer-progress__track {
  height: 5px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.checkout-offer-progress__fill {
  height: 100%;
  width: 100%;
  min-width: 0;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    rgba(250, 204, 21, 0.55) 0%,
    hsl(var(--primary)) 35%,
    #fde047 50%,
    hsl(var(--primary)) 65%,
    rgba(250, 204, 21, 0.55) 100%
  );
  background-size: 220% 100%;
  animation: checkout-offer-progress-run 1.15s linear infinite;
  transition: width 0.4s ease-out;
  transform-origin: left center;
}

@keyframes checkout-offer-progress-run {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.checkout-offer-banner[data-expired="true"] .checkout-offer-progress__fill {
  animation: none;
  background: rgb(71 85 105);
  width: 0 !important;
}

.hero-carousel-shell {
  width: 100%;
}

.hero-carousel-slider-viewport {
  border-radius: 1.15rem;
}

/* Mobile: área do slide usa largura total; setas sobre o carrossel (não comem borda) */
@media (max-width: 639px) {
  .hero-carousel-shell {
    position: relative;
    display: block;
  }

  .hero-carousel-slider-viewport {
    width: 100%;
    max-width: 100%;
  }

  #hero-carousel-prev,
  #hero-carousel-next {
    position: absolute;
    top: 40%;
    z-index: 25;
    transform: translateY(-50%);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
  }

  #hero-carousel-prev {
    left: 0.2rem;
  }

  #hero-carousel-next {
    right: 0.2rem;
  }

  .hero-carousel-shell .hero-carousel-nav:hover:not(:disabled) {
    transform: translateY(-50%) scale(1.06);
  }
}

.hero-carousel-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 0.65rem;
  color: hsl(var(--primary));
  background: rgba(250, 204, 21, 0.1);
  border: 1px solid rgba(250, 204, 21, 0.35);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}

.hero-carousel-nav:hover:not(:disabled) {
  background: rgba(250, 204, 21, 0.2);
  border-color: rgba(250, 204, 21, 0.55);
  transform: scale(1.05);
}

.hero-carousel-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

@media (min-width: 640px) {
  .hero-carousel-nav {
    width: 2.75rem;
    height: 2.75rem;
  }
}

.hero-packages-slider .keen-slider__slide > div {
  display: flex;
  justify-content: center;
  align-items: stretch;
  width: 100%;
}

@media (max-width: 639px) {
  .hero-packages-slider .keen-slider__slide > div {
    justify-content: stretch;
  }

  .hero-packages-slider .keen-slider__slide {
    min-width: 100% !important;
    max-width: 100%;
  }

  .hero-packages-slider a.package > div:first-child {
    min-height: 12.75rem;
  }
}

.hero-packages-slider {
  overflow: visible;
}

/* Cards do hero: faixa horizontal + texto sobre a imagem (Tailwind max-w-sm nos cards do servidor) */
.hero-packages-slider a.package {
  width: 100%;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  display: grid !important;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  align-items: stretch;
  min-height: 0;
  overflow: hidden;
  border: none !important;
  --tw-ring-width: 0 !important;
  --tw-ring-offset-width: 0 !important;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.55);
  border-radius: 1.15rem !important;
}

.hero-packages-slider a.package:hover {
  --tw-ring-width: 0 !important;
  box-shadow: 0 28px 56px -12px rgba(0, 0, 0, 0.6);
}

.hero-packages-slider a.package > div:first-child {
  grid-row: 1;
  grid-column: 1;
  position: relative;
  z-index: 0;
  width: 100%;
  aspect-ratio: 21 / 9;
  min-height: 11.5rem;
  max-height: none;
  overflow: hidden;
}

@media (min-width: 640px) {
  .hero-packages-slider a.package > div:first-child {
    min-height: 14rem;
    aspect-ratio: 2 / 1;
  }
}

@media (min-width: 1024px) {
  .hero-packages-slider a.package > div:first-child {
    min-height: 17rem;
  }
}

.hero-packages-slider a.package > div:first-child img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: unset !important;
}

.hero-packages-slider a.package > div:first-child .absolute.z-10 {
  z-index: 15;
}

/* Selo 50% desconto — canto superior direito da imagem (carrossel da home) */
.hero-packages-slider a.package > div:first-child::after {
  content: "50%\A desconto";
  white-space: pre;
  text-align: center;
  line-height: 1.08;
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 35;
  padding: 0.38rem 0.42rem 0.32rem;
  min-width: 3rem;
  border-radius: 0.45rem;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(145deg, #f87171 0%, #dc2626 45%, #b91c1c 100%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    0 2px 10px rgba(220, 38, 38, 0.45),
    0 1px 3px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.hero-packages-slider a.package > div:nth-child(2) {
  grid-row: 1;
  grid-column: 1;
  align-self: end;
  z-index: 2;
  width: 100%;
  height: auto !important;
  flex: none !important;
  margin: 0 !important;
  padding: 0.55rem 0.65rem 0.65rem !important;
  background: linear-gradient(
    to top,
    rgba(10, 11, 18, 0.97) 0%,
    rgba(10, 11, 18, 0.72) 42%,
    rgba(10, 11, 18, 0.2) 78%,
    transparent 100%
  );
  border-radius: 0 0 1.15rem 1.15rem;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.5rem;
}

.hero-packages-slider a.package > div:nth-child(2) .mb-4 {
  flex: 1 1 auto;
  min-width: 0;
  margin-bottom: 0 !important;
}

.hero-packages-slider a.package > div:nth-child(2) .mb-4 .flex.justify-between.items-start {
  display: none !important;
}

.hero-packages-slider a.package > div:nth-child(2) > div.flex.items-center.gap-2.mt-auto {
  margin-top: 0 !important;
  flex: 0 0 auto;
}

.hero-packages-slider a.package > div:nth-child(2) .mb-4 > p {
  color: #fafafa !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  margin-bottom: 0 !important;
  line-height: 1.25;
}

.hero-packages-slider a.package > div:nth-child(2) button.btn-primary {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  width: auto !important;
  min-width: 0;
  height: auto !important;
  min-height: 0 !important;
  padding: 0.3rem 0.55rem !important;
  font-size: 0.6875rem !important;
  line-height: 1.2 !important;
  border-radius: 0.45rem !important;
  gap: 0.25rem !important;
  white-space: nowrap;
}

.hero-packages-slider a.package > div:nth-child(2) button.btn-primary i,
.hero-packages-slider a.package > div:nth-child(2) button.btn-primary svg {
  display: none !important;
}

/* Cards de categoria: brilho automático, suave, em todo o card */
.category-card-glass {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.category-card-glass > .absolute:first-of-type {
  z-index: 0;
}

.category-card-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.025) 47%,
    rgba(255, 255, 255, 0.055) 50%,
    rgba(255, 255, 255, 0.025) 53%,
    transparent 60%,
    transparent 100%
  );
  background-size: 240% 100%;
  background-position: -130% 0;
  background-repeat: no-repeat;
  filter: blur(12px);
  opacity: 0.65;
  animation: category-card-glass-sweep 6s ease-in-out infinite alternate;
}

#categories .grid > a.category-card-glass:nth-child(3n + 2)::after {
  animation-delay: 1.1s;
}

#categories .grid > a.category-card-glass:nth-child(3n + 3)::after {
  animation-delay: 2.2s;
}

@keyframes category-card-glass-sweep {
  0% {
    background-position: -130% 0;
  }
  100% {
    background-position: 130% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .category-card-glass::after {
    animation: none;
    opacity: 0;
  }
}

.custom-bg-mask {
	mask-image: linear-gradient(hsl(var(--background)), rgba(0, 0, 0, 0.3), rgb(0, 0, 0, 0));
}

@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;
}

.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;
}

.animate-float {
  animation: floatRandom 15s ease-in-out infinite;
}

@keyframes floatRandom {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  20% {
    transform: translate(-6px, -10px) rotate(-1deg);
  }
  40% {
    transform: translate(4px, -5px) rotate(1deg);
  }
  60% {
    transform: translate(-4px, -12px) rotate(-1.5deg);
  }
  80% {
    transform: translate(3px, -7px) rotate(1deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}


.gradient-text {
  background: linear-gradient(
    45deg,
    hsl(var(--primary)),
    hsl(var(--primary) / 0.8),
    hsl(var(--primary) / 0.6),
    hsl(var(--primary) / 0.9),
    hsl(var(--primary)),
    hsl(var(--primary) / 0.7),
    hsl(var(--primary) / 0.5),
    hsl(var(--primary) / 0.8)
  );
  background-size: 400% 400%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 3s ease-in-out infinite;
}


.glass {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  z-index: 0;
}

.glass::after {
  content: "";
  transition: all 850ms cubic-bezier(.19,1,.22,1);
  background-color: white;
  opacity: .2;
  width: 50px;
  height: 200px;
  position: absolute;
  left: -85px;
  top: -80px;
  z-index: 1;
  transform: rotate(30deg);
  filter: blur(2px);
}

.glass:hover::after {
  left: 130%;
}

.glass-secondary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  z-index: 0;
}

.glass-secondary::after {
  content: "";
  transition: all 850ms cubic-bezier(.19,1,.22,1);
  background: linear-gradient(to right, transparent, hsl(var(--secondary) / 0.15), transparent);
  width: 100%;
  height: 200%;
  position: absolute;
  left: -150%;
  top: -50%;
  z-index: 1;
  transform: rotate(30deg);
  filter: blur(10px);
}

.glass-secondary:hover::after {
  left: 150%;
}

.faq-item .faq-content {
  overflow: hidden;
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:not([open]) .faq-content {
  height: 0;
}

.faq-item summary {
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  display: none;
  content: '';
}

/* Página do pedido: chuva de bananas (GPU, pointer-events none) */
.order-banana-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  overflow: hidden;
  contain: strict;
}

.order-banana {
  position: absolute;
  top: -12vh;
  font-size: clamp(1.1rem, 2.5vw, 1.75rem);
  line-height: 1;
  display: block;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  animation-name: order-banana-fall;
  animation-timing-function: cubic-bezier(0.33, 0.66, 0.42, 0.97);
  animation-fill-mode: forwards;
  will-change: transform;
  backface-visibility: hidden;
}

@keyframes order-banana-fall {
  0% {
    transform: translate3d(0, 0, 0) rotate(var(--b-rot, 0deg)) scale(var(--b-scale, 1));
    opacity: 1;
  }
  100% {
    transform: translate3d(0, 115vh, 0) rotate(calc(var(--b-rot, 0deg) + 540deg)) scale(var(--b-scale, 1));
    opacity: 0.95;
  }
}

@media (prefers-reduced-motion: reduce) {
  .order-banana-layer {
    display: none !important;
  }
}
