/* ===========================================
   미클릭 프리뷰 - 미니멀 클린 디자인
   v1.0.0 (2026-02-22)
   =========================================== */

/* --- CSS Variables --- */
:root {
    --pv-primary: #42A4EB;
    --pv-primary-dark: #2B8DD4;
    --pv-primary-light: #EBF5FF;
    --pv-primary-gradient: linear-gradient(135deg, #42A4EB, #6BB8F0);
    --pv-text-primary: #1A1A1A;
    --pv-text-secondary: #555555;
    --pv-text-tertiary: #999999;
    --pv-bg-page: #F5F6F8;
    --pv-bg-card: #FFFFFF;
    --pv-border: #F0F0F0;
    --pv-shadow-sm: 0 2px 8px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --pv-shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    --pv-shadow-lg: 0 8px 32px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.05);
    --pv-shadow-3d: 0 6px 20px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.8);
    --pv-radius-sm: 8px;
    --pv-radius-md: 12px;
    --pv-radius-lg: 16px;
    --pv-radius-full: 9999px;
    --pv-spacing-xs: 8px;
    --pv-spacing-sm: 12px;
    --pv-spacing-md: 16px;
    --pv-spacing-lg: 20px;
    --pv-spacing-xl: 24px;
    --pv-spacing-2xl: 32px;
    --pv-header-h: 56px;
    --pv-bottom-h: 64px;
    --pv-max-w: 600px;
}

/* --- Reset & Base --- */
.pv-wrap * { box-sizing: border-box; margin: 0; padding: 0; }
.pv-wrap {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--pv-bg-page);
    color: var(--pv-text-primary);
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
    padding-top: var(--pv-header-h);
    padding-bottom: var(--pv-bottom-h);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    font-size: 14px;
    line-height: 1.5;
}
.pv-wrap a { text-decoration: none; color: inherit; }
.pv-wrap img { max-width: 100%; display: block; }
.pv-wrap ul { list-style: none; }

/* --- Header (Sticky + Blur + 3D) --- */
.pv-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    height: var(--pv-header-h);
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0 var(--pv-spacing-lg);
    gap: var(--pv-spacing-sm);
    transition: box-shadow 0.3s, background 0.3s;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}
.pv-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    background: rgba(255,255,255,0.88);
}
.pv-header-logo {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
}
.pv-header-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.pv-search {
    flex: 1;
    position: relative;
}
.pv-search input {
    width: 100%;
    height: 40px;
    border: 1px solid rgba(0,0,0,0.04);
    background: var(--pv-bg-page);
    border-radius: var(--pv-radius-full);
    padding: 0 40px 0 16px;
    font-size: 14px;
    font-family: inherit;
    color: var(--pv-text-primary);
    outline: none;
    transition: all 0.25s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.04), inset 0 0 0 1px rgba(0,0,0,0.02);
}
.pv-search input:focus {
    background: #fff;
    border-color: var(--pv-primary);
    box-shadow: 0 0 0 3px rgba(66,164,235,0.15), inset 0 1px 2px rgba(0,0,0,0.02);
}
.pv-search input::placeholder { color: var(--pv-text-tertiary); }
.pv-search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--pv-text-tertiary);
    font-size: 22px;
    display: flex;
}
.pv-header-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--pv-radius-full);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--pv-text-primary);
    font-size: 24px;
    transition: background 0.2s;
}
.pv-header-btn:active {
    background: var(--pv-bg-page);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
}

/* --- Language Selector --- */
.pv-lang-box { position: relative; display: flex; align-items: center; margin-right: -8px; }
.pv-lang-sel { display: flex; align-items: center; gap: 2px; cursor: pointer; padding: 4px 2px; }
.pv-lang-sel img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.pv-lang-arrow { font-size: 10px; color: #999; }
.pv-lang-list {
    position: absolute; top: 100%; right: 0; background: #fff;
    border: 1px solid #e5e5e5; border-radius: 8px; min-width: 46px;
    padding: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.08); z-index: 9999; list-style: none;
}
.pv-lang-list li { display: flex; align-items: center; padding: 8px; border-radius: 6px; cursor: pointer; }
.pv-lang-list li img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.pv-lang-list li:hover { background: #f5f7fa; }

/* 구글 번역 바 숨김 */
.skiptranslate { display: none !important; }
body { top: 0px !important; }

/* --- Section Common --- */
.pv-section {
    padding: var(--pv-spacing-xl) 0;
}
.pv-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--pv-spacing-lg);
    margin-bottom: var(--pv-spacing-md);
}
.pv-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--pv-text-primary);
    text-shadow: 0 1px 0 rgba(255,255,255,0.8);
}
.pv-section-more {
    font-size: 13px;
    font-weight: 500;
    color: var(--pv-text-tertiary);
    display: flex;
    align-items: center;
    gap: 2px;
}
.pv-section-more .material-symbols-outlined { font-size: 16px; }

/* --- Fade-in Animation --- */
.pv-fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.pv-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Banner (Hero Slider) --- */
.pv-banner {
    padding: var(--pv-spacing-sm) var(--pv-spacing-lg) 0;
}
.pv-banner .swiper-slide {
    border-radius: var(--pv-radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 28px rgba(0,0,0,0.12), 0 3px 8px rgba(0,0,0,0.06);
}
.pv-banner .swiper-slide img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.pv-banner .swiper-pagination {
    bottom: 12px !important;
}
.pv-banner .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.5);
    opacity: 1;
}
.pv-banner .swiper-pagination-bullet-active {
    background: #fff;
    width: 18px;
    border-radius: 3px;
}
.pv-badge-premium {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--pv-primary-gradient);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--pv-radius-full);
    letter-spacing: 0.3px;
    box-shadow: 0 3px 10px rgba(66,164,235,0.35), inset 0 1px 0 rgba(255,255,255,0.3);
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

/* --- Category (Horizontal Scroll) --- */
.pv-category {
    padding: var(--pv-spacing-sm) 0;
}
.pv-category-list {
    display: flex;
    gap: 0;
    overflow-x: auto;
    padding: 0 var(--pv-spacing-lg);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.pv-category-list::-webkit-scrollbar { display: none; }
.pv-category-item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: calc(100% / 8);
    min-width: 56px;
}
.pv-category-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.pv-category-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--pv-radius-lg);
    background: linear-gradient(145deg, #f0f8ff, #daeeff);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 10px rgba(66,164,235,0.12), 0 1px 3px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.7);
}
.pv-category-icon:active {
    transform: scale(0.93) translateY(1px);
    box-shadow: 0 1px 4px rgba(66,164,235,0.08), inset 0 2px 4px rgba(0,0,0,0.04);
}
.pv-category-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}
.pv-category-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--pv-text-secondary);
    text-align: center;
    white-space: nowrap;
}

/* --- Item Card (2-Column Grid) --- */
.pv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--pv-spacing-sm);
    padding: 0 var(--pv-spacing-lg);
}
.pv-card {
    background: var(--pv-bg-card);
    border-radius: var(--pv-radius-lg);
    overflow: hidden;
    box-shadow: var(--pv-shadow-3d);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.6);
}
.pv-card:active {
    transform: scale(0.97) translateY(2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
}
.pv-card-img {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f0f0f0;
    box-shadow: inset 0 -2px 6px rgba(0,0,0,0.04);
}
.pv-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pv-card-body {
    padding: var(--pv-spacing-sm);
}
.pv-card-clinic {
    font-size: 11px;
    font-weight: 500;
    color: var(--pv-text-tertiary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pv-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--pv-text-primary);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.pv-card-location {
    font-size: 11px;
    color: var(--pv-text-tertiary);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pv-card-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--pv-primary);
}
.pv-card-price.inquiry {
    font-size: 13px;
    font-weight: 600;
}
.pv-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}
.pv-card-views {
    font-size: 11px;
    color: var(--pv-text-tertiary);
    display: flex;
    align-items: center;
    gap: 2px;
}
.pv-card-views .material-symbols-outlined { font-size: 14px; }
.pv-card-new {
    display: inline-block;
    background: linear-gradient(135deg, #FF4C4C, #FF6B6B);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: var(--pv-radius-full);
    box-shadow: 0 2px 6px rgba(255,76,76,0.3), inset 0 1px 0 rgba(255,255,255,0.25);
    text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

/* --- TV Section (Horizontal Scroll) --- */
.pv-tv-scroll {
    display: flex;
    gap: var(--pv-spacing-sm);
    overflow-x: auto;
    padding: 0 var(--pv-spacing-lg);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.pv-tv-scroll::-webkit-scrollbar { display: none; }
.pv-tv-card {
    flex-shrink: 0;
    width: 200px;
    cursor: pointer;
}
.pv-tv-thumb {
    position: relative;
    border-radius: var(--pv-radius-md);
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #000;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15), 0 2px 4px rgba(0,0,0,0.08);
}
.pv-tv-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pv-tv-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.15);
}
.pv-tv-play .material-symbols-outlined { font-size: 24px; }
.pv-tv-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}
.pv-tv-title {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--pv-text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

/* --- Best/Hotdeal Horizontal Scroll --- */
.pv-hscroll {
    display: flex;
    gap: var(--pv-spacing-sm);
    overflow-x: auto;
    padding: 0 var(--pv-spacing-lg);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.pv-hscroll::-webkit-scrollbar { display: none; }
.pv-hcard {
    flex-shrink: 0;
    width: 150px;
    background: var(--pv-bg-card);
    border-radius: var(--pv-radius-md);
    overflow: hidden;
    box-shadow: var(--pv-shadow-3d);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid rgba(255,255,255,0.6);
}
.pv-hcard:active {
    transform: scale(0.96) translateY(2px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.03);
}
.pv-hcard-img {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #f0f0f0;
}
.pv-hcard-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pv-hcard-rank {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    background: var(--pv-primary-gradient);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(66,164,235,0.35), inset 0 1px 0 rgba(255,255,255,0.25);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.pv-hcard-body {
    padding: 10px;
}
.pv-hcard-clinic {
    font-size: 11px;
    color: var(--pv-text-tertiary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pv-hcard-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--pv-text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    margin-bottom: 6px;
}
.pv-hcard-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--pv-primary);
}

/* --- Skeleton Loading --- */
.pv-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: pv-shimmer 1.5s infinite;
    border-radius: var(--pv-radius-sm);
}
@keyframes pv-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.pv-skeleton-card {
    background: var(--pv-bg-card);
    border-radius: var(--pv-radius-md);
    overflow: hidden;
}
.pv-skeleton-img {
    aspect-ratio: 1/1;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: pv-shimmer 1.5s infinite;
}
.pv-skeleton-text {
    height: 14px;
    margin: 10px;
    border-radius: 4px;
}
.pv-skeleton-text-sm {
    height: 12px;
    width: 60%;
    margin: 8px 10px;
    border-radius: 4px;
}

/* --- Bottom Navigation (공통 .fix-menu-wrap) --- */
.pv-wrap .fix-menu-wrap {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    height: var(--pv-bottom-h);
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-top: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 -6px 24px rgba(0,0,0,0.08), 0 -2px 6px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom, 0);
    transition: transform 0.3s ease;
    overflow: visible;
}
.pv-wrap .fix-menu-wrap.nav-hidden {
    transform: translateX(-50%) translateY(100%);
}
.pv-wrap .fix-menu-wrap a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex: 1;
    padding: 8px 0;
    transition: color 0.25s ease, transform 0.25s ease;
    color: var(--pv-text-tertiary);
    text-decoration: none;
    position: relative;
}
.pv-wrap .fix-menu-wrap a.active {
    color: var(--pv-primary);
    transform: translateY(-2px);
}
.pv-wrap .fix-menu-wrap a .material-symbols-outlined {
    font-size: 24px;
    transition: font-variation-settings 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    border-radius: 12px;
    padding: 2px 12px;
}
.pv-wrap .fix-menu-wrap a.active .material-symbols-outlined {
    font-variation-settings: 'FILL' 1;
    background: rgba(66,164,235,0.12);
    box-shadow: 0 2px 8px rgba(66,164,235,0.15);
}
.pv-wrap .fix-menu-wrap a span:last-child {
    font-size: 10px;
    font-weight: 500;
    transition: font-weight 0.25s ease;
}
.pv-wrap .fix-menu-wrap a.active span:last-child {
    font-weight: 700;
}

/* --- Divider --- */
.pv-divider {
    height: 8px;
    background: var(--pv-bg-page);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.03), inset 0 -1px 0 rgba(255,255,255,0.8);
}

/* --- Quick Banner (작은 배너) --- */
.pv-quick-banners {
    display: flex;
    gap: var(--pv-spacing-sm);
    padding: 0 var(--pv-spacing-lg);
    overflow-x: auto;
    scrollbar-width: none;
}
.pv-quick-banners::-webkit-scrollbar { display: none; }
.pv-quick-banner {
    flex-shrink: 0;
    width: calc(50% - 6px);
    border-radius: var(--pv-radius-md);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04);
    transition: transform 0.2s ease;
}
.pv-quick-banner:active {
    transform: scale(0.97) translateY(1px);
}
.pv-quick-banner img {
    width: 100%;
    aspect-ratio: 2.5/1;
    object-fit: cover;
}

/* --- Empty state --- */
.pv-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--pv-text-tertiary);
    font-size: 14px;
}

/* --- Preview Badge (floating) --- */
.pv-preview-badge {
    position: fixed;
    top: 70px;
    right: calc(50% - var(--pv-max-w)/2 + 12px);
    background: linear-gradient(135deg, #FF4C4C, #FF6B6B);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--pv-radius-full);
    z-index: 200;
    box-shadow: 0 4px 14px rgba(255,76,76,0.35), 0 2px 4px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.25);
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
@media (max-width: 600px) {
    .pv-preview-badge { right: 12px; }
}

/* --- Bottom content fade (above bottom nav) --- */
.pv-bottom-fade {
    position: fixed;
    bottom: var(--pv-bottom-h);
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    height: 32px;
    background: linear-gradient(to top, rgba(245,246,248,0.95) 0%, rgba(245,246,248,0) 100%);
    pointer-events: none;
    z-index: 99;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.pv-bottom-fade.nav-hidden {
    transform: translateX(-50%) translateY(100%);
    opacity: 0;
}

/* --- Web Left Sidebar (Desktop) --- */
/* Layout: sidebar(320px) + gap(50px) + content(600px) = 970px centered */
@media (min-width: 993px) {
    .pv-web-wrap {
        display: flex;
        justify-content: center;
        min-height: 100vh;
        background: #ECEEF1;
    }
    .pv-web-left {
        width: 320px;
        position: fixed;
        left: calc(50% - 485px);
        top: 0;
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 28px;
        overflow-y: auto;
        scrollbar-width: none;
    }
    .pv-web-left::-webkit-scrollbar { display: none; }
    .pv-web-left-inner {
        text-align: center;
    }
    .pv-web-left-logo {
        width: 80px;
        margin: 0 auto 16px;
    }
    .pv-web-left-sub {
        font-size: 14px;
        color: var(--pv-text-tertiary);
        margin-bottom: 4px;
    }
    .pv-web-left-title {
        font-size: 28px;
        font-weight: 700;
        color: var(--pv-text-primary);
        margin-bottom: 24px;
    }
    /* Sidebar banner links */
    .pv-web-left-banners {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 28px;
    }
    .pv-web-left-banners a {
        display: block;
        border-radius: var(--pv-radius-md);
        overflow: hidden;
        box-shadow: var(--pv-shadow-3d);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .pv-web-left-banners a:hover {
        transform: translateY(-2px);
        box-shadow: var(--pv-shadow-lg);
    }
    .pv-web-left-banners a:active {
        transform: translateY(1px);
        box-shadow: var(--pv-shadow-sm);
    }
    .pv-web-left-banners img {
        width: 100%;
        display: block;
    }
    /* QR Code box */
    .pv-web-left-qr {
        display: flex;
        align-items: center;
        gap: 14px;
        background: #fff;
        border-radius: var(--pv-radius-md);
        padding: 16px;
        margin-bottom: 16px;
        box-shadow: var(--pv-shadow-3d);
    }
    .pv-web-left-qr img {
        width: 56px;
        height: 56px;
        flex-shrink: 0;
    }
    .pv-web-left-qr-text {
        font-size: 14px;
        font-weight: 500;
        color: var(--pv-text-primary);
        line-height: 1.5;
    }
    .pv-web-left-qr-text .blue {
        color: var(--pv-primary);
        font-weight: 600;
    }
    .pv-web-left-qr-text .material-symbols-outlined {
        font-size: 16px;
        vertical-align: middle;
    }
    /* App download buttons */
    .pv-web-left-apps {
        display: flex;
        gap: 8px;
    }
    .pv-web-left-apps a {
        flex: 1;
        display: block;
        border-radius: var(--pv-radius-sm);
        overflow: hidden;
        box-shadow: var(--pv-shadow-sm);
        transition: transform 0.2s, box-shadow 0.2s;
    }
    .pv-web-left-apps a:hover {
        transform: translateY(-1px);
        box-shadow: var(--pv-shadow-md);
    }
    .pv-web-left-apps img {
        width: 100%;
        height: 40px;
        object-fit: contain;
        display: block;
    }
    /* Align header with content area (600px) */
    .pv-header {
        left: calc(50% - 115px);
        transform: none;
    }
    /* Align bottom nav with content area (600px) */
    .pv-wrap .fix-menu-wrap {
        left: calc(50% - 115px);
        transform: none;
    }
    .pv-wrap .fix-menu-wrap.nav-hidden {
        transform: translateY(100%);
    }
    /* Align bottom fade with content area (600px) */
    .pv-bottom-fade {
        left: calc(50% - 115px);
        transform: none;
    }
    /* Fix preview badge position on desktop */
    .pv-preview-badge {
        right: auto;
        left: calc(50% - 115px + 600px - 80px);
    }
    .pv-wrap {
        margin-left: calc(50% - 115px);
        box-shadow: 0 0 60px rgba(0,0,0,0.1), 0 0 20px rgba(0,0,0,0.04);
        border-left: 1px solid rgba(255,255,255,0.4);
        border-right: 1px solid rgba(255,255,255,0.4);
    }
}
@media (max-width: 992px) {
    .pv-web-left { display: none; }
}


/* ===========================================
   서브페이지 공통 스타일
   =========================================== */

/* --- Header: Back Mode --- */
.pv-header-title {
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--pv-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pv-btn-back {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--pv-text-primary);
    border-radius: var(--pv-radius-sm);
    transition: background 0.2s;
}
.pv-btn-back:active {
    background: rgba(0,0,0,0.05);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

/* --- Sub-page Container --- */
.pv-subpage {
    padding: var(--pv-spacing-xs) 0 var(--pv-spacing-md);
}
.pv-page-title {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--pv-text-primary);
    padding: var(--pv-spacing-lg) var(--pv-spacing-lg) var(--pv-spacing-sm);
    text-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.pv-content-section {
    padding: 0 var(--pv-spacing-lg);
}

/* --- Footer --- */
.pv-footer {
    margin-top: var(--pv-spacing-2xl);
    padding: 0 var(--pv-spacing-lg);
    padding-bottom: calc(var(--pv-bottom-h) + 40px);
}
.pv-footer-menu {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--pv-border);
    border-bottom: 1px solid var(--pv-border);
    padding: var(--pv-spacing-sm) 0;
}
.pv-footer-menu a {
    flex: 1;
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    color: var(--pv-text-secondary);
    text-decoration: none;
    padding: var(--pv-spacing-xs) 4px;
}
.pv-footer-menu a:first-child { border-right: 1px solid var(--pv-border); }
.pv-footer-menu a:nth-child(2) { border-right: 1px solid var(--pv-border); }
.pv-footer-menu a:nth-child(3) { border-right: 1px solid var(--pv-border); }
.pv-footer-info {
    padding: var(--pv-spacing-md) 0 var(--pv-spacing-2xl);
    color: var(--pv-text-tertiary);
    font-size: 11px;
    line-height: 1.7;
}
.pv-footer-info a {
    color: var(--pv-text-tertiary);
    text-decoration: none;
}
.pv-footer-copy {
    margin-top: var(--pv-spacing-sm);
    font-size: 10px;
    color: #bbb;
}

/* --- TOP Button --- */
.pv-top-btn {
    position: fixed;
    bottom: calc(var(--pv-bottom-h) + 20px + env(safe-area-inset-bottom));
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--pv-primary);
    color: #fff;
    border-radius: var(--pv-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 90;
    box-shadow: var(--pv-shadow-3d);
}
.pv-top-btn.visible {
    opacity: 1;
    transform: translateY(0);
}
.pv-top-btn.nav-hidden {
    opacity: 0 !important;
    transform: translateY(60px) !important;
    pointer-events: none;
}
.pv-top-btn:active {
    transform: scale(0.92);
}
.pv-top-btn .material-symbols-outlined {
    font-size: 20px;
}
@media (min-width: 993px) {
    .pv-top-btn {
        right: calc(50% - 115px + 600px + 20px);
    }
}

/* ===========================================
   GNB 사이드 메뉴
   =========================================== */

/* 기본: 숨김 (GNB 사이드메뉴만, 하단네비 제외) */
.pv-wrap nav:not(.pv-bottom-nav) {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 360px;
    height: 100%;
    background: #fff;
    z-index: 10000;
    display: none;
    box-shadow: -4px 0 24px rgba(0,0,0,0.15);
    overflow: hidden;
}
.pv-wrap nav:not(.pv-bottom-nav).active {
    display: block;
}

/* GNB 내부 배경 (미사용 요소 숨김) */
.pv-wrap nav > .bg {
    display: none;
}

/* GNB 헤더 */
.pv-wrap nav .header {
    border-bottom: 1px solid var(--pv-border);
}
.pv-wrap nav .header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 20px;
}
.pv-wrap nav .btn-back {
    position: relative;
    top: auto;
    left: auto;
    background: none;
    border: none;
    width: auto;
    height: auto;
    cursor: pointer;
    color: var(--pv-text-primary);
    padding: 4px;
    border-radius: var(--pv-radius-sm);
}
.pv-wrap nav .btn-back:active {
    background: rgba(0,0,0,0.05);
}
.pv-wrap nav .btn-back span {
    display: block;
    font-size: 24px;
}

/* 로그인/로그아웃 영역 */
.pv-wrap nav .login-area {
    display: flex;
    align-items: center;
    gap: 12px;
}
.pv-wrap nav .login-area .myinfo p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--pv-text-primary);
}
.pv-wrap nav .login-area .myinfo p span {
    font-weight: 700;
    color: var(--pv-primary);
}
.pv-wrap nav .logout-area .btn-wrap {
    display: flex;
    gap: 8px;
}

/* GNB 버튼 공통 */
.pv-wrap nav .btn {
    display: inline-block;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}
.pv-wrap nav .btn-s {
    padding: 6px 16px;
}
.pv-wrap nav .btn-primary {
    background: var(--pv-primary);
    color: #fff;
}
.pv-wrap nav .btn-pill {
    border-radius: var(--pv-radius-full);
}
.pv-wrap nav .btn-primary:active {
    background: var(--pv-primary-dark);
    transform: scale(0.97);
}

/* 네비게이션 콘텐츠 (스크롤 가능) */
.pv-wrap nav .nav-con {
    position: absolute;
    left: 0;
    right: 0;
    top: 57px;
    bottom: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* 상단 메뉴 (핫딜, 베스트, 기획전) */
.pv-wrap nav .menu-top {
    background: var(--pv-primary-light);
    padding: 20px;
}
.pv-wrap nav .menu-top ul {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.pv-wrap nav .menu-top ul li {
    flex: 1;
}
.pv-wrap nav .menu-top ul li a {
    display: block;
    text-align: center;
    height: 40px;
    line-height: 40px;
    background: #fff;
    border: 1px solid var(--pv-primary);
    color: var(--pv-primary);
    border-radius: var(--pv-radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.pv-wrap nav .menu-top ul li a:active {
    background: var(--pv-primary);
    color: #fff;
    transform: scale(0.97);
}

/* 메뉴 래퍼 */
.pv-wrap nav .menu-wrap {
    overflow-x: hidden;
    padding-bottom: 40px;
}
.pv-wrap nav .menu-wrap h2 {
    font-size: 13px;
    font-weight: 700;
    color: var(--pv-text-secondary);
    padding: 20px 20px 8px;
    margin: 0;
    border-top: 1px solid var(--pv-border);
}
.pv-wrap nav .menu-wrap h2:first-child {
    border-top: none;
}
.pv-wrap nav .menu-wrap .menu-box {
    padding: 0 20px;
}
.pv-wrap nav .menu-wrap ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.pv-wrap nav .menu-wrap ul li {
    width: calc(50% - 4px);
}
.pv-wrap nav .menu-wrap ul li .inner {
    /* no extra padding needed */
}
.pv-wrap nav .menu-wrap ul li a {
    display: block;
    width: 100%;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border: 1px solid var(--pv-border);
    border-radius: var(--pv-radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--pv-text-primary);
    text-decoration: none;
    background: #fff;
    transition: all 0.2s;
    box-sizing: border-box;
}
.pv-wrap nav .menu-wrap ul li a:active {
    background: var(--pv-primary-light);
    border-color: var(--pv-primary);
    color: var(--pv-primary);
    transform: scale(0.97);
}

/* 스크롤 잠금 */
html.not-scroll,
body.not-scroll {
    overflow: hidden !important;
    height: 100%;
}

/* GNB 오버레이 */
.pv-wrap .md_overlay_gnb {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}
.pv-wrap .md_overlay_gnb.active {
    visibility: visible;
    opacity: 1;
}

/* Desktop GNB 위치 보정 */
@media (min-width: 993px) {
    .pv-wrap nav:not(.pv-bottom-nav) {
        max-width: min(85%, 360px);
    }
    .pv-wrap .md_overlay_gnb {
        max-width: 600px;
        left: auto;
        right: auto;
    }
}

/* ===========================================
   아이템 리스트 (베스트/핫딜 공통)
   - AJAX가 반환하는 기존 .item HTML을 .pv-wrap 안에서 모던 스타일 적용
   =========================================== */

/* 아이템 목록 래퍼 */
.pv-wrap .item-list-wrap,
.pv-wrap .best-area {
    padding: 4px 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* 개별 아이템 카드 — 3D 카드 스타일 */
.pv-wrap .item {
    display: flex !important;
    align-items: flex-start;
    gap: var(--pv-spacing-sm);
    padding: 10px;
    border-bottom: none !important;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    float: none !important;
    height: auto !important;
    border-top: none !important;
    background: var(--pv-bg-card);
    border-radius: var(--pv-radius-md);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.9);
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
}
.pv-wrap .item::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8) 30%, rgba(255,255,255,0.8) 70%, transparent);
    pointer-events: none;
}
.pv-wrap .item:last-of-type {
    border-bottom: none !important;
}
.pv-wrap .item:active {
    transform: scale(0.985);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.6);
}

/* 썸네일 */
.pv-wrap .item .thumb {
    width: 110px;
    min-width: 110px;
    height: 110px;
    border-radius: var(--pv-radius-md) !important;
    overflow: hidden;
    position: relative;
    float: none !important;
    border: 1px solid rgba(255,255,255,0.7) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.9);
}
.pv-wrap .item .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Premium 뱃지 */
.pv-wrap .item .thumb .tag-ad {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--pv-primary-gradient);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--pv-radius-full);
    box-shadow: 0 3px 8px rgba(66,164,235,0.35), inset 0 1px 0 rgba(255,255,255,0.3);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.2);
}

/* 정보 영역 */
.pv-wrap .item .info {
    flex: 1;
    min-width: 0;
    margin-left: 0 !important;
    padding: 2px 0 !important;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.pv-wrap .item .info .location {
    font-size: 12px;
    color: var(--pv-text-tertiary);
    font-weight: 400;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}
.pv-wrap .item .info .location .loca-station {
    color: var(--pv-text-tertiary);
    font-size: 11px;
}
.pv-wrap .item .info .location .loca-name {
    color: var(--pv-text-secondary);
    font-weight: 500;
    font-size: 12px;
}
.pv-wrap .item .info .title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--pv-text-primary) !important;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: auto !important;
}
.pv-wrap .item .info .summary {
    font-size: 12px;
    color: var(--pv-text-tertiary);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pv-wrap .item .info .info-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    border-top: none !important;
    padding-top: 0 !important;
}
.pv-wrap .item .info .people-num {
    font-size: 12px;
    color: var(--pv-text-tertiary);
    display: flex;
    align-items: center;
    gap: 4px;
}
.pv-wrap .item .info .people-num .click-item {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.pv-wrap .item .info .people-num .click-item img {
    width: 8px;
}
.pv-wrap .item .info .tag-new {
    display: inline-block;
    background: linear-gradient(135deg, #FF4C4C, #FF6B6B);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: var(--pv-radius-full);
    margin-right: 2px;
    box-shadow: 0 2px 4px rgba(255,76,76,0.3);
    text-shadow: 0 1px 1px rgba(0,0,0,0.15);
}
.pv-wrap .item .info .price {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--pv-primary) !important;
    white-space: nowrap;
}
.pv-wrap .item .info .price span {
    font-size: 15px !important;
}

/* 아이템-구매 / 아이템-상담 구분 */
.pv-wrap .item.item-con .price { color: var(--pv-primary) !important; }
.pv-wrap .item.item-buy .price { color: var(--pv-text-primary) !important; }

/* 베스트 순위 뱃지 (기존 이미지 기반 뱃지 덮어쓰기) */
.pv-wrap .best-area .item:nth-child(1)::before,
.pv-wrap .best-area .item:nth-child(2)::before,
.pv-wrap .best-area .item:nth-child(3)::before {
    display: none !important;
}

/* 더보기 버튼 */
.pv-wrap .btn-more {
    display: block !important;
    width: 100%;
    max-width: 300px;
    margin: var(--pv-spacing-lg) auto;
    padding: var(--pv-spacing-sm) var(--pv-spacing-lg);
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--pv-primary);
    background: linear-gradient(180deg, #FFFFFF, #F8FBFF);
    border: 1.5px solid rgba(66,164,235,0.3);
    border-radius: var(--pv-radius-full);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 3px 10px rgba(66,164,235,0.12), 0 1px 3px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.9);
}
.pv-wrap .btn-more:active {
    transform: scale(0.97);
    background: var(--pv-primary-light);
    box-shadow: 0 1px 4px rgba(66,164,235,0.15), inset 0 1px 2px rgba(0,0,0,0.04);
}

/* 빈 영역 아이템 간격 */
.pv-wrap .hotdeal-wrap {
    border: none !important;
}
.pv-wrap .hotdeal-wrap .item {
    height: auto !important;
    border-top: none !important;
}

/* 페이지 제목 */
.pv-wrap .content-title {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--pv-text-primary);
    padding: var(--pv-spacing-lg) var(--pv-spacing-lg) var(--pv-spacing-xs);
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

/* ===========================================
   카테고리 필터 바 (핫딜) — 메인페이지 .pv-category 완전 동일
   =========================================== */

/* .pv-category 와 동일 */
.pv-wrap .hotdeal-category {
    padding: var(--pv-spacing-sm) 0;
}
/* .category-wrap, .container 리셋 */
.pv-wrap .category-wrap {
    padding: 0;
}
.pv-wrap .category-wrap .container {
    padding: 0;
}
/* .pv-category-list 와 동일 */
.pv-wrap .category-wrap ul {
    display: flex;
    gap: 0;
    list-style: none;
    padding: 0 var(--pv-spacing-lg);
    margin: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.pv-wrap .category-wrap ul::-webkit-scrollbar { display: none; }
/* .pv-category-item 와 동일 */
.pv-wrap .category-wrap ul li {
    flex-shrink: 0;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: calc(100% / 8);
    min-width: 56px;
    padding: 0;
    cursor: pointer;
    border: none !important;
    background: transparent !important;
    height: auto !important;
}
.pv-wrap .category-wrap ul li.active {
    background: var(--pv-primary-light) !important;
    border-radius: var(--pv-radius-md);
}
/* .pv-category-item a 와 동일 */
.pv-wrap .category-wrap ul li .inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    line-height: normal;
}
/* .pv-category-icon 와 동일 + 질감 */
.pv-wrap .category-wrap ul li img {
    width: 52px;
    height: 52px;
    border-radius: var(--pv-radius-lg);
    padding: 11px;
    background:
        repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(255,255,255,0.15) 2px, rgba(255,255,255,0.15) 4px),
        linear-gradient(145deg, #f0f8ff, #daeeff);
    box-shadow: 0 4px 10px rgba(66,164,235,0.12), 0 1px 3px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.9), inset 0 -1px 2px rgba(0,0,0,0.03);
    border: 1px solid rgba(255,255,255,0.7);
    transition: transform 0.2s, box-shadow 0.2s;
    object-fit: contain;
}
.pv-wrap .category-wrap ul li:active img {
    transform: scale(0.93) translateY(1px);
    box-shadow: 0 1px 4px rgba(66,164,235,0.08), inset 0 2px 4px rgba(0,0,0,0.04);
}
.pv-wrap .category-wrap ul li.active img {
    box-shadow: 0 4px 14px rgba(66,164,235,0.3), 0 1px 3px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.9);
    transform: scale(1.05);
}
/* .pv-category-name 와 동일 */
.pv-wrap .category-wrap ul li .text {
    font-size: 12px;
    font-weight: 500;
    color: var(--pv-text-secondary);
    text-align: center;
    white-space: nowrap;
    margin: 0;
    line-height: 1.3;
}
/* .inner 안의 span (이미지 래퍼) 스타일 리셋 */
.pv-wrap .category-wrap ul li span.inner {
    font-size: inherit;
    color: inherit;
    margin: 0;
}
.pv-wrap .category-wrap ul li.active .text {
    color: var(--pv-primary);
    font-weight: 600;
}

/* 2차 카테고리 (서브 네비게이션 — 필/칩 스타일) */
.pv-wrap .category-menu-wrap {
    padding: 12px var(--pv-spacing-lg);
    margin-top: var(--pv-spacing-sm);
    background: var(--pv-bg-card);
    border-top: 1px solid var(--pv-border);
    border-bottom: 1px solid var(--pv-border);
}
.pv-wrap .swiper-container_fop_fix_menu2 {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    white-space: nowrap;
    padding: 2px 0;
}
.pv-wrap .swiper-container_fop_fix_menu2::-webkit-scrollbar { display: none; }
.pv-wrap .category-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    border-radius: var(--pv-radius-full);
    background: var(--pv-bg-page);
    border: 1px solid var(--pv-border);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.pv-wrap .category-item span {
    font-size: 13px;
    font-weight: 500;
    color: var(--pv-text-secondary);
    white-space: nowrap;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
}
.pv-wrap .category-item.active {
    background: var(--pv-primary);
    border-color: var(--pv-primary);
}
.pv-wrap .category-item.active span {
    color: #fff;
    font-weight: 600;
}
.pv-wrap .category-item:active {
    transform: scale(0.96);
}

/* ===========================================
   병원 검색
   =========================================== */

.pv-wrap .hos-wrap {
    padding: 0;
}
.pv-wrap .search-box {
    padding: var(--pv-spacing-sm) var(--pv-spacing-lg) var(--pv-spacing-md);
    background: var(--pv-bg-card);
}
.pv-wrap .search-box .title {
    font-size: 18px;
    font-weight: 700;
    color: var(--pv-text-primary);
    padding: var(--pv-spacing-sm) 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.pv-wrap .hos-search {
    display: flex;
    gap: var(--pv-spacing-xs);
    align-items: center;
}
.pv-wrap .hos-search button[name="_srch_type"] {
    min-width: 90px;
    height: 42px;
    background: var(--pv-bg-card);
    border: 1.5px solid var(--pv-border);
    border-radius: var(--pv-radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--pv-text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    padding: 0 12px;
}
.pv-wrap .hos-search button[name="_srch_type"]:active {
    background: var(--pv-primary-light);
    border-color: var(--pv-primary);
    color: var(--pv-primary);
}
.pv-wrap .hos-search .input-box {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 0 !important;
    width: auto !important;
}
.pv-wrap .hos-search .input-box input[type="text"] {
    width: 100%;
    height: 44px;
    border: 1.5px solid #e4e7ec;
    border-radius: var(--pv-radius-md);
    padding: 0 44px 0 16px;
    font-size: 14px;
    color: var(--pv-text-primary);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.25s;
    font-family: inherit;
    background: linear-gradient(180deg, #fff, #fcfcfd);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04), inset 0 1px 2px rgba(0,0,0,0.02);
}
.pv-wrap .hos-search .input-box input[type="text"]:focus {
    border-color: var(--pv-primary);
    box-shadow: 0 0 0 3px rgba(66,164,235,0.12), 0 2px 8px rgba(66,164,235,0.08);
    background: #fff;
}
.pv-wrap .hos-search .input-box .btn-search {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    text-decoration: none;
    width: 34px; height: 34px;
    background: var(--pv-primary-gradient);
    border-radius: var(--pv-radius-sm);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(66,164,235,0.25);
    transition: transform 0.15s, box-shadow 0.15s;
}
.pv-wrap .hos-search .input-box .btn-search:active {
    transform: translateY(-50%) scale(0.93);
    box-shadow: 0 1px 3px rgba(66,164,235,0.2);
}
/* 병원명 자동완성 */
.hos-autocomplete {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 100;
    background: #fff; border: 1px solid var(--pv-border); border-top: none;
    border-radius: 0 0 var(--pv-radius-sm) var(--pv-radius-sm);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none; max-height: 200px; overflow-y: auto;
}
.hos-autocomplete li {
    padding: 10px 14px; font-size: 13px; color: var(--pv-text-primary);
    cursor: pointer; border-bottom: 1px solid #f5f5f5;
}
.hos-autocomplete li:last-child { border-bottom: none; }
.hos-autocomplete li:active,
.hos-autocomplete li.ac-active { background: #f0f7fd; }
.hos-autocomplete li em {
    font-style: normal; color: var(--pv-primary); font-weight: 700;
}

/* ===========================================
   지역 인라인 칩 필터 (병원검색)
   =========================================== */
.hos-region-filter {
    padding: 0 0 var(--pv-spacing-sm);
}
.hos-sido-chips,
.hos-gugun-chips {
    display: flex; gap: 6px; flex-wrap: wrap;
    padding: 4px var(--pv-spacing-lg);
}
.hos-gugun-chips {
    padding-top: 0;
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height 0.4s ease, opacity 0.25s ease, padding 0.3s ease, margin 0.3s ease;
    padding-bottom: 0;
    margin: 0 10px;
    background: #f4f6f9;
    border-radius: 10px;
    border-left: 3px solid var(--pv-primary);
}
.hos-gugun-chips.show {
    max-height: 400px; opacity: 1;
    padding: 10px 12px;
    margin: 6px 10px 2px;
    overflow: visible;
}
.hos-gugun-chips .hos-chip {
    font-size: 12px;
    padding: 5px 11px;
    background: #fff;
    border-color: #dde1e6;
    color: #555;
}
.hos-gugun-chips .hos-chip.checked {
    background: var(--pv-primary);
    border-color: var(--pv-primary-dark);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(66,164,235,0.25);
}
.hos-gugun-label {
    display: none;
    font-size: 11px; font-weight: 600; color: var(--pv-primary);
    padding-bottom: 6px;
    width: 100%;
    letter-spacing: 0.02em;
}
.hos-gugun-chips.show .hos-gugun-label {
    display: block;
}
.hos-chip {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 7px 15px; border-radius: var(--pv-radius-full);
    background: linear-gradient(180deg, #fff, #f7f8fa);
    border: 1px solid #e8eaee;
    cursor: pointer; transition: all 0.2s; flex-shrink: 0;
    font-size: 13px; font-weight: 500; color: var(--pv-text-secondary);
    white-space: nowrap; font-family: inherit; line-height: 1.3;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.8);
    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}
.hos-chip:active { transform: scale(0.95); box-shadow: inset 0 1px 3px rgba(0,0,0,0.08); }
.hos-chip.active {
    background: var(--pv-primary-gradient); border-color: var(--pv-primary-dark);
    color: #fff; font-weight: 600;
    box-shadow: 0 2px 8px rgba(66,164,235,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.hos-chip.checked {
    background: linear-gradient(180deg, #f0f8ff, #e4f1fd);
    border-color: rgba(66,164,235,0.4); color: var(--pv-primary); font-weight: 600;
    box-shadow: 0 1px 4px rgba(66,164,235,0.12), inset 0 1px 0 rgba(255,255,255,0.9);
}
.hos-selected-tags {
    display: flex; gap: 6px; padding: 6px var(--pv-spacing-lg) 0; flex-wrap: wrap;
}
.hos-selected-tags:empty { display: none; }
.hos-tag {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; border-radius: var(--pv-radius-full);
    background: linear-gradient(135deg, #eaf4ff, #ddeeff);
    color: var(--pv-primary); border: 1px solid rgba(66,164,235,0.15);
    font-size: 12px; font-weight: 600; line-height: 1.3;
    box-shadow: 0 1px 3px rgba(66,164,235,0.1);
}
.hos-tag .tag-remove {
    display: inline-flex; align-items: center; justify-content: center;
    width: 16px; height: 16px; border-radius: 50%;
    background: rgba(66,164,235,0.15); cursor: pointer; font-size: 10px;
    transition: all 0.15s;
}
.hos-tag .tag-remove:active { background: rgba(66,164,235,0.35); transform: scale(0.9); }

/* ===========================================
   병원검색 페이지 전용 (hospital_list)
   =========================================== */
/* 레이아웃 여백 최소화 */
.pv-subpage:has(.hos-region-filter) { padding-top: 2px; }
.pv-subpage:has(.hos-region-filter) > .search-box {
    padding: 0 0 8px;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    border-bottom: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    position: relative; z-index: 2;
}
.pv-subpage:has(.hos-region-filter) > .search-box .title {
    padding: 8px var(--pv-spacing-sm) 4px var(--pv-spacing-lg); font-size: 17px;
    background: linear-gradient(135deg, var(--pv-text-primary), #333);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.pv-subpage:has(.hos-region-filter) .hos-search {
    padding: 0 var(--pv-spacing-sm);
}
.pv-subpage:has(.hos-region-filter) .item-list-wrap {
    padding: 0 var(--pv-spacing-sm);
    background: var(--pv-bg-card);
    border-radius: var(--pv-radius-lg) var(--pv-radius-lg) 0 0;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.03);
    margin-top: 6px;
    position: relative;
}
/* 결과 헤더 */
.pv-wrap .list-result {
    font-size: 13px; color: var(--pv-text-secondary); padding: var(--pv-spacing-sm) 2px 6px;
    line-height: 1.5;
    border-bottom: 1px solid var(--pv-border);
}
.pv-wrap .list-result .font-600,
.pv-wrap .font-600 { font-weight: 600; }
.pv-wrap .list-result .font-600 { color: var(--pv-primary); }
/* 병원 카드 */
.pv-wrap .item.item-hospital {
    gap: var(--pv-spacing-sm); padding: var(--pv-spacing-sm) 6px;
    border-bottom: 1px solid #f5f5f5;
    border-radius: var(--pv-radius-sm);
    margin: 0 -6px;
    align-items: center !important;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.pv-wrap .item.item-hospital:active {
    background: linear-gradient(135deg, rgba(66,164,235,0.03), rgba(66,164,235,0.06)) !important;
    transform: scale(0.985);
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.04);
}
/* 썸네일 */
.pv-wrap .item.item-hospital .thumb {
    width: 88px; min-width: 88px; height: 88px;
    border-radius: var(--pv-radius-md) !important;
    background: linear-gradient(145deg, #f8fbff, #edf2f7);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    box-shadow:
        0 3px 10px rgba(0,0,0,0.07),
        0 1px 3px rgba(0,0,0,0.05),
        inset 0 1px 0 rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.7) !important;
    position: relative;
    flex-shrink: 0;
}
.pv-wrap .item.item-hospital .thumb::after {
    content: ''; position: absolute; inset: 0;
    border-radius: var(--pv-radius-md);
    box-shadow: inset 0 -1px 3px rgba(0,0,0,0.06);
    pointer-events: none;
}
.pv-wrap .item.item-hospital .thumb img {
    width: 100%; height: 100%; object-fit: cover;
    border-radius: calc(var(--pv-radius-md) - 1px);
    display: block;
}
/* 정보 영역 */
.pv-wrap .item.item-hospital .info {
    gap: 3px; padding: 2px 0 !important;
}
.pv-wrap .item.item-hospital .info .title {
    font-size: 15px !important; font-weight: 700 !important;
    -webkit-line-clamp: 1; line-height: 1.35;
    color: var(--pv-text-primary) !important;
    letter-spacing: -0.2px;
}
.pv-wrap .item.item-hospital .info .address {
    font-size: 12px; color: var(--pv-text-tertiary);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    display: flex; align-items: center; gap: 3px;
}
.pv-wrap .item.item-hospital .info .diagnosis {
    font-size: 12px; color: var(--pv-text-secondary);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    padding: 2px 0 1px;
    font-weight: 400;
}
/* 병원 카드 하단 (이벤트/후기/유튜브) */
.pv-wrap .item.item-hospital .hos-footer {
    padding-top: 5px; margin-top: auto;
}
.pv-wrap .item.item-hospital .hos-footer ul {
    display: flex; align-items: center; gap: 0; list-style: none;
    margin: 0; padding: 4px 8px;
    background: linear-gradient(135deg, #f7fafd, #f0f5fa);
    border-radius: var(--pv-radius-sm);
    border: 1px solid rgba(66,164,235,0.08);
}
.pv-wrap .item.item-hospital .hos-footer ul li {
    display: inline-flex; align-items: center; gap: 2px;
    font-size: 11px; color: var(--pv-text-secondary); cursor: pointer;
    padding: 0; font-weight: 500;
}
.pv-wrap .item.item-hospital .hos-footer ul li .material-symbols-outlined {
    font-size: 13px; color: var(--pv-primary); opacity: 0.7;
}
.pv-wrap .item.item-hospital .hos-footer ul li span:not(.material-symbols-outlined) {
    color: var(--pv-primary); font-weight: 700;
}
.pv-wrap .item.item-hospital .hos-footer ul li p {
    margin: 0 5px; color: #d8dde3; font-size: 10px;
}

/* ===========================================
   지역선택 팝업 (병원검색)
   =========================================== */
.pop_overlay {
    display: none; width: 100%; height: 100%; position: fixed; left: 0; top: 0;
    background: rgba(0, 0, 0, 0); z-index: 9999;
    -webkit-transition: background 0.3s ease; transition: background 0.3s ease;
}
.pop_overlay.active { background: rgba(0, 0, 0, 0.5); }
.hos_local_select_pop {
    display: none; position: fixed; bottom: 0; left: 0; right: 0; margin: 0 auto;
    z-index: 10000; width: 100%; max-width: 600px; background: #fff;
    border-top-left-radius: 20px; border-top-right-radius: 20px;
    -webkit-transform: translateY(100%); transform: translateY(100%);
    -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: 0 -8px 32px rgba(0,0,0,0.15);
    max-height: 85vh; overflow: hidden; padding-bottom: 0;
}
.hos_local_select_pop.active { -webkit-transform: translateY(0); transform: translateY(0); }
/* 팝업 핸들 */
.pop-handle { text-align: center; padding: 10px 0 4px; cursor: grab; }
.pop-handle span {
    display: inline-block; width: 36px; height: 4px;
    background: #D5D5D5; border-radius: 2px;
}
/* 팝업 헤더 */
.pop-header {
    display: -webkit-flex; display: flex; align-items: center; justify-content: space-between;
    padding: var(--pv-spacing-md) var(--pv-spacing-lg);
    border-bottom: 1px solid #F0F0F0;
}
.pop-header .pop-title {
    font-size: 18px; font-weight: 700; color: #222; margin: 0; line-height: 1;
}
.pop-header .pop-close {
    width: 32px; height: 32px; border: none; background: none; padding: 0; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.pop-header .pop-close .material-symbols-outlined { font-size: 22px; color: #888; }
/* 시도/구군 영역 */
.hos_local_select_box {
    display: flex; width: 100%; background: #fff;
    flex: 1; min-height: 0; overflow: hidden;
}
.hos_local_one_list {
    width: 90px; min-width: 90px; border-right: 1px solid #F0F0F0;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    background: #FAFAFA;
}
.hos_local_one_list > ul { list-style: none; margin: 0; padding: 4px 0; }
.hos_local_one_list > ul > li > a {
    display: block; width: 100%; font-weight: 600; font-size: 14px;
    padding: 13px 0; text-align: center; color: #666;
    border-left: 3px solid transparent; cursor: pointer; line-height: 1.2;
    transition: all 0.15s ease;
}
.hos_local_one_list > ul > li > a.local_on {
    color: var(--pv-primary) !important; background: #fff; font-weight: 700;
    border-left-color: var(--pv-primary);
}
.hos_local_one_list > ul > li > a:active { background: #F0F4F8; }
/* 구군 리스트 */
.hos_local_two_list {
    width: calc(100% - 90px); overflow-y: auto;
    -webkit-overflow-scrolling: touch; padding: 12px;
}
.hos_local_two_list > h1 { display: none; }
.hos_local_two_list ul {
    margin: -4px; display: flex; flex-wrap: wrap; list-style: none; padding: 0;
}
.hos_local_two_list ul li { width: 50%; padding: 4px; box-sizing: border-box; }
.hos_local_two_list .chk_custom { position: relative; }
.hos_local_two_list .chk_custom > label > span { display: none; }
.hos_local_two_list .chk_custom > label > p { margin-left: 0; }
.hos_local_two_list .chk_custom input[type="checkbox"] { display: none; }
.hos_local_two_list .btn-region {
    width: 100%; border-radius: var(--pv-radius-sm); font-size: 13px; color: #555;
    border: 1px solid #E8E8E8; height: 38px; line-height: 38px;
    text-align: center; font-weight: 600; cursor: pointer;
    transition: all 0.15s ease; background: #fff;
}
.hos_local_two_list .btn-region:active { background: #F5F5F5; }
.hos_local_two_list .chk_custom input[type="checkbox"]:checked + label .btn-region {
    color: var(--pv-primary); background: #EFF7FD; border: 1.5px solid var(--pv-primary);
}
/* 하단 버튼 */
.hos_local_btn {
    background: #fff; z-index: 9; padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #F0F0F0;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
}
.hos_local_btn > button {
    display: block; width: 100%; height: 48px; border-radius: var(--pv-radius-md);
    font-weight: 700; font-size: 15px; color: #fff; border: none;
    background: var(--pv-primary-gradient);
    cursor: pointer; box-shadow: 0 4px 12px rgba(66,164,235,0.3);
}
.hos_local_btn > button:active { opacity: 0.85; }
.btn-filter-text { display: inline; }
.btn-filter-count {
    display: inline-block; margin-left: 6px; background: rgba(255,255,255,0.25);
    padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 600;
}

/* ===========================================
   상품 상세 페이지
   =========================================== */

/* 히어로 이미지 */
.pv-wrap .product-detail-wrap .sub-visual {
    margin: 0;
}
.pv-wrap .product-detail-wrap .sub-visual img {
    width: 100%;
    height: auto;
    display: block;
}
.pv-wrap .product-detail-wrap .product-img {
    position: relative;
}
.pv-wrap .product-detail-wrap .product-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* 병원 운영 알림 배너 */
.pv-wrap .product-detail-wrap .img-notice {
    background: var(--pv-primary-gradient);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: var(--pv-spacing-xs) var(--pv-spacing-lg);
    text-align: center;
}

/* 상품 정보 */
.pv-wrap .product-info-wrap {
    padding: var(--pv-spacing-lg) 0 var(--pv-spacing-md);
}
.pv-wrap .product-info-wrap .container {
    padding: 0 var(--pv-spacing-lg);
}
.pv-wrap .product-info-wrap .location {
    font-size: 13px;
    color: var(--pv-text-tertiary);
    margin-bottom: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.pv-wrap .product-info-wrap .title {
    font-size: 20px;
    font-weight: 700;
    color: var(--pv-text-primary);
    line-height: 1.35;
    margin-bottom: 6px;
}
.pv-wrap .product-info-wrap .summary {
    font-size: 13px;
    color: var(--pv-text-secondary);
    margin-bottom: var(--pv-spacing-sm);
}
.pv-wrap .product-info-wrap .price {
    margin: var(--pv-spacing-sm) 0;
}
.pv-wrap .product-info-wrap .price .price-01 {
    font-size: 14px;
    color: var(--pv-text-tertiary);
    text-decoration: line-through;
}
.pv-wrap .product-info-wrap .price .price-02 {
    font-size: 22px;
    font-weight: 700;
    color: var(--pv-primary);
}
.pv-wrap .product-info-wrap .price .pink {
    color: #FF4C95;
}

/* 통계 영역 */
.pv-wrap .product-data {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--pv-spacing-sm) 0;
    border-top: 1px solid var(--pv-border);
    margin-top: var(--pv-spacing-xs);
}
.pv-wrap .product-data .people-num {
    font-size: 13px;
    color: var(--pv-text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}
.pv-wrap .product-data .tag-new {
    background: linear-gradient(135deg, #FF4C4C, #FF6B6B);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: var(--pv-radius-full);
    box-shadow: 0 2px 4px rgba(255,76,76,0.3);
}
.pv-wrap .product-data .date {
    font-size: 12px;
    color: var(--pv-text-tertiary);
}

/* 공유/찜 버튼 */
.pv-wrap .product-btn-wrap {
    display: flex;
    gap: var(--pv-spacing-sm);
    margin-top: var(--pv-spacing-sm);
}
.pv-wrap .product-btn-wrap > div {
    flex: 1;
}
.pv-wrap .product-btn-wrap .btn-product-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 42px;
    border: 1.5px solid var(--pv-border);
    border-radius: var(--pv-radius-sm);
    background: var(--pv-bg-card);
    font-size: 13px;
    font-weight: 500;
    color: var(--pv-text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    box-shadow: var(--pv-shadow-sm);
}
.pv-wrap .product-btn-wrap .btn-product-link:active {
    transform: scale(0.97);
    background: var(--pv-primary-light);
}
.pv-wrap .product-btn-wrap .zzim-l.active {
    border-color: var(--pv-primary);
    color: var(--pv-primary);
    background: var(--pv-primary-light);
}

/* 탭 부모: absolute/sticky 기준 */
.pv-wrap .page-detail {
    position: relative;
}

/* 탭 네비게이션 */
.pv-wrap .tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--pv-bg-card);
    border-bottom: 2px solid var(--pv-border);
    position: sticky;
    top: var(--pv-header-h);
    z-index: 5;
}
.pv-wrap .tabs li {
    flex: 1;
    text-align: center;
    padding: var(--pv-spacing-sm) 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--pv-text-tertiary);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}
.pv-wrap .tabs li.active,
.pv-wrap .tabs li:hover {
    color: var(--pv-primary);
    border-bottom-color: var(--pv-primary);
    font-weight: 600;
}

/* 탭 콘텐츠 */
.pv-wrap .tab-container {
    padding: 0;
}
.pv-wrap .tab-content {
    padding: var(--pv-spacing-lg);
}
.pv-wrap .tab-content img {
    max-width: 100%;
    height: auto;
}

/* 관련 상품 */
.pv-wrap .related-list {
    padding: var(--pv-spacing-xl) var(--pv-spacing-lg);
    border-top: 8px solid var(--pv-bg-page);
}
.pv-wrap .related-list h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--pv-text-primary);
    margin-bottom: var(--pv-spacing-md);
}
.pv-wrap .related-list .swiper-slide {
    padding: 4px !important;
    border: none !important;
    border-radius: var(--pv-radius-md);
    overflow: hidden;
    box-shadow: var(--pv-shadow-sm);
    background: var(--pv-bg-card);
}
.pv-wrap .related-list .swiper-slide .items .thumb {
    border-radius: var(--pv-radius-md) var(--pv-radius-md) 0 0;
    overflow: hidden;
}
.pv-wrap .related-list .swiper-slide .items .thumb img {
    width: 100%;
    height: auto;
    display: block;
}
.pv-wrap .related-list .swiper-slide .items .info {
    padding: var(--pv-spacing-xs) !important;
    height: auto !important;
    border-top: none !important;
}
.pv-wrap .related-list .swiper-slide .items .info .title {
    font-size: 12px !important;
    font-weight: 500;
    color: var(--pv-text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pv-wrap .related-list .swiper-slide .items .info .price {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--pv-primary) !important;
    margin-top: 4px;
}

/* 하단 고정 구매바 */
.pv-wrap .option-wrap {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 600px;
    margin: 0 auto;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    border-top: 1px solid rgba(255,255,255,0.6);
    padding-bottom: env(safe-area-inset-bottom);
}
.pv-wrap .option-wrap .btn-option ul {
    display: flex;
    list-style: none;
    padding: var(--pv-spacing-xs) var(--pv-spacing-lg);
    margin: 0;
    gap: var(--pv-spacing-sm);
}
.pv-wrap .option-wrap .btn-option .star-wrap {
    width: 50px;
}
.pv-wrap .option-wrap .btn-option .btn-buy {
    flex: 1;
}
.pv-wrap .option-wrap .btn-option .btn-buy a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    background: var(--pv-primary-gradient);
    color: #fff;
    border-radius: var(--pv-radius-md);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(66,164,235,0.3);
    transition: transform 0.2s;
}
.pv-wrap .option-wrap .btn-option .btn-buy a:active {
    transform: scale(0.98);
}

@media (min-width: 993px) {
    .pv-wrap .option-wrap {
        left: calc(50% - 115px);
        right: auto;
        width: var(--pv-max-w);
        transform: none;
    }
}

/* ===========================================
   상품 상세 — 공유하기/찜하기 버튼 행
   =========================================== */
.pv-wrap .product-btn-wrap {
    display: flex;
    gap: 12px;
    margin: 20px 0 0;
    padding: 0;
}
.pv-wrap .product-btn-wrap > div {
    flex: 1;
}
.pv-wrap .product-btn-wrap .btn-product-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 44px;
    border: 1px solid var(--pv-border);
    border-radius: var(--pv-radius-md);
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: var(--pv-text-primary);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    box-sizing: border-box;
}
.pv-wrap .product-btn-wrap .btn-product-link span {
    font-size: 18px;
}
.pv-wrap .product-btn-wrap .btn-product-link:active {
    background: var(--pv-primary-light);
    border-color: var(--pv-primary);
    color: var(--pv-primary);
    transform: scale(0.97);
}
.pv-wrap .product-btn-wrap .btn-product-link.active,
.pv-wrap .product-btn-wrap .zzim-l.active {
    background: var(--pv-primary);
    border-color: var(--pv-primary);
    color: #fff;
}

/* ===========================================
   상품 상세 — 하단 고정 전화/카톡 바
   =========================================== */
.pv-wrap .product-fix-button {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 600px;
    margin: 0 auto;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    border-top: 1px solid rgba(255,255,255,0.6);
    box-sizing: border-box;
}
.pv-wrap .product-fix-button .heart-area {
    width: 48px;
    flex-shrink: 0;
}
.pv-wrap .product-fix-button .btn-heart {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--pv-border);
    border-radius: var(--pv-radius-md);
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
}
.pv-wrap .product-fix-button .btn-heart span {
    font-size: 22px;
    color: #aaa;
}
.pv-wrap .product-fix-button .btn-heart.active {
    background: var(--pv-primary);
    border-color: var(--pv-primary);
}
.pv-wrap .product-fix-button .btn-heart.active span {
    color: #fff;
}
.pv-wrap .product-fix-button .apply-area {
    flex: 1;
    display: flex;
    gap: 8px;
}
.pv-wrap .product-fix-button a.btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 48px;
    border-radius: var(--pv-radius-md);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    box-sizing: border-box;
    padding: 0 12px;
}
.pv-wrap .product-fix-button a.btn span {
    font-size: 18px;
}
.pv-wrap .product-fix-button a.btn:active {
    transform: scale(0.97);
}

@media (min-width: 993px) {
    .pv-wrap .product-fix-button {
        left: calc(50% - 115px);
        right: auto;
        width: var(--pv-max-w);
    }
}

/* ===========================================
   공통 버튼 색상
   =========================================== */
.pv-wrap .btn-blue {
    background: var(--pv-primary) !important;
    border: 1px solid var(--pv-primary) !important;
    color: #fff !important;
}
.pv-wrap .btn-yellow {
    background: #FCE602 !important;
    border: 1px solid #FCE602 !important;
    color: #191919 !important;
}
.pv-wrap .btn-blue-line {
    background: var(--pv-primary-light) !important;
    border: 1px solid var(--pv-primary) !important;
    color: var(--pv-primary) !important;
}
.pv-wrap .btn-gray {
    background: #EEEEEE !important;
    border: 1px solid #EEEEEE !important;
    color: #AAAAAA !important;
}

/* ===========================================
   팝업/모달 시스템
   =========================================== */
.pv-wrap .pop {
    position: fixed;
    z-index: 10001;
    visibility: hidden;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.pv-wrap .pop.active {
    visibility: visible;
}

.pv-wrap .modal {
    position: fixed;
    z-index: 10001;
    top: 0;
    left: 0;
    visibility: hidden;
    width: 100%;
    height: 100% !important;
}
.pv-wrap .modal.active {
    visibility: visible;
}
.pv-wrap .modal-wrapper {
    position: absolute;
    z-index: 10002;
    top: 30%;
    left: 50%;
    width: 300px;
    background: #fff;
    border-radius: var(--pv-radius-lg);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    transform: translate(-50%, 0);
    text-align: center;
    opacity: 0;
    transition: all 0.3s 0.12s;
}
.pv-wrap .modal.active .modal-wrapper {
    opacity: 1;
}
.pv-wrap .modal-header {
    padding: 28px 24px 12px;
}
.pv-wrap .modal-header .sub {
    font-size: 12px;
    color: var(--pv-text-secondary);
    padding-bottom: 6px;
}
.pv-wrap .modal-header .title {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--pv-text-primary);
    line-height: 1.5;
}
.pv-wrap .modal-cont {
    padding: 0 24px;
}
.pv-wrap .modal-cont span {
    font-size: 12px;
    color: var(--pv-text-tertiary);
}
.pv-wrap .modal-cont input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--pv-border);
    border-radius: var(--pv-radius-sm);
    font-size: 12px;
    color: var(--pv-text-secondary);
    box-sizing: border-box;
    margin-top: 12px;
}
.pv-wrap .modal-footer {
    text-align: center;
    padding: 20px 24px 28px;
    font-size: 0;
    display: flex;
    gap: 8px;
    justify-content: center;
}
.pv-wrap .modal-footer a,
.pv-wrap .modal-footer button {
    flex: 1;
    height: 40px;
    line-height: 40px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--pv-radius-sm);
    text-decoration: none;
    text-align: center;
    display: block;
    box-sizing: border-box;
    transition: all 0.2s;
}
.pv-wrap .modal-footer a:active,
.pv-wrap .modal-footer button:active {
    transform: scale(0.97);
}

/* 공유하기 아이콘 리스트 */
.pv-wrap .share-wrap {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 16px;
}
.pv-wrap .share-wrap li {
    text-align: center;
}
.pv-wrap .share-wrap li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--pv-text-secondary);
    font-size: 12px;
}
.pv-wrap .share-wrap li img {
    width: 48px;
    height: 48px;
    border-radius: var(--pv-radius-md);
    box-shadow: var(--pv-shadow-sm);
    transition: transform 0.2s;
}
.pv-wrap .share-wrap li a:active img {
    transform: scale(0.93);
}

/* md-overlay (공유팝업 등 배경) */
.pv-wrap .md-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    visibility: hidden;
    top: 0;
    left: 0;
    z-index: 10000;
    opacity: 0;
    background: rgba(0,0,0,0.5);
    transition: all 0.3s;
}
.pv-wrap .md-overlay.active {
    visibility: visible;
    opacity: 1;
}

/* ver1 팝업 (신고 등) */
.pv-wrap .pop.ver1 {
    position: fixed;
    z-index: 10001;
    bottom: 0;
    top: auto;
    left: 0;
    right: 0;
    width: 100%;
    height: auto !important;
    max-width: 600px;
    margin: 0 auto;
    visibility: hidden;
    background: #fff;
    border-radius: var(--pv-radius-lg) var(--pv-radius-lg) 0 0;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.15);
    padding: 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    transform: translateY(100%);
    transition: transform 0.3s, visibility 0.3s;
}
.pv-wrap .pop.ver1.active {
    visibility: visible;
    transform: translateY(0);
}
.pv-wrap .pop.ver1 .btn-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
}
.pv-wrap .pop.ver1 .button-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pv-wrap .pop.ver1 .button-box ul li a {
    display: block;
    padding: 12px 0;
    font-size: 14px;
    color: var(--pv-text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--pv-border);
}

/* 기존 CSS 충돌 방지: #wrap 기본 스타일 무효화 */
.pv-wrap #container {
    padding-top: 0;
}
.pv-wrap section#container {
    padding-top: 0;
}

/* 스켈레톤 로딩 - 서브페이지용 */
.pv-wrap .pv-skeleton-row {
    display: flex;
    gap: var(--pv-spacing-md);
    padding: var(--pv-spacing-md) var(--pv-spacing-lg);
}
.pv-wrap .pv-skeleton-thumb {
    width: 110px;
    height: 110px;
    border-radius: var(--pv-radius-md);
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: pv-shimmer 1.5s ease-in-out infinite;
}
.pv-wrap .pv-skeleton-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pv-wrap .pv-skeleton-line {
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: pv-shimmer 1.5s ease-in-out infinite;
}
.pv-wrap .pv-skeleton-line.w60 { width: 60%; }
.pv-wrap .pv-skeleton-line.w80 { width: 80%; }
.pv-wrap .pv-skeleton-line.w40 { width: 40%; }

/* ===========================================
   리뷰 목록 스타일 (review_list.php용)
   style.css 미로드 모던 페이지 호환
   =========================================== */
.pv-wrap .review-content .review-item {
    position: relative;
    padding: 20px var(--pv-spacing-lg);
    border-top: 1px solid var(--pv-border);
    background: var(--pv-bg-card);
}
.pv-wrap .review-content .review-item:first-child {
    border-top: 0;
}
.pv-wrap .review-item .review-head {
    position: relative;
}
.pv-wrap .review-item .review-head .title {
    width: calc(100% - 30px);
    font-size: 15px;
    font-weight: 700;
    color: var(--pv-text-primary);
    line-height: 1.4;
}
.pv-wrap .review-item .review-head .title a {
    color: inherit;
}
.pv-wrap .review-item .review-head .btn-dot {
    position: absolute;
    display: block;
    top: 2px;
    right: 0;
    width: 24px;
    height: 24px;
    background: url(../images/common/btn_dot.png) center no-repeat;
    background-size: 18px auto;
    transform: rotate(90deg);
    opacity: 0.5;
}
.pv-wrap .review-item .review-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}
.pv-wrap .review-item .review-info .tit {
    font-size: 13px;
    color: var(--pv-text-secondary);
    font-weight: 500;
}
.pv-wrap .review-item .review-info .date {
    font-size: 12px;
    color: var(--pv-text-tertiary);
    margin-left: 6px;
}
.pv-wrap .review-item .review-con .con-text {
    margin-top: 10px;
    font-size: 14px;
    color: var(--pv-text-secondary);
    line-height: 1.6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}
.pv-wrap .review-item .review-con .con-text a {
    display: block;
    color: inherit;
}
.pv-wrap .review-item .review-visual {
    padding: 10px 0 0;
    overflow: hidden;
}
.pv-wrap .review-item .review-visual img {
    max-width: 100%;
    max-height: 180px;
    border-radius: var(--pv-radius-sm);
}
.pv-wrap .review-area {
    width: 100%;
}
.pv-wrap .review-item .view-num {
    font-size: 12px;
    color: var(--pv-text-tertiary);
    text-align: right;
    margin-top: 8px;
}
