@charset "utf-8";

*{margin:0;padding:0;box-sizing:border-box;}
img{display:block;border:0;}

html, body { height:100%; }
body{
    background:#000;
    color:#fff;
}

/* 페이지 전체 가운데 정렬 */
.result-page{
    min-height:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:40px 24px;
}

/* 패널 */
.panel{
    width: min(1200px, 92vw);
    min-height:700px;
    height:auto;

    padding:40px 50px;
    display:flex;
    flex-direction:column;

    background: rgba(60,60,60,0.25);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius:20px;
    box-shadow: 0 20px 40px rgba(0,0,0,.65);
}

/* 헤더 */
.header{
    text-align:center;
    margin-bottom:18px;
}

/* 타이틀 */
.upsell-title{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    margin:0;
    min-height:104px;
    line-height:1.1;

    font-size:44px;
    font-weight:600;
    letter-spacing:-0.5px;
}

.upsell-subtitle{
    margin-top:6px;
    font-size:16px;
    font-weight:700;
    line-height:1.2;
}

/* ✅ content: 2행 grid (1행 카드/슬라이더, 2행 버튼줄) */
.content{
    width:100%;
    flex:1;
    min-height:0;

    display:grid;
    grid-template-columns: 360px 650px;
    grid-template-rows: auto auto;
    column-gap:70px;
    row-gap:28px;

    justify-content:center;
    align-content:start;

    padding-top:20px;
    padding-left:40px;
    padding-bottom:20px;

    transform: translateX(30px);
}

/* LEFT */
.base{
    grid-column:1;
    grid-row:1;

    width:360px;
    display:flex;
    flex-direction:column;
    align-items:center;
}

/* RIGHT */
.compare{
    grid-column:2;
    grid-row:1;
    position:relative;
    margin-left:40px;
    display:flex;
    flex-direction:column;
    align-items:center;
}

/* 카드 */
.card{
    width:360px;
    height:420px;
    background: rgba(20,20,20,0.85);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius:10px;
    padding:34px 30px;
    text-align:center;
    box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}

.img img{
    width:420px;
    margin-top:40px;
    transform: scale(1.08);
    pointer-events:none;
    user-select:none;
}

.info{
    margin-top:70px;
    line-height:1.5;
}
.name{
    font-weight:300;
    font-size:18px;
    opacity:0.9;
}
.price{
    margin-top:6px;
    font-weight:700;
    font-size:24px;
}

/* 슬라이더 */
.slider{
    width:100%;
    height:450px;
    position:relative;
    z-index:10;
}
.slider .swiper-wrapper{
    align-items:center;
}
.slider .swiper-slide{
    width:360px !important;
}

/* 네비 */
.nav{
    position:absolute;
    top:190px;
    left:50%;
    transform:translateX(-50%);
    width:460px;
    display:flex;
    justify-content:space-between;
    z-index:20;
}

.nav button{
    background: transparent;
    border: 0;
    color: rgba(255,255,255,0.85);
    font-size:64px;
    font-weight:200;
    cursor:pointer;
    padding:0 6px;
    transition:.25s ease;
}
.nav button:hover{
    color:#ff7a00;
}

/* 버튼 래퍼 */
.card-action{
    display:flex;
    justify-content:center;
    align-items:center;
}

/* ==============================
   ✅ 버튼 (슬라이드 채움 효과로 변경)
============================== */
.action-btn{
    display:inline-flex;
    justify-content:center;
    align-items:center;

    width:260px;
    height:54px;

    border-radius:10px;
    border: 1px solid rgba(255,138,0,0.85);
    color:#fff;
    text-decoration:none;

    /* 슬라이드 채움 효과 핵심 */
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: rgba(0,0,0,0.35);

    font-size:16px;
    font-weight:500;

    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.action-btn::before{
    content:"";
    position:absolute;
    left:-100%;
    top:0;
    width:100%;
    height:100%;
    background-color:#ff7a00;
    transition:left 0.4s ease;
    z-index:-1;
}

.action-btn:hover{
    border-color: rgba(255,138,0,1);
    box-shadow: 0 0 0 3px rgba(255,138,0,0.18);
    transform: translateY(-1px);
}

.action-btn:hover::before{
    left:0;
}

.action-btn.is-disabled{
    opacity:0.4;
    pointer-events:none;
}

/* ✅ actions-row: 같은 줄 고정 (content 내부 2행) */
.actions-row{
    grid-column: 1 / 3;
    grid-row: 2;

    display:grid;
    grid-template-columns: 360px 650px;
    column-gap:70px;
    align-items:center;
}

/* 왼쪽 버튼 칸 */
.actions-row .card-action--left{
    width:360px;
    justify-content:center;
}

/* 오른쪽 버튼 칸 */
.actions-row .card-action--right{
    width:650px;
    justify-content:center;
}

/* 버튼이 칸의 정중앙에 오도록 */
.actions-row .action-btn{
    margin:0 auto;
}