﻿/* ============================
   Pretendard 웹폰트 로딩
   ============================ */
@font-face {
    font-family: 'Pretendard';
    src: url('/fonts/Pretendard-Thin.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('/fonts/Pretendard-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('/fonts/Pretendard-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('/fonts/Pretendard-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('/fonts/Pretendard-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('/fonts/Pretendard-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('/fonts/Pretendard-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('/fonts/Pretendard-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('/fonts/Pretendard-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ============================
   Variables / Reset (header.css 기준)
   ============================ */
:root {
    --brand: #53af59;
    --ink: #222;
    --muted: #777;
    --line: #eee;
    --font-main: Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-size-sm: 13px;
    --font-size-md: 15px;
    --color-brand: #53af59;
    --color-text-main: #222;
    --color-text-muted: #777;
}

/* 전체 box-sizing */
* {
    box-sizing: border-box;
}

/* HTML 기본 폰트 설정 */
html, body {
    margin: 0;
    padding: 0;
    color: var(--ink);
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 고정폭 정책: 내부는 고정, 창이 더 작아지면 가로 스크롤 허용 */
body {
    overflow-x: hidden;
}

    body.no-scroll {
        overflow: hidden !important;
    }

/* 페이지 기본(가운데 기준) */
main.page, .page {
    display: block;
    width: 100%;
    text-align: center;
}

/* 컨테이너 공통 */
.container-1080,
.container-1920 {
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
    display: block !important;
    text-align: left;
}

/* 컨테이너: 가운데 정렬만 담당 */
.container-1080 {
    width: 1080px;
    min-width: 1080px;
    margin: 0 auto;
}

.container-1920 {
    width: 100%;
    max-width: 1920px;
    min-width: 0;
    margin: 0 auto;
}

/* ───────── 페이지 패딩 ───────── */
.page {
    padding: 24px 0 48px;
}

/* ============================================================
   Hero
   ============================================================ */
.home-hero {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 1920px !important;
    height: 370px !important;
    position: relative !important;
    overflow: hidden !important;
}

.main-hero-swiper,
.main-hero-swiper .swiper-wrapper,
.main-hero-swiper .swiper-slide {
    width: 100%;
    height: 100%;
}

.hero-slider {
    display: flex;
    height: 370px;
    transition: transform .5s ease;
}

.hero-slide,
.main-hero-swiper .swiper-slide {
    flex: 0 0 100%;
    height: 370px;
}

    .home-hero picture,
    .home-hero img,
    .hero-slide img,
    .main-hero-swiper .swiper-slide img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

.hero-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

    .hero-dots .dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        border: 1px solid rgba(255,255,255,.9);
        background: rgba(255,255,255,.35);
        cursor: pointer;
    }

        .hero-dots .dot.on {
            background: #fff;
        }

/* ============================================================
   Sections / Cards / Grids / Rank
   ============================================================ */
.section {
    margin: 100px 0;
}

    .section.special {
        margin: 30px 0;
    }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*margin: 24px 0 10px;*/
    margin: 80px 0 50px;
}

    .section-header.center {
        justify-content: center;
        gap: 12px;
    }

        .section-header.center h3 {
            text-align: center;
        }

    .section-header .section-sub {
        margin: 6px 0 0;
        font-size: 15px;
        color: var(--muted);
        line-height: 1.35;
    }

    .section-header h3 {
        font-size: 30px;
        margin: 0;
        font-weight: 400;
    }

    .section-header .more {
        color: var(--muted);
        font-size: 14px;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }

        .section-header .more::after {
            content: "›";
            font-size: 16px;
        }

.banner-wide {
    background: var(--brand);
    color: #fff;
    border-radius: 5px;
    text-align: center;
    padding: 14px;
    margin: 8px 0 58px;
}

/* Grid */
.grid {
    display: grid;
    gap: 16px;
}

.grid-4 {
    grid-template-columns: repeat(4,1fr);
}

.grid-3 {
    grid-template-columns: repeat(3,1fr);
}

.grid-2 {
    grid-template-columns: repeat(2,1fr);
}

.card {
    overflow: hidden;
    background: #fff;
    position: relative;
}

    .card .badge {
        position: absolute;
        left: 8px;
        top: 8px;
        background: #7a5cff;
        color: #fff;
        font-size: 12px;
        padding: 4px 8px;
        border-radius: 8px;
    }

    .card .thumb {
        width: 100%;
        aspect-ratio: 1/1;
        object-fit: cover;
        display: block;
    }

    .card .quick {
        border-top: 1px solid var(--line);
        padding: 8px 12px;
        text-align: center;
        color: #666;
        font-size: 13px;
    }

.card-body {
    padding: 10px 0px;
}

    .card-body .name {
        padding: 10px 0px;
        font-size: 16px;
        line-height: 1.55;
        margin-bottom: 6px;
        min-height: 38px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-weight: 400;
        font-family: var(--font-main);
        text-overflow: ellipsis;
    }

/* meta/price */
.meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #999;
    font-size: 12px;
    margin-top: 6px;
}

    .meta .dot {
        width: 3px;
        height: 3px;
        background: #ccc;
        border-radius: 50%;
    }

.price .sale {
    font-weight: 500;
    margin-right: 6px;
    font-size: 20px;
}

.price .orig {
    text-decoration: line-through;
    color: #999;
    margin-left: 6px;
}

.price .pct {
    color: #ff3d00;
    font-weight: 700;
    margin-right: 4px;
}

/* Rank strip/cards */
.rank-strip {
    display: flex;
    gap: 12px;
    overflow: auto;
    padding-bottom: 8px;
}

.rank-card {
    min-width: 260px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
    background: #fff;
}

    .rank-card img {
        width: 84px;
        height: 84px;
        border-radius: 8px;
        object-fit: cover;
    }

.rank-num {
    font-weight: 700;
    width: 26px;
    text-align: center;
}

/* ============================================================
   Real-time Rank UI
   ============================================================ */
.rank-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rank-tabs {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.rank-tab {
    border: 0;
    background: transparent;
    padding: 8px 14px;
    font-size: 13px;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

    .rank-tab.active {
        background: #eaf6ec;
        color: var(--brand);
        font-weight: 700;
    }

.rank-refresh {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    height: 32px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #555;
    font-size: 13px;
}

    .rank-refresh:disabled {
        opacity: .6;
        cursor: default;
    }

    .rank-refresh .spin {
        animation: wmSpin .9s linear infinite;
    }

@keyframes wmSpin {
    from {
        transform: rotate(0);
    }

    to {
        transform: rotate(360deg);
    }
}

.rank-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

    .rank-grid .rank-card {
        min-width: 0;
        width: 100%;
        cursor: pointer;
        transition: transform .16s ease, box-shadow .16s ease;
    }

        .rank-grid .rank-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 18px rgba(0,0,0,.08);
        }

    .rank-grid.is-refreshing {
        opacity: .92;
    }

    .rank-grid.is-anim .rank-card {
        animation: wmRankIn .28s ease both;
        animation-delay: var(--rk-delay, 0ms);
    }

@keyframes wmRankIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rank-grid-skeleton {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* ============================================================
   Floating menu
   ============================================================ */
.floating-menu {
    position: fixed;
    right: 18px;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 40;
}

@media (max-width:1250px) {
    .floating-menu {
        display: none;
    }
}

.fm-item {
    width: 64px;
    height: 64px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #333;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(0,0,0,.08);
}

    .fm-item.toTop {
        font-weight: 700;
    }

.fm-recent {
    width: 84px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,.08);
    overflow: hidden;
}

.fm-recent-head {
    font-size: 12px;
    color: #333;
    text-align: center;
    padding: 10px 6px;
    border-bottom: 1px solid var(--line);
    line-height: 1.2;
    background: #fff;
}

.fm-recent-empty {
    font-size: 12px;
    color: #999;
    padding: 18px 8px;
    text-align: center;
}

.fm-recent-nav {
    width: 100%;
    height: 26px;
    border: 0;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .fm-recent-nav:disabled {
        opacity: .35;
        cursor: default;
    }

.fm-recent-viewport {
    height: 215px;
    overflow: hidden;
    position: relative;
    background: #fff;
}

.fm-recent-track {
    display: flex;
    flex-direction: column;
    transition: transform .22s ease;
}

.fm-recent-item {
    height: 86px;
    padding: 6px;
    display: block;
    text-decoration: none;
    cursor: pointer;
}

    .fm-recent-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
        display: block;
        border: 1px solid #eee;
    }

/* ============================================================
   Buttons
   ============================================================ */
.btn-cart {
    width: 100%;
    font-size: 15px;
    border-radius: 1px;
    border: 1px solid #ddd;
    background: #fff;
    color: #000;
    margin: 5px 0 0 0;
    padding: 10px 0 10px 0;
}

    .btn-cart:hover {
        background: #53af59;
        color: #fff;
    }

/* ============================================================
   Footer
   ============================================================ */
.wm-footer {
    background: #f7f7f7;
    border-top: 1px solid var(--line);
}

.wm-footer-toplinks {
    color: #fff;
    font-size: 16px;
    line-height: 1.3;
    padding: 20px 0;
}

.wm-footer-toplinks-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 26px;
    text-align: center;
}

.wm-footer-link {
    color: #000;
    text-decoration: none;
    opacity: .95;
    padding: 2px 0;
}

    .wm-footer-link:hover {
        opacity: 1;
        text-decoration: underline;
    }

.wm-footer-sep {
    color: #000;
}

.wm-footer-kakao {
    padding: 10px 0;
}

.wm-footer-kakao-inner {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

#plusfriend-add-button img {
    vertical-align: middle;
    border: 2px dotted #988900;
    border-radius: 40px;
}

.wm-footer-social {
    background: #f7f7f7;
    padding: 18px 0 12px;
}

.wm-footer-social-inner {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 22px;
    flex-wrap: nowrap;
}

.wm-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .wm-social img {
        width: 32px;
        height: 32px;
        object-fit: contain;
        display: block;
        opacity: .92;
    }

    .wm-social:hover img {
        opacity: 1;
    }

.wm-footer-main {
    background: #f7f7f7;
    padding: 18px 0 22px;
}

.wm-footer-main-inner {
    display: grid !important;
    grid-template-columns: 420px 1fr;
    gap: 34px;
    align-items: start;
}

.wm-footer-left .wm-footer-title {
    margin: 0 0 10px;
    font-size: 22px;
    color: #222;
    font-weight: 400;
}

.wm-footer-left .wm-footer-desc {
    margin: 0 0 14px;
    font-size: 20px;
    color: #222;
}

.wm-footer-left .wm-footer-tel {
    margin: 0 20px 0 0;
    font-size: 30px;
    color: #222;
    font-weight: 700;
}

.wm-footer-btnrow {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 10px;
    align-items: start;
    margin-top: 10px;
}

.wm-footer-btncol {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wm-footer-btn {
    width: 170px;
    height: 42px;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #222;
    text-decoration: none;
    border-radius: 0px;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .wm-footer-btn:hover {
        border-color: #cfcfcf;
    }

.wm-footer-hours {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    padding-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wm-hours-line {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.wm-hours-label {
    color: #777;
}

.wm-hours-sep {
    color: #c9c9c9;
}

.wm-hours-text {
    color: #666;
}

.wm-note-title {
    font-weight: 700;
    color: #777;
    margin-bottom: 2px;
}

.wm-note-desc {
    color: #888;
}

.wm-footer-right {
    color: #666;
    font-size: 14px;
    line-height: 2.2;
    padding: 15px 0 0 10px;
}

.wm-footer-companyline {
    margin: 0 0 3px;
}

.wm-footer-copy {
    margin-top: 28px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

/* ============================================================
   유틸/스켈레톤/토스트/스와이퍼
   ============================================================ */

/* 홈 섹션 Swiper 래퍼 */
.home-swiper-wrap {
    position: relative;
    overflow: visible;
}

/* 실제 Swiper 컨테이너 */
.home-swiper {
    overflow: hidden;
}

/* ============================
   공통 상품 그룹 Swiper 화살표
   - Home 내 모든 .home-swiper-wrap 공통 적용
   ============================ */
.home-swiper-wrap .swiper-button-prev,
.home-swiper-wrap .swiper-button-next {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(0,0,0,.10);
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
    color: #333;
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 20;
}

    .home-swiper-wrap .swiper-button-prev::after,
    .home-swiper-wrap .swiper-button-next::after {
        font-size: 18px;
        font-weight: 700;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        margin: 0;
        transform: none;
    }

.home-swiper-wrap .swiper-button-prev {
    left: -20px;
}

.home-swiper-wrap .swiper-button-next {
    right: -20px;
}

.home-swiper-wrap .swiper-button-disabled {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ============================
   Home MD 2-row Swiper
   - 1페이지 단위 슬라이드
   - PC: 2행 4열(8개)
   - MO: 2행 2열(4개)
   ============================ */
.md-swiper-wrap {
    position: relative;
    overflow: visible;
}

.md-special-swiper {
    overflow: hidden;
}

    .md-special-swiper .swiper-slide {
        height: auto;
        box-sizing: border-box;
    }

.md-page-grid {
    display: grid;
    gap: 16px;
}

.md-page-grid-pc {
    grid-template-columns: repeat(4, 1fr);
}

.md-page-grid-mo {
    grid-template-columns: repeat(2, 1fr);
}

.md-special-swiper .card {
    height: 100%;
}

.md-special-swiper .card-body {
    display: flex;
    flex-direction: column;
}

    .md-special-swiper .card-body .meta {
        /*margin-top: auto;*/
        margin-top:10px;
        margin-left:4px;
    }

/* 기본: PC만 표시 */
.md-swiper-wrap .md-special-swiper-pc {
    display: block !important;
}

.md-swiper-wrap .md-special-swiper-mo {
    display: none !important;
}

.md-swiper-wrap .swiper-button-disabled {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.md-swiper-wrap .md-special-swiper-pc.swiper-initialized,
.md-swiper-wrap .md-special-swiper-mo.swiper-initialized {
    overflow: hidden;
}
.md-swiper-wrap .md-special-swiper-pc,
.md-swiper-wrap .md-special-swiper-mo {
    width: 100%;
}

    .md-swiper-wrap .md-special-swiper-pc .swiper-wrapper,
    .md-swiper-wrap .md-special-swiper-mo .swiper-wrapper {
        align-items: stretch;
    }

    .md-swiper-wrap .md-special-swiper-pc .swiper-slide,
    .md-swiper-wrap .md-special-swiper-mo .swiper-slide {
        height: auto !important;
    }

/* 섹션 하단 '전체보기' 버튼 */
.section-footer {
    margin-top: 10px;
}

    .section-footer.right {
        text-align: right;
    }

    .section-footer.center {
        text-align: center;
    }

.btn-more-view {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 1px;
    text-decoration: none;
    color: var(--ink);
    background: #fff;
    width: 50%;
}

    .btn-more-view:hover {
        border-color: var(--brand);
        color: var(--brand);
    }

/* 페이지 로딩 오버레이 */
.page-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

    .page-loading-overlay.show {
        display: flex;
    }

/* 배너 스켈레톤 */
.banner-skeleton {
    width: 100%;
    max-width: 1920px;
    height: 370px;
    border-radius: 12px;
    background: #f2f2f2;
    margin: 0 auto;
}

.banner-fallback img {
    width: 100%;
    border-radius: 12px;
}

/* 공통 shimmer 효과 */
.shimmer {
    position: relative;
    overflow: hidden;
}

    .shimmer::before {
        content: "";
        position: absolute;
        inset: 0;
        transform: translateX(-100%);
        background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0) 100%);
        animation: shimmer-move 1.2s infinite;
    }

@keyframes shimmer-move {
    to {
        transform: translateX(100%);
    }
}

/* 카드 스켈레톤 */
.sk-card {
    position: relative;
}

.sk-thumb {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    background: #eaeaea;
    margin-bottom: 8px;
}

.sk-line {
    height: 14px;
    border-radius: 4px;
    background: #eaeaea;
    margin-bottom: 6px;
}

.sk-line1 {
    width: 80%;
}

.sk-line2 {
    width: 60%;
}

.sk-price {
    width: 50%;
    height: 16px;
    border-radius: 4px;
    background: #e0e0e0;
    margin-top: 6px;
}

/* 실시간 인기 랭킹 스켈레톤 */
.rank-strip-skeleton {
    display: flex;
    gap: 12px;
}

.sk-rank-card {
    width: 180px;
    padding: 8px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 0 0 1px #eee;
}

.sk-rank-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #eaeaea;
    margin-bottom: 8px;
}

.sk-rank-img {
    width: 100%;
    height: 100px;
    border-radius: 8px;
    background: #eaeaea;
    margin-bottom: 6px;
}

.sk-rank-text {
    width: 80%;
    height: 14px;
    border-radius: 4px;
    background: #eaeaea;
}

/* 토스트 */
.toast-wrapper {
    position: fixed;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    z-index: 9999;
    pointer-events: none;
}

.toast-message {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14px;
    margin-top: 6px;
    min-width: 220px;
    text-align: center;
    opacity: 1;
    transition: opacity .4s ease;
}

    .toast-message.hide {
        opacity: 0;
    }

/* ============================
   Terms Dialog
   ============================ */
.e-dlg-overlay {
    background: rgba(0, 0, 0, 0.55) !important;
}

.wm-terms-dialog.e-dialog {
    border-radius: 8px;
    overflow: hidden;
}

.wm-terms-dialog .e-dlg-content {
    padding: 0 !important;
    margin: 15px;
}

.wm-terms-iframe {
    width: 100%;
    height: min(76vh, 720px);
    border: 0;
    display: block;
    background: #fff;
}

/* ============================================================
   Mobile Responsive Overrides
   ============================================================ */

.wm-bottom-tab {
    display: none;
}

/* ============================================================
   App Popup BottomSheet
   ============================================================ */
.wm-app-popup-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.52);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 10050;
    padding: 0;
}

.wm-app-popup-sheet {
    width: min(520px, 100%);
    background: #fff;
    border-radius: 22px 22px 0 0;
    overflow: hidden;
    box-shadow: 0 -8px 28px rgba(0,0,0,.18);
    animation: wmAppPopupUp .22s ease-out;
}

    .wm-app-popup-sheet.half {
        max-height: 56vh;
    }

    .wm-app-popup-sheet.full {
        max-height: 92vh;
    }

.wm-app-popup-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
}

.wm-app-popup-head-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wm-app-popup-today {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    user-select: none;
}

    .wm-app-popup-today input {
        width: 16px;
        height: 16px;
        margin: 0;
    }

.wm-app-popup-close {
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #222;
    cursor: pointer;
    padding: 0;
}

.wm-app-popup-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
}

.wm-app-popup-imagebtn {
    display: block;
    width: 100%;
    border: 0;
    background: #fff;
    padding: 0;
    cursor: pointer;
}

.wm-app-popup-image {
    display: block;
    width: 100%;
    height: auto;
}

@keyframes wmAppPopupUp {
    from {
        transform: translateY(100%);
        opacity: .85;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {


    .wm-app-popup-backdrop {
        align-items: flex-end;
    }

    .wm-app-popup-sheet {
        width: 100%;
        border-radius: 18px 18px 0 0;
    }

        .wm-app-popup-sheet.half {
            max-height: 58vh;
        }

        .wm-app-popup-sheet.full {
            max-height: calc(100vh - 16px);
        }

    .wm-app-popup-head {
        padding: 12px 14px 10px;
    }

    .wm-app-popup-today {
        font-size: 13px;
    }

    .wm-app-popup-close {
        width: 32px;
        height: 32px;
        font-size: 26px;
    }

    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden !important;
    }

    .container-1080,
    .container-1920 {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    main.page, .page {
        padding-top: 14px !important;
        padding-bottom: 90px !important;
        text-align: left !important;
    }

    .home-hero {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: auto !important;
        border-radius: 0px;
        overflow: hidden;
    }

        .home-hero img,
        .hero-slide img {
            width: 100% !important;
            height: auto !important;
            display: block;
            object-fit: cover;
        }

    .hero-slider {
        height: auto !important;
    }

    .hero-slide {
        flex: 0 0 100% !important;
        height: auto !important;
    }

    .banner-skeleton {
        width: 100% !important;
        max-width: 100% !important;
        height: 180px !important;
        border-radius: 12px;
    }

    .section {
        margin: 32px 0 !important;
        padding-left: 14px;
        padding-right: 14px;
    }

    .section-header {
        margin: 12px 0 10px !important;
        gap: 10px;
    }

        .section-header h3 {
            font-size: 20px !important;
            font-weight: 600 !important;
            line-height: 1.2;
        }

        .section-header .section-sub {
            font-size: 13px !important;
            line-height: 1.35;
        }

        .section-header .more {
            font-size: 16px !important;
            padding: 10px 0px;
        }

    .grid {
        gap: 12px !important;
    }

    .grid-4,
    .grid-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .grid-2 {
        grid-template-columns: repeat(1, 1fr) !important;
    }

    .card-body {
        padding: 8px 0 !important;
    }

        .card-body .name {
            font-size: 14px !important;
            min-height: 0 !important;
            -webkit-line-clamp: 2 !important;
            padding: 16px 0 !important;
        }

    .price .sale {
        font-size: 16px !important;
        font-weight: 700;
    }

    .meta {
        font-size: 11px !important;
        gap: 6px !important;
    }

    /* Swiper UI - 모바일에서도 모든 상품 그룹 화살표 표시 */
    .home-swiper-wrap {
        overflow: visible !important;
    }

        .home-swiper-wrap .swiper-button-prev,
        .home-swiper-wrap .swiper-button-next {
            display: flex !important;
            width: 54px;
            height: 54px;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255,255,255,.62);
            box-shadow: 0 3px 10px rgba(0,0,0,.16);
            z-index: 20;
        }

            .home-swiper-wrap .swiper-button-prev::after,
            .home-swiper-wrap .swiper-button-next::after {
                font-size: 20px;
                width: 54px;
                height: 54px;
                line-height: 54px;
                text-align: center;
            }

        .home-swiper-wrap .swiper-button-prev {
            left: -8px;
        }

        .home-swiper-wrap .swiper-button-next {
            right: -8px;
        }

    .md-swiper-wrap .md-special-swiper-pc {
        display: none !important;
    }

    .md-swiper-wrap .md-special-swiper-mo {
        display: block !important;
    }
    .md-swiper-wrap .md-special-swiper-mo {
        width: 100% !important;
        overflow: hidden !important;
    }

        .md-swiper-wrap .md-special-swiper-mo .swiper-wrapper {
            display: flex !important;
        }

        .md-swiper-wrap .md-special-swiper-mo .swiper-slide {
            width: 100% !important;
            flex-shrink: 0;
            height: auto !important;
        }

    .md-page-grid-mo {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .md-page-grid {
        gap: 12px;
    }

    .md-special-swiper .card-body .name {
        min-height: 0 !important;
    }
    .md-swiper-wrap .swiper-button-prev,
    .md-swiper-wrap .swiper-button-next {
        top: 50%;
        transform: translateY(-50%);
    }
    /* Rank */
    .rank-strip {
        gap: 10px !important;
        padding-bottom: 6px !important;
    }

    .section-header {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .rank-controls {
        display: flex !important;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        margin-top: 2px;
    }

    .rank-tabs {
        flex: 0 0 auto;
    }

    .rank-tab {
        position: relative;
        font-size: 0 !important;
    }

        .rank-tab::before {
            font-size: 13px;
            line-height: 1;
            display: inline-block;
        }

        .rank-tab:nth-child(1)::before {
            content: "월";
        }

        .rank-tab:nth-child(2)::before {
            content: "주";
        }

        .rank-tab:nth-child(3)::before {
            content: "일";
        }

    .rank-refresh .txt {
        display: none !important;
    }

    .rank-refresh {
        padding: 0 12px;
        gap: 0;
        height: 32px;
    }

    .rank-card {
        min-width: 220px !important;
        border-radius: 10px;
        padding: 10px;
    }

    .rank-grid .rank-card {
        display: grid !important;
        grid-template-columns: 26px 72px 1fr;
        column-gap: 10px !important;
        align-items: center;
    }

    .rank-num {
        width: 26px !important;
        text-align: center;
        justify-self: center;
    }

    .rank-grid .rank-card > div:nth-of-type(2) {
        width: 72px;
    }

    .rank-card img {
        width: 72px !important;
        height: 72px !important;
        border-radius: 8px;
        object-fit: cover;
        display: block;
    }

    .rank-meta .name {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: break-word;
    }

    .rank-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    /* Footer */
    .wm-footer {
        padding-left: 14px;
        padding-right: 14px;
    }

    .wm-footer-toplinks {
        padding: 14px 0 !important;
        font-size: 14px !important;
    }

    .wm-footer-main-inner {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .wm-footer-left .wm-footer-title {
        font-size: 18px !important;
    }

    .wm-footer-left .wm-footer-tel {
        font-size: 24px !important;
    }

    .wm-footer-btnrow {
        grid-template-columns: 1fr !important;
    }

    .wm-footer-btn {
        width: 100% !important;
    }

    .wm-footer-right {
        padding: 0 !important;
        font-size: 12px !important;
        line-height: 1.8 !important;
    }

    [style*="min-width: 1920px"],
    [style*="min-width:1920px"],
    [style*="width: 1920px"],
    [style*="width:1920px"] {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    /* Mobile Bottom Tab Bar */
    .wm-bottom-tab {
        display: flex !important;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        height: 64px;
        background: #fff;
        border-top: 1px solid #eee;
        z-index: 6000;
    }

        .wm-bottom-tab .bt-item {
            flex: 1;
            border: 0;
            background: transparent;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            font-size: 11px;
            color: #222;
            position: relative;
            cursor: pointer;
        }

            .wm-bottom-tab .bt-item i {
                font-size: 18px;
            }

        .wm-bottom-tab .bt-badge {
            position: absolute;
            top: 8px;
            right: 20px;
            min-width: 18px;
            height: 18px;
            padding: 0 4px;
            border-radius: 999px;
            background: #ff0000;
            color: #fff;
            font-size: 11px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-style: normal;
        }
}
