/**
 * LCG Eletro Blog AI Generator - Vitrine de Produtos & Bloco de Contato
 *
 * Estilos modulares para a listagem/vitrine de produtos dentro dos posts de categoria
 * e de produtos específicos, com miniaturas e caixa oficial de contato/atendimento.
 * Sem estilos inline, design responsivo compatível com o tema Astra.
 *
 * @package LCG_Eletro_Blog_AI_Generator
 * @version 0.1.12-beta
 */

/* Vitrine de Produtos */
.lcg-product-showcase {
    margin: 35px 0;
    padding: 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.lcg-product-showcase--related {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.lcg-product-showcase__title {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.35rem;
    color: #1e293b;
    font-weight: 700;
}

.lcg-product-showcase__subtitle {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 12px;
}

.lcg-product-showcase__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lcg-product-showcase__item {
    display: flex;
    gap: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 14px;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lcg-product-showcase--related .lcg-product-showcase__item {
    background: #f8fafc;
}

.lcg-product-showcase__item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.lcg-product-showcase__image-link {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

.lcg-product-showcase__thumb {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}

.lcg-product-showcase__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lcg-product-showcase__item-title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.35;
}

.lcg-product-showcase__item-title a {
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
}

.lcg-product-showcase__item-title a:hover {
    color: #e11d48;
}

.lcg-product-showcase__desc {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lcg-product-showcase__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    flex-wrap: wrap;
    gap: 10px;
}

.lcg-product-showcase__price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #16a34a;
}

.lcg-product-showcase__button {
    display: inline-block;
    background: #e11d48;
    color: #ffffff !important;
    padding: 6px 16px;
    border-radius: 4px;
    text-decoration: none !important;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s ease;
}

.lcg-product-showcase__button:hover {
    background: #be123c;
}

.lcg-product-showcase__all {
    margin-top: 20px;
    text-align: center;
    border-top: 1px dashed #cbd5e1;
    padding-top: 16px;
}

.lcg-product-showcase__cat-link {
    display: inline-block;
    background: #0f172a;
    color: #ffffff !important;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s ease;
}

.lcg-product-showcase__cat-link:hover {
    background: #e11d48;
}

/* Bloco Oficial de Contato & Atendimento */
.lcg-contact-box {
    margin: 40px 0 30px;
    padding: 24px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 5px solid #2563eb;
    border-radius: 8px;
}

.lcg-contact-box__title {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.25rem;
    color: #1e3a8a;
    font-weight: 700;
}

.lcg-contact-box__desc {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 0.95rem;
    color: #3b82f6;
    line-height: 1.5;
}

.lcg-contact-box__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.lcg-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.lcg-contact-btn:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.lcg-contact-btn--whatsapp {
    background: #25d366;
    color: #ffffff !important;
}

.lcg-contact-btn--page {
    background: #2563eb;
    color: #ffffff !important;
}

@media (max-width: 600px) {
    .lcg-product-showcase__item {
        flex-direction: column;
        align-items: flex-start;
    }
    .lcg-product-showcase__image-link {
        width: 100%;
        height: 160px;
    }
    .lcg-contact-box__actions {
        flex-direction: column;
    }
    .lcg-contact-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   Vitrine de Variações de Produto (LCG Variations Showcase)
   ========================================================================== */

.lcg-variations-showcase {
    margin: 35px 0;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.lcg-variations-showcase__header {
    margin-bottom: 20px;
    text-align: left;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
}

.lcg-variations-showcase__title {
    margin: 0 0 6px 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
}

.lcg-variations-showcase__desc {
    margin: 0;
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
}

.lcg-variations-showcase__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
}

.lcg-variations-showcase__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lcg-variations-showcase__card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.lcg-variations-showcase__thumb-wrap {
    width: 100%;
    max-width: 170px;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    overflow: hidden;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #f1f5f9;
}

.lcg-variations-showcase__thumb {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.lcg-variations-showcase__info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.lcg-variations-showcase__badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    background: #e2e8f0;
    border-radius: 20px;
    letter-spacing: 0.2px;
}

.lcg-variations-showcase__price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #16a34a;
}

.lcg-variations-showcase__stock--out {
    font-size: 0.8rem;
    color: #d97706;
    font-weight: 600;
}

.lcg-variations-showcase__btn {
    display: inline-block;
    width: 100%;
    margin-top: 6px;
    padding: 8px 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #ffffff !important;
    background-color: #e11d48;
    border-radius: 6px;
    text-decoration: none !important;
    transition: background-color 0.2s ease;
}

.lcg-variations-showcase__btn:hover {
    background-color: #be123c;
}

@media (max-width: 520px) {
    .lcg-variations-showcase__grid {
        grid-template-columns: 1fr;
    }
}
