/* Estilos globais */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s, color 0.3s;
}

/* Tema claro com degradê */
body.light-theme {
  background: linear-gradient(to bottom, #ffffff, #f2f2f2);
  color: #000000;
}

/* Tema escuro */
body.dark-theme {
  background-color: #121212;
  color: #ffffff;
}

/* Garante que links e elementos específicos sejam afetados */
body.dark-theme a, 
body.dark-theme p, 
body.dark-theme h1, 
body.dark-theme h3, 
body.dark-theme span {
  color: #ffffff !important;
}

body.dark-theme a:hover {
  color: #cccccc !important;
}

/* Cabeçalho */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: linear-gradient(to right, #ff0000, #0000ff);
  color: white;
  transition: background 0.3s ease;
}

/* Cabeçalho no tema escuro */
body.dark-theme header {
  background: linear-gradient(to right, #1a1a1a, #333333);
}

/* Botão de alternar tema */
#theme-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
  transition: transform 0.2s ease;
}

#theme-toggle:hover {
  transform: scale(1.1);
}

.logo img {
  max-width: 80px;
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 15px;
}

nav ul li {
  display: inline;
}

nav ul li a {
  text-decoration: none;
  color: white;
  padding: 10px 15px;
  transition: background-color 0.3s ease;
}

nav ul li a:hover {
  background-color: #C62828; 
  border-radius: 4px;
}

.user-options {
  display: flex;
  align-items: center;
  gap: 15px;
  list-style-type: none;
}

.user-options a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: bold;
}

.user-options a i {
  font-size: 30px;
  color: white;
}

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px;
  text-align: center;
}

.text-section {
  max-width: 500px;
  margin-right: 20px;
}

.text-section h2 {
  font-size: 48px;
  color: #D62828;
}

.text-section p {
  font-size: 30px;
  line-height: 1.0;
  color: #333;
}

body.dark-theme .text-section p {
  color: #ddd;
}

.image-section img {
  max-width: 75%;
  height: auto;
  border-radius: 8px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #D62828;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #b71c1c;
}

footer {
  background-color: #D62828;
  color: white;
  text-align: center;
  padding: 20px 0;
  position: relative;
  bottom: 0;
  width: 100%;
  font-size: 1.1em;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Carrinho */
.cart-container {
  position: relative;
  margin-left: 10px;
}

#cart-button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  position: relative;
}

#cart-count {
  background-color: red;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
  position: absolute;
  top: -5px;
  right: -10px;
}

.cart-dropdown {
  position: absolute;
  right: 0;
  top: 30px;
  background-color: white;
  border: 1px solid #ccc;
  width: 250px;
  padding: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  z-index: 1000;
}

body.dark-theme .cart-dropdown {
  background-color: #2a2a2a;
  border: 1px solid #444;
  color: #fff;
}

.cart-dropdown.hidden {
  display: none;
}

#cart-items {
  list-style: none;
  padding-left: 0;
  max-height: 150px;
  overflow-y: auto;
}
