html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Sidebar styles */
.sidebar {
  z-index: 1000;
  background: linear-gradient(135deg, #5c2a7e 0%, #ff6b6b 25%, #4ecdc4 50%, #5c2a7e 75%, #ff6b6b 100%);
  background-size: 400% 400%;
  animation: gradientAnimation 6s ease infinite;
}

@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.sidebar .nav-link {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  color: rgba(255, 255, 255, 0.95) !important;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.sidebar .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff !important;
  transform: translateX(5px);
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
}

.sidebar .navbar-brand {
  color: #fff !important;
}

.sidebar .btn-primary,
.sidebar .btn-outline-success,
.sidebar .btn-outline-danger {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.sidebar .btn-primary:hover,
.sidebar .btn-outline-success:hover,
.sidebar .btn-outline-danger:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

@media (max-width: 991px) {
  .sidebar {
    position: fixed;
    left: -250px;
    transition: left 0.3s ease;
  }
  
  .sidebar.show {
    left: 0;
  }
  
  .flex-grow-1 {
    margin-left: 0 !important;
  }
}

/* Hero estilo similar ao exemplo pedido */
.hero {
  padding: 3rem 0;
  background: linear-gradient(135deg, #5c2a7e 0%, #ff6b6b 25%, #4ecdc4 50%, #5c2a7e 75%, #ff6b6b 100%);
  background-size: 400% 400%;
  animation: gradientAnimation 6s ease infinite;
  color: #fff;
}
.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  color: #fff;
}
.hero-subtitle {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}
.hero-cta {
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
}
.hero-image img { max-width: 100%; height: auto; }

/* Carrossel de produtos na home */
.hero-carousel {
  background: linear-gradient(135deg, #5c2a7e 0%, #ff6b6b 25%, #4ecdc4 50%, #5c2a7e 75%, #ff6b6b 100%);
  background-size: 400% 400%;
  animation: gradientAnimation 6s ease infinite;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.hero-carousel .hero-slide-img {
  height: 280px;
  object-fit: contain;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.95);
}
.hero-carousel .carousel-caption {
  left: 10%;
  right: 10%;
  bottom: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 8px;
}
.hero-carousel .carousel-caption h5,
.hero-carousel .carousel-caption p {
  margin-bottom: 0;
  color: #fff;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}
.hero-carousel .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
@media (min-width: 992px) {
  .hero-carousel .hero-slide-img { height: 340px; }
}

@media (min-width: 992px) {
  .hero { padding-top: 6rem; padding-bottom: 6rem; }
  .hero-title { font-size: 4rem; }
}

/* Header estilo tipo Lenovo */
.topbar { background: #fff; }
.topbar .navbar-brand { font-weight: 700; color: #d32f2f; text-decoration: none; }
.topbar .navbar-brand .brand-text { font-size: 1.25rem; }
.search-form { border-radius: 999px; overflow: hidden; }
.search-input {
  border: 2px solid #e0e0e0;
  padding: 0.6rem 1rem;
  border-radius: 999px 0 0 999px;
  transition: all 0.3s ease;
}
.search-input:focus {
  outline: none;
  border-color: #5c2a7e;
  box-shadow: 0 0 0 3px rgba(92, 42, 126, 0.1);
}
.search-btn {
  border-radius: 0 999px 999px 0;
  padding: 0.6rem 1.2rem;
  transition: all 0.3s ease;
}
.search-btn:hover {
  transform: scale(1.05);
}

#searchSuggestions a:hover {
  background-color: #f8f9fa;
  color: #5c2a7e !important;
}

/* Hero gradient maior */
.hero { padding: 2rem 0; background: linear-gradient(135deg, #5c2a7e 0%, #ff6b6b 25%, #4ecdc4 50%, #5c2a7e 75%, #ff6b6b 100%); background-size: 400% 400%; animation: gradientAnimation 6s ease infinite; color: #fff; }
.hero-title, .hero-subtitle { color: #fff; }
.hero-subtitle { opacity: 0.9; }

/* categorias horizontal */
.categories { background: #fff; padding: 1rem 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.category-item { text-align: center; font-size: 0.9rem; color: #444; padding: 0.5rem 1rem; transition: all 0.3s ease; }
.category-item img { width: 40px; height: 40px; display: block; margin: 0 auto 0.25rem; }
.category-icon { font-size: 1.75rem; display: block; margin-bottom: 0.25rem; }
.category-item { color: #444; }
.category-item:hover {
  background: linear-gradient(135deg, #5c2a7e 0%, #ff6b6b 25%, #4ecdc4 50%, #5c2a7e 75%, #ff6b6b 100%);
  background-size: 400% 400%;
  animation: gradientAnimation 6s ease infinite;
  color: #fff;
  border-radius: 8px;
}

/* Produtos grid */
.product-grid { padding: 2rem 0; }
.product-card {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #5c2a7e 0%, #ff6b6b 25%, #4ecdc4 50%, #5c2a7e 75%, #ff6b6b 100%);
  background-size: 400% 400%;
  animation: gradientAnimation 6s ease infinite;
  color: #fff;
}
.product-card:hover .product-title,
.product-card:hover .product-price {
  color: #fff;
}
.product-card img {
  max-height: 140px;
  object-fit: contain;
  display: block;
  margin: auto;
  transition: transform 0.3s ease;
}
.product-card:hover img {
  transform: scale(1.08);
}
.product-title { font-size: 0.95rem; margin-top: 0.75rem; }
.product-price { font-weight: 700; color: #111; }

/* Animação de fade-in para produtos */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.product-card {
  animation: fadeInUp 0.5s ease forwards;
}
.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }
.product-card:nth-child(7) { animation-delay: 0.7s; }
.product-card:nth-child(8) { animation-delay: 0.8s; }

/* Transições suaves nos botões */
.btn {
  transition: all 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.btn:active {
  transform: translateY(0);
}

/* Melhorias no carousel */
.hero-carousel {
  transition: box-shadow 0.3s ease;
}
.hero-carousel:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}
.carousel-item {
  transition: opacity 0.5s ease-in-out;
}
.carousel-control-prev,
.carousel-control-next {
  transition: all 0.3s ease;
}
.carousel-control-prev:hover,
.carousel-control-next:hover {
  background-color: rgba(0, 0, 0, 0.3);
  width: 50px;
}

/* Animação nas categorias */
.category-item {
  transition: all 0.3s ease;
}
.category-item:hover {
  transform: translateY(-4px);
  background-color: #f8f8f8;
  border-radius: 8px;
}
.category-icon {
  transition: transform 0.3s ease;
}
.category-item:hover .category-icon {
  transform: scale(1.2);
}

/* Cards na página de produtos */
.card {
  transition: all 0.3s ease;
  border: 1px solid #eee;
  border-radius: 8px;
  animation: fadeInUp 0.5s ease forwards;
}
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }
.card:nth-child(7) { animation-delay: 0.7s; }
.card:nth-child(8) { animation-delay: 0.8s; }
.card:nth-child(9) { animation-delay: 0.9s; }
.card:nth-child(10) { animation-delay: 1.0s; }
.card:nth-child(11) { animation-delay: 1.1s; }
.card:nth-child(12) { animation-delay: 1.2s; }

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #5c2a7e 0%, #ff6b6b 25%, #4ecdc4 50%, #5c2a7e 75%, #ff6b6b 100%);
  background-size: 400% 400%;
  animation: gradientAnimation 6s ease infinite;
  color: #fff;
}
.card:hover .card-title,
.card:hover .card-text,
.card:hover .fw-bold {
  color: #fff;
}
.card-img-top {
  transition: transform 0.3s ease;
}
.card:hover .card-img-top {
  transform: scale(1.05);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}