/* ==========================================================================
   CASA DAS ANTENAS STORE - CUSTOM REDESIGN STYLES v4.0.0
   Theme Slug: cda-store-theme
   ========================================================================== */

:root {
  /* Brand Core Colors */
  --color-primary: #4F46E5;
  --color-primary-hover: #4338CA;
  --color-primary-light: #EEF2FF;
  --color-secondary: #06B6D4;
  --color-secondary-hover: #0891B2;
  
  /* Status & E-commerce Accents */
  --color-pix: #10B981;
  --color-pix-bg: #ECFDF5;
  --color-cta: #F97316;
  --color-cta-hover: #EA580C;
  --color-danger: #EF4444;
  --color-warning: #F59E0B;
  
  /* Neutral Slate Scale */
  --color-bg-main: #F8FAFC;
  --color-bg-surface: #FFFFFF;
  --color-bg-card: #FFFFFF;
  --color-bg-dark: #0F172A;
  --color-border: #E2E8F0;
  
  /* Typography Colors */
  --color-text-main: #0F172A;
  --color-text-muted: #64748B;
  --color-text-light: #94A3B8;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Shadows & Radius */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition-fast: 0.15s ease;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-main);
  color: var(--color-text-main);
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 1. TOPBAR SINGLE LINE */
.topbar {
  background-color: var(--color-bg-dark);
  color: #E2E8F0;
  font-size: 0.74rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  overflow: hidden;
}

.topbar-single-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 12px;
}

.topbar-divider {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.7rem;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.topbar-highlight {
  color: #38BDF8;
  font-weight: 600;
}

/* 2. HEADER & LOGO MAXIMIZED */
.header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.logo-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-logo-img {
  max-height: 85px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.06));
  transition: transform var(--transition-fast);
}

.logo-brand:hover .header-logo-img {
  transform: scale(1.02);
}

/* 3. NAV BADGE SINGLE LINE */
.clube-tecnico-badge {
  background: linear-gradient(135deg, #8B5CF6, #EC4899);
  color: white;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
  text-decoration: none;
}

/* 4. HERO SECTION */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 100%);
  color: white;
  padding: 60px 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-content h2 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  color: white;
}

.hero-content h2 span {
  background: linear-gradient(135deg, #38BDF8, #818CF8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.1rem;
  color: #94A3B8;
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn-primary {
  background-color: var(--color-cta);
  color: white;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-fast);
  text-decoration: none;
}

.btn-primary:hover {
  background-color: var(--color-cta-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: var(--transition-fast);
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* 5. VALUE PROPOSITIONS BAR (3 COLUMNS) */
.value-props {
  background: white;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.props-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.prop-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: var(--radius-md);
}

.prop-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* 6. PRODUCT CARDS & WOOCOMMERCE GRID OVERRIDES */
.wc-block-grid__product, .product-card, ul.products li.product {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.wc-block-grid__product:hover, .product-card:hover, ul.products li.product:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-xl);
}

/* VISUAL IMAGE FALLBACK (PURE CSS, NO DB MUTATION) */
.product-img-placeholder, .wc-block-grid__product-image:empty {
  aspect-ratio: 1 / 1;
  background-color: #F1F5F9;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-img-placeholder::after {
  content: '📡 CASA DAS ANTENAS';
  font-size: 0.75rem;
  font-weight: 700;
  color: #94A3B8;
  text-align: center;
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content h2 {
    font-size: 2.2rem;
  }
  .hero-actions {
    justify-content: center;
  }
  .props-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .topbar-single-line {
    font-size: 0.68rem;
  }
  .header-main {
    flex-direction: column;
    align-items: stretch;
  }
}
