.compare-v2{
    direction:rtl;
    background:#f8f4ed;
    color:#2d2119;
    min-height:70vh;
}

.compare-v2-hero{
    padding:54px 20px 46px;
    text-align:center;
    background:
        radial-gradient(circle at top,#fffaf2 0%,#f5ecdf 55%,#eee1d0 100%);
    border-bottom:1px solid rgba(83,57,38,.12);
}

.compare-v2-hero-inner{
    max-width:850px;
    margin:auto;
}

.compare-v2-kicker{
    display:inline-block;
    margin-bottom:10px;
    color:#9f1d20;
    font-size:12px;
    font-weight:800;
    letter-spacing:4px;
}

.compare-v2-hero h1{
    margin:0;
    font-size:clamp(30px,4vw,48px);
    font-weight:900;
    color:#2c1c13;
}

.compare-v2-hero p{
    margin:14px auto 0;
    color:#75665b;
    font-size:15px;
    line-height:1.9;
}

.compare-v2-content{
    padding:38px 18px 70px;
}

.compare-v2-container{
    width:min(1280px,100%);
    margin:auto;
}

.compare-v2-toolbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin-bottom:24px;
}

.compare-v2-toolbar h2{
    margin:0 0 5px;
    font-size:22px;
    color:#2d2119;
}

.compare-v2-toolbar p{
    margin:0;
    color:#8a7a6e;
    font-size:13px;
}

.compare-v2-actions{
    display:flex;
    align-items:center;
    gap:10px;
}

.compare-shop-btn,
.compare-primary-btn,
.compare-clear-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    padding:10px 18px;
    border-radius:8px;
    font-family:inherit;
    font-size:13px;
    font-weight:800;
    text-decoration:none;
    cursor:pointer;
    transition:.25s ease;
}

.compare-shop-btn,
.compare-primary-btn{
    border:1px solid #9f1d20;
    background:#9f1d20;
    color:#fff;
}

.compare-shop-btn:hover,
.compare-primary-btn:hover{
    background:#7f1417;
    border-color:#7f1417;
    transform:translateY(-1px);
}

.compare-clear-btn{
    border:1px solid rgba(83,57,38,.2);
    background:#fff;
    color:#5a4638;
}

.compare-clear-btn:hover{
    border-color:#9f1d20;
    color:#9f1d20;
}

.compare-state{
    padding:70px 20px;
    text-align:center;
    background:#fff;
    border:1px solid rgba(83,57,38,.1);
    border-radius:14px;
    box-shadow:0 12px 35px rgba(62,43,29,.06);
}

.compare-state[hidden],
.compare-table-wrap[hidden]{
    display:none !important;
}

.compare-state h2,
.compare-state h3{
    margin:12px 0 8px;
    color:#302117;
}

.compare-state p{
    max-width:520px;
    margin:0 auto 22px;
    color:#817166;
    line-height:1.9;
}

.compare-empty-icon{
    width:68px;
    height:68px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:0 auto 16px;
    border-radius:50%;
    background:#f7ecec;
    color:#9f1d20;
    font-size:34px;
    font-weight:900;
}

.compare-loader{
    width:42px;
    height:42px;
    margin:auto;
    border:3px solid #eadfd3;
    border-top-color:#9f1d20;
    border-radius:50%;
    animation:compareSpin .8s linear infinite;
}

@keyframes compareSpin{
    to{transform:rotate(360deg)}
}

.compare-table-wrap{
    overflow-x:auto;
    background:#fff;
    border:1px solid rgba(83,57,38,.11);
    border-radius:14px;
    box-shadow:0 14px 40px rgba(62,43,29,.07);
}

.compare-table{
    min-width:760px;
}

.compare-row{
    display:grid;
    grid-template-columns:180px repeat(var(--compare-count,2),minmax(220px,1fr));
    border-bottom:1px solid #eee5dc;
}

.compare-row:last-child{
    border-bottom:0;
}

.compare-cell{
    padding:18px;
    border-left:1px solid #eee5dc;
    text-align:center;
}

.compare-cell:last-child{
    border-left:0;
}

.compare-label{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    text-align:right;
    background:#fbf7f1;
    color:#5d493b;
    font-weight:800;
}

.compare-product-image{
    width:100%;
    max-width:220px;
    aspect-ratio:1/1;
    object-fit:cover;
    border-radius:10px;
    background:#f4eee7;
}

.compare-product-name{
    margin:13px 0 6px;
    color:#2d2119;
    font-size:16px;
    font-weight:900;
}

.compare-product-price{
    color:#9f1d20;
    font-size:16px;
    font-weight:900;
}

.compare-old-price{
    margin-inline-start:7px;
    color:#9d9188;
    font-size:12px;
    text-decoration:line-through;
}

.compare-featured{
    display:inline-block;
    margin-bottom:10px;
    padding:5px 10px;
    border-radius:999px;
    background:#9f1d20;
    color:#fff;
    font-size:11px;
    font-weight:800;
}

.compare-remove{
    margin-top:12px;
    padding:7px 12px;
    border:1px solid #d9cbc0;
    border-radius:7px;
    background:#fff;
    color:#78675b;
    font-family:inherit;
    font-weight:700;
    cursor:pointer;
}

.compare-remove:hover{
    color:#9f1d20;
    border-color:#9f1d20;
}

.compare-product-link{
    display:inline-flex;
    margin-top:10px;
    color:#9f1d20;
    font-size:12px;
    font-weight:800;
    text-decoration:none;
}

@media(max-width:700px){
    .compare-v2-hero{
        padding:38px 16px 34px;
    }

    .compare-v2-content{
        padding:26px 12px 50px;
    }

    .compare-v2-toolbar{
        align-items:flex-start;
        flex-direction:column;
    }

    .compare-v2-actions{
        width:100%;
    }

    .compare-shop-btn,
    .compare-clear-btn{
        flex:1;
    }

    .compare-row{
        grid-template-columns:130px repeat(var(--compare-count,2),200px);
    }

    .compare-cell{
        padding:13px;
    }
}
