/*--------------------------------------------------------------
# Shopping Gallery Page
--------------------------------------------------------------*/
/* 구글 광고 영역 */
section.top_area {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4px;
    box-sizing: border-box;
    text-align: center;
    min-height: 0;
    overflow: hidden;
    height: 0;
}

section.top_area[style*="display: block"] {
    height: auto;
    margin: 20px auto;
}

section.top_area .adsbygoogle {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    width: auto;
    height: auto;
}

/* 광고 내부 컨테이너 */
section.top_area .adsbygoogle > div {
    margin: 0 auto;
    max-width: 100%;
}

/* 광고 iframe 반응형 처리 */
section.top_area .adsbygoogle iframe {
    max-width: 100%;
    height: auto;
}

/* 광고가 로드되지 않았을 때 영역 차지 방지 */
section.top_area:empty,
section.top_area .adsbygoogle[data-ad-status="unfilled"] {
    display: none;
    height: 0;
    margin: 0;
    padding: 0;
}

/* 광고가 로드되었을 때 영역 자동 조정 */
section.top_area .adsbygoogle[data-ad-status="filled"] {
    display: block;
}

.container-vgsi {
    display: -ms-grid;
    display: grid;
    grid-gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-auto-rows: 320px;
    grid-auto-flow: dense;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto 25px;
    padding: 0 4px;
    box-sizing: border-box;
}
.item-vgsi {
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background-color: #fff;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.item-vgsi:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: #d0d0d0;
}
.inBox-vgsi {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
}
.inBox-vgsi .img-vgsi {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(-27deg, #f2f2f2 50%, #eaeaea 50%);
}
.inBox-vgsi .img-vgsi img {
    width: 100%;
    height: auto;
    min-height: 100%; 
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.inBox-vgsi .img-vgsi:hover img {
    transform: scale(1.08);
}
.inBox-vgsi .img-vgsi .ad-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
    text-transform: uppercase;
    line-height: 1.2;
    min-width: 32px;
    text-align: center;
    box-sizing: border-box;
}
.inBox-vgsi .img-vgsi .ad-badge::before {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.3);
}
.inBox-vgsi .tit-vgsi {
    font-size: 1.13em;
    font-weight: 600;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.4em;
    height: 2.8em;
    overflow: hidden;    
    padding: 0 9px;
    box-sizing: border-box;  
    vertical-align:middle;
    margin: 8px 0 6px;  
    position: relative;
}

.inBox-vgsi .tit-vgsi > a {
    color: #2c3e50;
    transition: color 0.2s ease;
}

.inBox-vgsi .tit-vgsi > a:hover {
    color: #3498db;
}
.inBox-vgsi .tit-vgsi > a {
    position: absolute;
    display: block;
    top: 50%; 
    transform: translateY(-50%);
    left: 9px;
    right: 9px;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.3em;
    overflow: hidden;
}
.inBox-vgsi .gap1-vgsi {}
.inBox-vgsi .inBtw02 {
    font-size: 0.93em;
    width: 100%;
    padding: 7px 9px 10px;
    border-top: 1px solid #eee;
    box-sizing: border-box;
    color: #666;
    overflow: hidden;    
}
.inBtw02 .ifv-s1 {}
.inBtw02 .ifv-s2 {}
.inBtw02 a:hover {text-decoration: underline;}
.inBtw02 .ifv-s1 {
    display: flex;
    justify-content: space-between;
}
.inBtw02 .ifv-s2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 0 0;
}
.inBtw02 .ifv-s2 > span:not(:last-child) {margin-right: 14px;}
.inBtw02 .ifv-s1 > span::before, .inBtw02 .ifv-s2 span::before {color: #777; font-weight: 300; font-size: 0.93em;}
.inBtw02 .ifv-s2 > span {position: relative;}
.inBtw02 .ifv-s2 span:not(:last-child) {margin: 0 10px 0 0;}

.inBtw02 .ifv-s1 .price-vgsi {
    color: #e74c3c;
    font-weight: 700;
    font-size: 1.05em;
}
.inBtw02 .ifv-s1 .shop-vgsi::before {content: '';}
.inBtw02 .ifv-s1 .price-vgsi::before {content: '가격 : ';}
.inBtw02 .ifv-s2 .ship-vgsi::before {content: '배송 : ';}
.inBtw02 .ifv-s2 .aut-vgsi::before {content: '작성 : ';}
.inBtw02 .ifv-s2 .date-vgsi::before {content: '';}


@media screen and (max-width:768px) {
    section.top_area {
        margin: 15px auto;
        padding: 0 9px;
    }
    
    section.top_area .adsbygoogle {
        width: 100%;
    }
    
    section.top_area .adsbygoogle > div {
        width: 100% !important;
        max-width: 100%;
    }
    
    section.top_area .adsbygoogle iframe {
        width: 100% !important;
        max-width: 100%;
        height: auto !important;
    }
    
    .container-vgsi {
        grid-gap: 18px;
        grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
        grid-auto-rows: auto;
        padding: 0 9px;
        background-color: #f5f5f5;
    }
    .item-vgsi {
        padding: 3px 8px 3px 2px;
        box-sizing: border-box;
    }
    .inBox-vgsi {
        display: grid;
        grid-template-columns: 1fr 97px;
        grid-template-rows: auto auto;
        align-items: center;
    }
    .inBox-vgsi .img-vgsi {
        position: relative;
        width: 90px;
        height: 90px;
        grid-column: 2/-1;
        grid-row: 1/-1;
        overflow: hidden;
        border: 1px solid #ddd;
        border-radius: 3px;
        margin-left: 7px;
        box-sizing: border-box;
    }
    .inBox-vgsi .img-vgsi .ad-badge {
        top: 4px;
        right: 4px;
        font-size: 9px;
        padding: 3px 7px;
        min-width: 26px;
    }
    .inBox-vgsi .tit-vgsi {
        grid-column: 1/1;
        grid-row: 1;
        font-size: 1.03em;
    }    
    .inBox-vgsi .inBtw02 {
        grid-column: 1/1;
        grid-row: 2;
        font-size: 0.86em;
    }
    .inBtw02 .ifv-s1, .inBtw02 .ifv-s2, .inBtw02 .ifv-s2 > p {display:inline;}
    .inBtw02 .ifv-s2 span:not(:last-child){margin: 0;}
    .inBtw02 .ifv-s1 span, .inBtw02 .ifv-s2 span {margin: 0 7px 0 0;}
    .inBtw02 .ifv-s1 span::after, .inBtw02 .ifv-s2 span::after {content: '/'; margin: 0 0 0 7px; color: #888; font-size: 12px; font-weight: 300; vertical-align: baseline; }
    .inBtw02 .ifv-s2 span.date-vgsi::after {content: '';}
    .inBtw02 .ifv-s1 {}
    .inBtw02 .ifv-s2 {margin: 0;}

}
 .moreBtnvvm {
    text-align: center;
    padding: 25px 5px 35px;
    box-sizing: border-box;
 }
.mrbtn_vvm {
    font-size: 0.95em;
    padding: 10px 40px;
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: #fff;
    border: none;
    border-radius: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}
.mrbtn_vvm:hover {
    background: linear-gradient(135deg, #357ABD 0%, #4A90E2 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.4);
}
