/* food_explorer.css - 사료 탐색기 통합 스타일 */

@media (max-width: 600px) {
    .content-container {
        padding: 0 !important;
    }

    /* design_system.php 02 Grid System — 모바일 카드 거터
       라디우스/보더가 있는 카드형(.section-card / .fe-info-banner / .fe-success-toast)은
       .mq-section--banner 패턴(좌우 16px)을 따른다. */
    .mq-tab-panel[data-tab="product"] .fe-prod-panel {
        padding-left: 16px;
        padding-right: 16px;
    }

    .mq-tab-panel[data-tab="product"] .fe-success-toast {
        margin-left: 16px;
        margin-right: 16px;
    }

    /* 이중 거터 방지: .fe-prod-panel 이 이미 좌우 16px padding 을 만들었으므로
       그 안에 임베드된 .product-form-inline 카드는 product_form.css 에서 부여한
       margin 을 무력화 (food_explorer 임베드에서만 적용). */
    .mq-tab-panel[data-tab="product"] .product-form-inline .section-card,
    .mq-tab-panel[data-tab="product"] .product-form-inline .pfi-points-banner {
        margin-left: 0;
        margin-right: 0;
    }
}

.mq-tab-panel[hidden] {
    display: none !important;
}

/* ==========================================================================
   PT. 제품 탭 — common.css의 .mq-chips/.mq-chip/.section-card/.tag-pill 재사용
   ========================================================================== */

/* ── 칩 토글 바: common.css의 .mq-chips 위에 살짝 마진만 조정 ── */
.fe-prod-tabs {
    margin-bottom: 14px;
}

.fe-prod-tabs .mq-chip i {
    margin-right: 4px;
    font-size: 11px;
}

.fe-prod-tabs__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    padding: 0 6px;
    margin-left: 6px;
    height: 18px;
    border-radius: 99px;
    background: #406CB4;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.mq-chip:not(.active) .fe-prod-tabs__count {
    background: #94a3b8;
}

/* 패널 (등록 / 내 등록 제품) */
.fe-prod-panel[hidden] {
    display: none !important;
}

/* 내 등록 제품 — 결과 헤더 (common.css의 .mq-result-header 재사용) */
.fe-prod-list-header {
    margin-bottom: 8px;
    padding-bottom: 0;
}

/* ── 내 등록 제품 — 컴팩트 1줄 행 ─────────────────────────── */
.fe-my-products {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* 1행 카드 — 검색 결과 row 와 동일한 밀도 */
.fe-product-row {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: border-color .15s, background-color .15s, box-shadow .15s;
    overflow: hidden;
}

.fe-product-row:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

/* 검증됨: 좌측에 얇은 초록 스트라이프 */
.fe-product-row.is-checked {
    border-left: 3px solid #86efac;
}

/* 방금 등록: 강조 */
.fe-product-row.is-new {
    border-color: #406CB4;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 60%);
}

/* 메인 클릭 영역 — 전체 행이 상세 페이지 링크 */
.fe-product-row__link {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: inherit;
    text-decoration: none;
    transition: background-color .15s;
}

.fe-product-row__link:hover {
    background: #f8fafc;
    color: inherit;
}

.fe-product-row.is-new .fe-product-row__link:hover {
    background: rgba(64, 108, 180, 0.06);
}

.fe-prod-row__brand {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    color: #406CB4;
    background: #eff6ff;
    padding: 2px 8px;
    border-radius: 99px;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fe-prod-row__name {
    flex: 1;
    min-width: 0;
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fe-prod-row__badges {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* common.css 의 .tag-pill 그대로 사용. 살짝 더 작게만 미세 보정 */
.fe-prod-row__badges .tag-pill {
    font-size: 10.5px;
    padding: 2px 7px;
}

.fe-prod-row__badges .tag-pill i {
    font-size: 9px;
}

/* 우측 액션 — 아이콘 전용 outline 버튼 */
.fe-prod-row__actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0 10px;
    border-left: 1px solid #f1f5f9;
}

.fe-prod-row__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    font-size: 12px;
    text-decoration: none;
    transition: all .15s;
    cursor: pointer;
}

.fe-prod-row__action:hover {
    border-color: #406CB4;
    color: #406CB4;
    background: #eff6ff;
}

.fe-prod-row__action--locked {
    background: #f8fafc;
    color: #cbd5e1;
    cursor: not-allowed;
    border-style: dashed;
}

.fe-prod-row__action--locked:hover {
    border-color: #e2e8f0;
    color: #cbd5e1;
    background: #f8fafc;
}

/* 모바일: 패딩 축소 + 브랜드 칩 폭 좁힘 */
@media (max-width: 540px) {
    .fe-product-row__link {
        padding: 10px 12px;
        gap: 8px;
    }

    .fe-prod-row__brand {
        max-width: 80px;
        font-size: 10.5px;
    }

    .fe-prod-row__name {
        font-size: 13px;
    }

    .fe-prod-row__actions {
        padding: 0 8px;
    }
}

/* 스켈레톤 로더 — 컴팩트 row 매칭 */
.fe-product-row--skeleton {
    pointer-events: none;
    padding: 12px 14px;
}

.fe-product-row__sk-line {
    height: 12px;
    background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
    background-size: 200% 100%;
    border-radius: 6px;
    animation: fe-sk-shimmer 1.4s linear infinite;
}

.fe-product-row__sk-line.w50 {
    width: 50%;
}

@keyframes fe-sk-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* 빈 상태 */
.fe-empty {
    padding: 28px 16px;
    text-align: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
}

.fe-empty__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: #eff6ff;
    color: #406CB4;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fe-empty__title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.fe-empty__desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.55;
}

.fe-empty__desc strong {
    color: #406CB4;
    font-weight: 700;
}

.fe-empty__desc em {
    font-style: normal;
    color: #b45309;
    font-weight: 700;
}

/* ── 등록 성공 토스트 ─────────────────────────────────────── */
.fe-success-toast {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%);
    border: 1px solid #6ee7b7;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.12);
    animation: fe-toast-in .35s cubic-bezier(.4, 0, .2, 1);
}

.fe-success-toast[hidden] {
    display: none;
}

.fe-success-toast__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #10b981;
    color: #fff;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fe-success-toast__body {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    color: #064e3b;
    line-height: 1.55;
}

.fe-success-toast__body strong {
    display: block;
    font-size: 14.5px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 2px;
}

.fe-success-toast__body em {
    font-style: normal;
    color: #b45309;
    font-weight: 800;
}

.fe-success-toast__body p {
    margin: 0;
}

.fe-success-toast__body a {
    color: #406CB4;
    font-weight: 700;
    margin-left: 4px;
    text-decoration: none;
}

.fe-success-toast__body a:hover {
    text-decoration: underline;
}

.fe-success-toast__close {
    background: transparent;
    border: 0;
    color: #475569;
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
    flex-shrink: 0;
}

.fe-success-toast__close:hover {
    color: #1e293b;
}

@keyframes fe-toast-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── 인라인 등록 폼 어댑테이션 ───────────────────────────── */
.product-form-inline {
    /* 폼 내부 .section-card 들은 product_form.css 의 디자인을 그대로 사용 */
    margin-top: 4px;
}

.product-form-inline .section-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

@media (max-width: 600px) {
    .product-form-inline .section-card {
        padding: 16px;
        border-radius: 14px;
    }
}

.product-form-inline .section-card.highlight-card {
    border-color: #dbeafe;
    box-shadow: 0 8px 22px rgba(64, 108, 180, 0.08);
}

/* 등록 보너스 포인트 안내 배너 */
.pfi-points-banner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #fff7e8 0%, #ffffff 80%);
    border: 1px solid #f5d58b;
    border-radius: 14px;
}

.pfi-points-banner__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #fde68a;
    color: #92400e;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pfi-points-banner__body {
    flex: 1;
    min-width: 0;
}

.pfi-points-banner__title {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 4px;
}

.pfi-points-banner__title em {
    font-style: normal;
    color: #b45309;
}

.pfi-points-banner__desc {
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.55;
    color: #475569;
}

.pfi-points-banner__warn {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 8px 10px;
}

.pfi-points-banner__warn i {
    margin-right: 4px;
    color: #d97706;
}

/* 인라인 폼: 우측 패널의 product_form.css 기반 변수 영향 차단 (격리)
   (food_explorer 내부에서는 .form-panel/.form-container-max 가 없음) */
.product-form-inline .form-actions {
    margin-top: 20px;
    text-align: center;
}

/* (legacy) 액션 카드 그리드 — 다른 페이지에서 사용 시 보존 */
.fe-action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 18px;
}

@media (max-width: 720px) {
    .fe-action-grid {
        grid-template-columns: 1fr;
    }
}

.fe-action-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: transform .2s, box-shadow .2s, border-color .2s;
    cursor: pointer;
    overflow: hidden;
}

.fe-action-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(64, 108, 180, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.fe-action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(64, 108, 180, 0.14);
    border-color: #cbd5e1;
}

.fe-action-card--primary {
    background: linear-gradient(135deg, #406CB4 0%, #5b85cc 100%);
    border-color: #355a96;
    color: #fff;
}

.fe-action-card--primary::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
}

.fe-action-card--primary:hover {
    box-shadow: 0 12px 28px rgba(64, 108, 180, 0.4);
    border-color: #355a96;
}

.fe-action-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: #eff6ff;
    color: #406CB4;
    flex-shrink: 0;
}

.fe-action-icon--neutral {
    background: #f1f5f9;
    color: #475569;
}

.fe-action-card--primary .fe-action-icon {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.fe-action-body {
    flex: 1;
    min-width: 0;
}

.fe-action-title {
    margin: 0 0 6px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1e293b;
}

.fe-action-card--primary .fe-action-title {
    color: #fff;
}

.fe-action-desc {
    margin: 0 0 12px;
    font-size: 13.5px;
    line-height: 1.55;
    color: #64748b;
}

.fe-action-card--primary .fe-action-desc {
    color: rgba(255, 255, 255, 0.88);
}

.fe-action-bullets {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fe-action-bullets li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
}

.fe-action-bullets li i {
    width: 16px;
    color: #406CB4;
    font-size: 12px;
}

.fe-action-card--primary .fe-action-bullets li {
    color: rgba(255, 255, 255, 0.92);
}

.fe-action-card--primary .fe-action-bullets li i {
    color: #fff;
}

.fe-action-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    padding: 10px 16px;
    align-self: flex-start;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 10px;
    background: #406CB4;
    color: #fff;
    transition: background .2s, gap .2s;
}

.fe-action-card:hover .fe-action-cta {
    gap: 10px;
}

.fe-action-card--primary .fe-action-cta {
    background: #fff;
    color: #1e3a6e;
}

/* ==========================================================================
   FC. 브랜드 / 보관함 탭 — 피처 카드
   ========================================================================== */
.fe-feature-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

@media (max-width: 600px) {
    .fe-feature-card {
        padding: 22px;
    }
}

.fe-feature-card__head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
}

.fe-feature-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: #eff6ff;
    color: #406CB4;
    flex-shrink: 0;
}

.fe-feature-card__icon--pink {
    background: #fff1f2;
    color: #e11d48;
}

.fe-feature-card__title {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1e293b;
}

.fe-feature-card__desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
}

.fe-feature-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 22px;
    padding: 14px 20px;
    background: #406CB4;
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(64, 108, 180, 0.22);
    transition: background .2s, transform .15s, gap .2s;
}

.fe-feature-card__cta:hover {
    background: #355a96;
    transform: translateY(-2px);
    gap: 12px;
}

/* 빠른 검색 폼 (브랜드 탭) */
.fe-quick-search {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.fe-quick-search__btn {
    flex-shrink: 0;
    height: 48px;
    padding: 0 22px;
    border-radius: 12px;
    font-weight: 700;
}

@media (max-width: 480px) {
    .fe-quick-search {
        flex-direction: column;
    }

    .fe-quick-search__btn {
        width: 100%;
    }
}

/* 태그 링크 (브랜드 탭) */
.fe-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.fe-tag-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, border-color .2s, color .2s, transform .15s;
}

.fe-tag-link:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e3a6e;
    transform: translateY(-1px);
}

/* 단계 리스트 (보관함 탭) */
.fe-feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fe-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 14px;
}

.fe-feature-list__num {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #406CB4;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fe-feature-list li > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.fe-feature-list li strong {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.fe-feature-list li span {
    font-size: 13px;
    line-height: 1.5;
    color: #64748b;
}

/* ==========================================================================
   IB. 인포 배너 (제품 탭 안내)
   ========================================================================== */
.fe-info-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    color: #78350f;
}

.fe-info-banner__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #fef3c7;
    color: #b45309;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.fe-info-banner__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 13px;
    line-height: 1.55;
}

.fe-info-banner__body strong {
    font-size: 13.5px;
    font-weight: 700;
    color: #78350f;
}

.fe-info-banner__body em {
    font-style: normal;
    font-weight: 700;
    color: #406CB4;
}

/* ==========================================================================
   1. 검색 헤더 — common.css의 .mq-toolbar / .mq-search-wrap / .mq-icon-btn 사용
   ========================================================================== */

/* ==========================================================================
   2. 필터 패널
   ========================================================================== */
#advancedFilterPanel {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    display: none;
    animation: slideDown 0.3s ease;
}

#advancedFilterPanel.show {
    display: block;
}

@media(max-width:768px) {
    #advancedFilterPanel {
        margin-left: 16px;
        margin-right: 16px;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media(max-width:600px) {
    .filter-grid {
        grid-template-columns: 1fr;
    }
}

.drawer-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 6px;
}

.disease-select {
    border-color: #406CB4 !important;
    color: #406CB4 !important;
    font-weight: 600 !important;
}

.filter-grid select#palateScoreFilter,
.filter-grid select#palatePetFilter {
    width: 100%;
}

.fe-tier-hint {
    margin: 0 0 12px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
}

.fe-nutrient-tier-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fe-nutrient-tier {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
}

.fe-tier-label {
    flex: 0 0 72px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.fe-tier-chips {
    flex: 1 1 200px;
    margin: 0;
}

.fe-tier-chips .mq-chip {
    font-size: 12px;
    padding: 6px 10px;
}

.range-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
}

.range-separator {
    color: #999;
    font-weight: 600;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px 0;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #406CB4;
}

.checkbox-text {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.filter-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.filter-actions .btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #64748b;
}

.btn-outline:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.btn-primary {
    background: #406CB4;
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background: #355a96;
}

/* ==========================================================================
   3. 정렬 섹션 — common.css의 .mq-result-header / .mq-sort-select / .mq-chips 사용
   ========================================================================== */

/* ==========================================================================
   4. 결과 영역
   ========================================================================== */
.current-metric {
    margin-left: 6px;
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

/* 빈 상태 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #e2e8f0;
}

.empty-state p {
    font-size: 15px;
    font-weight: 500;
}

/* ==========================================================================
   5. 결과 카드 (랭킹 스타일)
   ========================================================================== */
.result-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.2s;
    cursor: default;
}

.result-card__row {
    display: flex;
    gap: 16px;
    align-items: center;
    cursor: pointer;
    flex: 1;
    min-width: 0;
}

.result-card__actions {
    display: flex;
    justify-content: flex-end;
}

.result-card-compare {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #406CB4;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.result-card-compare:hover {
    background: #fff;
    border-color: #406CB4;
}

@media(max-width:768px) {
    .result-card {
        margin-left: 16px;
        margin-right: 16px;
    }
}

.result-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: #406CB4;
}

/* 썸네일 */
.result-thumb {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    background: #f1f5f9;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f1f5f9;
}

.result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-thumb .no-img {
    font-size: 24px;
    color: #cbd5e1;
}

/* 정보 영역 */
.result-info {
    flex: 1;
    min-width: 0;
}

.result-brand {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 2px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 6px;
}

.result-name {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 뱃지 */
.result-badges {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.badge-metric {
    background: #eff6ff;
    color: #406CB4;
    font-weight: 800;
    border: 1px solid #dbeafe;
}

.badge-kcal {
    background: #fff;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.badge-verified {
    background: #dcfce7;
    color: #166534;
    font-size: 10px;
}

.badge-category {
    background: #f3f4f6;
    color: #4b5563;
}

.badge-source {
    background: #f5f3ff;
    color: #5b21b6;
    border: 1px solid #ddd6fe;
    font-size: 10px;
}

/* ==========================================================================
   6. 버튼 & 기타
   ========================================================================== */
.full-width {
    width: 100%;
}

.pagination {
    margin: 20px 0;
}

@media(max-width:768px) {
    .pagination {
        margin-left: 15px;
        margin-right: 15px;
    }
}

/* 로딩 상태 */
.loading-state {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
}

.loading-state i {
    font-size: 32px;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   검색 탭 · 검색 대상 세그먼트 (사료·제품 / 내 케어 기록)
   ========================================================================== */

.fe-find-scope.mq-section--banner {
    display: flex;
    gap: 4px;
    padding: 4px !important;
    margin-bottom: 14px;
    background: #e2e8f0 !important;
    border-color: #e2e8f0 !important;
}

.fe-find-scope__btn {
    flex: 1;
    margin: 0;
    padding: 10px 6px;
    border: none;
    border-radius: var(--radius-sm, 8px);
    background: transparent;
    font-size: 13px;
    font-weight: 800;
    color: #64748b;
    letter-spacing: -0.03em;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.fe-find-scope__btn.active {
    background: #fff;
    color: #406CB4;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.fe-care-search__lead {
    font-size: 14px;
    color: #475569;
    line-height: 1.55;
    margin: 0 0 14px;
    font-weight: 400;
}

.fe-care-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
    margin-bottom: 12px;
}

.fe-care-toolbar__q {
    flex: 1 1 220px;
    min-width: 0;
}

.fe-care-toolbar__type,
.fe-care-toolbar__pet {
    flex: 0 1 calc(50% - 5px);
    min-width: 120px;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md, 12px);
    background: #fff;
    font-size: 14px;
    font-weight: 400;
    color: #1e293b;
    box-sizing: border-box;
}

.fe-care-toolbar__submit {
    flex: 1 1 100%;
    min-height: 44px;
}

@media (min-width: 540px) {
    .fe-care-toolbar__submit {
        flex: 0 0 auto;
        width: auto;
        min-width: 100px;
    }
}

.fe-care-search__status {
    font-size: 13px;
    font-weight: 400;
    color: #64748b;
    margin-bottom: 10px;
    min-height: 1.2em;
}

.fe-care-search__guest {
    margin-bottom: 0;
}

.fe-care-results {
    margin-bottom: 12px;
}

.fe-care-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: var(--radius-lg, 16px);
    padding: 12px 14px;
    margin-bottom: 10px;
    text-align: left;
}

.fe-care-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.fe-care-card__when {
    font-size: 12px;
    font-weight: 400;
    color: #94a3b8;
}

.fe-care-card__title {
    font-size: 15px;
    font-weight: 400;
    color: #1e293b;
    line-height: 1.35;
    margin-bottom: 4px;
}

.fe-care-card__meta {
    font-size: 13px;
    font-weight: 400;
    color: #406CB4;
}

.fe-care-card__memo {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e2e8f0;
    font-size: 13px;
    color: #475569;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.fe-care-search__hint {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.55;
    margin: 14px 0 0;
    font-weight: 400;
}

.fe-care-search__hint a {
    color: #406CB4;
    font-weight: 600;
}

@media (max-width: 600px) {
    .mq-tab-panel[data-tab="search"] .fe-care-search:not([hidden]) {
        padding-left: 16px;
        padding-right: 16px;
        padding-bottom: 8px;
    }
}

.fe-care-toolbar--dates {
    margin-top: -4px;
    margin-bottom: 8px;
}

.fe-care-date-range {
    flex: 1 1 140px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fe-care-date-range__lbl {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
}

.fe-care-date-range__inp {
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md, 12px);
    background: #fff;
    font-size: 14px;
    font-weight: 400;
    color: #1e293b;
    box-sizing: border-box;
}

.fe-care-stats-hint {
    font-size: 12px;
    line-height: 1.55;
    color: #64748b;
    font-weight: 400;
    margin: 0 0 12px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.fe-care-stats-hint i {
    margin-top: 2px;
    color: #94a3b8;
}

.fe-care-stats-hint strong {
    font-weight: 600;
}

.fe-care-card--interactive {
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fe-care-card--interactive:hover {
    border-color: #cbd5f5;
    box-shadow: 0 4px 12px rgba(64, 108, 180, 0.08);
}

.fe-care-card--interactive:focus-visible {
    outline: 2px solid #406CB4;
    outline-offset: 2px;
}

.fe-food-idle {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg, 16px);
    padding: 20px 18px;
    margin: 12px 0 8px;
    text-align: left;
}

.fe-food-idle__icon {
    font-size: 28px;
    color: #406CB4;
    margin-bottom: 10px;
}

.fe-food-idle__title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 12px;
    line-height: 1.35;
}

.fe-food-idle__list {
    margin: 0;
    padding-left: 1.25em;
    font-size: 14px;
    line-height: 1.65;
    color: #475569;
    font-weight: 400;
}

.fe-food-idle__list strong {
    font-weight: 600;
    color: #334155;
}
