/* =========================
   INFONEXOS - CSS ESTILO
   ========================= */

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f5f7fa;
  color: #333;
}

header {
  text-align: center;
  padding: 40px 20px;
  background-color: #0d47a1;
  color: white;
}

header img {
  width: 120px;
  margin-bottom: 15px;
}

header h1 {
  margin: 0;
  font-size: 36px;
}

header p {
  margin-top: 10px;
  font-size: 16px;
}

section {
  padding: 40px 20px;
}

h2 {
  text-align: center;
  margin-bottom: 10px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  margin: 0 0 10px;
}

.card p {
  font-size: 14px;
  color: #666;
}

button {
  margin-top: 10px;
  padding: 10px 15px;
  border: none;
  background-color: #0d47a1;
  color: white;
  border-radius: 8px;
  cursor: pointer;
}

button:hover {
  background-color: #1565c0;
}

.contact {
  text-align: center;
  background-color: #e3f2fd;
  padding: 30px;
  border-radius: 10px;
}

.contact .icon {
  width: 20px;
  vertical-align: middle;
  margin-right: 6px;
}

footer {
  text-align: center;
  padding: 15px;
  background: #0d47a1;
  color: white;
  margin-top: 20px;
}

/* SLIDER */
.slider {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  margin: 20px auto;
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  text-align: center;
  position: relative;
}

.slide img {
  width: 100%;
  height: 400px;
  object-fit: contain;
  border-radius: 10px;
  filter: brightness(0.8);
  background-color: #e3f2fd;
}

.slide h2 {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: white;
  background: rgba(0,0,0,0.5);
  padding: 10px;
  border-radius: 5px;
}

/* BOTÕES SLIDER */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
}

.prev { left: 10px; }
.next { right: 10px; }

/* MODAL */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background: rgba(0,0,0,0.5);
}

.modal-content {
  background: #fff;
  margin: 5% auto;
  padding: 20px;
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
  position: relative;
}

.modal-content input, 
.modal-content select {
  width: 100%;
  padding: 8px;
  margin: 6px 0 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.modal-content button {
  width: 100%;
  padding: 10px;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
}

.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 28px;
  cursor: pointer;
}

.modal-product {
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
}

.modal-product button {
  margin-top: 5px;
  background: #0d47a1;
}

.modal-product button:hover {
  background: #1565c0;
}

/* =========================
   PRODUTOS E SERVIÇOS INFO
========================= */

.info-section {
  background: #ffffff;
  padding: 60px 20px;
}

.info-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.info-box {
  background: #f1f5fb;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.14);
  transition: 0.3s;
}

.info-box:hover {
  transform: translateY(-8px);
  background: #e3f2fd;
}

.info-box h3 {
  margin-bottom: 15px;
  color: #0d47a1;
}

.info-box ul {
  padding-left: 18px;
}

.info-box li {
  margin-bottom: 8px;
  font-size: 14px;
}

/* =========================
   CARRINHO
========================= */

.cart-icon {
  position: absolute;
  right: 30px;
  top: 30px;
  font-size: 20px;
  cursor: pointer;
}

.cart-icon span {
  background: red;
  color: white;
  border-radius: 50%;
  padding: 3px 8px;
  font-size: 12px;
}

.cart-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 350px;
    height: 100%;
    background: #409962f2;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    padding: 20px;
    transition: 0.4s;
    z-index: 2000;
    overflow-y: auto;
}

.cart-sidebar.active {
  right: 0;
}

.cart-item {
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
}

.cart-item button {
  background: red;
  padding: 5px;
  font-size: 12px;
}

.product-img {
  width: 100%;
  max-width: 150px;
  height: auto;
  display: block;
  margin: 0 auto 10px;
  border-radius: 10px;
}

.modal-product {
  text-align: center;
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

.toast-msg {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #28a745;
  color: white;
  padding: 12px 18px;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.3s;
  z-index: 9999;
}

.toast-msg.show {
  opacity: 1;
  transform: translateY(0);
}

/* Botão Carrinho (btn-carrinho) */
.btn-carrinho {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background-color: #13883fed;
  color: white;
  font-size: 1.2em;
  font-weight: bold;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 3.89);
}

.btn-carrinho:hover {
  background-color: #1565c0;
  transform: translateY(-3px);  /* Efeito de levitação */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);  /* Sombras mais intensas */
}

.btn-carrinho:active {
  transform: translateY(1px);  /* Efeito ao clicar */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-carrinho i {
  margin-right: 10px;  /* Espaçamento entre ícone e texto */
}

/* Adicionar ícone de carrinho ao lado do texto */
.btn-carrinho .icon {
  font-size: 1.5em;
  margin-right: 10px;
}
