@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #333;
  line-height: 1.6;
  font-size: 13px;
}

/* HEADER & NAVIGATION */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
}

.nav-brand i {
  font-size: 1.5rem;
  color: #ffd700;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}
.nav-menu a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.hero-content {
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  z-index: 5;
}

.hero-content h1 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 1rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content h1 i {
  color: #ffd700;
  margin-right: 1rem;
}

.hero-content p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-item i {
  font-size: 1.5rem;
  color: #ffd700;
}

.stat-item span {
  color: white;
  font-weight: 600;
}

/* MAIN CONTENT */
.main-content {
  background: #f8f9fa;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.section-header h2 i {
  color: #ffd700;
  margin-right: 1rem;
}

.section-header p {
  color: #666;
  font-size: 1rem;
}

/* PRODUTOS EM DESTAQUE */
.featured-products {
  padding: 3rem 2rem;
  background: white;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-color: #667eea;
}

.product-icon {
  font-size: 3rem;
  color: #667eea;
  margin-bottom: 0.8rem;
}

.product-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: 600;
}

.product-card p {
  color: #666;
  margin-bottom: 1rem;
}

.price {
  font-size: 1.2rem;
  font-weight: 700;
  color: #28a745;
  display: block;
  margin-bottom: 1rem;
}

.btn-order {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-order:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* PAINEL ADMINISTRATIVO */
.admin-panel {
  padding: 2rem 1rem;
}

.form-container {
  max-width: 700px;
  margin: 0 auto;
  background: white;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.input-group {
  position: relative;
  margin-bottom: 1rem;
}

.input-group i {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: #667eea;
  z-index: 2;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 0.6rem 0.6rem 0.6rem 2.2rem;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  font-family: "Poppins", sans-serif;
}

.input-group input:focus,
.input-group textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-group textarea {
  min-height: 80px;
  resize: vertical;
}

.btn-submit {
  width: 100%;
  background: linear-gradient(45deg, #ffd700, #ffa600);
  color: white;
  border: none;
  padding: 0.8rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 217, 0, 0.5);
}

/* FEATURES */
.features {
  padding: 4rem 2rem;
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-item {
  text-align: center;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.feature-item i {
  font-size: 3rem;
  color: #667eea;
  margin-bottom: 1rem;
}

.feature-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: 600;
}

.feature-item p {
  color: #666;
}
.show {
  display: none;
}
.show a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}
/* -------------------------- CAROUSEL ------------------------- */
.subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
}
.item_caroussel {
  display: none;
}
.active {
  display: block;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}
.caroussel {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: auto;
  margin: 0 auto;
  overflow: hidden;
}

.caroussel .item_caroussel img {
  width: 100%;
  height: auto;
}
.caroussel .dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.caroussel .dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  position: relative;
  border: 2px inset rgb(102, 126, 234);
}
.dot.active {
  background: rgba(102, 126, 234, 0.5);
  border: 2px solid rgb(102, 126, 234);
  padding: 5px;
  width: 10px;
  height: 10px;
  
}
/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-stats {
    gap: 1rem;
  }

  .stat-item {
    padding: 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .nav-menu {
    font-size: 1.2rem;
    display: none;
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    top: 100%;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem;
    width: 70%;
    height: 100vh;
  }
  .show {
    display: block;
  }
}

/* CHATBOT */
.chatbot {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 350px;
  background-color: #fff;
  border: none;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: all 0.3s ease;
  overflow: hidden;
}

.chatbot-header {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: #fff;
  padding: 15px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  border-radius: 20px 20px 0 0;
}

.chatbot-header h1 {
  margin: 0;
  font-size: 1.2em;
  font-weight: 600;
}

.minimize-btn {
  font-size: 1rem;
  transition: transform 0.3s ease;
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 8px;
  border-radius: 50%;
}

.minimize-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.chatbot-body {
  height: 400px;
  max-height: 400px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition:
    height 0.3s ease,
    opacity 0.3s ease;
  background: white;
}

.chatbot.minimized .chatbot-body {
  height: 0;
  opacity: 0;
}

.chatbot.minimized .minimize-btn {
  transform: rotate(180deg);
}

.chatbot.minimized {
  border-radius: 20px;
}

#chatbox {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 400px;
  max-height: 400px;
}

#messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8f9fa;
  max-height: calc(400px - 70px);
  min-height: calc(400px - 70px);
  scroll-behavior: smooth;
}

.chat-input-container {
  padding: 10px 15px;
  background-color: white;
  border-top: 1px solid #e9ecef;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  height: 70px;
  min-height: 70px;
}

#user_input {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid #e9ecef;
  border-radius: 25px;
  outline: none;
  font-size: 14px;
  font-family: "Poppins", sans-serif;
  transition: border-color 0.3s ease;
}

#user_input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#sendBtn {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

#sendBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

#sendBtn i {
  font-size: 1.1rem;
  color: white;
}

/* Mensagens do chat */
.message {
  margin-bottom: 10px;
  padding: 10px 15px;
  border-radius: 15px;
  max-width: 80%;
  word-wrap: break-word;
  animation: fadeIn 0.3s ease;
}

.user-message {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  align-self: flex-end;
  margin-left: auto;
  border-radius: 15px 15px 5px 15px;
}

.bot-message {
  background: white;
  color: #333;
  align-self: flex-start;
  border-radius: 15px 15px 15px 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#messages::-webkit-scrollbar {
  width: 6px;
}

#messages::-webkit-scrollbar-track {
  background: transparent;
}

#messages::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

#messages::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* Footer */
footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
}

footer p {
  font-size: 0.9rem;
  opacity: 0.8;
}
