@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
@import url('./variables.css');

/* ==========================================================================
   CSS Reset & Base Defaults
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-card);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input {
  font-family: inherit;
  font-size: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
}

/* ==========================================================================
   Shopient Theme: 3-Tier Header & Navigation System
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

/* Tier 1: Top Bar (Laranja Shopient #eb5a28) */
.shopient-topbar {
  background-color: var(--shopient-topbar-bg);
  color: var(--shopient-topbar-text);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.shopient-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.shopient-topbar-left,
.shopient-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
}

.shopient-topbar-divider {
  display: inline-block;
  width: 1px;
  height: 11px;
  background-color: rgba(255, 255, 255, 0.35);
}

.shopient-topbar-badge {
  background: rgba(0, 0, 0, 0.15);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
}

/* Tier 2: Main Header Bar (Charcoal Dark #1c1f24) */
.shopient-mainbar {
  background-color: var(--shopient-header-bg);
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.shopient-mainbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.shopient-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.shopient-logo-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(235, 90, 40, 0.2) 0%, rgba(247, 127, 0, 0.1) 100%);
  border: 1px solid rgba(235, 90, 40, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-shadow: 0 4px 14px rgba(235, 90, 40, 0.25);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.shopient-logo:hover .shopient-logo-icon {
  transform: scale(1.06) rotate(3deg);
  box-shadow: 0 6px 20px rgba(235, 90, 40, 0.4);
}

.shopient-logo-text {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
}

.shopient-brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.shopient-brand-accent {
  color: var(--color-brand);
}

.shopient-brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a4abb8;
  margin-top: 0.15rem;
}

/* Shopient Signature Search Bar */
.shopient-search-container {
  flex: 1;
  max-width: 580px;
  margin: 0 1rem;
}

.shopient-search-form {
  display: flex;
  align-items: center;
  background-color: var(--shopient-search-bg);
  border: 1.5px solid var(--shopient-search-border);
  border-radius: var(--radius-full);
  height: 44px;
  padding: 3px 4px 3px 14px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.shopient-search-form:focus-within {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(235, 90, 40, 0.25);
}

.shopient-search-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.shopient-category-select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  color: #cdd2db;
  font-size: 0.82rem;
  font-weight: 600;
  padding-right: 18px;
  cursor: pointer;
  outline: none;
}

.shopient-category-select option {
  background: #1c1f24;
  color: #ffffff;
}

.shopient-select-arrow {
  position: absolute;
  right: 2px;
  color: #9aa1ad;
  font-size: 0.75rem;
  pointer-events: none;
}

.shopient-search-separator {
  width: 1px;
  height: 20px;
  background-color: var(--shopient-search-border);
  margin: 0 10px;
}

.shopient-search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.88rem;
  outline: none;
  padding: 0 4px;
}

.shopient-search-input::placeholder {
  color: #7b8392;
}

.shopient-search-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #eb5a28 0%, #f77f00 100%);
  border: none;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(235, 90, 40, 0.4);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.shopient-search-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(235, 90, 40, 0.5);
}

/* Shopient Actions */
.shopient-header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.shopient-action-btn {
  background: #272a31;
  border: 1px solid #3a3f4a;
  color: #ffffff;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.shopient-action-btn:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
  transform: scale(1.06);
}

.shopient-cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #272a31;
  border: 1px solid #3a3f4a;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.shopient-cart-pill:hover {
  border-color: var(--color-brand);
  background: rgba(235, 90, 40, 0.1);
}

.shopient-cart-icon {
  font-size: 1.1rem;
}

.shopient-cart-info {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.shopient-cart-count {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--color-brand);
}

.shopient-cart-label {
  font-size: 0.65rem;
  color: #9aa1ad;
  text-transform: uppercase;
  font-weight: 600;
}

/* Tier 3: Sub-Nav Bar (Deep Charcoal #14171b) */
.shopient-navbar {
  background-color: var(--shopient-nav-bg);
  height: 46px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.shopient-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.shopient-categories-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--color-brand);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  height: 100%;
  padding: 0 1.25rem;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-fast);
  white-space: nowrap;
}

.shopient-categories-btn:hover {
  background: var(--color-brand-hover);
}

.shopient-nav-links-wrap {
  display: flex;
  align-items: center;
  flex: 1;
}

.shopient-nav-list {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.shopient-nav-item {
  color: #cbd2dc;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.38rem 0.88rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.shopient-nav-item:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}

.shopient-nav-item.active {
  background-color: var(--color-brand);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(235, 90, 40, 0.35);
}

.shopient-promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, rgba(235, 90, 40, 0.15) 0%, rgba(247, 127, 0, 0.15) 100%);
  border: 1px solid var(--color-brand);
  color: var(--color-brand);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.shopient-promo-btn:hover {
  background: var(--color-brand);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(235, 90, 40, 0.3);
}

/* Fallback Header (Suporte a páginas secundárias e renderização inicial) */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
  gap: 1rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  padding: 5px;
  flex-shrink: 0;
}

.brand-svg-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text-wrap {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.15;
  color: var(--text-main);
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.brand-highlight {
  color: var(--color-brand);
}

.brand-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-brand);
  margin-top: 0.2rem;
  line-height: 1;
}

.header-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  list-style: none;
  margin: 0;
  padding: 3px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.25rem;
  padding: 0 0.9rem;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  white-space: nowrap;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background-color: var(--color-brand);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle-btn {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-card);
  color: var(--text-main);
  width: 2.35rem;
  height: 2.35rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

/* ==========================================================================
   Welcome Banner (Substitui o antigo aviso de transparência)
   ========================================================================== */
.welcome-banner {
  background: var(--gradient-welcome);
  border-bottom: 1px solid var(--border-card);
  position: relative;
  overflow: hidden;
  animation: bannerSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.25s ease, max-height 0.25s ease;
}

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

.welcome-banner.closing {
  opacity: 0;
  transform: translateY(-8px);
}

.welcome-banner-inner {
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.welcome-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-brand);
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.welcome-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.welcome-banner-body {
  flex: 1;
}

.welcome-banner-header-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.welcome-banner-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.welcome-banner-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 0.75rem;
  max-width: 950px;
}

.welcome-banner-features {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.welcome-feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--shadow-xs);
}

.welcome-banner-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.welcome-banner-close:hover {
  background: var(--bg-surface);
  color: var(--text-main);
  transform: rotate(90deg);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  background: var(--bg-gradient-hero);
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--border-card);
  text-align: center;
  overflow: hidden;
}

.hero-ambient-glow {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(79, 70, 229, 0.18), transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}

[data-theme="dark"] .hero-ambient-glow {
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.25), transparent 70%);
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-brand);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

[data-theme="dark"] .hero-tagline {
  color: #a5b4fc;
}

.hero-tagline:hover {
  transform: translateY(-2px);
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
  color: var(--text-main);
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--color-brand) 0%, #06b6d4 50%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

/* Barra de Busca */
.search-wrapper {
  max-width: 620px;
  margin: 0 auto;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 1.05rem 7.5rem 1.05rem 3.25rem;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-card);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 1.02rem;
  font-weight: 500;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: var(--shadow-glow);
  background: var(--bg-surface);
}

.search-icon {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
  transition: color var(--transition-fast);
}

.search-input:focus ~ .search-icon {
  color: var(--color-brand);
}

.search-badge-hint {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-surface-alt);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-card);
  pointer-events: none;
}

/* Categorias em Chips */
.categories-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.75rem;
}

.category-chip {
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: var(--shadow-xs);
}

.category-chip:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.category-chip.active {
  background: var(--gradient-brand);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

/* Métricas & Prova Social */
.hero-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-card);
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-stat-item strong {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.hero-stat-item span {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-stat-divider {
  width: 1px;
  height: 28px;
  background: var(--border-card);
}

/* ==========================================================================
   Feed de Artigos & Cards
   ========================================================================== */
.feed-container {
  padding-top: 3rem;
  padding-bottom: 5rem;
}

.feed-section-header {
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid var(--border-card);
  padding-bottom: 1rem;
}

.feed-section-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.feed-section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.post-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-normal);
}

.post-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-focus);
}

.post-card-image-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  max-height: 200px;
  background: radial-gradient(circle, var(--bg-surface-alt) 0%, rgba(0, 0, 0, 0.03) 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

[data-theme="dark"] .post-card-image-wrap {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.post-card-image {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.08));
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-card:hover .post-card-image {
  transform: scale(1.08) translateY(-4px);
}

.post-card-badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.post-card-category {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.post-card-readtime {
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xs);
}

[data-theme="dark"] .post-card-readtime {
  background: rgba(30, 41, 59, 0.85);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.post-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-top-row {
  margin-bottom: 0.65rem;
}

.post-card-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  display: inline-block;
}

[data-theme="dark"] .post-card-count {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
}

.post-card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.65rem;
  color: var(--text-main);
  transition: color var(--transition-fast);
}

.post-card:hover .post-card-title {
  color: var(--color-brand);
}

.post-card-excerpt {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-card);
  padding-top: 1rem;
  font-size: 0.85rem;
}

.post-card-author {
  color: var(--text-muted);
  font-weight: 600;
}

.post-card-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-brand);
  font-weight: 700;
  transition: transform var(--transition-fast);
}

.post-card:hover .post-card-action {
  transform: translateX(4px);
}

/* ==========================================================================
   Footer
   ========================================================================== */
/* ==========================================================================
   Footer Compacto & Minimalista
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-card);
  padding: 1.15rem 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.footer-compact-left,
.footer-compact-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}

.footer-brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
}

.footer-brand-wrap .brand-svg-icon {
  width: 18px;
  height: 18px;
}

.footer-brand-wrap .brand-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
}

.footer-brand-wrap .brand-highlight {
  color: var(--color-brand);
}

.footer-sep {
  color: var(--text-light);
  user-select: none;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-nav-inline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-nav-inline a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.footer-nav-inline a:hover {
  color: var(--color-brand);
}

.footer-affiliate-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 1rem 0;
  }
  .footer-compact {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }
  .footer-compact-left,
  .footer-compact-right {
    justify-content: center;
  }
}

/* ==========================================================================
   Regras de Responsividade
   ========================================================================== */
@media (max-width: 1023px) and (min-width: 769px) {
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4.25rem;
    gap: 0.75rem;
  }
  .brand-logo {
    justify-self: auto;
  }
  .brand-name {
    font-size: 1.15rem;
  }
  .header-nav {
    justify-self: auto;
    flex: 1;
  }
  .nav-links {
    gap: 0.2rem;
    padding: 2px;
  }
  .nav-link {
    height: 2.1rem;
    padding: 0 0.65rem;
    font-size: 0.82rem;
  }
  .header-actions {
    justify-self: auto;
  }
  .theme-toggle-btn {
    width: 2.1rem;
    height: 2.1rem;
  }
}

@media (max-width: 900px) {
  .shopient-search-container {
    max-width: 380px;
    margin: 0 0.5rem;
  }
  .shopient-topbar-right {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .shopient-topbar {
    display: none !important;
  }
  .shopient-navbar {
    display: none !important;
  }
  .shopient-cart-pill {
    display: none !important;
  }
  .shopient-mainbar-inner {
    flex-wrap: wrap;
    gap: 0.6rem;
    padding-top: 0.5rem;
    padding-bottom: 0.65rem;
  }
  .shopient-logo {
    flex: 1;
    min-width: 0;
  }
  .shopient-brand-name {
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .shopient-search-container {
    order: 3;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
  }
  .shopient-search-form {
    width: 100%;
    box-sizing: border-box;
    padding: 2px 3px 2px 10px;
    height: 40px;
  }
  .shopient-search-select-wrap {
    display: none !important;
  }
  .shopient-search-separator {
    display: none !important;
  }
  .shopient-search-input {
    min-width: 0;
    font-size: 0.84rem;
  }

  .header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    height: auto;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    gap: 0.65rem;
  }
  .brand-logo {
    justify-self: auto;
    height: auto;
  }
  .brand-icon-wrap {
    width: 34px;
    height: 34px;
    padding: 4px;
  }
  .brand-name {
    font-size: 1.15rem;
  }
  .brand-badge {
    font-size: 0.6rem;
  }
  .header-actions {
    justify-self: auto;
    flex-shrink: 0;
  }
  .theme-toggle-btn {
    width: 2.2rem;
    height: 2.2rem;
  }
  .header-nav {
    justify-self: auto;
    order: 3;
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .header-nav::-webkit-scrollbar {
    display: none;
  }
  .nav-links {
    display: inline-flex;
    width: max-content;
    gap: 0.35rem;
    padding: 2px;
    background: transparent;
    border: none;
  }
  .nav-link {
    height: 2rem;
    padding: 0 0.8rem;
    font-size: 0.8rem;
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-card);
  }
  .nav-link.active {
    background: var(--color-brand-light);
    border-color: rgba(99, 102, 241, 0.3);
  }
  [data-theme="dark"] .nav-link {
    background: var(--bg-surface-elevated);
    border-color: var(--border-card);
  }
  [data-theme="dark"] .nav-link.active {
    background: rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.4);
  }
  .hero-section {
    padding: 3rem 0 2rem;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .hero-stat-divider {
    display: none;
  }
  .posts-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    width: 100%;
    box-sizing: border-box;
  }
  .post-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .post-card-image-wrap {
    height: 175px;
    max-height: 175px;
    padding: 0.75rem;
  }
  .welcome-banner-inner {
    flex-direction: column;
    gap: 0.75rem;
  }
  .welcome-banner-badge {
    align-self: flex-start;
  }
}
