@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #e1e2e3;
  color: #000;
  min-width: 237px;
  width: 100%;
  margin: 0 auto;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  position: sticky; 
  top: 0;
  z-index: 1000;
  width: 98%;
  margin: 0 auto;
}

.header.scrolled {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.header a {
  color: #ffffff;
  margin-left: 20px;
  text-decoration: none;
  font-weight: bold;
  position: relative;
}

.header a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #ffffff;
  transition: width 0.3s ease-in-out;
}

.header a:hover {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.header a:hover::after,
.header a.active::after {
  width: 100%;
}

.header a.active {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.logo {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.logo:hover {
  opacity: 0.8;
}

.logo h2 {
  margin-left: 10px;
  color: #ffffff;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Burger Menu */
.burger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.burger-menu span {
  width: 25px;
  height: 3px;
  background-color: #ffffff;
  transition: 0.3s;
}

/* Menu Overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Responsive Menu (max-width: 828px) */
@media (max-width: 828px) {
  .header {
    padding: 10px 20px;
  }

  .burger-menu {
    display: flex;
    z-index: 1001;
  }

  .logo img {
    height: 18px;
  }

  .logo h2 {
    font-size: 1rem;
  }

  .header nav {
    display: flex;
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: rgba(15, 50, 120, 0.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    padding-top: 80px;
    z-index: 1000;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease-in-out;
  }

  .header nav.active {
    right: 0;
  }

  .header nav a,
  .header nav button {
    margin: 10px 0;
    margin-left: 0;
  }

  /* Staggered Animation */
  .header nav.active a,
  .header nav.active button {
    opacity: 0;
    animation: slideInRight 0.4s ease forwards;
  }

  .header nav.active>*:nth-child(1) {
    animation-delay: 0.1s;
  }

  .header nav.active>*:nth-child(2) {
    animation-delay: 0.2s;
  }

  .header nav.active>*:nth-child(3) {
    animation-delay: 0.3s;
  }

  .header nav.active>*:nth-child(4) {
    animation-delay: 0.4s;
  }

  .header-controls {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

/* Prevent overlap on extremely small screens */
@media (max-width: 370px) {
  .logo h2 {
    display: none;
  }

  .header {
    padding: 10px;
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Blur effect when menu is open */
body.menu-open .hero,
body.menu-open .produtos,
body.menu-open .sobre,
body.menu-open .footer,
body.menu-open .whatsapp-float,
body.menu-open .back-to-top {
  filter: blur(5px);
  pointer-events: none;
  transition: filter 0.3s ease;
}

.hero {
  padding: 120px 40px;
  text-align: center;
  background-color: #1a1a1a;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  color: #ffffff;
  position: relative;
  width: 98%;
  margin: 0 auto;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.h1small {
  font-size: 0.90rem;
  font-style: italic;
}

.hero button {
  margin-top: 30px;
  background: #0033ff;
  border: none;
  padding: 15px 30px;
  color: #e1e2e3;
  cursor: pointer;
  border-radius: 7px;
  font-size: medium;
  font-weight: 500;
}

.hero button:hover {
  color: rgb(255, 255, 255);
  background: #3f5cc5;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
}

.scroll-indicator span {
  display: block;
  width: 20px;
  height: 20px;
  border-bottom: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
  margin: -10px;
  animation: scroll-pulse 2s infinite;
}

.scroll-indicator span:nth-child(2) {
  animation-delay: -0.2s;
}

.scroll-indicator span:nth-child(3) {
  animation-delay: -0.4s;
}

@keyframes scroll-pulse {
  0% {
    opacity: 0;
    transform: rotate(45deg) translate(-20px, -20px);
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: rotate(45deg) translate(20px, 20px);
  }
}

.produtos,
.sobre {
  padding: 60px 40px;
}

.sobre p {
  text-align: justify;
}

.product-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}


.produto {
  background: #f4f4f4;
  color: #000;
  padding: 20px;
  margin-top: 20px;
  border-radius: 18px;
  text-align: center;
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.produto img {
  width: 15vw;
  height: auto;
  border-radius: 8px;
}

.produto h4 {
  margin-top: 15px;
}

.produto button {
  margin-top: 10px;
  background: #1f4cff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  color: #e1e2e3;
  cursor: pointer;
}

.produto button:hover {
  color: rgb(255, 255, 255);
  background: #3f9fc5;
}

.new-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #e74c3c;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: bold;
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.footer {
  text-align: center;
  padding: 20px;
  background: #050a18;
  color: #e1e2e3;
  font-size: 0.9rem;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-ceo {
  font-weight: 500;
  margin: 5px 0;
  color: #ffffff;
}

.ceo-link {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s;
}

.ceo-link:hover {
  color: #8794c5;
  text-decoration: underline;
}

.footer-partners {
  margin: 10px 0;
  text-align: center;
}

.footer-partners h4 {
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: #bbb;
  font-weight: 500;
}

.partners-logos {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.partner-logo {
  height: 30px;
  width: auto;
  opacity: 0.6;
  transition: opacity 0.3s, filter 0.3s;
  filter: grayscale(100%);
}

.partner-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.footer-socials {
  display: flex;
  gap: 20px;
  margin: 5px 0;
}

.footer-socials a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  opacity: 0.8;
  font-size: 1.5rem;
  /* Tamanho dos ícones */
  transition: opacity 0.3s, color 0.3s;
}

.footer-socials a:hover {
  opacity: 1;
  color: #1f4cff;
}

/* Social Tooltip */
.footer-socials a {
  position: relative;
}

.footer-socials a::after {
  content: attr(title);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.footer-socials a:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-5px);
}

.footer-legal a {
  color: inherit;
  text-decoration: none;
  font-size: 0.8rem;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.footer-legal a:hover {
  opacity: 1;
  text-decoration: underline;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1500;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-content {
  background-color: #e1e2e3;
  color: #000;
  margin: 10% auto;
  padding: 30px;
  border: 1px solid #888;
  width: 80%;
  max-width: 600px;
  border-radius: 10px;
  position: relative;
  animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close {
  color: #aaa;
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.modal-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.modal-content p {
  margin-bottom: 10px;
  font-size: 1rem;
}

.download-btn {
  display: inline-block;
  margin: 0;
  background-color: #1f4cff;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.download-btn:hover {
  background-color: #3a66ff;
}

.download-btn.downloading {
  background-color: #882001;
  cursor: not-allowed;
}

.download-btn.downloading:hover {
  background-color: #1f4cff;
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.share-action-btn {
  background-color: #2ecc71;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.share-action-btn:hover {
  background-color: #27ae60;
}

/* Carousel Styles */
.carousel {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 8px;
  background: transparent;
  height: 300px;
}

.carousel-inner {
  display: flex;
  transition: transform 0.4s ease-in-out;
  height: 100%;
}

.carousel-item {
  min-width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.carousel-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: none;
  cursor: zoom-in;
}

.carousel-item video {
  max-width: 100%;
  max-height: 100%;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
  font-size: 18px;
  -webkit-user-select: none;
  user-select: none;
}

.carousel-control:hover {
  background: rgba(0, 0, 0, 0.8);
}

.carousel-control.prev {
  left: 0;
}

.carousel-control.next {
  right: 0;
}

.carousel-dots {
  text-align: center;
  position: absolute;
  bottom: 10px;
  width: 100%;
  z-index: 15;
}

.dot {
  cursor: pointer;
  height: 10px;
  width: 10px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.dot.active,
.dot:hover {
  background-color: #717171;
}

/* Spinner */
.carousel-spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 4px solid #3498db;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Carousel Error */
.carousel-error-msg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #e74c3c;
  width: 100%;
  height: 100%;
  text-align: center;
}

/* Zoom Modal */
.zoom-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.zoom-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  animation: zoom 0.6s;
}

@keyframes zoom {
  from {
    transform: scale(0)
  }

  to {
    transform: scale(1)
  }
}

.close-zoom {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close-zoom:hover,
.close-zoom:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* Dynamic Elements & Animations */

.load-more-btn {
  display: none;
  margin: 20px auto;
  padding: 10px 20px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

.pagination-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px auto;
}

.pagination-container button {
  padding: 8px 15px;
  border: 1px solid #ddd;
  background-color: #fff;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s;
}

.pagination-container button.active,
.pagination-container button:hover:not(:disabled) {
  background-color: #1f4cff;
  color: white;
  border-color: #1f4cff;
}

.pagination-container button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.fade-out {
  animation: fadeOut 0.3s forwards;
}

.product-count {
  text-align: right;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: #000;
  font-weight: 500;
}

/* Dark Mode & Transitions */
body,
.header,
.footer,
.produto,
.modal-content,
input,
button,
.product-count,
h2,
h3,
h4,
p,
a,
span,
.download-btn {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}


body.dark-mode {
  background-color: #121212;
  color: #ffffff;
}

body.dark-mode .header {
  background-color: #1f1f1f;
  border-bottom: 1px solid #333;
}

body.dark-mode .footer {
  background-color: #1f1f1f;
  border-top: 1px solid #333;
}

body.dark-mode .produto {
  background-color: #1e1e1e;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  color: #ffffff;
}

body.dark-mode .produto:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
  border: 1px solid #444;
}

body.dark-mode .produto h4 {
  color: #ffffff;
}

body.dark-mode .modal-content {
  background-color: #1e1e1e;
  color: #ffffff;
  border: 1px solid #333;
}

body.dark-mode .close {
  color: #ffffff;
}

body.dark-mode .product-count {
  color: #ccc;
}

body.dark-mode input {
  background-color: #333;
  color: #fff;
  border: 1px solid #555;
}

body.dark-mode .suggestions-container {
  background-color: #333;
  border-color: #555;
}

body.dark-mode .suggestion-item {
  border-bottom: 1px solid #444;
  color: #fff;
}

/* Search Bar Customization */
.search-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.input-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
}

#search-bar {
  padding: 12px 20px;
  width: 100%;
  max-width: 100%;
  border: 2px solid #ddd;
  border-radius: 25px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

#search-bar:focus {
  border-color: #1f4cff;
  box-shadow: 0 0 8px rgba(31, 76, 255, 0.3);
}

#search-button {
  margin: 0;
  padding: 12px 25px;
  background-color: #1f4cff;
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

#search-button:hover {
  background-color: #3a66ff;
}

/* Suggestions */
.suggestions-container {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 0 0 15px 15px;
  z-index: 800;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.suggestions-container:empty {
  display: none;
  border: 0;
  box-shadow: none;
}

.suggestion-item {
  padding: 10px 20px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.suggestion-item:hover {
  background-color: #f0f0f0;
}

/* Reset Zoom Button */
.reset-zoom-btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: 1px solid white;
  border-radius: 25px;
  cursor: pointer;
  z-index: 2001;
  font-size: 14px;
  transition: background 0.3s;
}

.reset-zoom-btn:hover {
  background: rgba(0, 0, 0, 0.9);
}

/* Share Modal Styles */
.share-content {
  max-width: 400px;
  text-align: center;
}

.share-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.share-option {
  display: block;
  padding: 12px;
  text-decoration: none;
  color: white;
  border-radius: 5px;
  font-weight: 500;
  transition: opacity 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.share-option:hover {
  opacity: 0.9;
}

.whatsapp {
  background-color: #25D366;
}

.facebook {
  background-color: #1877F2;
}

.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.x {
  background-color: #000000;
}

.copy {
  background-color: #7f8c8d;
}

.close-share {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #aaa;
}

.close-share:hover {
  color: #000;
}

body.dark-mode .close-share:hover {
  color: #fff;
}

/* Reading Progress Bar */
.progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 10000;
}

.progress-bar {
  height: 100%;
  background: #1f4cff;
  width: 0%;
  transition: width 0.1s ease-out;
}

/* Typewriter Cursor */
.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background-color: #1f4cff;
  animation: blink 0.7s infinite;
  margin-left: 5px;
  vertical-align: text-bottom;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: transform 0.3s, background-color 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #128c7e;
}

.whatsapp-icon {
  width: 35px;
  height: 35px;
  fill: white;
}

/* WhatsApp Shake Animation */
@keyframes shake {
  0% {
    transform: scale(1) rotate(0deg);
  }

  10%,
  20% {
    transform: scale(0.9) rotate(-3deg);
  }

  30%,
  50%,
  70%,
  90% {
    transform: scale(1.1) rotate(3deg);
  }

  40%,
  60%,
  80% {
    transform: scale(1.1) rotate(-3deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
  }
}

.shake-anim {
  animation: shake 1s ease-in-out;
}

/* Back to Top Button */
.back-to-top {
  display: none;
  /* Controlado pelo JS */
  position: fixed;
  bottom: 90px;
  /* Acima do botão WhatsApp */
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: rgba(31, 76, 255, 0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.back-to-top:hover {
  background-color: rgba(31, 76, 255, 0.9);
  transform: translateY(-3px);
}

/* Confetti Effect */
.confetti {
  position: fixed;
  top: -10px;
  width: 10px;
  height: 10px;
  background-color: #f00;
  z-index: 9999;
  pointer-events: none;
  border-radius: 2px;
}

@keyframes confetti-fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* News Page Styles */
.news-section {
  padding: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.news-card {
  background: #f4f4f4;
  color: #000;
  padding: 30px;
  border-radius: 18px;
  width: 100%;
  max-width: 800px;
  /* Um pouco maior que os cards de produto */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

body.dark-mode .news-card {
  background-color: #1e1e1e;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

body.dark-mode .news-card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6);
  border: 1px solid #444;
}

.news-card img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
}

.news-card h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #1f4cff;
}

.news-card p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.news-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  background-color: transparent;
  color: #1f4cff;
  border: 2px solid #1f4cff;
  padding: 8px 20px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.news-link-btn:hover {
  background-color: #1f4cff;
  color: white;
  box-shadow: 0 4px 10px rgba(31, 76, 255, 0.3);
}

.like-btn {
  background: none;
  border: 1px solid #ddd;
  padding: 5px 10px;
  border-radius: 20px;
  cursor: pointer;
  color: #555;
  font-size: 0.9rem;
  margin-top: 10px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
}

.like-btn.liked {
  color: #e74c3c;
  border-color: #e74c3c;
  background-color: rgba(231, 76, 60, 0.1);
}

body.dark-mode .like-btn {
  border-color: #444;
  color: #ccc;
}

body.dark-mode .like-btn.liked {
  color: #e74c3c;
  border-color: #e74c3c;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.comment-form input[type="text"],
.comment-form textarea,
.comment-form input[type="file"] {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background-color: #fff;
  color: #333;
  font-size: 0.95rem;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
  outline: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.comment-form input[type="text"]:focus,
.comment-form textarea:focus {
  border-color: #1f4cff;
  box-shadow: 0 0 0 4px rgba(31, 76, 255, 0.1);
  background-color: #fff;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.comment {
  background: rgba(0, 0, 0, 0.05);
  padding: 15px;
  border-radius: 8px;
  display: flex;
  gap: 15px;
}

body.dark-mode .comment {
  background: rgba(255, 255, 255, 0.05);
}

.comment-content {
  flex: 1;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.comment-content h5 {
  margin-bottom: 5px;
  font-weight: bold;
}

.comment-rating {
  color: #f1c40f;
  font-size: 0.9rem;
  margin-bottom: 5px;
  letter-spacing: 2px;
}

.comment-img {
  max-width: 150px;
  margin-top: 10px;
  border-radius: 5px;
  display: block;
}

.comment-actions {
  margin-top: 5px;
}

.comment-like-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  color: #777;
  display: flex;
  align-items: center;
  gap: 4px;
}

.comment-like-btn.liked {
  color: #1f4cff;
}

.sort-comments-select {
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  background-color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
}

body.dark-mode .sort-comments-select {
  background-color: #333;
  color: #fff;
  border-color: #555;
}

/* Nested Comments / Replies */
.comment-reply-container {
  margin-left: 10px;
  margin-top: 10px;
  border-left: 2px solid #ddd;
  padding-left: 10px;
}

.reply-btn {
  background: none;
  border: none;
  color: #555;
  cursor: pointer;
  font-size: 0.85rem;
  margin-left: 15px;
  font-weight: 500;
}

.reply-btn:hover {
  color: #1f4cff;
  text-decoration: underline;
}

.reply-form-container {
  margin-top: 10px;
  display: none;
}

.reply-form-container.active {
  display: block;
}

/* Remove background for nested comments to prevent stacking darkness */
.comment .comment {
  background: transparent;
  padding: 10px 0 0 0;
}

/* News Modal Specifics */
.news-modal-overlay {
  background-color: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.news-modal-content {
  width: 75%;
  max-width: 1000px;
  margin: 5vh auto;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Dark Mode Inputs */
body.dark-mode .comment-form input[type="text"],
body.dark-mode .comment-form textarea,
body.dark-mode .comment-form input[type="file"] {
  background-color: #252525;
  border-color: #444;
  color: #e1e2e3;
  box-shadow: none;
}

body.dark-mode .comment-form input[type="text"]:focus,
body.dark-mode .comment-form textarea:focus {
  border-color: #3a66ff;
  background-color: #2a2a2a;
  box-shadow: 0 0 0 4px rgba(58, 102, 255, 0.15);
}

body.dark-mode .comment-form input[type="file"] {
  padding: 10px;
}

/* File Input Customization */
.comment-form input[type="file"]::file-selector-button {
  display: none;
}

/* News Search */
.news-search-container {
  max-width: 600px;
  margin: 50px auto 40px auto;
  display: flex;
  gap: 10px;
  padding: 0 20px;
}

.news-search-input {
  flex: 1;
  padding: 12px 20px;
  border: 2px solid #ddd;
  border-radius: 25px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.news-search-input:focus {
  border-color: #1f4cff;
}

body.dark-mode .news-search-input {
  background-color: #252525;
  border-color: #444;
  color: #fff;
}

/* Notification System */
.notification-wrapper {
  position: relative;
  display: inline-block;
  margin-left: 10px;
}

.notification-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: #fff;
  position: relative;
  padding: 5px;
}

.notification-badge {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #e74c3c;
  color: white;
  border-radius: 50%;
  padding: 2px 5px;
  font-size: 0.7rem;
  display: none;
  animation: pulse-notification 2s infinite;
}

@keyframes pulse-notification {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
  }

  70% {
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(231, 76, 60, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
  }
}

.notification-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  width: 300px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 1002;
  max-height: 400px;
  overflow-y: auto;
}

.notification-dropdown.active {
  display: block;
}

.notification-header {
  padding: 10px;
  border-bottom: 1px solid #eee;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notification-item {
  padding: 10px;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
  cursor: pointer;
}

.notification-item:hover {
  background-color: #f9f9f9;
}

.notification-item.unread {
  background-color: #e8f0fe;
}

body.dark-mode .notification-dropdown {
  background-color: #1e1e1e;
  border-color: #333;
}

body.dark-mode .notification-item:hover {
  background-color: #2a2a2a;
}

body.dark-mode .notification-item.unread {
  background-color: #2c3e50;
}

/* FAQ Section */
.faq-section {
  padding: 60px 40px;
  background-color: #f4f4f4;
  text-align: center;
}

body.dark-mode .faq-section {
  background-color: #1a1a1a;
}

.faq-container {
  max-width: 800px;
  margin: 30px auto 0;
  text-align: left;
}

.faq-item {
  background: #fff;
  margin-bottom: 10px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, background-color 0.3s, border-color 0.3s;
}

.faq-item.scroll-hidden {
  opacity: 0;
  transform: translateY(30px);
}

.faq-item.visible {
  opacity: 1;
  transform: translateY(0);
}

body.dark-mode .faq-item {
  background: #1e1e1e;
  border: 1px solid #333;
}

.faq-question {
  width: 100%;
  padding: 20px;
  border: none;
  background: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: inherit;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 20px;
}

.faq-answer p {
  padding-bottom: 20px;
  color: #666;
}

body.dark-mode .faq-answer p {
  color: #ccc;
}

.faq-icon {
  transition: transform 0.3s;
  font-size: 1.5rem;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}


.news-search-btn {
  padding: 12px 25px;
  background-color: #1f4cff;
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.news-search-btn:hover {
  background-color: #3a66ff;
}

/* Product Views Counter */
.product-views {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.85rem;
  color: #666;
  margin-top: 5px;
}

body.dark-mode .product-views {
  color: #aaa;
}

/* Contact Modal Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background-color: #fff;
  color: #333;
  font-family: 'Poppins', sans-serif;
  outline: none;
  transition: border-color 0.3s;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
  background-color: #252525;
  border-color: #444;
  color: #e1e2e3;
}

/* Zoom Spinner */
.zoom-spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 4px solid #3498db;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2002;
}

/* Star Rating */
.rating-container {
  margin: 10px 0 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.stars {
  display: inline-flex;
  cursor: pointer;
}

.star {
  font-size: 1.8rem;
  color: #ccc;
  transition: color 0.2s;
}

.star.filled {
  color: #f1c40f;
}

/* Rating Form */
.rating-form {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rating-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  resize: vertical;
  min-height: 60px;
  font-family: inherit;
}

body.dark-mode .rating-form textarea {
  background-color: #333;
  color: #fff;
  border-color: #555;
}

/* Toast Notification */
.toast-notification {
  visibility: hidden;
  min-width: 250px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 5px;
  padding: 16px;
  position: fixed;
  z-index: 10000;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.5s, bottom 0.5s, visibility 0.5s;
}

.toast-notification.show {
  visibility: visible;
  opacity: 1;
  bottom: 50px;
}

.toast-notification.error {
  background-color: #e74c3c;
}

.toast-notification.success {
  background-color: #2ecc71;
}

/* Custom Dialog (Alert/Prompt) */
.custom-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.custom-dialog-overlay.active {
  opacity: 1;
  visibility: visible;
}

.custom-dialog-box {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  text-align: center;
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-dialog-overlay.active .custom-dialog-box {
  transform: scale(1);
}

body.dark-mode .custom-dialog-box {
  background: #1e1e1e;
  color: #fff;
  border: 1px solid #333;
}

.custom-dialog-box h3 {
  margin-bottom: 10px;
  color: #1f4cff;
}

.custom-dialog-actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.dialog-btn {
  padding: 8px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: 0.2s;
}

.ok-btn {
  background-color: #1f4cff;
  color: white;
}

.ok-btn:hover {
  background-color: #3a66ff;
}

.cancel-btn {
  background-color: #ddd;
  color: #333;
}

.cancel-btn:hover {
  background-color: #ccc;
}

body.dark-mode .cancel-btn {
  background-color: #333;
  color: #ddd;
}

body.dark-mode .cancel-btn:hover {
  background-color: #444;
}

.custom-dialog-input {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  outline: none;
}

body.dark-mode .custom-dialog-input {
  background: #252525;
  border-color: #444;
  color: #fff;
}

/* News Expansion Animation */
.short-text {
  transition: opacity 0.2s ease-out;
  opacity: 1;
}

.full-text {
  overflow: hidden;
  transition: height 0.5s ease-out, opacity 0.5s ease-out;
}

/* Responsive Adjustments for News Page */
@media (max-width: 768px) {
  .news-section {
    padding: 30px 20px;
  }

  .news-card {
    padding: 25px;
  }
}

@media (max-width: 480px) {
  .news-section {
    padding: 20px 10px;
  }

  .news-card {
    padding: 15px;
    border-radius: 12px;
  }

  .news-card h3 {
    font-size: 1.4rem;
  }

  .news-search-container {
    padding: 0 10px;
  }
}

@media (max-width: 600px) {
  .news-search-container {
    flex-direction: column;
  }

  .news-search-btn {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .search-container {
    flex-direction: column;
    padding: 0 20px;
  }

  #search-button {
    width: 100%;
  }

  .input-wrapper {
    width: 100%;
  }
}

/* --- Estilos Extraídos do HTML --- */

.login-btn {
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 5px;
  border: none;
  background: transparent;
  color: #ffffff;
  min-height: 38px;
}

.login-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 180px;
}

.login-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.login-user-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 828px) {
  .login-user-chip {
    max-width: 44px;
  }

  .login-user-name {
    display: none;
  }
}

#mark-all-read {
  font-size: 0.7rem;
  background: none;
  border: none;
  color: blue;
  cursor: pointer;
}

#logout-btn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
}

#rating-count,
#profile-email {
  font-size: 0.9rem;
  color: #666;
}

#news-modal-date {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

#news-modal-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

#news-modal-body {
  line-height: 1.6;
  font-size: 1rem;
}

#news-modal-comments-container {
  margin-top: 30px;
  border-top: 1px solid #ddd;
  padding-top: 20px;
}

#news-modal-actions {
  justify-content: flex-start;
  margin-top: 20px;
}

.close-privacy,
.close-contact,
.close-login {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 28px;
  cursor: pointer;
}

.privacy-content-scroll {
  max-height: 60vh;
  overflow-y: auto;
  line-height: 1.6;
  padding-right: 10px;
}

/* Desktop Header Alignment */
@media (min-width: 829px) {
  .header {
    justify-content: flex-start;
  }

  .logo {
    order: 1;
    margin-right: auto;
  }

  #nav-menu {
    order: 2;
    display: flex !important;
    align-items: center;
    gap: 20px;
  }

  .header-controls {
    order: 3;
    margin-left: 20px;
    position: static;
    transform: none;
  }

  .burger-menu {
    display: none;
  }
}

.main-spinner {
  border: 5px solid #f3f3f3;
  border-top: 5px solid #1f4cff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 50px auto;
}


/* Floating Entrance Animation */
@keyframes floatEntrance {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


.whatsapp-float {
  width: 50px;
  height: 50px;
}

.whatsapp-float,
.back-to-top {
  animation: floatEntrance 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.whatsapp-float {
  animation-delay: 0.2s;
}

.back-to-top {
  animation-delay: 0.3s;
}

/* Small Screens - Reduce Floating Buttons to ~60% */
@media (max-width: 600px) {
  .whatsapp-float {
    width: 30px;
    height: 30px;
    right: 10px;
    bottom: 10px;
  }

  .whatsapp-icon {
    width: 35px;
    height: 35px;
  }

  .back-to-top {
    width: 30px;
    height: 30px;
    right: 10px;
    bottom: 55px;
    font-size: 0.8rem;
  }

}

/* Profile Page Styles */
.profile-img-wrapper {
  top: 8;
  position: relative;
  width: 150px;
  height: 150px;
  margin-bottom: 15px;
  cursor: pointer;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
  border: 3px solid #fff;
  position: relative;
}

.profile-img-wrapper:hover .profile-overlay {
  opacity: 1;
}

.profile-img-wrapper:hover {
  transform: scale(1.05);
}

.profile-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transition: opacity 0.3s;
}

.edit-btn {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.4s;
}

.edit-btn:hover {
  color: #1f4cff;
  font-size: 1.01rem;
}

/* Profile Page Centering */
.profile-container {
  text-align: center;
}

.profile-header {
  margin: 50px 0 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  justify-content: center;
  text-align: center;
}

.profile-header>div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Auth Modal Styles */
.auth-tabs {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
}

.auth-tab {
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-weight: bold;
  color: #666;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}

.auth-tab.active {
  color: #1f4cff;
  border-bottom: 2px solid #1f4cff;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.auth-form input,
.auth-form select {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  width: 100%;
}

body.dark-mode .auth-form input,
body.dark-mode .auth-form select {
  background-color: #252525;
  border-color: #444;
  color: #fff;
}

.auth-separator {
  margin: 20px 0;
  border-top: 1px solid #eee;
  position: relative;
}

.auth-separator span {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #e1e2e3;
  padding: 0 10px;
  color: #888;
  font-size: 0.8rem;
}

body.dark-mode .auth-separator span {
  background: #1e1e1e;
  /* Match dark modal bg */
}

.password-strength-container {
  width: 100%;
  height: 4px;
  background: #eee;
  margin-top: 5px;
  border-radius: 2px;
  overflow: hidden;
}

.password-strength-bar {
  height: 100%;
  width: 0;
  transition: width 0.3s, background-color 0.3s;
}

.forgot-password-link {
  font-size: 0.8rem;
  color: #1f4cff;
  text-decoration: none;
  align-self: flex-end;
  margin-bottom: 10px;
  cursor: pointer;
}

.forgot-password-link:hover {
  text-decoration: underline;
}

/* Full Screen Spinner */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 20000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: white;
}

.loading-spinner {
  border: 5px solid #f3f3f3;
  border-top: 5px solid #1f4cff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

/* Zoom Error Message */
#zoom-error {
  display: none;
  color: #ff6b6b;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2001;
}

#zoom-error i {
  font-size: 2rem;
  margin-bottom: 10px;
}

/* --- JS Injected Styles Moved to CSS --- */


/* Product Card */
.product-price {
  font-weight: bold;
  margin-top: 5px;
}

.product-price.paid {
  color: #e74c3c;
}

.product-price.free {
  color: #2ecc71;
}

.product-rating-list {
  margin: 5px 0;
  color: #f1c40f;
  font-size: 1.2rem;
}

.rating-value {
  font-size: 0.9rem;
  color: #666;
}

/* News Card */
.news-date {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.news-extra-image {
  margin-top: 15px;
  width: 100%;
  border-radius: 8px;
}

.news-extra-text {
  margin-top: 10px;
}

.news-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* News Modal */
.news-modal-body-text {
  margin-bottom: 15px;
}

.comments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.comments-header h3 {
  margin: 0;
}

.comment-form-submit {
  width: fit-content;
}

/* Comments */
.comment-date {
  font-weight: normal;
  color: #888;
}

.reply-submit-btn {
  width: fit-content;
  font-size: 0.8rem;
  padding: 8px 15px;
}

.comments-unavailable {
  color: #888;
  font-size: 0.9rem;
}

.no-results-msg {
  width: 100%;
  text-align: center;
  padding: 20px;
}

.empty-notifications {
  padding: 10px;
  text-align: center;
  color: #888;
}

/* --- Migrated Styles from JS --- */

/* Profile Image & Container */
#profile-img {
  border-radius: 50%;
}

#profile-img-container {
  margin: 50px auto;
  display: flex;
  justify-content: center;
}

/* Login Icon */
.login-icon {
  font-size: 1.5rem;
}

/* Cookie Banner */
.cookie-banner {
  display: none;
  /* Toggled by JS */
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #222;
  color: #fff;
  padding: 15px;
  text-align: center;
  z-index: 10000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  font-family: sans-serif;
}

.cookie-text {
  margin: 0 0 10px 0;
  font-size: 14px;
  display: inline-block;
  margin-right: 10px;
}

.cookie-link {
  color: #4CAF50;
  text-decoration: underline;
}

.cookie-btn {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

/* Profile Preview Modal */
.profile-preview-modal {
  display: none;
  /* Toggled by JS */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  z-index: 10001;
  align-items: center;
  justify-content: center;
}

.profile-preview-content {
  background: var(--card-bg, #fff);
  width: 65%;
  max-width: 500px;
  max-height: max-content;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 10px 25px rgba(95, 21, 21, 0.2);
}

.profile-preview-title {
  margin: 0;
  color: var(--text-color, #333);
}

.profile-preview-image-box {
  width: 100%;
  height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
}

.profile-preview-img {
  /* max-width: 100%;
  max-height: 100%; */
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.profile-action-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
}

.btn-danger {
  flex: 1;
  background: #e74c3c;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.btn-primary {
  flex: 1;
  background: #3498db;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.btn-secondary {
  flex: 1;
  background: #95a5a6;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.btn-success {
  flex: 1;
  background: #2ecc71;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.close-preview-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-color, #333);
}

/* Upload Progress */
.upload-progress-container {
  display: none;
  width: 100%;
  margin-bottom: 15px;
}

.upload-progress-track {
  width: 100%;
  background: #ccc;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
}

.upload-progress-bar {
  width: 0%;
  height: 100%;
  background: #2ecc71;
  transition: width 0.2s;
}

.upload-progress-text {
  font-size: 12px;
  margin-top: 5px;
  color: #333;
}

/* Comment Image */
.comment-img {
  cursor: zoom-in;
}

/* --- Product Page (Dynamic) --- */
.product-page {
  padding: 40px 20px 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.product-page-header {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 20px;
}

.product-page-back {
  background: none;
  border: 1px solid #333;
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.product-page-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.product-page-media {
  background: #111;
  border-radius: 16px;
  padding: 18px;
}

.product-page-carousel {
  margin: 0;
  touch-action: pan-y;
}

.product-page-carousel .carousel-inner {
  will-change: transform;
}

.product-page-media img,
.product-page-media video,
.product-page-media iframe {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.product-page-media iframe {
  aspect-ratio: 16 / 9;
  min-height: 220px;
  border: 0;
  background: #000;
}

.product-page-thumbnails {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  gap: 8px;
}

.product-page-thumb {
  position: relative;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  background: #1e1e1e;
  cursor: pointer;
  min-height: 58px;
}

.product-page-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.product-page-thumb.active {
  border-color: #1f4cff;
  box-shadow: 0 0 0 2px rgba(31, 76, 255, 0.25);
}

.thumb-type-badge {
  position: absolute;
  left: 6px;
  bottom: 6px;
  font-size: 0.72rem;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border-radius: 999px;
  padding: 3px 6px;
  line-height: 1;
}

.thumb-type-badge.yt {
  background: rgba(255, 0, 0, 0.9);
}

.thumb-type-badge.video {
  background: rgba(17, 17, 17, 0.85);
}

.thumb-duration {
  position: absolute;
  right: 6px;
  bottom: 6px;
  font-size: 0.66rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  border-radius: 5px;
  padding: 2px 6px;
}

.thumb-video-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #ddd;
  font-size: 0.7rem;
  letter-spacing: 0.4px;
}

#product-page-media-fallback:empty {
  display: none;
}

.product-page-info h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.product-page-subtitle {
  color: #cfcfcf;
  margin-bottom: 16px;
}

.product-page-meta {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: #bdbdbd;
  font-size: 0.95rem;
}

.product-page-description {
  line-height: 1.6;
  color: #e0e0e0;
  margin-bottom: 20px;
}

.product-page-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: end;
}

.product-page-share-group {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.product-page-share-label {
  font-size: 0.82rem;
  color: #a9a9a9;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.product-page-share-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 8px;
  align-items: stretch;
}

#product-page-download {
  width: 100%;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.2px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2f63ff 0%, #1f4cff 100%);
  box-shadow: 0 10px 24px rgba(31, 76, 255, 0.35);
}

#product-page-download:hover {
  background: linear-gradient(135deg, #3e71ff 0%, #2c5bff 100%);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(31, 76, 255, 0.42);
}

.product-page-rating-container {
  margin: 16px 0 8px;
}

.product-page-rating-form {
  margin-bottom: 16px;
}

.product-page-comments-container {
  margin: 20px 0;
  border-top: 1px solid #3a3a3a;
  padding-top: 12px;
}

.product-page-comments-container h3 {
  margin-bottom: 10px;
}

.whatsapp-share-btn,
.product-share-btn,
.share-action-btn {
  padding: 10px 12px;
  border-radius: 8px;
  height: 42px;
  font-weight: 600;
  cursor: pointer;
}

.product-share-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.product-page-share-buttons > * {
  width: 100%;
  margin: 0;
}

.product-page-share-buttons .whatsapp-share-btn,
.product-page-share-buttons .product-share-btn,
.product-page-share-buttons .share-action-btn {
  background: #141414;
  color: #f3f3f3;
  border: 1px solid #343434;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.product-page-share-buttons .whatsapp-share-btn:hover,
.product-page-share-buttons .product-share-btn:hover,
.product-page-share-buttons .share-action-btn:hover {
  background: #1c1c1c;
  border-color: #4a4a4a;
}

@media (max-width: 900px) {
  .product-page-content {
    grid-template-columns: 1fr;
  }

  .product-page-actions {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .product-page-share-buttons {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .product-page-share-buttons {
    grid-template-columns: 1fr;
  }
}


/* --- Filters --- */
.filter-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
  color: #555;
}

.filter-btn.active,
.filter-btn:hover {
  background: #1f4cff;
  color: white;
  border-color: #1f4cff;
}

body.dark-mode .filter-btn {
  background: #252525;
  border-color: #444;
  color: #ccc;
}

body.dark-mode .filter-btn.active {
  background: #1f4cff;
  color: white;
}

/* --- Universal Header Layout --- */
.universal-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.universal-header .logo {
  flex: 0 0 auto;
}

.universal-header .header-search {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, 46vw);
  display: flex;
  align-items: center;
  gap: 8px;
}

.universal-header .header-search .input-wrapper {
  flex: 1;
  max-width: none;
  min-width: 0;
}

.universal-header .header-controls {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.universal-header #nav-menu {
  flex-basis: 100%;
  margin-top: 10px;
}

@media (max-width: 828px) {
  .universal-header .header-controls {
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    margin-left: auto !important;
  }

  .universal-header .header-search {
    position: static !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    order: 4;
    margin-top: 8px;
  }
}

/* App-like layout: desktop sidebar + mobile bottom nav */
body.app-layout .universal-header {
  position: sticky;
  top: 0;
  z-index: 1100;
  width: 100%;
  margin: 0;
  padding: 14px 18px;
  background: #f1f1f1;
  border-radius: 0;
}

body.app-layout.dark-mode .universal-header {
  background: #171717;
}

body.app-layout .universal-header .header-controls,
body.app-layout .universal-header .burger-menu,
body.app-layout #menu-overlay {
  display: none !important;
}

body.app-layout .universal-header .logo h2 {
  color: #1e1e1e;
}

body.app-layout.dark-mode .universal-header .logo h2 {
  color: #f2f2f2;
}

body.app-layout .universal-header .header-search {
  position: static;
  transform: none;
  left: auto;
  width: min(640px, 62vw);
  margin-left: 12px;
}

body.app-layout #search-bar {
  background: #ffffff;
  border: 1px solid #d7d7d7;
  color: #1c1c1c;
}

body.app-layout.dark-mode #search-bar {
  background: #232323;
  border-color: #3b3b3b;
  color: #efefef;
}

body.app-layout #nav-menu {
  position: fixed;
  top: 92px;
  left: 0;
  width: 188px;
  height: calc(100vh - 92px);
  margin: 0;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #efefef;
  border-right: 1px solid #dddddd;
  z-index: 1001;
}

body.app-layout.dark-mode #nav-menu {
  background: #141414;
  border-right-color: #2b2b2b;
}

body.app-layout #nav-menu a {
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #5d5d5d;
  font-weight: 500;
  text-decoration: none;
}

body.app-layout #nav-menu a i {
  width: 18px;
  text-align: center;
}

body.app-layout #nav-menu .nav-more {
  position: relative;
}

body.app-layout #nav-menu .nav-more-btn {
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #5d5d5d;
  font-weight: 500;
  text-decoration: none;
  border: none;
  width: 100%;
  background: transparent;
  cursor: pointer;
}

body.app-layout #nav-menu .nav-more-btn i {
  width: 18px;
  text-align: center;
}

body.app-layout #nav-menu .nav-more.open .nav-more-btn,
body.app-layout #nav-menu .nav-more-btn:hover {
  color: #ff623f;
  background: #ffe6df;
}

body.app-layout #nav-menu .nav-more-menu {
  position: absolute;
  left: calc(100% + 10px);
  top: 0;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid #dedede;
  border-radius: 14px;
  padding: 8px;
  display: none;
  z-index: 1200;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

body.app-layout #nav-menu .nav-more.open .nav-more-menu {
  display: block;
}

body.app-layout #nav-menu .nav-more-menu a {
  padding: 10px 12px;
  border-radius: 10px;
  color: #333;
  display: block;
}

body.app-layout.dark-mode #nav-menu .nav-more-btn {
  color: #bdbdbd;
}

body.app-layout.dark-mode #nav-menu .nav-more.open .nav-more-btn,
body.app-layout.dark-mode #nav-menu .nav-more-btn:hover {
  color: #ff8d73;
  background: #2b211f;
}

body.app-layout.dark-mode #nav-menu .nav-more-menu {
  background: #1d1d1d;
  border-color: #313131;
}

body.app-layout.dark-mode #nav-menu .nav-more-menu a {
  color: #e5e5e5;
}

body.app-layout.dark-mode #nav-menu .nav-more-menu a:hover {
  background: #2a2a2a;
}

body.app-layout #nav-menu a.active,
body.app-layout #nav-menu a:hover {
  color: #ff623f;
  background: #ffe6df;
}

body.app-layout.dark-mode #nav-menu a {
  color: #bdbdbd;
}

body.app-layout.dark-mode #nav-menu a.active,
body.app-layout.dark-mode #nav-menu a:hover {
  color: #ff8d73;
  background: #2b211f;
}

body.app-layout .produtos,
body.app-layout .footer,
body.app-layout hr {
  margin-left: 188px;
}

@media (max-width: 900px) {
  body.app-layout .universal-header {
    padding: 10px 12px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px;
  }

  body.app-layout .universal-header .header-search {
    width: 100%;
    margin-left: 0;
    grid-column: 2;
  }

  body.app-layout .universal-header .logo h2 {
    display: none;
  }

  body.app-layout #nav-menu {
    top: auto;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 72px;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
    border-right: none;
    border-top: 1px solid #dcdcdc;
  }

  body.app-layout.dark-mode #nav-menu {
    border-top-color: #2c2c2c;
  }

  body.app-layout #nav-menu a {
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    font-size: 0.73rem;
    padding: 6px 10px;
    min-width: 64px;
  }

  body.app-layout #nav-menu a i {
    width: auto;
    font-size: 1rem;
  }

  body.app-layout #nav-menu .nav-more-btn {
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    font-size: 0.73rem;
    padding: 6px 10px;
    min-width: 64px;
  }

  body.app-layout #nav-menu .nav-more-btn i {
    width: auto;
    font-size: 1rem;
  }

  body.app-layout #nav-menu .nav-more-menu {
    left: 50%;
    top: auto;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    min-width: 210px;
  }

  body.app-layout .produtos,
  body.app-layout .footer,
  body.app-layout hr {
    margin-left: 0;
  }

  body.app-layout .produtos {
    padding-bottom: 90px;
  }
}

