:root {
  --primary-color: #ff6b00; /* Safety Orange */
  --primary-hover: #e56000;
  --bg-color: #0f1115; /* Dark background */
  --surface-color: #1a1d24; /* Lighter dark */
  --text-main: #f1f1f1;
  --text-muted: #a1a1aa;
  --border-color: #272a32;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-mode {
  --bg-color: #f8f9fa;
  --surface-color: #ffffff;
  --text-main: #1f2937;
  --text-muted: #4b5563;
  --border-color: #e5e7eb;
}

body.light-mode header {
  background: rgba(255, 255, 255, 0.9);
}

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

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background: rgba(15, 17, 21, 0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--primary-color);
}

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

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

nav a:hover {
  color: var(--primary-color);
}

.btn {
  background: var(--primary-color);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  display: inline-block;
}

.btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-main);
  transition: transform var(--transition);
}

.theme-btn:hover {
  transform: scale(1.1);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: #fff;
}

.card-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  padding: 4rem 5%;
  min-height: 80vh;
  gap: 3rem;
  background: radial-gradient(circle at top left, rgba(255,107,0,0.1), transparent 40%);
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #fff, #a1a1aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-mode .hero-content h1 {
  background: linear-gradient(to right, #111, #555);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-image {
  flex: 1;
  position: relative;
}

.hero-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  transition: var(--transition);
}

.hero-image img:hover {
  transform: scale(1.02);
}

/* Products Section */
.products {
  padding: 5rem 5%;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--text-main);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.product-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  background: #111;
}

.product-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.product-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: block;
}

.btn-block {
  width: 100%;
  text-align: center;
}

/* About Section */
.about {
  display: flex;
  align-items: center;
  padding: 5rem 5%;
  gap: 4rem;
  background: var(--surface-color);
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.about-content {
  flex: 1;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  text-align: justify;
}

/* Contact Section */
.contact {
  padding: 5rem 5%;
}

.contact-container {
  display: flex;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info {
  flex: 1;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.info-list {
  list-style: none;
}

.info-list li {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.info-list strong {
  color: var(--text-main);
}

.contact-form {
  flex: 1;
  background: var(--surface-color);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .contact-container, .about {
    flex-direction: column;
  }
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-main);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-color);
  background: var(--bg-color);
  color: var(--text-main);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.2);
}

/* Product Details Page */
.product-details {
  padding: 4rem 5%;
}

.product-details-container {
  display: flex;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--surface-color);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.details-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
}

.details-image img {
  width: 100%;
  max-width: 450px;
  border-radius: 50px; /* Borda bem mais arredondada */
  object-fit: cover;
  background: #111;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  display: block;
  margin: 0 auto;
}

.details-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.breadcrumb {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary-color);
}

.details-info h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.details-info .price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.details-info .description {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.features {
  list-style: none;
  margin-bottom: 2.5rem;
}

.features li {
  margin-bottom: 0.8rem;
  color: var(--text-main);
  font-weight: 500;
}

.purchase-actions {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.qty-input {
  width: 80px;
  padding: 0.8rem;
  border: 1px solid var(--border-color);
  background: var(--bg-color);
  color: var(--text-main);
  border-radius: 8px;
  font-size: 1.2rem;
  text-align: center;
}

.btn-large {
  flex: 1;
  font-size: 1.1rem;
  padding: 1rem;
}

/* Footer */
footer {
  background: var(--surface-color);
  padding: 3rem 5%;
  text-align: center;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
}

/* Responsividade Geral */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 5%;
  }
  
  nav ul {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero {
    flex-direction: column;
    padding: 3rem 5%;
    text-align: center;
    min-height: auto;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .hero-content p {
    margin: 0 auto 2rem auto;
  }
  
  .contact-container, .about, .product-details-container {
    flex-direction: column;
    gap: 2rem;
  }

  .product-details-container {
    padding: 1.5rem;
  }
  
  .about-content h2 {
    text-align: center !important;
  }
  
  .section-title, .details-info h1 {
    font-size: 2rem;
  }
  
  .products {
    padding: 3rem 5%;
  }
  
  .product-img {
    height: 200px;
  }
}
