/* Modern UI - Valecross Honda */

/* Averta Font */
@font-face {
  font-family: 'Averta';
  src: url('/assets/fonts/averta-demo-pe/AvertaDemoPE-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Averta';
  src: url('/assets/fonts/averta-demo-pe/AvertaDemoPE-ExtraboldItalic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
}

:root {
  --primary: #c00d24;
  --primary-dark: #a00a1e;
  --primary-light: #e63946;
  --secondary: #1d3557;
  --light: #f8f9fa;
  --dark: #212529;
  --gray: #6c757d;
  --white: #ffffff;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-sm: 4px;
}

/* Global Styles */
body {
  font-family: 'Averta', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  transition: var(--transition);
}

.btn {
  border-radius: var(--radius);
  padding: 0.6rem 1.5rem;
  font-weight: 500;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline-danger {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline-danger:hover, .btn-outline-danger:focus, .btn-outline-danger.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2rem;
  position: relative;
  text-align: center;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary);
}

/* Navbar Styles */
#topo-nav {
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--white);
  padding: 0.5rem 0;
}

.area-topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.navbar {
  padding: 0;
}

.navbar-nav .nav-item {
  position: relative;
  margin: 0 0.5rem;
}

.navbar-nav .nav-link {
  color: #CA131C !important;
  font-weight: 500;
  padding: 1rem 0.8rem;
  position: relative;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
  color: #CA131C !important;
}

.navbar-nav .nav-link:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0;
  background-color: transparent;
  transition: var(--transition);
  display: none;
}

.navbar-nav .nav-link:hover:after, .navbar-nav .nav-link.active:after {
  width: 0;
  display: none;
}

.leadfone {
  font-weight: 700;
  color: var(--primary) !important;
  display: flex;
  align-items: center;
}

.leadfone:before {
  content: '\f095';
  font-family: 'Font Awesome 5 Free';
  margin-right: 0.5rem;
}

/* Hero/Banner Section */
.carousel-item {
  height: 500px;
  overflow: hidden;
  position: relative;
}

.carousel-item img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

.carousel-caption {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.carousel-control-prev, .carousel-control-next {
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
  opacity: 1;
}

/* Category Filter */
.category-filter {
  background-color: var(--light);
  padding: 2rem 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.filter-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.filter-container .btn {
  border-radius: 25px;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  transition: var(--transition);
}

/* Product Cards */
.product-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  background-color: var(--white);
  border: none;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-img-container {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: var(--light);
  overflow: hidden;
}

.product-img-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: var(--transition);
}

.product-card:hover .product-img-container img {
  transform: scale(1.05);
}

.product-card .card-body {
  padding: 1.5rem;
}

.product-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.product-category {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 1rem;
  text-transform: capitalize;
}

.product-link {
  color: var(--primary);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

.product-link:after {
  content: '\f054';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  margin-left: 0.5rem;
  font-size: 0.8rem;
  transition: var(--transition);
}

.product-link:hover:after {
  transform: translateX(3px);
}

/* Info Cards */
.info-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  background-color: var(--white);
  border: none;
  text-align: center;
  padding: 2rem 1.5rem;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.info-card-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.info-card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.info-card-text {
  color: var(--gray);
  margin-bottom: 1.5rem;
}

/* About Section */
.about-section {
  background-color: var(--light);
  padding: 4rem 0;
}

.about-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-img img {
  width: 100%;
  height: auto;
}

.about-content {
  padding: 2rem;
}

.about-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.about-text {
  margin-bottom: 1.5rem;
  color: var(--gray);
}

/* Footer */
footer {
  background-color: #F2F2F2;
  color: #333;
  padding: 4rem 0 2rem;
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-title:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #666;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #333;
  padding-left: 5px;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
}

.footer-contact-icon {
  color: var(--primary);
  margin-right: 1rem;
  font-size: 1.2rem;
  margin-top: 0.2rem;
}

.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 2rem;
  margin-top: 3rem;
  text-align: center;
  font-size: 0.9rem;
  color: #999;
}

.social-links {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #000;
  margin: 0 0.5rem;
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--white);
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: 10px;
  }
  
  .navbar-nav .nav-link {
    padding: 0.8rem;
    text-align: center;
  }
  
  .navbar-nav .nav-link:after {
    display: none;
  }
  
  .carousel-item {
    height: 400px;
  }
  
  .navbar-toggler {
    border: none;
    padding: 8px 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(192, 13, 36, 0.25);
  }
  
  .filter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .filter-container .btn {
    margin: 5px;
    flex-grow: 1;
    max-width: calc(50% - 10px);
  }
}

@media (max-width: 767.98px) {
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }
  
  .carousel-item {
    height: 300px;
  }
  
  .about-content {
    padding: 1.5rem 0;
  }
  
  .about-title {
    font-size: 1.8rem;
  }
  
  .footer-column {
    margin-bottom: 2rem;
    text-align: center;
  }
  
  .footer-title:after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-contact li {
    justify-content: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-bottom .developer-credit {
    margin-top: 10px;
  }
  
  .product-card {
    margin-bottom: 20px;
  }
  
  .product-img-container {
    height: 180px;
  }
  
  .area-topo {
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
  }
  
  .area-topo .navbar-brand {
    margin-bottom: 10px;
  }
  
  .leadfone {
    font-size: 16px;
  }
  
  .category-filter {
    padding: 20px 0;
  }
  
  .category-filter p {
    font-size: 14px;
  }
}

/* Estilos para telas muito pequenas */
@media (max-width: 575.98px) {
  .filter-container .btn {
    max-width: 100%;
    margin: 4px 0;
  }
  
  .product-card {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .social-links a {
    margin: 0 8px;
  }
  
  .btn-contato-phone {
    width: 50px;
    height: 50px;
    right: 15px;
    bottom: 15px;
  }
  
  .ver-estoque-btn {
    padding: 10px 25px;
    font-size: 0.9rem;
  }
  
  .product-title {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .product-detail-title {
    font-size: 1.6rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.8s ease forwards;
}

/* Ver estoque completo button */
.ver-estoque-btn {
  background-color: var(--primary);
  color: white;
  border-radius: 30px;
  padding: 12px 35px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  display: inline-block;
  margin-top: 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.ver-estoque-btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: var(--primary-dark);
  transition: width 0.3s ease;
  z-index: -1;
}

.ver-estoque-btn:hover {
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(192, 13, 36, 0.3);
}

.ver-estoque-btn:hover:before {
  width: 100%;
}

/* Contact button - removed duplicate definition to avoid conflict with default.css */
/* The btn-contato-phone class is already defined in default.css */

/* Product detail page */
.product-detail-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.product-detail-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
}

.product-detail-category {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  text-transform: capitalize;
  font-weight: 500;
}

.product-detail-description {
  margin-bottom: 2rem;
  color: var(--gray);
}

.product-detail-attributes {
  margin-top: 2rem;
}

.attribute-group-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.attribute-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.attribute-list li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.attribute-list li:before {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  color: var(--primary);
  position: absolute;
  left: 0;
  top: 2px;
}

/* IBAMA Seal Styling */
.ibama-seal {
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.ibama-seal:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}
