/* Goldsit Compare — loaded only on virtual compare pages. */

.goldsit-compare-page {
    background: #f7f7f5;
}

.goldsit-compare-page .page-head {
    height: 150px;
    background:
        radial-gradient(circle at 22% 18%, rgba(209, 174, 113, .16), transparent 32%),
        linear-gradient(135deg, #0d0d0d 0%, #171717 100%);
}

/* The virtual compare route has its own breadcrumb below. */
.goldsit-compare-page .page-head + .container-fluid {
    display: none;
}

.goldsit-compare {
    padding: 46px 0 72px;
    background: #f7f7f5;
    color: #161616;
}

.goldsit-compare a {
    text-decoration: none;
}

.compare-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: #8a8a8a;
    font-size: 12px;
}

.compare-breadcrumb a {
    color: #666;
    transition: color .2s ease;
}

.compare-breadcrumb a:hover {
    color: #b58e50;
}

.compare-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 28px;
}

.compare-kicker {
    display: inline-block;
    margin-bottom: 7px;
    color: #b58e50;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2px;
}

.compare-header h1 {
    margin: 0 0 8px;
    color: #111;
    font-size: 30px;
    line-height: 1.45;
    font-weight: 800;
}

.compare-header p {
    max-width: 650px;
    margin: 0;
    color: #737373;
    font-size: 13px;
    line-height: 2;
}

.compare-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.compare-count {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid #e5e1d9;
    border-radius: 10px;
    background: #fff;
    color: #777;
    font-size: 12px;
    white-space: nowrap;
}

.compare-add-btn,
.compare-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid #151515;
    border-radius: 10px;
    background: #151515;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.compare-add-btn:hover,
.compare-view:hover {
    transform: translateY(-1px);
    border-color: #b58e50;
    background: #b58e50;
    color: #fff !important;
}

.compare-card {
    overflow: hidden;
    border: 1px solid #e9e5dd;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 45px rgba(0, 0, 0, .045);
}

.compare-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #d1ae71 #f1f1ef;
}

.compare-scroll::-webkit-scrollbar {
    height: 7px;
}

.compare-scroll::-webkit-scrollbar-track {
    background: #f1f1ef;
}

.compare-scroll::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #d1ae71;
}

.compare-table {
    width: 100%;
    min-width: 760px;
    margin: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    background: #fff;
}

.compare-table th,
.compare-table td {
    padding: 20px 22px;
    border: 0;
    border-bottom: 1px solid #efede8;
    border-left: 1px solid #efede8;
    vertical-align: middle;
    text-align: center;
    color: #454545;
    font-size: 13px;
    line-height: 1.9;
}

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

.compare-table th {
    position: sticky;
    right: 0;
    z-index: 4;
    width: 145px;
    border-left: 1px solid #e7e2d8;
    background: #faf8f3;
    color: #222;
    font-weight: 800;
    text-align: right;
}

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

.compare-products-row th,
.compare-products-row td {
    padding-top: 26px;
    padding-bottom: 26px;
}

.compare-product {
    display: flex;
    min-height: 230px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.compare-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    max-width: 100%;
    height: 155px;
    margin: 0 auto;
    border-radius: 14px;
    background: #fafafa;
}

.compare-product-image img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 145px;
    margin: auto;
    object-fit: contain;
    transition: transform .25s ease;
}

.compare-product-image:hover img {
    transform: scale(1.035);
}

.compare-product-name {
    display: block;
    max-width: 245px;
    margin: 0 auto;
    color: #222 !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.9;
    transition: color .2s ease;
}

.compare-product-name:hover {
    color: #b58e50 !important;
}

.compare-price {
    color: #111;
    font-size: 14px;
    font-weight: 800;
}

.compare-price .amount,
.compare-price bdi {
    color: #111 !important;
}

.compare-sku {
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
    color: #777;
    font-weight: 600;
}

.compare-stock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.compare-stock.is-in-stock {
    background: #edf6ef;
    color: #387648;
}

.compare-stock.is-out-of-stock {
    background: #f8eeee;
    color: #9b4545;
}

.compare-description {
    color: #777 !important;
    font-size: 12px !important;
    line-height: 2 !important;
    text-align: right !important;
}

.compare-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
}

.compare-view {
    min-height: 38px;
    padding: 0 15px;
}

.compare-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #dfddd8;
    border-radius: 10px;
    background: #fff;
    color: #777 !important;
    font-size: 11px;
    font-weight: 700;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.compare-remove:hover {
    border-color: #c8a361;
    background: #fbf8f2;
    color: #a37e42 !important;
}

.compare-tip {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 13px 16px;
    border: 1px solid #ece7dd;
    border-radius: 12px;
    background: #fff;
    color: #777;
    font-size: 12px;
    line-height: 1.9;
}

.compare-tip .fa {
    color: #b58e50;
    font-size: 16px;
}

.compare-empty {
    padding: 70px 25px;
    border: 1px solid #e9e5dd;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 45px rgba(0, 0, 0, .04);
    text-align: center;
}

.compare-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: #faf7f0;
    color: #b58e50;
    font-size: 25px;
}

.compare-empty h2 {
    margin: 0 0 8px;
    color: #181818;
    font-size: 21px;
    font-weight: 800;
}

.compare-empty p {
    margin: 0 0 20px;
    color: #777;
    font-size: 13px;
}

.compare-empty > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 20px;
    border-radius: 10px;
    background: #151515;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 991px) {
    .goldsit-compare-page .page-head {
        height: 125px;
    }

    .goldsit-compare {
        padding: 36px 0 58px;
    }

    .compare-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

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

    .compare-add-btn {
        flex: 1;
    }
}

@media (max-width: 767px) {
    .goldsit-compare-page .page-head {
        height: 100px;
    }

    .goldsit-compare {
        padding: 27px 0 44px;
    }

    .compare-breadcrumb {
        margin-bottom: 15px;
    }

    .compare-header {
        margin-bottom: 20px;
    }

    .compare-header h1 {
        font-size: 24px;
    }

    .compare-header p {
        font-size: 12px;
    }

    .compare-header-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .compare-count,
    .compare-add-btn {
        width: 100%;
    }

    .compare-count {
        justify-content: center;
    }

    .compare-card {
        margin-right: -15px;
        margin-left: -15px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

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

    .compare-table th,
    .compare-table td {
        padding: 17px 16px;
    }

    .compare-table th {
        width: 105px;
        font-size: 12px;
    }

    .compare-product {
        min-height: 205px;
    }

    .compare-product-image {
        width: 145px;
        height: 130px;
    }

    .compare-product-image img {
        max-height: 120px;
    }

    .compare-product-name {
        max-width: 195px;
        font-size: 12px;
    }

    .compare-tip {
        align-items: flex-start;
    }
}
