/* shop 리스트 페이지에서는 채널톡 위젯 숨김 (디테일/비교 페이지와 동일 정책) */
body:has(.shop_hero) #ch-plugin,
body:has(.shop_hero) [id^="ch-plugin"],
body:has(.shop_hero) [class*="ch-desk"] {
    display: none !important;
}

/* ============================
   Hero Banner (Poster Concept)
   ============================ */
.shop_hero {
    position: relative;
    background: #0a0e2e;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}

/* 미세한 grid 패턴 */
.shop_hero .hero_pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 90%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 90%);
}

/* 좌측 / 우측 Glow */
.shop_hero .hero_glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(40px);
}

.shop_hero .hg_1 {
    top: -20%;
    left: -10%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(91, 108, 255, 0.4) 0%, transparent 70%);
}

.shop_hero .hg_2 {
    bottom: -30%;
    right: -10%;
    width: 540px;
    height: 540px;
    background: radial-gradient(circle, rgba(166, 117, 255, 0.28) 0%, transparent 70%);
}

/* 큰 EDK 워터마크 */
.shop_hero .hero_mark {
    position: absolute;
    bottom: -90px;
    right: -40px;
    font-size: 380px;
    line-height: 0.85;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.04);
    letter-spacing: -0.05em;
    user-select: none;
    pointer-events: none;
    z-index: 0;
}

.hero_inner {
    position: relative;
    z-index: 1;
    max-width: 1164px;
    margin: 0 auto;
    padding: 88px 16px 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 56px;
}

.hero_text {
    flex: 1;
    min-width: 0;
}

/* Eyebrow */
.hero_eyebrow_wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px 7px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.hero_dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5b6cff;
    box-shadow: 0 0 12px #5b6cff;
    animation: heroDotPulse 2s ease-in-out infinite;
}

@keyframes heroDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.hero_eyebrow {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.85);
}

/* Title */
.hero_title {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.hero_title_em {
    background: linear-gradient(135deg, #8a9aff 0%, #c8a4ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.hero_subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    max-width: 540px;
    margin-bottom: 36px;
}

/* Hero Meta (통계) */
.hero_meta {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    padding: 18px 28px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(8px);
}

.hm_item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hm_num {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.02em;
}

.hm_num span {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 2px;
}

.hm_label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
}

.hm_divider {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Visual - Chip Stack (2x3 grid) */
.hero_visual {
    flex-shrink: 0;
    width: 440px;
}

.hero_chip_stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.hero_chip {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s;
    backdrop-filter: blur(8px);
}

.hero_chip:hover {
    transform: translateX(6px);
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.2);
}

/* 카테고리별 좌측 액센트 */
.hero_chip::before {
    content: '';
    width: 4px;
    height: 36px;
    border-radius: 100px;
    flex-shrink: 0;
    margin-right: -4px;
}

.hero_chip.cat-homepage::before { background: #5b6cff; box-shadow: 0 0 16px rgba(91, 108, 255, 0.6); }
.hero_chip.cat-shopping::before { background: #10c98a; box-shadow: 0 0 16px rgba(16, 201, 138, 0.6); }
.hero_chip.cat-platform::before { background: #a675ff; box-shadow: 0 0 16px rgba(166, 117, 255, 0.6); }
.hero_chip.cat-app::before      { background: #00bcd4; box-shadow: 0 0 16px rgba(0, 188, 212, 0.6); }
.hero_chip.cat-landing::before  { background: #ff5e7e; box-shadow: 0 0 16px rgba(255, 94, 126, 0.6); }
.hero_chip.cat-system::before   { background: #ffae00; box-shadow: 0 0 16px rgba(255, 174, 0, 0.6); }

.hc_mark {
    flex-shrink: 0;
    font-size: 18px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
    width: 32px;
}

.hero_chip.cat-homepage .hc_mark { color: #8a9aff; }
.hero_chip.cat-shopping .hc_mark { color: #4ee0a8; }
.hero_chip.cat-platform .hc_mark { color: #c8a4ff; }
.hero_chip.cat-app      .hc_mark { color: #5dd6e6; }
.hero_chip.cat-landing  .hc_mark { color: #ff8aa3; }
.hero_chip.cat-system   .hc_mark { color: #ffc44a; }

.hc_name {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

/* ============================
   Shop Body
   ============================ */
.shop_body {
    background: #f7f8fa;
    padding-bottom: 80px;
}

/* ============================
   Compare Floating Button
   ============================ */
.compare_floating {
    position: fixed;
    bottom: 32px;
    right: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--main-color);
    color: #fff;
    border-radius: 100px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(12, 10, 83, 0.35);
    transition: all 0.3s;
    opacity: 0.7;
}

.compare_floating:hover,
.compare_floating.has_items {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(12, 10, 83, 0.4);
}

.compare_floating i {
    font-size: 20px;
}

.cart_badge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 800;
}

.cart_badge.has_items {
    background: var(--point-color);
    animation: badgePop 0.3s ease;
}

@keyframes badgePop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ============================
   Filter Section
   ============================ */
.shop_filter_section {
    padding: 32px 0 8px;
}

.filter_tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.filter_tabs::-webkit-scrollbar {
    display: none;
}

.filter_tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.25s;
    flex-shrink: 0;
}

.filter_tab:hover {
    border-color: #bbb;
    color: #333;
    background: #fafafa;
}

.filter_tab.active {
    background: var(--main-color);
    border-color: var(--main-color);
    color: #fff;
}

.filter_tab i {
    font-size: 16px;
}

.filter_dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.filter_dot.cat-homepage { background: #5b6cff; }
.filter_dot.cat-shopping { background: #10c98a; }
.filter_dot.cat-platform { background: #a675ff; }
.filter_dot.cat-app { background: #00bcd4; }
.filter_dot.cat-landing { background: #ff5e7e; }
.filter_dot.cat-system { background: #ffae00; }

.filter_tab.active .filter_dot {
    background: #fff;
}

/* ============================
   List Section
   ============================ */
.shop_list_section {
    padding-top: 24px;
}

.list_header {
    margin-bottom: 20px;
}

.list_count {
    font-size: 14px;
    color: #999;
}

.list_count strong {
    color: var(--main-color);
    font-weight: 700;
}

/* Card Grid - 3 columns */
.shop_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ============================
   Product Card (Wishket Style)
   ============================ */
.product_card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e8e8e8;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    height: 100%;
}

.product_card:hover {
    border-color: transparent;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

/* ============================
   Auto-generated Poster Thumbnail
   (카테고리 기반 단색 프리미엄 썸네일)
   ============================ */
.edk_poster {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
}

/* --- 카테고리별 베이스 컬러 (deep, moody) --- */
.edk_poster.cat-homepage { background: #0c1340; }   /* Deep navy */
.edk_poster.cat-shopping { background: #06321f; }   /* Deep emerald */
.edk_poster.cat-platform { background: #1f0a3a; }   /* Deep violet */
.edk_poster.cat-app      { background: #052a3a; }   /* Deep cyan */
.edk_poster.cat-landing  { background: #3a0a1e; }   /* Deep rose */
.edk_poster.cat-system   { background: #2a1f0a; }   /* Deep amber */

/* --- Pattern 변형 (4가지) --- */
.edk_poster .ep_pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* dots: 미세한 점 패턴 */
.edk_poster.pat-dots .ep_pattern {
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1.2px);
    background-size: 22px 22px;
}

/* grid: 격자 라인 */
.edk_poster.pat-grid .ep_pattern {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* diag: 사선 줄무늬 */
.edk_poster.pat-diag .ep_pattern {
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 18px,
        rgba(255, 255, 255, 0.04) 18px,
        rgba(255, 255, 255, 0.04) 36px
    );
}

/* lines: 가로 얇은 줄무늬 */
.edk_poster.pat-lines .ep_pattern {
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 14px,
        rgba(255, 255, 255, 0.04) 14px,
        rgba(255, 255, 255, 0.04) 15px
    );
}

/* --- 카테고리별 광원 효과 --- */
.edk_poster::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    pointer-events: none;
}

.edk_poster.cat-homepage::before { background: radial-gradient(circle, rgba(91, 108, 255, 0.22) 0%, transparent 70%); }
.edk_poster.cat-shopping::before { background: radial-gradient(circle, rgba(16, 201, 138, 0.22) 0%, transparent 70%); }
.edk_poster.cat-platform::before { background: radial-gradient(circle, rgba(166, 117, 255, 0.22) 0%, transparent 70%); }
.edk_poster.cat-app::before      { background: radial-gradient(circle, rgba(0, 188, 212, 0.22) 0%, transparent 70%); }
.edk_poster.cat-landing::before  { background: radial-gradient(circle, rgba(255, 94, 126, 0.22) 0%, transparent 70%); }
.edk_poster.cat-system::before   { background: radial-gradient(circle, rgba(255, 174, 0, 0.22) 0%, transparent 70%); }

/* --- 큰 모노그램 워터마크 --- */
.edk_poster .ep_mark {
    position: absolute;
    right: -12px;
    bottom: -36px;
    font-size: 200px;
    line-height: 0.85;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.08);
    letter-spacing: -0.04em;
    user-select: none;
    pointer-events: none;
    z-index: 0;
}

/* --- Top: 라벨 + 메타 --- */
.edk_poster .ep_top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.edk_poster .ep_label {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
    backdrop-filter: blur(4px);
}

.edk_poster .ep_meta {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.3px;
}

/* --- Bottom: 액센트 라인 + 캡션 --- */
.edk_poster .ep_bottom {
    position: relative;
    z-index: 2;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.edk_poster .ep_line {
    width: 28px;
    height: 2px;
    border-radius: 100px;
}

.edk_poster.cat-homepage .ep_line { background: #5b6cff; }
.edk_poster.cat-shopping .ep_line { background: #10c98a; }
.edk_poster.cat-platform .ep_line { background: #a675ff; }
.edk_poster.cat-app      .ep_line { background: #00bcd4; }
.edk_poster.cat-landing  .ep_line { background: #ff5e7e; }
.edk_poster.cat-system   .ep_line { background: #ffae00; }

.edk_poster .ep_caption {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.55);
}

/* 리스트 카드 안에서 사용될 때의 사이즈 */
.card_thumb.edk_poster {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
    padding: 22px 24px 24px;
}

/* Card Info */
.card_info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.card_studio_label {
    display: inline-block;
    width: fit-content;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.card_studio_label.cat-homepage { background: #eef1ff; color: #2a3ab8; }
.card_studio_label.cat-shopping { background: #e6f8f1; color: #0a8c5e; }
.card_studio_label.cat-platform { background: #f3eaff; color: #6a3acc; }
.card_studio_label.cat-app      { background: #e2f6fa; color: #007a8c; }
.card_studio_label.cat-landing  { background: #ffeaf0; color: #c23a5e; }
.card_studio_label.cat-system   { background: #fff5e0; color: #b07d00; }

.card_title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.3;
}

.card_desc {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
    margin-bottom: 16px;
}

.card_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.tag_chip {
    padding: 4px 10px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

/* Card Bottom - Price + Arrow */
.card_bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.card_price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price_from {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
}

.price_suffix {
    font-size: 13px;
    color: #aaa;
    font-weight: 400;
}

.card_arrow {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f5;
    color: #aaa;
    font-size: 20px;
    transition: all 0.3s;
}

.product_card:hover .card_arrow {
    background: var(--main-color);
    color: #fff;
}

/* ============================
   Guide Section
   ============================ */
.shop_guide_section {
    margin-top: 60px;
}

.guide_card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px 40px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e8e8e8;
}

.guide_icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef1ff, #dde3ff);
    border-radius: 16px;
    font-size: 24px;
    color: var(--main-color);
}

.guide_text {
    flex: 1;
}

.guide_text h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.guide_text p {
    font-size: 14px;
    color: #999;
}

.guide_btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    background: var(--main-color);
    color: #fff;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.3s;
}

.guide_btn:hover {
    background: #1a1878;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(12, 10, 83, 0.3);
}

/* ============================
   Responsive
   ============================ */
@media screen and (max-width: 1024px) {
    .shop_grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero_inner {
        gap: 32px;
    }

    .hero_visual {
        width: 380px;
    }

    .hero_title {
        font-size: 38px;
    }

    .shop_hero .hero_mark {
        font-size: 280px;
    }
}

@media screen and (max-width: 767px) {
    .shop_hero .hero_mark {
        font-size: 200px;
        bottom: -50px;
        right: -30px;
    }

    .hero_inner {
        flex-direction: column;
        padding: 48px 16px 40px;
        gap: 36px;
    }

    .hero_eyebrow_wrap {
        margin-bottom: 16px;
    }

    .hero_eyebrow {
        font-size: 11px;
    }

    .hero_title {
        font-size: 28px;
        margin-bottom: 14px;
    }

    .hero_subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .hero_meta {
        display: flex;
        width: 100%;
        gap: 16px;
        padding: 14px 18px;
    }

    .hm_num {
        font-size: 20px;
    }

    .hm_num span {
        font-size: 13px;
    }

    .hm_label {
        font-size: 10px;
    }

    .hm_divider {
        height: 24px;
    }

    .hero_visual {
        width: 100%;
    }

    .hero_chip_stack {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .hero_chip {
        padding: 14px 16px;
        gap: 10px;
    }

    .hero_chip::before {
        height: 28px;
    }

    .hc_mark {
        font-size: 14px;
        width: 24px;
    }

    .hc_name {
        font-size: 12px;
    }

    .shop_grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card_thumb.edk_poster {
        min-height: 150px;
        padding: 18px 20px 20px;
    }

    .edk_poster .ep_mark {
        font-size: 160px;
        bottom: -28px;
    }

    .card_info {
        padding: 20px;
    }

    .card_title {
        font-size: 16px;
    }

    .price_from {
        font-size: 18px;
    }

    .compare_floating {
        bottom: 20px;
        right: 16px;
        padding: 12px 20px;
        font-size: 14px;
    }

    .guide_card {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
        gap: 16px;
    }

    .guide_btn {
        width: 100%;
        justify-content: center;
    }

    .shop_filter_section {
        padding: 24px 0 4px;
    }
}
