@charset "utf-8";

/* 쇼핑몰 메인 페이지 스타일 - 비즈니스 라이너 디자인 */

/* 색상 변수 정의 */
:root {
    --primary: #EC6521;
    --primary-light: #FFF4EC;
    --primary-dark: #d4551a;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --border-light: #f3f4f6;
    --border-default: #e5e7eb;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
}

/* 메인 컨테이너 */
.sct_wrap {
    margin-bottom: 50px;
    clear: both;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* 섹션 헤더 */
.sct_wrap header {
    position: relative;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
}

.sct_wrap h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.sct_wrap h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.sct_wrap h2 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.sct_wrap h2 a:hover {
    color: var(--primary);
}

/* 메인 배너 - 비즈니스 스타일 */
.mainbanner {
    margin-bottom: 50px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    background: var(--bg-white);
}

.mainbanner img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.mainbanner:hover img {
    transform: scale(1.02);
}

/* 상품 섹션 그리드 개선 */
#idx_hit {
    position: relative;
    background: var(--bg-white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-default);
}

/* 상품 그리드 레이아웃 */
.sct_10 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* 상품 카드 스타일 */
.sct_li {
    background: var(--bg-white);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.sct_li:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.sct_img {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sct_img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.sct_li:hover .sct_img img {
    transform: scale(1.05);
}

.sct_txt {
    padding: 20px;
    background: var(--bg-white);
}

.sct_txt h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 10px 0;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sct_txt h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sct_txt h3 a:hover {
    color: var(--primary);
}

.sct_basic {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
    height: 3em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sct_cost {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.sct_dict {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-right: 8px;
}

/* 상품 액션 버튼 */
.sct_btn {
    display: flex;
    gap: 8px;
    padding: 0 20px 20px;
}

.sct_btn button,
.sct_btn a {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn_cart {
    background: var(--primary);
    color: white;
}

.btn_cart:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn_detail {
    background: var(--bg-light);
    color: var(--text-secondary);
    border: 1px solid var(--border-default);
}

.btn_detail:hover {
    background: var(--border-light);
    color: var(--text-primary);
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .sct_10 {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .sct_wrap {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .sct_wrap {
        margin-bottom: 40px;
        padding: 0 15px;
    }
    
    .sct_wrap h2 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .mainbanner {
        margin-bottom: 40px;
        border-radius: 6px;
    }
    
    #idx_hit {
        padding: 20px;
    }
    
    .sct_10 {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 15px;
    }
    
    .sct_img {
        height: 180px;
    }
    
    .sct_txt {
        padding: 15px;
    }
    
    .sct_txt h3 {
        font-size: 1rem;
    }
    
    .sct_cost {
        font-size: 1.1rem;
    }
    
    .sct_btn {
        padding: 0 15px 15px;
        flex-direction: column;
    }
    
    .sct_btn button,
    .sct_btn a {
        width: 100%;
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    .sct_wrap {
        padding: 0 10px;
    }
    
    .sct_wrap h2 {
        font-size: 1.3rem;
    }
    
    #idx_hit {
        padding: 15px;
    }
    
    .sct_10 {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .sct_img {
        height: 160px;
    }
    
    .sct_txt {
        padding: 12px;
    }
    
    .sct_txt h3 {
        font-size: 0.95rem;
    }
    
    .sct_basic {
        font-size: 0.85rem;
    }
    
    .sct_cost {
        font-size: 1rem;
    }
}
