@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

section{
    padding: 100px 50px;
}

.container{
    max-width: 1068px;
    margin-left: auto;
    margin-right: auto;
    background-color: rgb(255, 255, 255);
    border-radius: 10px;
}
.logo{
    display: flex;
    position: relative;
    width: 100px;
    height: 60px;
}
.logo img{
    object-fit: cover;
}

:root{
    --cor-principal:   #f3831f;
    --cor-secundaria: #004786;
    --cor-texto: #444;
    --cor-fundo: #fff;
    --font-size: 25px;
    --font-size-p: 0.938rem;
    --font-size-h1: 45px;
    --z-index: 1000;
    --box-shadow: 0 2px 4px rgba(0,0,0,0.8);
    --transition: all 0.5s ease;
}

  
  
header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 9%;
    z-index: 1000;
    display: flex;
    align-items: center;
    background-color: var(--cor-secundaria);
    justify-content: space-between;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}
.navbar{
    display: flex;
    list-style: none;
}
.navbar li a{
    margin:  0 15px;
    display: inline-block;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    color: var(--cor-fundo);
    transition: var(--transition);
}
.navbar li a:hover{
    transform: translateY(-5px);
    transition: var(--transition);
}

.menu > li {
    position: relative;
    display: inline-block;
  }
  
  .submenu {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 5px;
  }
  
  .menu > li:hover .submenu {
    display: block;
  }
  
  .submenu li {
    display: block;
  }
  
  .submenu li a {
    display: block;
    padding: 10px 15px;
    color: #444;
    font-weight: 500;
    text-decoration: none;
  }
  
  .submenu li a:hover {
    background-color: var(--cor-principal);
    color: white;
    transition: 0.3s ease;
    border-radius: 5px;
  }

  .menu li:hover .submenu {
    display: block;
    transition: all .5s ease;
  } 


.header-icons{
    font-size: var(--font-size);
    cursor: pointer;
    margin: 15px;
}
.header-icons i{
    margin: 10px;
    color: var(--cor-fundo);
    padding: 10px;
    border-radius: 50%;
    transition: var(--transition);
}
.header-icons i:hover{
    transform: scale(1.15);
    transition: var(--transition);
}
.header-icons #menu-icon{
    display: none;
}

#icone-pesquisa{
    font-size: 24px;
    cursor: pointer;
    color: var(--cor-texto);
}



#cart-icon {
    position: relative;
    font-size: 32px;
  }
  
  #contadorCarrinho {
    position: absolute;
    top: -8px;
    right: -8px;
    background: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
   
  }

..container {
  max-width: 900px;
  background: var(--bg-card);
  margin: 60px auto;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  backdrop-filter: blur(6px);
}

.container h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--accent);
  letter-spacing: 1px;
  font-weight: 600;
  font-size: 26px;
}

/* ===== FORM ===== */
label {
  font-weight: 600;
  display: block;
  margin-top: 20px;
  font-size: 15px;
}

select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 2px solid #2b323b;
  background: #0f141b;
  color: var(--text);
  margin-top: 8px;
  font-size: 15px;
  transition: 0.3s;
}

select:focus {
  border-color: var(--accent);
  outline: none;
  background: #111923;
}

/* ===== BUTTON ===== */
button {
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  color: white;
  border: none;
  padding: 14px 20px;
  border-radius: 12px;
  margin-top: 30px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  transition: 0.3s;
  font-weight: 600;
}

button:hover {
  transform: scale(1.02);
  box-shadow: 0 0 10px rgba(255, 115, 0, 0.4);
}

/* ===== COMPONENT CARDS ===== */
.component {
  background: #0f141b;
  border: 1px solid #2b323b;
  border-radius: 12px;
  padding: 15px;
  margin-top: 18px;
  transition: 0.3s;
}

.component:hover {
  border-color: var(--accent2);
  box-shadow: 0 0 8px rgba(255, 115, 0, 0.4);
}

.component img {
  display: block;
  margin: 10px auto;
  max-width: 120px;
  border-radius: 10px;
  transition: transform 0.3s;
}

.component img:hover {
  transform: scale(1.05);
}

/* ===== SUMMARY ===== */
.summary {
  margin-top: 35px;
  padding: 20px;
  background: #10171f;
  border-left: 5px solid var(--accent);
  border-radius: 10px;
  animation: fadeIn 0.4s ease;
}

.summary h3 {
  color: var(--accent);
  margin-bottom: 15px;
}

.error {
  color: var(--error);
  font-weight: bold;
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(10px);}
  to {opacity: 1; transform: translateY(0);}
}

/* ===== BAGUALBOT ===== */
#bagualbot-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(255, 115, 0, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
  z-index: 300;
}

#bagualbot-container:hover {
  transform: scale(1.1);
}

#bagualbot {
  position: relative;
  width: 60px;
  height: 60px;
}

#bot-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  position: relative;
}

#chapeu {
  position: absolute;
  width: 55px;
  top: -10px;
  left: 2px;
  transform-origin: center bottom;
  transition: transform 0.3s ease;
  z-index: 2;
}

#bagualbot-fala {
  position: fixed;
  bottom: 110px;
  right: 30px;
  display: none;
  background: #10171f;
  border: 2px solid var(--accent2);
  border-radius: 15px;
  padding: 12px 15px;
  max-width: 250px;
  color: var(--text);
  font-size: 14px;
  box-shadow: 0 0 12px rgba(255, 115, 0, 0.4);
  z-index: 250;
  animation: fadeIn 0.3s ease;
}

#bagualbot-fala.mostrar {
  display: block;
  animation: subir 0.4s ease forwards;
}

@keyframes subir {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes balancarChapeu {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-15deg); }
  50% { transform: rotate(10deg); }
  75% { transform: rotate(-10deg); }
  100% { transform: rotate(0deg); }
}

#bagualbot-container.animar #chapeu {
  animation: balancarChapeu 0.8s ease;
}
