/* 홈 - 표준형 템플릿 CSS */

/* 4K 대응: body 너비 제한 해제 */
body {
    max-width: none !important;
    width: 100% !important;
}

/* 히어로 섹션 - PC 100vh (화면 꽉 채움) */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh !important;
    overflow: hidden;
}

/* 슬라이더 강제 확장 */
.hero-section .n2-ss-slider,
.hero-section .n2-ss-slider-wrapper-inside,
.hero-section .n2-ss-slide,
.hero-section .n2-ss-layers-container {
    height: 100% !important;
    min-height: 100vh !important;
}

.hero-section .n2-ss-slide-background-image {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
}

/* 바로가기 링크 - PC에서 숨김 */
.quick-links {
    display: none;
}

.quick-links-wrap {
    display: flex;
    justify-content: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s ease, color 0.2s ease;
}

.quick-item:hover {
    transform: translateY(-3px);
    color: #009bd8;
}

.quick-item img {
    width: 32px;
    height: 32px;
}

.quick-item span {
    font-size: 14px;
    font-weight: 500;
}

/* 공통 섹션 스타일 */
.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 30px;
}

.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 40px;
    color: #333;
}

.section-more {
    text-align: center;
    margin-top: 30px;
}

.btn-more {
    display: inline-block;
    padding: 12px 30px;
    background: #009bd8;
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease;
}

.btn-more:hover {
    background: #0086bc;
    color: #fff;
}

/* 신상품 섹션 */
.products-section {
    background: #fff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-item article a {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.product-item article a:hover {
    transform: translateY(-5px);
}

.product-thumb {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 15px 5px;
    text-align: center;
}

.product-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px;
    color: #333;
}

.product-info p {
    font-size: 13px;
    color: #888;
    margin: 0;
}

/* 인스타그램 피드 섹션 */
.instagram-section {
    background: #fff;
    border-top: 1px solid #eee;
}

.instagram-section .section-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.instagram-section .section-title a:hover {
    color: #E1306C;
}

.instagram-section .section-title a::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-radius: 6px;
    margin-right: 10px;
    vertical-align: middle;
}

.instagram-feed {
    text-align: center;
}

.instagram-placeholder {
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
    font-size: 14px;
}

.instagram-placeholder a {
    color: #009bd8;
    text-decoration: none;
    font-weight: 500;
}

.instagram-placeholder a:hover {
    text-decoration: underline;
}

/* 공지사항 섹션 */
.notice-section {
    background: #f8f9fa;
}

.notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 800px;
    margin: 0 auto;
}

.notice-list li {
    border-bottom: 1px solid #e0e0e0;
}

.notice-list li:first-child {
    border-top: 1px solid #e0e0e0;
}

.notice-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 10px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s ease;
}

.notice-list li a:hover {
    background: #fff;
}

.notice-title {
    font-size: 15px;
    flex: 1;
}

.notice-date {
    font-size: 13px;
    color: #999;
    margin-left: 20px;
}

/* 회사 정보 섹션 */
.company-section {
    background: #333;
    color: #fff;
}

.company-section .section-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 30px;
}

.company-info h2 {
    font-size: 24px;
    margin: 0 0 10px;
}

.company-info p {
    font-size: 14px;
    color: #aaa;
    margin: 0;
}

.company-logo img {
    height: 60px;
    width: auto;
}

/* 반응형 - 태블릿 */
@media only screen and (max-width: 991px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-links-wrap {
        gap: 40px;
    }
}

/* 반응형 - 모바일 */
@media only screen and (max-width: 767px) {
    .hero-section {
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 4 / 3;
        max-height: none;
    }

    .hero-section .n2-ss-slider,
    .hero-section .n2-ss-slider-wrapper-inside,
    .hero-section .n2-ss-slide,
    .hero-section .n2-ss-layers-container {
        min-height: 0 !important;
        height: 100% !important;
    }

    /* 모바일에서 바로가기 링크 표시 */
    .quick-links {
        display: block;
        position: relative;
        z-index: 10;
        background: #fff;
        padding: 15px 0;
        /* 높이 확대 (타이틀바 비슷하게) */
        border-bottom: 1px solid #eee;
        margin-top: 0;
        /* 상단 여백 제거 */
    }
}

.quick-links-wrap {
    gap: 0;
    padding: 0;
    justify-content: space-between;
}

.quick-item {
    flex: 1;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
}

.quick-item img {
    width: 18px;
    height: 18px;
}

.quick-item span {
    font-size: 13px;
}

.section-inner {
    padding: 15px 20px 40px;
    /* 상단 공백을 15px로 줄임, 하단은 40px 유지 */
}

.section-title {
    font-size: 22px;
    margin-bottom: 25px;
}

.products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.product-info h3 {
    font-size: 14px;
}

.notice-list li a {
    padding: 15px 5px;
}

.notice-title {
    font-size: 14px;
}

.company-section .section-inner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
}

.company-info h2 {
    font-size: 20px;
}

.company-logo img {
    height: 50px;
}
}