/* StoneAge Plus v12 - Classic Pet List */

/* 가로 목록 전체 */
.pet-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
    margin-top: 20px;
    border: 1px solid #cbb991;
    border-top: 3px solid #778c5d;
}

/* 한 마리당 한 줄 */
.pet-grid .pet-card {
    display: grid !important;
    grid-template-columns: 94px minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    align-items: center;
    gap: 5px 16px;
    min-width: 0;
    min-height: 110px;
    padding: 12px 16px;
    margin: 0;
    background: #fff9ea;
    border: 0;
    border-bottom: 1px solid #d9cba9;
    border-radius: 0;
    box-shadow: none;
    transform: none !important;
}

.pet-grid .pet-card:nth-child(even) {
    background: #f3ecd9;
}

.pet-grid .pet-card:hover {
    background: #e7edce;
}

/* 페트 이미지 */
.pet-grid .pet-card .pet-art {
    grid-column: 1;
    grid-row: 1 / 4;
    width: 94px;
    height: 88px;
    margin: 0;
    background: #e9ead4;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pet-grid .pet-card .pet-art img {
    width: auto !important;
    height: auto !important;
    max-width: 84px !important;
    max-height: 80px !important;
    object-fit: contain !important;
    image-rendering: auto !important;
}

/* 페트 이름 */
.pet-grid .pet-card strong {
    grid-column: 2;
    grid-row: 1;
    color: #49351e;
    font-size: 18px;
    line-height: 1.5;
}

/* 등급 및 정보 */
.pet-grid .pet-card .pet-attr {
    grid-column: 2;
    color: #684d29;
    font-size: 12px;
    width: fit-content;
}

/* 상세보기 */
.pet-grid .pet-card small {
    grid-column: 3;
    grid-row: 1 / 4;
    align-self: center;
    width: auto;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid #c4d0a7;
    color: #42632f;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

/* 모바일 */
@media (max-width: 600px) {
    .pet-grid .pet-card {
        grid-template-columns: 74px minmax(0, 1fr);
        gap: 4px 10px;
        padding: 10px;
        min-height: 100px;
    }

    .pet-grid .pet-card .pet-art {
        width: 74px;
        height: 75px;
    }

    .pet-grid .pet-card .pet-art img {
        max-width: 68px !important;
        max-height: 68px !important;
    }

    .pet-grid .pet-card strong {
        font-size: 16px;
    }

    .pet-grid .pet-card small {
        grid-column: 2;
        grid-row: auto;
        justify-self: start;
        padding: 2px 0;
        border: 0;
        font-size: 12px;
    }
}

/* StoneAge Plus - Pet grade readability */

.pet-grid .pet-card .pet-attr {
    background: #e4ebd5 !important;
    color: #365b2b !important;
    border: 1px solid #a6bd92 !important;
    border-radius: 4px;
    padding: 4px 9px;
    font-family: "Malgun Gothic", sans-serif;
    font-size: 13px !important;
    font-weight: 700 !important;
    opacity: 1 !important;
}


/* StoneAge Plus - Pet Detail Popup Fix */

/* 팝업 기본 글씨 */
.pet-dialog {
    color: #49351e !important;
}

/* 페트 이름 */
.pet-dialog h2 {
    color: #49351e !important;
}

/* 일반 / 2등급 / 1등급 배지 */
.pet-dialog .pet-attr {
    display: inline-block;
    background: #e1ebce !important;
    color: #365b2b !important;
    border: 1px solid #9caf81 !important;
    border-radius: 4px;
    padding: 5px 10px;
    font-family: "Malgun Gothic", sans-serif;
    font-size: 13px;
    font-weight: 700;
    opacity: 1 !important;
}

/* 상세정보 항목명 */
.pet-dialog dt {
    color: #74502b !important;
    font-weight: 700;
}

/* 상세정보 값 */
.pet-dialog dd {
    color: #382b1e !important;
    font-family: "Malgun Gothic", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.7;
}

/* 닫기 버튼 */
.pet-dialog-header button {
    color: #49351e !important;
}

