/* Shop List V2 - 공통 헤더/푸터와 충돌 방지 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #fff;
    color: #1a1a1a;
    line-height: 1.6;
}

/* Main Content */
.main {
    padding: 60px 20px 80px;
    min-height: calc(100vh - 300px);
    margin-top: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.title {
    font-size: 26px;
    font-weight: 600;
}

.count {
    font-size: 14px;
    color: #999;
}

/* Product Grid - 4열 고정 */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.card {
    background: #fff;
    width: 100%;
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* 정사각형 이미지 박스 */
.image-box {
    width: 100%;
    position: relative;
    padding-bottom: 100%;
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 12px;
}

.image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s;
}

.card:hover .image {
    transform: scale(1.05);
}

.info {
    padding: 0 4px;
}

.name {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 8px;
    line-height: 1.4;
    height: 38px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.price {
    font-size: 15px;
    font-weight: 600;
    color: #000;
}

.empty {
    text-align: center;
    padding: 100px 20px;
    color: #999;
}

/* Responsive */
@media (max-width: 1200px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .main {
        margin-top: 60px;
        padding: 40px 20px;
    }
}
