.gsc-compare-table.gsc-compare-cols-1 {
    --gsc-compare-cols: 1;
}

.gsc-compare-table.gsc-compare-cols-2 {
    --gsc-compare-cols: 2;
}

.gsc-compare-table.gsc-compare-cols-3 {
    --gsc-compare-cols: 3;
}

.gsc-compare-table.gsc-compare-cols-4 {
    --gsc-compare-cols: 4;
}

.gsc-compare-page-wrap {
    background: #f5f7fb;
    padding: 34px 15px 60px;
}

.gsc-compare-page-container {
    max-width: 1280px;
    margin: 0 auto;
}

.gsc-compare-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.gsc-compare-page-head h1 {
    margin: 0 0 6px;
    color: #07111f;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 900;
}

.gsc-compare-page-head p {
    margin: 0;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.45;
}

.gsc-compare-back-shop,
.gsc-compare-empty a,
.gsc-compare-add-cart {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 8px;
    background: #1266d6;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
    white-space: nowrap;
}

.gsc-compare-back-shop:hover,
.gsc-compare-empty a:hover,
.gsc-compare-add-cart:hover {
    background: #07111f;
    color: #ffffff !important;
}

.gsc-compare-empty {
    display: none;
    padding: 36px;
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 16px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
}

.gsc-compare-empty.is-visible {
    display: block;
}

.gsc-compare-empty h2 {
    margin: 0 0 8px;
    color: #07111f;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 900;
}

.gsc-compare-empty p {
    margin: 0 0 18px;
    color: #6b7280;
    font-size: 15px;
}

.gsc-compare-table-wrap {
    overflow-x: auto;
    padding-bottom: 6px;
}

.gsc-compare-table {
    min-width: 860px;
    display: grid;
    gap: 0;
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 16px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.gsc-compare-row {
    display: grid;
    grid-template-columns: 180px repeat(var(--gsc-compare-cols), minmax(180px, 1fr));
    border-bottom: 1px solid #eef1f5;
}

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

.gsc-compare-label-cell {
    padding: 18px;
    background: #f8fafc;
    color: #07111f;
    font-size: 14px;
    font-weight: 900;
    border-right: 1px solid #eef1f5;
}

.gsc-compare-products-row .gsc-compare-label-cell {
    display: flex;
    align-items: center;
}

.gsc-compare-product-cell,
.gsc-compare-value-cell {
    position: relative;
    padding: 18px;
    border-right: 1px solid #eef1f5;
    color: #07111f;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.gsc-compare-product-cell:last-child,
.gsc-compare-value-cell:last-child {
    border-right: 0;
}

/* Păstrează toate butoanele „Adaugă în coș” pe același rând. */
.gsc-compare-products-row .gsc-compare-product-cell {
    display: flex;
    flex-direction: column;
    align-self: stretch;
}

.gsc-compare-page-remove {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #111111;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14);
    font-size: 24px;
    line-height: 26px;
    cursor: pointer;
    z-index: 5;
}

.gsc-compare-page-remove:hover {
    background: #d60000;
    color: #ffffff;
}

.gsc-compare-product-image {
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    text-decoration: none;
}

.gsc-compare-product-image img {
    max-width: 100%;
    max-height: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.gsc-compare-product-brand {
    margin-bottom: 5px;
    color: #7b8190;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    text-transform: uppercase;
}

.gsc-compare-product-title {
    height: 60px;
    min-height: 60px;
    margin: 0 0 12px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 900;
}

.gsc-compare-product-title a {
    color: #07111f;
    text-decoration: none;
}

.gsc-compare-product-title a:hover {
    color: #1266d6;
}

.gsc-compare-product-price,
.gsc-compare-product-price * {
    color: #1266d6 !important;
    font-size: 19px;
    font-weight: 900 !important;
    line-height: 1.2;
}

.gsc-compare-product-price {
    min-height: 23px;
    display: flex;
    align-items: flex-start;
    margin-bottom: 14px;
}

.gsc-compare-add-cart {
    width: 100%;
    margin-top: auto;
}

.gsc-compare-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
}

.gsc-compare-stock::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.gsc-compare-stock.is-instock,
.gsc-compare-stock.is-preorder {
    color: #1266d6;
}

.gsc-compare-stock.is-outofstock {
    color: #d60000;
}

.gsc-compare-desc-cell {
    color: #4b5563;
}

@media (max-width: 768px) {
    .gsc-compare-page-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .gsc-compare-page-head h1 {
        font-size: 26px;
    }

    .gsc-compare-row {
        grid-template-columns: 130px repeat(var(--gsc-compare-cols), minmax(170px, 1fr));
    }

    .gsc-compare-label-cell,
    .gsc-compare-product-cell,
    .gsc-compare-value-cell {
        padding: 14px;
    }
}
