@charset "utf-8";
@import url('https://cdn.jsdelivr.net/npm/spoqa-han-sans@2.1.2/css/SpoqaHanSans.min.css');
/******************************************************
            '* common
            '******************************************************/
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Spoqa Han Sans', 'Spoqa Han Sans JP', 'Sans-serif';
}

a {
    text-decoration: none;
    color: inherit;
}

    a:hover {
        text-decoration: none;
        color: inherit;
    }

/* 숫자 화살표 제거 (크롬용) */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

footer {
    max-width: 100%;
    margin: 0 auto;
    background-color: #fff;
    border-top: 1px solid #eee;
}

.category-group {
    font-size: 0.9em;
    margin-left: 15px;
    margin-bottom: 15px;
}

.category-title {
    font-weight: 580;
    margin-bottom: 5px;
    color: #333;
    cursor: default;
}

.category-item {
    margin-left: 15px;
    color: #555;
    line-height: 1.6;
    cursor: pointer;
}

    .category-item:hover {
        text-decoration: underline;
    }

/* =====================================================================
               애니아이몰 휴대폰·태블릿 디자인  (mall_responsive.css)

               - PC(1025px 이상) : 기존 화면 그대로. 아래 [0] 의 "모바일 전용 요소 숨김"만 적용됩니다.
               - 태블릿(768~1024px) / 휴대폰(767px 이하) : 앱 형태의 새 디자인
                   상단바 + 검색 + 서비스 바로가기 + 전체메뉴(왼쪽 슬라이드) + 하단 탭바
               - incTopMenu.asp 에서 불러오므로 모든 페이지에 자동 적용됩니다.
               ===================================================================== */

/* 상단 메뉴(incTopMenu.asp)는 css/top_menu.css 에 따로 있습니다. 메뉴 모양은 그 파일에서만 고치세요. */

/* =====================================================================
               [1] 태블릿 + 휴대폰 공통 (1024px 이하)
               ===================================================================== */

@media (max-width: 1024px) {
    :root {
        --m-primary: #652C91;
        --m-primary-soft: #f3ecf8;
        --m-text: #1d1d1f;
        --m-text-2: #555;
        --m-text-3: #8e8e93;
        --m-line: #ececf0;
        --m-bg: #f5f5f7;
        --m-gutter: 14px;
        --m-safe-b: env(safe-area-inset-bottom, 0px);
    }

    /* ---------- 기본 ---------- */
    html,
    body {
        min-width: 0 !important;
        max-width: 100%;
        -webkit-text-size-adjust: 100%;
    }

    body {
        background: var(--m-bg) !important;
        color: var(--m-text);
        font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
        font-size: 14px;
        line-height: 1.5;
        margin: 0 !important;
        padding-bottom: var(--m-safe-b) !important;
        -webkit-tap-highlight-color: transparent;
    }

    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    img {
        max-width: 100%;
    }

    img {
        height: auto;
    }

    a {
        -webkit-tap-highlight-color: rgba(101,44,145,.08);
    }

    input,
    button {
        font-family: inherit;
    }

        input[type="search"] {
            font-size: 16px;
        }

    /* ===================================================================
                   하단 회사정보 (incFooter.asp)
                   =================================================================== */
    footer {
        margin-top: 28px;
        background: #fff;
        border-top: 1px solid var(--m-line);
    }

    .Footer {
        display: block !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 22px var(--m-gutter) 26px !important;
    }

        .Footer .Copyright {
            margin: 12px 0 0 !important;
            font-size: 11.5px !important;
            line-height: 1.75;
            color: #a0a0a6 !important;
            word-break: keep-all;
        }
}

/* =====================================================================
               [2] 휴대폰 (767px 이하)
               ===================================================================== */

@media (max-width: 767px) {
    :root {
        --m-gutter: 14px;
    }
}

/* 아주 작은 휴대폰 (360px 이하) */

@media (max-width: 360px) {
    :root {
        --m-gutter: 12px;
    }
}

/* =====================================================================
               애니아이몰 메인 페이지 (index.asp) 전용 스타일  -  css/index.css

               - index.asp 의 <head> 에서 불러옵니다. (상단 메뉴는 top_menu.css)
               - 모든 클래스가 idx- 로 시작하므로 다른 페이지·mall_responsive.css 와 겹치지 않습니다.
               - 화면 구간
                   PC      : 1025px 이상
                   태블릿  : 768px ~ 1024px
                   휴대폰  : 767px 이하
               ===================================================================== */
.idx-page {
    --idx-primary: #652C91;
    --idx-text: #1d1d1f;
    --idx-text-2: #555;
    --idx-text-3: #8e8e93;
    --idx-bg: #f5f5f7;
    --idx-red: #e5383b;
    --idx-gutter: 20px;
}

.idx {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 var(--idx-gutter) 72px;
    color: var(--idx-text);
}

/* =====================================================================
               1. 메인 배너
               ===================================================================== */
.idx-hero {
    position: relative;
    
    max-width: 1900px;
    margin: 0 auto;
    overflow: hidden;
    background: var(--idx-bg);
}

.idx-hero-track {
    display: flex;
    transition: transform .55s cubic-bezier(.2,.8,.2,1);
    will-change: transform;
}

.idx-hero-slide {
    flex: 0 0 100%;
    height: 370px;
}

    .idx-hero-slide a {
        display: block;
        width: 100%;
        height: 100%;
    }

    .idx-hero-slide img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        -webkit-user-drag: none;
        user-select: none;
    }

.idx-hero-btn {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-top: -24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.28);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s, background .2s;
}

    .idx-hero:hover .idx-hero-btn,
    .idx-hero-btn:focus-visible {
        opacity: 1;
    }

    .idx-hero-btn:hover {
        background: rgba(0,0,0,.45);
    }

.idx-hero-prev {
    left: max(16px, calc(50% - 620px));
}

.idx-hero-next {
    right: max(16px, calc(50% - 620px));
}

.idx-hero-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.idx-hero-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: rgba(255,255,255,.6);
    box-shadow: 0 0 0 1px rgba(0,0,0,.08);
    cursor: pointer;
    transition: width .25s, background .25s;
}

    .idx-hero-dot.is-active {
        width: 24px;
        background: #fff;
    }

.idx-hero-count {
    position: absolute;
    right: max(16px, calc(50% - 520px));
    bottom: 14px;
    z-index: 2;
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(0,0,0,.35);
    color: rgba(255,255,255,.85);
    font-size: 12px;
    letter-spacing: .5px;
}

    .idx-hero-count b {
        color: #fff;
        font-weight: 700;
    }

/* =====================================================================
               3. 상품 섹션
               ===================================================================== */
.idx-sec {
    margin-top: 48px;
}

.idx-sec-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.idx-sec-title {
    margin: 0;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -.5px;
    line-height: 1.3;
    color: var(--idx-text);
}

.idx-sec-sub {
    margin: 5px 0 0;
    font-size: 14.5px;
    color: var(--idx-text-3);
    word-break: keep-all;
}

.idx-arrows {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.idx-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #dcdce2;
    border-radius: 50%;
    background: #fff;
    color: #444;
    cursor: pointer;
    transition: border-color .15s, color .15s, box-shadow .15s;
}

    .idx-arrow:hover {
        border-color: var(--idx-primary);
        color: var(--idx-primary);
        box-shadow: 0 2px 8px rgba(101,44,145,.15);
    }

/* 가로 레일 : PC 4개 / 태블릿 3개+ / 휴대폰 2개+ 가 보이고 옆으로 넘김 */
.idx-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 3 * 16px) / 4);
    gap: 16px;
    padding: 4px 2px 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

    .idx-rail::-webkit-scrollbar {
        display: none;
    }

    .idx-rail + .idx-rail {
        margin-top: 10px;
    }

/* =====================================================================
               4. 상품 카드
               ===================================================================== */
.idx-card {
    position: relative;
    min-width: 0;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid #efeff2;
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}

    .idx-card:hover {
        box-shadow: 0 10px 26px rgba(0,0,0,.08);
        transform: translateY(-2px);
    }

    .idx-card > a {
        display: flex;
        flex-direction: column;
        height: 100%;
        color: inherit;
        text-decoration: none;
    }

        .idx-card > a:hover {
            text-decoration: none;
            color: inherit;
        }

.idx-card-img {
    position: relative;
    aspect-ratio: 23 / 30;
    background: #fff;
    border-bottom: 1px solid #f3f3f5;
    overflow: hidden;
}

    .idx-card-img img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: transform .35s;
    }

.idx-card:hover .idx-card-img img {
    transform: scale(1.04);
}

.idx-badge-top {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    max-width: calc(100% - 20px);
    padding: 3px 8px;
    border-radius: 6px;
    background: #BD76FF;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.idx-badge-circle {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    padding: 6px;
    border-radius: 50%;
    background: var(--idx-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    word-break: keep-all;
    box-shadow: 0 4px 10px rgba(101,44,145,.3);
}

.idx-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 12px 13px 15px;
}

.idx-card-cate {
    font-size: 12px;
    color: var(--idx-text-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.idx-card-name {
    min-height: 2.8em;
    margin-top: 2px;
    font-size: 14.5px;
    line-height: 1.4;
    color: var(--idx-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.idx-card-pay {
    align-self: flex-start;
    margin-top: 8px;
    padding: 1px 7px;
    border-radius: 4px;
    background: var(--idx-bg);
    color: var(--idx-text-2);
    font-size: 11.5px;
}

.idx-card-price {
    margin-top: 6px;
    line-height: 1.35;
}

.idx-price-org {
    display: block;
    font-size: 12.5px;
    color: #b0b0b6;
    text-decoration: line-through;
}

.idx-price-member {
    display: block;
    font-size: 12.5px;
    color: var(--idx-primary);
}

.idx-price-rate {
    margin-right: 4px;
    font-size: 16.5px;
    font-weight: 800;
    color: var(--idx-red);
}

.idx-price-now {
    font-size: 16.5px;
    font-weight: 800;
    color: var(--idx-text);
}

/* =====================================================================
               5. 중간 배너
               ===================================================================== */
.idx-banner {
    display: block;
    margin-top: 48px;
    /*border-radius: 16px;*/
    overflow: hidden;
    line-height: 0;
}

    .idx-banner img {
        display: block;
        width: 100%;
        height: auto;
        transition: transform .4s;
    }

    .idx-banner:hover img {
        transform: scale(1.01);
    }


/* ---------- 안경매니져 팝업 : 메인 배너 바로 아래, 오른쪽에 absolute 로 표시 ---------- */
.hidden {
    display: none !important;
}

.idx-top {
    position: relative;
}
/* 팝업 위치의 기준 (메인 배너를 감싸는 영역) */
#modal {
    position: absolute;
    top: calc(100% - 300px); /* 메인 배너 아래쪽 끝 + 16px */
    right: 24px; /* 화면 오른쪽에서 24px */
    z-index: 900; /* 상품 위 / 상단 고정메뉴(1000) 아래 */
    width: 230px;
    background: #efefef;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
    overflow: hidden;
}

    #modal .modal-header {
        padding: 6px 8px 2px;
        text-align: right;
    }

        #modal .modal-header button {
            border: 0;
            background: none;
            font-size: 22px;
            line-height: 1;
            cursor: pointer;
        }

    #modal .modal-body {
        padding: 2px;
        text-align: center;
    }

    #modal .modal-footer {
        padding: 8px;
        text-align: center;
    }

        #modal .modal-footer button {
            width: 100%;
            padding: 6px 12px;
            border: 0;
            border-radius: 6px;
            background: #6a0dad;
            color: #fff;
            font-family: inherit;
            cursor: pointer;
            word-break: keep-all;
        }

    #modal .dont-show-today {
        margin: 0 8px 6px;
        font-size: 11px;
        color: #999;
        text-align: right;
    }

        #modal .dont-show-today input {
            vertical-align: middle;
        }
/* 휴대폰·태블릿 : 상품을 가리지 않도록 메인 배너 바로 아래에 가로로 꽉 차게 끼워 넣음 */
@media (max-width: 1024px) {
    #modal {
        display: none !important;
    }
}

/* ---------- 공지 이미지 팝업 (아래 HTML 주석을 풀면 사용) ---------- */
.notice-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.45);
}

.notice-modal {
    position: relative;
    max-width: calc(100% - 28px);
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0,0,0,.3);
}

.notice-modal-image {
    line-height: 0;
}

    .notice-modal-image img {
        display: block;
        max-width: 800px;
        width: 100%;
        max-height: 75vh;
        height: auto;
    }

.notice-modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 26px;
    line-height: 32px;
    cursor: pointer;
}

.notice-modal-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
    padding: 0 15px;
    font-size: 14px;
    color: #555;
}

    .notice-modal-bottom button {
        border: 0;
        background: none;
        font-size: 14px;
        font-weight: bold;
        color: #333;
        cursor: pointer;
    }


/* =====================================================================
               태블릿 + 휴대폰 (1024px 이하)
               ===================================================================== */

@media (max-width: 1024px) {
    .idx-page {
        --idx-gutter: 14px;
    }

    .idx {
        padding-bottom: 32px;
    }

    /* 배너 : 가운데 1080px 영역(문구가 들어간 부분)이 화면 폭에 꽉 차도록 */
    .idx-hero {
        /*margin: 12px var(--idx-gutter) 0;
            border-radius: 16px;*/
        max-width:abs();
        transform: translateZ(0);
    }

    .idx-hero-slide {
        height: auto;
        aspect-ratio: 1080 / 320;
    }

    .idx-hero-btn {
        display: none;
    }

    .idx-hero-dots {
        bottom: 10px;
        gap: 4px;
    }

    .idx-hero-dot {
        width: 6px;
        height: 6px;
        border-radius: 3px;
    }

        .idx-hero-dot.is-active {
            width: 16px;
        }

    .idx-hero-count {
        right: 10px;
        bottom: 8px;
        font-size: 11px;
        padding: 2px 8px;
    }

    .idx-sec {
        margin-top: 30px;
    }

    .idx-sec-head {
        margin-bottom: 12px;
    }

    .idx-sec-title {
        font-size: 20px;
    }

    .idx-sec-sub {
        margin-top: 3px;
        font-size: 13px;
    }

    .idx-arrows {
        display: none;
    }

    /* 레일을 화면 끝까지 늘려 손가락으로 넘기기 쉽게 */
    .idx-rail {
        grid-auto-columns: calc((100% - 2 * 12px) / 3.25);
        gap: 12px;
        margin: 0 calc(var(--idx-gutter) * -1);
        padding: 2px var(--idx-gutter) 8px;
        scroll-padding-left: var(--idx-gutter);
    }

    .idx-card:hover {
        transform: none;
        box-shadow: none;
    }

        .idx-card:hover .idx-card-img img {
            transform: none;
        }

    .idx-banner {
        margin-top: 30px;
        border-radius: 14px;
    }
}

/* =====================================================================
               휴대폰 (767px 이하)
               ===================================================================== */

@media (max-width: 767px) {
    .idx-sec-title {
        font-size: 19px;
    }

    .idx-rail {
        grid-auto-columns: 42%;
        gap: 10px;
    }

    .idx-card {
        border-radius: 12px;
    }

    .idx-card-body {
        padding: 10px 10px 12px;
    }

    .idx-card-name {
        font-size: 13.5px;
    }

    .idx-price-rate,
    .idx-price-now {
        font-size: 15px;
    }

    .idx-badge-top {
        top: 8px;
        left: 8px;
        font-size: 11px;
        padding: 2px 6px;
    }

    .idx-badge-circle {
        left: 8px;
        bottom: 8px;
        width: 50px;
        height: 50px;
        font-size: 11px;
    }
}

@media (max-width: 360px) {
    .idx-rail {
        grid-auto-columns: 46%;
    }
}

/* 움직임 줄이기 설정을 켠 사용자 */

@media (prefers-reduced-motion: reduce) {
    .idx-hero-track,
    .idx-rail,
    .idx-card,
    .idx-card-img img {
        transition: none;
        scroll-behavior: auto;
    }
}
