/* =========================================================
   Product Compare Page
   Primary Color: #f7b901
   Secondary Color: #0e5aa4
========================================================= */

.wg-compare-page {
    width: 100%;
    overflow: hidden;
    background: #f6f7f9;
}


/* ==============================
   Hero
================================= */

.wg-compare-hero {
    position: relative;
    width: 100%;
    padding: 62px 0 68px;
    overflow: hidden;
    background: radial-gradient( circle at 12% 22%, rgba(247, 185, 1, 0.30) 0, rgba(247, 185, 1, 0) 30% ), radial-gradient( circle at 88% 12%, rgba(255, 255, 255, 0.20) 0, rgba(255, 255, 255, 0) 32% ), linear-gradient( 270deg, #0b4c8c 0%, #0e5aa4 55%, #2879c4 100% );
}

    .wg-compare-hero::before {
        content: "";
        position: absolute;
        top: -130px;
        right: -110px;
        width: 330px;
        height: 330px;
        border: 48px solid rgba(247, 185, 1, 0.12);
        border-radius: 50%;
        pointer-events: none;
    }

    .wg-compare-hero::after {
        content: "";
        position: absolute;
        left: -90px;
        bottom: -120px;
        width: 250px;
        height: 250px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.10);
        pointer-events: none;
    }

    .wg-compare-hero .container {
        position: relative;
        z-index: 2;
    }

    .wg-compare-hero span {
        display: inline-block;
        margin-bottom: 16px;
        padding: 8px 18px;
        border: 1px solid rgba(247, 185, 1, 0.38);
        border-radius: 999px;
        background: rgba(247, 185, 1, 0.16);
        color: #ffffff;
        font-size: 13px;
        line-height: 20px;
        font-weight: bold;
        letter-spacing: 2px;
        backdrop-filter: blur(4px);
    }

    .wg-compare-hero h1 {
        margin: 0;
        color: #ffffff;
        font-size: 44px;
        line-height: 1.25;
        font-weight: bold;
    }

    .wg-compare-hero p {
        max-width: 780px;
        margin: 18px 0 0;
        color: rgba(255, 255, 255, 0.92);
        font-size: 16px;
        line-height: 1.8;
    }


/* ==============================
   Content Wrap
================================= */

.wg-compare-wrap {
    padding: 46px 0 72px;
}


/* ==============================
   Toolbar
================================= */

.wg-compare-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    padding: 20px 24px;
    border: 1px solid #dce7f3;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(14, 90, 164, 0.10);
}

.wg-compare-toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555555;
    font-size: 15px;
    line-height: 24px;
}

    .wg-compare-toolbar-left b {
        min-width: 42px;
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 12px;
        border-radius: 999px;
        background: linear-gradient( 135deg, #0e5aa4 0%, #2879c4 100% );
        color: #ffffff;
        font-size: 20px;
        line-height: 42px;
        font-weight: bold;
        box-shadow: 0 10px 22px rgba(14, 90, 164, 0.24);
    }

    .wg-compare-toolbar-left span {
        color: #666666;
    }

.wg-compare-back {
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 1px solid #dce7f3;
    border-radius: 999px;
    background: #f3f8fd;
    color: #0e5aa4;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

    .wg-compare-back i {
        margin-right: 8px;
        font-size: 18px;
    }

    .wg-compare-back:hover {
        border-color: #f7b901;
        background: #f7b901;
        color: #ffffff;
        box-shadow: 0 12px 26px rgba(247, 185, 1, 0.24);
        transform: translateY(-2px);
    }


/* ==============================
   Table Box
================================= */

.wg-compare-table-box {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    border: 1px solid #dce7f3;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(14, 90, 164, 0.10);
}

    .wg-compare-table-box::-webkit-scrollbar {
        height: 9px;
    }

    .wg-compare-table-box::-webkit-scrollbar-track {
        border-radius: 999px;
        background: #edf5fc;
    }

    .wg-compare-table-box::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: #8fb8dc;
    }

        .wg-compare-table-box::-webkit-scrollbar-thumb:hover {
            background: #0e5aa4;
        }


/* ==============================
   Compare Table
================================= */

.wg-compare-table {
    width: 100%;
    min-width: 1080px;
    border-spacing: 0;
    border-collapse: separate;
    background: #ffffff;
}

    .wg-compare-table th,
    .wg-compare-table td {
        box-sizing: border-box;
        vertical-align: top;
    }

    .wg-compare-table th {
        position: sticky;
        left: 0;
        z-index: 20;
        width: 210px;
        min-width: 210px;
        padding: 18px 20px;
        border-right: 1px solid #dce7f3;
        border-bottom: 1px solid #e3eaf2;
        background: #f3f8fd;
        color: #14243b;
        font-size: 15px;
        line-height: 24px;
        font-weight: bold;
        text-align: left;
    }

    .wg-compare-table td {
        min-width: 270px;
        padding: 18px 20px;
        border-right: 1px solid #edf1f5;
        border-bottom: 1px solid #e3eaf2;
        background: #ffffff;
        color: #444444;
        font-size: 14px;
        line-height: 1.7;
    }

        .wg-compare-table td:last-child {
            border-right: none;
        }

    .wg-compare-table tr:last-child th,
    .wg-compare-table tr:last-child td {
        border-bottom: none;
    }

    .wg-compare-table tr:hover th {
        background: #edf5fc;
    }

    .wg-compare-table tr:hover td {
        background: #fffaf0;
    }

    .wg-compare-table tr:first-child th {
        border-top-left-radius: 22px;
    }

    .wg-compare-table tr:first-child td:last-child {
        border-top-right-radius: 22px;
    }


/* ==============================
   Product Card Row
================================= */

.wg-compare-image-row th {
    vertical-align: middle;
    background: #edf5fc;
    color: #0e5aa4;
    font-size: 17px;
}

.wg-compare-image-row td {
    padding: 22px;
}

.wg-compare-product-card {
    width: 100%;
    text-align: center;
}

.wg-compare-product-img {
    width: 170px;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    padding: 16px;
    overflow: hidden;
    border: 1px solid #dce7f3;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(14, 90, 164, 0.08);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

    .wg-compare-product-img img {
        display: block;
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        transition: transform 0.3s ease;
    }

    .wg-compare-product-img:hover {
        border-color: #f7b901;
        box-shadow: 0 16px 34px rgba(14, 90, 164, 0.16);
        transform: translateY(-3px);
    }

        .wg-compare-product-img:hover img {
            transform: scale(1.05);
        }

.wg-compare-product-name {
    display: block;
    min-height: 48px;
    max-height: 48px;
    overflow: hidden;
    color: #14243b;
    font-size: 16px;
    line-height: 24px;
    font-weight: bold;
    text-decoration: none;
    word-break: break-word;
    transition: color 0.25s ease;
}

    .wg-compare-product-name:hover {
        color: #f7b901;
    }

.wg-compare-product-card p {
    margin: 8px 0 14px;
    color: #777777;
    font-size: 14px;
    line-height: 22px;
}

.wg-compare-view {
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 999px;
    background: linear-gradient( 135deg, #0e5aa4 0%, #2879c4 100% );
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(14, 90, 164, 0.22);
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

    .wg-compare-view i {
        margin-left: 7px;
    }

    .wg-compare-view:hover {
        background: #f7b901;
        color: #ffffff;
        box-shadow: 0 14px 28px rgba(247, 185, 1, 0.28);
        transform: translateY(-2px);
    }


/* ==============================
   Cell Elements
================================= */

.wg-compare-link {
    color: #14243b;
    font-weight: bold;
    text-decoration: none;
    word-break: break-word;
    transition: color 0.25s ease;
}

    .wg-compare-link:hover {
        color: #f7b901;
    }

.wg-compare-pdf {
    max-width: 100%;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid #dce7f3;
    border-radius: 10px;
    background: #f3f8fd;
    color: #0e5aa4;
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
    transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

    .wg-compare-pdf i {
        flex-shrink: 0;
        color: #0e5aa4;
        font-size: 16px;
        transition: color 0.25s ease;
    }

    .wg-compare-pdf span {
        display: block;
        min-width: 0;
        word-break: break-word;
    }

    .wg-compare-pdf:hover {
        border-color: #0e5aa4;
        background: #0e5aa4;
        color: #ffffff;
        transform: translateY(-2px);
    }

        .wg-compare-pdf:hover i {
            color: #ffffff;
        }

.wg-compare-desc {
    max-height: 112px;
    padding-right: 6px;
    overflow-y: auto;
    color: #555555;
    font-size: 14px;
    line-height: 1.75;
}

    .wg-compare-desc::-webkit-scrollbar {
        width: 5px;
    }

    .wg-compare-desc::-webkit-scrollbar-track {
        border-radius: 10px;
        background: #edf5fc;
    }

    .wg-compare-desc::-webkit-scrollbar-thumb {
        border-radius: 10px;
        background: #8fb8dc;
    }

        .wg-compare-desc::-webkit-scrollbar-thumb:hover {
            background: #0e5aa4;
        }

.wg-compare-stock {
    min-width: 86px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid rgba(247, 185, 1, 0.30);
    border-radius: 999px;
    background: #fffaf0;
    color: #0e5aa4;
    font-size: 15px;
    font-weight: bold;
}

.wg-compare-price {
    color: #444444;
    font-size: 14px;
    line-height: 24px;
}

    .wg-compare-price table {
        width: 100%;
        border-collapse: collapse;
    }

        .wg-compare-price table td,
        .wg-compare-price table th {
            position: static;
            width: auto;
            min-width: 0;
            padding: 8px 10px;
            border: 1px solid #dce7f3;
            background: #ffffff;
            color: #444444;
            font-size: 13px;
            line-height: 20px;
        }

        .wg-compare-price table tr:first-child td,
        .wg-compare-price table th {
            background: #f3f8fd;
            color: #14243b;
            font-weight: bold;
        }

    .wg-compare-price span,
    .wg-compare-price b,
    .wg-compare-price strong {
        color: #0e5aa4;
    }


/* ==============================
   Empty State
================================= */

.wg-compare-empty {
    max-width: 760px;
    margin: 0 auto;
    padding: 58px 42px 52px;
    border: 1px solid #dce7f3;
    border-radius: 24px;
    background: #ffffff;
    text-align: center;
    box-shadow: 0 18px 45px rgba(14, 90, 164, 0.10);
}

.wg-compare-empty-icon {
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: linear-gradient( 135deg, #0e5aa4 0%, #2879c4 100% );
    color: #ffffff;
    font-size: 36px;
    box-shadow: 0 16px 34px rgba(14, 90, 164, 0.28);
}

.wg-compare-empty h2 {
    margin: 0;
    color: #14243b;
    font-size: 30px;
    line-height: 1.35;
    font-weight: bold;
}

.wg-compare-empty p {
    max-width: 560px;
    margin: 14px auto 0;
    color: #666666;
    font-size: 15px;
    line-height: 1.8;
}

.wg-compare-empty a {
    min-width: 170px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 28px;
    padding: 0 26px;
    border-radius: 999px;
    background: linear-gradient( 135deg, #0e5aa4 0%, #2879c4 100% );
    color: #ffffff;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 12px 26px rgba(14, 90, 164, 0.24);
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

    .wg-compare-empty a:hover {
        background: #f7b901;
        color: #ffffff;
        box-shadow: 0 16px 34px rgba(247, 185, 1, 0.28);
        transform: translateY(-2px);
    }


/* ==============================
   Mobile Layout
================================= */

@media (max-width: 768px) {
    .wg-compare-hero {
        padding: 42px 0 46px;
    }

        .wg-compare-hero::before {
            top: -90px;
            right: -100px;
            width: 250px;
            height: 250px;
            border-width: 34px;
        }

        .wg-compare-hero::after {
            left: -70px;
            bottom: -90px;
            width: 190px;
            height: 190px;
        }

        .wg-compare-hero span {
            margin-bottom: 12px;
            padding: 7px 15px;
            font-size: 12px;
            letter-spacing: 1.4px;
        }

        .wg-compare-hero h1 {
            font-size: 30px;
            line-height: 1.3;
        }

        .wg-compare-hero p {
            margin-top: 12px;
            font-size: 14px;
            line-height: 1.7;
        }

    .wg-compare-wrap {
        width: 94%;
        padding: 30px 0 48px;
    }

    .wg-compare-toolbar {
        display: block;
        padding: 18px 16px;
        border-radius: 16px;
    }

    .wg-compare-toolbar-left {
        justify-content: center;
        flex-wrap: wrap;
        margin-bottom: 14px;
        text-align: center;
    }

        .wg-compare-toolbar-left b {
            min-width: 38px;
            height: 38px;
            font-size: 18px;
            line-height: 38px;
        }

    .wg-compare-toolbar-right {
        text-align: center;
    }

    .wg-compare-back {
        width: 100%;
    }

    .wg-compare-table-box {
        border-radius: 16px;
    }

    .wg-compare-table {
        min-width: 920px;
    }

        .wg-compare-table th {
            width: 150px;
            min-width: 150px;
            padding: 14px 12px;
            font-size: 13px;
            line-height: 22px;
        }

        .wg-compare-table td {
            min-width: 230px;
            padding: 14px 12px;
            font-size: 13px;
            line-height: 1.65;
        }

    .wg-compare-image-row td {
        padding: 16px 12px;
    }

    .wg-compare-product-img {
        width: 130px;
        height: 130px;
        border-radius: 14px;
    }

    .wg-compare-product-name {
        min-height: 44px;
        max-height: 44px;
        font-size: 14px;
        line-height: 22px;
    }

    .wg-compare-product-card p {
        font-size: 13px;
    }

    .wg-compare-view {
        width: 100%;
        height: 36px;
        padding: 0 12px;
        font-size: 13px;
    }

    .wg-compare-pdf {
        min-height: 36px;
        padding: 7px 11px;
        font-size: 13px;
    }

    .wg-compare-desc {
        max-height: 100px;
        font-size: 13px;
    }

    .wg-compare-stock {
        min-width: 76px;
        height: 32px;
        font-size: 13px;
    }

    .wg-compare-empty {
        padding: 42px 22px 38px;
        border-radius: 18px;
    }

    .wg-compare-empty-icon {
        width: 74px;
        height: 74px;
        margin-bottom: 20px;
        font-size: 30px;
    }

    .wg-compare-empty h2 {
        font-size: 24px;
    }

    .wg-compare-empty p {
        font-size: 14px;
        line-height: 1.7;
    }

    .wg-compare-empty a {
        width: 100%;
        height: 46px;
    }
}
