/* ==========================================================================
   Easy Gift Search - Master Responsive Design System
   ========================================================================== */

/* 1. Variáveis Globais & Temas */
:root {
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* Palette Clara */
  --bg-gradient: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  --header-bg: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  --header-text: #ffffff;
  --card-bg: rgba(255, 255, 255, 0.95);
  --card-border: rgba(226, 232, 240, 0.9);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --accent-ai: #059669;
  --accent-ai-hover: #047857;
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --price-color: #059669;
  
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 30px rgba(79, 70, 229, 0.12);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modo Escuro */
body.dark {
  --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  --header-bg: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  --header-text: #f8fafc;
  --card-bg: rgba(30, 41, 59, 0.92);
  --card-border: rgba(51, 65, 85, 0.8);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  
  --primary: #6366f1;
  --primary-hover: #818cf8;
  --accent-ai: #10b981;
  --accent-ai-hover: #34d399;
  --price-color: #34d399;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* 2. Reset & Estilos Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: var(--bg-gradient);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* 3. Header Principal */
.app-header {
  background: var(--header-bg);
  color: var(--header-text);
  padding: 2rem 1rem 2.5rem 1rem;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 10;
}

.header-container {
  max-width: 1100px;
  margin: 0 auto;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-icon {
  font-size: 2.2rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.brand h1 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

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

.control-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Ícones de tema */
#toggleDark .light-icon { display: none; }
body.dark #toggleDark .dark-icon { display: none; }
body.dark #toggleDark .light-icon { display: block; }

.header-subtitle {
  text-align: center;
  font-size: 1.05rem;
  opacity: 0.92;
  margin-bottom: 1.75rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
}

/* 4. Card do Formulário de Busca */
.search-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  color: var(--text-primary);
}

.form-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.1rem;
  margin-bottom: 1.25rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.input-group.full-width {
  grid-column: 1 / -1;
}

.input-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.input-label i {
  color: var(--primary);
}

input, select {
  width: 100%;
  height: 48px;
  padding: 0 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--card-border);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

body.dark input, body.dark select {
  background: rgba(15, 23, 42, 0.6);
}

input:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.18);
  background: #ffffff;
}

body.dark input:focus, body.dark select:focus {
  background: rgba(15, 23, 42, 0.9);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.85rem center;
  background-repeat: no-repeat;
  background-size: 1.2rem;
  padding-right: 2.5rem;
}

/* Botões de Ação do Formulário */
.form-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary, .btn-ai {
  height: 50px;
  padding: 0 1.75rem;
  border-radius: var(--radius-md);
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  min-width: 200px;
}

.btn-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3);
}

.btn-ai {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.btn-ai:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.btn-primary:active, .btn-ai:active, .btn-clear:active {
  transform: translateY(0);
}

.btn-clear {
  height: 50px;
  padding: 0 1.5rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  min-width: 170px;
}

.btn-clear:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

/* 5. Main Content Area */
.main-content {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

/* Loader */
.loader-container {
  text-align: center;
  padding: 2.5rem 1rem;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(79, 70, 229, 0.15);
  border-left-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loader-text {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 1rem;
}

/* Alert Message */
.alert-message {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-weight: 500;
  text-align: center;
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid rgba(79, 70, 229, 0.25);
  color: var(--primary);
}

.alert-message.error-msg {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--danger);
}

/* 6. Navegação por Abas */
.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.tab-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
}

.tab-badge {
  background: var(--danger);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  line-height: 1;
}

/* 7. Caixa de Recomendação IA */
.ai-recommendation-box {
  background: linear-gradient(135deg, rgba(240, 249, 255, 0.9) 0%, rgba(224, 231, 255, 0.9) 100%);
  border: 1px solid rgba(129, 140, 248, 0.4);
  border-left: 5px solid var(--accent-ai);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
}

body.dark .ai-recommendation-box {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(49, 46, 129, 0.4) 100%);
  border-color: rgba(99, 102, 241, 0.4);
}

.ai-box-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.ai-sparkle-icon {
  color: var(--accent-ai);
  font-size: 1.2rem;
}

.ai-box-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.ai-box-body {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* 8. Section Headers */
.section-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

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

.text-red { color: var(--danger); }

/* 9. Grid de Produtos e Cards */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
  justify-content: center;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(99, 102, 241, 0.3);
}

.card-image-container {
  width: 100%;
  height: 180px;
  background: #f8fafc;
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0.5rem;
}

body.dark .card-image-container {
  background: rgba(15, 23, 42, 0.5);
}

.card-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: var(--transition);
}

.card:hover .card-image-container img {
  transform: scale(1.04);
}

/* Badge de marketplace */
.origem-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.card h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7rem;
}

.preco-produto {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--price-color);
  margin-bottom: 0.4rem;
}

.preco-indisponivel {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.card-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 1rem;
  flex-grow: 1;
}

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

.btn-view {
  flex: 1;
  height: 38px;
  background: var(--primary);
  color: #ffffff !important;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  transition: var(--transition);
}

.btn-view:hover {
  background: var(--primary-hover);
  text-decoration: none !important;
}

.btn-favoritar, .btn-remover {
  height: 38px;
  padding: 0 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--card-border);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-favoritar {
  background: rgba(241, 245, 249, 0.8);
  color: var(--text-primary);
}

body.dark .btn-favoritar {
  background: rgba(51, 65, 85, 0.6);
}

.btn-favoritar:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.3);
}

.btn-remover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.25);
}

.btn-remover:hover {
  background: var(--danger);
  color: #ffffff;
}

/* 10. Empty State */
.empty-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--card-border);
  margin: 1.5rem 0;
}

.empty-state-icon {
  font-size: 2.8rem;
  color: var(--primary);
  opacity: 0.6;
  margin-bottom: 1rem;
}

.empty-state-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.empty-state-text {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* 11. Mapa e Lojas Próximas */
.map-info-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* 12. Rodapé */
.app-footer {
  background: var(--card-bg);
  border-top: 1px solid var(--card-border);
  padding: 2rem 1rem;
  margin-top: 3rem;
  text-align: center;
}

.footer-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 0.2rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-link-btn {
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.footer-link-btn:hover {
  text-decoration: underline;
}

.footer-divider {
  color: var(--text-muted);
}

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

.footer-copy a {
  color: var(--primary);
  text-decoration: none;
}

/* 13. Breakpoints Responsivos */

/* Telas Pequenas (Mobile: < 640px) */
@media (max-width: 639px) {
  .app-header {
    padding: 1.25rem 0.85rem 1.75rem 0.85rem;
  }
  
  .brand h1 {
    font-size: 1.4rem;
  }
  
  .brand-icon {
    font-size: 1.8rem;
  }
  
  .control-btn {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
  
  .header-subtitle {
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
  }
  
  .search-card {
    padding: 1rem;
  }
  
  .form-inputs {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  
  .btn-primary, .btn-ai {
    width: 100%;
    min-width: 100%;
    font-size: 0.9rem;
  }
  
  .grid-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .tabs-nav {
    flex-direction: row;
    gap: 0.4rem;
  }
  
  .tab-btn {
    flex: 1;
    justify-content: center;
    padding: 0.65rem 0.85rem;
    font-size: 0.85rem;
  }
}

/* Tablet (640px - 1023px) */
@media (min-width: 640px) and (max-width: 1023px) {
  .form-inputs {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop (> 1024px) */
@media (min-width: 1024px) {
  .form-inputs {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ==========================================================================
   SEO, AEO & GEO Section Styling
   ========================================================================== */
.seo-guide-section {
  margin-top: 2.5rem;
  margin-bottom: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.seo-guide-container {
  max-width: 1100px;
  margin: 0 auto;
}

.seo-guide-header {
  text-align: center;
  margin-bottom: 2rem;
}

.seo-guide-header h2 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.seo-guide-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.seo-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.seo-guide-card {
  background: rgba(79, 70, 229, 0.03);
  border: 1px solid rgba(79, 70, 229, 0.1);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: var(--transition);
}

body.dark .seo-guide-card {
  background: rgba(99, 102, 241, 0.05);
  border-color: rgba(99, 102, 241, 0.2);
}

.seo-guide-card h3 {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.seo-guide-card h3 i {
  color: var(--primary);
}

.seo-guide-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.seo-faq-wrapper {
  background: var(--card-bg);
  border-top: 1px solid var(--card-border);
  padding-top: 1.5rem;
}

.seo-faq-wrapper h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.seo-faq-item {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

body.dark .seo-faq-item {
  background: rgba(15, 23, 42, 0.4);
}

.seo-faq-item summary {
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-primary);
  user-select: none;
  outline: none;
}

.seo-faq-item summary:hover {
  color: var(--primary);
}

.seo-faq-item p {
  margin-top: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  border-top: 1px dashed var(--card-border);
  padding-top: 0.65rem;
}

/* ==========================================================================
   Budget Presets & Quick Chips Styling
   ========================================================================== */
.budget-presets-container {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--card-border);
}

.budget-presets-header {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.budget-presets-header i {
  color: #f59e0b;
}

.budget-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.budget-chip {
  background: rgba(79, 70, 229, 0.08);
  color: var(--primary);
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: 20px;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

body.dark .budget-chip {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.3);
}

.budget-chip:hover, .budget-chip:focus {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
}

/* ==========================================================================
   Incentive Tags & High-Conversion Product Cards
   ========================================================================== */
.incentive-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  z-index: 2;
}

.delivery-tag {
  background: #ffdb15;
  color: #2d3277;
}

.prime-tag {
  background: #00a8e1;
  color: #ffffff;
}

.best-value-tag {
  background: #ef4444;
  color: #ffffff;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.25rem 0 0.5rem 0;
}

.product-rating .stars {
  font-size: 0.75rem;
}

.product-rating .rating-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: #059669;
}

body.dark .product-rating .rating-text {
  color: #34d399;
}

.card-benefit-box {
  background: rgba(16, 185, 129, 0.08);
  border-left: 3px solid #10b981;
  padding: 0.5rem 0.65rem;
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 0.85rem;
}

.card-benefit-box i {
  color: #10b981;
  margin-right: 0.2rem;
}

body.dark .card-benefit-box {
  background: rgba(16, 185, 129, 0.15);
  color: #cbd5e1;
}

.btn-buy-now {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: all 0.25s ease !important;
}

.btn-buy-now:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

/* ==========================================================================
   Google AdSense Banners & Ad Units
   ========================================================================== */
.adsense-container {
  width: 100%;
  max-width: 1100px;
  margin: 1.5rem auto;
  padding: 0.75rem 1rem;
  background: var(--card-bg);
  border: 1px dashed var(--card-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.adsense-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  opacity: 0.8;
}

.adsense-label i {
  color: var(--primary);
  font-size: 0.75rem;
}

.adsense-container ins.adsbygoogle {
  min-height: 90px;
  background: rgba(241, 245, 249, 0.5);
  border-radius: var(--radius-sm);
  display: flex !important;
  align-items: center;
  justify-content: center;
}

body.dark .adsense-container ins.adsbygoogle {
  background: rgba(15, 23, 42, 0.5);
}

.adsense-top-banner {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.adsense-mid-banner {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.adsense-bottom-banner {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 640px) {
  .adsense-container {
    padding: 0.5rem;
    margin: 1rem auto;
  }
}



