/* 전체 그리드 */
.cate-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    grid-auto-rows: 1fr;
}

@media(max-width:1024px){
    .cate-grid { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width:600px){
    .cate-grid { grid-template-columns: repeat(1, 1fr); }
}

/* 각 카드 */
.cate-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: .2s;
    position: relative;
    border: 1px solid #dfdfdf;
    height: 100%;
}

.cate-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* 이미지 */
.cate-img {
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}
.cate-img img {
    max-height: 100%;
    width: auto;
}

/* 제목 */
.cate-title {
    font-size: 1.6em;
    font-weight: 900;
    margin-bottom: 12px;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    line-height: 1.4em;
    height: calc(1.4em);
    overflow: hidden;
}

/* 서브 카테고리 */
.cate-sub {
    margin-bottom: 20px;
}
.cate-sub li {
    font-size: 14px;
    color: #555;
    margin-bottom: 4px;
}

/* 전체보기 버튼 */
.cate-more {
    display: block;
    padding: 8px 12px;
    background: #f26321;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    width: 100%;
}

.empty-category {
    grid-column: 1 / -1;
    padding: 80px 20px;
    text-align: center;
    color: #666;
}
.empty-category .empty-title::before {
    content: "⏳";
    display: flex;
    width: 60px;
    height: 60px;
    margin: 0 auto 14px;

    align-items: center;
    justify-content: center;

    font-size: 2em;
    opacity: 0.8;

    animation: spin 5s linear infinite;
}


@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-category .empty-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
}

.empty-category .empty-desc {
    font-size: 14px;
    line-height: 1.6;
}
