/* ===== 본문 이미지 비교 ===== */
.img-comp-container {
    position: relative;
    max-width: 1200px;
    margin: 30px auto;
    user-select: none;
    -webkit-user-select: none;
    overflow: hidden;
}

.img-comp-img {
    position: absolute;
    inset: 0;
}

.img-comp-img img {
    width: 100%;
    display: block;
    pointer-events: none;
}

/* ===== 중앙 슬라이더 버튼 ===== */
.img-comp-slider {
    position: absolute;
    top: 50%;
    z-index: 10;

    width: 44px;
    height: 44px;

    transform: translate(-50%, -50%);

    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);

    cursor: ew-resize;
    touch-action: none;
    opacity: 1;

    transition: background-color .2s ease,
                box-shadow .2s ease;
}

/* ===== 중앙 세로 경계선 ===== */
.img-comp-slider::before {
    content: "";
    position: absolute;

    top: 50%;
    left: 50%;

    width: 2px;
    height: 3000px;

    transform: translate(-50%, -50%);

    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.4);

    z-index: -1;
    pointer-events: none;
}

/* ===== 좌우 화살표 ===== */
.img-comp-slider::after {
    content: "";
    position: absolute;
    inset: 0;

    background-color: #fff;
    border-radius: 50%;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M14 13 L7 20 L14 27 M26 13 L33 20 L26 27' fill='none' stroke='%23333333' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position: center;
    background-size: 32px 32px;

    pointer-events: none;
}

/* ===== 마우스 및 드래그 효과 ===== */
.img-comp-container:hover .img-comp-slider,
.img-comp-container.dragging .img-comp-slider {
    opacity: 1;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

/* ===== 목록 미리보기 ===== */
.list-compare-thumb {
    position: relative;
}

.list-compare-thumb img.overlay {
    position: absolute;
    inset: 0;
    clip-path: inset(0 50% 0 0);
}

/* ===== 목록 비교 버튼 ===== */
.compare-btn {
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    opacity: .85;
    transition: transform .2s ease, opacity .2s ease;
}

.compare-btn:hover {
    opacity: 1;
    transform: scale(1.08);
}

.compare-btn svg circle,
.compare-btn svg path {
    transition: stroke .2s ease;
}

.compare-btn:hover svg circle,
.compare-btn:hover svg path {
    stroke: #000;
}