/* === SKELETON LOADING (Swiss Tech) === */
.skeleton-card {
  background: #fff;
  border: 1px solid #eee;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 400px;
  position: relative;
  overflow: hidden;
}

.skeleton-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.03), transparent);
  animation: skeleton-sweep 1.5s infinite;
}

@keyframes skeleton-sweep {
  0% { left: -100%; }
  100% { left: 200%; }
}

.skeleton-img { height: 200px; background: #f0f0f0; }
.skeleton-text { height: 20px; background: #f0f0f0; width: 80%; }
.skeleton-text.price { width: 40%; }
.skeleton-button { height: 45px; background: #f0f0f0; margin-top: auto; }

/* === GERIVAS TOAST (Brutalist) === */
.gerivas-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #000;
  color: #fff;
  padding: 1.2rem 2rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  border-left: 5px solid var(--primary);
  box-shadow: 20px 20px 0 rgba(0,0,0,0.1);
  transform: translateX(120%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gerivas-toast.active { transform: translateX(0); }
.toast-content { display: flex; align-items: center; gap: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.toast-content ion-icon { font-size: 1.5rem; color: var(--primary); }
.toast-progress { height: 3px; background: var(--primary); width: 100%; margin-top: 10px; transform-origin: left; animation: toast-progress 4s linear forwards; }

@keyframes toast-progress { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* === WHATSAPP FLOAT (Swiss Tech) === */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background: #25d366;
  color: #fff;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  z-index: 9999;
  box-shadow: 10px 10px 0 rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1) translate(-5px, -5px);
  box-shadow: 15px 15px 0 rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
  .gerivas-toast { left: 20px; right: 20px; bottom: 20px; }
  .whatsapp-float { bottom: 20px; left: 20px; width: 50px; height: 50px; font-size: 1.5rem; }
}

/* Respeito a Prefers-Reduced-Motion */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
}

/* Skip to Content */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  z-index: 10000;
  transition: top 0.3s;
  font-weight: 700;
}

.skip-link:focus {
  top: 0;
}

/* Indicadores de Foco Globais (Acessibilidade) */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}

/* Correção de Visibilidade de Modais */
.cart-overlay.active, 
.product-modal-overlay.active, 
.checkout-modal-overlay.active { 
  display: block; 
  opacity: 1; 
  visibility: visible; 
  z-index: 2000;
}

.cart-sidebar.active { 
  transform: translateX(0); 
}

/* === LAYOUT MOBILE (Default / Smallest Screen First) === */
.navbar { 
  height: auto; 
  padding-bottom: 5px; 
}

.nav-container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto auto;
  align-items: center;
  padding: 8px 15px;
  gap: 10px;
}

.nav-logo { 
  grid-column: 1 / 2; 
  grid-row: 1; 
  justify-self: start; 
}

.nav-logo img { 
  height: 32px; 
}

.search-container { 
  grid-column: 1 / 4; 
  grid-row: 2; 
  margin-top: 5px; 
  justify-self: center; 
  width: 100%;
  display: flex;
  align-items: center;
  position: relative;
}

#searchInput, 
.search-container.active #search-input { 
  width: 100%; 
  opacity: 1; 
  visibility: visible; 
  display: block;
  padding: 10px 40px 10px 20px;
  border: 1px solid var(--cinza-3);
  border-radius: var(--radius-soft);
  background: var(--cinza-1);
  color: var(--text-main);
  font-size: 0.9rem;
}

.search-btn { 
  position: absolute; 
  right: 10px; 
  top: 50%; 
  transform: translateY(-50%); 
  background: transparent;
  color: var(--primary);
  padding: 5px; 
}

.cart-btn { 
  grid-column: 3 / 4; 
  grid-row: 1; 
  justify-self: end; 
}

.nav-links li:first-child { 
  grid-column: 1 / 4; 
  grid-row: 3; 
  justify-self: start;
  margin: 5px 0 10px 0;
}

.all-products-btn {
  display: flex;
  align-items: center;
  background: transparent;
  color: var(--text-main);
  font-weight: 600;
}

.all-products-btn::before {
  content: "MENU";
  font-size: 0.95rem;
  margin-right: 6px;
}

.nav-links li:not(:first-child) { 
  display: none; 
}

.hero-slider { 
  margin-top: 135px; 
  min-height: 30vh;
}

/* === LAYOUT DESKTOP (Min-width: 769px) === */
@media (min-width: 769px) {
  .navbar { 
    padding: 15px 4% 10px; 
  }

  .nav-container {
    grid-template-columns: auto 1fr auto auto;
    grid-template-rows: auto auto;
    gap: 15px 25px;
  }

  .nav-logo { 
    grid-row: 1; 
  }

  .nav-logo img { 
    height: 45px; 
  }

  .search-container { 
    grid-column: 2 / 3; 
    grid-row: 1; 
    max-width: 600px;
  }

  #searchInput {
    padding: 12px 25px;
    border-radius: var(--radius-soft);
    background: var(--cinza-1);
    font-size: 0.95rem;
  }

  .cart-btn { 
    grid-column: 4 / 5; 
    grid-row: 1; 
  }

  .nav-links { 
    grid-column: 1 / 5; 
    grid-row: 2; 
    display: flex; 
    justify-content: flex-start; 
    gap: 3rem; 
    margin: 15px 0 5px 0; 
  }

  .nav-links li:not(:first-child) { 
    display: block; 
  }

  .all-products-btn::before {
    content: none;
  }

  .hero-slider { margin-top: 150px !important; }
}

/* === BENEFITS STRIP (Swiss Style) === */
.benefits-strip {
  background: #000;
  color: #fff;
  padding: 3rem 4%;
  border-top: 5px solid var(--primary);
  position: relative;
  z-index: 10;
}

.benefits-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

.benefit-item:hover {
  border-color: var(--primary);
  background: rgba(227, 30, 37, 0.05);
  transform: translateY(-5px);
}

.benefit-icon {
  font-size: 2.5rem;
  color: var(--primary);
  line-height: 1;
}

.benefit-text h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.benefit-text p {
  font-size: 0.9rem;
  color: #aaa;
  margin: 0;
  line-height: 1.4;
}

/* === HERO REDUX (Brutalist Typographic) === */
.hero-slider {
  background: #ffffff;
  overflow: hidden;
  border-bottom: 1px solid #eee;
}

.swiper-slide {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  height: auto !important;
  min-height: 550px !important;
  padding: 2rem 1.5rem !important;
  background: #fff !important;
}

.slide-media {
  position: relative !important;
  top: 0 !important;
  left: 0 !important;
  transform: none !important;
  width: 100% !important;
  max-width: 600px !important;
  margin: 0 auto 1.5rem !important;
  z-index: 1 !important;
  display: flex !important;
  justify-content: center !important;
}

.slide-media img {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 350px !important;
  object-fit: contain !important;
}

.slide-content {
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  max-width: 800px !important;
  padding: 0 !important;
  text-align: center !important;
  margin-top: 1rem !important;
}

.slide-content h1 {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 800 !important;
  font-size: clamp(1.8rem, 4vw, 2.8rem) !important;
  line-height: 1.2 !important;
  color: #111 !important;
  margin-bottom: 0.5rem !important;
}

.slide-content h1 span {
  color: var(--primary) !important;
}

.slide-content p {
  font-size: 1rem !important;
  max-width: 600px !important;
  margin: 0 auto !important;
  color: #666 !important;
  line-height: 1.5 !important;
}

.hero-buttons .btn {
  border-radius: 4px !important;
  padding: 1rem 2.5rem !important;
  font-weight: 700 !important;
  text-transform: none;
  letter-spacing: 0.5px;
}

/* NOVO BLOCO DE BENEFÍCIOS (ESTILO APPLE) */
.benefits-grid-premium {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
  gap: 1.5rem !important;
  max-width: 1400px !important;
  margin: 2rem auto !important;
  padding: 0 1.5rem !important;
}

.benefit-item {
  background: #fff !important;
  border: 1px solid #eee !important;
  border-radius: 8px !important;
  padding: 1.5rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 1.2rem !important;
  transition: all 0.3s ease !important;
}

.benefit-item:hover {
  border-color: var(--primary) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05) !important;
}

.benefit-item ion-icon {
  font-size: 2.2rem !important;
  color: var(--primary) !important;
  flex-shrink: 0 !important;
}

.benefit-text {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.2rem !important;
}

.benefit-text strong {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #111 !important;
  font-family: 'Outfit', sans-serif !important;
}

.benefit-text span {
  font-size: 0.85rem !important;
  color: #666 !important;
}

/* Ajustes Adicionais no Cabeçalho */
.menu-trigger-link {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: rgba(0,0,0,0.03) !important;
  padding: 0.4rem 1rem !important;
  border-radius: 4px !important;
}

.menu-trigger-link ion-icon {
  font-size: 1.4rem !important;
}

@media (max-width: 768px) {
  .benefits-grid-premium {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin: 1rem auto !important;
  }
  .benefit-item {
    padding: 1rem !important;
    flex-direction: column !important;
    text-align: center !important;
    gap: 0.5rem !important;
  }
}

/* Swiper Navigation & Pagination Premium Styles */
.hero-slider .swiper-button-next {
  right: 15% !important; /* Mais próximo do centro */
  width: 45px;
  height: 45px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  color: #111 !important;
  transition: all 0.3s ease;
}

.hero-slider .swiper-button-prev {
  left: 15% !important; /* Mais próximo do centro */
  width: 45px;
  height: 45px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  color: #111 !important;
  transition: all 0.3s ease;
}

.hero-slider .swiper-button-next:hover, 
.hero-slider .swiper-button-prev:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff !important;
  transform: scale(1.05);
}

.hero-slider .swiper-button-next::after, 
.hero-slider .swiper-button-prev::after {
  font-size: 1.2rem !important;
  font-weight: 900;
}

.hero-slider .swiper-pagination-fraction {
  bottom: 30px !important;
  right: 5% !important;
  left: auto !important;
  width: auto !important;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 8px 20px;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  letter-spacing: 2px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Sugestões de Pesquisa */
.search-suggestions {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  background: var(--bg-dark);
  border-radius: var(--radius-soft);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  z-index: 1000;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.search-suggestions.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.suggestions-header {
  padding: 12px 20px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-muted);
  background: var(--cinza-1);
  border-bottom: 1px solid var(--glass-border);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.suggestions-list {
  list-style: none;
  padding: 0;
}

.suggestions-list li {
  padding: 15px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: background 0.2s ease;
  border-bottom: 1px solid var(--cinza-1);
}

.suggestions-list li:hover {
  background: var(--cinza-1);
  color: var(--primary);
}

/* === FOOTER REDUX (Swiss Brutalist) === */
.footer {
  background: #000;
  color: #fff;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 5rem 4%;
}

.footer-brand .footer-img-logo {
  height: 60px;
  margin-bottom: 2rem;
  filter: brightness(0) invert(1);
}

.footer-desc {
  color: #888;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 2rem;
  color: #fff;
}

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

.footer-links li, .footer-contacts li {
  margin-bottom: 1rem;
}

.footer-links a, .footer-contacts a {
  color: #888;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.footer-links a:hover, .footer-contacts a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.footer-newsletter {
  margin-top: 3rem;
  background: #111;
  padding: 2.5rem;
  border-left: 4px solid var(--primary);
}

.footer-newsletter h3 { margin-bottom: 0.5rem; font-size: 1rem; }
.footer-newsletter p { color: #666; font-size: 0.85rem; margin-bottom: 1.5rem; }

.newsletter-form {
  display: flex;
  background: #000;
  border: 1px solid #333;
}

.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 1rem;
  color: #fff;
  outline: none;
  font-size: 0.9rem;
}

.newsletter-form .btn {
  border-radius: 0 !important;
  padding: 0 1.5rem !important;
}

.social-links {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding-top: 3rem;
  border-top: 1px solid #222;
  margin-top: 1rem;
}

.social-links a {
  color: #fff;
  font-size: 1.8rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: var(--primary);
  transform: translateY(-5px);
}

@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 3rem 1.5rem;
  }
  .footer-desc { margin: 0 auto; }
  .footer-links a, .footer-contacts a { justify-content: center; }
  .footer-newsletter { padding: 1.5rem; border-left: none; border-top: 3px solid var(--primary); }
  .social-links { gap: 2rem; }
}

/* === CATEGORY BAR (NCR Angola Style) === */
.category-bar-section {
  background: var(--bg-dark, #fff);
  border-bottom: 2px solid var(--cinza-2, #eee);
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.category-bar-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 4%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  max-width: 1400px;
  margin: 0 auto;
}

.category-bar-inner::-webkit-scrollbar { display: none; }

.cat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.55rem 1.1rem;
  border: 1.5px solid transparent;
  background: transparent;
  border-radius: 100px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted, #888);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: all 0.2s ease;
  position: relative;
  flex-shrink: 0;
  font-family: 'Outfit', sans-serif;
}

.cat-chip-icon {
  font-size: 1.4rem;
  line-height: 1;
  display: block;
}

.cat-chip:hover {
  color: var(--primary, #E31E25);
  border-color: rgba(227, 30, 37, 0.2);
  background: rgba(227, 30, 37, 0.05);
}

.cat-chip.active {
  color: var(--primary, #E31E25);
  border-color: var(--primary, #E31E25);
  background: rgba(227, 30, 37, 0.06);
  font-weight: 900;
}

.cat-chip.active::after {
  content: '';
  position: absolute;
  bottom: -0.7rem;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--primary, #E31E25);
}

/* Desktop: wrap the chips */
@media (min-width: 769px) {
  .category-bar-inner {
    flex-wrap: wrap;
    overflow-x: visible;
    row-gap: 0.5rem;
  }
  .cat-chip { padding: 0.6rem 1.4rem; font-size: 0.8rem; }
  .cat-chip.active::after { bottom: -0.7rem; }
}

/* === PRODUCTS SECTION HEADER === */
.products-section { padding-top: 2rem; }

.products-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--cinza-2, #eee);
}

.products-section-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  color: var(--text-main, #111);
  margin: 0;
}

.products-count {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted, #888);
  background: var(--cinza-1, #f5f5f5);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  white-space: nowrap;
}

/* Dark / Red theme overrides */
body.theme-dark .category-bar-section {
  background: #111;
  border-bottom-color: #333;
}
body.theme-red .category-bar-section {
  background: #c01010;
  border-bottom-color: rgba(255,255,255,0.2);
}
body.theme-red .cat-chip { color: rgba(255,255,255,0.7); }
body.theme-red .cat-chip.active,
body.theme-red .cat-chip:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,0.15); }
body.theme-red .cat-chip.active::after { background: #fff; }

@media (max-width: 768px) {
  .cat-chip { padding: 0.5rem 0.9rem; font-size: 0.72rem; }
  .cat-chip-icon { font-size: 1.2rem; }
  .products-section-header { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
  .products-section-title { font-size: 1.3rem; }
}
