/* SharkSales Premium Layout Enhancements */

/* === BACKGROUND PREMIUM DO SITE === */
.ss-canvas-page {
  /* Background usando cores da marca - azul vibrante, sem cinza escuro */
  background: 
    radial-gradient(ellipse at 20% 10%, rgba(130, 180, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 40%, rgba(100, 180, 255, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 40% 80%, rgba(74, 158, 255, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, var(--ss-dark-bg, #1a2565) 0%, #1e2a70 50%, var(--ss-dark-bg, #1a2565) 100%) !important;
  background-attachment: fixed;
  position: relative;
}

/* Efeito de partículas sutis - DESATIVADO para evitar overlay cinza
.ss-canvas-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(2px 2px at 20% 30%, rgba(111, 129, 255, 0.15), transparent),
    radial-gradient(2px 2px at 60% 70%, rgba(90, 140, 255, 0.12), transparent),
    radial-gradient(1px 1px at 50% 50%, rgba(130, 180, 255, 0.1), transparent),
    radial-gradient(1px 1px at 80% 10%, rgba(100, 180, 255, 0.08), transparent);
  background-size: 250px 250px, 300px 300px, 200px 200px, 350px 350px;
  background-position: 0 0, 40px 60px, 130px 270px, 70px 100px;
  pointer-events: none;
  z-index: -1;
}
*/

.ss-canvas-page > * {
  position: relative;
  z-index: 1;
}

/* === GRID 3 COLUNAS DESKTOP === */
.ss-ativos-grid {
  display: grid;
  gap: var(--ss-space-6) !important;
  width: 100%;
  grid-template-columns: repeat(3, 1fr) !important;
}

/* Grid de ofertas também 3 colunas */
#sharksales-ofertas-grid.ss-ativos-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: var(--ss-space-5) !important;
}

/* === TÍTULO "PRODUTOS" PREMIUM === */
.ss-ativos-page-head {
  max-width: 100%;
  margin: 0 auto var(--ss-space-10) !important;
  padding: var(--ss-space-8) var(--ss-space-8) var(--ss-space-6) !important;
  
  /* Glassmorphism premium */
  background: rgba(18, 30, 65, 0.75) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  
  border-radius: 24px !important;
  border: 1px solid rgba(111, 129, 255, 0.3) !important;
  
  /* Sombras em camadas */
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(111, 129, 255, 0.2) inset,
    0 0 80px rgba(130, 180, 255, 0.1) !important;
  
  position: relative;
  overflow: visible !important;
}

/* Efeito de luz superior animada */
.ss-ativos-page-head::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px !important;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(130, 180, 255, 0.8) 30%,
    rgba(100, 180, 255, 0.8) 70%,
    transparent 100%
  ) !important;
  box-shadow: 0 0 20px rgba(111, 129, 255, 0.6) !important;
  animation: ss-title-glow 3s ease-in-out infinite;
}

@keyframes ss-title-glow {
  0%, 100% { 
    opacity: 0.6;
    box-shadow: 0 0 20px rgba(111, 129, 255, 0.4);
  }
  50% { 
    opacity: 1;
    box-shadow: 0 0 30px rgba(111, 129, 255, 0.8);
  }
}

/* Glow de fundo */
.ss-ativos-page-head::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  background: radial-gradient(
    ellipse at center,
    rgba(130, 180, 255, 0.15) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
  animation: ss-title-pulse 4s ease-in-out infinite;
}

@keyframes ss-title-pulse {
  0%, 100% { 
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  50% { 
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.8;
  }
}

/* Título "Produtos" gigante com gradiente */
.ss-page-title {
  font-size: clamp(2.5rem, 5vw, 4rem) !important;
  line-height: 1.1 !important;
  font-weight: var(--ss-font-weight-extrabold) !important;
  margin: 0 0 var(--ss-space-4) !important;
  
  /* Gradiente premium 3 cores */
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #e0e7ff 40%,
    #c7d2fe 70%,
    #0286fe 100%
  ) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  
  /* Efeitos de luz */
  filter: drop-shadow(0 4px 12px rgba(130, 180, 255, 0.3));
  
  letter-spacing: -0.03em !important;
  position: relative;
  z-index: 1;
  display: inline-block;
  padding-bottom: 0 !important;
}

/* Linha decorativa abaixo do título */
.ss-page-title::after {
  content: '';
  position: absolute;
  bottom: -10px !important;
  left: 0;
  width: 150px !important;
  height: 4px !important;
  background: linear-gradient(
    90deg,
    rgba(130, 180, 255, 0.9),
    rgba(167, 139, 250, 0.7),
    transparent
  ) !important;
  border-radius: 2px;
  box-shadow: 0 0 16px rgba(130, 180, 255, 0.8) !important;
  animation: ss-line-glow 2s ease-in-out infinite;
}

@keyframes ss-line-glow {
  0%, 100% {
    opacity: 0.7;
    box-shadow: 0 0 16px rgba(130, 180, 255, 0.6);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 24px rgba(130, 180, 255, 1);
  }
}

/* Subtítulo modernizado */
.ss-page-subtitle {
  margin: var(--ss-space-4) 0 0 !important;
  font-size: var(--ss-font-size-lg) !important;
  font-weight: var(--ss-font-weight-medium) !important;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9),
    rgba(210, 214, 230, 0.8)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px !important;
  position: relative;
  z-index: 1;
}

/* Ícone decorativo (opcional - pode adicionar via ::before no título) */
.ss-page-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(130, 180, 255, 0.2), rgba(100, 180, 255, 0.15));
  border: 1px solid rgba(111, 129, 255, 0.4);
  border-radius: 12px;
  margin-right: var(--ss-space-3);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 20px rgba(130, 180, 255, 0.3);
  vertical-align: middle;
}

/* === RESPONSIVO === */
@media (max-width: 1400px) {
  .ss-ativos-grid,
  #sharksales-ofertas-grid.ss-ativos-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 1024px) {
  .ss-ativos-grid,
  #sharksales-ofertas-grid.ss-ativos-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--ss-space-4) !important;
  }
  
  .ss-ativos-page-head {
    padding: var(--ss-space-6) var(--ss-space-5) var(--ss-space-5) !important;
  }
  
  .ss-page-title {
    font-size: 2.5rem !important;
  }
}

@media (max-width: 768px) {
  .ss-ativos-grid,
  #sharksales-ofertas-grid.ss-ativos-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--ss-space-3) !important;
  }
  
  .ss-ativos-page-head {
    padding: var(--ss-space-5) var(--ss-space-4) !important;
    margin-bottom: var(--ss-space-6) !important;
  }
  
  .ss-page-title {
    font-size: 2rem !important;
  }
  
  .ss-page-subtitle {
    font-size: var(--ss-font-size-base) !important;
  }
}

@media (max-width: 480px) {
  .ss-ativos-grid,
  #sharksales-ofertas-grid.ss-ativos-grid {
    grid-template-columns: 1fr !important;
  }
  
  .ss-page-title {
    font-size: 1.75rem !important;
  }
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
  .ss-ativos-page-head::before,
  .ss-ativos-page-head::after,
  .ss-page-title::after {
    animation: none !important;
  }
  
  .ss-canvas-page::before {
    display: none;
  }
}

/* === SEÇÃO DE OFERTAS === */
.sharksales-ofertas {
  margin-bottom: var(--ss-space-10) !important;
  padding: var(--ss-space-6) var(--ss-space-5) !important;
  background: linear-gradient(
    135deg,
    rgba(18, 30, 65, 0.6) 0%,
    rgba(15, 20, 40, 0.7) 100%
  ) !important;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(111, 129, 255, 0.2);
  border-radius: 24px;
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(111, 129, 255, 0.15) inset;
}

/* Título das ofertas */
.sharksales-ofertas-titulo h3 {
  font-size: clamp(1.75rem, 3vw, 2.5rem) !important;
  background: linear-gradient(135deg, #ffffff 0%, #d8d6f0 60%, #0286fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(130, 180, 255, 0.3));
}

/* === CATEGORIAS SIDEBAR === */
.ss-categories-title {
  padding: var(--ss-space-4) 0 var(--ss-space-3) !important;
  font-size: var(--ss-font-size-xl) !important;
  background: linear-gradient(135deg, #ffffff 0%, #d8d6f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border-bottom: 2px solid rgba(111, 129, 255, 0.4) !important;
  filter: drop-shadow(0 2px 4px rgba(130, 180, 255, 0.2));
}

.ss-categories-card {
  background: rgba(18, 30, 65, 0.6) !important;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(111, 129, 255, 0.2) !important;
  border-radius: 16px !important;
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(111, 129, 255, 0.1) inset;
}
