/* Animações customizadas */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loading {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(200%);
  }
}

.animate-fade-in {
  animation: fade-in 0.5s ease-out;
}

.site-header {
  height: 4.25rem;
}

.logo-img {
  height: 2.6rem;
  width: 2.6rem;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  overflow: hidden;
}

#cartAside {
  top: 4.75rem;
  right: 0.75rem;
  left: auto;
  width: 50vw;
  min-width: 16rem;
  max-width: calc(100vw - 1.5rem);
  height: 50vh;
  max-height: 50vh;
  border-radius: 1rem;
  overflow: hidden;
}

#cartAside > div {
  height: 100%;
  max-height: 50vh;
}

#cartItems {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
}

@media (max-width: 767px) {
  main.pt-28,
  main.pt-36 {
    padding-top: 5.5rem;
  }
}

@media (min-width: 768px) {
  .site-header {
    height: 6rem;
  }

  .logo-img {
    height: 4.5rem;
    width: 4.5rem;
  }

  #cartAside {
    top: 6.75rem;
    right: 1.25rem;
    width: 24rem;
    max-width: 50vw;
    height: 50vh;
    max-height: 50vh;
  }
}

.logo-img-sm {
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  overflow: hidden;
}

.logo-auth {
  height: 7.5rem;
  width: 7.5rem;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 3px solid #facc15;
}

.empty-cart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.empty-cart i {
  font-size: 2rem;
  color: rgb(241 245 249);
  margin-bottom: 0.5rem;
}

.empty-cart p {
  color: rgb(148 163 184);
  font-weight: 500;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
}

video {
  display: block;
}

.cart-open {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.cart-aside-open {
  transform: translateX(0) !important;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.hero-slide video,
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-slide.active .hero-media {
  animation: hero-zoom 8s ease-out forwards;
}

@keyframes hero-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hero-nav {
  position: absolute;
  top: 50%;
  z-index: 20;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.45);
  color: #facc15;
  border: 1px solid rgba(250, 204, 21, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.hero-nav:hover {
  background: rgba(0, 0, 0, 0.75);
}

.hero-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.35);
  border: 0;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 1.75rem;
  background: #facc15;
}

.auth-label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
}

.auth-field {
  position: relative;
}

.auth-field i.auth-ico {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #a3a3a3;
  font-size: 0.8rem;
  pointer-events: none;
}

.auth-input {
  width: 100%;
  height: 2.5rem;
  padding: 0 0.9rem 0 2.4rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  color: #0f172a;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-input:focus {
  background: #fff;
  border-color: #facc15;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.18);
}

.auth-check {
  accent-color: #facc15;
  width: 0.9rem;
  height: 0.9rem;
}
