/* 메인 슬라이더 컨테이너 */
.main-container {
    position: relative;
    width: 100%;
    height: 100vh;
    margin: 0 auto;
    background: url('/img/main-swiper-back.png') no-repeat center/cover;
}
.new-swiper {
    width: 100%;
    height: 100%;
}
.swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
}
.swiper-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    opacity: 1;
    margin: 0 5px;
}
.swiper-pagination .swiper-pagination-bullet-active {
    background: #2ecc71 !important;
}

/* 메인 상단 텍스트 */
.txt-area {
    position: absolute;
    top: 8vh;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 20;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.2s;
}
.swiper-slide-active .txt-area {
    opacity: 1;
    transform: translateY(0);
}
.txt-area h1 {
    font-family: 'prompt', sans-serif;
    font-size: 64px;
    font-weight: 500;
    color: #111;
    letter-spacing: -3px;
}
.txt-area .sub-desc {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
}
.txt-area .sub-desc2 {
    font-size: 10px;
    color: #888;
    font-weight: 400;
}
.specs {
    display: flex;
    justify-content: center;
    gap: 30px;
}
.specs span {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 10px;
}
.specs span b {
    font-family: 'prompt', sans-serif;
    font-size: 32px;
    color: #111;
    font-weight: 500;
}

/* 2. 메인 중앙 이미지 애니메이션 */
.visual-area {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1000px;
    height: 600px;
    z-index: 10;
    pointer-events: none;
}
.visual-area img {
    position: absolute;
    left: 50%;
    top: 60%;
    transform: translate(-50%, -50%);
    opacity: 0;
    object-fit: contain;
}
.obj-main {
    z-index: 5;
    width: 600px;
    margin-top: 50px;
}
.obj-sub {
    z-index: 1;
    width: 600px;
    margin-top: -20px;
    filter: brightness(1.05);
}

/* 메인 [이미지 등장 애니메이션] */
.swiper-slide-active .obj-main {
    animation: slideInMain 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.swiper-slide-active .obj-sub {
    animation: fadeInSub 1.4s ease-out 0.5s forwards;
}

@keyframes slideInMain {
    0% {
        opacity: 0;
        transform: translate(-100%, -50%);
    } /* 왼쪽 밑에서 들어옴 */
    100% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}
@keyframes fadeInSub {
    0% {
        opacity: 0;
        transform: translate(-30%, -50%) scale(0.9);
    } /* 뒤에서 스르륵 */
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* 3. 하단 메뉴 버튼 (슬라이드 내부 버전) */
.menu-overlay {
    position: absolute; 
    bottom: 8vh;
    left: 0; width: 100%;
    z-index: 30;
    display: flex;
    justify-content: center;
    gap: 40px;
    opacity: 0;
    transform: translateY(30px);
    /* transition: all 0.4s ease 0.2s; */
}
.swiper-slide-active .menu-overlay {
    opacity: 1;
    transform: translateY(0);
}

.menu-item {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.icon-box {
    width: 65px;
    height: 65px;
    background: linear-gradient(90deg, #EDFFE5 0%, #B9FFD8 100%);
    border-radius: 20px; /* 둥근 사각형으로 변경 (고급스러움) */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    color: #333;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    margin-bottom: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.icon-box img {
    width: 50%;
    height: auto;
}
.menu-item:hover .icon-box {
    background: linear-gradient(90deg, #47FFD4 1%, #00FF73 52%, #B8FFD7 100%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); 
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    transform: translateY(-3px); /* 살짝 위로 뜨는 느낌 추가 */
}
.menu-text {
    font-size: 13px;
    color: #333;
    font-weight: 700;
}
/* 각 슬라이드별 포인트 컬러 설정 가능 */


/* 4. 컨트롤러 (페이지네이션 & 정지버튼 - 이건 화면에 고정) */
.controls-fixed {
    position: absolute;
    bottom: 4%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 15px;
}
.play-pause-btn {
    background: #333;
    color: white;
    border: none;
    width: 30px;
    height: 18px;
    border-radius: 15px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
}
.play-pause-btn svg {
    width: 10px;
    height: 10px;
    fill: white;
}
.swiper-pagination {
    position: relative !important;
    bottom: auto !important;
    width: auto !important;
}
.swiper-pagination-bullet-active {
    background: #2ecc71;
    width: 20px;
    border-radius: 4px;
    transition: width 0.3s;
}


/* 섹션 공통 */
.newsection {
    background: #fff;
    width: 100%;
    overflow: hidden;
}
.newsection.products-section {
    background: #f5f5f7;
}
.newsection-inner {
    padding: 60px 0;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
}
.section-title h2 {
    font-size: 44px;
    font-weight: 400;
    margin-bottom: 30px;
    letter-spacing: 1px;
    text-align: center;
}
.section-title p {
    color: #888;
    margin-bottom: 60px;
    font-size: 16px;
    text-align: center;
}

/* 상품 섹션 */
.productSwiper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 10px 60px 10px !important; /* 아래쪽 페이지네이션 공간 */
    max-width: 1200px;
    margin: 0 auto;
}
.productSwiper .swiper-slide {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
}

.product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card .card-img {
    height: 250px;
}

.prod-controls {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
}
.prod-pagination .swiper-pagination-bullet-active {
    background: #00FF73 !important;
    width: 25px;
    border-radius: 5px;
}

.card-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.card-body {
    padding: 20px;
    height: 400px;
}

.p-title {
    font-size: 32px;
    font-weight: 800;
    height: 40px;
}
.p-tag {
    color: #1F9B51;
    font-size: 16px;
    font-weight: 600;
    height: 30px;
}
.p-loc {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 10px;
    height: 25px;
}

.p-specs {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.spec-row {
    display: flex;
    font-size: 13px;
    color: #333;
}
.spec-row span:first-child {
    width: 80px;
    color: #999;
}

.p-price {
    display: flex;
    font-size: 13px;
    color: #999;
    margin-bottom: 20px;
    align-items: center;
}
.p-price span {
    width: 80px;
}
.p-price .p-price-div {
    display: flex;
    flex-direction: column;
    width: calc(100% - 80px);
}
.p-price .p-price-div span {
    font-size: 12px;
    color: #888;
    width: auto;
}
.p-price .p-price-div b {
    font-family: 'NanumSquare Neo', sans-serif;
    font-size: 22px;
    color: #111;
    font-weight: 600;
}

.btn-more {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    border: 1px solid #ccc;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}
.btn-more:hover {
    background: #1F9B51;
    border: 1px solid #1F9B51;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
/* 상품 섹션 끝 */


/* 이벤트 섹션 */
.promotion-list {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2%;
}
.promotion-item { 
    width: 49%;
    display: block;
    text-decoration: none;
    position: relative;
    margin-bottom: 2%;
    overflow: hidden; /* 이미지가 튀어나가지 않게 */
    cursor: pointer;
}

.promotion-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.promotion-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 배경 이미지처럼 작동 */
    transition: transform 0.6s ease;
}

.promotion-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 2;
    transition: 0.3s;
}

.promotion-content {
    position: relative;
    z-index: 3; /* 가장 위 */
    padding: 60px;
    width: 65%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}
.promotion-content p {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}
.promotion-content p .tag {
    color: #01CB5C;
    font-weight: 700;
    display: block;
}
.promotion-content p .sub {
    color: #BABABA;
}
.promotion-content h3 {
    color: #fff;
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 15px;
    font-weight: 700;
}
.promotion-content .date {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 30px;
}

.btn-outline { 
    display: inline-block;
    padding: 10px 25px;
    border: 1px solid #fff; 
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}
.btn-outline:hover {
    border-color: #1F9B51;
    background: #1F9B51;
}
/* 이벤트 섹션 끝 */


/* 어바웃 섹션 */
.about-bg-wrap {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    height: 600px;
    overflow: hidden;
}
.about-bg-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.about-grid {
    display: flex;
    height: 100%;
    gap: 1px;
}
.about-card { 
    flex: 1;
    position: relative;
    overflow: hidden; 
    text-decoration: none; 
    color: #fff;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center;
    border-right: 1px solid #fff;
    background: rgba(0,0,0,0.4);
    transition: background 0.4s;
}
.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0093C0 0%, #00FF73 52%, #11C960 100%);
    opacity: 0; 
    transition: 0.4s;
    z-index: 0;
}
.about-card:hover::before {
    opacity: 0.5;
}
.card-content {
    text-align: center;
    z-index: 1;
}
.card-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}
.card-content p {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 30px;
}
.icon-arrow {
    width: 40px; height: 40px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    margin: 0 auto;
    display: flex; 
    align-items: center; 
    justify-content: center;
    transition: 0.3s;
}
.icon-arrow svg {
    width: 18px;
    height: 18px;
}
/* 어바웃 섹션 끝 */


/* 뉴스 섹션 */
.news-list {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}
.news-item { 
    width: 25%;
    display: block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border-right: 1px solid #eee;
    cursor: pointer;
}
.news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    background: #000;
    transition: 0.4s;
    z-index: 1;
}
.news-item:hover::before {
    background: linear-gradient(180deg, #0093C0 0%, #00FF73 52%, #11C960 100%);
}
.news-img {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #000;
}
.news-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}
.play-icon img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.8;
    width: 60px;
    height: auto;
    pointer-events: none;
    transition: transform 0.3s ease;
    z-index: 2;
}
.news-txt {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 20px 40px;
    z-index: 2;
}
.news-txt .news-label {
    background: #fff;
    color: #000;
    padding: 4px 8px;
    line-height: 1;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}
.news-txt p {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: -1px;
    line-height: 1.4;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* 뉴스 섹션 끝 */

.mobile-br {
    display: none;
}
section.footer {
    width: 100%;
    padding: 15px 0;
    text-align: center;
    font-size: 14px;
    border-top: 1px solid #eee;
}


@media (max-width: 768px) {
    .main-container {
        height: calc(var(--vh, 1vh) * 100);
    }
    .mobile-br {
        display: inline;
    }
    .newsection-inner {
        padding: 40px 20px;
    }
    .section-title p {
        margin-bottom: 30px;
    }
    .p-title {
        font-size: 28px;
        font-weight: 500;
        letter-spacing: -2px;
    }
    .p-tag {
        letter-spacing: -1px;
    }
    .txt-area {
        top: calc(var(--vh, 1vh) * 14);
    }
    .txt-area h1 {
        font-size: 44px;
    }
    .txt-area .sub-desc {
        font-size: 16px;
        margin-bottom: 10px;
    }
    .specs span {
        flex-direction: column;
        gap: 0;
    }
    .specs span b {
        font-size: 24px;
    }
    .menu-overlay {
        bottom: calc(var(--vh, 1vh) * 11);
        gap: 20px;
    }
    .icon-box {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    .visual-area {
        height: 350px;
        top: 57%;
    }
    .visual-area .obj-main, .visual-area .obj-sub {
        width: 280px;
    }
    .visual-area .obj-main {
        margin-top: 30px;
    }
    .visual-area .obj-sub {
        margin-top: -10px;
    }
    .section-title h2 {
        font-size: 34px;
    }
    .card-body {
        height: auto;
    }
    .promotion-item {
        width: 100%;
    }
    .promotion-content {
        padding: 20px;
        width: 70%;
    }
    .promotion-content h3 {
        font-size: 16px;
        
    }
    .promotion-content p .tag {
        font-size: 10px;
    }
    .promotion-content p .sub {
        font-size: 10px;
    }
    .promotion-content .date {
        font-size: 10px;
        margin-bottom: 0;
        margin-top: 20px;
    }
    .btn-outline {
        display: none;
    }
    .about-grid {
        flex-direction: column;
    }
    .about-card {
        border-right: none;
        border-bottom: 1px solid #fff;
    }
    .about-bg-wrap img {
        object-fit: cover;
    }
    .card-content p {
        margin-bottom: 15px;
    }
    .card-content h3 {
        font-size: 20px;
    }
    .news-item {
        width: 50%;
        border-bottom: 1px solid #eee;
    }
    .news-txt {
        padding: 10px 20px;
    }
    .news-txt p {
        font-size: 16px;
        line-height: 1.2;
    }
    .play-icon img {
        width: 45px;
    }
}