/* =========================================
   Compare Button
========================================= */

.techorz-compare-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:12px 18px;
    background:#2563EB;
    color:#fff;
    border:none;
    border-radius:8px;
    cursor:pointer;
    font-size:14px;
    font-weight:600;
    transition:.3s;
}

.techorz-compare-btn:hover{
    background:#1D4ED8;
}

.te-added{
    background:#16A34A;
}

/* ===================================
Floating Compare Bar
===================================*/

.techorz-compare-bar{

    position:fixed;

    bottom:20px;

    left:50%;

    transform:translateX(-50%);

    width:1140px;

    max-width:calc(100% - 30px);

    background:#fff;

    border-radius:18px;

    padding:18px;

    box-shadow:0 12px 40px rgba(0,0,0,.15);

    z-index:999999;

}

.techorz-bar-header{

    display:grid;

    grid-template-columns:1fr auto 1fr;

    align-items:center;

    margin-bottom:20px;

}

.techorz-bar-title{

    justify-self:start;

}

.techorz-bar-toggle{

    justify-self:center;

    align-self:start;

}

.techorz-bar-actions{

    justify-self:end;

    display:flex;

    gap:12px;

}

.techorz-bar-title h3{

    margin:0;

    font-size:18px;

}

.techorz-bar-title p{

    margin:3px 0 0;

    font-size:15px;

    color:#666;

}

.techorz-compare-items{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:14px;

}

.techorz-slot{

    height:125px;

    border:2px dashed #d7dce3;

    border-radius:14px;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    cursor:pointer;

    transition:.3s;

}

.techorz-slot:hover{

    border-color:#2563eb;

}

.te-slot-plus{

    font-size:48px;

    color:#2563eb;

    line-height:1;

}

.te-slot-text{

    margin-top:12px;

    font-size:15px;

    font-weight:600;

}

.techorz-bar-actions{

    display:flex;

    gap:12px;

}

#techorz-compare-now,
#techorz-clear-all{

    border:none;

    border-radius:10px;

    padding:10px 18px;
    
    font-size:15px;

    cursor:pointer;

    font-weight:600;

}

#techorz-compare-now{

    background:#2563eb;

    color:#fff;

}

#techorz-clear-all{

    background:#ef4444;

    color:#fff;

}

@media(max-width:768px){

.techorz-bar-header{

    flex-direction:column;

    gap:14px;

}

/* ===================================
Compare Bar Toggle
===================================*/

.techorz-bar-toggle{

    display:flex;

    justify-content:center;

    margin:0 0 12px;

    padding-top:6px;

    border-top:1px solid #E5E7EB;

}

#techorz-toggle-bar{

    width:34px;

    height:34px;

    border:none;

    border-radius:50%;

    background:#F3F4F6;

    color:#4B5563;

    font-size:18px;

    cursor:pointer;

    transition:.25s;

}

#techorz-toggle-bar:hover{

    background:#E5E7EB;

}

.techorz-compare-items{

    grid-template-columns:repeat(2,1fr);

}

}

/*==========================================
Product Card
==========================================*/

.te-product-card{

    position:relative;

    height:180px;

    border:1px solid #E5E7EB;

    border-radius:14px;

    background:#fff;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    transition:.25s;

}

.te-product-card:hover{

    box-shadow:0 8px 20px rgba(0,0,0,.08);

}

.te-product-image{

    height:90px;

    display:flex;

    align-items:center;

}

.te-product-image img{

    max-height:90px;

    max-width:100%;

    object-fit:contain;

}

.te-product-title{

    margin-top:12px;

    font-size:14px;

    font-weight:600;

    text-align:center;

    padding:0 10px;

    line-height:1.4;

}

.te-remove-product{

    position:absolute;

    top:10px;

    right:12px;

    border:none;

    background:transparent;

    color:#EF4444;

    font-size:28px;

    font-weight:700;

    line-height:1;

    cursor:pointer;

    padding:0;

    width:auto;

    height:auto;

    border-radius:0;

    transition:.25s;

}

.te-remove-product:hover{

    color:#DC2626;

    transform:scale(1.15);

}

.te-empty-slot{

    height:180px;

    border:2px dashed #CBD5E1;

    border-radius:14px;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    cursor:pointer;

}

.te-empty-slot:hover{

    border-color:#2563EB;

}

.te-empty-text{

    margin-top:10px;

    font-weight:600;

}

/*==================================
Compare Page
==================================*/

.techorz-compare-page{

    max-width:1200px;

    margin:0 auto;

    padding:40px 0;

}

.techorz-compare-heading{

	text-align:center;

	font-size:36px;

	font-weight:700;

	margin-bottom:40px;

}

.techorz-compare-header{

    width:1140px;

    margin:0 auto 30px;

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:30px;

}

.techorz-compare-column{

    padding:0;

    background:transparent;

    border:none;

    border-radius:0;

}

.te-search-input{

    width:100%;
    height:48px;

    border:1px solid #D1D5DB;
    border-radius:12px;

    padding:0 16px;

    font-size:16px;

    box-sizing:border-box;

}

.te-product-container{

    width:100%;

    min-height:430px;

}

/*=====================================
Compare Page Product Cards
=====================================*/

.te-page-product{

    background:#ffffff;

    border:1px solid #e5e7eb;

    border-radius:12px;

    padding:20px;

    text-align:center;

    height:100%;

    box-shadow:0 2px 8px rgba(0,0,0,.05);

    display:flex;

    flex-direction:column;

    justify-content:flex-start;

    align-items:center;

}

.te-page-product-image{

    height:160px;

    display:flex;

    justify-content:center;

    align-items:center;

    margin-bottom:10px;

}

.te-page-product-image img{

    max-height:160px;

    max-width:100%;

    object-fit:contain;

}

.te-page-product-title{

    font-size:18px !important;

    font-weight:700 !important;

    line-height:1.9 !important;

    margin:0 !important;

    padding:0 !important;

}

.te-best-offer{

    width:100%;

    height:44px;

    border:none;

    border-radius:8px;

    background:#2563EB;

    color:#fff;

    cursor:pointer;

    margin-bottom:10px;

}

.te-remove-page{

    width:100%;

    height:44px;

    border:none;

    border-radius:8px;

    background:#EF4444;

    color:#fff;

    cursor:pointer;

}

.te-page-empty{

    width:100%;

    height:320px;

    box-sizing:border-box;

    border:2px dashed #CBD5E1;

    border-radius:14px;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

}

.te-page-plus{

    font-size:60px;

    color:#2563EB;

}

.te-page-text{

    margin-top:15px;

    font-size:18px;

    font-weight:600;

}

.te-search-box{

    position:relative;

}

.te-search-results{

    position: absolute;

    top: 52px;

    left: 0;

    right: 0;

    background: #fff;

    border: 1px solid #E5E7EB;

    border-radius: 10px;

    box-shadow: 0 8px 20px rgba(0,0,0,.08);

    max-height: 320px;

    overflow-y: auto;

    z-index: 999;

    display: none;

}

.te-search-card{

    width:100%;
    height:320px;

    border:2px dashed #C9D7F0;
    border-radius:18px;

    position:relative;

    box-sizing:border-box;

    background:#fff;

}

.te-search-inner{

    position:absolute;

    top:155px;

    left:50%;

    transform:translateX(-50%);

    width:85%;

}

.te-search-item{

    padding:12px 15px;

    cursor:pointer;

    border-bottom:1px solid #F3F4F6;

}

.te-search-item:hover{

    background:#F8FAFC;

}

/* ==========================================
   SPECIFICATION TABLE
========================================== */

#techorz-specification-table{
    margin-top:40px;
    border:1px solid #e5e7eb;
    border-radius:12px;
    overflow-x:auto;
    overflow-y:hidden;
    background:#fff;
}

.te-spec-section{
    width:1140px;
    margin:0 auto;
}

.te-spec-heading{

    background:#111827;

    color:#FFFFFF !important;

    padding:14px 18px;

    font-size:15px;

    font-weight:600;

    width:1140px;

    margin:0 auto;

}

.te-spec-row{

    display:grid;

    grid-template-columns:240px repeat(4,225px);

    width:1140px;

    margin:0 auto;

    border-bottom:1px solid #E5E7EB;

    align-items:stretch;

}

.te-spec-label{

    padding:14px 18px;

    font-weight:600;

    background:#fff;

    border-right:1px solid #E5E7EB;

    display:flex;

    align-items:center;

}

.te-spec-value{

    padding:14px 18px;

    border-left:1px solid #E5E7EB;

    display:flex;

    align-items:center;

    word-break:break-word;

}

.te-page-product-title{
    font-size:18px;
    font-weight:700;
    margin:18px 0;
    line-height:1.4;
    min-height:52px;
}

/* ==========================================
   COMPARE TOOLBAR
========================================== */

.te-compare-toolbar{

    display:flex;
    justify-content:flex-end;
    align-items:center;
    margin:20px auto;
    width:1140px;
    position:relative;
    z-index:999;
    background:#fff;
}

.te-difference-toggle{
    display:flex;
    align-items:center;
    gap:10px;
    cursor:pointer;
    font-weight:600;
    user-select:none;
}

.te-difference-toggle input{
    width:18px;
    height:18px;
    cursor:pointer;
}

/* ==========================================
   PERFORMANCE SCORE TABLE
========================================== */

#techorz-score-comparison{

    margin:30px 0;

    border:1px solid #e5e7eb;

    border-radius:12px;

    overflow:hidden;

    background:#ffffff;

}

.te-score-row{

    display:grid;

    grid-template-columns:260px repeat(4,1fr);

    border-bottom:1px solid #e5e7eb;

}

.te-score-row:last-child{

    border-bottom:none;

}

.te-score-label{

    background:#111827;

    color:#ffffff;

    font-weight:700;

    padding:16px 20px;

}

.te-score-value{

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:20px;

    font-weight:700;

    padding:16px;

    border-left:1px solid #e5e7eb;

}

.te-score-value{

    color:#111827;

}

.te-score-value:has(span){

    background:#DCFCE7;

}

/* ==========================================
   SCORE BADGES
========================================== */

.te-score-value{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:10px;

    padding:18px;

}

.te-score-badge{

    width:56px;

    height:56px;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    color:#fff;

    font-size:18px;

    font-weight:700;

}

.te-score-green{

    background:#16a34a;

}

.te-score-blue{

    background:#2563eb;

}

.te-score-orange{

    background:#ea580c;

}

.te-score-red{

    background:#dc2626;

}

.te-score-trophy{

    font-size:20px;

}

.te-empty-compare{

    padding:60px 30px;

    text-align:center;

    font-size:20px;

    font-weight:600;

    color:#6B7280;

    background:#fff;

    border:1px solid #E5E7EB;

    border-radius:16px;

}

.te-search-empty{

    padding:14px;

    text-align:center;

    font-size:14px;

    color:#6B7280;

    font-weight:500;

}

.te-loading{

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    gap:16px;

    padding:50px;

}

.te-spinner{

    width:36px;

    height:36px;

    border:4px solid #E5E7EB;

    border-top:4px solid #2563EB;

    border-radius:50%;

    animation:te-spin 0.8s linear infinite;

}

@keyframes te-spin{

    from{

        transform:rotate(0deg);

    }

    to{

        transform:rotate(360deg);

    }

}

/* ===========================
   Techorz Quick Summary
=========================== */

#techorz-summary-comparison{

    margin:32px 0 24px;

}

.te-summary{

    background:#FFFFFF;

    border:1px solid #E5E7EB;

    border-radius:16px;

    padding:24px;

    box-shadow:0 4px 12px rgba(0,0,0,.05);

}

.te-summary-title{

    font-size:24px;

    font-weight:700;

    margin:0 0 20px;

    color:#111827;

}

.te-summary-grid{

    display:flex;

    flex-wrap:nowrap;

    gap:12px;

    margin-top:20px;

}

.te-summary-item{

    flex:1;

    min-width:0;

    display:flex;

    align-items:center;

    gap:10px;

    padding:14px;

    border:1px solid #E5E7EB;

    border-radius:12px;

    background:#fff;

}

.te-summary-icon{

    width:42px;

    height:42px;

    flex-shrink:0;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    background:#EFF6FF;

    font-size:20px;

}

.te-summary-label{

    font-size:13px;

    font-weight:600;

    line-height:1.3;

}

.te-summary-value{

    font-size:14px;

    font-weight:700;

    margin-top:3px;

    word-break:break-word;

}

/* ===========================
   Score Chart
=========================== */

#techorz-score-chart{

    margin:0 0 30px;

}

.te-chart{

    background:#FFF;

    border:1px solid #E5E7EB;

    border-radius:16px;

    padding:24px;

    box-shadow:0 4px 12px rgba(0,0,0,.05);

}

.te-chart-title{

    font-size:24px;

    font-weight:700;

    margin:0 0 24px;

}

.te-chart-row{

    margin-bottom:22px;

}

.te-chart-label{

    font-weight:600;

    margin-bottom:10px;

}

.te-chart-bars{

    display:flex;

    flex-direction:column;

    gap:10px;

}

.te-chart-bar{

    display:flex;

    align-items:center;

    gap:12px;

}

.te-chart-phone{

    width:180px;

    font-size:14px;

    font-weight:600;

    overflow:hidden;

    text-overflow:ellipsis;

    white-space:nowrap;

}

.te-chart-track{

    flex:1;

    background:#E5E7EB;

    border-radius:999px;

    height:18px;

    overflow:hidden;

}

.te-chart-fill{

    height:100%;

    border-radius:999px;

    transition:width .4s ease;

}

.te-chart-score{

    width:40px;

    text-align:right;

    font-weight:700;

}

/* ===========================
   Floating Compare Header
=========================== */

#techorz-floating-header{

    position:fixed;

    top:32px;

    left:0;

    right:0;

    z-index:999;

    background:#fff;

    border-bottom:1px solid #E5E7EB;

    box-shadow:0 2px 10px rgba(0,0,0,.08);

    transform:translateY(-100%);

    transition:.25s ease;

}

#techorz-floating-header.show{

    transform:translateY(0);

}

.te-floating-inner{

    width:1140px;

    display:grid;

    grid-template-columns:240px repeat(4,225px);

    margin:auto;

    padding:0;

}

.te-floating-phone{

    display:flex;

    align-items:center;

    justify-content:flex-start;

    text-align:left;

    padding:14px 18px;

    font-weight:700;

    min-height:60px;

    border-left:1px solid #E5E7EB;

    box-sizing:border-box;

    overflow:hidden;

}

.te-empty-compare{

    padding:60px 20px;

    text-align:center;

    font-size:18px;

    font-weight:600;

    color:#6B7280;

}

/* ==========================================
   Search Results
========================================== */

.te-search-item{

    display:flex;

    align-items:center;

    gap:14px;

    padding:14px;

    cursor:pointer;

    border-bottom:1px solid #EEF2F7;

    transition:all .25s ease;

}

.te-search-item:last-child{

    border-bottom:none;

}

.te-search-item:hover{

    background:#F8FBFF;

}

.te-search-image{

    width:50px;

    height:50px;

    flex-shrink:0;

}

.te-search-image img{

    width:100%;

    height:100%;

    object-fit:contain;

    display:block;

}

.te-search-content{

    flex:1;

    min-width:0;

    display:flex;

    flex-direction:column;

    justify-content:center;

}

.te-search-title{

    font-size:13px;

    font-weight:700;

    color:#111827;

    line-height:1.35;

    margin-bottom:4px;

}

.te-search-price{

    font-size:10px;

    font-weight:700;

    color:#2563EB;

}

.te-search-empty{

    padding:18px;

    text-align:center;

    font-size:14px;

    color:#6B7280;

}

.te-page-product-price{

    font-size:15px;

    font-weight:700;

    color:#2563EB;

    margin:2px 0 14px;

    text-align:center;

}

/* ===================================
Collapsible Body
===================================*/

.techorz-compare-items{

    max-height:500px;

    opacity:1;

    overflow:hidden;

    transition:max-height .35s ease,
               opacity .25s ease;

}

.techorz-bar-actions{

    transition:opacity .25s ease;

}

.techorz-compare-bar.collapsed .techorz-compare-items{

    max-height:0;

    opacity:0;

    margin:0;

}

.techorz-compare-bar.collapsed .techorz-bar-actions{

    opacity:0;

    pointer-events:none;

}

.techorz-compare-bar.collapsed{

    padding-bottom:16px;

}