@charset "utf-8";

/* 메인 공통 */
.main-page {--layout-page-margin: var(--layout-main-margin); --main-section-gap: 130px;}
.main-page .main-edit-section,
.main-page .main-perspective-section,
.main-page .main-new-section {max-width: 1920px; margin-inline: auto; padding-top: var(--main-section-gap);}
.main-page .container {max-width: none; padding-bottom: var(--main-section-gap);}
.main-page .img-wrap {display: block; overflow: hidden; background-color: var(--bg-image-placeholder);}
.main-page .img-wrap img {width: 100%; height: 100%; object-fit: cover;}

/* 히어로 */
.main-hero-section {position: relative; height: min(46.875vw, 900px); overflow: hidden; background-color: var(--bg-image-placeholder);}
.main-hero-section .hero-swiper {height: 100%;}
.main-hero-section .hero-slide {position: relative; height: 100%; overflow: hidden;}
.main-hero-section .hero-slide .img-wrap {position: absolute; inset: 0;}
.main-hero-section .hero-slide.swiper-slide-active .img-wrap img {animation: mainHeroImg 2.4s var(--ease-out) both;}
@keyframes mainHeroImg {from {transform: scale(1.06);}}
.main-hero-section .hero-slide .txt-wrap {position: absolute; z-index: 1; top: 41.1%; left: var(--layout-main-margin); display: flex; flex-direction: column; align-items: flex-start; row-gap: 10px;}
.main-hero-section .hero-slide .hero-title {color: var(--text-on-image);}
.main-hero-section .hero-progress {position: absolute; bottom: 30px; left: 50%; z-index: 2; width: 300px; height: 4px; background-color: var(--border-subtle); transform: translateX(-50%);}
.main-hero-section .hero-progress-bar {position: absolute; top: 0; left: 0; width: 80px; height: 100%; background-color: var(--action-primary); transition: transform 0.6s var(--ease-out);}

/* The HAEUM LEE Edit */
.main-edit-section .inner {display: grid; grid-template-columns: minmax(0, 906fr) minmax(0, 790fr); align-items: start; column-gap: clamp(5rem, 8.333vw, 10rem);}
.main-edit-section .edit-txt-wrap {position: sticky; top: max(var(--header-height), calc(var(--header-height) + (100vh / var(--page-zoom) - var(--header-height) - var(--edit-txt-h, 0px)) / 2));}
.main-edit-section .edit-img-list {position: relative; aspect-ratio: 906 / 1132; background-color: var(--bg-image-placeholder);}
.main-edit-section .edit-img-list .img-wrap {position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s var(--ease-out);}
.main-edit-section .edit-img-list .img-wrap.active {opacity: 1;}
.main-edit-section .tit-wrap {display: flex; flex-direction: column; align-items: flex-start; row-gap: var(--space-20);}
.main-edit-section .tit-wrap .section-title {color: var(--text-primary);}
.main-edit-section .tit-wrap .body-small {color: var(--text-secondary);}
.main-edit-section .edit-index {margin-top: 52px;}
.main-edit-section .edit-index-list li {border-bottom: 1px solid var(--border-subtle);}
.main-edit-section .edit-index-list a {display: flex; align-items: center; column-gap: 6px; padding-block: 10px; color: var(--text-primary);}
.main-edit-section .edit-index-list li:first-child a {padding-top: 0;}
.main-edit-section .edit-index-list .num {flex: none; min-width: 1em;}
.main-edit-section .edit-index-list .name {flex: 1 1 auto; min-width: 0; transition: transform 0.3s var(--ease-out);}
.main-edit-section .edit-index-list img {flex: none; width: 17px; height: 8px; transition: transform 0.3s var(--ease-out);}

/* The HAEUMLEE Perspective */
.main-perspective-section .tit-wrap {display: flex; flex-direction: column; align-items: flex-start; row-gap: var(--space-20);}
.main-perspective-section .tit-wrap .section-title {color: var(--text-primary);}
.main-perspective-section .tit-wrap .body-small {color: var(--text-secondary);}
.main-perspective-section .perspective-slider {margin-top: clamp(2.5rem, 2.02rem + 1.96vw, 4.375rem);}
.main-perspective-section .perspective-list {display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); column-gap: var(--space-20);}
.main-perspective-section .perspective-item {position: relative; display: flex; flex-direction: column; row-gap: 10px; color: var(--text-primary);}
.main-perspective-section .perspective-item .img-wrap {aspect-ratio: 402 / 483;}
.main-perspective-section .perspective-item .img-wrap img {transition: transform 0.8s var(--ease-out);}

/* New Arrivals */
.main-new-section {--new-gap: clamp(1.5rem, 3.125vw - 0.5rem, 3.25rem);}
.main-new-section .inner {display: grid; grid-template-columns: minmax(0, 908fr) minmax(0, 780fr); align-items: end; column-gap: clamp(1.8rem, 15.5vw - 8.1rem, 10.5rem);}
.main-new-section .new-list-wrap {display: flex; align-items: flex-start; column-gap: var(--new-gap);}
.main-new-section .new-list {display: grid; flex: 1 1 auto; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--new-gap);}
.main-new-section .new-list .img-wrap {aspect-ratio: 354 / 442;}
.main-new-section .new-list .img-wrap img {transition: transform 0.8s var(--ease-out);}
.main-new-section .new-list-wrap .text-link {flex: none;}
.main-new-section .new-feature {display: flex; flex-direction: column; align-items: flex-end; row-gap: 10px; color: var(--text-primary);}
.main-new-section .new-feature .img-wrap {width: 100%; aspect-ratio: 780 / 884;}
.main-new-section .new-feature .img-wrap img {transition: transform 0.8s var(--ease-out);}
.main-new-section .new-feature .body-small {text-underline-offset: 4px;}

/* 프로모션 팝업 */
.main-popup {position: fixed; inset: 0; z-index: 150; pointer-events: none;}
.main-popup[hidden] {display: none;}
.main-popup .popup-box {position: absolute; top: calc(var(--top-banner-height) + var(--header-height) + clamp(32px, 10.42vw - 118px, 82px)); right: clamp(var(--layout-main-margin), 5.6vw, 109px); width: 440px; border: 1px solid var(--border-subtle); background-color: var(--bg-surface-white); pointer-events: auto; animation: mainPopupIn 0.5s var(--ease-out) both;}
@keyframes mainPopupIn {from {opacity: 0; transform: translateY(12px);}}
.main-popup .popup-link {position: relative; display: block; height: 472px; padding: 58px 29px; overflow: hidden; background-color: var(--bg-image-placeholder);}
.main-popup .popup-link img {position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;}
.main-popup .popup-link::after {content: ''; position: absolute; inset: 0; background-color: rgb(var(--rgb-black) / 0.2);}
.main-popup .popup-link .txt-wrap {position: relative; z-index: 1; display: flex; flex-direction: column; row-gap: 15px; width: 223px; color: var(--text-on-image);}
.main-popup .popup-btn-list {display: flex; align-items: center; justify-content: space-between; height: 48px; padding-inline: var(--space-20); background-color: var(--bg-surface-white);}
.main-popup .popup-btn-list button {min-height: var(--size-44); color: var(--text-primary);}

/* 호버 */
@media (hover: hover) {
    .main-edit-section .edit-index-list a:hover .name {transform: translateX(4px);}
    .main-edit-section .edit-index-list a:hover img {transform: translateX(4px);}
    .main-perspective-section .perspective-item:hover .img-wrap img,
    .main-new-section .new-list .img-wrap:hover img,
    .main-new-section .new-feature:hover .img-wrap img {transform: scale(1.04);}
    .main-new-section .new-feature:hover .body-small {text-decoration: underline;}
    .main-popup .popup-btn-list button:hover {text-decoration: underline; text-underline-offset: 4px;}
}

/* PC 히어로 */
@media screen and (min-width: 1025px) {
    .main-hero-section {height: calc(100svh / var(--page-zoom) - var(--top-banner-height) - var(--header-height)); min-height: 560px;}
    .main-page:has(.header.banner-off) .main-hero-section {height: calc(100svh / var(--page-zoom) - var(--header-height));}
}
@media screen and (min-width: 1441px) {
    .main-hero-section {height: calc(100svh / var(--page-zoom) - var(--top-banner-height));}
    .main-page:has(.header.banner-off) .main-hero-section {height: calc(100svh / var(--page-zoom));}
}

/* Laptop 1440 */
/* Tablet 1024 */
@media screen and (max-width: 1024px) {
    .main-hero-section {height: 62.5vw;}

    /* Edit */
    .main-edit-section .inner {grid-template-columns: minmax(0, 1fr); row-gap: 56px;}
    .main-edit-section .edit-img-list {width: 63.5%;}
    .main-edit-section .edit-index-list a, .main-edit-section .edit-index-list li:first-child a {min-height: var(--size-44); padding-block: 11px;}

    .main-edit-section .edit-txt-wrap {position: static;}

    /* Perspective */
    .main-perspective-section .perspective-slider {--perspective-gap: 16px; margin-right: calc(var(--layout-main-margin) * -1);}
    .main-perspective-section .perspective-list {display: flex; column-gap: 0;}
    .main-perspective-section .perspective-list > li {width: 227px;}

    /* 팝업 */
    .main-popup {background-color: var(--overlay-scrim); pointer-events: auto;}
    .main-popup .popup-box {top: calc(var(--top-banner-height) + var(--header-height) + 35px); right: auto; left: 50%; max-width: calc(100% - var(--layout-main-margin) * 2); transform: translateX(-50%); animation-name: mainPopupInCenter;}
    @keyframes mainPopupInCenter {from {opacity: 0; transform: translate(-50%, 12px);} to {transform: translateX(-50%);}}
}

/* Mobile 390 */
@media screen and (max-width: 768px) {
    .main-page .main-edit-section {padding-top: calc(var(--main-section-gap) + 72px);}
    .main-page .main-perspective-section,
    .main-page .main-new-section {padding-top: calc(var(--main-section-gap) + 96px);}

    /* 히어로 */
    .main-hero-section {height: 560px;}
    .main-hero-section .hero-slide .img-wrap img {object-position: 46% center;}
    .main-hero-section .hero-slide .txt-wrap {top: 70px; row-gap: 10px;}
    .main-hero-section .hero-progress {bottom: 24px; width: 160px;}
    .main-hero-section .hero-progress-bar {width: 43px;}

    /* Edit */
    .main-edit-section .inner {row-gap: var(--space-40);}
    .main-edit-section .edit-img-list {width: 100%;}

    /* Perspective */
    .main-perspective-section .perspective-slider {--perspective-gap: 12px;}
    .main-perspective-section .perspective-list > li {width: 205px;}

    /* New Arrivals */
    .main-new-section .inner {grid-template-columns: minmax(0, 1fr); row-gap: var(--space-40);}
    .main-new-section .new-list-wrap {flex-direction: column; align-items: flex-start;}
    .main-new-section .new-list {width: 100%; column-gap: 20px;}
    .main-new-section .new-list-wrap .text-link {margin-top: 21px;}
    .main-new-section .new-feature .img-wrap {aspect-ratio: 358 / 406;}

    /* 팝업 */
    .main-popup .popup-box {top: auto; bottom: 0; left: 0; width: 100%; max-width: none; border: 0; transform: none; animation-name: mainPopupSheet; transition: transform 0.3s var(--ease-out);}
    .main-popup .popup-box.dragging {transition: none;}
    @keyframes mainPopupSheet {from {transform: translateY(100%);}}
    .main-popup .popup-box::before {content: ''; position: absolute; top: 10px; left: 50%; z-index: 2; width: 40px; height: 4px; border-radius: 2px; background-color: rgb(var(--rgb-white) / 0.8); transform: translateX(-50%);}
    .main-popup .popup-link {height: min(472px, calc(100svh - 160px));}
    .main-popup .popup-btn-list {align-items: flex-start; height: auto; padding: 2px var(--space-20) max(14px, env(safe-area-inset-bottom));}
    .main-popup .popup-btn-list button {display: inline-flex; align-items: flex-start;}
}
