/* ========================================
   메인 페이지 전용 CSS
======================================== */

/* 메인 콘텐츠 */
.main-content {
    padding: 40px 0;
    min-height: 60vh;
}

/* 메인 배너 */
.main-banner {
    margin-bottom: 40px;
}

.banner-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 80px 40px;
    border-radius: 8px;
    text-align: center;
}

.banner-placeholder h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

/* 카테고리 배지 */
.category-badges {
    margin-bottom: 40px;
}

.badge-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.category-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
}

.category-badge:hover {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* ========================================
   상품 섹션 (메인)
======================================== */
.product-section {
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #333;
}

.section-header h2 {
    font-size: 24px;
}

.view-more {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.view-more:hover {
    color: #333;
}

/* 상품 그리드 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
@media (max-width: 1400px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.product-card {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-image {
    position: relative;
    padding-bottom: 100%;
    background: #f8f9fa;
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    object-fit: contain;
    background: white;
}

.no-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
}

.badge-sale {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff4444;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 16px;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 14px;
}

.sale-price,
.price {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.discount {
    color: #ff4444;
    font-weight: bold;
    font-size: 14px;
}

