/**
 * 파일명: post-promo-f.css
 * 파일경로: /home/giftmaster/web/alldaygift.kr/public_html/wp-content/plugins/wp-custom-post/assets/css/
 * 기능: post-promo-f.php 전용 스타일 (prmf- 접두사, 로즈 핑크 팔레트)
 * 작성일: 2026-03-28
 * 수정일: 2026-03-28
 */

/* ─── 팔레트 변수 ─────────────────────────────────────────── */
.prmf-post {
    --prmf-rose:       #be185d;
    --prmf-rose-dark:  #9d174d;
    --prmf-rose-light: #fce7f3;
    --prmf-rose-pale:  #fdf2f8;
    --prmf-text:       #1a1a1a;
    --prmf-text-light: #4b5563;
    --prmf-border:     #fbcfe8;
    --prmf-white:      #ffffff;
}

/* ─── 기본 리셋 ───────────────────────────────────────────── */
.prmf-post * { box-sizing: border-box; }
.prmf-post img { max-width: 100%; height: auto; }
.prmf-post a { text-decoration: none; }

/* ─── 래퍼 ───────────────────────────────────────────────── */
.prmf-post {
    max-width: 860px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans KR', sans-serif;
    color: var(--prmf-text);
    line-height: 1.75;
}

/* ─── 요약 박스 ───────────────────────────────────────────── */
.prmf-summary {
    background: var(--prmf-rose-pale);
    border-left: 5px solid var(--prmf-rose);
    border-radius: 0 8px 8px 0;
    padding: 18px 24px;
    margin-bottom: 28px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.prmf-summary-label {
    flex-shrink: 0;
    background: var(--prmf-rose);
    color: var(--prmf-white) !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: 20px;
    margin-top: 2px;
}
.prmf-summary p {
    margin: 0;
    font-size: 15px;
    color: var(--prmf-text);
    font-weight: 500;
    line-height: 1.65;
}

/* ─── 도입부 ──────────────────────────────────────────────── */
.prmf-section-intro {
    padding: 20px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--prmf-border);
}
.prmf-intro-text {
    font-size: 15px;
    color: var(--prmf-text-light);
    margin: 0;
}

/* ─── 콘텐츠 섹션 ─────────────────────────────────────────── */
.prmf-section-content {
    background: var(--prmf-white);
    border-radius: 10px;
    padding: 28px 32px;
    margin-bottom: 20px;
    border: 1px solid var(--prmf-border);
}
.prmf-section-content.prmf-section-alt {
    background: var(--prmf-rose-pale);
    border-color: transparent;
}
.prmf-section-content h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--prmf-rose-dark) !important;
    border-bottom: 1px solid var(--prmf-border) !important;
    background: none !important;
    box-shadow: none !important;
    padding-bottom: 10px;
    margin: 0 0 16px;
}
.prmf-section-content p {
    font-size: 15px;
    color: var(--prmf-text-light);
    margin: 0 0 10px;
}
.prmf-section-content p:last-child { margin-bottom: 0; }

/* ─── 제품 섹션 ───────────────────────────────────────────── */
.prmf-section-products {
    margin-bottom: 32px;
}
.prmf-section-products h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--prmf-rose-dark) !important;
    border-bottom: 2px solid var(--prmf-rose) !important;
    background: none !important;
    box-shadow: none !important;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* ─── 3열 카드 그리드 ─────────────────────────────────────── */
.prmf-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.prmf-product-card {
    background: var(--prmf-white);
    border: 1px solid var(--prmf-border);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.prmf-product-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--prmf-rose-pale);
}
.prmf-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.prmf-product-no-img {
    background: var(--prmf-rose-light);
}
.prmf-product-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 12px;
    flex: 1;
    align-items: center;
    text-align: center;
}
.prmf-product-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--prmf-text);
    margin: 0;
    line-height: 1.4;
    text-align: center !important;
}
.prmf-product-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--prmf-rose-dark);
    margin: 0;
    text-align: center !important;
}
.prmf-product-btn {
    display: block !important;
    width: 100% !important;
    background: var(--prmf-rose) !important;
    color: var(--prmf-white) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 9px 12px !important;
    border-radius: 6px !important;
    border: none !important;
    cursor: pointer;
    text-align: center !important;
    margin-top: auto;
}
.prmf-product-btn:hover {
    background: var(--prmf-rose-dark) !important;
    color: var(--prmf-white) !important;
}

/* ─── 결론 ────────────────────────────────────────────────── */
.prmf-section-conclusion {
    background: var(--prmf-rose-dark);
    border-radius: 12px;
    padding: 32px 36px;
    margin-bottom: 24px;
}
.prmf-section-conclusion h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--prmf-rose-light) !important;
    border-bottom: 1px solid rgba(255,255,255,0.2) !important;
    background: none !important;
    box-shadow: none !important;
    padding-bottom: 10px;
    margin: 0 0 16px;
}
.prmf-section-conclusion p {
    color: rgba(255,255,255,0.88);
    font-size: 15px;
    margin: 0 0 16px;
}
.prmf-conclusion-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.prmf-conclusion-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255,255,255,0.88);
    font-size: 14px;
    line-height: 1.55;
}
.prmf-conclusion-list li::before {
    content: '✓';
    flex-shrink: 0;
    color: var(--prmf-rose-light);
    font-weight: 700;
    margin-top: 1px;
}

/* ─── FAQ ─────────────────────────────────────────────────── */
.prmf-section-faq { margin-bottom: 20px; }
.prmf-section-faq h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--prmf-rose-dark) !important;
    border-bottom: 2px solid var(--prmf-rose) !important;
    background: none !important;
    box-shadow: none !important;
    padding-bottom: 10px;
    margin-bottom: 16px;
}
.prmf-faq-item {
    border: 1px solid var(--prmf-border);
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}
.prmf-faq-item summary {
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 600;
    color: var(--prmf-text);
    cursor: pointer;
    list-style: none;
    background: var(--prmf-white);
}
.prmf-faq-item summary::-webkit-details-marker { display: none; }
.prmf-faq-item[open] summary {
    background: var(--prmf-rose-pale);
    color: var(--prmf-rose-dark);
}
.prmf-faq-ans {
    padding: 14px 18px;
    font-size: 14px;
    color: var(--prmf-text-light);
    background: var(--prmf-white);
    border-top: 1px solid var(--prmf-border);
}
.prmf-faq-ans p { margin: 0 0 8px; }
.prmf-faq-ans p:last-child { margin-bottom: 0; }

/* ─── 모바일 반응형 ───────────────────────────────────────── */
@media (max-width: 768px) {
    .prmf-product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .prmf-section-content { padding: 20px 18px; }
    .prmf-section-conclusion { padding: 24px 20px; }
}
@media (max-width: 480px) {
    .prmf-summary { padding: 14px 12px; }
    .prmf-section-content { padding: 16px 10px; }
    .prmf-section-conclusion { padding: 20px 12px; }
    .prmf-product-btn { font-size: 12px !important; padding: 8px 10px !important; }
    .prmf-faq-item summary { padding: 12px 14px; font-size: 14px; }
    .prmf-faq-ans { padding: 12px 14px; }
}
