/* ============================================
   MIRMID PROAD - CSS GLOBAL DOS CARDS DE PRODUTO
   Versão: 3.0 (v4.4)
   Compatível com: Divi Theme + WordPress
   
   Este arquivo é carregado automaticamente pelo plugin.
   Inclui overrides de alta especificidade para compatibilidade com Divi Theme.
   ============================================ */

/* ============================================
   CARD MODELO 1: SELEÇÃO EDITORIAL
   Card horizontal integrado ao conteúdo
   ============================================ */
.content-highlight {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #f8fdf0 0%, #f0f7e4 100%);
    border: 1px solid #d4e4a8;
    border-left: 4px solid #7b932d;
    border-radius: 8px;
    padding: 20px;
    margin: 28px 0;
    transition: box-shadow 0.3s ease;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}
.content-highlight:hover {
    box-shadow: 0 4px 16px rgba(123, 147, 45, 0.15);
}
.content-highlight-media {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
}
.content-highlight-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.content-highlight-body {
    flex: 1;
}
.content-highlight-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #7b932d;
    margin-bottom: 6px;
}
.content-highlight-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.3;
}
.content-highlight-title a {
    color: #333;
    text-decoration: none;
}
.content-highlight-title a:hover {
    color: #7b932d;
}
.content-highlight-desc {
    font-size: 13.5px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}
.content-highlight-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}
.content-highlight-price {
    font-size: 18px;
    font-weight: 700;
    color: #7b932d;
}
.content-highlight-price small {
    font-size: 12px;
    font-weight: 400;
    color: #999;
    text-decoration: line-through;
    margin-right: 6px;
}
.content-highlight-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #7b932d;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: background 0.3s ease;
}
.content-highlight-action:hover {
    background: #669900;
    color: #fff !important;
}
.content-highlight-action svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

@media (max-width: 600px) {
    .content-highlight {
        flex-direction: column;
        text-align: center;
    }
    .content-highlight-media {
        width: 100%;
        height: 180px;
    }
    .content-highlight-meta {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* ============================================
   CARD MODELO 2: RECOMENDAÇÃO INLINE
   Card compacto entre parágrafos
   ============================================ */
.content-suggestion {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 24px 0;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}
.content-suggestion:hover {
    border-color: #b5c52a;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.content-suggestion-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #e8e8e8;
}
.content-suggestion-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.content-suggestion-text {
    flex: 1;
}
.content-suggestion-text strong {
    font-size: 16px;
    color: #333;
    line-height: 1.3;
}
.content-suggestion-text span {
    display: block;
    font-size: 12.5px;
    color: #888;
    margin-top: 1px;
    line-height: 1.4;
}
.content-suggestion-link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #7b932d !important;
    text-decoration: none !important;
    white-space: nowrap;
}
.content-suggestion-link:hover {
    text-decoration: underline !important;
}
.content-suggestion-link svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

@media (max-width: 600px) {
    .content-suggestion {
        flex-wrap: wrap;
    }
    .content-suggestion-link {
        width: 100%;
        justify-content: center;
        margin-top: 8px;
        padding: 8px;
        background: #f8fdf0;
        border-radius: 6px;
    }
}

/* ============================================
   CARD MODELO 3: VITRINE DINÂMICA
   Carrossel interativo com autoplay via CSS + JS leve
   ============================================ */
.content-selection {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 24px;
    margin: 32px 0;
    overflow: hidden;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}
.content-selection-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f0f7e4;
}
.content-selection-header svg {
    width: 22px;
    height: 22px;
    fill: #7b932d;
    flex-shrink: 0;
}
.content-selection-header h3 {
    font-size: 19px;
    font-weight: 700;
    color: #333;
    margin: 0;
    padding: 0;
}
.content-selection-viewport {
    position: relative;
    overflow: hidden;
}
.content-selection-track {
    display: flex;
    gap: 16px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.content-selection-item {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    transition: border-color 0.3s ease, transform 0.2s ease;
    flex: 0 0 calc(33.333% - 11px);
    min-width: 0;
}
.content-selection-item:hover {
    border-color: #b5c52a;
    transform: translateY(-2px);
}
.content-selection-item-img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    margin-bottom: 12px;
    background: #f7f6f2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.content-selection-item-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
}
.content-selection-item-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}
.content-selection-item-name a {
    color: #333;
    text-decoration: none;
}
.content-selection-item-name a:hover {
    color: #7b932d;
}
.content-selection-item-info {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}
.content-selection-item-value {
    font-size: 16px;
    font-weight: 700;
    color: #7b932d;
    margin-bottom: 10px;
}
.content-selection-item-btn {
    display: inline-block;
    background: #7b932d;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 8px rgba(123, 147, 45, 0.25);
}
.content-selection-item-btn:hover {
    background: #669900;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(123, 147, 45, 0.35);
    transform: translateY(-1px);
}

/* Navegação do Carrossel */
.content-selection-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}
.content-selection-prev,
.content-selection-next {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}
.content-selection-prev:hover,
.content-selection-next:hover {
    border-color: #7b932d;
    background: #f8fdf0;
}
.content-selection-prev svg,
.content-selection-next svg {
    width: 16px;
    height: 16px;
    fill: #666;
}
.content-selection-prev:hover svg,
.content-selection-next:hover svg {
    fill: #7b932d;
}
.content-selection-dots {
    display: flex;
    gap: 8px;
}
.content-selection-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}
.content-selection-dot.active {
    background: #7b932d;
    width: 24px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .content-selection-item {
        flex: 0 0 calc(50% - 8px);
    }
    .content-selection-item-img {
        aspect-ratio: 1 / 1 !important;
        height: auto !important;
    }
    .content-selection-item-btn {
        font-size: 13px;
        padding: 10px 20px;
    }
}
@media (max-width: 480px) {
    .content-selection-item {
        flex: 0 0 100%;
    }
    .content-selection-item-img {
        aspect-ratio: 1 / 1 !important;
        height: auto !important;
        background: #f7f6f2 !important;
    }
    .content-selection-item-img img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center center !important;
    }
    .content-selection-item-btn {
        font-size: 14px;
        padding: 12px 28px;
        width: 80%;
        text-align: center;
    }
}

/* ============================================
   CARD MODELO 4: NOTA DE ESPECIALISTAS
   Card estilo "dica do editor" com destaque visual
   ============================================ */
.content-note {
    position: relative;
    background: #fff;
    border: 2px solid #c5d68a;
    border-radius: 12px;
    padding: 26px;
    margin: 32px 0;
    overflow: hidden;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    box-shadow: 0 2px 12px rgba(123, 147, 45, 0.08);
}
.content-note::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #5a7a10, #7b932d, #b5c52a);
}
.content-note-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.content-note-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7b932d, #b5c52a);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(123, 147, 45, 0.25);
}
.content-note-avatar svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}
.content-note-author {
    font-size: 15px;
    font-weight: 700;
    color: #333;
}
.content-note-author span {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: #7b932d;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    vertical-align: middle;
}
.content-note-text {
    font-size: 16px;
    line-height: 1.65;
    color: #444;
    margin-bottom: 16px;
    font-style: italic;
    padding-left: 16px;
    border-left: 3px solid #c5d68a;
}
.content-note-text strong {
    font-style: normal;
    color: #2d3b0e;
}
.content-note-footer {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 14px;
    border-top: 1px solid #e8efd0;
}
.content-note-footer-img {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #e8efd0;
}
.content-note-footer-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.content-note-footer-info {
    flex: 1;
}
.content-note-footer-info strong {
    font-size: 14px;
    color: #333;
    display: block;
}
.content-note-footer-info small {
    font-size: 13px;
    color: #7b932d;
    font-weight: 700;
}
.content-note-footer a {
    font-size: 13px;
    font-weight: 600;
    color: #7b932d !important;
    text-decoration: none !important;
    border: 2px solid #7b932d;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.content-note-footer a:hover {
    background: #7b932d;
    color: #fff !important;
}

@media (max-width: 600px) {
    .content-note-footer {
        flex-wrap: wrap;
    }
    .content-note-footer a {
        width: 100%;
        text-align: center;
        margin-top: 8px;
    }
    .content-note-author span {
        display: inline-block;
        margin-left: 6px;
        margin-top: 0;
        width: auto;
        font-size: 10px;
        padding: 2px 7px;
        color: #fff !important;
        background: #7b932d !important;
    }
}

/* ============================================
   FIX: OVERRIDE DIVI THEME LINK COLORS
   Garante que botões dos cards mantenham cores corretas
   mesmo com estilos do Divi Theme aplicados
   ============================================ */

/* Modelo 1 - Botão "Conhecer Produto" */
.content-highlight .content-highlight-action,
.content-highlight .content-highlight-action:link,
.content-highlight .content-highlight-action:visited,
.content-highlight .content-highlight-action:active,
.content-highlight a.content-highlight-action,
.et_pb_module .content-highlight-action,
body .content-highlight-action {
    color: #fff !important;
    text-decoration: none !important;
}
.content-highlight .content-highlight-action:hover,
.content-highlight a.content-highlight-action:hover,
body .content-highlight-action:hover {
    color: #fff !important;
    text-decoration: none !important;
}

/* Modelo 3 - Botão vitrine */
.content-selection .content-selection-item-btn,
.content-selection .content-selection-item-btn:link,
.content-selection .content-selection-item-btn:visited,
.content-selection .content-selection-item-btn:active,
.content-selection a.content-selection-item-btn,
.et_pb_module .content-selection-item-btn,
body .content-selection-item-btn {
    color: #fff !important;
    text-decoration: none !important;
}
.content-selection .content-selection-item-btn:hover,
.content-selection a.content-selection-item-btn:hover,
body .content-selection-item-btn:hover {
    color: #fff !important;
    text-decoration: none !important;
}

/* Modelo 2 - Link "Ver na loja" */
.content-suggestion .content-suggestion-link,
.content-suggestion .content-suggestion-link:link,
.content-suggestion .content-suggestion-link:visited,
.content-suggestion a.content-suggestion-link,
.et_pb_module .content-suggestion-link,
body .content-suggestion-link {
    color: #7b932d !important;
    text-decoration: none !important;
}
.content-suggestion .content-suggestion-link:hover,
body .content-suggestion-link:hover {
    color: #7b932d !important;
    text-decoration: underline !important;
}

/* Modelo 4 - Botão "Ver Produto" */
.content-note .content-note-footer a,
.content-note .content-note-footer a:link,
.content-note .content-note-footer a:visited,
.content-note .content-note-footer a:active,
.et_pb_module .content-note-footer a,
body .content-note-footer a {
    color: #7b932d !important;
    text-decoration: none !important;
}
.content-note .content-note-footer a:hover,
.et_pb_module .content-note-footer a:hover,
body .content-note-footer a:hover {
    background: #7b932d !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* Modelo 1 - Link no título */
.content-highlight .content-highlight-title a,
.content-highlight .content-highlight-title a:link,
.content-highlight .content-highlight-title a:visited,
body .content-highlight-title a {
    color: #333 !important;
    text-decoration: none !important;
}
.content-highlight .content-highlight-title a:hover,
body .content-highlight-title a:hover {
    color: #7b932d !important;
}

/* Modelo 3 - Link no nome do produto */
.content-selection .content-selection-item-name a,
.content-selection .content-selection-item-name a:link,
.content-selection .content-selection-item-name a:visited,
body .content-selection-item-name a {
    color: #333 !important;
    text-decoration: none !important;
}
.content-selection .content-selection-item-name a:hover,
body .content-selection-item-name a:hover {
    color: #7b932d !important;
}

/* Modelo 4 - Badge "Recomendação Verificada" - fix mobile Divi override */
body .content-note-author span,
.et_pb_module .content-note-author span,
.content-note .content-note-author span {
    color: #fff !important;
    background: #7b932d !important;
}

/* ============================================
   DESKTOP ENHANCEMENTS
   Fontes maiores e botões mais chamativos em telas grandes
   Aplica-se apenas a dispositivos desktop (min-width: 769px)
   ============================================ */
@media (min-width: 769px) {

    /* --- SELEÇÃO EDITORIAL (Modelo 1) --- */
    .content-highlight-label {
        font-size: 12px;
        letter-spacing: 0.8px;
    }
    .content-highlight-title {
        font-size: 22px;
    }
    .content-highlight-desc {
        font-size: 15px;
    }
    .content-highlight-price {
        font-size: 20px;
    }
    .content-highlight-action {
        font-size: 15px;
        padding: 10px 22px;
        border-radius: 7px;
        box-shadow: 0 3px 8px rgba(123, 147, 45, 0.25);
        letter-spacing: 0.3px;
    }
    .content-highlight-action:hover {
        box-shadow: 0 4px 14px rgba(123, 147, 45, 0.35);
        transform: translateY(-1px);
    }

    /* --- RECOMENDAÇÃO INLINE (Modelo 2) --- */
    .content-suggestion-text strong {
        font-size: 18px;
    }
    .content-suggestion-text span {
        font-size: 14px;
    }
    .content-suggestion-link {
        font-size: 14px;
        background: #f8fdf0;
        padding: 8px 16px;
        border-radius: 6px;
        border: 1px solid #d4e4a8;
        transition: all 0.3s ease;
    }
    .content-suggestion-link:hover {
        background: #7b932d;
        color: #fff !important;
        border-color: #7b932d;
        text-decoration: none !important;
    }

    /* --- VITRINE DINÂMICA (Modelo 3) --- */
    .content-selection-header h3 {
        font-size: 21px;
    }
    .content-selection-item-name {
        font-size: 16px;
    }
    .content-selection-item-info {
        font-size: 13px;
    }
    .content-selection-item-value {
        font-size: 18px;
    }
    .content-selection-item-btn {
        font-size: 14px;
        padding: 12px 28px;
        border-radius: 7px;
        box-shadow: 0 3px 10px rgba(123, 147, 45, 0.3);
        letter-spacing: 0.5px;
    }
    .content-selection-item-btn:hover {
        box-shadow: 0 5px 18px rgba(123, 147, 45, 0.4);
        transform: translateY(-2px);
    }

    /* --- NOTA DE ESPECIALISTAS (Modelo 4) --- */
    .content-note-author {
        font-size: 16px;
    }
    .content-note-author span {
        font-size: 11.5px;
        padding: 3px 10px;
    }
    .content-note-text {
        font-size: 17px;
    }
    .content-note-footer-info strong {
        font-size: 15px;
    }
    .content-note-footer-info small {
        font-size: 14px;
    }
    .content-note-footer a {
        font-size: 14px;
        padding: 10px 22px;
        border-radius: 7px;
        box-shadow: 0 2px 6px rgba(123, 147, 45, 0.15);
        transition: all 0.3s ease;
    }
    .content-note-footer a:hover {
        box-shadow: 0 4px 14px rgba(123, 147, 45, 0.3);
        transform: translateY(-1px);
    }
}

/* Override Divi para botões desktop com hover branco */
@media (min-width: 769px) {
    body .content-suggestion-link:hover,
    .et_pb_module .content-suggestion-link:hover {
        color: #fff !important;
        text-decoration: none !important;
    }
}
