/* product_form.css - 펫 등록 화면 스타일 완벽 이식 */



/* [왼쪽 패널] 모바일에서는 상단 헤더 역할 */
.brand-panel {
    width: 100%;

    /* 1. 높이 수정: 기존 height: 320px -> min-height: 380px */
    min-height: 380px;

    background: linear-gradient(135deg, #EEF4FF 0%, #E3F2FD 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    z-index: 1;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;

    /* 2. 패딩 수정: 기존 40px 20px -> 100px 20px 40px (글씨가 위로 붙지 않게) */
    padding: 100px 20px 40px;

    text-align: center;
}

/* [오른쪽 패널] 폼 영역 */
.form-panel {
    flex: 1;
    background: #ffffff;
    padding: 40px 20px 80px;
    display: flex;
    justify-content: center;
}

.form-container-max {
    width: 100%;
    max-width: 680px;
}



/* =========================================
   3. 카드 및 폼 요소 디자인
   (.section-card 베이스는 common.css 4-5)
   ========================================= */
.product-form-page .section-card.highlight-card {
    border-color: #dbeafe;
    box-shadow: 0 8px 28px rgba(64, 108, 180, 0.1);
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.card-title i {
    color: #406CB4;
    font-size: 16px;
}

.card-desc {
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
    margin-top: -8px;
}

.form-group-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.form-col {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #444;
    margin-bottom: 8px;
}

.form-label.required::after {
    content: '*';
    color: #e53935;
    margin-left: 4px;
}

.anno {
    font-weight: 400;
    color: #999;
    font-size: 12px;
    margin-left: 6px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    background: #fff;
    transition: all 0.2s;
    outline: none;
}

.form-input:focus,
.form-select:focus {
    border-color: #406CB4;
    box-shadow: 0 0 0 2px rgba(64, 108, 180, 0.1);
}

.num-input {
    text-align: right;
    width: 70px !important;
}

.tip-box {
    background: #f0f7ff;
    border: 1px solid #dbeafe;
    border-radius: var(--radius-lg, 12px);
    padding: 14px 16px;
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 13px;
    color: #475569;
    line-height: 1.55;
}

.tip-box .pf-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #406cb4;
    flex-shrink: 0;
}

.tip-box .pf-icon-box i {
    font-size: 15px;
    margin: 0;
}

/* =========================================
   4. 상세 기능 컴포넌트
   ========================================= */
/* 브랜드 자동완성 */
.brand-autocomplete-wrapper {
    position: relative;
}

.suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-top: 5px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: none;
}

.suggestions-list div {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 13px;
}

.suggestions-list div:hover {
    background: #f8f9fa;
    color: #406CB4;
}

/* 파일 업로드 */
.file-upload-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.file-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #F0F4FF;
    color: #406CB4;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.image-preview {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    border: 2px solid #eee;
    background: #fafafa no-repeat center/cover;
}

/* 원재료 칩 */
.ingredient-input-box {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 8px;
    background: #fff;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.ingredient-wrapper {
    display: contents;
}

.ingredient-chip {
    background: #EEF4FF;
    color: #406CB4;
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    animation: fadeInChip 0.2s ease-out;
}

@keyframes fadeInChip {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.chip-remove {
    margin-left: 8px;
    cursor: pointer;
    opacity: 0.6;
    font-size: 14px;
}

.transparent-input {
    border: none;
    box-shadow: none;
    padding: 6px;
    flex: 1;
    min-width: 120px;
    outline: none;
    font-size: 14px;
    background: transparent;
}

/* 영양성분 테이블 및 계산기 */
.radio-group-styled {
    display: flex;
    gap: 5px;
    background: #f0f2f5;
    padding: 4px;
    border-radius: 10px;
}

.radio-group-styled input[type="radio"] {
    display: none;
}

.radio-label {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.radio-group-styled input:checked+.radio-label {
    background: #fff;
    color: #406CB4;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.nutrient-table-styled {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.table-head,
.table-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-head {
    font-size: 12px;
    color: #888;
    font-weight: 600;
    text-align: center;
    margin-bottom: 5px;
}

.label-col {
    flex: 1.2;
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

.input-col {
    flex: 1;
    display: flex;
    gap: 5px;
}

.as-fed-col {
    color: #406CB4;
}

.dm-col {
    color: #ff9800;
}

.fixed-val {
    display: block;
    text-align: right;
    padding: 12px 14px;
    color: #aaa;
    font-size: 14px;
    width: 100%;
}

.readonly-field {
    background: #f8f9fa;
    color: #ccc;
    pointer-events: none;
}

.calc-result-box {
    background: #F8F9FA;
    border-radius: 12px;
    padding: 15px;
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.clickable-calc {
    cursor: pointer;
}

.clickable-calc:hover {
    background: #e3f2fd;
}

.calc-label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    display: flex;
    align-items: center;
    gap: 5px;
}

.calc-val {
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

.calc-divider {
    height: 1px;
    background: #eee;
    margin: 5px 0;
}

.nutrient-row.dynamic-row {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 10px;
    margin-bottom: 8px;
    align-items: center;
}

.input-with-unit {
    display: flex;
    gap: 5px;
    align-items: center;
}

.unit-select {
    width: 80px !important;
    padding: 12px 8px;
    font-size: 13px;
    flex-shrink: 0;
}

.btn-remove-nutrient {
    min-width: 17px;
    width: 17px;
    height: 17px;
    margin-left: 5px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #e53935;
    color: #e53935;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.add-nutrient-box {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.grow-select {
    flex: 1;
}

.pf-add-nutrient-btn {
    width: auto;
    flex-shrink: 0;
    white-space: nowrap;
}

.form-actions {
    margin-top: 30px;
    text-align: center;
}

.pf-submit-wide {
    width: 100%;
    max-width: 100%;
}

/* 원재료 행 보조 액션 (buttons.css .btn-link 조합) */
.pf-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    align-items: center;
}

.pf-action-ai.btn-link {
    color: #406cb4 !important;
    text-decoration: none;
}

.pf-action-ai.btn-link:hover {
    color: #345899 !important;
}

.pf-action-danger.btn-link {
    color: #dc2626 !important;
    text-decoration: none;
}

.pf-action-danger.btn-link:hover {
    color: #b91c1c !important;
    background: #fef2f2;
}

/* 함량 기준 등 스택 패널 */
.pf-stack-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md, 10px);
    padding: 16px;
    margin-bottom: 20px;
}

.pf-stack-panel__label {
    margin-bottom: 10px;
}

.pf-stack-panel__hint {
    margin-top: 8px;
    margin-left: 0;
    color: #64748b;
}

/* AI 스마트 입력 모달 */
.pf-smart-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.pf-smart-modal.is-open {
    display: flex;
}

.pf-smart-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.pf-smart-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    max-height: min(90vh, 640px);
    overflow: auto;
    background: #fff;
    border-radius: var(--radius-xl, 16px);
    padding: 22px 22px 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
}

.pf-smart-modal__title {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.pf-smart-modal__desc {
    margin: 0 0 14px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

.pf-smart-modal__textarea {
    width: 100%;
    min-height: 140px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md, 10px);
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.45;
}

.pf-smart-modal__textarea:focus {
    outline: none;
    border-color: #406cb4;
    box-shadow: 0 0 0 3px rgba(64, 108, 180, 0.15);
}

.pf-smart-modal__actions {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

/* ===== 중복 제품 경고 박스 (템플릿 인라인 스타일 제거) ===== */
#dupCheckWrap {
    margin-top: 8px;
}

.dup-warning-box {
    background: #fffbeb;
    border: 1px solid #f59e0b;
    border-radius: var(--radius-lg, 12px);
    padding: 12px 14px;
    font-size: 13px;
}

.dup-warning-box .dup-title {
    font-weight: 700;
    color: #b45309;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dup-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #fde68a;
    border-radius: var(--radius-md, 8px);
    padding: 8px 10px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    text-decoration: none;
    color: inherit;
}

.dup-card:last-child {
    margin-bottom: 0;
}

.dup-card:hover {
    background: #fef9c3;
    border-color: #f59e0b;
}

.dup-card img {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.dup-card .dup-img-placeholder {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.dup-card-info .dup-name {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
}

.dup-card-info .dup-meta {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}

.dup-dismiss {
    font-size: 11px;
    color: #94a3b8;
    text-align: right;
    margin-top: 6px;
    cursor: pointer;
    text-decoration: underline;
}

.dup-dismiss:hover {
    color: #64748b;
}

/* =========================================================================
   PFU. URL → AI 자동 입력 (parse_product_url)
   ========================================================================= */

/* 추천 카드 — primary 색조로 강조 */
.pfu-ai-card {
    border: 1px solid #c7d8f5 !important;
    background: linear-gradient(135deg, #eff5ff 0%, #ffffff 65%) !important;
    box-shadow: 0 6px 18px rgba(64, 108, 180, 0.08) !important;
}

.pfu-ai-card .card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1e3a8a;
}

.pfu-ai-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 99px;
    background: #406CB4;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.4;
}

.pfu-ai-card__desc {
    margin: 6px 0 14px;
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
}

.pfu-ai-card__desc strong {
    color: #1e3a8a;
    font-weight: 700;
}

.pfu-ai-card__urlrow {
    margin-bottom: 0;
}

.pfu-url-input {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.pfu-url-input .form-input {
    flex: 1;
    min-width: 0;
}

.pfu-url-input__btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0 16px;
    height: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}

.pfu-ai-card__hint {
    display: block;
    margin-top: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px dashed #c7d8f5;
    border-radius: 10px;
    font-size: 12px;
    color: #475569;
    line-height: 1.55;
}

.pfu-ai-card__hint i {
    color: #406CB4;
    margin-right: 4px;
}

.pfu-ai-card__hint strong {
    color: #1e3a8a;
    font-weight: 700;
}

@media (max-width: 600px) {
    .pfu-url-input {
        flex-direction: column;
    }

    .pfu-url-input__btn {
        width: 100%;
        height: 44px;
        justify-content: center;
    }
}

/* ── 분석 결과 모달 ──────────────────────────────────────────── */

.pfu-modal__dialog {
    width: min(620px, 100%);
}

.pfu-modal__state {
    min-height: 220px;
}

.pfu-modal__state--loading,
.pfu-modal__state--error {
    text-align: center;
    padding: 14px 8px;
}

.pfu-modal__desc-muted {
    color: #64748b;
}

.pfu-loader {
    font-size: 38px;
    color: #406CB4;
    margin-bottom: 14px;
}

/* ── AI 분석 진행률 바 ── */
.pfu-progress {
    margin: 20px auto 4px;
    max-width: 360px;
    width: 100%;
}

.pfu-progress__track {
    position: relative;
    height: 8px;
    background: #eef2f7;
    border-radius: 999px;
    overflow: hidden;
}

.pfu-progress__fill {
    position: absolute;
    inset: 0 auto 0 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #406CB4 0%, #5b8bd6 100%);
    border-radius: 999px;
    transition: width 240ms ease-out;
}

/* 진행 중일 때 미세한 shimmer */
.pfu-progress__fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.35) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: translateX(-100%);
    animation: pfuShimmer 1.6s ease-in-out infinite;
}

@keyframes pfuShimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.pfu-progress__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 13px;
    color: #64748b;
}

.pfu-progress__stage {
    font-weight: 500;
    color: #406CB4;
}

.pfu-progress__percent {
    font-variant-numeric: tabular-nums;
    color: #94a3b8;
}

/* ── 캐시 hit 안내 (비용 절감) ── */
.pfu-cached-notice {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 6px 0 10px;
    padding: 6px 12px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #047857;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
}

.pfu-cached-notice i {
    color: #10b981;
}

.pfu-error-icon {
    font-size: 38px;
    color: #f59e0b;
    margin-bottom: 14px;
}

.pfu-modal__title-icon {
    color: #10b981;
    margin-right: 4px;
}

.pfu-modal__actions {
    align-items: center;
}

/* 결과 카드 */
.pfu-result-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
    align-items: start;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    margin: 6px 0 4px;
}

.pfu-result-card__img-wrap {
    aspect-ratio: 1;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pfu-result-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.pfu-result-card__img-placeholder {
    text-align: center;
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.5;
    padding: 8px;
}

.pfu-result-card__img-placeholder i {
    display: block;
    font-size: 28px;
    margin-bottom: 6px;
    color: #cbd5e1;
}

.pfu-result-card__body {
    min-width: 0;
}

.pfu-result-card__name-ko {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    word-break: keep-all;
    margin-bottom: 2px;
}

.pfu-result-card__name-original {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
    font-style: italic;
}

.pfu-result-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 10px;
}

.pfu-result-card__chips .tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
}

.pfu-result-card__summary {
    margin: 6px 0 10px;
    font-size: 13px;
    color: #334155;
    line-height: 1.55;
}

.pfu-result-card__summary:empty {
    display: none;
}

.pfu-result-card__stats {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #475569;
}

.pfu-result-card__stats li {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pfu-result-card__stats i {
    color: #406CB4;
}

.pfu-result-card__stats strong {
    color: #0f172a;
    font-weight: 700;
}

@media (max-width: 600px) {
    .pfu-result-card {
        grid-template-columns: 1fr;
    }

    .pfu-result-card__img-wrap {
        max-width: 220px;
        margin: 0 auto;
    }
}

/* =========================================================================
   MOBILE GUTTER — design_system.php 02 Grid System
   --------------------------------------------------------------------------
   .product-form-inline 의 카드형 컴포넌트(.section-card, .pfi-points-banner)는
   라디우스/보더가 있는 카드 — 즉 .mq-section--banner 패턴.
   ➜ 모바일에서 좌우 16px 거터를 카드 자체 margin 으로 만든다.
      (어느 컨테이너에 임베드되든 일관 적용)

   ※ 외부에서 이미 거터를 만들어 두는 컨테이너
     (예: food_explorer 의 .fe-prod-panel)는 해당 측 CSS 에서
     이중 거터를 방지하는 override 를 둔다.
   ========================================================================= */
@media (max-width: 600px) {

    .product-form-inline .section-card,
    .product-form-inline .pfi-points-banner {
        margin-left: 16px;
        margin-right: 16px;
    }

    /* 스탠드얼론 페이지에서는 .form-panel 의 좌우 padding 을 모바일에서 0 으로 만들고
       (기본 padding: 40px 20px 80px) 카드 margin 이 단독 거터를 만들도록 한다.
       — top/bottom padding 은 그대로 유지. */
    .product-form-page .form-panel {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* =========================================
   제품 제형 정보 (주식캔/간식캔 한정)
   product_edit.css와 동일 룰셋 — 등록 폼에서도 동일 UI 사용
   ========================================= */
.pe-texture-card .anno-inline {
    margin-left: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
}

.pe-texture-desc {
    margin: 0 0 16px;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.55;
    color: #475569;
}

.pe-texture-tracks {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

@media (min-width: 768px) {
    .pe-texture-tracks {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

.pe-texture-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pe-texture-heading {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    width: fit-content;
}

.pe-texture-heading--a {
    background: #E0F2FE;
    color: #0284C7;
}

.pe-texture-heading--b {
    background: #FFEDD5;
    color: #C2410C;
}

.pe-texture-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pe-texture-option {
    cursor: pointer;
    display: block;
    margin: 0;
}

.pe-texture-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pe-texture-option__inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.pe-texture-option:hover .pe-texture-option__inner {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.pe-texture-option input[type="radio"]:checked ~ .pe-texture-option__inner {
    border-color: #6366F1;
    background: #F5F3FF;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

.pe-texture-option input[type="radio"]:checked ~ .pe-texture-option__inner::after {
    content: "";
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #6366F1 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center / 14px 14px;
}

.pe-texture-option__media {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pe-texture-option__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pe-texture-option__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pe-texture-option__label {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.pe-texture-option__tag {
    display: inline-block;
    width: fit-content;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
}

.pe-texture-option input[type="radio"]:checked ~ .pe-texture-option__inner .pe-texture-option__tag {
    background: #EEF2FF;
    color: #4338CA;
}

/* 파테/무스 단독: Track B 비활성화 시각 */
.pe-texture-col.is-disabled .pe-texture-heading--b {
    background: #F1F5F9;
    color: #94A3B8;
}

.pe-texture-options.is-disabled .pe-texture-option {
    cursor: not-allowed;
}

.pe-texture-options.is-disabled .pe-texture-option__inner {
    opacity: 0.45;
    background: #f8fafc !important;
    border-style: dashed !important;
    border-color: #cbd5e1 !important;
    box-shadow: none !important;
    filter: grayscale(0.4);
}

.pe-texture-options.is-disabled .pe-texture-option:hover .pe-texture-option__inner {
    border-color: #cbd5e1 !important;
    background: #f8fafc !important;
}

.pe-texture-disabled-hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    padding: 10px 12px;
    background: #FEF3C7;
    border: 1px dashed #FBBF24;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.5;
    color: #92400E;
    font-weight: 600;
}

.pe-texture-disabled-hint i {
    color: #D97706;
    margin-top: 2px;
    flex-shrink: 0;
}

/* 등록 시 미선택 강조 (필수 검증 실패) */
.pe-texture-card.is-error {
    border: 1px solid #fca5a5;
    box-shadow: 0 0 0 3px rgba(252, 165, 165, 0.18);
    border-radius: 16px;
}

.pe-texture-card.is-error .pe-texture-heading {
    box-shadow: 0 0 0 2px #fecaca;
}