/* =========================================================
   [SaaS Cuidado Feminino] - Loja E-commerce & Academia EAD
========================================================= */
.cf-comm-section {
    padding: 60px 20px;
    background: var(--cf-offwhite, #F7F7F4);
    font-family: var(--cf-sans, 'Montserrat', sans-serif);
    border-top: 1px solid rgba(230, 213, 184, 0.4);
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}
.cf-comm-section *, .cf-comm-section *::before, .cf-comm-section *::after {
    box-sizing: border-box;
}
.cf-academy-bg {
    background: #fff;
}
.cf-comm-container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}
.cf-comm-subtitle {
    display: block;
    text-align: center;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: #888;
    margin-bottom: 10px;
}
.cf-comm-title {
    text-align: center;
    font-family: var(--cf-serif, 'Cormorant Garamond', serif);
    font-size: clamp(1.9rem, 5vw, 2.6rem);
    color: var(--cf-onyx, #121214);
    font-weight: 400;
    margin: 0 0 40px 0;
}
.cf-comm-title span {
    font-style: italic;
    color: var(--cf-rose, #C28B83);
}
.cf-comm-empty {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border: 1px dashed var(--cf-champagne, #E6D5B8);
    border-radius: 16px;
    color: #888;
    font-size: 0.9rem;
}
.cf-comm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 24px;
    width: 100%;
}
.cf-comm-card {
    background: #fff;
    border: 1px solid rgba(230, 213, 184, 0.5);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
    box-shadow: 0 6px 20px rgba(18, 18, 20, 0.04);
    transition: transform 0.3s ease;
}
.cf-comm-card:hover {
    transform: translateY(-5px);
}
.cf-comm-thumb {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 160px;
    background: #f5f5f2;
    overflow: hidden;
}
.cf-comm-thumb img,
.cf-comm-thumb video {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}
.cf-comm-placeholder {
    width: 100%;
    min-height: 180px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #999;
    font-size: 1rem;
    font-weight: 600;
}
.cf-comm-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--cf-onyx, #121214);
    color: var(--cf-offwhite, #F7F7F4);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}
.cf-comm-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}
.cf-comm-body h3 {
    font-family: var(--cf-serif, 'Cormorant Garamond', serif);
    font-size: 1.7rem;
    margin: 0 0 8px 0;
    color: var(--cf-onyx, #121214);
}
.cf-comm-meta {
    font-size: 0.72rem;
    color: var(--cf-rose, #C28B83);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.cf-comm-body p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
}
.cf-comm-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--cf-onyx, #121214);
    margin-bottom: 15px;
}
.cf-comm-btn {
    width: 100%;
    background: var(--cf-onyx, #121214);
    color: var(--cf-offwhite, #F7F7F4);
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: 0.25s;
}
.cf-comm-btn:hover {
    background: var(--cf-rose, #C28B83);
    color: var(--cf-onyx, #121214);
}
.cf-comm-btn-outline {
    width: 100%;
    background: transparent;
    color: var(--cf-onyx, #121214);
    border: 1px solid var(--cf-onyx, #121214);
    padding: 13px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}
.cf-comm-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(18, 18, 20, 0.65);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}
.cf-comm-modal {
    background: var(--cf-offwhite, #F7F7F4);
    padding: 35px;
    border-radius: 20px;
    width: 90%;
    max-width: 480px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}
.cf-comm-close {
    position: absolute;
    top: 18px; right: 18px;
    background: none; border: none;
    font-size: 1.3rem; cursor: pointer; color: #888;
}
.cf-comm-modal-title {
    font-family: var(--cf-serif, 'Cormorant Garamond', serif);
    font-size: 2rem;
    margin: 0 0 5px 0;
}
.cf-comm-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.cf-comm-input {
    width: 100%;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 10px;
    margin-bottom: 15px;
    box-sizing: border-box;
    font-family: inherit;
}
.cf-comm-body, .cf-comm-body h3, .cf-comm-body p {
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
}
@media (max-width: 680px) {
    .cf-comm-section {
        padding: 44px 14px;
    }
    .cf-comm-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .cf-comm-body {
        padding: 18px 16px;
    }
    .cf-comm-modal {
        padding: 24px 16px;
        width: 94%;
    }
}
