/**
 * 🎯 LAYOUT GLOBAL DO SITE - ARQUITETURA MINIMALISTA
 * 
 * Princípios:
 * 1. Container genérico com 1200px
 * 2. Wrappers globais NUNCA limitam largura
 * 3. Cada página/componente decide se usa ou não o container
 */

/* ========================================
   📦 CONTAINER PADRÃO DO SITE
   ======================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   🌐 NUNCA LIMITAR WRAPPERS GLOBAIS
   ======================================== */

.site-content,
.woocommerce,
.product,
.page {
  max-width: none;
  width: 100%;
}

/* ========================================
   ✅ 1️⃣ MINI BARRA DE CONFIANÇA - VERSÃO ESCURA PREMIUM
   ======================================== */

.adesivada-trust-bar {
  background: #1c1c1c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 0;  /* 🔥 ULTRA COMPACTA: 4px (60% menor que original) */
  font-size: 12px; /* 🔥 Fonte menor: 12px */
}

.adesivada-trust-bar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  letter-spacing: 0.3px;
}

.trust-item svg {
  color: #10b981;
  flex-shrink: 0;
  opacity: 0.9;
}

/* Responsivo: Esconder social proof no tablet */
@media (max-width: 900px) {
  .trust-social-proof {
    display: none;
  }
  
  .adesivada-trust-bar-container {
    gap: 24px;
  }
}

/* Responsivo: Esconder barra inteira no mobile */
@media (max-width: 600px) {
  .adesivada-trust-bar {
    display: none;
  }
}

/* ========================================
   ✅ 4️⃣ MICRO COPY ESTRATÉGICA
   ======================================== */

.adesivada-header-tagline {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
  letter-spacing: 0.3px;
}

/* Esconder tagline no mobile para economizar espaço */
@media (max-width: 768px) {
  .adesivada-header-tagline {
    display: none;
  }
}

/* ========================================
   ✅ 2️⃣ BOTÃO OUTLINE (hierarquia visual)
   ======================================== */

.adesivada-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  background: transparent;
  white-space: nowrap;
}

.adesivada-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ff9800;
  transform: translateY(-2px);
}

/* ✅ 5️⃣ STICKY HEADER PREMIUM */
.adesivada-header {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.adesivada-header.scrolled {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: #2b2b2b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
}

.adesivada-header.scrolled .adesivada-header-container {
  padding: 12px 24px;
}

.adesivada-header.scrolled .adesivada-site-title {
  font-size: 20px;
}

.adesivada-header.scrolled .adesivada-header-tagline {
  display: none;
}

/* Compensar altura do header fixo */
body.header-scrolled {
  padding-top: 72px;
}

/* ========================================
   ✅ 3️⃣ BUSCA - BOTÃO TOGGLE
   ======================================== */

.adesivada-search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  margin-right: 8px;
}

.adesivada-search-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ff9800;
  transform: scale(1.05);
}

/* ========================================
   ✅ 3️⃣ MODAL DE BUSCA
   ======================================== */

.adesivada-search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.adesivada-search-modal.active {
  display: block;
  opacity: 1;
}

.search-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.search-modal-content {
  position: relative;
  max-width: 600px;
  margin: 100px auto 0;
  padding: 0 24px;
  animation: slideDown 0.3s ease;
}

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

.search-modal-close {
  position: absolute;
  top: -40px;
  right: 24px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.search-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.search-modal-body {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.adesivada-search-form {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.adesivada-search-input {
  flex: 1;
  height: 52px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 0 20px;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.adesivada-search-input:focus {
  outline: none;
  border-color: #ff9800;
  box-shadow: 0 0 0 4px rgba(255, 152, 0, 0.1);
}

.adesivada-search-submit {
  width: 52px;
  height: 52px;
  border: none;
  background: #ff9800;
  color: #ffffff;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.adesivada-search-submit:hover {
  background: #f57c00;
  transform: scale(1.05);
}

.search-suggestions-title {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-tag {
  display: inline-block;
  padding: 8px 16px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  transition: all 0.3s ease;
}

.search-tag:hover {
  background: #ff9800;
  color: #ffffff;
  border-color: #ff9800;
  transform: translateY(-2px);
}

/* ========================================
   🛒 ÍCONE DO CARRINHO NO HEADER
   ======================================== */

.adesivada-cart-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: 12px;
  color: #ffffff;
  transition: all 0.3s ease;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
}

.adesivada-cart-icon:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ff9800;
  transform: scale(1.05);
}

.adesivada-cart-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

/* Contador de itens (badge) */
.adesivada-cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background-color: #ff9800;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Se o carrinho estiver vazio (0 itens), esconder o badge */
.adesivada-cart-count:empty,
.adesivada-cart-count[data-count="0"] {
  display: none;
}

/* Animação quando adiciona item */
@keyframes cartBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.adesivada-cart-icon.has-items .adesivada-cart-count {
  animation: cartBounce 0.3s ease;
}

/* ========================================
   📱 RESPONSIVO - CARRINHO
   ======================================== */

@media (max-width: 768px) {
  .adesivada-cart-icon {
    margin-right: 8px;
    width: 44px; /* 🔥 TOUCH-FRIENDLY: era 40px */
    height: 44px; /* 🔥 TOUCH-FRIENDLY: era 40px */
  }
  
  .adesivada-cart-icon svg {
    width: 20px;
    height: 20px;
  }
  
  .adesivada-cart-count {
    font-size: 10px;
    padding: 2px 5px;
    min-width: 16px;
  }
  
  /* 🔥 BUSCA TOGGLE TAMBÉM PRECISA SER TOUCH-FRIENDLY */
  .adesivada-search-toggle {
    width: 44px; /* 🔥 TOUCH-FRIENDLY: era 40px */
    height: 44px; /* 🔥 TOUCH-FRIENDLY: era 40px */
  }
  
  .search-modal-content {
    margin-top: 60px;
  }
  
  .search-modal-body {
    padding: 24px;
  }
}