/**
 * Connect E-Commerce - Template Black Friday
 * @copyright 2025 Connect Designers®
 * @version 1.8.9
 *
 * Template especial para campanhas de Black Friday, November Black e períodos promocionais
 * Inspirado em: tray.com.br, nuvemshop.com.br
 */

/* ========================================
   RESET ULTRA-PRIORIDADE - FORÇAR BLACK
   ======================================== */
html.template-black,
html.ec-black {
    background: #000000 !important;
    background-color: #000000 !important;
}

body.template-black,
body.ec-black,
.template-black body,
.ec-black body {
    background: #000000 !important;
    background-color: #000000 !important;
    background-image: none !important;
    color: #FFFFFF !important;
}

/* Forçar preto em TODOS os wrappers possíveis */
.template-black #wrapper,
.template-black .wrapper,
.template-black #main,
.template-black .main,
.template-black .page,
.template-black .site,
.template-black .content-area,
.template-black .site-content,
.ec-black #wrapper,
.ec-black .wrapper,
.ec-black #main,
.ec-black .main,
.ec-black .page,
.ec-black .site,
.ec-black .content-area,
.ec-black .site-content {
    background: #000000 !important;
    background-color: #000000 !important;
}

/* Containers do Perfex */
.template-black .client-area,
.template-black .customers-area,
.ec-black .client-area,
.ec-black .customers-area {
    background: #000000 !important;
}

/* ========================================
   RESET E BASE - TEMA ESCURO
   ======================================== */
.ec-black {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    background: #000000 !important;
    color: #FFFFFF !important;
}

/* Cor de fundo geral */
body.template-black {
    background: #000000 !important;
    min-height: 100vh !important;
    color: #FFFFFF !important;
}

/* Container principal */
.ec-black .content-wrapper,
.template-black .content-wrapper {
    background: #000000 !important;
}

/* Forçar textos brancos com maior especificidade */
.template-black *:not(.price-current):not(.btn-primary):not(.btn-danger):not(.btn-success):not(.badge-primary):not(.badge-danger):not(.badge-success),
.ec-black *:not(.price-current):not(.btn-primary):not(.btn-danger):not(.btn-success):not(.badge-primary):not(.badge-danger):not(.badge-success) {
    color: inherit !important;
}

.template-black,
.ec-black {
    color: #FFFFFF !important;
}

/* Forçar background preto em DIVs genéricas */
.template-black div:not(.product-card):not(.btn):not(.badge):not(.alert),
.ec-black div:not(.product-card):not(.btn):not(.badge):not(.alert) {
    background-color: transparent !important;
}

/* Sections com background escuro */
.template-black section,
.template-black article,
.ec-black section,
.ec-black article {
    background: transparent !important;
}

/* ========================================
   CARDS DE PRODUTO - ESTILO BLACK FRIDAY
   ======================================== */
.ec-black .product-card,
.template-black .product-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%) !important;
    border: 1px solid #333333 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 30px rgba(255, 215, 0, 0.15) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden !important;
    position: relative !important;
}

.ec-black .product-card::before,
.template-black .product-card::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 2px !important;
    background: linear-gradient(90deg, #FFD700 0%, #FFA500 50%, #FFD700 100%) !important;
    background-size: 200% 100% !important;
    animation: shimmer 3s infinite linear !important;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.ec-black .product-card:hover,
.template-black .product-card:hover {
    transform: translateY(-10px) scale(1.02) !important;
    box-shadow: 0 12px 50px rgba(255, 215, 0, 0.3), 0 0 30px rgba(255, 165, 0, 0.2) !important;
    border-color: #FFD700 !important;
}

/* Imagem do Produto */
.ec-black .product-card .product-image,
.template-black .product-card .product-image {
    position: relative !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%) !important;
    border-radius: 16px 16px 0 0 !important;
    aspect-ratio: 1 !important;
}

.ec-black .product-card .product-image::after,
.template-black .product-card .product-image::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 70%) !important;
    opacity: 0 !important;
    transition: opacity 0.4s ease !important;
}

.ec-black .product-card:hover .product-image::after,
.template-black .product-card:hover .product-image::after {
    opacity: 1 !important;
}

.ec-black .product-card .product-image img,
.template-black .product-card .product-image img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
    filter: brightness(1) !important;
}

.ec-black .product-card:hover .product-image img,
.template-black .product-card:hover .product-image img {
    transform: scale(1.15) !important;
    filter: brightness(1.1) !important;
}

/* ========================================
   TAGS E BADGES - BLACK FRIDAY STYLE
   ======================================== */
.ec-black .product-card .product-tag,
.template-black .product-card .product-tag {
    position: absolute !important;
    top: 16px !important;
    left: 16px !important;
    z-index: 10 !important;
}

.ec-black .product-card .product-tag span,
.template-black .product-card .product-tag span {
    display: inline-block !important;
    padding: 8px 16px !important;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
    color: #000000 !important;
    border-radius: 25px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5), 0 0 20px rgba(255, 165, 0, 0.3) !important;
    animation: pulse-glow 2s infinite !important;
}

/* Tag de Destaque - BLACK FRIDAY */
.ec-black .product-card .tag-destaque,
.template-black .product-card .tag-destaque {
    background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.5), 0 0 20px rgba(204, 0, 0, 0.3) !important;
}

/* Tag de Novidade */
.ec-black .product-card .tag-novo,
.template-black .product-card .tag-novo {
    background: linear-gradient(135deg, #00FF00 0%, #00CC00 100%) !important;
    color: #000000 !important;
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.5) !important;
}

/* Tag de Promoção */
.ec-black .product-card .tag-promocao,
.template-black .product-card .tag-promocao {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
    color: #000000 !important;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5), 0 0 20px rgba(255, 165, 0, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 25px rgba(255, 215, 0, 0.7), 0 0 30px rgba(255, 165, 0, 0.5);
    }
}

/* ========================================
   CONTEÚDO DO CARD - TEXTO BRANCO
   ======================================== */
.ec-black .product-card .product-content,
.template-black .product-card .product-content {
    padding: 24px !important;
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%) !important;
}

.ec-black .product-card .product-title,
.template-black .product-card .product-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #FFFFFF !important;
    margin-bottom: 8px !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

.ec-black .product-card .product-description,
.template-black .product-card .product-description {
    font-size: 14px !important;
    color: #CCCCCC !important;
    line-height: 1.6 !important;
    margin-bottom: 16px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* ========================================
   PREÇO - DESTAQUE DOURADO
   ======================================== */
.ec-black .product-card .product-price,
.template-black .product-card .product-price {
    display: flex !important;
    align-items: baseline !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
    flex-wrap: wrap !important;
}

.ec-black .product-card .price-current,
.template-black .product-card .price-current {
    font-size: 32px !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5) !important;
    filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.4)) !important;
}

.ec-black .product-card .price-original,
.template-black .product-card .price-original {
    font-size: 18px !important;
    color: #888888 !important;
    text-decoration: line-through !important;
}

.ec-black .product-card .price-discount,
.template-black .product-card .price-discount {
    display: inline-block !important;
    padding: 6px 12px !important;
    background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%) !important;
    color: #FFFFFF !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4) !important;
    animation: discount-pulse 2s infinite !important;
}

@keyframes discount-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* ========================================
   BOTÕES - ESTILO BLACK FRIDAY
   ======================================== */
.ec-black .product-card .product-actions,
.template-black .product-card .product-actions {
    display: flex !important;
    gap: 12px !important;
    margin-top: auto !important;
}

.ec-black .product-card .btn-modern,
.template-black .product-card .btn-modern {
    flex: 1 !important;
    padding: 14px 24px !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.ec-black .product-card .btn-primary-modern,
.template-black .product-card .btn-primary-modern {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
    color: #000000 !important;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4) !important;
}

.ec-black .product-card .btn-primary-modern:hover,
.template-black .product-card .btn-primary-modern:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.6), 0 0 20px rgba(255, 165, 0, 0.4) !important;
}

.ec-black .product-card .btn-secondary-modern,
.template-black .product-card .btn-secondary-modern {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #FFFFFF !important;
    border: 2px solid #333333 !important;
}

.ec-black .product-card .btn-secondary-modern:hover,
.template-black .product-card .btn-secondary-modern:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: #FFD700 !important;
}

/* Efeito de brilho ao clicar */
.ec-black .btn-modern::after,
.template-black .btn-modern::after {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 0 !important;
    height: 0 !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.5) !important;
    transform: translate(-50%, -50%) !important;
    transition: width 0.6s, height 0.6s !important;
}

.ec-black .btn-modern:active::after,
.template-black .btn-modern:active::after {
    width: 300px !important;
    height: 300px !important;
}

/* ========================================
   GRID LAYOUT
   ======================================== */
.ec-black .products-grid-modern,
.template-black .products-grid-modern {
    display: grid !important;
    gap: 32px !important;
    padding: 32px 0 !important;
}

.ec-black .products-grid-modern.grid-2,
.template-black .products-grid-modern.grid-2 {
    grid-template-columns: repeat(2, 1fr) !important;
}

.ec-black .products-grid-modern.grid-3,
.template-black .products-grid-modern.grid-3 {
    grid-template-columns: repeat(3, 1fr) !important;
}

.ec-black .products-grid-modern.grid-4,
.template-black .products-grid-modern.grid-4 {
    grid-template-columns: repeat(4, 1fr) !important;
}

/* ========================================
   FILTROS - TEMA ESCURO
   ======================================== */
.ec-black .filter-section-modern,
.template-black .filter-section-modern {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%) !important;
    border: 1px solid #333333 !important;
    border-radius: 16px !important;
    padding: 24px !important;
    box-shadow: 0 4px 30px rgba(255, 215, 0, 0.1) !important;
    margin-bottom: 32px !important;
}

.ec-black .filter-section-modern .filter-title,
.template-black .filter-section-modern .filter-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #FFFFFF !important;
    margin-bottom: 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.ec-black .filter-section-modern .filter-group,
.template-black .filter-section-modern .filter-group {
    margin-bottom: 24px !important;
}

.ec-black .filter-section-modern .filter-label,
.template-black .filter-section-modern .filter-label {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #CCCCCC !important;
    margin-bottom: 12px !important;
    display: block !important;
}

.ec-black .filter-section-modern .filter-select,
.ec-black .filter-section-modern .filter-input,
.template-black .filter-section-modern .filter-select,
.template-black .filter-section-modern .filter-input {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 2px solid #333333 !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    background: #0d0d0d !important;
    color: #FFFFFF !important;
}

.ec-black .filter-section-modern .filter-select:focus,
.ec-black .filter-section-modern .filter-input:focus,
.template-black .filter-section-modern .filter-select:focus,
.template-black .filter-section-modern .filter-input:focus {
    outline: none !important;
    border-color: #FFD700 !important;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2) !important;
}

/* ========================================
   BANNER HERO - BLACK FRIDAY
   ======================================== */
.ec-black .banner-hero-modern,
.template-black .banner-hero-modern {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%) !important;
    border: 2px solid #FFD700 !important;
    border-radius: 24px !important;
    padding: 60px 40px !important;
    margin-bottom: 48px !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 8px 40px rgba(255, 215, 0, 0.3), inset 0 0 60px rgba(255, 215, 0, 0.1) !important;
}

.ec-black .banner-hero-modern::before,
.template-black .banner-hero-modern::before {
    content: "" !important;
    position: absolute !important;
    top: -50% !important;
    right: -10% !important;
    width: 500px !important;
    height: 500px !important;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 70%) !important;
    border-radius: 50% !important;
    animation: float 6s infinite ease-in-out !important;
}

.ec-black .banner-hero-modern::after,
.template-black .banner-hero-modern::after {
    content: "" !important;
    position: absolute !important;
    bottom: -30% !important;
    left: -5% !important;
    width: 400px !important;
    height: 400px !important;
    background: radial-gradient(circle, rgba(255, 165, 0, 0.15) 0%, transparent 70%) !important;
    border-radius: 50% !important;
    animation: float 8s infinite ease-in-out reverse !important;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(20px, 20px) rotate(5deg); }
}

.ec-black .banner-hero-modern .banner-content,
.template-black .banner-hero-modern .banner-content {
    position: relative !important;
    z-index: 1 !important;
    color: #FFFFFF !important;
    text-align: center !important;
}

.ec-black .banner-hero-modern h1,
.template-black .banner-hero-modern h1 {
    font-size: 56px !important;
    font-weight: 800 !important;
    margin-bottom: 16px !important;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-shadow: 0 4px 20px rgba(255, 215, 0, 0.3) !important;
    filter: drop-shadow(0 2px 10px rgba(255, 215, 0, 0.5)) !important;
}

.ec-black .banner-hero-modern p,
.template-black .banner-hero-modern p {
    font-size: 20px !important;
    color: #CCCCCC !important;
    margin-bottom: 32px !important;
}

.ec-black .banner-hero-modern .btn-cta,
.template-black .banner-hero-modern .btn-cta {
    display: inline-block !important;
    padding: 18px 40px !important;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
    color: #000000 !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.4) !important;
}

.ec-black .banner-hero-modern .btn-cta:hover,
.template-black .banner-hero-modern .btn-cta:hover {
    transform: translateY(-4px) scale(1.05) !important;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.6), 0 0 30px rgba(255, 165, 0, 0.4) !important;
}

/* ========================================
   CONTROLES DE PRODUTOS
   ======================================== */
.ec-black .product-controls-container,
.template-black .product-controls-container {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%) !important;
    border: 1px solid #333333 !important;
    box-shadow: 0 2px 20px rgba(255, 215, 0, 0.1) !important;
}

.ec-black .product-controls-container::before,
.template-black .product-controls-container::before {
    background: linear-gradient(90deg, #FFD700 0%, #FFA500 50%, #FFD700 100%) !important;
    background-size: 200% 100% !important;
    animation: shimmer 3s infinite linear !important;
}

/* Botões de visualização */
.ec-black .ec-product-catalog-layout a,
.template-black .ec-product-catalog-layout a {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #CCCCCC !important;
    border-color: #333333 !important;
}

.ec-black .ec-product-catalog-layout a:hover,
.template-black .ec-product-catalog-layout a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #FFFFFF !important;
    border-color: #FFD700 !important;
}

.ec-black .ec-product-catalog-layout a.active,
.template-black .ec-product-catalog-layout a.active {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
    color: #000000 !important;
    border-color: #FFD700 !important;
}

/* ========================================
   BOTÃO FLUTUANTE DE CHECKOUT
   ======================================== */
.ec-black .floating-checkout-btn,
.template-black .floating-checkout-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
    box-shadow: 0 6px 30px rgba(255, 215, 0, 0.5) !important;
}

.ec-black .floating-checkout-btn:hover,
.template-black .floating-checkout-btn:hover {
    box-shadow: 0 10px 50px rgba(255, 215, 0, 0.7), 0 0 40px rgba(255, 165, 0, 0.5) !important;
}

/* ========================================
   SCROLLBAR CUSTOMIZADO
   ======================================== */
.ec-black ::-webkit-scrollbar,
.template-black ::-webkit-scrollbar {
    width: 12px !important;
    height: 12px !important;
}

.ec-black ::-webkit-scrollbar-track,
.template-black ::-webkit-scrollbar-track {
    background: #0d0d0d !important;
}

.ec-black ::-webkit-scrollbar-thumb,
.template-black ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
    border-radius: 6px !important;
}

.ec-black ::-webkit-scrollbar-thumb:hover,
.template-black ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%) !important;
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */
@media (max-width: 1024px) {
    .ec-black .products-grid-modern.grid-4,
    .template-black .products-grid-modern.grid-4 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .ec-black .products-grid-modern,
    .template-black .products-grid-modern {
        gap: 20px !important;
    }

    .ec-black .products-grid-modern.grid-2,
    .ec-black .products-grid-modern.grid-3,
    .ec-black .products-grid-modern.grid-4,
    .template-black .products-grid-modern.grid-2,
    .template-black .products-grid-modern.grid-3,
    .template-black .products-grid-modern.grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .ec-black .banner-hero-modern,
    .template-black .banner-hero-modern {
        padding: 40px 24px !important;
    }

    .ec-black .banner-hero-modern h1,
    .template-black .banner-hero-modern h1 {
        font-size: 36px !important;
    }
}

@media (max-width: 480px) {
    .ec-black .products-grid-modern.grid-2,
    .ec-black .products-grid-modern.grid-3,
    .ec-black .products-grid-modern.grid-4,
    .template-black .products-grid-modern.grid-2,
    .template-black .products-grid-modern.grid-3,
    .template-black .products-grid-modern.grid-4 {
        grid-template-columns: 1fr !important;
    }

    .ec-black .product-card .product-content,
    .template-black .product-card .product-content {
        padding: 16px !important;
    }

    .ec-black .filter-section-modern,
    .template-black .filter-section-modern {
        padding: 16px !important;
    }
}

/* ========================================
   ANIMAÇÕES ESPECIAIS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ec-black .product-card,
.template-black .product-card {
    animation: fadeInUp 0.6s ease-out !important;
}

.ec-black .product-card:nth-child(1),
.template-black .product-card:nth-child(1) { animation-delay: 0.1s !important; }
.ec-black .product-card:nth-child(2),
.template-black .product-card:nth-child(2) { animation-delay: 0.2s !important; }
.ec-black .product-card:nth-child(3),
.template-black .product-card:nth-child(3) { animation-delay: 0.3s !important; }
.ec-black .product-card:nth-child(4),
.template-black .product-card:nth-child(4) { animation-delay: 0.4s !important; }

/* ========================================
   ELEMENTOS DE TEXTO GERAIS
   ======================================== */
.ec-black h1, .ec-black h2, .ec-black h3,
.ec-black h4, .ec-black h5, .ec-black h6,
.template-black h1, .template-black h2, .template-black h3,
.template-black h4, .template-black h5, .template-black h6 {
    color: #FFFFFF !important;
}

.ec-black p, .ec-black span, .ec-black div,
.template-black p, .template-black span, .template-black div {
    color: #CCCCCC !important;
}

.ec-black a,
.template-black a {
    color: #FFD700 !important;
}

.ec-black a:hover,
.template-black a:hover {
    color: #FFA500 !important;
}

/* ========================================
   ÍCONES E SVG
   ======================================== */
.ec-black i, .ec-black .fa, .ec-black svg,
.template-black i, .template-black .fa, .template-black svg {
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
}

.ec-black .text-warning, .ec-black .text-gold,
.template-black .text-warning, .template-black .text-gold {
    color: #FFD700 !important;
}

/* ========================================
   EFEITOS DE PARTÍCULAS (OPCIONAL)
   ======================================== */
@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

.ec-black .sparkle,
.template-black .sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #FFD700;
    border-radius: 50%;
    animation: sparkle 2s infinite;
}

/* ========================================
   PÁGINA COMPLETA - BLACK FRIDAY TOTAL
   ======================================== */

/* Header/Navbar */
.template-black header,
.template-black .navbar,
.template-black .header,
.template-black .top-bar,
.ec-black header,
.ec-black .navbar,
.ec-black .header,
.ec-black .top-bar {
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%) !important;
    border-bottom: 2px solid #FFD700 !important;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2) !important;
}

.template-black .navbar-brand,
.template-black .logo,
.ec-black .navbar-brand,
.ec-black .logo {
    filter: brightness(0) invert(1) !important;
}

.template-black .nav-link,
.template-black .menu-item a,
.ec-black .nav-link,
.ec-black .menu-item a {
    color: #FFFFFF !important;
    transition: all 0.3s ease !important;
}

.template-black .nav-link:hover,
.template-black .menu-item a:hover,
.ec-black .nav-link:hover,
.ec-black .menu-item a:hover {
    color: #FFD700 !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5) !important;
}

.template-black .nav-link.active,
.ec-black .nav-link.active {
    color: #FFD700 !important;
    background: rgba(13, 13, 13, 0.95) !important;
    border-bottom: 2px solid #FFD700 !important;
    border-radius: 4px 4px 0 0 !important;
}

/* Menu ativo - todas as variações possíveis do Perfex CRM */
.template-black .navbar .nav > li.active > a,
.template-black .navbar .nav > li > a.active,
.template-black .navbar-nav > li.active > a,
.template-black .navbar-nav > li > a.active,
.template-black #top-menu li.active a,
.template-black #top-menu a.active,
.template-black .nav.navbar-nav li.active a,
.template-black .nav.navbar-nav a.active,
.ec-black .navbar .nav > li.active > a,
.ec-black .navbar .nav > li > a.active,
.ec-black .navbar-nav > li.active > a,
.ec-black .navbar-nav > li > a.active,
.ec-black #top-menu li.active a,
.ec-black #top-menu a.active,
.ec-black .nav.navbar-nav li.active a,
.ec-black .nav.navbar-nav a.active {
    color: #FFD700 !important;
    background: rgba(13, 13, 13, 0.95) !important;
    border-bottom: 3px solid #FFD700 !important;
    font-weight: 600 !important;
}

/* Hover no menu ativo para manter o estilo */
.template-black .navbar .nav > li.active > a:hover,
.template-black .navbar .nav > li.active > a:focus,
.template-black .navbar-nav > li.active > a:hover,
.template-black .navbar-nav > li.active > a:focus,
.ec-black .navbar .nav > li.active > a:hover,
.ec-black .navbar .nav > li.active > a:focus,
.ec-black .navbar-nav > li.active > a:hover,
.ec-black .navbar-nav > li.active > a:focus {
    color: #FFD700 !important;
    background: rgba(13, 13, 13, 1) !important;
    border-bottom: 3px solid #FFD700 !important;
}

/* Container/Wrapper principal */
.template-black .container,
.template-black .wrapper,
.template-black .main-content,
.template-black .content,
.ec-black .container,
.ec-black .wrapper,
.ec-black .main-content,
.ec-black .content {
    background: transparent !important;
}

/* Todos os painéis/panels */
.template-black .panel,
.template-black .panel_s,
.template-black .card,
.template-black .box,
.ec-black .panel,
.ec-black .panel_s,
.ec-black .card,
.ec-black .box {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%) !important;
    border: 1px solid #333333 !important;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.1) !important;
}

.template-black .panel-heading,
.template-black .panel-header,
.template-black .card-header,
.ec-black .panel-heading,
.ec-black .panel-header,
.ec-black .card-header {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%) !important;
    border-bottom: 2px solid #FFD700 !important;
    color: #FFFFFF !important;
}

.template-black .panel-body,
.template-black .card-body,
.ec-black .panel-body,
.ec-black .card-body {
    background: transparent !important;
    color: #CCCCCC !important;
}

/* Breadcrumbs */
.template-black .breadcrumb,
.ec-black .breadcrumb {
    background: rgba(26, 26, 26, 0.5) !important;
    border: 1px solid #333333 !important;
}

.template-black .breadcrumb-item,
.template-black .breadcrumb a,
.ec-black .breadcrumb-item,
.ec-black .breadcrumb a {
    color: #CCCCCC !important;
}

.template-black .breadcrumb-item.active,
.ec-black .breadcrumb-item.active {
    color: #FFD700 !important;
}

/* Sidebar/Filtros laterais */
.template-black .sidebar,
.template-black .filter-sidebar,
.template-black aside,
.ec-black .sidebar,
.ec-black .filter-sidebar,
.ec-black aside {
    background: linear-gradient(180deg, #0d0d0d 0%, #1a1a1a 100%) !important;
    border: 1px solid #333333 !important;
    padding: 20px !important;
}

.template-black .sidebar-title,
.template-black .widget-title,
.ec-black .sidebar-title,
.ec-black .widget-title {
    color: #FFD700 !important;
    border-bottom: 2px solid #FFD700 !important;
    padding-bottom: 10px !important;
    margin-bottom: 20px !important;
}

/* Inputs e Forms */
.template-black input[type="text"],
.template-black input[type="email"],
.template-black input[type="password"],
.template-black input[type="search"],
.template-black input[type="number"],
.template-black textarea,
.template-black select,
.ec-black input[type="text"],
.ec-black input[type="email"],
.ec-black input[type="password"],
.ec-black input[type="search"],
.ec-black input[type="number"],
.ec-black textarea,
.ec-black select {
    background: #0d0d0d !important;
    border: 2px solid #333333 !important;
    color: #FFFFFF !important;
    border-radius: 8px !important;
    padding: 10px 15px !important;
}

.template-black input:focus,
.template-black textarea:focus,
.template-black select:focus,
.ec-black input:focus,
.ec-black textarea:focus,
.ec-black select:focus {
    border-color: #FFD700 !important;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2) !important;
    outline: none !important;
}

.template-black ::placeholder,
.ec-black ::placeholder {
    color: #666666 !important;
}

/* Labels */
.template-black label,
.template-black .form-label,
.template-black .control-label,
.ec-black label,
.ec-black .form-label,
.ec-black .control-label {
    color: #CCCCCC !important;
    font-weight: 500 !important;
}

/* Botões gerais */
.template-black .btn,
.template-black button,
.ec-black .btn,
.ec-black button {
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.template-black .btn-primary,
.ec-black .btn-primary {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
    border: none !important;
    color: #000000 !important;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4) !important;
}

.template-black .btn-primary:hover,
.ec-black .btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.6) !important;
}

.template-black .btn-secondary,
.template-black .btn-default,
.ec-black .btn-secondary,
.ec-black .btn-default {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid #333333 !important;
    color: #FFFFFF !important;
}

.template-black .btn-secondary:hover,
.template-black .btn-default:hover,
.ec-black .btn-secondary:hover,
.ec-black .btn-default:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: #FFD700 !important;
}

.template-black .btn-success,
.ec-black .btn-success {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
    border: none !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.4) !important;
}

.template-black .btn-success:hover,
.ec-black .btn-success:hover {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 25px rgba(108, 117, 125, 0.6) !important;
}

.template-black .btn-danger,
.ec-black .btn-danger {
    background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%) !important;
    border: none !important;
    color: #FFFFFF !important;
}

/* Tabelas */
.template-black table,
.template-black .table,
.ec-black table,
.ec-black .table {
    background: transparent !important;
    color: #CCCCCC !important;
}

.template-black thead,
.template-black th,
.ec-black thead,
.ec-black th {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%) !important;
    color: #FFD700 !important;
    border-color: #333333 !important;
}

.template-black tbody tr,
.ec-black tbody tr {
    border-color: #333333 !important;
}

.template-black tbody tr:hover,
.ec-black tbody tr:hover {
    background: rgba(255, 215, 0, 0.05) !important;
}

.template-black td,
.ec-black td {
    border-color: #333333 !important;
    color: #CCCCCC !important;
}

/* Paginação */
.template-black .pagination,
.ec-black .pagination {
    gap: 8px !important;
}

.template-black .pagination .page-link,
.template-black .pagination a,
.ec-black .pagination .page-link,
.ec-black .pagination a {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid #333333 !important;
    color: #CCCCCC !important;
    border-radius: 6px !important;
}

.template-black .pagination .page-link:hover,
.ec-black .pagination .page-link:hover {
    background: rgba(255, 215, 0, 0.2) !important;
    border-color: #FFD700 !important;
    color: #FFD700 !important;
}

.template-black .pagination .page-link.active,
.template-black .pagination .active .page-link,
.ec-black .pagination .page-link.active,
.ec-black .pagination .active .page-link {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
    border-color: #FFD700 !important;
    color: #000000 !important;
}

/* Modal/Popups */
.template-black .modal-content,
.ec-black .modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%) !important;
    border: 2px solid #FFD700 !important;
    box-shadow: 0 10px 50px rgba(255, 215, 0, 0.3) !important;
}

.template-black .modal-header,
.ec-black .modal-header {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%) !important;
    border-bottom: 2px solid #FFD700 !important;
    color: #FFFFFF !important;
}

.template-black .modal-body,
.ec-black .modal-body {
    color: #CCCCCC !important;
}

.template-black .modal-footer,
.ec-black .modal-footer {
    border-top: 1px solid #333333 !important;
    background: rgba(13, 13, 13, 0.5) !important;
}

.template-black .close,
.ec-black .close {
    color: #FFFFFF !important;
    opacity: 0.8 !important;
    text-shadow: none !important;
}

.template-black .close:hover,
.ec-black .close:hover {
    color: #FFD700 !important;
    opacity: 1 !important;
}

/* Modal Carrinho - Correção de imagens e estilos */
.template-black .modal-body .cart-item,
.ec-black .modal-body .cart-item,
#modalMyCart .cart-item {
    padding: 10px 0 !important;
}

/* Seletor super específico para garantir que funcione */
.template-black #modalMyCart .product-image,
.ec-black #modalMyCart .product-image,
#modalMyCart .modal-body .product-image,
#modalMyCart .product-image,
.template-black .modal-body .product-image,
.ec-black .modal-body .product-image {
    width: 120px !important;
    height: 68px !important;
    object-fit: cover !important;
    border: 2px solid #333333 !important;
    border-radius: 8px !important;
    background: #0d0d0d !important;
    display: block !important;
    max-width: 120px !important;
    max-height: 68px !important;
}

.template-black .modal-body .cart-item-name,
.template-black .modal-body .cart-item-name a,
.ec-black .modal-body .cart-item-name,
.ec-black .modal-body .cart-item-name a {
    color: #FFFFFF !important;
    font-weight: 600 !important;
}

.template-black .modal-body .cart-item-price,
.ec-black .modal-body .cart-item-price {
    color: #FFD700 !important;
    font-weight: 700 !important;
    font-size: 16px !important;
}

.template-black .modal-body .product-qty,
.ec-black .modal-body .product-qty {
    background: #0d0d0d !important;
    border: 2px solid #333333 !important;
    color: #FFFFFF !important;
}

.template-black .modal-body .remove-cart-item,
.ec-black .modal-body .remove-cart-item {
    color: #FF0000 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.template-black .modal-body .remove-cart-item:hover,
.ec-black .modal-body .remove-cart-item:hover {
    color: #CC0000 !important;
    transform: scale(1.2) !important;
}

.template-black .modal-body hr,
.ec-black .modal-body hr {
    border-color: #333333 !important;
}

/* Botão Finalizar Compra no Modal Carrinho - Cinza Degradê Perfex */
.template-black #modalMyCart .btn-info,
.ec-black #modalMyCart .btn-info,
.template-black .modal-body .btn-info,
.ec-black .modal-body .btn-info {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
    border-color: #6c757d !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.4) !important;
}

.template-black #modalMyCart .btn-info:hover,
.ec-black #modalMyCart .btn-info:hover,
.template-black .modal-body .btn-info:hover,
.ec-black .modal-body .btn-info:hover {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%) !important;
    border-color: #495057 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 25px rgba(108, 117, 125, 0.6) !important;
}

/* Alertas */
.template-black .alert,
.ec-black .alert {
    border-radius: 12px !important;
    border: 2px solid !important;
}

.template-black .alert-success,
.ec-black .alert-success {
    background: rgba(16, 185, 129, 0.2) !important;
    border-color: #10b981 !important;
    color: #FFFFFF !important;
}

.template-black .alert-warning,
.ec-black .alert-warning {
    background: rgba(255, 215, 0, 0.2) !important;
    border-color: #FFD700 !important;
    color: #FFFFFF !important;
}

.template-black .alert-danger,
.ec-black .alert-danger {
    background: rgba(255, 0, 0, 0.2) !important;
    border-color: #FF0000 !important;
    color: #FFFFFF !important;
}

.template-black .alert-info,
.ec-black .alert-info {
    background: rgba(59, 130, 246, 0.2) !important;
    border-color: #3b82f6 !important;
    color: #FFFFFF !important;
}

/* Alert Float (Notificações Flutuantes) - Black Friday Theme */
.template-black .alert-float,
.template-black #alert-float,
.template-black .alert.alert-float,
.ec-black .alert-float,
.ec-black #alert-float,
.ec-black .alert.alert-float {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%) !important;
    border: 2px solid !important;
    border-radius: 12px !important;
    color: #FFFFFF !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5) !important;
    padding: 15px 20px !important;
    font-weight: 500 !important;
}

.template-black .alert-float.alert-success,
.template-black #alert-float.alert-success,
.ec-black .alert-float.alert-success,
.ec-black #alert-float.alert-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border-color: #10b981 !important;
    color: #FFFFFF !important;
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5) !important;
}

.template-black .alert-float.alert-danger,
.template-black #alert-float.alert-danger,
.ec-black .alert-float.alert-danger,
.ec-black #alert-float.alert-danger {
    background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%) !important;
    border-color: #FF0000 !important;
    color: #FFFFFF !important;
    box-shadow: 0 8px 30px rgba(255, 0, 0, 0.5) !important;
}

.template-black .alert-float.alert-warning,
.template-black #alert-float.alert-warning,
.ec-black .alert-float.alert-warning,
.ec-black #alert-float.alert-warning {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
    border-color: #FFD700 !important;
    color: #000000 !important;
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.5) !important;
}

.template-black .alert-float.alert-info,
.template-black #alert-float.alert-info,
.ec-black .alert-float.alert-info,
.ec-black #alert-float.alert-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    border-color: #3b82f6 !important;
    color: #FFFFFF !important;
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5) !important;
}

/* Badges/Tags */
.template-black .badge,
.template-black .tag,
.template-black .label,
.ec-black .badge,
.ec-black .tag,
.ec-black .label {
    border-radius: 20px !important;
    padding: 6px 12px !important;
    font-weight: 600 !important;
}

.template-black .badge-primary,
.ec-black .badge-primary {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
    color: #000000 !important;
}

.template-black .badge-success,
.ec-black .badge-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #FFFFFF !important;
}

.template-black .badge-danger,
.ec-black .badge-danger {
    background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%) !important;
    color: #FFFFFF !important;
}

/* Footer/Rodapé */
.template-black footer,
.template-black .footer,
.ec-black footer,
.ec-black .footer {
    background: linear-gradient(180deg, #0d0d0d 0%, #000000 100%) !important;
    border-top: 2px solid #FFD700 !important;
    color: #CCCCCC !important;
    padding: 40px 0 !important;
    margin-top: 60px !important;
}

.template-black footer h1,
.template-black footer h2,
.template-black footer h3,
.template-black footer h4,
.template-black footer h5,
.template-black footer h6,
.ec-black footer h1,
.ec-black footer h2,
.ec-black footer h3,
.ec-black footer h4,
.ec-black footer h5,
.ec-black footer h6 {
    color: #FFD700 !important;
}

.template-black footer a,
.ec-black footer a {
    color: #CCCCCC !important;
    transition: all 0.3s ease !important;
}

.template-black footer a:hover,
.ec-black footer a:hover {
    color: #FFD700 !important;
    text-decoration: none !important;
}

/* Copyright */
.template-black .copyright,
.ec-black .copyright {
    background: #000000 !important;
    border-top: 1px solid #333333 !important;
    padding: 20px 0 !important;
    text-align: center !important;
    color: #666666 !important;
}

/* Carrinho/Cart */
.template-black .cart-icon,
.template-black .shopping-cart,
.ec-black .cart-icon,
.ec-black .shopping-cart {
    position: relative !important;
}

.template-black .cart-count,
.template-black .badge-cart,
.ec-black .cart-count,
.ec-black .badge-cart {
    background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%) !important;
    color: #FFFFFF !important;
    border-radius: 50% !important;
    min-width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 10px rgba(255, 0, 0, 0.5) !important;
    animation: pulse 2s infinite !important;
}

/* Lista de produtos/categorias */
.template-black .category-item,
.template-black .product-item,
.ec-black .category-item,
.ec-black .product-item {
    background: rgba(26, 26, 26, 0.5) !important;
    border: 1px solid #333333 !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
}

.template-black .category-item:hover,
.template-black .product-item:hover,
.ec-black .category-item:hover,
.ec-black .product-item:hover {
    border-color: #FFD700 !important;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2) !important;
    transform: translateY(-2px) !important;
}

/* Search/Busca */
.template-black .search-box,
.template-black .search-form,
.ec-black .search-box,
.ec-black .search-form {
    background: rgba(13, 13, 13, 0.8) !important;
    border: 2px solid #333333 !important;
    border-radius: 50px !important;
    overflow: hidden !important;
}

.template-black .search-box:focus-within,
.template-black .search-form:focus-within,
.ec-black .search-box:focus-within,
.ec-black .search-form:focus-within {
    border-color: #FFD700 !important;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2) !important;
}

.template-black .search-icon,
.template-black .search-btn,
.ec-black .search-icon,
.ec-black .search-btn {
    color: #FFD700 !important;
    background: transparent !important;
}

/* Dropdown menus */
.template-black .dropdown-menu,
.ec-black .dropdown-menu {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%) !important;
    border: 2px solid #FFD700 !important;
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.3) !important;
}

.template-black .dropdown-item,
.ec-black .dropdown-item {
    color: #CCCCCC !important;
}

.template-black .dropdown-item:hover,
.ec-black .dropdown-item:hover {
    background: rgba(255, 215, 0, 0.1) !important;
    color: #FFD700 !important;
}

/* Modal de Variações - Black Friday Theme */
.template-black .ec-modal-content,
.ec-black .ec-modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%) !important;
    border: 2px solid #FFD700 !important;
    box-shadow: 0 10px 50px rgba(255, 215, 0, 0.4) !important;
}

.template-black .ec-modal-header,
.ec-black .ec-modal-header {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%) !important;
    border-bottom: 2px solid #FFD700 !important;
}

.template-black .ec-modal-title,
.ec-black .ec-modal-title {
    color: #FFD700 !important;
    font-weight: 700 !important;
}

.template-black .ec-modal-close,
.ec-black .ec-modal-close {
    color: #FFFFFF !important;
    opacity: 0.8 !important;
}

.template-black .ec-modal-close:hover,
.ec-black .ec-modal-close:hover {
    color: #FFD700 !important;
    opacity: 1 !important;
}

.template-black .ec-modal-body,
.ec-black .ec-modal-body {
    background: #0d0d0d !important;
}

.template-black .ec-modal-product-title,
.ec-black .ec-modal-product-title {
    color: #FFFFFF !important;
}

.template-black .ec-modal-product-price,
.ec-black .ec-modal-product-price {
    color: #FFD700 !important;
}

.template-black .ec-modal-product-image,
.ec-black .ec-modal-product-image {
    background: #1a1a1a !important;
    border: 2px solid #333333 !important;
}

.template-black .ec-variation-label,
.ec-black .ec-variation-label {
    color: #CCCCCC !important;
}

.template-black .ec-variation-option,
.ec-black .ec-variation-option {
    background: #1a1a1a !important;
    border: 2px solid #333333 !important;
    color: #FFFFFF !important;
}

.template-black .ec-variation-option:hover,
.ec-black .ec-variation-option:hover {
    border-color: #FFD700 !important;
    background: rgba(255, 215, 0, 0.1) !important;
}

.template-black .ec-variation-option.selected,
.ec-black .ec-variation-option.selected {
    background: rgba(255, 215, 0, 0.2) !important;
    border-color: #FFD700 !important;
    color: #FFD700 !important;
}

/* Botões do Modal de Variações */
.template-black .ec-modal-button,
.ec-black .ec-modal-button {
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 12px 24px !important;
    transition: all 0.3s ease !important;
}

/* Botão Cancelar - Cinza com texto escuro visível */
.template-black .ec-modal-cancel,
.ec-black .ec-modal-cancel {
    background: #6c757d !important;
    color: #FFFFFF !important;
    border: 2px solid #6c757d !important;
}

.template-black .ec-modal-cancel:hover,
.ec-black .ec-modal-cancel:hover {
    background: #495057 !important;
    border-color: #495057 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4) !important;
}

/* Botão Adicionar - Cinza degradê Perfex (não verde) */
.template-black .ec-modal-add,
.ec-black .ec-modal-add {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
    color: #FFFFFF !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.4) !important;
}

.template-black .ec-modal-add:hover,
.ec-black .ec-modal-add:hover {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 25px rgba(108, 117, 125, 0.6) !important;
}

/* Bootstrap-select (selectpicker) - Correção para variações de produtos */
.template-black .bootstrap-select .dropdown-menu,
.ec-black .bootstrap-select .dropdown-menu {
    background: #1a1a1a !important;
    border: 2px solid #FFD700 !important;
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.3) !important;
    opacity: 1 !important;
    z-index: 9999 !important;
}

.template-black .bootstrap-select .dropdown-menu li a,
.ec-black .bootstrap-select .dropdown-menu li a {
    color: #CCCCCC !important;
    background: transparent !important;
}

.template-black .bootstrap-select .dropdown-menu li a:hover,
.template-black .bootstrap-select .dropdown-menu li.selected a,
.ec-black .bootstrap-select .dropdown-menu li a:hover,
.ec-black .bootstrap-select .dropdown-menu li.selected a {
    background: rgba(255, 215, 0, 0.15) !important;
    color: #FFD700 !important;
}

.template-black .bootstrap-select .dropdown-menu li.active a,
.ec-black .bootstrap-select .dropdown-menu li.active a {
    background: rgba(255, 215, 0, 0.25) !important;
    color: #FFD700 !important;
}

.template-black .bootstrap-select button,
.ec-black .bootstrap-select button {
    background: #0d0d0d !important;
    border: 2px solid #333333 !important;
    color: #FFFFFF !important;
}

.template-black .bootstrap-select button:hover,
.template-black .bootstrap-select button:focus,
.ec-black .bootstrap-select button:hover,
.ec-black .bootstrap-select button:focus {
    background: #1a1a1a !important;
    border-color: #FFD700 !important;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2) !important;
}

/* Tabs/Abas */
.template-black .nav-tabs,
.ec-black .nav-tabs {
    border-bottom: 2px solid #333333 !important;
}

.template-black .nav-tabs .nav-link,
.ec-black .nav-tabs .nav-link {
    color: #CCCCCC !important;
    border: none !important;
    border-bottom: 3px solid transparent !important;
}

.template-black .nav-tabs .nav-link:hover,
.ec-black .nav-tabs .nav-link:hover {
    color: #FFD700 !important;
    border-bottom-color: #FFD700 !important;
}

.template-black .nav-tabs .nav-link.active,
.ec-black .nav-tabs .nav-link.active {
    color: #FFD700 !important;
    background: rgba(13, 13, 13, 0.95) !important;
    border-bottom-color: #FFD700 !important;
}

/* ============================================================
   PREÇOS PROMOCIONAIS - Design Premium Minimalista
   Migration 189 - Sistema de Promoções
   ============================================================ */

/* Badge de desconto - POSICIONADO NO CANTO SUPERIOR DIREITO DO CARD */
.template-black .product-card,
.ec-black .product-card {
    position: relative !important; /* Necessário para o position absolute do badge */
}

.template-black .price-badge-discount,
.ec-black .price-badge-discount {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    background: #FF3B3B !important;
    background: linear-gradient(135deg, #FF3B3B 0%, #D32F2F 100%) !important;
    color: #FFFFFF !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 5px 12px !important;
    border-radius: 4px !important;
    letter-spacing: 0.5px !important;
    line-height: 1.3 !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5) !important;
    z-index: 10 !important; /* Fica acima da imagem */
    backdrop-filter: blur(4px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Wrapper principal dos preços - INLINE */
.template-black .price-promotion-wrapper,
.ec-black .price-promotion-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px !important;
    line-height: 1.4 !important;
}

/* Labels "De" e "Por" */
.template-black .price-label-de,
.template-black .price-label-por,
.ec-black .price-label-de,
.ec-black .price-label-por {
    font-size: 14px !important;
    color: #999999 !important;
    font-weight: 400 !important;
    text-transform: lowercase !important;
}

/* Preço original - menor e riscado */
.template-black .price-original-value,
.ec-black .price-original-value {
    font-size: 16px !important;
    color: #888888 !important;
    font-weight: 400 !important;
    text-decoration: line-through !important;
    opacity: 0.7 !important;
}

/* Preço promocional - destaque preto bold */
.template-black .price-current-value,
.ec-black .price-current-value {
    font-size: 28px !important;
    color: #000000 !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px !important;
}

/* Ajuste do container de preço */
.template-black .product-price.products-pricing,
.ec-black .product-price.products-pricing {
    min-height: 85px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: 8px 0 !important;
}

/* Responsivo mobile */
@media (max-width: 768px) {
    .template-black .price-current-value,
    .ec-black .price-current-value {
        font-size: 22px !important;
    }

    .template-black .price-original-value,
    .ec-black .price-original-value {
        font-size: 14px !important;
    }

    .template-black .price-label-de,
    .template-black .price-label-por,
    .ec-black .price-label-de,
    .ec-black .price-label-por {
        font-size: 12px !important;
    }

    .template-black .price-badge-discount,
    .ec-black .price-badge-discount {
        top: 8px !important;
        right: 8px !important;
        font-size: 10px !important;
        padding: 4px 10px !important;
    }
}

/* Hover sutil no card com promoção */
.template-black .product-card:hover .price-current-value,
.ec-black .product-card:hover .price-current-value {
    color: #1a1a1a !important;
}

.template-black .product-card:hover .price-badge-discount,
.ec-black .product-card:hover .price-badge-discount {
    background: #FF2020 !important;
    box-shadow: 0 3px 8px rgba(255, 32, 32, 0.4) !important;
    transform: scale(1.05) !important;
    transition: all 0.2s ease !important;
}

/* Loading/Spinner */
.template-black .spinner,
.template-black .loader,
.ec-black .spinner,
.ec-black .loader {
    border-color: #333333 !important;
    border-top-color: #FFD700 !important;
}

/* Tooltips */
.template-black .tooltip-inner,
.ec-black .tooltip-inner {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
    color: #000000 !important;
    font-weight: 600 !important;
}

/* Dividers/Separadores */
.template-black hr,
.ec-black hr {
    border-color: #333333 !important;
    opacity: 0.5 !important;
}

/* Text utilities override */
.template-black .text-dark,
.ec-black .text-dark {
    color: #FFFFFF !important;
}

.template-black .text-muted,
.ec-black .text-muted {
    color: #888888 !important;
}

/* Background utilities override */
.template-black .bg-light,
.template-black .bg-white,
.ec-black .bg-light,
.ec-black .bg-white {
    background: rgba(26, 26, 26, 0.5) !important;
}

.template-black .bg-dark,
.ec-black .bg-dark {
    background: #0d0d0d !important;
}
