/* Reset e Estilos Globais */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f8f8f8;
  color: #333;
  line-height: 1.6;
}

/* Header */
header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo-container h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #222;
  letter-spacing: 2px;
}

.logo-container p {
  font-size: 0.8rem;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

nav ul li {
  margin: 0 1rem;
}

nav ul li a {
  text-decoration: none;
  color: #555;
  font-weight: 500;
  transition: color 0.3s;
  padding: 0.5rem 0;
  position: relative;
}

nav ul li a:hover {
  color: #222;
}

nav ul li a.active {
  color: #222;
  font-weight: 600;
}

nav ul li a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #222;
}

.user-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.search-container {
  display: flex;
  align-items: center;
}

.search-container input {
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  border-radius: 20px 0 0 20px;
  outline: none;
  width: 200px;
}

.search-container button {
  background-color: #222;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0 20px 20px 0;
  cursor: pointer;
  transition: background-color 0.3s;
}

.search-container button:hover {
  background-color: #444;
}

.auth-buttons button {
  padding: 0.5rem 1rem;
  border: 1px solid #222;
  background-color: transparent;
  color: #222;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
}

.auth-buttons button:hover {
  background-color: #222;
  color: white;
}

.cart-icon {
  position: relative;
  cursor: pointer;
}

.cart-icon i {
  font-size: 1.5rem;
  color: #222;
}

.cart-count {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: #ff4757;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.7rem;
  font-weight: bold;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5rem 10%;
  background-color: #f1f1f1;
}

.hero-content {
  flex: 1;
  max-width: 500px;
}

.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #222;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #555;
}

.cta-button {
  padding: 0.8rem 2rem;
  background-color: #222;
  color: white;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.cta-button:hover {
  background-color: #444;
}

.hero-image {
  flex: 1;
  max-width: 600px;
}

.hero-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Categories Section */
.categories {
  padding: 5rem 10%;
  text-align: center;
}

.categories h2 {
  font-size: 2rem;
  margin-bottom: 3rem;
  color: #222;
  position: relative;
  display: inline-block;
}

.categories h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: #222;
}

.category-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.category-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  width: 300px;
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.category-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.category-card h3 {
  padding: 1.5rem;
  font-size: 1.2rem;
  color: #222;
}

/* Product Sections */
.product-section {
  padding: 5rem 10%;
}

.product-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #222;
  text-align: center;
}

.category-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  background-color: transparent;
  border: 1px solid #ddd;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
}

.filter-btn:hover {
  border-color: #222;
  color: #222;
}

.filter-btn.active {
  background-color: #222;
  color: white;
  border-color: #222;
}

.carousel-container {
  position: relative;
  margin: 0 auto;
  max-width: 1200px;
}

.carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: 1.5rem;
  padding: 1rem 0;
  scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: white;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.carousel-btn.prev {
  left: -20px;
}

.carousel-btn.next {
  right: -20px;
}

.product-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  min-width: 250px;
  scroll-snap-align: start;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-image {
  height: 200px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.product-info {
  padding: 1.5rem;
}

.product-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 1rem;
}

.add-to-cart {
  width: 100%;
  padding: 0.5rem;
  background-color: #222;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.add-to-cart:hover {
  background-color: #444;
}

/* About Section */
.about-section {
  padding: 5rem 10%;
  background-color: #f1f1f1;
}

.about-section h2 {
  font-size: 2rem;
  margin-bottom: 3rem;
  text-align: center;
  color: #222;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-text {
  flex: 1;
}

.about-text p {
  margin-bottom: 1.5rem;
  color: #555;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Newsletter Section */
.newsletter {
  padding: 5rem 10%;
  text-align: center;
  background-color: #222;
  color: white;
}

.newsletter h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.newsletter p {
  margin-bottom: 2rem;
  opacity: 0.8;
}

#newsletter-form {
  display: flex;
  justify-content: center;
  max-width: 500px;
  margin: 0 auto;
}

#newsletter-form input {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 30px 0 0 30px;
  width: 70%;
  outline: none;
}

#newsletter-form button {
  padding: 0.8rem 1.5rem;
  background-color: #ff4757;
  color: white;
  border: none;
  border-radius: 0 30px 30px 0;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s;
}

#newsletter-form button:hover {
  background-color: #ff6b81;
}

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

.contact-section h2 {
  font-size: 2rem;
  margin-bottom: 3rem;
  text-align: center;
  color: #222;
}

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

.contact-info,
.contact-form {
  flex: 1;
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-info h3,
.contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #222;
}

.contact-info p {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #555;
}

.social-media {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-media a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: #222;
  color: white;
  border-radius: 50%;
  transition: background-color 0.3s;
}

.social-media a:hover {
  background-color: #444;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  outline: none;
}

#contact-form textarea {
  height: 150px;
  resize: vertical;
}

#contact-form button {
  width: 100%;
  padding: 0.8rem;
  background-color: #222;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s;
}

#contact-form button:hover {
  background-color: #444;
}

/* Footer */
footer {
  background-color: #222;
  color: white;
  padding: 3rem 10% 1rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-section h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: #ff4757;
}

.footer-section p {
  margin-bottom: 1rem;
  opacity: 0.8;
}

.footer-section ul {
  list-style: none;
}

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

.footer-section ul li a {
  color: white;
  opacity: 0.8;
  text-decoration: none;
  transition: opacity 0.3s;
}

.footer-section ul li a:hover {
  opacity: 1;
}

.payment-methods {
  display: flex;
  gap: 1rem;
  font-size: 1.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.8;
  font-size: 0.9rem;
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  width: 100%;
  max-width: 400px;
  position: relative;
  animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #777;
  transition: color 0.3s;
}

.close-modal:hover {
  color: #222;
}

.modal h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #222;
  text-align: center;
}

.modal form input {
  width: 100%;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  outline: none;
}

.modal form button {
  width: 100%;
  padding: 0.8rem;
  background-color: #222;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s;
  margin-top: 1rem;
}

.modal form button:hover {
  background-color: #444;
}

.modal p {
  text-align: center;
  margin-top: 1rem;
  color: #555;
}

.modal p a {
  color: #222;
  font-weight: 600;
  text-decoration: none;
}

/* Cart Modal */
.cart-items {
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 1.5rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}

.cart-item-image {
  width: 60px;
  height: 60px;
  border-radius: 5px;
  overflow: hidden;
}

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

.cart-item-details {
  flex: 1;
}

.cart-item-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #222;
  margin-bottom: 0.3rem;
}

.cart-item-price {
  font-size: 0.9rem;
  color: #555;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-item-quantity button {
  width: 25px;
  height: 25px;
  background-color: #f1f1f1;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cart-item-quantity span {
  min-width: 20px;
  text-align: center;
}

.cart-item-remove {
  color: #ff4757;
  cursor: pointer;
  font-size: 1.2rem;
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid #eee;
}

.cart-total {
  font-weight: 700;
  color: #222;
}

#checkout-btn {
  padding: 0.8rem 1.5rem;
  background-color: #ff4757;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s;
}

#checkout-btn:hover {
  background-color: #ff6b81;
}

/* Responsividade */
@media (max-width: 1024px) {
  header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .user-actions {
    width: 100%;
    justify-content: center;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 3rem 5%;
  }

  .hero-content {
    margin-bottom: 2rem;
  }

  .about-content,
  .contact-container {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .category-grid {
    flex-direction: column;
    align-items: center;
  }

  .category-card {
    width: 100%;
    max-width: 350px;
  }

  .modal-content {
    width: 90%;
  }
}

@media (max-width: 480px) {
  .search-container input {
    width: 150px;
  }

  .auth-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }

  #newsletter-form {
    flex-direction: column;
  }

  #newsletter-form input {
    width: 100%;
    border-radius: 30px;
    margin-bottom: 0.5rem;
  }

  #newsletter-form button {
    width: 100%;
    border-radius: 30px;
  }
}
